On Oct 22, 2020, Eric Botcazou <botca...@adacore.com> wrote:

>> So I'm going ahead and checking this in, approved by Eric Botcazou.
>> (Rainer's followup patch is coming up separately but momentarily)
>> 
>> 
>> aarch64-* and ppc*-linux-gnu long long float/long double mismatch

> Does this fix https://gcc.gnu.org/PR97504 for PowerPC64?

Yeah.

> Note that S/390 is affected as well according to Stefan.

Thanks for drawing my attention to it.  I also noticed sparc*-linux-gnu
and powerpc*-darwin had missed the earlier fixes for sparc and ppc.
Here's the patch I'm checking in.


more wraplf for aux long long float: s390, sparc and powerpc

From: Alexandre Oliva <ol...@adacore.com>

The wraplf version of Ada.Numerics.Aux_Long_Long_Float is needed on
s390* as well.  Also add it to sparc*-linux-gnu and powerpc-darwin,
that were missed when adding it for sparc and ppc targets.


for  gcc/ada/ChangeLog

        PR ada/97504
        * Makefile.rtl (LIBGNAT_TARGET_PAIRS): Select wraplf version
        of Aux_Long_Long_Float for s390 and remaining sparc and
        powerpc targets.
---
 gcc/ada/Makefile.rtl |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl
index e2a4f4e..a1cf23a 100644
--- a/gcc/ada/Makefile.rtl
+++ b/gcc/ada/Makefile.rtl
@@ -1909,6 +1909,7 @@ endif
 ifeq ($(strip $(filter-out s390% linux%,$(target_cpu) $(target_os))),)
   LIBGNAT_TARGET_PAIRS = \
   a-intnam.ads<libgnarl/a-intnam__linux.ads \
+  a-nallfl.ads<libgnat/a-nallfl__wraplf.ads \
   s-inmaop.adb<libgnarl/s-inmaop__posix.adb \
   s-intman.adb<libgnarl/s-intman__posix.adb \
   s-linux.ads<libgnarl/s-linux.ads \
@@ -2320,6 +2321,7 @@ endif
 ifeq ($(strip $(filter-out sparc% linux%,$(target_cpu) $(target_os))),)
   LIBGNAT_TARGET_PAIRS = \
   a-intnam.ads<libgnarl/a-intnam__linux.ads \
+  a-nallfl.ads<libgnat/a-nallfl__wraplf.ads \
   s-inmaop.adb<libgnarl/s-inmaop__posix.adb \
   s-intman.adb<libgnarl/s-intman__posix.adb \
   s-linux.ads<libgnarl/s-linux__sparc.ads \
@@ -2679,6 +2681,7 @@ ifeq ($(strip $(filter-out darwin%,$(target_os))),)
 
   ifeq ($(strip $(filter-out powerpc%,$(target_cpu))),)
     LIBGNAT_TARGET_PAIRS += \
+      a-nallfl.ads<libgnat/a-nallfl__wraplf.ads \
       s-intman.adb<libgnarl/s-intman__posix.adb \
       s-osprim.adb<libgnat/s-osprim__posix.adb \
       $(ATOMICS_TARGET_PAIRS) \


-- 
Alexandre Oliva, happy hacker
https://FSFLA.org/blogs/lxo/
Free Software Activist
GNU Toolchain Engineer

Reply via email to