This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: build failure for ia64 (due to -Werror)
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Ben Elliston <bje at au1 dot ibm dot com>, binutils at sources dot redhat dot com
- Date: Fri, 18 Mar 2005 22:51:13 +1030
- Subject: Re: build failure for ia64 (due to -Werror)
- References: <423A2ADB.6090807@au.ibm.com> <423ABA6A.4030409@redhat.com>
On Fri, Mar 18, 2005 at 11:24:26AM +0000, Nick Clifton wrote:
> Hi Ben,
>
> >gcc -DHAVE_CONFIG_H -I. -I/home/bje/source/src/bfd -I. -D_GNU_SOURCE
> >-DTRAD_CORE -I.
> >-I/home/bje/source/src/bfd -I/home/bje/source/src/bfd/../include
> >-I/home/bje/source/src/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes
> >-Wmissing-prototypes -Werror -g -O2 -c elf32-ia64.c -o elf32-ia64.o
> >elf32-ia64.c: In function `elf32_ia64_install_value':
> >elf32-ia64.c:3311: warning: dereferencing type-punned pointer will break
> >strict-aliasing rules
>
> I am unable to reproduce this problem :-(
>
> Can you tell me how you configured the toolchain that produces this
> problem and which version of gcc you are using ?
I would guess 32-bit host, no --enable-64-bit-bfd. Then "bfd_vma insn"
is 32-bit and ia64_insn is long long. There's worse things in that code
than type-punned pointers..
--
Alan Modra
IBM OzLabs - Linux Technology Centre