This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFC: -Wstrict-overflow, take 2
On 13 Feb 2007 14:35:16 -0800, Ian Lance Taylor <iant@google.com> wrote:
Ian Lance Taylor <iant@google.com> writes:
> Here is a new version of my -Wstrict-overflow patch. This
> incorporates all the comments made on the first version.
I have committed this patch.
something goes wrong:
gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-fno-common -DHAVE_CONFIG_H -o xgcc gcc.o opts-common.o
gcc-options.o gccspec.o \
intl.o prefix.o version.o driver-i386.o ../libcpp/libcpp.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpfr -lgmp
gcc.o: In function `issue_strict_overflow_warning':
../../gcc/gcc/flags.h:342: undefined reference to `warn_strict_overflow'
collect2: ld returned 1 exit status
make[3]: *** [xgcc] Error 1
I guess the -fkeep-inline-functions is the culprit (the code seems to rely on
flags.h:issue_strict_overflow_warning function being removed). Bootstrap
compiler is gcc 3.3.3-hammer for me.
Richard.