Bug 46958 - ARM Go Does Not Compile (__builtin_return_address)
Summary: ARM Go Does Not Compile (__builtin_return_address)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: go (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-15 15:20 UTC by Joel Sherrill
Modified: 2018-07-01 04:44 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Sherrill 2010-12-15 15:20:57 UTC
arm-rtems4.11-gcc (GCC) 4.6.0 20101214 (experimental) [trunk revision 167806]

/users/joel/test-gcc/gcc-svn/libgo/runtime/go-caller.c: In function 'Caller':
/users/joel/test-gcc/gcc-svn/libgo/runtime/go-caller.c:34:60: error: unsupported argument to '__builtin_return_address' [-Werror]
cc1: all warnings being treated as errors
Comment 1 Matthias Klose 2010-12-18 17:00:55 UTC
same build failure on ia64-linux
Comment 2 ian@gcc.gnu.org 2011-01-05 00:08:07 UTC
Author: ian
Date: Wed Jan  5 00:07:59 2011
New Revision: 168495

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168495
Log:
	PR go/46958
	PR go/46965
Call __builtin_return_address with 0 rather than 1.

Modified:
    trunk/libgo/runtime/go-caller.c
Comment 3 Ian Lance Taylor 2011-01-05 00:08:43 UTC
Fixed.
Comment 4 Ian Lance Taylor 2011-01-05 00:09:45 UTC
Mark as fixed.