Patch to remove re-assert warnings on powerpc-*-linux-*
Zack Weinberg
zack@rabi.columbia.edu
Sat Mar 27 12:13:00 GMT 1999
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
More information about the Gcc-patches
mailing list