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

login
register
mail settings
Submitter Eric Botcazou
Date Oct. 4, 2012, 4:58 p.m.
Message ID <22528227.jYtGh5BrGI@polaris>
Download mbox | patch
Permalink /patch/189209/
State New
Headers show

Comments

Eric Botcazou - Oct. 4, 2012, 4:58 p.m.
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.

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