]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename __sync_compare_and_swap_* to __syn...
authorSUGIOKA Toshinobu <sugioka@itonet.co.jp>
Mon, 3 Aug 2009 10:33:16 +0000 (19:33 +0900)
committerKaz Kojima <kkojima@gcc.gnu.org>
Mon, 3 Aug 2009 10:33:16 +0000 (10:33 +0000)
* config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
__sync_compare_and_swap_* to __sync_val_compare_and_swap_*.

From-SVN: r150371

gcc/ChangeLog
gcc/config/sh/linux-atomic.asm

index ee8af4f9f2f898286fefb7abaea28f26c85f539b..965beac27c548e5d48264b302ba548b11af2f836 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
+
+       * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
+       __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
+
 2009-08-03  Richard Guenther  <rguenther@suse.de>
 
        * tree.c (make_vector_type): Build a main variant first,
index fd3a7720e995dfc3d5aa91ea0d1fb9b4b47e0a64..04b7d507c15167ef08f1b03298c3061742cfea6d 100644 (file)
@@ -54,10 +54,10 @@ ATOMIC_TEST_AND_SET (2,w,extu.w)
 ATOMIC_TEST_AND_SET (4,l,mov)
 
 #define ATOMIC_COMPARE_AND_SWAP(N,T,EXTS,EXT) \
-       .global __sync_compare_and_swap_##N; \
-       HIDDEN_FUNC(__sync_compare_and_swap_##N); \
+       .global __sync_val_compare_and_swap_##N; \
+       HIDDEN_FUNC(__sync_val_compare_and_swap_##N); \
        .align  2; \
-__sync_compare_and_swap_##N:; \
+__sync_val_compare_and_swap_##N:; \
        mova    1f, r0; \
        EXTS    r5, r5; \
        mov     r15, r1; \
@@ -69,7 +69,7 @@ __sync_compare_and_swap_##N:; \
 1:     mov     r1, r15; \
        rts; \
         EXT    r2, r0; \
-       ENDFUNC(__sync_compare_and_swap_##N)
+       ENDFUNC(__sync_val_compare_and_swap_##N)
 
 ATOMIC_COMPARE_AND_SWAP (1,b,exts.b,extu.b)
 ATOMIC_COMPARE_AND_SWAP (2,w,exts.w,extu.w)