From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11527 invoked by alias); 2 Aug 2011 12:06:42 -0000 Received: (qmail 11518 invoked by uid 22791); 2 Aug 2011 12:06:42 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fanny.its.uu.se (HELO fanny.its.uu.se) (130.238.4.241) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Aug 2011 12:06:27 +0000 Received: from fanny.its.uu.se (localhost [127.0.0.1]) by fanny.its.uu.se (Postfix) with ESMTP id 6C23C6401; Tue, 2 Aug 2011 14:06:26 +0200 (MSZ) Received: from pilspetsen.it.uu.se (pilspetsen.it.uu.se [130.238.18.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by fanny.its.uu.se (Postfix) with ESMTP id 0930A62FA; Tue, 2 Aug 2011 14:06:26 +0200 (MSZ) Received: (from mikpe@localhost) by pilspetsen.it.uu.se (8.14.4+Sun/8.14.4) id p72C6OLi004514; Tue, 2 Aug 2011 14:06:24 +0200 (MEST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20023.59456.782598.31450@pilspetsen.it.uu.se> Date: Tue, 02 Aug 2011 12:06:00 -0000 From: Mikael Pettersson To: "Michael Walle" Cc: "Richard Guenther" , "Georg-Johann Lay" , "Mikael Pettersson" , "Hans-Peter Nilsson" , "Richard Henderson" , gcc@gcc.gnu.org Subject: Re: libgcc: strange optimization In-Reply-To: <27466ae6b9a714679fcba410cce130ba.squirrel@ssl.serverraum.org> References: <201108012230.29989.michael@walle.cc> <4E371AC5.5090509@redhat.com> <20023.47611.116809.875356@pilspetsen.it.uu.se> <4E37CAFB.5010401@gjlay.de> <27466ae6b9a714679fcba410cce130ba.squirrel@ssl.serverraum.org> Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-08/txt/msg00043.txt.bz2 Michael Walle writes: > > Hi, > > > To confirm that try -fno-tree-ter. > > "lm32-gcc -O1 -fno-tree-ter -S -c test.c" generates the following working > assembly code: > > f2: > addi sp, sp, -4 > sw (sp+4), ra > addi r2, r0, 10 > calli __ashrsi3 > addi r8, r0, 10 > scall > lw ra, (sp+4) > addi sp, sp, 4 > b ra -fno-tree-ter also unbreaks the ARM test case in PR48863 comment #4.