From: Richard Guenther Date: Thu, 3 Jun 2010 14:22:46 +0000 (+0000) Subject: re PR lto/41584 (WHOPR doesn't grok empty units) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f278d75781de7c516c74f60ece08d76f748e2404;p=gcc.git re PR lto/41584 (WHOPR doesn't grok empty units) 2010-06-03 Richard Guenther 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ccbd30c6fdc..f4e8c758d2b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2010-06-03 Richard Guenther + + 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 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 index 00000000000..cc35c78cfae --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/20100603-1_0.c @@ -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 index 00000000000..11bee496d9c --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/20100603-2_0.c @@ -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 index 00000000000..3fc08fdbf6b --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/20100603-3_0.c @@ -0,0 +1,4 @@ +/* { dg-lto-do link } */ +/* { dg-extra-ld-options {-r -nostdlib} } */ + +int i = 42;