From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web11.16562.1672934713772124491 for ; Thu, 05 Jan 2023 08:05:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oXe9XXsU; spf=pass (domain: kernel.org, ip: 139.178.84.217, mailfrom: ardb@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4F88961B0F; Thu, 5 Jan 2023 16:05:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 778F1C433F2; Thu, 5 Jan 2023 16:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672934712; bh=NI49zDclxk4JstzIzbZPF3TKquhxwLp4IYnOQvhMNQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oXe9XXsUyousklvFzUZiS14AKrsvansr9XTlpXuE0gp5NMWqp/vuAJOkKeWulHp3c 1ri0+8DkY/LrBK1E42hNewYQyLvb9VnuPNFdfOkRBpQDDUuuNmkY/zvHPL8G2H8GEx cw/Of9F1+dCoiXFrq2n64UXzWeZ2g4bj9Fasgt9NYRUJceMwR53TiM+4KFW9yzQ+ky LxoMCPJHSOvES4r+KRMEHv3IKgPtmojvS2gWm90Fgh6uMn7fP6ZMPCoROxPFGhBfth 44X86nr8Axk3poEcKdXcC2SdXpKXb404RthbRRBVytWw1kaVlk9OgQjwkEK7RdO9b/ jzKtD0XSXkoyg== From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, rebecca@quicinc.com, bob.c.feng@intel.com, gaoliming@byosoft.com.cn, Ard Biesheuvel Subject: [PATCH 3/4] BaseTools/tools_def ARM: Make choice for soft float ABI explicit Date: Thu, 5 Jan 2023 17:05:02 +0100 Message-Id: <20230105160503.1423627-4-ardb@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230105160503.1423627-1-ardb@kernel.org> References: <20230105160503.1423627-1-ardb@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Recent GCC for ARM will complain when selecting the hard float ABI without specifying the FPU implementation, even when just running the preprocessor. This all happens under the hood, and we never bothered in the past, given that we don't emit floating point code anyway. However, to placate newer compilers, make it explicit that the floating point ABI is always the softfloat one, by moving the -msoft-float compiler option to PLATFORM_FLAGS. Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.t= emplate index fe8d5a8ea5e8..9bf771385e33 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -1850,7 +1850,7 @@ NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG =3D --add-gnu-debu= glink=3D$(DEBUG_DIR)/$(MODULE_N *_*_*_DTC_PATH =3D DEF(DTC_BIN)=0D =0D DEFINE GCC_ALL_CC_FLAGS =3D -g -Os -fshort-wchar -fno-builtin -= fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno= -common=0D -DEFINE GCC_ARM_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -mabi=3Daapcs -fno-short-enums -funsigned-char -ffunction-sections -fdat= a-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=3Dsoft -fn= o-pic -fno-pie=0D +DEFINE GCC_ARM_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -mabi=3Daapcs -fno-short-enums -funsigned-char -ffunction-sections -fdat= a-sections -fomit-frame-pointer -Wno-address -mthumb -fno-pic -fno-pie=0D DEFINE GCC_LOONGARCH64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mabi=3Dlp64d= -fno-asynchronous-unwind-tables -fno-plt -Wno-address -fno-short-enums -fs= igned-char -ffunction-sections -fdata-sections=0D DEFINE GCC_ARM_CC_XIPFLAGS =3D -mno-unaligned-access=0D DEFINE GCC_AARCH64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fda= ta-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables= -fno-pic -fno-pie -ffixed-x18=0D @@ -2364,7 +2364,7 @@ RELEASE_GCC5_X64_DLINK_FLAGS =3D DEF(GCC5_X64_DLI= NK_FLAGS) -flto -Os *_GCC5_ARM_ASM_FLAGS =3D DEF(GCC5_ARM_ASM_FLAGS)=0D *_GCC5_ARM_DLINK2_FLAGS =3D DEF(GCC5_ARM_DLINK2_FLAGS)=0D *_GCC5_ARM_DTCPP_FLAGS =3D DEF(GCC_DTCPP_FLAGS)=0D -*_GCC5_ARM_PLATFORM_FLAGS =3D -march=3Darmv7-a=0D +*_GCC5_ARM_PLATFORM_FLAGS =3D -march=3Darmv7-a -mfloat-abi=3Dsoft=0D *_GCC5_ARM_PP_FLAGS =3D $(PLATFORM_FLAGS) DEF(GCC_PP_FLAGS)=0D *_GCC5_ARM_RC_FLAGS =3D DEF(GCC_ARM_RC_FLAGS)=0D *_GCC5_ARM_VFRPP_FLAGS =3D $(PLATFORM_FLAGS) DEF(GCC_VFRPP_FLAGS= )=0D --=20 2.39.0