2011-12-16 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Dec 2011 14:31:14 +0000 (14:31 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Dec 2011 14:31:14 +0000 (14:31 +0000)
commit909d92883f3526ac0b87cc3b0904285ff997e21c
tree6f7c9bd279782ca84437224b4fd99e0288beede2
parent15e6079f9d5b70ed1e8496d0a507502f9df78ef4
2011-12-16  Richard Guenther  <rguenther@suse.de>

PR lto/51572
* dwarf2out.c (gen_type_die_with_usage): Use the context of
the TYPE_DECL as well if it is file-scope.

* gcc.dg/lto/pr51572-1_0.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182401 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr51572-1_0.c [new file with mode: 0644]