RTEMS: Fix Ada build for riscv

Message ID 20210114154327.102115-1-sebastian.huber@embedded-brains.de
State New
Headers show
Series
  • RTEMS: Fix Ada build for riscv
Related show

Commit Message

Sebastian Huber Jan. 14, 2021, 3:43 p.m.
gcc/ada/

	PR ada/98595
	Makefile.rtl (LIBGNAT_TARGET_PAIRS) <riscv*-*-rtems*>: Use
	wraplf version of Aux_Long_Long_Float.
---
 gcc/ada/Makefile.rtl | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.26.2

Comments

Sebastian Huber Jan. 14, 2021, 3:45 p.m. | #1
On 14/01/2021 16:43, Sebastian Huber wrote:

> gcc/ada/

>

> 	PR ada/98595

> 	Makefile.rtl (LIBGNAT_TARGET_PAIRS) <riscv*-*-rtems*>: Use

> 	wraplf version of Aux_Long_Long_Float.

Sorry, I sent this to the wrong mailing list.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

Patch

diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl
index 81df1e8babc..35faf13ea46 100644
--- a/gcc/ada/Makefile.rtl
+++ b/gcc/ada/Makefile.rtl
@@ -2168,11 +2168,16 @@  ifeq ($(strip $(filter-out rtems%,$(target_os))),)
   s-tpopsp.adb<libgnarl/s-tpopsp__tls.adb \
   s-stchop.adb<libgnat/s-stchop__rtems.adb \
   s-interr.adb<libgnarl/s-interr__hwint.adb
+
   ifeq ($(strip $(filter-out arm%, $(target_cpu))),)
     EH_MECHANISM=-arm
   else
     EH_MECHANISM=-gcc
   endif
+
+  ifeq ($(strip $(filter-out riscv%,$(target_cpu))),)
+    LIBGNAT_TARGET_PAIRS += a-nallfl.ads<libgnat/a-nallfl__wraplf.ads
+  endif
 endif
 
 # PikeOS