arm.c (arm_init_libfuncs): Add __sync_synchronize.
authorAndrew Haley <aph@redhat.com>
Wed, 12 Aug 2009 15:54:37 +0000 (15:54 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Wed, 12 Aug 2009 15:54:37 +0000 (15:54 +0000)
2009-08-11  Andrew Haley  <aph@redhat.com>

* config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.

From-SVN: r150697

gcc/ChangeLog
gcc/config/arm/arm.c

index 60abbc7..13788c3 100644 (file)
@@ -1,3 +1,7 @@
+2009-08-11  Andrew Haley  <aph@redhat.com>
+
+       * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
+
 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
 
        PR bootstrap/40103
index ac63366..993d121 100644 (file)
@@ -55,6 +55,7 @@
 #include "langhooks.h"
 #include "df.h"
 #include "intl.h"
+#include "libfuncs.h"
 
 /* Forward definitions of types.  */
 typedef struct minipool_node    Mnode;
@@ -1062,6 +1063,9 @@ arm_init_libfuncs (void)
     default:
       break;
     }
+
+  if (TARGET_AAPCS_BASED)
+    synchronize_libfunc = init_one_libfunc ("__sync_synchronize");
 }
 
 /* On AAPCS systems, this is the "struct __va_list".  */