Patchwork Check sync_char_short for gcc/testsuite/gcc.dg/lto/20090313_0.c

login
register
mail settings
Submitter Bingfeng Mei
Date July 20, 2010, 12:13 p.m.
Message ID <7FB04A5C213E9943A72EE127DB74F0ADA6897AD4DE@SJEXCHCCR02.corp.ad.broadcom.com>
Download mbox | patch
Permalink /patch/59303/
State New
Headers show

Comments

Bingfeng Mei - July 20, 2010, 12:13 p.m.
Hi,
I came across a test failure which should check whether target
supports atomic operations since it calls __sync_fetch_and_add.  
OK for trunk?

Cheers,
Bingfeng Mei

2010-07-20  Bingfeng Mei  <bmei@broadcom.com>

	* gcc.dg/lto/20090313_0.c: Use dg-require-effective-target
        sync_char_short
Diego Novillo - July 20, 2010, 12:17 p.m.
On 10-07-20 08:13 , Bingfeng Mei wrote:

> 2010-07-20  Bingfeng Mei<bmei@broadcom.com>
>
> 	* gcc.dg/lto/20090313_0.c: Use dg-require-effective-target
>          sync_char_short

OK.


Diego.

Patch

Index: 20090313_0.c
===================================================================
--- 20090313_0.c        (revision 162329)
+++ 20090313_0.c        (working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-lto-options "-mcpu=v9" { target sparc*-*-* } } */
+/* { dg-require-effective-target sync_char_short } */
 void
 _cairo_clip_path_reference () {
   int a;