Patchwork [libgcc,avr-rtems] Filter out _exit

login
register
mail settings
Submitter Ralf Corsepius
Date Nov. 5, 2011, 4:31 a.m.
Message ID <4EB4BC22.80707@rtems.org>
Download mbox | patch
Permalink /patch/123822/
State New
Headers show

Comments

Ralf Corsepius - Nov. 5, 2011, 4:31 a.m.
Hi,

avr-rtems uses _exit from newlib and therefore filter out _exit from 
LIB1ASMFUNCS.

I intend to commit the patch below, which is supposed to be a port of 
what RTEMS had used in gcc/config/avr/t-rtems in gcc < 4.7.

Ralf
2011-11-05  Ralf Cors├ępius  <ralf.corsepius@rtems.org>

	* config.host (avr-*-rtems*): Add config/avr/t-rtems.
	* config/avr/t-rtems: New.
	Filter out _exit from LIB1ASMFUNCS.

Patch

diff --git a/libgcc/config.host b/libgcc/config.host
index 01e7123..1834179 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -390,7 +390,7 @@  arm*-wince-pe*)
 	tmake_file="$tmake_file arm/t-arm arm/t-wince-pe"
 	;;
 avr-*-rtems*)
-	tmake_file="$tmake_file avr/t-avr t-fpbit"
+	tmake_file="$tmake_file avr/t-avr avr/t-rtems t-fpbit"
 	tm_file="$tm_file avr/avr-lib.h"
 	# Don't use default.
 	extra_parts=
diff --git a/libgcc/config/avr/t-rtems b/libgcc/config/avr/t-rtems
new file mode 100644
index 0000000..43b57ee
--- /dev/null
+++ b/libgcc/config/avr/t-rtems
@@ -0,0 +1,2 @@ 
+# RTEMS uses _exit from newlib
+LIB1ASMFUNCS := $(filter-out _exit,$(LIB1ASMFUNCS))