diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/gcc.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lto/20100723-1_0.C | 12 |
4 files changed, 24 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a566ff..a616cde 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-07-23 Richard Guenther <rguenther@suse.de> + + PR lto/43071 + * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug + for -flto and -fwhopr. + 2010-07-23 Kai Tietz <kai.tietz@onevision.com> PR target/41943 @@ -752,6 +752,7 @@ proper position among the other output files. */ %{static|static-libgcc:-plugin-opt=-pass-through=%(lto_libgcc)} \ %{static:-plugin-opt=-pass-through=-lc} \ } \ + %{flto:%<fcompare-debug*} %{fwhopr*:%<fcompare-debug*} \ %{flto} %{fwhopr*} %l " LINK_PIE_SPEC \ "%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}\ %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f6a20dc..9e8c046 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-07-23 Richard Guenther <rguenther@suse.de> + + PR lto/43071 + * g++.dg/lto/20100723-1_0.C: New testcase. + 2010-07-23 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/aes-avx-check.h (main): Require OSXSAVE for diff --git a/gcc/testsuite/g++.dg/lto/20100723-1_0.C b/gcc/testsuite/g++.dg/lto/20100723-1_0.C new file mode 100644 index 0000000..e8d3c8c --- /dev/null +++ b/gcc/testsuite/g++.dg/lto/20100723-1_0.C @@ -0,0 +1,12 @@ +/* { dg-lto-do link } */ +/* { dg-lto-options {{-fcompare-debug -flto} {-fcompare-debug -fwhopr}} } */ + +struct S { + virtual void f() { } +}; + +int main(int, char *[]) +{ + S s; + return 0; +} |