[PATCH] gcc/Makefile.in gcc-3_0-branch, fix ALL_C*FLAGS use in HOST entries

Gordon Sadler gbsadler1@lcisp.com
Wed Mar 21 20:31:00 GMT 2001


On Wed, Mar 21, 2001 at 02:29:19PM -0500, DJ Delorie wrote:
> 
> > If you look at the HOST_CFLAGS and HOST_CPPFLAGS, both include
> > ALL_C*FLAGS, however ALL_C*FLAGS is not defined until later. This just
> > moves the definition to the correct spot to pick up those variables.
> 
> This shouldn't be needed, because makefile macros are expanded when
> they're used, not when they're defined.  Are you actually seeing a
> problem with the current Makefile?
> 
You are correct. I really shouldn't try to figure out the gcc build
system so late at night.

However, I do believe I found the cause of my problem.

During stage1, we should be able to override CFLAGS from the
commandline. The comments in the Makefile.in say this explicitly.
But, they are not being passed to stage1 build. I was reading some build
logs when I noticed stage1 being built with some odd flags,
investigation led me to wrongly conclude the previous patch. Now, I am
fairly certain of the attached patch being correct.

Sorry for previous, I should have spent more time on it.

Is attaching this here correct? Or should I let this thread die and
submit a new patch?

Gordon Sadler





More information about the Gcc-patches mailing list