[Question] Will switching Linux UAPI headers from __ASSEMBLY__ to __ASSEMBLER__ affect glibc?
Maciej W. Rozycki
macro@orcam.me.uk
Wed Mar 4 09:29:32 GMT 2026
On Tue, 3 Mar 2026, Andreas Schwab wrote:
> > I would like to ask directly:
> >
> > Will switching Linux UAPI headers from __ASSEMBLY__ to __ASSEMBLER__
> > affect glibc in any way?
>
> Since the compiler will define __ASSEMBLER__ automatically when
> preprocessing assembler-with-cpp files, there is no need to change
> anything on the glibc side. The places that define __ASSEMBLY__ for
> that purpose will just become redundant.
Only as from GCC commit f8f769ea4e69; don't we care to support older GCC
versions with installed headers anymore?
We do have places across our code base that still care about GCC 2.95 and
older, and I can't recall any discussion about removing support for older
compilers. And neither I can find any #error statement triggering for any
GCC version check, either in <features.h>, preferably, or elsewhere.
Maciej
More information about the Libc-alpha
mailing list