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] s390: support for builtin atomics


Adrian Straetling wrote:

> gcc/ChangeLog:
> 	* config/s390/s390.md: ("UNSPECV_MB", "UNSPECV_CAS"): New constants.
> 	("type"): Add "sem" to 'type' attribute.
> 	("memory_barrier","*memory_barrier", "sync_compare_and_swapdi",
> 	"sync_compare_and_swapsi", "sync_compare_and_swap_ccdi",
> 	"sync_compare_and_swap_ccsi", "*sync_compare_and_swap_ccdi",
> 	"*sync_compare_and_swap_ccsi"): New patterns.
> 	* config/s390/2064.md: ("z_sem"): New insn_reservation.
> 	* config/s390/2084.md: ("x_sem"): New insn_reservation.
> 	* config/s390/s390.c: (s390_compare_emitted): New global variable.
> 	(s390_emit_compare): Do not emit comparison again after cas.
> 	* config/s390/s390.h: Export s390_compare_emitted.
> 
> libstdc++/ChangeLog:	
> 	* config/cpu/s390/atomicity.h: (__exchange_and_add, 
> 	__atomic_add):Use the builtins for atomic memory operations.

Applied, thanks!

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  Linux on zSeries Development
  Ulrich.Weigand@de.ibm.com


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