[PATCH v3 3/7] Assume support for __extension__ ({ })

Joseph Myers josmyers@redhat.com
Mon Nov 10 18:37:02 GMT 2025


On Mon, 10 Nov 2025, Alejandro Colomar wrote:

> /* Oh come on.  Get a reasonable compiler.  */
> 
> GCC supports __extension__ since at least GCC 2.8.
> GCC supports ({ }) since GCC 1.x.

I think we need a strong rationale in each individual case for why a 
particular interface in an installed header requires ({ }) to be 
implemented, rather than being able to use out-of-line code for compilers 
without that extension.  My expectation is that it's generally 
*ABI-related* extensions that we might be assuming support for in 
installed headers, not random other language extensions.

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list