From patchwork Fri Aug 17 10:19:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 178184 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 043172C008B for ; Fri, 17 Aug 2012 20:26:15 +1000 (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=1345803976; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=ZptlEajDu+NCS70wDMPM jntaBm0=; b=SqRvz0+w3oFYa6eHoIpvDAai1OUIaycrLea1el71fe2pgKE7fxLx tTFo/q2Y+D9jzmm5YwXtVWH5rLVUYPptO8WZ2ohO4kvU38kmxRwavNa4SGNKSMHm Ke0g4s4KgNuPR72laBNTb4Q8ElPPBBWWuKPxRHl46QiPWaZrpVMWvR4= 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:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=pJzIFuUWlqsIJsBqFZxQrNv2oJD3ecMBXcdq4NR+jtVMhzJ+Kq8n1VtTLnaJKI xRuOtwKvK8PwWq27vevH97S290+ol7chbnEKfPcLoKP54Td/NkOujaMvoUl9tcwt mUT2FJHFw76FKig8mQK6o9ZZIV/YQSjeJv3nkcRBY+QLI=; Received: (qmail 20430 invoked by alias); 17 Aug 2012 10:26:11 -0000 Received: (qmail 20422 invoked by uid 22791); 17 Aug 2012 10:26:11 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Aug 2012 10:25:55 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7HAPtfN010237 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 17 Aug 2012 06:25:55 -0400 Received: from Cadeux.redhat.com (vpn1-6-38.ams2.redhat.com [10.36.6.38]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7HAPhAo000903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 17 Aug 2012 06:25:51 -0400 From: Nick Clifton To: gcc-patches@gcc.gnu.org Subject: Commit: FR30: Fix building libgcc Date: Fri, 17 Aug 2012 11:19:55 +0100 Message-ID: <87ipchstv8.fsf@redhat.com> MIME-Version: 1.0 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 Hi Guys, I am applying the patch below to fix building libgcc for the fr30-elf target. The problem was that the comparison patterns were applying a mode to the operator which prevents them from matching rtl generated by the middle-end. Cheers Nick gcc/ChangeLog 2012-08-17 Nick Clifton * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison. (branch_true): Likewise. (branch_false): Likewise. Index: gcc/config/fr30/fr30.md =================================================================== --- gcc/config/fr30/fr30.md (revision 190466) +++ gcc/config/fr30/fr30.md (working copy) @@ -940,7 +940,7 @@ (compare:CC (match_operand:SI 1 "register_operand" "") (match_operand:SI 2 "nonmemory_operand" ""))) (set (pc) - (if_then_else (match_operator:CC 0 "ordered_comparison_operator" + (if_then_else (match_operator 0 "ordered_comparison_operator" [(reg:CC 16) (const_int 0)]) (label_ref (match_operand 3 "" "")) (pc)))] @@ -980,9 +980,9 @@ (define_insn "*branch_true" [(set (pc) - (if_then_else (match_operator:CC 0 "comparison_operator" - [(reg:CC 16) - (const_int 0)]) + (if_then_else (match_operator 0 "comparison_operator" + [(reg:CC 16) + (const_int 0)]) (label_ref (match_operand 1 "" "")) (pc)))] "" @@ -1034,9 +1034,9 @@ ;; branch occurs if the test is false, so the %B operator is used. (define_insn "*branch_false" [(set (pc) - (if_then_else (match_operator:CC 0 "comparison_operator" - [(reg:CC 16) - (const_int 0)]) + (if_then_else (match_operator 0 "comparison_operator" + [(reg:CC 16) + (const_int 0)]) (pc) (label_ref (match_operand 1 "" ""))))] ""