aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-12-16 14:31:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-12-16 14:31:14 +0000
commit271d01dfbb534e2311e43ec78442d43d95d12586 (patch)
tree6f7c9bd279782ca84437224b4fd99e0288beede2 /gcc/testsuite/gcc.dg
parent002aad3fca5c5c3401be97d3088a81bc7bd1b196 (diff)
downloadgcc-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.c9
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() {}