Patchwork Fix PR testsuite/33033

login
register
mail settings
Submitter Eric Botcazou
Date Jan. 12, 2011, 10:54 a.m.
Message ID <201101121154.28286.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/78534/
State New
Headers show

Comments

Eric Botcazou - Jan. 12, 2011, 10:54 a.m.
This is a long-standing glitch visible in the results on SPARC64/Linux when 
you configure --with-cpu=v8.  Fixed by using the kludge from gcc.dg/sync-2.c.

Tested on SPARC64/Solaris, applied on all active branches.


2011-01-12  Eric Botcazou  <ebotcazou@adacore.com>

	PR testsuite/33033
	* gcc.dg/20061124-1.c: Pass -mcpu=v9 on the SPARC.

Patch

Index: gcc.dg/20061124-1.c
===================================================================
--- gcc.dg/20061124-1.c	(revision 168632)
+++ gcc.dg/20061124-1.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-require-effective-target sync_char_short } */
+/* { dg-options "-mcpu=v9" { target sparc*-*-* } } */
 
 /* This testcase failed on s390 because no compare instruction for
    the check of FLAG was emitted.  */