diff options
author | Alan Modra <alan@oc6313733251.ibm.com> | 2020-05-18 14:30:06 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-19 10:51:04 +0930 |
commit | 0e1d094e96739f71f5041731a1769021421a71ca (patch) | |
tree | b2d3d2d9fc526760cbd53c10635e13185ab44763 /gas/symbols.c | |
parent | 39a1432c09fd0242a0c832b0db04b6a71adea254 (diff) | |
download | gdb-0e1d094e96739f71f5041731a1769021421a71ca.zip gdb-0e1d094e96739f71f5041731a1769021421a71ca.tar.gz gdb-0e1d094e96739f71f5041731a1769021421a71ca.tar.bz2 |
Clear all local_symbol.lsy_flags
* symbols.c (local_symbol_make): Init all of lsy_flags.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r-- | gas/symbols.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/symbols.c b/gas/symbols.c index b1376a5..2fa7525 100644 --- a/gas/symbols.c +++ b/gas/symbols.c @@ -327,14 +327,14 @@ local_symbol_make (const char *name, segT section, valueT val, fragS *frag) { const char *name_copy; struct local_symbol *ret; + struct symbol_flags flags = { .sy_local_symbol = 1, .sy_resolved = 0 }; ++local_symbol_count; name_copy = save_symbol_name (name); ret = (struct local_symbol *) obstack_alloc (¬es, sizeof *ret); - ret->lsy_flags.sy_local_symbol = 1; - ret->lsy_flags.sy_resolved = 0; + ret->lsy_flags = flags; ret->lsy_name = name_copy; ret->lsy_section = section; local_symbol_set_frag (ret, frag); |