[PATCH v3 2/7] malloc/obstack.h: Assume GCC supports __extension__

Joseph Myers josmyers@redhat.com
Mon Nov 10 18:32:38 GMT 2025


On Mon, 10 Nov 2025, Alejandro Colomar wrote:

> GCC supports __extension__ since at least GCC 2.8.

This is a file shared with gnulib, but __extension__ is generally only 
relevant with -pedantic; there's no problem with supporting its absence 
with non-GCC compilers, so no real advantage in removing this code.

In fact, GCC 2.7 (the oldest version supporting ELF for any target 
supported now by glibc) *does* support __extension__, so the more 
interesting question about such a condition is whether there are specific 
sub-cases of __extension__ that are used in installed headers and are the 
reason for the 2.8 version here.

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list