This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][SH] fix atomic function names


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]