Quoting Paolo Bonzini <bonz...@gnu.org>:
On 07/01/2010 02:27 PM, Joern Rennecke wrote:
When risks of the patch mostly involve type checking or things that
could be caught with a simple compilation, could we relax this
testing requirement to do a cross-build of all-gcc all-target-libgcc
with a recent fully bootstrapped compiler, with -Werror enabled. We
probably then want to make --enable-werror to work for
cross-configurations like stage2/3 in a bootstrap.
With a recent enough native compiler (which for some scenarios implies
that the host compiler needs to be built from trunk too) it should
already work.
Well, it doesn't:
[amyl...@laria bld-ia64-3]$ gcc --version
gcc (GCC) 4.6.0 20100630 (experimental)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[amyl...@laria bld-ia64-3]$ ../gcc/configure --target=ia64-linux-gnu
--enable-werror
[amyl...@laria bld-ia64-3]$ make -j5 -l7 all-gcc all-target-libgcc >
make.out 2>&1 &
So in make.out I find the first files of gcc after the generators are
built like this:
gcc -c -DUSE_LIBUNWIND_EXCEPTIONS -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I.
-Ilto -I../../gcc/gcc -I../../gcc/gcc/lto -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-DCLOOG_PPL_BACKEND -I/usr/include/libelf
../../gcc/gcc/lto/lto-lang.c -o lto/lto-lang.o
gcc -c -DUSE_LIBUNWIND_EXCEPTIONS -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -I.
-Ilto -I../../gcc/gcc -I../../gcc/gcc/lto -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-DCLOOG_PPL_BACKEND -I/usr/include/libelf ../../gcc/gcc/lto/lto.c -o
lto/lto.o
same with --enable-werror=yes .