[PATCH] Check sync_char_short for gcc/testsuite/gcc.dg/lto/20090313_0.c

Bingfeng Mei bmei@broadcom.com
Tue Jul 20 12:14:00 GMT 2010


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

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;



More information about the Gcc-patches mailing list