aboutsummaryrefslogtreecommitdiff
path: root/gold/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-12-19 13:30:39 -0800
committerH.J. Lu <hjl.tools@gmail.com>2020-12-19 13:37:04 -0800
commit97aac4ec3293dc4a3fdb45a744a2991ae56514c2 (patch)
tree5d001c56054449c969d72d4c7dc770fd5cd2c14e /gold/ChangeLog
parent60108e47b5b16b32a62eb32c5e6f929ab2cb5cf1 (diff)
downloadgdb-97aac4ec3293dc4a3fdb45a744a2991ae56514c2.zip
gdb-97aac4ec3293dc4a3fdb45a744a2991ae56514c2.tar.gz
gdb-97aac4ec3293dc4a3fdb45a744a2991ae56514c2.tar.bz2
gold: Move sym declaration just before use
Move sym declaration just before use to avoid -Wmaybe-uninitialized warning from GCC 11. PR gold/27097 * incremental.cc (Sized_relobj_incr::do_add_symbols): Move sym declaration just before use. (Sized_incr_dynobj::do_add_symbols): Likewise. * plugin.cc (Sized_pluginobj::do_add_symbols): Likewise.
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r--gold/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 77b1f88..9614a87 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,11 @@
+2020-12-19 H.J. Lu <hjl.tools@gmail.com>
+
+ PR gold/27097
+ * incremental.cc (Sized_relobj_incr::do_add_symbols): Move sym
+ declaration just before use.
+ (Sized_incr_dynobj::do_add_symbols): Likewise.
+ * plugin.cc (Sized_pluginobj::do_add_symbols): Likewise.
+
2020-12-15 Cary Coutant <ccoutant@gmail.com>
* dwp.cc (class Dwo_file): Use new Ehdr::get_ei_osabi and