[ARM] libgcc: include crtfastmath.o

Christophe Lyon christophe.lyon@linaro.org
Thu Oct 29 09:25:00 GMT 2015


Hi,

On arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems* targets,
crtfastmath.o is not part of $extra_parts, which means that it is not
built, even though the make build rule is present via the inclusion of
t-crtfm.

The impact is that the link fails when using -ffast-math.

The attached patch adds crtfastmath.o to $extra_parts, for
arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems* targets.

I tested on arm-none-eabi, and I am not sure if this is correct for
symbian/rtems.

OK? Or should I restrict the change to arm*-*-eabi* ?

Thanks,

Christophe.
-------------- next part --------------
2015-10-29  Christophe Lyon  <christophe.lyon@linaro.org>

	* config.host (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*):
	Include crtfastmath.o.

-------------- next part --------------
diff --git a/libgcc/config.host b/libgcc/config.host
index 2ee92c1..b63cc36 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -414,6 +414,7 @@ arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
 	  ;;
 	esac
 	tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
+	extra_parts="$extra_parts crtfastmath.o"
 	unwind_header=config/arm/unwind-arm.h
 	;;
 avr-*-rtems*)


More information about the Gcc-patches mailing list