From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YzpC8-0008AU-Gl for mharc-grub-devel@gnu.org; Tue, 02 Jun 2015 12:37:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzpC4-00082K-Ah for grub-devel@gnu.org; Tue, 02 Jun 2015 12:37:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzpC3-0002cV-95 for grub-devel@gnu.org; Tue, 02 Jun 2015 12:37:36 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:33311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzpC3-0002cB-2i for grub-devel@gnu.org; Tue, 02 Jun 2015 12:37:35 -0400 Received: by wgez8 with SMTP id z8so144800605wge.0 for ; Tue, 02 Jun 2015 09:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=9a7cfAoZys55HG7yZeJuSUaTgR7vqBThQXK8che9+9c=; b=Xccc2MvPb/Dq4fwuHDH31MF/UQYRDespTc2D3+yA5vYO0LTqLZpP2V7oKO+YqF1sVS kjcn06eBrCYLVVvozPx/gRTBVo0AY5mnKm8qea6R2RD4N3vWSKxvNpl2uB5lFPH8TK18 vxa4ADaT3RjrcJh3r/n6TxJQrvqSAfolwZAEQAULq+0tcVteXYH4VO3bGw8O2/voBO1b 6ROkUsrieUilAQhSVIWP9FG5UEM8giUHkk4R3mmanRz/Aq40D2sjrwRWTo5aVK3JyhPo m0165TV7teTbLEGJ+eDhpfM5zKr8Zi1b4fVT/EIn1hVRwgnx8YrYDSSKGrq4VjRJzG33 9e9g== X-Received: by 10.194.203.138 with SMTP id kq10mr51279309wjc.124.1433263053457; Tue, 02 Jun 2015 09:37:33 -0700 (PDT) Received: from ?IPv6:2620:0:105f:fd00:863a:4bff:fe50:abc4? ([2620:0:105f:fd00:863a:4bff:fe50:abc4]) by mx.google.com with ESMTPSA id hu1sm22429873wib.6.2015.06.02.09.37.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2015 09:37:32 -0700 (PDT) Message-ID: <556DDBCC.3000500@gmail.com> Date: Tue, 02 Jun 2015 18:37:32 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: arm64 softfloat References: <20150602120917.GI8790@bivouac.eciton.net> <20150602145531.GK8790@bivouac.eciton.net> In-Reply-To: <20150602145531.GK8790@bivouac.eciton.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bH8UIGmvpdfWb1dh2cI1blxWRbGi0iBT0" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::234 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2015 16:37:37 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bH8UIGmvpdfWb1dh2cI1blxWRbGi0iBT0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02.06.2015 16:55, Leif Lindholm wrote: > On Tue, Jun 02, 2015 at 02:25:15PM +0200, Vladimir 'phcoder' Serbinenko= wrote: >> Please give more details as to where we have floats. We shouldn't have= any >=20 > Ok, seems I was tripping over myself with the internal compiler error > workaround (-mgeneral-regs-only), and applying it on the host tools > as well, where +nofp was (correctly) not being enforced, causing a > clash. >=20 What is the relation of -mgeneral-regs-only with +nofp? The decription of -mgeneral-regs-only in manual is very vague > So, rewinding a bit - in order to work around the gcc 5.1 build issue > (which is not Fedora specific), we can use -mgeneral-regs-only > instead of -march=3Darmv8-a+nofp. If we do this, we can also get > rid of the arm64-specific twiddling that drops the +nosimd. >=20 > Like so: >=20 >>>From 43d4231432838821cabe4f6aea4f0f50e87af9c4 Mon Sep 17 00:00:00 2001 > From: Leif Lindholm > Date: Tue, 2 Jun 2015 15:41:09 +0100 > Subject: [PATCH] configure.ac: clean up arm64 soft-float handling >=20 > Fix compilation with gcc 5.1 (avoid internal compiler error), by > replacing explicit -march +nofp+nosimd options with -mgeneral-regs-only= =2E >=20 > This also enables the removal of some further conditional build flag > setting. > --- > configure.ac | 14 +++----------- > 1 file changed, 3 insertions(+), 11 deletions(-) >=20 > diff --git a/configure.ac b/configure.ac > index 891c14f..fd8a62e 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -686,9 +686,9 @@ if test x"$platform" !=3D xemu ; then > AC_CACHE_CHECK([for options to get soft-float], grub_cv_target_cc_so= ft_float, [ > grub_cv_target_cc_soft_float=3Dno > if test "x$target_cpu" =3D xarm64; then > - CFLAGS=3D"$TARGET_CFLAGS -march=3Darmv8-a+nofp+nosimd -Werror" > + CFLAGS=3D"$TARGET_CFLAGS -mgeneral-regs-only -Werror" > AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], > - [grub_cv_target_cc_soft_float=3D"-march=3Darmv8-a+nofp+nosi= md"], []) > + [grub_cv_target_cc_soft_float=3D"-mgeneral-regs-only"], [])= > fi > if test "x$target_cpu" =3D xia64; then > CFLAGS=3D"$TARGET_CFLAGS -mno-inline-float-divide -mno-inline-s= qrt -Werror" > @@ -720,15 +720,7 @@ if test x"$platform" !=3D xemu ; then > TARGET_CFLAGS=3D"$TARGET_CFLAGS $grub_cv_target_cc_soft_float" > ;; > esac > - case x"$grub_cv_target_cc_soft_float" in > - x"-march=3Darmv8-a+nofp+nosimd") > - # +nosimd disables also the cache opcodes that we need in asm. > - TARGET_CCASFLAGS=3D"$TARGET_CCASFLAGS -march=3Darmv8-a+nofp" > - ;; > - *) > - TARGET_CCASFLAGS=3D"$TARGET_CCASFLAGS $grub_cv_target_cc_soft_fl= oat" > - ;; > - esac > + TARGET_CCASFLAGS=3D"$TARGET_CCASFLAGS $grub_cv_target_cc_soft_float"= > =20 > fi > =20 >=20 --bH8UIGmvpdfWb1dh2cI1blxWRbGi0iBT0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREKAAYFAlVt28wACgkQmBXlbbo5nOuh2AD/UARk/T3qeXTR5cIv1/JwP5/1 ul/5RsmrXTx0FwhVdo0A/2nnDI5SfufT4bY5EjvBjO8W4kTrSqyw8+9NeOFD6vCB =6luE -----END PGP SIGNATURE----- --bH8UIGmvpdfWb1dh2cI1blxWRbGi0iBT0--