This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: inconsistent CFLAGS between toplevel and gcc/


> "make bootstrap" should have caught the warnings.

It did not.  Here's an example:

(compiles cleanly)
bje@namadgi:~/build/gcc-mainline/gcc$ stage1/xgcc -Bstage1/
-B/usr/local/i686-pc-linux-gnu/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition -Werror -fno-common   -DHAVE_CONFIG_H
-I. -I. -I/home/bje/source/gcc-mainline/gcc -I/home/bje/source/gcc-mainline/gcc/.
-I/home/bje/source/gcc-mainline/gcc/../include
-I/home/bje/source/gcc-mainline/gcc/../libcpp/include
/home/bje/source/gcc-mainline/gcc/ddg.c -o ddg.o

(using GCC 4.0.2 20050717)
bje@namadgi:~/build/gcc-mainline/gcc$ gcc -c   -g -O2 -DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition -Werror -fno-common   -DHAVE_CONFIG_H
-I. -I. -I/home/bje/source/gcc-mainline/gcc -I/home/bje/source/gcc-mainline/gcc/.
-I/home/bje/source/gcc-mainline/gcc/../include
-I/home/bje/source/gcc-mainline/gcc/../libcpp/include
/home/bje/source/gcc-mainline/gcc/ddg.c -o ddg.o
cc1: warnings being treated as errors
/home/bje/source/gcc-mainline/gcc/ddg.c: In function 'longest_simple_path':
/home/bje/source/gcc-mainline/gcc/ddg.c:1018: warning: 'u' may be used uninitialized
in this function

I'll file a bug report.

Ben

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]