re PR debug/65549 (crash in htab_hash_string with -flto -g)
authorRichard Biener <rguenther@suse.de>
Tue, 2 Jun 2015 12:33:02 +0000 (12:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 2 Jun 2015 12:33:02 +0000 (12:33 +0000)
commit71fa02e0d8932de4ba1a527f50df98bf211f2ffd
tree22931bbee0d1b3cac750714c57949b3adf241f39
parent1817fe58f258d6de8b7716927bad077d811fe39a
re PR debug/65549 (crash in htab_hash_string with -flto -g)

2015-06-02  Richard Biener  <rguenther@suse.de>

PR debug/65549
* dwarf2out.c (lookup_context_die): New function.
(resolve_addr): Avoid forcing a full DIE for the
target of a DW_TAG_GNU_call_site during late compilation.
Instead create a stub DIE without a type if we have a
context DIE present.

* g++.dg/lto/pr65549_0.C: New testcase.

From-SVN: r224029
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr65549_0.C [new file with mode: 0644]