[PATCH v3 3/7] Assume support for __extension__ ({ })
Alejandro Colomar
alx@kernel.org
Mon Nov 10 22:09:21 GMT 2025
Hi Arsen,
On Mon, Nov 10, 2025 at 06:12:51PM +0100, Arsen Arsenović wrote:
> Paul Eggert <eggert@cs.ucla.edu> writes:
>
> > On 2025-11-10 06:17, Alejandro Colomar wrote:
> >> -# elif !defined __GNUC__ || defined __STRICT_ANSI__
> >> +# elif defined __STRICT_ANSI__
> >
> > This assumes the user's C compiler supports statement expressions. This may be
> > going a bridge too far: although statement expressions are supported by every C
> > compiler I know of in common use with glibc, they are not part of the C
> > standard and if we make this change we might exclude compilers we don't know
> > about, or exclude future compilers. Also, starting to use statement expressions
> > now might run into bugs in existing non-GCC C compilers.
> >
> > If we are to make changes like this, there should be a NEWS item about it, and
> > it should be documented in the manual (as per my previous email in this
> > thread).
>
> In addition, AFAIK, requirements for installed headers and for libc code
> is different in that the installed headers should work with any C
> compiler in all cases.
That triggers the question: What is a C compiler?
Because if that includes a K&R C compiler, glibc clearly requires
something better than that. glibc requires at least ANSI C89.
Have a lovely night!
Alex
--
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20251110/44ef25bd/attachment.sig>
More information about the Libc-alpha
mailing list