2010-07-23 Richard Guenther <rguenther@suse.de>
PR lto/43071
* gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
for -flto and -fwhopr.
* g++.dg/lto/
20100723-1_0.C: New testcase.
From-SVN: r162481
+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
%{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}}}\
+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
--- /dev/null
+/* { 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;
+}