aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-09-30 14:31:15 +0930
committerAlan Modra <amodra@gmail.com>2020-09-30 14:31:15 +0930
commite37c930f9e4ad20901493608f276011999efdf8f (patch)
treed1fcb4cb37bde1bc524af2c3cc479c77cdff0014 /gas/config
parent529908cbd0afc2524044b7df3626c09d0bdae12d (diff)
downloadgdb-e37c930f9e4ad20901493608f276011999efdf8f.zip
gdb-e37c930f9e4ad20901493608f276011999efdf8f.tar.gz
gdb-e37c930f9e4ad20901493608f276011999efdf8f.tar.bz2
gcc-4.4.7 warning fixes
* config/obj-elf.c (obj_elf_change_section): Rename variable to avoid shadowing warning. * symbols.c (symbol_entry_find): Init all symbol_flags fields.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index b1c9902..cd457ab 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -762,8 +762,8 @@ obj_elf_change_section (const char *name,
/* We could be repurposing an undefined symbol here: make sure we
reset sy_value to look like other section symbols in order to avoid
trying to incorrectly resolve this section symbol later on. */
- static const expressionS expr = { .X_op = O_constant };
- symbol_set_value_expression (secsym, &expr);
+ static const expressionS exp = { .X_op = O_constant };
+ symbol_set_value_expression (secsym, &exp);
symbol_set_bfdsym (secsym, sec->symbol);
}
else