Commit a3bc69c5 by Ian Lance Taylor

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
parent 5667638c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment