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] gcc/Makefile.in gcc-3_0-branch, pass CFLAGS to stage1_build



> Can we back out the following please?  There's no technical need for it, 
> and the only effect is that it shaves a small amount of time of the stage2 
> build.

If we back it out, there is *no* way to override stage1 compile flags,
and it will use the CFLAGS inherent in the Makefile (which is no
different that what the Makefile does now, if you don't specify
CFLAGS= on the "make" command line - it defaults to STAGE1_CFLAGS
already).  I'm sure this isn't what you want.

The current stage1_build command looks like this:

        $(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)" \
                CFLAGS="$(CFLAGS)"

Any variables not listed in this command will assume the default
values encoded inside the Makefile.  These defaults are supposed to be
set as if the compiler is the installed compiler.  If you can't build
with the installed compiler without passing flags, you won't be able
to bootstrap with that compiler without passing the same flags, and
those flags need to be listed like the CFLAGS example above.


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