From patchwork Thu Dec 1 10:10:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Preudhomme X-Patchwork-Id: 85998 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp617961qgi; Thu, 1 Dec 2016 02:11:19 -0800 (PST) X-Received: by 10.98.108.3 with SMTP id h3mr37984021pfc.65.1480587079069; Thu, 01 Dec 2016 02:11:19 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 206si68718435pfw.94.2016.12.01.02.11.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Dec 2016 02:11:19 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-443169-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-443169-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-443169-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 :references:subject:to:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=bCuQNaeMPlO+lQb9R GwRbJ7HmroM98DdPTe+NkosuVM9uhXeIW5aXjmEjBBurrfI9WqHjlE2SF2S1adoz pTuL215x0XZSQDTsq/90o7yAvx1pwOT+h4flff69cLb/WNv76Q5aeOWnYKPPv19/ /8b15iofBVmaNhqcXaKIKZLelo= 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 :references:subject:to:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=g2fn6bs9ZEZZgy6yYyXN1W0 7rp8=; b=pklNQCO0ka193rLIFjzsNfQtdegxRg87dbsnV4hdkNTJ4tIhKZa05nF Pz1R7GFp1ROREnk3yScfYgCYXIAgd7QI/YLERMCli9FL29X5P2lSMqNhVc/+/uvv NOtY8Y2KhmR4ZOJdkBCKZJiq2nigBg06D4ShE2tQzVHnsgbYnjGw= Received: (qmail 35168 invoked by alias); 1 Dec 2016 10:10:58 -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 35156 invoked by uid 89); 1 Dec 2016 10:10:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:1847, our X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Dec 2016 10:10:56 +0000 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 350AB16; Thu, 1 Dec 2016 02:10:55 -0800 (PST) Received: from [10.2.206.52] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DB0C23F24D for ; Thu, 1 Dec 2016 02:10:54 -0800 (PST) References: Subject: [arm-embedded] [PATCH, GCC/ARM] Add multilib mapping for Cortex-M23 & Cortex-M33 To: "gcc-patches@gcc.gnu.org" From: Thomas Preudhomme X-Forwarded-Message-Id: Message-ID: Date: Thu, 1 Dec 2016 10:10:53 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: X-IsSubscribed: yes Hi, We have decided to backport this patch to add multilib support for ARM Cortex-M23 and Cortex-M33 to our embedded-6-branch. *** gcc/ChangeLog *** 2016-11-30 Thomas Preud'homme * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33. Best regards, Thomas Hi, With ARM Cortex-M23 and Cortex-M33 and the support for RM profile multilib added recently, it's time to add the corresponding CPU to architecture mappings in config/arm/t-rmprofile. Note that Cortex-M33 is mapped to ARMv8-M Mainline because there is no transitive closure of mappings and the multilib for ARMv8-M Mainline with DSP extensions is ARMv8-M Mainline. ChangeLog entry is as follows: *** gcc/ChangeLog *** 2016-11-30 Thomas Preud'homme * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33. Testing: Linking fails before this patch when targeting one of these two cores and using rmprofile multilib but succeeds with the patch. Is this ok for stage3? Best regards, Thomas diff --git a/gcc/config/arm/t-rmprofile b/gcc/config/arm/t-rmprofile index c8b5c9cbd03694eea69855e20372afa3e97d6b4c..93aa909b4d942ad9875a95e0d4397ff17b317905 100644 --- a/gcc/config/arm/t-rmprofile +++ b/gcc/config/arm/t-rmprofile @@ -102,6 +102,8 @@ MULTILIB_MATCHES += march?armv6s-m=mcpu?cortex-m1.small-multiply MULTILIB_MATCHES += march?armv7-m=mcpu?cortex-m3 MULTILIB_MATCHES += march?armv7e-m=mcpu?cortex-m4 MULTILIB_MATCHES += march?armv7e-m=mcpu?cortex-m7 +MULTILIB_MATCHES += march?armv8-m.base=mcpu?cortex-m23 +MULTILIB_MATCHES += march?armv8-m.main=mcpu?cortex-m33 MULTILIB_MATCHES += march?armv7=mcpu?cortex-r4 MULTILIB_MATCHES += march?armv7=mcpu?cortex-r4f MULTILIB_MATCHES += march?armv7=mcpu?cortex-r5