This is the mail archive of the gcc@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: G++ defining _GNU_SOURCE


At 13:58 10.06.2001, Jason Merrill wrote:
> >>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:
>
> >         * config/alpha/linux.h (CPLUSPLUS_CPP_SPEC): New.
>
>Won't the config/linux.h definition suffice?

Nearly no linux platform uses this file since it's too x86 specific. 
Actually I believe not even most of the *_SPEC defines belong in there, 
they differ too much across all the linux targets.

On the patch itself, how can "-D_GNU_SOURCE %(cpp_cpu)" be correct? 
Shouldn't that be %(cpp)? At least on PPC I have to use %(cpp), because 
otherwise c++ won't get -D__BIG_ENDIAN__ (preventing compilation of 
libstdc++) etc. and things like -posix, -pthread, -fpic/-fPIC won't produce 
the proper defines _POSIX_SOURCE, _REENTRANT and __pic__/__PIC__.

Franz.


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