From patchwork Fri Nov 19 15:18:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yvan ROUX X-Patchwork-Id: 72260 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 7D2A61007D2 for ; Sat, 20 Nov 2010 02:31:09 +1100 (EST) Received: (qmail 24813 invoked by alias); 19 Nov 2010 15:31:06 -0000 Received: (qmail 24795 invoked by uid 22791); 19 Nov 2010 15:31:05 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from eu1sys200aog108.obsmtp.com (HELO eu1sys200aog108.obsmtp.com) (207.126.144.125) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Nov 2010 15:30:58 +0000 Received: from source ([167.4.1.35]) (using TLSv1) by eu1sys200aob108.postini.com ([207.126.147.11]) with SMTP ID DSNKTOaYL3tKUgIIqEs6RUIJ7jM9tcXjRtEj@postini.com; Fri, 19 Nov 2010 15:30:58 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.80.115]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 78EF8BA for ; Fri, 19 Nov 2010 15:30:53 +0000 (GMT) Received: from Webmail-eu.st.com (safex1hubcas5.st.com [10.75.90.71]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 6EE10201 for ; Fri, 19 Nov 2010 15:30:52 +0000 (GMT) Received: from gnx2494 (164.129.122.59) by webmail-eu.st.com (10.75.90.13) with Microsoft SMTP Server (TLS) id 8.2.234.1; Fri, 19 Nov 2010 16:30:30 +0100 Date: Fri, 19 Nov 2010 16:18:15 +0100 From: Yvan ROUX To: "gcc-patches@gcc.gnu.org" Subject: [PATCH] arm/lib1funcs.as: fix mismatch between conditions of an IT block Message-ID: <20101119151815.GB31199@gnx2494> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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, this patch fixes a build error that appears when compiling in thumb and optimize for size mode (occurs in multibuild with configure --enable-target-optspace). It is OK ? Cheers, Yvan 2010-11-19 Yvan Roux * config/arm/lib1funcs.asm (ARM_DIV_BODY): Fix mismatch between IT block instruction condition and the syntax of the instructions in its IT block. diff --git a/gcc/config/arm/lib1funcs.asm b/gcc/config/arm/lib1funcs.asm index 085e690..2e76c01 100644 --- a/gcc/config/arm/lib1funcs.asm +++ b/gcc/config/arm/lib1funcs.asm @@ -641,7 +641,7 @@ pc .req r15 subhs \dividend, \dividend, \divisor, lsr #3 orrhs \result, \result, \curbit, lsr #3 cmp \dividend, #0 @ Early termination? - do_it hs, t + do_it ne, t movnes \curbit, \curbit, lsr #4 @ No, any more bits to do? movne \divisor, \divisor, lsr #4 bne 1b