On Tue, Jan 18, 2011 at 08:49:16PM -0800, Ian Lance Taylor wrote: > Andrew Pinski <pins...@gmail.com> writes: > > > On Tue, Jan 18, 2011 at 5:02 PM, Jack Howarth <howa...@bromo.med.uc.edu> > > wrote: > >> While doing bootstraps with... > >> > >> make -j 8 profiledbootstrap BOOT_CFLAGS="-g -O3" > >> > >> I noticed the absence of these flags being utilized in libdecnumber, > >> libffi, libgcc, etc. > >> This also appears to be limiting the coverage of the lto-bootstrap as > >> well. Are there any > >> plans to address in the near term? If not, any hints on what we are > >> missing to solve this? > >> Is it as simple as adding the appropriate entries in Makefile.in for > >> BUILD_COMPILERFLAGS > >> and BUILD_CPPFLAGS? > > > > I think you need TARGET_CFLAGS set too. > > That is, CFLAGS_FOR_TARGET. > > BOOT_CFLAGS is used for code compiled to run on the host system. > CFLAGS_FOR_TARGET is used for code compiled to run on the target > system. libdecnumber, libffi, libgcc are all compiled to run on the > target system, not the host system. > > Ian
Ian, Thanks. On x86_64-apple-darwin10 with... configure flags: --prefix=/sw --prefix=/sw/lib/gcc4.6 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.6/info --with-build-config=bootstrap-lto --enable-stage1-languages=c,lto --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --enable-build-with-cxx --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.6 --enable-checking=yes --enable-cloog-backend=isl and... make -j profiledbootstrap BOOT_CFLAGS="-g -O3" CFLAGS_FOR_TARGET="-g -O3" there are no regressions. Nice. Jack