From: Jan Hubicka Date: Sun, 29 Mar 2015 15:41:55 +0000 (+0200) Subject: re PR ipa/65588 (lto1: internal compiler error: Segmentation fault) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43b11666ccdfed41cab5b053a705209e33528402;p=gcc.git re PR ipa/65588 (lto1: internal compiler error: Segmentation fault) PR ipa/65588 * gcc.target/i386/pr65588.c: New testcase. From-SVN: r221764 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7a6ac6891e3..38d3a046fcf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-03-27 Jan Hubicka + + PR ipa/65588 + * gcc.target/i386/pr65588.c: New testcase. + 2015-03-29 Thomas Koenig PR libgfortran/65563 diff --git a/gcc/testsuite/gcc.target/i386/pr65588.c b/gcc/testsuite/gcc.target/i386/pr65588.c new file mode 100644 index 00000000000..77f571239c6 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr65588.c @@ -0,0 +1,11 @@ +/* { dg-do link } */ +/* { dg-require-effective-target lto } */ +/* { dg-options "-O2 -flto" } */ +#ifdef __x86_64__ +register volatile int a __asm__("%rsp"); +#else +register volatile int a __asm__("%esp"); +#endif +__attribute__ ((used)) +int t () { a = 0; } +int main () { a = 0; }