This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Dump __GXX_WEAK__ and __STDC__ with -dM
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: cpplib: Dump __GXX_WEAK__ and __STDC__ with -dM
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Date: 01 Mar 2001 21:19:25 +0100
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010225093222.A29608@daikokuya.demon.co.uk>
Neil,
> * cppmacro.c (builtin_macro): Remove handling of __GXX_WEAK__.
> Handle __STDC__ as a builtin only on Solaris.
is it really still necessary to support that STDC_0_IN_SYSTEM_HEADERS
stuff? It's only defined in sparc/sol2.h, i386/sol2.h, and rs6000/sol2.h,
i.e. Solaris on three platforms. In the past, this was necessary since
fixincludes wasn't run on Solaris 2.5 and up, so gcc had to cope with the
__STDC__-0==0 or __STDC__==0 nonsense in system headers. In some way, not
running fixincludes was a good thing, since you could use one installation
of gcc on various different Solaris versions at the same time. But this
isn't true any longer: fixincludes is run on all versions of Solaris right
now, and fixes the constructs above to test __STRICT_ANSI__ instead, so
there shouldn't be any users relying on __STDC__ == 0 any more. So
STDC_0_IN_SYSTEM_HEADERS might as well be dropped, together with the
special treatment of __STDC__ in cppmacro.c
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE