This is the mail archive of the gcc-bugs@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]

[Bug target/50457] SH2A atomic functions


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50457

--- Comment #14 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-10-03 21:36:18 UTC ---
Author: olegendo
Date: Wed Oct  3 21:36:14 2012
New Revision: 192051

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192051
Log:
    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.


Added:
    trunk/libgcc/config/sh/linux-atomic.c
Removed:
    trunk/libgcc/config/sh/linux-atomic.S
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sh/sh-c.c
    trunk/gcc/config/sh/sh-protos.h
    trunk/gcc/config/sh/sh.c
    trunk/gcc/config/sh/sh.h
    trunk/libgcc/ChangeLog
    trunk/libgcc/config/sh/t-linux


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