On Oct 18, 2020, Alexandre Oliva <ol...@adacore.com> wrote:

> The Aux_Short_Float unit is implemented in terms of the Aux_Float one,
> and the others rely on the elementary functions from the C Math
> library for float, double and long double types, respectively.


Use Aux_Long_Float for all real types on LynxOS

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

Its libc does not offer *f or *l elementary functions, so rely on the
C double ones only.

Tested with the target platform, also regstrapped on x86_64-linux-gnu
along with other patches.  Approved by Eric Botcazou.


for  gcc/ada/ChangeLog

        * Makefile.rtl (LIBGNAT_TARGET_PAIRS) <lynxos178>: Rely on
        Aux_Long_Float for all real types.
---
 gcc/ada/Makefile.rtl |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl
index 04c7cc8..efb73e5 100644
--- a/gcc/ada/Makefile.rtl
+++ b/gcc/ada/Makefile.rtl
@@ -2015,6 +2015,9 @@ ifeq ($(strip $(filter-out lynxos178%,$(target_os))),)
 
   LIBGNAT_TARGET_PAIRS = \
   a-intnam.ads<libgnarl/a-intnam__lynxos.ads \
+  a-nuaufl.ads<libgnat/a-nuaufl__wraplf.ads \
+  a-nashfl.ads<libgnat/a-nashfl__wraplf.ads \
+  a-nallfl.ads<libgnat/a-nallfl__wraplf.ads \
   g-soliop.ads<libgnat/g-soliop__lynxos.ads \
   s-inmaop.adb<libgnarl/s-inmaop__posix.adb \
   s-intman.adb<libgnarl/s-intman__lynxos.adb \


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

Reply via email to