libphobos: Fix multilib powerpc64 builds
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 28 Apr 2020 19:42:41 +0000 (21:42 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 28 Apr 2020 19:45:00 +0000 (21:45 +0200)
commit8b53086ab6a6d0e89d407398c3a126535989f0c1
treeae126d1846c0d0375a079b9ef84ad5f5ff1be025
parentbce54ed494fd0e61f41986e2bdbcfb2d2a3a1cf1
libphobos: Fix multilib powerpc64 builds

Multilibs should not have been split up as two logically different CPU,
so at configure time, powerpc64 was being detected, but none of the
32-bit support files were being compiled in.

libphobos/ChangeLog:

PR d/94825
* configure: Regenerate.
* libdruntime/Makefile.am (DRUNTIME_SOURCES_CONFIGURED): Add both
switchcontext.S and callwithstack.S if DRUNTIME_CPU_POWERPC.
* libdruntime/Makefile.in: Regenerate.
* libdruntime/config/powerpc/switchcontext.S: Add !__PPC64__ guards.
* libdruntime/config/powerpc64/callwithstack.S: Add __PPC64__ guards.
* m4/druntime/cpu.m4 (DRUNTIME_CPU_SOURCES): Define DRUNTIME_CPU_POWER
for all powerpc biarchs.  Remove DRUNTIME_CPU_POWER64 conditional.
libphobos/ChangeLog
libphobos/configure
libphobos/libdruntime/Makefile.am
libphobos/libdruntime/Makefile.in
libphobos/libdruntime/config/powerpc/callwithstack.S [new file with mode: 0644]
libphobos/libdruntime/config/powerpc/switchcontext.S
libphobos/libdruntime/config/powerpc64/callwithstack.S [deleted file]
libphobos/m4/druntime/cpu.m4