This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Build errors (due to warnings) with your ldlang.c change
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Hans-Peter Nilsson" <hans-peter dot nilsson at axis dot com>
- Cc: amodra at bigpond dot net dot au, binutils at sourceware dot org
- Date: Fri, 25 Jan 2008 09:13:48 -0800
- Subject: Re: Build errors (due to warnings) with your ldlang.c change
- References: <200801251706.m0PH6lrY025846@ignucius.se.axis.com>
It is
http://www.sourceware.org/bugzilla/show_bug.cgi?id=5670
H.J.
On Jan 25, 2008 9:06 AM, Hans-Peter Nilsson <hans-peter.nilsson@axis.com> wrote:
> 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
>