From patchwork Thu Jun 6 01:43:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Cheng X-Patchwork-Id: 249242 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id D14202C02CD for ; Thu, 6 Jun 2013 11:48:13 +1000 (EST) 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:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=LQPkq/lE1cTP32ckELmRUu11zy17hem4zFISn0hgjRWpHOBHa+lk3 VcdJ+j1RVZZQ789JO6Z0546IoMA69f4qTj4d9pgAVChViVpNNGb+2kMNem7etIBW qlWOJ3OlwnfZnUb4UuiLKfRN9QPN4L0RMwqs6UpH1n+ZZyYlChKrOM= 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:subject:date:message-id:mime-version:content-type; s= default; bh=g4ARVhGK4VBQH72uk90IsgSvdhs=; b=SNPEE9Mnn3PuJ4smkz/h BLYMkWa/iEUASmNS+SSk69XC7L2EMoQFtIRj3LO+0I1dfWBUvGg0zJ6UgcwjGVUw ND01Uz84PsEr0YysYDCcG/Blzx+5rTTMkyctzXMHrA26f9XIN2jjZHcZk6ecVt/5 03exmNzf0cyHY30ijx0POUw= Received: (qmail 27350 invoked by alias); 6 Jun 2013 01:48:06 -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 27247 invoked by uid 89); 6 Jun 2013 01:47:59 -0000 X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, MSGID_MULTIPLE_AT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.1 Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 06 Jun 2013 01:47:57 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 06 Jun 2013 02:47:55 +0100 Received: from Binsh02 ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 6 Jun 2013 02:47:53 +0100 From: "Bin Cheng" To: Subject: [PATCH arm/embedded-4_7-branch]fix fialure of mtune option Date: Thu, 6 Jun 2013 09:43:53 +0800 Message-ID: <009401ce6257$4f498c60$eddca520$@cheng@arm.com> MIME-Version: 1.0 X-MC-Unique: 113060602475500201 X-Virus-Found: No Hi, This patch fixes failure of command "arm-none-eabi-gcc -O2 -mthumb -mtune=cortex-m4 ..." on arm/embedded-4_7-branch by removing the assertion in arm_cortex_v7m_branch_cost. Is it OK? Thanks. 2013-06-06 Bin Cheng * config/arm/arm.c (arm_cortex_v7m_branch_cost): Remove assertion on TARGET_32BIT and TARGET_THUMB2. Index: gcc/config/arm/arm.c =================================================================== --- gcc/config/arm/arm.c (revision 199680) +++ gcc/config/arm/arm.c (working copy) @@ -8760,8 +8760,6 @@ arm_cortex_a5_branch_cost (bool speed_p, bool pred static int arm_cortex_v7m_branch_cost (bool speed_p, bool predictable_p ATTRIBUTE_UNUSED) { - gcc_assert (TARGET_32BIT && TARGET_THUMB2); - return 1; }