Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2012 19:01:42 +0100
From:      Ed Schouten <ed@80386.nl>
To:        mips@FreeBSD.org, sparc64@FreeBSD.org
Subject:   [Last call] (Finally) migrate MIPS and SPARC64 to libcompiler_rt
Message-ID:  <20120112180142.GI5300@hoeg.nl>
In-Reply-To: <20111227231243.GB1895@hoeg.nl>
References:  <20111227231243.GB1895@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--X9OP1fpbq0KufMFh
Content-Type: multipart/mixed; boundary="MO4t1VgQTCtsHhID"
Content-Disposition: inline


--MO4t1VgQTCtsHhID
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all,

Florian did some quite some testing for me and he can confirm that the
patches make libcompiler_rt functional on SPARC64. As far as I know, the
ctz/clz issue is also what prevented MIPS64 from working, so I am not
aware of any issues that prevent us from switching to libcompiler_rt
exclusively.

If there are any objections against me committing the following patch,
please speak up now!

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--MO4t1VgQTCtsHhID
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="compiler-rt.diff"
Content-Transfer-Encoding: quoted-printable

Index: gnu/lib/libgcc/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- gnu/lib/libgcc/Makefile	(revision 230014)
+++ gnu/lib/libgcc/Makefile	(working copy)
@@ -15,10 +15,6 @@
=20
 .include "${.CURDIR}/../../usr.bin/cc/Makefile.tgt"
=20
-.if ${TARGET_CPUARCH} =3D=3D "sparc64" || ${TARGET_CPUARCH} =3D=3D "mips"
-LIB=3D		gcc
-.endif
-
 .PATH: ${GCCDIR}/config/${GCC_CPU} ${GCCDIR}/config ${GCCDIR}
=20
 CFLAGS+=3D	-DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
Index: lib/libcompiler_rt/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- lib/libcompiler_rt/Makefile	(revision 230014)
+++ lib/libcompiler_rt/Makefile	(working copy)
@@ -176,13 +176,11 @@
 . endif
 .endfor
=20
-.if ${MACHINE_CPUARCH} !=3D "sparc64" && ${MACHINE_CPUARCH} !=3D "mips"
-. if ${MK_INSTALLLIB} !=3D "no"
+.if ${MK_INSTALLLIB} !=3D "no"
 SYMLINKS+=3Dlibcompiler_rt.a ${LIBDIR}/libgcc.a
-. endif
-. if ${MK_PROFILE} !=3D "no"
+.endif
+.if ${MK_PROFILE} !=3D "no"
 SYMLINKS+=3Dlibcompiler_rt_p.a ${LIBDIR}/libgcc_p.a
-. endif
 .endif
=20
 .if ${MACHINE_CPUARCH} =3D=3D "amd64" || ${MACHINE_CPUARCH} =3D=3D "i386" =
|| \
@@ -191,5 +189,4 @@
 ACFLAGS+=3D-Wa,--noexecstack
 .endif
=20
-
 .include <bsd.lib.mk>

--MO4t1VgQTCtsHhID--

--X9OP1fpbq0KufMFh
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iQIcBAEBAgAGBQJPDyAFAAoJEG5e2P40kaK7XXYQAIqEPgv9JL2MARl8b9y9lIrM
0MsYMAjBM6TzNBEZbkSgS6A68VxHi2sdY/n8bwLP3/M5SNJaPCg+Deg5/g48olik
I8E4M0aDs7lRicQytzkoGeWmZRaA9N5Qn19C7JbaHhPaPNHUcCo1IBYs2E274Kgg
9cSjwZisXizXve3pG90EUU0zomtWT9Lu6hRp0mXIdkH16RcqdyzT5/EAde8TF9Rq
KO+JL3Zh3hHiZK+WvrnFy3+cC0C5ADYCbBqhc1jqmMsEwd0unlxf0+6fldC6tcX/
cdea9qgtmlCMdwlieVACW7hKHqqFcO3NU1pWN7k/eS7yTY9/eyUKCDxY7Nibdlii
fw2uR1z87/Op9AUcUalTdlfcYEY+gDYwT1q0c+qU9+M7qZQkUFKU8kNvpsRFyb/l
2t+C4KP2gZVi31MqNxtG2w1M79T2mXwkf2dlox5Etq2PHD7Z1tsZ9v55tmAY4CPc
ptsx86toTX5KFsy1oKyUfSdCUClWr4DFTE/DvxgCieJWKj1LM/jWZqgja7v435Hf
dWU4PBXnJcXYDs1V+j2PSldFmApUf9MSileEVfzRHDYKQjJoMblP32VW+9nbMbu7
u6+I0yK25KVrOovjwPvWv8wvIJNnz5S2bbocpe3/lHxfEHdy6b3rACyrUHUaWK/V
alRfOoZ1aYGOMwCpyGR9
=bvPy
-----END PGP SIGNATURE-----

--X9OP1fpbq0KufMFh--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120112180142.GI5300>