]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR target/50457
authorolegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2012 21:36:14 +0000 (21:36 +0000)
committerolegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Oct 2012 21:36:14 +0000 (21:36 +0000)
commitcfaba0788333dbcebc4adbdec471fc72935356a2
treefc71bcf1d0b65b9bef37251498b377478996703e
parentf98fddd0f78537adbaa99a970c0d4cfad072ab7d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192051 138bc75d-0d04-0410-961f-82ee72b054a4
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