diff mbox

Adjust gcc.dg/lto/20120723_0.c for SPARC

Message ID 22528227.jYtGh5BrGI@polaris
State New
Headers show

Commit Message

Eric Botcazou Oct. 4, 2012, 4:58 p.m. UTC
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  <ebotcazou@adacore.com>

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

Patch

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);