]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.23] runtime: on AIX, fix call to _cgo_sys_thread_create in _rt0_p...
authorPaul E. Murphy <murp@ibm.com>
Mon, 19 Aug 2024 20:08:14 +0000 (15:08 -0500)
committerCherry Mui <cherryyz@google.com>
Wed, 21 Aug 2024 20:26:47 +0000 (20:26 +0000)
commit8002845759484ad55c8194199ec065d228ede6b2
tree022ccc80e26ee93884f15b60623e9a9781464c4a
parent9166d2feec7c6fe5e4db802cca162745dac93488
[release-branch.go1.23] runtime: on AIX, fix call to _cgo_sys_thread_create in _rt0_ppc64_aix_lib

The AIX ABI requires allocating parameter save space when calling
a function, even if the arguments are passed via registers.

gcc sometimes uses this space. In the case of the cgo c-archive
tests, it clobbered the storage space of argc/argv which prevented
the test program from running the expected test.

Fixes #68973

Change-Id: I8a267b463b1abb2b37ac85231f6c328f406b7515
Reviewed-on: https://go-review.googlesource.com/c/go/+/606895
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/go/+/607195
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/runtime/rt0_aix_ppc64.s