libphobos: Add D support for S/390 Linux
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 23 Apr 2019 22:53:25 +0000 (22:53 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Tue, 23 Apr 2019 22:53:25 +0000 (22:53 +0000)
commit130cc10e2178fd7dcd9b6cabd64008f7c24821c7
treeb07fa89734c6f2b88d692e3c6de1be7495b87174
parentd9392bfa032b448839abadb523aff65b8ccb3dba
libphobos: Add D support for S/390 Linux

gcc/d/ChangeLog:

2019-04-23  Iain Buclaw  <ibuclaw@gdcproject.org>
    Robin Dapp  <rdapp@linux.ibm.com>

* typeinfo.cc (create_typeinfo): Write typeinfo flags as uint.

gcc/testsuite/ChangeLog:

2019-04-23  Iain Buclaw  <ibuclaw@gdcproject.org>
    Robin Dapp  <rdapp@linux.ibm.com>

* gdc.dg/link.d: Test if target d_runtime.
* gdc.dg/runnable.d: Fix tests to work on BigEndian.
* gdc.dg/simd.d: Likewise.

libphobos/ChangeLog:

2019-04-23  Iain Buclaw  <ibuclaw@gdcproject.org>
    Robin Dapp  <rdapp@linux.ibm.com>

* configure.tgt: Add s390*-linux* as a supported target.
* libdruntime/gcc/sections/elf_shared.d: import gcc.builtins.
(__tls_get_addr_internal): Declare.
(TLS_DTV_OFFSET): Define as zero on SystemZ.
(getTLSRange): Support getting TLS on SystemZ.
* testsuite/libphobos.typeinfo/struct-align.d: New test.

Co-Authored-By: Robin Dapp <rdapp@linux.ibm.com>
From-SVN: r270523
gcc/d/ChangeLog
gcc/d/typeinfo.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gdc.dg/link.d
gcc/testsuite/gdc.dg/runnable.d
gcc/testsuite/gdc.dg/simd.d
libphobos/ChangeLog
libphobos/configure.tgt
libphobos/libdruntime/gcc/sections/elf_shared.d
libphobos/testsuite/libphobos.typeinfo/struct-align.d [new file with mode: 0644]