summaryrefslogtreecommitdiffstats
path: root/gold/object.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-01-28 20:09:18 +0000
committerIan Lance Taylor <ian@airs.com>2009-01-28 20:09:18 +0000
commite0ebcf42c2dfc4e486eb73807806ee813a9a0f50 (patch)
tree30bb2d0be9fc41217341f6fe2686a6ca4ade3ff0 /gold/object.cc
parent528aeb629fb4b25a56e0a523a3cbc2c5366fa6b0 (diff)
downloadppe42-binutils-e0ebcf42c2dfc4e486eb73807806ee813a9a0f50.tar.gz
ppe42-binutils-e0ebcf42c2dfc4e486eb73807806ee813a9a0f50.zip
* gold.h: Include <cstring> and <stdint.h>.
* version.cc: Include <cstdio>. * object.cc (Sized_relobj::do_layout): Initialize gc_sd to avoid a warning. * reduced_debug_output.cc (insert_into_vector): Rename from Insert_into_vector; change all callers. Use Swap_unaligned to avoid aliasing issue; remove union since it is unnecessary.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/object.cc b/gold/object.cc
index 9030abe5b3..a05dcfc5e7 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -913,7 +913,7 @@ Sized_relobj<size, big_endian>::do_layout(Symbol_table* symtab,
&& symtab->gc()->is_worklist_ready());
if (shnum == 0)
return;
- Symbols_data* gc_sd;
+ Symbols_data* gc_sd = NULL;
if (is_gc_pass_one)
{
// During garbage collection save the symbols data to use it when
OpenPOWER on IntegriCloud