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: Patch to remove re-assert warnings on powerpc-*-linux-*


On Sat, 27 Mar 1999 15:05:49 -0500, Daniel Jacobowitz wrote:
>On Sat, Mar 27, 1999 at 11:03:50AM -0500, Zack Weinberg wrote:
>> On Sat, 27 Mar 1999 00:26:41 -0500, Daniel Jacobowitz wrote:
>> >This patch removes "system(unix) re-asserted" type warnings from
>> >powerpc-*-linux-*, which cpplib now produces and cause all the excess error
>> >tests in testsuite to fail with --enable-c-cpplib.
>> 
>> I think you can safely delete all references to CPP_OS_LINUX_SPEC.
>> CPP_PREDEFINES is a much better place to do this sort of thing, if
>> only because it gets the test for defining bare `unix' right.
>
>I don't follow.  It doesn't HAVE a test for -Dunix; CPP_PREDEFINES
>comes from linux.h, and defines -Dunix unconditionally.

Yup.  The test happens in gcc.c, in the processing of the %p and %P spec
macros.  Look at what the specs in default_compilers do when invoking cpp.

zw


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