This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
more gcc-4.5 warning fixes
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Mon, 22 Jun 2009 10:23:37 +0930
- Subject: more gcc-4.5 warning fixes
include/elf/
* ppc.h (R_PPC_RELAX*): Define as enum.
bfd/
* elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch.
* elf32-v850.c (v850_elf_relocate_section): Warning fix.
cpu/
* m32c.opc (parse_lab_5_3): Use correct enum.
opcodes/
* m32c-asm.c: Regenerate.
Index: include/elf/ppc.h
===================================================================
RCS file: /cvs/src/src/include/elf/ppc.h,v
retrieving revision 1.23
diff -u -p -r1.23 ppc.h
--- include/elf/ppc.h 4 Mar 2009 05:50:48 -0000 1.23
+++ include/elf/ppc.h 21 Jun 2009 11:18:02 -0000
@@ -122,11 +122,13 @@ START_RELOC_NUMBERS (elf_ppc_reloc_type)
RELOC_NUMBER (R_PPC_EMB_BIT_FLD, 115)
RELOC_NUMBER (R_PPC_EMB_RELSDA, 116)
+#ifndef RELOC_MACROS_GEN_FUNC
/* Fake relocations for branch stubs, only used internally by ld. */
-#define R_PPC_RELAX32 245
-#define R_PPC_RELAX32PC 246
-#define R_PPC_RELAX32_PLT 247
-#define R_PPC_RELAX32PC_PLT 248
+ RELOC_NUMBER (R_PPC_RELAX32, 245)
+ RELOC_NUMBER (R_PPC_RELAX32PC, 246)
+ RELOC_NUMBER (R_PPC_RELAX32_PLT, 247)
+ RELOC_NUMBER (R_PPC_RELAX32PC_PLT, 248)
+#endif
/* These are GNU extensions used in PIC code sequences. */
RELOC_NUMBER (R_PPC_REL16, 249)
Index: bfd/elf32-v850.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-v850.c,v
retrieving revision 1.73
diff -u -p -r1.73 elf32-v850.c
--- bfd/elf32-v850.c 21 May 2009 14:15:48 -0000 1.73
+++ bfd/elf32-v850.c 21 Jun 2009 11:17:31 -0000
@@ -1680,7 +1680,7 @@ v850_elf_relocate_section (bfd *output_b
name = bfd_section_name (input_bfd, sec);
}
- switch (r)
+ switch ((int) r)
{
case bfd_reloc_overflow:
if (! ((*info->callbacks->reloc_overflow)
Index: bfd/elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.258
diff -u -p -r1.258 elf32-ppc.c
--- bfd/elf32-ppc.c 19 Jun 2009 03:30:45 -0000 1.258
+++ bfd/elf32-ppc.c 21 Jun 2009 14:38:30 -0000
@@ -3643,6 +3643,10 @@ ppc_elf_check_relocs (bfd *abfd,
case R_PPC_EMB_MRKREF:
case R_PPC_NONE:
case R_PPC_max:
+ case R_PPC_RELAX32:
+ case R_PPC_RELAX32PC:
+ case R_PPC_RELAX32_PLT:
+ case R_PPC_RELAX32PC_PLT:
break;
/* These should only appear in dynamic objects. */
Index: cpu/m32c.opc
===================================================================
RCS file: /cvs/src/src/cpu/m32c.opc,v
retrieving revision 1.11
diff -u -p -r1.11 m32c.opc
--- cpu/m32c.opc 5 Jul 2007 09:49:03 -0000 1.11
+++ cpu/m32c.opc 21 Jun 2009 11:17:51 -0000
@@ -571,7 +571,7 @@ parse_lab_5_3 (CGEN_CPU_DESC cd,
if (type_addr)
*type_addr = op_res;
- if (op_res == CGEN_PARSE_OPERAND_ADDRESS)
+ if (op_res == CGEN_PARSE_OPERAND_RESULT_QUEUED)
{
/* This is a hack; the field cannot handle near-zero signed
offsets that CGEN wants to put in to indicate an "empty"
Index: opcodes/m32c-asm.c
===================================================================
RCS file: /cvs/src/src/opcodes/m32c-asm.c,v
retrieving revision 1.14
diff -u -p -r1.14 m32c-asm.c
--- opcodes/m32c-asm.c 20 Jan 2009 07:22:30 -0000 1.14
+++ opcodes/m32c-asm.c 21 Jun 2009 11:18:09 -0000
@@ -540,7 +540,7 @@ parse_lab_5_3 (CGEN_CPU_DESC cd,
if (type_addr)
*type_addr = op_res;
- if (op_res == CGEN_PARSE_OPERAND_ADDRESS)
+ if (op_res == CGEN_PARSE_OPERAND_RESULT_QUEUED)
{
/* This is a hack; the field cannot handle near-zero signed
offsets that CGEN wants to put in to indicate an "empty"
--
Alan Modra
Australia Development Lab, IBM