re PR ipa/65588 (lto1: internal compiler error: Segmentation fault)
authorJan Hubicka <hubicka@ucw.cz>
Sun, 29 Mar 2015 15:41:55 +0000 (17:41 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 29 Mar 2015 15:41:55 +0000 (15:41 +0000)
PR ipa/65588
* gcc.target/i386/pr65588.c: New testcase.

From-SVN: r221764

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr65588.c [new file with mode: 0644]

index 7a6ac6891e3477dbbb9e549ded9dcf9c5019678d..38d3a046fcf30db445bc30ce4e897acde61a2b5b 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR ipa/65588
+       * gcc.target/i386/pr65588.c: New testcase.
+
 2015-03-29  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        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 (file)
index 0000000..77f5712
--- /dev/null
@@ -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; }