diff options
author | Richard Guenther <rguenther@suse.de> | 2011-12-16 14:31:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-12-16 14:31:14 +0000 |
commit | 271d01dfbb534e2311e43ec78442d43d95d12586 (patch) | |
tree | 6f7c9bd279782ca84437224b4fd99e0288beede2 /gcc/testsuite/gcc.dg | |
parent | 002aad3fca5c5c3401be97d3088a81bc7bd1b196 (diff) | |
download | gcc-271d01dfbb534e2311e43ec78442d43d95d12586.zip gcc-271d01dfbb534e2311e43ec78442d43d95d12586.tar.gz gcc-271d01dfbb534e2311e43ec78442d43d95d12586.tar.bz2 |
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
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/pr51572-1_0.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/pr51572-1_0.c b/gcc/testsuite/gcc.dg/lto/pr51572-1_0.c new file mode 100644 index 0000000..dfe5297 --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/pr51572-1_0.c @@ -0,0 +1,9 @@ +/* { dg-lto-do link } */ +/* { dg-lto-options { { -flto -g } } } */ + +typedef int T; +void fn (void) +{ + static T t; +} +int main() {} |