From patchwork Tue Feb 28 15:27:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Earnshaw X-Patchwork-Id: 143474 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id DB7FDB6FB4 for ; Wed, 29 Feb 2012 02:28:19 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1331047700; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=vkCzR86 Qz1VPEbYorPJSlUxltRU=; b=n0zQ//8rEkrcHV7gREjmDnPExRBnlBCrn74mUEt M6cEWyl/RaNWLlSq/vYvdqJwnFbvsQnFfP2oQ1X5Fk1X4MDsHv40miqRRw2Yu3r+ uYcUDLGmu24dMjcKxU/AK04F5guk6B4oaDoXvnSoyepzjZyTFhbyhkXFbk9yDDAe Eo+w= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:X-MC-Unique:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=xI/KJljbPo2zdeDyLqbJ2kBomWiMItEBUEdrVShgmcXm4bMk8S/br7gMzJoR8f ASuh79VbD5RUwp0m015DRiskaePCBs3oYKrfKSKdXqozlbQ+h70Akt0BqDEiWQlq fvR1VIjp4FCnZI1YdwfnIsM0RZb2eC0P0BLKHY1nhKW5I=; Received: (qmail 22326 invoked by alias); 28 Feb 2012 15:28:10 -0000 Received: (qmail 22317 invoked by uid 22791); 28 Feb 2012 15:28:09 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Feb 2012 15:27:56 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Tue, 28 Feb 2012 15:27:29 +0000 Received: from [10.1.69.67] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 28 Feb 2012 15:27:41 +0000 Message-ID: <4F4CF258.9050300@arm.com> Date: Tue, 28 Feb 2012 15:27:20 +0000 From: Richard Earnshaw User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [PATCH, ARM] PR49448 incorrectly detecting big-endian arm-linux triplets X-MC-Unique: 112022815272943801 X-IsSubscribed: yes 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 The pattern to match a big-endian machine for linux is ambiguous as reported by the PR and can cause some little-endian triplets to be confused as big-endian. This patch makes the string unambiguous. R. * config.gcc (arm*-*-linux*): Use an unambiguous pattern for detecting big-endian triplets. Index: config.gcc =================================================================== --- config.gcc (revision 184624) +++ config.gcc (working copy) @@ -825,7 +825,7 @@ arm*-*-netbsdelf*) arm*-*-linux*) # ARM GNU/Linux with ELF tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" case $target in - arm*b-*) + arm*b-*-linux*) tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" ;; esac