[PR97504] riscv needs wraplf for aux_long_long_float too
authorAlexandre Oliva <oliva@adacore.com>
Wed, 28 Oct 2020 10:54:33 +0000 (07:54 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 28 Oct 2020 10:54:33 +0000 (07:54 -0300)
riscv is another platform on which GNAT maps Long_Long_Float to double
rather than long double, so we have to explicitly avoid the long
double intrinsics.

for  gcc/ada/ChangeLog

PR ada/97504
* Makefile.rtl (LIBGNAT_TARGET_PAIRS> <riscv*-*-*>: Use wraplf
version of Aux_Long_Long_Float.

gcc/ada/Makefile.rtl

index bdaa8056b6bc1fb20ae1cf8dc183e5161ae5551f..6d9efc44e5187bdb55ab3dbb8d92986c15e42738 100644 (file)
@@ -2703,6 +2703,7 @@ endif
 ifeq ($(strip $(filter-out riscv% 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__riscv.ads \