re PR target/50457 (SH2A atomic functions)
authorOleg Endo <olegendo@gcc.gnu.org>
Wed, 3 Oct 2012 21:36:14 +0000 (21:36 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Wed, 3 Oct 2012 21:36:14 +0000 (21:36 +0000)
commit9597375a25a1f993208611d1f3793d877c50d323
treefc71bcf1d0b65b9bef37251498b377478996703e
parent846b158cd9da478584980fff99df3dc25c459240
re PR target/50457 (SH2A atomic functions)

PR target/50457
* config/sh/sh.c (parse_validate_atomic_model_option): Handle name
strings in sh_atomic_model.
* config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation
to ...
* config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function.
Add __SH1__ and __SH2__ defines.  Add __SH_ATOMIC_MODEL_*__ define.
* config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name
variables.
(sh_cpu_cpp_builtins): Declare new function.

PR target/50457
* config/sh/linux-atomic.S: Delete.
* config/sh/linux-atomic.c: New.
* config/sh/t-linux (LIB2ADD): Replace linux-atomic.S with
linux-atomic.c.  Add cflags to disable warnings.

From-SVN: r192051
gcc/ChangeLog
gcc/config/sh/sh-c.c
gcc/config/sh/sh-protos.h
gcc/config/sh/sh.c
gcc/config/sh/sh.h
libgcc/ChangeLog
libgcc/config/sh/linux-atomic.S [deleted file]
libgcc/config/sh/linux-atomic.c [new file with mode: 0644]
libgcc/config/sh/t-linux