------- Comment #3 from sdack at gmx dot de  2007-02-16 13:17 -------
Subject: Re:  top-level BOOT_CFLAGS not being used for
 bootstrapping

pinskia at gcc dot gnu dot org schrieb:
> ------- Comment #1 from pinskia at gcc dot gnu dot org  2007-02-15 21:28 
> -------
> You mentioned BOOT_STRAP in your comment is that correct?
> Also did you use "make bootstrap" and not just a plain make?

Yes, I did (bootstrap and profiledbootstrap). What happens is, that when 
I pass i.e. BOOT_CFLAGS="-O3 -s" to make, it actually does get passed, 
but then is followed by a "-g -O2" resulting in "-O3 -s -O2 -g", which 
simply clobbers the user's flags. I did not see that earlier when I made 
that report, sorry.

One little thing if I may add: Another triviality is that the Makefiles 
somehwere do the assumption that following passes will get compiled with 
gcc and not by an unknown compiler and therefore prepends CFLAGS with 
-O2 to produce optimized output. This does not cause problems when you 
pass it -O1 since it will clobber the -O2. However, I think it should 
not make this assumption or optimisation and leave it all to the user 
since it might not be wanted or applicable. It is good enough when 
CFLAGS has a default value that will then be used wherever possible.


Sven


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30810

Reply via email to