aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-06-24 16:54:22 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-06-24 16:54:22 +0000
commit2b92d5c69b4e4ffd89e6bfe928ea2cc2114357a8 (patch)
tree318ef6fa71679125858dacabc9a1992333294ccc /libgo/runtime
parent1e3d475ea16e89332e07651d61b60b408e0a0932 (diff)
downloadgcc-2b92d5c69b4e4ffd89e6bfe928ea2cc2114357a8.zip
gcc-2b92d5c69b4e4ffd89e6bfe928ea2cc2114357a8.tar.gz
gcc-2b92d5c69b4e4ffd89e6bfe928ea2cc2114357a8.tar.bz2
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
Diffstat (limited to 'libgo/runtime')
-rw-r--r--libgo/runtime/go-memcmp.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libgo/runtime/go-memcmp.c b/libgo/runtime/go-memcmp.c
deleted file mode 100644
index 78a356b..0000000
--- a/libgo/runtime/go-memcmp.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* go-memcmp.c -- the go memory comparison function.
-
- Copyright 2012 The Go Authors. All rights reserved.
- Use of this source code is governed by a BSD-style
- license that can be found in the LICENSE file. */
-
-#include "runtime.h"
-
-intgo
-__go_memcmp (const void *p1, const void *p2, uintptr len)
-{
- return __builtin_memcmp (p1, p2, len);
-}