From patchwork Fri Jun 9 12:53:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 103495 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp196485qgd; Fri, 9 Jun 2017 06:01:22 -0700 (PDT) X-Received: by 10.84.141.36 with SMTP id 33mr39322545plu.99.1497013282055; Fri, 09 Jun 2017 06:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497013282; cv=none; d=google.com; s=arc-20160816; b=TJ2AzJsgHINq5mw6jY1s1KdJEsoWQc3xu6kTuXj0834fkRJCDE6dKJdMcUpa3AOda2 efRmhv63jAxX9LSOSRrhxsBFuw1G7ofDHQ+Yh/4aKQJyhCcRPwZjA8liJDPiIoFnh7F7 El2FfpYicTInKL4S6VBYreYbuVtcFGX3HGfA+Xh0JBzGkHxnfNbkZzZd9CfRlSc1+MjW bF9cCEAwasK2SHmv3Ow+1ExZrWnWTXIDC9WRs54ju4hF05zlJ31YYoo8KWwXsTC+b9Ln y6uNgbxqO/B4k9VldQaQ0ZQbIENEhQ7VNrs4YguWJz80OoFFNU07R3d5zPbea99myCvy AlLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=dQUJVV2nEoOKNjXYNy11bEVVulWiEwmVUTKI+Gmhyfw=; b=D/y5m79VMOhZP3rfNRbQEIZ0U6rw5XkbZ41nnphgHxRzUeHUjj1SNtCnKA4ScQ86Vd rYLJcNzCreMHGxl/d2ft48OAbRAjD0Z7P1o5mU0CaN8XO4rAjd1NCzssfrnbV1fnNml8 SL4VTFatFpB1Jz6cUBpmEzliRCVFax6I/ud6q+so8xZK6dJvDtXNT0dWFiRIlUyXFJu9 gnO1yZIxcSSZC9zvirqPupMkgWkhPDUBxiZ/PvyGhHW2E+ACOn5zmT5a9lhgNnFbX9I4 aar85UTzjGpY9WhDM6kIiVHZJZPzFm2O3Gkh1zxrugmMhx64TPEuTjqGY5+3uSd3W/pv JMJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-455539-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-455539-patch=linaro.org@gcc.gnu.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id j10si931697pfc.111.2017.06.09.06.01.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 06:01:22 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-455539-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-455539-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-455539-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:mime-version:content-type; q=dns; s= default; b=Yztj6rldkqRPPQlqvKvHRf1grTTFk9KkoSDzK44cfsGMDF9N1dc2I QOJFlHfk1Q3PQka17exk3jug5jeTM53K8zD/6K3w0M6KCAvOvlWDZhklomGDZ11T rmEBZuF26yKwdaAcHPeJtR7Im0MXePDt0DAxuYPUKiFPzRieq2X1O0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:mime-version:content-type; s=default; bh=2+ealNHkuXwpFQea5sqm1a74/4k=; b=JfCZrLC11Wae6Cu2MXAQrEBXX/Ai Oyz6TGj94iCtVlt7KpmnvFCFO0oyWT0ghLr0ca13GSPUS2xSHgjVJ0umMJiwSdXs swqf4RgNnC6elV8coAulBAAcyPHUFooe5EpfWOPpqZUlKC+vwoGF2SeSjua7ktg8 2/bYpVtB/npWz7U= 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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@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, 9 Jun 2017 13:53:55 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.140.101.70 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(-) 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 += $(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 = mfloat-abi=softfp -MULTILIB_DIRNAMES = softfp + +# Reset all the multilib variables. +MULTILIB_OPTIONS = +MULTILIB_DIRNAMES = +MULTILIB_EXCEPTIONS = +MULTILIB_REUSE = +MULTILIB_MATCHES = +MULTILIB_REQUIRED = + +MULTILIB_OPTIONS += march=armv5te+fp +MULTILIB_DIRNAMES += v5te + +MULTILIB_OPTIONS += mfloat-abi=softfp +MULTILIB_DIRNAMES += softfp + +MULTLILIB_REQUIRED += march=armv5te+fp/mfloat-abi=softfp + +MULTILIB_MATCHES += $(foreach ARCH, $(all_early_arch), \ + march?armv5te+fp=march?$(ARCH)+fp) + +MULTILIB_MATCHES += $(foreach FPARCH, $(v7a_fps), \ + march?armv5te+fp=march?armv7-a+$(FPARCH)) + +MULTILIB_MATCHES += $(foreach FPARCH, $(v7ve_fps), \ + march?armv5te+fp=march?armv7ve+$(FPARCH)) + +MULTILIB_MATCHES += $(foreach ARCH, $(all_v7_a_r), \ + march?armv5te+fp=march?$(ARCH)+fp) + +MULTILIB_MATCHES += $(foreach ARCH, $(all_v8_archs), \ + $(foreach FPARCH, $(v8_fps), \ + march?armv5te+fp=march?$(ARCH)+$(FPARCH)))