Improve ODR checking in gold.
authorCary Coutant <ccoutant@google.com>
Thu, 9 Apr 2015 18:52:21 +0000 (11:52 -0700)
committerCary Coutant <ccoutant@google.com>
Thu, 9 Apr 2015 18:53:01 +0000 (11:53 -0700)
commit437ddf0c4cb63fdb68c4bd1cc155144db344d0c5
tree125d12fcbbc64bc9b76e629407a64c687ac12000
parentcd6faa73f8e3b888ee8b73a733382a5587aca202
Improve ODR checking in gold.

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.
gold/ChangeLog
gold/debug.h
gold/dwarf_reader.cc
gold/symtab.cc
gold/testsuite/debug_msg.sh