Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YGYPk-0000VA-AO for mharc-grub-devel@gnu.org; Wed, 28 Jan 2015 14:36:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGYPh-0000QC-9W for grub-devel@gnu.org; Wed, 28 Jan 2015 14:36:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGYPc-0006UH-Da for grub-devel@gnu.org; Wed, 28 Jan 2015 14:36:33 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:48827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGYPc-0006Tt-6l for grub-devel@gnu.org; Wed, 28 Jan 2015 14:36:28 -0500 Received: by mail-wi0-f178.google.com with SMTP id bs8so6023151wib.5 for ; Wed, 28 Jan 2015 11:36:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=XjB16OzXkmPsHQSqPgOO7lmP90Wo2wXLGHTUYRdAOx4=; b=ZObJ+OEUYQ+yWQVjBrEG9s4hq9s/TQxsJGajymSbY5xRqdzIcALNKtDcTH7H+YDSjd xOqiMKnvCZMyx2beJjRxejTQEBmYEbVsu1hSqe1RkHqRtCHB5VrK2DJiwepf13EQ/lf6 vH2K/puXNTWgcKl9x0Ni+c1E9fKGR6ZdcyIZVSD75CJF1q2rR99JWuR7sib6Gz60aMPH ehTiAd6Oq1ZjtvFYgQlcRF4iOzJD7qZP8BY0qTAP+Gqb2BXrMb70XsTGc+E4NNhCctbL iuRkcodiIUOO5iSQkvy+YA0GxtFF46ZSomXClp1hfVfXpWqsZyvZI3TDi28WOZn/VIFD jcWg== X-Gm-Message-State: ALoCoQl+dn7hr+HPGZA73xdjterqJdFOsxc3f0B4yaURvwklo/SHIN1FrvR0AbmdP/f9RhpJYUNl X-Received: by 10.180.87.42 with SMTP id u10mr10212031wiz.51.1422473787371; Wed, 28 Jan 2015 11:36:27 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by mx.google.com with ESMTPSA id e4sm7376931wjw.48.2015.01.28.11.36.26 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 28 Jan 2015 11:36:26 -0800 (PST) Date: Wed, 28 Jan 2015 19:36:24 +0000 From: Leif Lindholm To: Andrei Borzenkov Subject: Re: commit 3661261f breaks arm64 Message-ID: <20150128193624.GH4278@bivouac.eciton.net> References: <20150128183359.GG4278@bivouac.eciton.net> <20150128215856.4bc94ca7@opensuse.site> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150128215856.4bc94ca7@opensuse.site> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.178 Cc: grub-devel@gnu.org 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: Wed, 28 Jan 2015 19:36:34 -0000 On Wed, Jan 28, 2015 at 09:58:56PM +0300, Andrei Borzenkov wrote: > В Wed, 28 Jan 2015 18:33:59 +0000 > Leif Lindholm пишет: > > > commit 3661261fe17a8fe19681073889b5b36ec1ee823d, > > "Always add -msoft-float to avoid compiler generating float > > arithmetics." breaks the arm64 build. > > > > -msoft-float is not a valid command line option for aarch64 (as far as > > I can see, it is technically a target-specific option which just > > happens to exist for most targets - including arm). > > > > This setting will need to be conditionalised somehow. > > An option that works for arm64 is -march=armv8-a+nofp+nosimd. > > > > Would something like this be an acceptable workaround?: > > > > diff --git a/configure.ac b/configure.ac > > index a3bca06..c99e1ea 100644 > > --- a/configure.ac > > +++ b/configure.ac > > @@ -678,7 +678,11 @@ fi > > # that floats are a good fit to run instead of what's written in the > > # code. > > # Given that floating point unit is disabled (if present to begin > > # with) > > # when GRUB is running which may result in various hard crashes. > > -TARGET_CFLAGS="$TARGET_CFLAGS -msoft-float" > > +if ( test "x$target_cpu" = xarm64 ); then > > Why subshell? Brainless cargo culting to look similar to the preceding $target_cpu checker, which actually does something relevant with its subshell. If I drop that, is that an acceptable fix? > > + TARGET_CFLAGS="$TARGET_CFLAGS -march=armv8-a+nofp+nosimd" > > +else > > + TARGET_CFLAGS="$TARGET_CFLAGS -msoft-float" > > +fi > > > > # By default, GCC 4.4 generates .eh_frame sections containing unwind > > # information in some cases where it previously did not. GRUB doesn't > > # need > > > > / > > Leif > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel >