From: Zixing Liu <liushuyu...@gmail.com> This patch was formerly known as "gdc: define ELFv1, ELFv2 and D_PPCUseIEEE128 versions for powerpc", due to new developments in https://github.com/dlang/dmd/pull/20826, compiler is now not required to mark D_PPCUseIEEE128 version identifier. Instead, correctly setting real.mant_dig will suffice (GDC is already providing the correct information).
The patch adds the ELFv1 and ELFv2 version identifiers to bridge the gap between LLVM D Compiler (LDC) and GNU D Compiler (GDC) so that the user can reliably use the "version(...)" syntax to check for which ABI is currently in use. ELFv1 and ELFv2 ABI concept seem to only exist on POWER platforms, so other platforms do not need to follow this change, as far as I know. Zixing Liu (1): gdc: define ELFv1 and ELFv2 versions for powerpc gcc/config/rs6000/rs6000-d.cc | 5 +++++ gcc/testsuite/gdc.dg/ppcabi.d | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 gcc/testsuite/gdc.dg/ppcabi.d -- 2.48.1