From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: Re: Preliminary 'wip-armhf' branch pushed Date: Thu, 1 Jan 2015 08:24:10 +0100 Message-ID: <20150101072410.GA20122@jocasta.intra> References: <87lhln7mlk.fsf@netris.org> <20141231174719.GA8456@intra> <878uhn7he5.fsf@netris.org> <20141231202012.GA23085@jocasta.intra> <87vbkr5qxk.fsf@netris.org> <20150101061436.GA3785@intra> <87oaqj5620.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6a7I-0007iB-KC for guix-devel@gnu.org; Thu, 01 Jan 2015 02:24:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y6a7F-0000IB-Do for guix-devel@gnu.org; Thu, 01 Jan 2015 02:24:20 -0500 Received: from de.cellform.com ([88.217.224.109]:55909 helo=jocasta.intra) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6a7F-0000GH-0w for guix-devel@gnu.org; Thu, 01 Jan 2015 02:24:17 -0500 Content-Disposition: inline In-Reply-To: <87oaqj5620.fsf@netris.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 01, 2015 at 02:11:19AM -0500, Mark H Weaver wrote: John Darrington writes: =20 > On Wed, Dec 31, 2014 at 06:40:23PM -0500, Mark H Weaver wrote: > =20 > * You added "CFLAGS=3D-Wno-cast-qual" and "--disable-werror" fo= r ARM in > 'gcc-configure-flags-for-triplet', which I thought was a bad = idea and > didn't belong there. > > Have you tried actually building GCC ? =20 Yes, I've built several GCCs including gcc-final. I've also successfully built the 'hello' package. =20 > I found that without those, it failed to build. =20 Perhaps the problem you ran into was fixed in GCC 4.8.4. Yeah possibly.=20 =20 > * You patched gcc/config/arm/linux-eabi.h unnecessarily. > > Without that patch, GCC actually builds soft-float code, even though > you may have passed the --with-float=3Dhard flag. What bits of that > patch do you think are not necessary? =20 All of it seems to be unnecessary, by experiment. I've used the resulting GCC to compile the following test program: =20 'foo' accepts the double arguments via registers and passes a double to sinh via registers. I also checked a variant that simply returned a*b, and it was clearly returning the result via register as well. =20 I think it's quite clear that this is using the hard-float ABI, no? My results showed that simple binaries like that compiled (and ran) ok. Th= e problems arose when linking with bigger projects. I don't recall the details. Have you tried building libc= ? I suspect that is where the patch will be needed. J' --=20 PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlSk9hoACgkQimdxnC3oJ7PflgCeO3LGifGPwNnNwJeyaCxLR1Mk 7dUAoIMz7aaEH8rxNWd8WmzvLZrUeCIU =KlUV -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--