projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5667638
)
re PR go/46958 (ARM Go Does Not Compile (__builtin_return_address))
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 5 Jan 2011 00:07:59 +0000
(
00:07
+0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 5 Jan 2011 00:07:59 +0000
(
00:07
+0000)
PR go/46958
PR go/46965
Call __builtin_return_address with 0 rather than 1.
From-SVN: r168495
libgo/runtime/go-caller.c
patch
|
blob
|
history
diff --git
a/libgo/runtime/go-caller.c
b/libgo/runtime/go-caller.c
index
8402958
..
b18759f
100644
(file)
--- 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;