From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98047 invoked by alias); 9 Jun 2017 12:54:57 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 86322 invoked by uid 89); 9 Jun 2017 12:54:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Jun 2017 12:54:35 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJJQq-0007iE-OZ for gcc-patches@gcc.gnu.org; Fri, 09 Jun 2017 08:54:31 -0400 Received: from foss.arm.com ([217.140.101.70]:47128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJJQq-0007Te-Hr for gcc-patches@gcc.gnu.org; Fri, 09 Jun 2017 08:54:28 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 402A12B; Fri, 9 Jun 2017 05:54:28 -0700 (PDT) Received: from e105689-lin.cambridge.arm.com (e105689-lin.cambridge.arm.com [10.2.207.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C31933F3E1; Fri, 9 Jun 2017 05:54:27 -0700 (PDT) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [PATCH 26/30] [arm] Rework multlib builds for symbianelf Date: Fri, 09 Jun 2017 12:55:00 -0000 Message-Id: In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.7.4" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.140.101.70 X-SW-Source: 2017-06/txt/msg00638.txt.bz2 This is a multi-part message in MIME format. --------------2.7.4 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable Content-length: 638 Symbianelf used to build multilib for armv5t with softfp, but that architecture doesn't really support floating point instructions. This patch reworks the multilib configuration to use armv5te as the base when building for floating point. I'm not sure just how useful the symbian port is these days, so this has only been very lightly tested (checks that libgcc builds for all multilib variants). Perhaps we should consider deprecating this config? * config/arm/t-symbian: Rewrite for new option infrastructure. --- gcc/config/arm/t-symbian | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) --------------2.7.4 Content-Type: text/x-patch; name="0026-arm-Rework-multlib-builds-for-symbianelf.patch" Content-Disposition: attachment; filename="0026-arm-Rework-multlib-builds-for-symbianelf.patch" Content-Transfer-Encoding: quoted-printable Content-length: 1497 diff --git a/gcc/config/arm/t-symbian b/gcc/config/arm/t-symbian index bc10b58..003651e 100644 --- a/gcc/config/arm/t-symbian +++ b/gcc/config/arm/t-symbian @@ -22,5 +22,35 @@ EXTRA_HEADERS +=3D $(srcdir)/ginclude/unwind-arm-common.h # multilib for those without -- using the soft-float ABI in both # cases. Symbian OS object should be compiled with interworking # enabled, so there are no separate thumb-mode libraries. -MULTILIB_OPTIONS =3D mfloat-abi=3Dsoftfp -MULTILIB_DIRNAMES =3D softfp + +# Reset all the multilib variables. +MULTILIB_OPTIONS =3D +MULTILIB_DIRNAMES =3D +MULTILIB_EXCEPTIONS =3D +MULTILIB_REUSE =3D +MULTILIB_MATCHES =3D +MULTILIB_REQUIRED =3D + +MULTILIB_OPTIONS +=3D march=3Darmv5te+fp +MULTILIB_DIRNAMES +=3D v5te + +MULTILIB_OPTIONS +=3D mfloat-abi=3Dsoftfp +MULTILIB_DIRNAMES +=3D softfp + +MULTLILIB_REQUIRED +=3D march=3Darmv5te+fp/mfloat-abi=3Dsoftfp + +MULTILIB_MATCHES +=3D $(foreach ARCH, $(all_early_arch), \ + march?armv5te+fp=3Dmarch?$(ARCH)+fp) + +MULTILIB_MATCHES +=3D $(foreach FPARCH, $(v7a_fps), \ + march?armv5te+fp=3Dmarch?armv7-a+$(FPARCH)) + +MULTILIB_MATCHES +=3D $(foreach FPARCH, $(v7ve_fps), \ + march?armv5te+fp=3Dmarch?armv7ve+$(FPARCH)) + +MULTILIB_MATCHES +=3D $(foreach ARCH, $(all_v7_a_r), \ + march?armv5te+fp=3Dmarch?$(ARCH)+fp) + +MULTILIB_MATCHES +=3D $(foreach ARCH, $(all_v8_archs), \ + $(foreach FPARCH, $(v8_fps), \ + march?armv5te+fp=3Dmarch?$(ARCH)+$(FPARCH))) --------------2.7.4--