This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Build errors (due to warnings) with your ldlang.c change
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: amodra at bigpond dot net dot au
- Cc: binutils at sourceware dot org
- Date: Fri, 25 Jan 2008 18:06:47 +0100
- Subject: Build errors (due to warnings) with your ldlang.c change
Hi Alan.
My autotester, running from a Fedora 8 installation (recent
update) complains:
gcc -O2 -m32 -DHAVE_CONFIG_H -I. -I/tmp/hpautotest-binutils/bsrc/src/ld -I. -I. -I/tmp/hpautotest-binutils/bsrc/src/ld -I../bfd -I/tmp/hpautotest-binutils/bsrc/src/ld/../bfd -I/tmp/hpautotest-binutils/bsrc/src/ld/../include -g -O2 -DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /tmp/hpautotest-binutils/bsrc/src/ld/ldlang.c
cc1: warnings being treated as errors
/tmp/hpautotest-binutils/bsrc/src/ld/ldlang.c: In function 'process_insert_statements':
/tmp/hpautotest-binutils/bsrc/src/ld/ldlang.c:3398: warning: dereferencing type-punned pointer will break strict-aliasing rules
/tmp/hpautotest-binutils/bsrc/src/ld/ldlang.c:3405: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[4]: Leaving directory `/tmp/hpautotest-binutils/criself/ld'
The target is cris-elf but that shouldn't matter.
rpm -q gcc:
gcc-4.1.2-33
brgds, H-P