public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/19234] New: Bootstrap ignores compiler flags supplied on command line
@ 2005-01-02 21:38 v dot haisman at sh dot cvut dot cz
2005-01-03 15:26 ` [Bug bootstrap/19234] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-01-02 21:38 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/19234] Bootstrap ignores compiler flags supplied on command line
2005-01-02 21:38 [Bug bootstrap/19234] New: Bootstrap ignores compiler flags supplied on command line v dot haisman at sh dot cvut dot cz
@ 2005-01-03 15:26 ` pinskia at gcc dot gnu dot org
[not found] ` <20050103152635.720.qmail@sourceware.org>
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-03 15:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-03 15:26 -------
LIBGCC2_CFLAGS changes the libgcc C flags.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19234
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bug bootstrap/19234] Bootstrap ignores compiler flags supplied on command line
[not found] ` <20050103152635.720.qmail@sourceware.org>
@ 2005-01-04 21:24 ` Vaclav Haisman
2005-01-04 21:40 ` Andrew Pinski
0 siblings, 1 reply; 6+ messages in thread
From: Vaclav Haisman @ 2005-01-04 21:24 UTC (permalink / raw)
To: pinskia at gcc dot gnu dot org; +Cc: Vaclav Haisman, gcc-bugs
I think that you have closed this one a bit too quick. Have you actually tried
it? This is what I have used:
CFLAGS="-O0 -g3 -fno-omit-frame-pointer" BOOT_CFLAGS="-O0 -g3
-fno-omit-frame-pointer" LIBCFLAGS="-O0 -g3 -fno-omit-frame-pointer"
LIBGCC2_CFLAGS="-O0 -g3 -fno-omit-frame-pointer" make CFLAGS="-O0 -g3
-fno-omit-frame-pointer" BOOT_CFLAGS="-O0 -g3 -fno-omit-frame-pointer"
LIBCFLAGS="-O0 -g3 -fno-omit-frame-pointer" LIBGCC2_CFLAGS="-O0 -g3
-fno-omit-frame-pointer" bootstrap
CFLAGS="-O0 -g3 -fno-omit-frame-pointer" BOOT_CFLAGS="-O0 -g3
-fno-omit-frame-pointer" LIBCFLAGS="-O0 -g3 -fno-omit-frame-pointer"
LIBGCC2_CFLAGS="-O0 -g3 -fno-omit-frame-pointer" ../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
And these are examples where the flags are not used:
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common
-DHAVE_CONFIG_H -DGENERATOR_FILE -I/home/4/wilx/include -I. -Ibuild
-I../../srcdir/gcc -I../../srcdir/gcc/build -I../../srcdir/gcc/../include
-I../../srcdir/gcc/../libcpp/include \
-o build/ggc-none.o ../../srcdir/gcc/ggc-none.c
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wold-style-definition -fno-common
-Wno-error -DHAVE_CONFIG_H -I/home/4/wilx/include -I. -I. -I../../srcdir/gcc
-I../../srcdir/gcc/. -I../../srcdir/gcc/../include
-I../../srcdir/gcc/../libcpp/include c-parse.c -o c-parse.o
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wold-style-definition -fno-common
-DHAVE_CONFIG_H -I/home/4/wilx/include -I. -I. -I../../srcdir/gcc
-I../../srcdir/gcc/. -I../../srcdir/gcc/../include
-I../../srcdir/gcc/../libcpp/include ../../srcdir/gcc/tree-ssa-loop-manip.c -o
tree-ssa-loop-manip.o
These ignore the flags that I pass to both configure and make bootstrap. Though
it is not that bad because it compiles the stuff without optimization anyway.
The next one though uses -O2 despite the use of LIBGCC2_CFLAGS that you have
suggested:
./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_ctzdi2
-c ../../srcdir/gcc/libgcc2.c -o libgcc/./_ctzdi2.o
The -O2 option is part of the gcc/Makefile.in file.
Vaclav Haisman
On Mon, 3 Jan 2005, pinskia at gcc dot gnu dot org wrote:
>
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-03 15:26 -------
> LIBGCC2_CFLAGS changes the libgcc C flags.
>
> --
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |RESOLVED
> Resolution| |INVALID
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19234
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> You are on the CC list for the bug, or are watching someone who is.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/19234] Bootstrap ignores compiler flags supplied on command line
2005-01-02 21:38 [Bug bootstrap/19234] New: Bootstrap ignores compiler flags supplied on command line v dot haisman at sh dot cvut dot cz
2005-01-03 15:26 ` [Bug bootstrap/19234] " pinskia at gcc dot gnu dot org
[not found] ` <20050103152635.720.qmail@sourceware.org>
@ 2005-01-04 21:25 ` v dot haisman at sh dot cvut dot cz
2005-01-04 21:40 ` pinskia at physics dot uc dot edu
3 siblings, 0 replies; 6+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2005-01-04 21:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From v dot haisman at sh dot cvut dot cz 2005-01-04 21:24 -------
Subject: Re: Bootstrap ignores compiler flags supplied
on command line
I think that you have closed this one a bit too quick. Have you actually tried
it? This is what I have used:
CFLAGS="-O0 -g3 -fno-omit-frame-pointer" BOOT_CFLAGS="-O0 -g3
-fno-omit-frame-pointer" LIBCFLAGS="-O0 -g3 -fno-omit-frame-pointer"
LIBGCC2_CFLAGS="-O0 -g3 -fno-omit-frame-pointer" make CFLAGS="-O0 -g3
-fno-omit-frame-pointer" BOOT_CFLAGS="-O0 -g3 -fno-omit-frame-pointer"
LIBCFLAGS="-O0 -g3 -fno-omit-frame-pointer" LIBGCC2_CFLAGS="-O0 -g3
-fno-omit-frame-pointer" bootstrap
CFLAGS="-O0 -g3 -fno-omit-frame-pointer" BOOT_CFLAGS="-O0 -g3
-fno-omit-frame-pointer" LIBCFLAGS="-O0 -g3 -fno-omit-frame-pointer"
LIBGCC2_CFLAGS="-O0 -g3 -fno-omit-frame-pointer" ../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
And these are examples where the flags are not used:
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common
-DHAVE_CONFIG_H -DGENERATOR_FILE -I/home/4/wilx/include -I. -Ibuild
-I../../srcdir/gcc -I../../srcdir/gcc/build -I../../srcdir/gcc/../include
-I../../srcdir/gcc/../libcpp/include \
-o build/ggc-none.o ../../srcdir/gcc/ggc-none.c
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wold-style-definition -fno-common
-Wno-error -DHAVE_CONFIG_H -I/home/4/wilx/include -I. -I. -I../../srcdir/gcc
-I../../srcdir/gcc/. -I../../srcdir/gcc/../include
-I../../srcdir/gcc/../libcpp/include c-parse.c -o c-parse.o
gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wold-style-definition -fno-common
-DHAVE_CONFIG_H -I/home/4/wilx/include -I. -I. -I../../srcdir/gcc
-I../../srcdir/gcc/. -I../../srcdir/gcc/../include
-I../../srcdir/gcc/../libcpp/include ../../srcdir/gcc/tree-ssa-loop-manip.c -o
tree-ssa-loop-manip.o
These ignore the flags that I pass to both configure and make bootstrap. Though
it is not that bad because it compiles the stuff without optimization anyway.
The next one though uses -O2 despite the use of LIBGCC2_CFLAGS that you have
suggested:
./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_ctzdi2
-c ../../srcdir/gcc/libgcc2.c -o libgcc/./_ctzdi2.o
The -O2 option is part of the gcc/Makefile.in file.
Vaclav Haisman
On Mon, 3 Jan 2005, pinskia at gcc dot gnu dot org wrote:
>
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-03 15:26 -------
> LIBGCC2_CFLAGS changes the libgcc C flags.
>
> --
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |RESOLVED
> Resolution| |INVALID
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19234
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> You are on the CC list for the bug, or are watching someone who is.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19234
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/19234] Bootstrap ignores compiler flags supplied on command line
2005-01-02 21:38 [Bug bootstrap/19234] New: Bootstrap ignores compiler flags supplied on command line v dot haisman at sh dot cvut dot cz
` (2 preceding siblings ...)
2005-01-04 21:25 ` v dot haisman at sh dot cvut dot cz
@ 2005-01-04 21:40 ` pinskia at physics dot uc dot edu
3 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2005-01-04 21:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at physics dot uc dot edu 2005-01-04 21:40 -------
Subject: Re: Bootstrap ignores compiler flags supplied on command line
On Jan 4, 2005, at 4:24 PM, Vaclav Haisman wrote:
> gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W
> -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
> -Wno-long-long -Wno-variadic-macros -Wold-style-definition -fno-common
> -DHAVE_CONFIG_H -I/home/4/wilx/include -I. -I. -I../../srcdir/gcc
> -I../../srcdir/gcc/. -I../../srcdir/gcc/../include
> -I../../srcdir/gcc/../libcpp/include
> ../../srcdir/gcc/tree-ssa-loop-manip.c -o
> tree-ssa-loop-manip.o
STAGE1_CFLAGS
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19234
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bug bootstrap/19234] Bootstrap ignores compiler flags supplied on command line
2005-01-04 21:24 ` Vaclav Haisman
@ 2005-01-04 21:40 ` Andrew Pinski
0 siblings, 0 replies; 6+ messages in thread
From: Andrew Pinski @ 2005-01-04 21:40 UTC (permalink / raw)
To: Vaclav Haisman; +Cc: gcc-bugs, pinskia at gcc dot gnu dot org
On Jan 4, 2005, at 4:24 PM, Vaclav Haisman wrote:
> gcc -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W
> -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
> -Wno-long-long -Wno-variadic-macros -Wold-style-definition -fno-common
> -DHAVE_CONFIG_H -I/home/4/wilx/include -I. -I. -I../../srcdir/gcc
> -I../../srcdir/gcc/. -I../../srcdir/gcc/../include
> -I../../srcdir/gcc/../libcpp/include
> ../../srcdir/gcc/tree-ssa-loop-manip.c -o
> tree-ssa-loop-manip.o
STAGE1_CFLAGS
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-01-04 21:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-02 21:38 [Bug bootstrap/19234] New: Bootstrap ignores compiler flags supplied on command line v dot haisman at sh dot cvut dot cz
2005-01-03 15:26 ` [Bug bootstrap/19234] " pinskia at gcc dot gnu dot org
[not found] ` <20050103152635.720.qmail@sourceware.org>
2005-01-04 21:24 ` Vaclav Haisman
2005-01-04 21:40 ` Andrew Pinski
2005-01-04 21:25 ` v dot haisman at sh dot cvut dot cz
2005-01-04 21:40 ` pinskia at physics dot uc dot edu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).