libphobos: Fix linker warning and SEGV in core.thread tests.
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 24 Apr 2019 22:46:59 +0000 (22:46 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Wed, 24 Apr 2019 22:46:59 +0000 (22:46 +0000)
commit2493e718159bdee3a589234196ce177d37b1e649
tree1fcbbacd1e37224ecd98458ffb0021f4a4efbf5d
parent7c3e085e4405ef4148edf4ea5bedd7930df23c58
libphobos: Fix linker warning and SEGV in core.thread tests.

The monolithic core/threadasm.S source has been removed, and split into
multiple parts, one for each intended target CPU/OS.

Added .type and .size directives for all asm implementations of
fiber_switchContent and callWithStackShell where they were missing.

libphobos/ChangeLog:

2019-04-25  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/90086
* m4/druntime/cpu.m4 (DRUNTIME_CPU_SOURCES): New macro.
* configure.ac: Use it.
* configure: Regenerate.
* libdruntime/Makefile.am: Add new config sources to
DRUNTIME_SOURCES_CONFIGURED.
* libdruntime/Makefile.in: Regenerate.
* libdruntime/config/aarch64/switchcontext.S: New file.
* libdruntime/config/arm/switchcontext.S: New file.
* libdruntime/config/common/threadasm.S: New file.
* libdruntime/config/mingw/switchcontext.S: New file.
* libdruntime/config/mips/switchcontext.S: New file.
* libdruntime/config/powerpc/switchcontext.S: New file.
* libdruntime/config/powerpc64/callwithstack.S: New file.
* libdruntime/config/x86/switchcontext.S: New file.
* libdruntime/core/threadasm.S: Remove.

From-SVN: r270560
15 files changed:
libphobos/ChangeLog
libphobos/configure
libphobos/configure.ac
libphobos/libdruntime/Makefile.am
libphobos/libdruntime/Makefile.in
libphobos/libdruntime/config/aarch64/switchcontext.S [new file with mode: 0644]
libphobos/libdruntime/config/arm/switchcontext.S [new file with mode: 0644]
libphobos/libdruntime/config/common/threadasm.S [new file with mode: 0644]
libphobos/libdruntime/config/mingw/switchcontext.S [new file with mode: 0644]
libphobos/libdruntime/config/mips/switchcontext.S [new file with mode: 0644]
libphobos/libdruntime/config/powerpc/switchcontext.S [new file with mode: 0644]
libphobos/libdruntime/config/powerpc64/callwithstack.S [new file with mode: 0644]
libphobos/libdruntime/config/x86/switchcontext.S [new file with mode: 0644]
libphobos/libdruntime/core/threadasm.S [deleted file]
libphobos/m4/druntime/cpu.m4