diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-01-05 00:07:59 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-01-05 00:07:59 +0000 |
commit | a3bc69c529d0d4d71b984b034274f19a15d02284 (patch) | |
tree | 3b4dbf2f7e67ed3d4c5eb64ffb9467f297f79dec /libgo/runtime/go-caller.c | |
parent | 5667638c698a7278aba553815e68226cd8d604d8 (diff) | |
download | gcc-a3bc69c529d0d4d71b984b034274f19a15d02284.zip gcc-a3bc69c529d0d4d71b984b034274f19a15d02284.tar.gz gcc-a3bc69c529d0d4d71b984b034274f19a15d02284.tar.bz2 |
re PR go/46958 (ARM Go Does Not Compile (__builtin_return_address))
PR go/46958
PR go/46965
Call __builtin_return_address with 0 rather than 1.
From-SVN: r168495
Diffstat (limited to 'libgo/runtime/go-caller.c')
-rw-r--r-- | libgo/runtime/go-caller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/go-caller.c b/libgo/runtime/go-caller.c index 8402958..b18759f 100644 --- a/libgo/runtime/go-caller.c +++ b/libgo/runtime/go-caller.c @@ -31,7 +31,7 @@ Caller (int n __attribute__ ((unused))) /* A proper implementation needs to dig through the debugging information. */ - ret.pc = (uint64_t) (uintptr_t) __builtin_return_address (1); + ret.pc = (uint64_t) (uintptr_t) __builtin_return_address (0); ret.file.__data = NULL; ret.file.__length = 0; ret.line = 0; |