re PR lto/41584 (WHOPR doesn't grok empty units)
authorRichard Guenther <rguenther@suse.de>
Thu, 3 Jun 2010 14:22:46 +0000 (14:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 3 Jun 2010 14:22:46 +0000 (14:22 +0000)
2010-06-03  Richard Guenther  <rguenther@suse.de>

PR lto/41584
* gcc.dg/lto/20100603-1_0.c: New testcase.
* gcc.dg/lto/20100603-2_0.c: Likewise.
* gcc.dg/lto/20100603-3_0.c: Likewise.

From-SVN: r160223

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/20100603-1_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20100603-2_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20100603-3_0.c [new file with mode: 0644]

index ccbd30c6fdc2ed902ed860e9aff6008960b06e98..f4e8c758d2bed7797b1a92b862fc8dfec00997ce 100644 (file)
@@ -1,3 +1,10 @@
+2010-06-03  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/41584
+       * gcc.dg/lto/20100603-1_0.c: New testcase.
+       * gcc.dg/lto/20100603-2_0.c: Likewise.
+       * gcc.dg/lto/20100603-3_0.c: Likewise.
+
 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        PR target/44218
diff --git a/gcc/testsuite/gcc.dg/lto/20100603-1_0.c b/gcc/testsuite/gcc.dg/lto/20100603-1_0.c
new file mode 100644 (file)
index 0000000..cc35c78
--- /dev/null
@@ -0,0 +1,4 @@
+/* { dg-lto-do link } */
+/* { dg-extra-ld-options {-r -nostdlib} } */
+
+/* This file intentionally left empty.  */
diff --git a/gcc/testsuite/gcc.dg/lto/20100603-2_0.c b/gcc/testsuite/gcc.dg/lto/20100603-2_0.c
new file mode 100644 (file)
index 0000000..11bee49
--- /dev/null
@@ -0,0 +1,5 @@
+/* { dg-lto-do link } */
+/* { dg-extra-ld-options {-r -nostdlib} } */
+
+int foo;
+int *i = &foo;
diff --git a/gcc/testsuite/gcc.dg/lto/20100603-3_0.c b/gcc/testsuite/gcc.dg/lto/20100603-3_0.c
new file mode 100644 (file)
index 0000000..3fc08fd
--- /dev/null
@@ -0,0 +1,4 @@
+/* { dg-lto-do link } */
+/* { dg-extra-ld-options {-r -nostdlib} } */
+
+int i = 42;