From 43b11666ccdfed41cab5b053a705209e33528402 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 29 Mar 2015 17:41:55 +0200 Subject: [PATCH] re PR ipa/65588 (lto1: internal compiler error: Segmentation fault) PR ipa/65588 * gcc.target/i386/pr65588.c: New testcase. From-SVN: r221764 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/pr65588.c | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/pr65588.c 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; } -- 2.30.2