From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26431 invoked by alias); 4 Jan 2005 21:24:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26183 invoked from network); 4 Jan 2005 21:24:38 -0000 Received: from unknown (HELO service.sh.cvut.cz) (147.32.127.214) by sourceware.org with SMTP; 4 Jan 2005 21:24:38 -0000 Received: from localhost (localhost [127.0.0.1]) by service.sh.cvut.cz (Postfix) with ESMTP id E4C851A3486; Tue, 4 Jan 2005 22:24:37 +0100 (CET) Received: from service.sh.cvut.cz ([127.0.0.1]) by localhost (service [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26232-02; Tue, 4 Jan 2005 22:24:36 +0100 (CET) Received: from logout.sh.cvut.cz (logout.sh.cvut.cz [147.32.127.203]) by service.sh.cvut.cz (Postfix) with ESMTP id 488FE1A3401; Tue, 4 Jan 2005 22:24:36 +0100 (CET) Received: from logout (logout [147.32.127.203]) by logout.sh.cvut.cz (Postfix) with ESMTP id 9D7893C306; Tue, 4 Jan 2005 22:24:44 +0100 (CET) Date: Tue, 04 Jan 2005 21:24:00 -0000 From: Vaclav Haisman To: pinskia at gcc dot gnu dot org Cc: Vaclav Haisman , gcc-bugs@gcc.gnu.org Subject: Re: [Bug bootstrap/19234] Bootstrap ignores compiler flags supplied on command line In-Reply-To: <20050103152635.720.qmail@sourceware.org> Message-ID: <20050104214128.A41000@logout.sh.cvut.cz> References: <20050102213759.19234.v.haisman@sh.cvut.cz> <20050103152635.720.qmail@sourceware.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-01/txt/msg00380.txt.bz2 List-Id: 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. >