[gold commit] Improve ODR checking in gold
Cary Coutant
ccoutant@gmail.com
Thu Apr 9 18:57:00 GMT 2015
I've committed the following patch to make ODR checking slightly more
fuzzy, to tolerate slight differences in line numbers that might
result from different compilers or different compile options.
-cary
gold/
* debug.h (DEBUG_LOCATION): New.
(DEBUG_ALL): Include DEBUG_LOCATION.
(debug_string_to_enum): Add DEBUG_LOCATION.
* dwarf_reader.cc (Sized_dwarf_line_info::read_lines): Fix debug
output to print correct context.
(Sized_dwarf_line_info::do_addr2line): Add debug output. Return
up to 4 more locations at the beginning of the function.
* symtab.cc (Symbol_table::detect_odr_violations): Get canonical
result before sorting list of line numbers.
* testsuite/debug_msg.sh: Allow range of line numbers for
canonical results on optimized code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Improve-ODR-checking-in-gold.patch
Type: application/octet-stream
Size: 9595 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150409/b69df8dd/attachment.obj>
More information about the Binutils
mailing list