PATCH COMMITTED: Let gold build with gcc 4.3.0
Ian Lance Taylor
iant@google.com
Wed Mar 26 23:39:00 GMT 2008
I committed this patch to let gold build with gcc 4.3.0.
There were two mildly interesting things. First, gcc 4.3.0 found a
bug in gold using the array bounds check: x86_64.cc was using a 64-bit
swap where it should have been using a 32-bit swap. Second, I had to
add a configure test for a bug in gcc 4.3.0, gcc bug 35546.
Ian
2008-03-26 Ian Lance Taylor <iant@google.com>
PR gold/5986
Fix problems building gold with gcc 4.3.0.
* gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define.
(gold_error_at_location, gold_warning_at_location): Use it.
* configure.ac: Check whether we can compile and use a template
function with a printf attribute.
* x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value
when jumping over bytes.
* object.cc: Instantiate Object::read_section_data.
* debug.h: Include <cstring>
* dwarf_reader.cc: Include <algorithm>
* main.cc: Include <cstring>.
* options.cc: Include <cstring>.
* output.cc: Include <cstring>.
* script.cc: Include <cstring>.
* script.h: Include <string>.
* symtab.cc: Include <cstring> and <algorithm>.
* target-select.cc: Include <cstring>.
* version.cc: Include <string>.
* testsuite/testmain.cc: Include <cstdlib>.
* configure, config.in: Rebuild.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 9091 bytes
Desc: Let gold build with gcc 4.3.0
URL: <https://sourceware.org/pipermail/binutils/attachments/20080326/368c0a89/attachment.bin>
More information about the Binutils
mailing list