diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-01-28 20:09:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-01-28 20:09:18 +0000 |
commit | e0ebcf42c2dfc4e486eb73807806ee813a9a0f50 (patch) | |
tree | 30bb2d0be9fc41217341f6fe2686a6ca4ade3ff0 /gold/object.cc | |
parent | 528aeb629fb4b25a56e0a523a3cbc2c5366fa6b0 (diff) | |
download | gdb-e0ebcf42c2dfc4e486eb73807806ee813a9a0f50.zip gdb-e0ebcf42c2dfc4e486eb73807806ee813a9a0f50.tar.gz gdb-e0ebcf42c2dfc4e486eb73807806ee813a9a0f50.tar.bz2 |
* 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.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/object.cc b/gold/object.cc index 9030abe..a05dcfc 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 |