OSDN Git Service

2011-12-07 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2011 13:53:30 +0000 (13:53 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2011 13:53:30 +0000 (13:53 +0000)
PR lto/48100
* gcc.dg/lto/20111207-1_0.c: New testcase.
* gcc.dg/lto/20111207-1_1.c: Likewise.
* gcc.dg/lto/20111207-1_2.c: Likewise.
* gcc.dg/lto/20111207-1_3.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182082 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/20111207-1_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20111207-1_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20111207-1_2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20111207-1_3.c [new file with mode: 0644]

index 1763ada..857677b 100644 (file)
@@ -1,5 +1,13 @@
 2011-12-07  Richard Guenther  <rguenther@suse.de>
 
+       PR lto/48100
+       * gcc.dg/lto/20111207-1_0.c: New testcase.
+       * gcc.dg/lto/20111207-1_1.c: Likewise.
+       * gcc.dg/lto/20111207-1_2.c: Likewise.
+       * gcc.dg/lto/20111207-1_3.c: Likewise.
+
+2011-12-07  Richard Guenther  <rguenther@suse.de>
+
        PR tree-optimization/50823
        * gcc.dg/torture/pr50823.c: New testcase.
 
diff --git a/gcc/testsuite/gcc.dg/lto/20111207-1_0.c b/gcc/testsuite/gcc.dg/lto/20111207-1_0.c
new file mode 100644 (file)
index 0000000..4862640
--- /dev/null
@@ -0,0 +1,4 @@
+/* { dg-lto-do run } */
+/* { dg-lto-options { { -flto } } } */
+/* { dg-require-linker-plugin "" } */
+/* { dg-extra-ld-options "-fuse-linker-plugin" } */
diff --git a/gcc/testsuite/gcc.dg/lto/20111207-1_1.c b/gcc/testsuite/gcc.dg/lto/20111207-1_1.c
new file mode 100644 (file)
index 0000000..a616c19
--- /dev/null
@@ -0,0 +1,3 @@
+/* { dg-options "-fno-lto" } */
+
+int i;
diff --git a/gcc/testsuite/gcc.dg/lto/20111207-1_2.c b/gcc/testsuite/gcc.dg/lto/20111207-1_2.c
new file mode 100644 (file)
index 0000000..048f715
--- /dev/null
@@ -0,0 +1 @@
+int i;
diff --git a/gcc/testsuite/gcc.dg/lto/20111207-1_3.c b/gcc/testsuite/gcc.dg/lto/20111207-1_3.c
new file mode 100644 (file)
index 0000000..9beed59
--- /dev/null
@@ -0,0 +1,6 @@
+extern int i;
+
+int main()
+{
+  return i;
+}