Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YznbS-0003gK-Qx for mharc-grub-devel@gnu.org; Tue, 02 Jun 2015 10:55:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YznbP-0003ft-Pu for grub-devel@gnu.org; Tue, 02 Jun 2015 10:55:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YznbL-0005Wj-KB for grub-devel@gnu.org; Tue, 02 Jun 2015 10:55:39 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:35939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YznbL-0005Us-EW for grub-devel@gnu.org; Tue, 02 Jun 2015 10:55:35 -0400 Received: by wibdq8 with SMTP id dq8so61803974wib.1 for ; Tue, 02 Jun 2015 07:55:34 -0700 (PDT) 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:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=8QPxHr//lIS5cDKg7p7BVFyhye6JEska7BUIdlx7ju0=; b=TBtDPiYchMNbidrHj6xu6wA010nqqhMpl2KM0UgJWpGr0pvS8KJJzCusyD4MN3Z3Ah WWIC30Xr/uN0iWXcVuHNsD0vhY3yQhGOo4SsQhHnE7ctKqKOKiL4XhSMvBi+QVUZXiez XGJQYj/AT6V8HX+eNlMCWVQwKqWto/TQQEksAUr+QZl1KyRiLR8fCQ2duIVkzHtbfQPe B2ofo5g7njKh5C5JxokfooG81NbFxCLnRQOED5lEab7izNjey/iZqvaMzoCc7laUW6n8 qUhhXmrx4q8JY99rKEcFr/SrjiuLm2zC4mqtxMBFzgo/XMsuPnrZx/IQ0fyiMwrcsmmI HDVA== X-Gm-Message-State: ALoCoQlDhOIhYthZlNwMwMx4ANJS+0AUHNzNGTz+WD8uo6T7HVo5z3MALIpcNh57pycZPHHb/psZ X-Received: by 10.194.235.100 with SMTP id ul4mr50292149wjc.33.1433256934066; Tue, 02 Jun 2015 07:55:34 -0700 (PDT) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by mx.google.com with ESMTPSA id k2sm22038092wif.3.2015.06.02.07.55.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 02 Jun 2015 07:55:33 -0700 (PDT) Date: Tue, 2 Jun 2015 15:55:31 +0100 From: Leif Lindholm To: The development of GNU GRUB Subject: Re: arm64 softfloat Message-ID: <20150602145531.GK8790@bivouac.eciton.net> References: <20150602120917.GI8790@bivouac.eciton.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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.180 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 14:55:41 -0000 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 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. 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=armv8-a+nofp. If we do this, we can also get rid of the arm64-specific twiddling that drops the +nosimd. Like so: 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 Fix compilation with gcc 5.1 (avoid internal compiler error), by replacing explicit -march +nofp+nosimd options with -mgeneral-regs-only. This also enables the removal of some further conditional build flag setting. --- configure.ac | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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" != xemu ; then AC_CACHE_CHECK([for options to get soft-float], grub_cv_target_cc_soft_float, [ grub_cv_target_cc_soft_float=no if test "x$target_cpu" = xarm64; then - CFLAGS="$TARGET_CFLAGS -march=armv8-a+nofp+nosimd -Werror" + CFLAGS="$TARGET_CFLAGS -mgeneral-regs-only -Werror" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], - [grub_cv_target_cc_soft_float="-march=armv8-a+nofp+nosimd"], []) + [grub_cv_target_cc_soft_float="-mgeneral-regs-only"], []) fi if test "x$target_cpu" = xia64; then CFLAGS="$TARGET_CFLAGS -mno-inline-float-divide -mno-inline-sqrt -Werror" @@ -720,15 +720,7 @@ if test x"$platform" != xemu ; then TARGET_CFLAGS="$TARGET_CFLAGS $grub_cv_target_cc_soft_float" ;; esac - case x"$grub_cv_target_cc_soft_float" in - x"-march=armv8-a+nofp+nosimd") - # +nosimd disables also the cache opcodes that we need in asm. - TARGET_CCASFLAGS="$TARGET_CCASFLAGS -march=armv8-a+nofp" - ;; - *) - TARGET_CCASFLAGS="$TARGET_CCASFLAGS $grub_cv_target_cc_soft_float" - ;; - esac + TARGET_CCASFLAGS="$TARGET_CCASFLAGS $grub_cv_target_cc_soft_float" fi -- 2.1.4