From owner-freebsd-sparc64@FreeBSD.ORG Thu Jan 12 18:01:43 2012 Return-Path: Delivered-To: sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 534D5106564A; Thu, 12 Jan 2012 18:01:43 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id E300B8FC13; Thu, 12 Jan 2012 18:01:42 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 260AF2A28CD6; Thu, 12 Jan 2012 19:01:42 +0100 (CET) Date: Thu, 12 Jan 2012 19:01:42 +0100 From: Ed Schouten To: mips@FreeBSD.org, sparc64@FreeBSD.org Message-ID: <20120112180142.GI5300@hoeg.nl> References: <20111227231243.GB1895@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X9OP1fpbq0KufMFh" Content-Disposition: inline In-Reply-To: <20111227231243.GB1895@hoeg.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: [Last call] (Finally) migrate MIPS and SPARC64 to libcompiler_rt X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2012 18:01:43 -0000 --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 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 --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--