This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpplib: Dump __GXX_WEAK__ and __STDC__ with -dM


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]