This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/19234] New: Bootstrap ignores compiler flags supplied on command line
- From: "v dot haisman at sh dot cvut dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2005 21:38:00 -0000
- Subject: [Bug bootstrap/19234] New: Bootstrap ignores compiler flags supplied on command line
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I was trying to work around the problem described in PR 19120 by doing totaly
unoptimized build:
wilx@logout:::~/tmp/gcc-head/objdir> CFLAGS="-O0 -fno-omit-frame-pointer -g3"
BOOT_CFLAGS="-O0 -fno-omit-frame-pointer -g3" LIBCFLAGS="-O0
-fno-omit-frame-pointer -g3" ../srcdir/configure --disable-nls
--enable-version-specific-runtime-libs --enable-dwarf2 --with-cpu=pentium3
--with-arch=pentium3 --with-system-zlib --disable-shared --prefix=/home/4/wilx
--enable-languages=c,c++ --disable-sjlj-exceptions --enable-shared=libstdc++
--enable-shared=libobjc --with-gc=zone
make BOOT_CFLAGS="-O0 -fno-omit-frame-pointer -g3" CFLAGS="-O0
-fno-omit-frame-pointer -g3" LIBCFLAGS="-O0 -fno-omit-frame-pointer -g3" bootstrap
Yet still I get -O2 during compilation:
./xgcc -B./ -B/home/4/wilx/i386-unknown-freebsd4.10/bin/ -isystem
/home/4/wilx/i386-unknown-freebsd4.10/include -isystem
/home/4/wilx/i386-unknown-freebsd4.10/sys-include
-L/home/4/wilx/tmp/gcc-head/objdir/gcc/../ld -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -fPIC -pthread -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../srcdir/gcc -I../../srcdir/gcc/.
-I../../srcdir/gcc/../include -I../../srcdir/gcc/../libcpp/include
-DL_fixunsxfdi -c ../../srcdir/gcc/libgcc2.c -o libgcc/./_fixunsxfdi.o
--
Summary: Bootstrap ignores compiler flags supplied on command
line
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: v dot haisman at sh dot cvut dot cz
CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
cvut dot cz
GCC build triplet: i386-unknown-freebsd4.10
GCC host triplet: i386-unknown-freebsd4.10
GCC target triplet: i386-unknown-freebsd4.10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19234