]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.22] 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:30 +0000 (20:26 +0000)
commite87be9833ed4db2b7a981766f847e47792401cc0
tree19c4dc86284872525aaf1d53cf884eaf7b221c6a
parent676d6100d89fb8527c42f072bc7b7a9b98700f84
[release-branch.go1.22] 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 #68972

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/+/607175
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/runtime/rt0_aix_ppc64.s