Patchwork [build] Restore FreeBSD/SPARC bootstrap (PR bootstrap/49804)

login
register
mail settings
Submitter Rainer Orth
Date Oct. 6, 2011, 1:29 p.m.
Message ID <yddipo2cko9.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/118096/
State New
Headers show

Comments

Rainer Orth - Oct. 6, 2011, 1:29 p.m.
As reported in the PR, FreeBSD/SPARC bootstrap is broken by one of my
previous libgcc patches.  While the crtstuff one will fix it, I'd like
to avoid breaking the target.

The following patch fixes the problem, as confirmed in the PR.

Ok for mainline?

	Rainer


2011-10-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR bootstrap/49804
	* config.host: Add crtbegin.o, crtbeginS.o, crtend.o, crtendS.o to
	extra_parts.
Paolo Bonzini - Oct. 6, 2011, 1:37 p.m.
On 10/06/2011 03:29 PM, Rainer Orth wrote:
> As reported in the PR, FreeBSD/SPARC bootstrap is broken by one of my
> previous libgcc patches.  While the crtstuff one will fix it, I'd like
> to avoid breaking the target.
>
> The following patch fixes the problem, as confirmed in the PR.
>
> Ok for mainline?
>
> 	Rainer
>
>
> 2011-10-04  Rainer Orth<ro@CeBiTec.Uni-Bielefeld.DE>
>
> 	PR bootstrap/49804
> 	* config.host: Add crtbegin.o, crtbeginS.o, crtend.o, crtendS.o to
> 	extra_parts.
>
>
>
>
>
>

Ok.

Paolo

Patch

# HG changeset patch
# Parent a57e226a2b14812bfa3c37c1aa807f28fac223eb
Restore FreeBSD/SPARC bootstrap (PR bootstrap/49804)

diff --git a/libgcc/config.host b/libgcc/config.host
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -777,7 +777,7 @@  sparc-wrs-vxworks)
 	;;
 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
 	tmake_file="$tmake_file t-crtfm"
-	extra_parts=crtfastmath.o
+	extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o crtfastmath.o"
 	;;
 sparc64-*-linux*)		# 64-bit SPARC's running GNU/Linux
 	extra_parts="$extra_parts crtfastmath.o"