gold patch committed: Avoid unused variable warnings
Ian Lance Taylor
iant@google.com
Tue Jul 13 12:05:00 GMT 2010
This patch avoids unused variable warnings from current gcc. In a few
cases it corrects the test of whether a value was added to a map.
Committed.
Ian
2010-07-13 Philip Herron <herron.philip@googlemail.com>
Ian Lance Taylor <iant@google.com>
* output.h (Output_section_lookup_maps::add_merge_section):
Correct check of whether value was inserted.
(Output_section_lookup_maps::add_merge_input_section): Likewise.
(Output_section_lookup_maps::add_relaxed_input_section):
Likewise.
* arm.cc (Target_arm::got_section): Remove used local os.
* i386.cc (Target_i386::got_section): Likewise.
* x86_64.cc (Target_x86_64::got_section): Likewise.
* sparc.cc (Target_sparc::got_section): Likewise.
(Target_sparc::relocate): Remove unused local have_got_offset.
* powerpc.cc (Target_powerpc::relocate): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 8350 bytes
Desc: unused
URL: <https://sourceware.org/pipermail/binutils/attachments/20100713/ea647606/attachment.bin>
More information about the Binutils
mailing list