As noted by Martin in http://gcc.gnu.org/ml/gcc-patches/2012-08/msg00116.html, 
the testcase is invalid C and cannot pass on SPARC 32-bit because of the ABI.

Tested on SPARC/Solaris 10, applied on the mainline.


2012-10-04  Eric Botcazou  <ebotca...@adacore.com>

        * gcc.dg/lto/20120723_0.c: Skip on SPARC 32-bit.


-- 
Eric Botcazou
Index: gcc.dg/lto/20120723_0.c
===================================================================
--- gcc.dg/lto/20120723_0.c	(revision 192073)
+++ gcc.dg/lto/20120723_0.c	(working copy)
@@ -1,7 +1,9 @@
 /* Make sure that by reference and by value aggregate jump functions do not get
-   mixed up.  */
+   mixed up.
+   ??? This testcase is invalid C and can only pass on specific platforms.  */
 /* { dg-lto-do run } */
-/* { dg-lto-options {{-O3 -fno-early-inlining -flto}} } */
+/* { dg-skip-if "" { { sparc*-*-* } && ilp32 } { "*" } { "" } } */
+/* { dg-lto-options { {-O3 -fno-early-inlining -flto}} } */
 
 extern void abort (void);
 

Reply via email to