From patchwork Thu Oct 4 16:58:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Adjust gcc.dg/lto/20120723_0.c for SPARC From: Eric Botcazou X-Patchwork-Id: 189209 Message-Id: <22528227.jYtGh5BrGI@polaris> To: gcc-patches@gcc.gnu.org Date: Thu, 04 Oct 2012 18:58:34 +0200 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 * gcc.dg/lto/20120723_0.c: Skip on SPARC 32-bit. 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);