re PR lto/43071 (ICE: SIGSEGV with -fwhopr -fcompare-debug)

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
This commit is contained in:
Richard Guenther 2010-07-23 19:30:37 +00:00 committed by Richard Biener
parent bebb1f2034
commit aff08b126b
4 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -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}}}\

View File

@ -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

View File

@ -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;
}