]> gcc.gnu.org Git - gcc.git/commit
go: Update usage of TARGET_AIX to TARGET_AIX_OS
authorPaul E. Murphy <murphyp@linux.ibm.com>
Thu, 22 Jun 2023 22:53:46 +0000 (17:53 -0500)
committerPeter Bergner <bergner@linux.ibm.com>
Thu, 22 Jun 2023 22:53:46 +0000 (17:53 -0500)
commitb76cd1ec361712e1ac9ca5e0246da24ea2b78916
treefd082170f67f28e2b7175d102075a9315a522fd4
parent33ebb0dff9bb022f1e0709e0e73faabfc3df7931
go: Update usage of TARGET_AIX to TARGET_AIX_OS

TARGET_AIX is defined to a non-zero value on linux and maybe other
powerpc64le targets.  This leads to unexpected behavior such as
dropping the .go_export section when linking a shared library
on linux/powerpc64le.

Instead, use TARGET_AIX_OS to toggle AIX specific behavior.

Fixes golang/go#60798.

2023-06-22  Paul E. Murphy  <murphyp@linux.ibm.com>

gcc/go/
* go-backend.cc [TARGET_AIX]: Rename and update usage to TARGET_AIX_OS.
* go-lang.cc: Likewise.
gcc/go/go-backend.cc
gcc/go/go-lang.cc
This page took 0.059811 seconds and 5 git commands to generate.