diff options
author | Nick Clifton <nickc@redhat.com> | 2017-07-12 12:17:02 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-07-12 12:17:02 +0100 |
commit | 0bae9e9ec550c940e263b37f577bf11b2dabf934 (patch) | |
tree | 82c27756b67646e785e85fa9935d3ef4a87ac1b6 /gas | |
parent | 2fe40b6792e98dfe27e4521b2b33fe0f335ea1f0 (diff) | |
download | gdb-0bae9e9ec550c940e263b37f577bf11b2dabf934.zip gdb-0bae9e9ec550c940e263b37f577bf11b2dabf934.tar.gz gdb-0bae9e9ec550c940e263b37f577bf11b2dabf934.tar.bz2 |
Fix compile time warnings building the binutils with gcc 7.1.1.
bfd * elf32-xtensa.c (elf_xtensa_get_plt_section): Increase length of
plt_name buffer.
(elf_xtensa_get_gotplt_section): Increase length of got_name
buffer.
* mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add a
default return of FALSE.
* mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): Add a
default return of FALSE.
binutils * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to
sprintf.
* srconv.c (walk_tree_type): Initialise the spare field of the
IT_dty structure.
gas * config/tc-pru.c (md_assemble): Add continue statement after
handling 'E' operand character.
* config/tc-v850.c (md_assemble): Initialise the 'insn' variable.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 7 | ||||
-rw-r--r-- | gas/config/tc-pru.c | 7 | ||||
-rw-r--r-- | gas/config/tc-v850.c | 3 |
3 files changed, 13 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 829256a..e2c8f53 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2017-07-12 Nick Clifton <nickc@redhat.com> + + Fix compile time warnings using gcc 7.1.1. + * config/tc-pru.c (md_assemble): Add continue statement after + handling 'E' operand character. + * config/tc-v850.c (md_assemble): Initialise the 'insn' variable. + 2017-07-05 James Greenhalgh <james.greenhalgh@arm.com> * config/tc-arm.c (arm_cpus): Add Cortex-A55 and Cortex-A75. diff --git a/gas/config/tc-pru.c b/gas/config/tc-pru.c index 53ea7ef..d5aa5a5 100644 --- a/gas/config/tc-pru.c +++ b/gas/config/tc-pru.c @@ -296,9 +296,10 @@ typedef enum static PRU_MODE pru_mode = PRU_MODE_ASSEMBLE; /* This function is used to in self-checking mode - to check the assembled instruction - opcode should be the assembled opcode, and exp_opcode + to check the assembled instruction. + OPCODE should be the assembled opcode, and exp_opcode the parsed string representing the expected opcode. */ + static void pru_check_assembly (unsigned int opcode, const char *exp_opcode) { @@ -1698,6 +1699,8 @@ md_assemble (char *op_str) case 'E': pru_check_assembly (insn->insn_code, *argtk++); + continue; + default: BAD_CASE (*argp); } diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index 7b53474..dd7b54a 100644 --- a/gas/config/tc-v850.c +++ b/gas/config/tc-v850.c @@ -2298,7 +2298,7 @@ md_assemble (char *str) const unsigned char *opindex_ptr; int next_opindex; int relaxable = 0; - unsigned long insn; + unsigned long insn = 0; unsigned long insn_size; char *f = NULL; int i; @@ -3065,7 +3065,6 @@ md_assemble (char *str) dwarf2_emit_insn (0); /* Write out the instruction. */ - if (relaxable && fc > 0) { insn_size = 2; |