OSDN Git Service

Fix PR debug/45024
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Jul 2010 16:25:17 +0000 (16:25 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Jul 2010 16:25:17 +0000 (16:25 +0000)
commit60bf07c739ff2b330975a110c607b80feaa7d1d9
tree4aceab85a0b196e0ed32687ec59376296d1556a1
parentbe18556fae23e5b53c6219b22f23aeba6ccc2b32
Fix PR debug/45024

gcc/ChangeLog:
PR debug/45024
* dwarf2out.c (scope_die_for): Don't fall back to the compilation
unit DIE if we can find the scope DIE.

gcc/testsuite/ChangeLog:
PR debug/45024
* g++.dg/debug/dwarf2/nested-2.C: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162420 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/nested-2.C [new file with mode: 0644]