[PATCH][SH] fix atomic function names
Kaz Kojima
kkojima@rr.iij4u.or.jp
Thu Aug 6 21:47:00 GMT 2009
SUGIOKA Toshinobu <sugioka@itonet.co.jp> wrote:
> * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
> __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
> (ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
> (__sync_*_and_fetch_*, __sync_synchronize, __sync_lock_release_*):
> New function.
I've applied your patch as revision 150371 and have also
added __sync_*_and_fetch_* at revision 150469. Please
check current trunk.
As rth has said already, __sync_synchronize and
__sync_lock_release_* intrinsics are expanded directly
without library function calls on this target.
Regards,
kaz
More information about the Gcc-patches
mailing list