diff options
author | Cherry Zhang <cherryyz@google.com> | 2019-05-08 17:40:45 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-05-08 17:40:45 +0000 |
commit | fbe4e644c0c8f1303ec91a25b8da6e626976500c (patch) | |
tree | 87a1cfc98677c590f437af9209a3c78b34b5e9ef /libgo/runtime | |
parent | 5345ac5a110a5fcafaa9bdf3116b8252de2d96c6 (diff) | |
download | gcc-fbe4e644c0c8f1303ec91a25b8da6e626976500c.zip gcc-fbe4e644c0c8f1303ec91a25b8da6e626976500c.tar.gz gcc-fbe4e644c0c8f1303ec91a25b8da6e626976500c.tar.bz2 |
runtime: use builtin memmove directly
We can use the intrinsic memmove directly, without going through
C.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/170004
* go-gcc.cc (Gcc_backend::Gcc_backend): Define memmove builtin.
From-SVN: r271016
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/go-memmove.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libgo/runtime/go-memmove.c b/libgo/runtime/go-memmove.c deleted file mode 100644 index a6fda08..0000000 --- a/libgo/runtime/go-memmove.c +++ /dev/null @@ -1,16 +0,0 @@ -/* go-memmove.c -- move one memory buffer to another - - Copyright 2016 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" - -void move(void *, void *, uintptr) - __asm__ (GOSYM_PREFIX "runtime.memmove"); - -void -move (void *p1, void *p2, uintptr len) -{ - __builtin_memmove (p1, p2, len); -} |