This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Support Xilinx MicroBlaze processor - patch 1
- From: Michael Eager <eager at eagercon dot com>
- To: tromey at redhat dot com
- Cc: Nick Clifton <nickc at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>, binutils at sourceware dot org
- Date: Fri, 07 Aug 2009 09:12:09 -0700
- Subject: Re: Support Xilinx MicroBlaze processor - patch 1
- References: <4A7314FB.7040803@eagercon.com> <Pine.LNX.4.64.0907311733000.17822@digraph.polyomino.org.uk> <4A74DF49.3090906@eagercon.com> <4A7B15C1.6040002@redhat.com> <m3my6beiwc.fsf@fleche.redhat.com>
Tom Tromey wrote:
"Nick" == Nick Clifton <nickc@redhat.com> writes:
Nick> Approved and applied.
This caused a build failure for me. I did a build on the GCC compile
farm (x86-64) and got:
/home/tromey/auto-test-gdb/gdb/bfd/elf32-microblaze.c: In function âmicroblaze_elf_check_relocsâ:
/home/tromey/auto-test-gdb/gdb/bfd/elf32-microblaze.c:2135: warning: dereferencing type-punned pointer will break strict-aliasing rules
I think that the fix is
diff -r1.1 elf32-microblaze.c
2134,2135c2134,2135
< head = ((struct elf32_mb_dyn_relocs **)
< &elf_section_data (s)->local_dynrel);
---
> head = &((struct elf32_mb_dyn_relocs *)
> elf_section_data (s)->local_dynrel);
I'll have to set up an 64-bit test system to verify this.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077