From f6b1e65ec393b757a70cb30b0d8ab0ed1af3dedf Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 24 Jan 2013 19:44:23 +0000 Subject: re PR go/46986 (Go is not supported on Darwin) PR go/46986 all: prepend #__USER_LABEL_PREFIX__ to mangled Go symbols For old-fashioned Darwin. From-SVN: r195438 --- libgo/runtime/go-now.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libgo/runtime/go-now.c') diff --git a/libgo/runtime/go-now.c b/libgo/runtime/go-now.c index ede4493..73cc160 100644 --- a/libgo/runtime/go-now.c +++ b/libgo/runtime/go-now.c @@ -6,6 +6,8 @@ #include #include +#include "runtime.h" + // Return current time. This is the implementation of time.now(). struct time_now_ret @@ -15,7 +17,7 @@ struct time_now_ret }; struct time_now_ret now() - __asm__ ("time.now") + __asm__ (GOSYM_PREFIX "time.now") __attribute__ ((no_split_stack)); struct time_now_ret -- cgit v1.1