compiler: use builtin memcmp directly
commit2b92d5c69b4e4ffd89e6bfe928ea2cc2114357a8
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 24 Jun 2019 16:54:22 +0000 (24 16:54 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 24 Jun 2019 16:54:22 +0000 (24 16:54 +0000)
tree318ef6fa71679125858dacabc9a1992333294ccc
parent1e3d475ea16e89332e07651d61b60b408e0a0932
compiler: use builtin memcmp directly

    Instead of going through a C function __go_memcmp, we can just
    use __builtin_memcmp directly. This allows more optimizations in
    the compiler backend.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/183537

From-SVN: r272620
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.def
libgo/Makefile.am
libgo/Makefile.in
libgo/runtime/go-memcmp.c [deleted file]