From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27884 invoked by alias); 21 May 2011 07:47:53 -0000 Received: (qmail 27875 invoked by uid 22791); 21 May 2011 07:47:52 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 21 May 2011 07:47:36 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id CED4ACB02C6; Sat, 21 May 2011 09:47:35 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rti8gfhLcTuh; Sat, 21 May 2011 09:47:32 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id AA576CB024D; Sat, 21 May 2011 09:47:32 +0200 (CEST) From: Eric Botcazou To: Tom de Vries Subject: Re: [PATCH PR45098, 9/10] Cheap shift-add. Date: Sat, 21 May 2011 15:05:00 -0000 User-Agent: KMail/1.9.9 Cc: gcc-patches@gcc.gnu.org, Zdenek Dvorak References: <4DD21F6E.4050308@codesourcery.com> <20110518212018.GA28543@kam.mff.cuni.cz> <4DD6323B.6030308@codesourcery.com> In-Reply-To: <4DD6323B.6030308@codesourcery.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201105210940.41771.ebotcazou@adacore.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg01522.txt.bz2 > 2011-05-05 Tom de Vries > > PR target/45098 > * tree-ssa-loop-ivopts.c: Include expmed.h. > (get_shiftadd_cost): New function. > (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost. This breaks the Ada compiler on x86: /home/eric/build/gcc/native32/./gcc/xgcc -B/home/eric/build/gcc/native32/./gcc/ -B/home/eric/install/gcc/i586-suse-linux/bin/ -B/home/eric/install/gcc/i586-suse-linux/lib/ -isystem /home/eric/install/gcc/i586-suse-linux/include -isystem /home/eric/install/gcc/i586-suse-linux/sys-include -c -g -O2 -fPIC -W -Wall -gnatpg a-calend.adb -o a-calend.o +===========================GNAT BUG DETECTED==============================+ | 4.7.0 20110521 (experimental) [trunk revision 173887] (i586-suse-linux-gnu) GCC error:| | in int_cst_value, at tree.c:9970 | | Error detected around a-calend.adb:1254:7 To reproduce, do: gcc/gnat1 gcc/ada/rts/a-calend.adb -gnatg -O -Igcc/ada/rts in the build dir. -- Eric Botcazou