From: Ian Lance Taylor Date: Wed, 5 Jan 2011 00:07:59 +0000 (+0000) Subject: re PR go/46958 (ARM Go Does Not Compile (__builtin_return_address)) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3bc69c529d0d4d71b984b034274f19a15d02284;p=gcc.git 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 --- diff --git a/libgo/runtime/go-caller.c b/libgo/runtime/go-caller.c index 840295886b2..b18759f2f4b 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;