gcc/libgo/go
Ian Lance Taylor cba8a572c2 re PR go/89172 (FAIL: runtime/pprof)
PR go/89172
    internal/cpu, runtime, runtime/pprof: handle function descriptors
    
    When using PPC64 ELF ABI v1 a function address is not a PC, but is the
    address of a function descriptor.  The first field in the function
    descriptor is the actual PC (see
    http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi.html#FUNC-DES).
    The libbacktrace library knows about this, and libgo uses actual PC
    values consistently except for the helper function funcPC that appears
    in both runtime and runtime/pprof.
    
    This patch fixes funcPC by recording, in the internal/cpu package,
    whether function descriptors are being used.  We have to check for
    function descriptors using a C compiler check, because GCC can be
    configured using --with-abi to select the ELF ABI to use.
    
    Fixes https://gcc.gnu.org/PR89172
    
    Reviewed-on: https://go-review.googlesource.com/c/162978

From-SVN: r269266
2019-02-27 22:35:10 +00:00
..
archive libgo: add hurd build tags 2019-02-01 21:57:36 +00:00
bufio libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
builtin libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
bytes libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
cmd cmd/go: preserve CC for TestScript child processes 2019-02-27 01:11:20 +00:00
compress libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
container libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
context libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
crypto libgo: update to Go 1.12 release 2019-02-26 15:38:12 +00:00
database/sql libgo: update to Go 1.12 release 2019-02-26 15:38:12 +00:00
debug libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
encoding libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
errors
expvar libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
flag libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
fmt libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
golang.org/x/tools golang.org/x/tools/go/analysis: pass "gccgo" to types.SizesFor 2019-01-22 15:43:40 +00:00
hash libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
html libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
image libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
index/suffixarray
internal re PR go/89407 (go bootstrap failure on s390x starting with r268941) 2019-02-21 01:06:01 +00:00
io libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
log libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
math libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
mime libgo: add hurd build tags 2019-02-01 21:57:36 +00:00
net libgo: update to Go 1.12 release 2019-02-26 15:38:12 +00:00
os libgo: update to Go 1.12 release 2019-02-26 15:38:12 +00:00
path libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
plugin libgo: add hurd build tags 2019-02-01 21:57:36 +00:00
reflect libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
regexp libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
runtime re PR go/89172 (FAIL: runtime/pprof) 2019-02-27 22:35:10 +00:00
sort libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
strconv libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
strings libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
sync libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
syscall libgo: update to Go 1.12 release 2019-02-26 15:38:12 +00:00
testdata libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
testing libgo: update to Go1.12rc1 2019-02-26 01:00:39 +00:00
text libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
time libgo: add hurd build tags 2019-02-01 21:57:36 +00:00
unicode libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00