diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-01-24 19:44:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-01-24 19:44:23 +0000 |
commit | f6b1e65ec393b757a70cb30b0d8ab0ed1af3dedf (patch) | |
tree | df60a3ed3befa98bc7bd75b2c51377fb20837ea7 /libgo/runtime/go-now.c | |
parent | f5ba49ac2e76583f732bc2cdb76ed54e59bffd09 (diff) | |
download | gcc-f6b1e65ec393b757a70cb30b0d8ab0ed1af3dedf.zip gcc-f6b1e65ec393b757a70cb30b0d8ab0ed1af3dedf.tar.gz gcc-f6b1e65ec393b757a70cb30b0d8ab0ed1af3dedf.tar.bz2 |
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
Diffstat (limited to 'libgo/runtime/go-now.c')
-rw-r--r-- | libgo/runtime/go-now.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <stdint.h> #include <sys/time.h> +#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 |