From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10449 invoked by alias); 17 Dec 2013 11:53:28 -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 10436 invoked by uid 89); 17 Dec 2013 11:53:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Dec 2013 11:53:26 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Tue, 17 Dec 2013 11:53:24 +0000 Received: from [10.1.208.33] ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 17 Dec 2013 11:53:23 +0000 Message-ID: <52B03B32.4050703@arm.com> Date: Tue, 17 Dec 2013 11:53:00 -0000 From: Richard Earnshaw User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: James Greenhalgh CC: "gcc-patches@gcc.gnu.org" , Ramana Radhakrishnan Subject: Re: [ARM 1/5 big.LITTLE] Add driver support for rewriting -mcpu names References: <1387276843-21770-1-git-send-email-james.greenhalgh@arm.com> <1387276843-21770-2-git-send-email-james.greenhalgh@arm.com> In-Reply-To: <1387276843-21770-2-git-send-email-james.greenhalgh@arm.com> X-MC-Unique: 113121711532401401 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg01488.txt.bz2 On 17/12/13 10:40, James Greenhalgh wrote: >=20 > Hi, >=20 > This patch adds machinery to the driver to ensure that big.LITTLE > style tuning names are rewritten before they are passed to the > assembler. This reduces the coupling needed between GCC versions > and assembler versions. >=20 > The rule is simple, we truncate the CPU name at the first '.' > character we see. >=20 > Thus -mcpu=3Dcortex-a15.cortex-a7 would be truncated to -mcpu=3Dcortex-a1= 5. >=20 > Bootstrapped on a ChromeBook and checked for an arm-none-eabi and > an arm-none-linux-gnueabi build. >=20 > Thanks, > James >=20 > --- > gcc/ >=20 > 2013-12-17 James Greenhalgh >=20 > * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New. > (arm_rewrite_mcpu): Likewise. > * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New. > * config/arm/arm.h (BIG_LITTLE_SPEC): New. > (BIG_LITTLE_SPEC_FUNCTIONS): Likewise. > (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS. > (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC. > * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values. >=20 OK. R.