This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] s390: support for builtin atomics
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: straetling at de dot ibm dot com (Adrian Straetling)
- Cc: Ulrich dot Weigand at de dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 7 Jun 2005 18:35:47 +0200 (CEST)
- Subject: 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