[toplevel] PR/18222 Fix definition of target's CPPFLAGS

Kelley Cook kcook@gcc.gnu.org
Fri Jan 14 15:39:00 GMT 2005


[I forgot to attach patch 1st time]

CPPFLAGS should only have items that pertain to the preprocessor.

This patch

http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01736.html

changed it to have all of CFLAGS, which was causing bootstrap problems
as CPPFLAGS is precious according to autoconf and was getting redefined.

This adds in a new overrideable CPPFLAGS_FOR_TARGET, which will
hopefully fulfill Sean's purpose for his original patch.

Although I don't have an Alpha to test on, I think this should eliminate
the bootstrap problem for PR/18222.  Regardless the current definition
of the target's CPPFLAGS is clearly incorrect.

Bootstrapped i686-pc-cygwin

OK to install?

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cppflags.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050114/e6b0d703/attachment.ksh>


More information about the Gcc-patches mailing list