From patchwork Wed Oct 26 13:54:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Stubbs X-Patchwork-Id: 4834 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id F350F23E0E for ; Wed, 26 Oct 2011 13:55:04 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id E0F58A182B4 for ; Wed, 26 Oct 2011 13:55:04 +0000 (UTC) Received: by faan26 with SMTP id n26so2207942faa.11 for ; Wed, 26 Oct 2011 06:55:04 -0700 (PDT) Received: by 10.223.4.215 with SMTP id 23mr59199902fas.8.1319637304699; Wed, 26 Oct 2011 06:55:04 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.1.71 with SMTP id 7cs13766lak; Wed, 26 Oct 2011 06:55:03 -0700 (PDT) Received: by 10.68.26.101 with SMTP id k5mr65832086pbg.4.1319637302212; Wed, 26 Oct 2011 06:55:02 -0700 (PDT) Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by mx.google.com with ESMTPS id e7si2595626pbm.143.2011.10.26.06.55.01 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Oct 2011 06:55:02 -0700 (PDT) Received-SPF: neutral (google.com: 192.94.38.131 is neither permitted nor denied by best guess record for domain of Andrew_Stubbs@mentor.com) client-ip=192.94.38.131; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.94.38.131 is neither permitted nor denied by best guess record for domain of Andrew_Stubbs@mentor.com) smtp.mail=Andrew_Stubbs@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RJ3wa-0004Ko-Gc from Andrew_Stubbs@mentor.com ; Wed, 26 Oct 2011 06:55:00 -0700 Received: from [127.0.0.1] ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Oct 2011 14:54:58 +0100 Message-ID: <4EA8112E.30609@codesourcery.com> Date: Wed, 26 Oct 2011 14:54:54 +0100 From: Andrew Stubbs User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Richard Earnshaw CC: "gcc-patches@gcc.gnu.org" , "patches@linaro.org" , Joey Ye Subject: Re: [PATCH][ARM] Big Endian and Generic tuning References: <4EA694B1.7060302@codesourcery.com> <4EA6A944.70808@arm.com> <4EA6B029.701@codesourcery.com> <4EA6C4BA.1090306@arm.com> In-Reply-To: <4EA6C4BA.1090306@arm.com> X-OriginalArrivalTime: 26 Oct 2011 13:54:59.0168 (UTC) FILETIME=[D9BC9E00:01CC93E6] On 25/10/11 15:16, Richard Earnshaw wrote: > The difficulty on R profile is that although BE-32 mode is obsolete, > there is a config bit that can be set to make the CPU byte-swap the > instruction stream to make it behave largely like it is running in BE-32 > mode. > > I think really we should be pushing the R-profile code towards having > BE-8 as the default; but to do that we really need a compiler option > that can override this behaviour (probably -mbe-[8|32]). Once we have > that option, we can fix the compiler to prefer BE-8 as there is then a > way to get back the legacy behaviour. Here's an updated patch that makes no generalizations. OK? Andrew 2011-10-26 Andrew Stubbs gcc/ * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning. --- a/gcc/config/arm/bpabi.h +++ b/gcc/config/arm/bpabi.h @@ -58,6 +58,7 @@ #define BE8_LINK_SPEC \ " %{mbig-endian:%{march=armv7-a|mcpu=cortex-a5 \ |mcpu=cortex-a8|mcpu=cortex-a9|mcpu=cortex-a15 \ + |mcpu=generic-armv7-a \ |march=armv7-m|mcpu=cortex-m3 \ |march=armv7e-m|mcpu=cortex-m4 \ |march=armv6-m|mcpu=cortex-m0 \