Module Name: src Committed By: mrg Date: Wed Jul 6 09:01:36 UTC 2011
Modified Files: src/external/gpl3/binutils/dist/bfd: elf32-ppc.c src/gnu/dist/gdb6/bfd: elf32-ppc.c Log Message: cast to int as the fake relocs are not in enum elf_ppc_reloc_type, and GCC 4.5 complains about values not in the enum as part of a switch block. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/binutils/dist/bfd/elf32-ppc.c cvs rdiff -u -r1.1.1.2 -r1.2 src/gnu/dist/gdb6/bfd/elf32-ppc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/binutils/dist/bfd/elf32-ppc.c diff -u src/external/gpl3/binutils/dist/bfd/elf32-ppc.c:1.2 src/external/gpl3/binutils/dist/bfd/elf32-ppc.c:1.3 --- src/external/gpl3/binutils/dist/bfd/elf32-ppc.c:1.2 Fri Nov 20 22:51:29 2009 +++ src/external/gpl3/binutils/dist/bfd/elf32-ppc.c Wed Jul 6 09:01:35 2011 @@ -3352,7 +3352,8 @@ } r_type = ELF32_R_TYPE (rel->r_info); - switch (r_type) + /* Cast to int as the fake relocs are not in enum elf_ppc_reloc_type. */ + switch ((int)r_type) { case R_PPC_GOT_TLSLD16: case R_PPC_GOT_TLSLD16_LO: Index: src/gnu/dist/gdb6/bfd/elf32-ppc.c diff -u src/gnu/dist/gdb6/bfd/elf32-ppc.c:1.1.1.2 src/gnu/dist/gdb6/bfd/elf32-ppc.c:1.2 --- src/gnu/dist/gdb6/bfd/elf32-ppc.c:1.1.1.2 Sun Jul 2 20:19:31 2006 +++ src/gnu/dist/gdb6/bfd/elf32-ppc.c Wed Jul 6 09:01:36 2011 @@ -5842,7 +5842,8 @@ howto = NULL; if (r_type < R_PPC_max) howto = ppc_elf_howto_table[r_type]; - switch (r_type) + /* Cast to int as the fake relocs are not in enum elf_ppc_reloc_type. */ + switch ((int)r_type) { default: (*_bfd_error_handler)