This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Remove incorrect default implementation of atomics.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Torvald Riegel <triegel at redhat dot com>
- Cc: GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Tue, 9 Dec 2014 15:27:05 -0800 (PST)
- Subject: Re: [PATCH] Remove incorrect default implementation of atomics.
- Authentication-results: sourceware.org; auth=none
- References: <1418059612 dot 25868 dot 84 dot camel at triegel dot csb> <20141208211344 dot AC9AA2C3A9F at topped-with-meat dot com> <1418118059 dot 25868 dot 120 dot camel at triegel dot csb>
My point is that removing the header entirely is not good. When generic
code requires that some sysdeps file exist, then we always have a generic
or stub version of that sysdeps file that tells someone about how to go
about filling in that requirement in a new port. If there is really
nothing useful for the placeholder file to contain, it can contain an
#error line and a comment referring to where the relevant details are to be
found. But in most cases, we have found it most useful to write a skeleton
file (maybe still with some #error or other obviously non-compiling syntax)
that has at least substantial comments about what a real file would do.