aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-copy.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2011-04-13 21:00:59 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-04-13 21:00:59 +0000
commitb39c10b81306aeeefc066ec7b1f0e23de9448c21 (patch)
tree32a57ad9ca89c95394a45e92649f097c96b50924 /libgo/runtime/go-copy.c
parent516d9427ed538547a182833b2cf16f557c932710 (diff)
downloadgcc-b39c10b81306aeeefc066ec7b1f0e23de9448c21.zip
gcc-b39c10b81306aeeefc066ec7b1f0e23de9448c21.tar.gz
gcc-b39c10b81306aeeefc066ec7b1f0e23de9448c21.tar.bz2
Unify handling of runtime support functions.
This introduces the new approach, and rewrites the lowering code which uses runtime functions. The code which calls runtime functions at GENERIC conversion time is not yet rewritten. From-SVN: r172396
Diffstat (limited to 'libgo/runtime/go-copy.c')
-rw-r--r--libgo/runtime/go-copy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/runtime/go-copy.c b/libgo/runtime/go-copy.c
index 998aeb9..05e16acb 100644
--- a/libgo/runtime/go-copy.c
+++ b/libgo/runtime/go-copy.c
@@ -5,17 +5,18 @@
license that can be found in the LICENSE file. */
#include <stddef.h>
+#include <stdint.h>
/* We should be OK if we don't split the stack here, since we are just
calling memmove which shouldn't need much stack. If we don't do
this we will always split the stack, because of memmove. */
extern void
-__go_copy (void *, void *, size_t)
+__go_copy (void *, void *, uintptr_t)
__attribute__ ((no_split_stack));
void
-__go_copy (void *a, void *b, size_t len)
+__go_copy (void *a, void *b, uintptr_t len)
{
__builtin_memmove (a, b, len);
}