re PR bootstrap/51572 (LTO bootstrap failed with bootstrap-profiled)
authorRichard Guenther <rguenther@suse.de>
Fri, 16 Dec 2011 14:31:14 +0000 (14:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 16 Dec 2011 14:31:14 +0000 (14:31 +0000)
commit271d01dfbb534e2311e43ec78442d43d95d12586
tree6f7c9bd279782ca84437224b4fd99e0288beede2
parent002aad3fca5c5c3401be97d3088a81bc7bd1b196
re PR bootstrap/51572 (LTO bootstrap failed with bootstrap-profiled)

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.

From-SVN: r182401
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr51572-1_0.c [new file with mode: 0644]