Hi

For some unknown reason, moxie-rtems has its own stanza
in libgcc/config.host which does not include extra_parts.
This results in C++ RTEMS applications not linking.

Also the tmake_file variable is overridden by the
shared moxie stanza rather than being added to.

This patch addresses both issues. This patch (or some
minor variant) needs to be applied to every branch from
4.9 to master.

Comments?


        2015-04-18  Joel Sherrill <j...@rtems.org>

        * config.host (moxie-*-rtems*): Merge this stanza with
        other moxie targets so the same extra_parts are built.
        Also have tmake_file add on to its value rather than override.

--
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherr...@oarcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35806
Support Available                (256) 722-9985
>From fbeb49b7d12cb7a6c9ef15a9f3b000c9fc7b641e Mon Sep 17 00:00:00 2001
From: Joel Sherrill <j...@rtems.org>
Date: Mon, 18 Apr 2016 16:31:06 -0500
Subject: [PATCH] config.host: Merge moxie-rtems stanza with other moxie
 targets

	2015-04-18  Joel Sherrill <j...@rtems.org>

	* config.host (moxie-*-rtems*): Merge this stanza with
	other moxie targets so the same extra_parts are built.
	Also have tmake_file add on to its value rather than override.
---
 libgcc/config.host | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/libgcc/config.host b/libgcc/config.host
index b61a579..16a45c8 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -931,14 +931,9 @@ mmix-knuth-mmixware)
 mn10300-*-*)
 	tmake_file=t-fdpbit
 	;;
-moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux*)
-	tmake_file="moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
-	extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
-	;;
-moxie-*-rtems*)
+moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
 	tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
-	# Don't use default.
-	extra_parts=
+	extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
 	;;
 msp430*-*-elf)
 	tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
-- 
1.8.3.1

Reply via email to