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/runtime.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/runtime.c')
-rw-r--r-- | libgo/runtime/runtime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/runtime/runtime.c b/libgo/runtime/runtime.c index ecd804d..b090169 100644 --- a/libgo/runtime/runtime.c +++ b/libgo/runtime/runtime.c @@ -24,8 +24,8 @@ runtime_gotraceback(void) static int32 argc; static byte** argv; -extern Slice os_Args asm ("os.Args"); -extern Slice syscall_Envs asm ("syscall.Envs"); +extern Slice os_Args __asm__ (GOSYM_PREFIX "os.Args"); +extern Slice syscall_Envs __asm__ (GOSYM_PREFIX "syscall.Envs"); void (*runtime_sysargs)(int32, uint8**); @@ -172,7 +172,7 @@ runtime_tickspersecond(void) } int64 runtime_pprof_runtime_cyclesPerSecond(void) - asm("runtime_pprof.runtime_cyclesPerSecond"); + __asm__ (GOSYM_PREFIX "runtime_pprof.runtime_cyclesPerSecond"); int64 runtime_pprof_runtime_cyclesPerSecond(void) |