From: Jim Wilson Date: Thu, 30 May 2019 20:47:12 +0000 (+0000) Subject: Fix RISC-V build failure for go language. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00a0e1f5a3bd62519e4742477e11a32c7df2db98;p=gcc.git Fix RISC-V build failure for go language. gcc/go/ * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1 and BUILT_IN_ATOMIC_FETCH_OR_1. From-SVN: r271790 --- diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 255d3b5df6b..6e8b3a297a0 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,8 @@ +2019-05-30 Jim Wilson + + * go-gcc.cc (Gcc_backend::Gcc_backend): Add BUILT_IN_ATOMIC_FETCH_AND_1 + and BUILT_IN_ATOMIC_FETCH_OR_1. + 2019-05-16 Cherry Zhang * go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins. diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index 1b26f2bac93..91043b51463 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -871,6 +871,8 @@ Gcc_backend::Gcc_backend() NULL_TREE); this->define_builtin(BUILT_IN_ATOMIC_AND_FETCH_1, "__atomic_and_fetch_1", NULL, t, false, false); + this->define_builtin(BUILT_IN_ATOMIC_FETCH_AND_1, "__atomic_fetch_and_1", NULL, + t, false, false); t = build_function_type_list(unsigned_char_type_node, ptr_type_node, @@ -879,6 +881,8 @@ Gcc_backend::Gcc_backend() NULL_TREE); this->define_builtin(BUILT_IN_ATOMIC_OR_FETCH_1, "__atomic_or_fetch_1", NULL, t, false, false); + this->define_builtin(BUILT_IN_ATOMIC_FETCH_OR_1, "__atomic_fetch_or_1", NULL, + t, false, false); } // Get an unnamed integer type.