From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27598 invoked by alias); 6 Oct 2004 13:05:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27574 invoked by uid 48); 6 Oct 2004 13:05:33 -0000 Date: Wed, 06 Oct 2004 13:05:00 -0000 From: "rguenth at tat dot physik dot uni-tuebingen dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20041006130524.17861.rguenth@tat.physik.uni-tuebingen.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug rtl-optimization/17861] New: loop optimizer generates wrong code X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg00698.txt.bz2 List-Id: extern void abort(); int foo=100; inline int f () { foo = 0; } void main () { int i; for (i = 0; i < foo; i++) f (); if (i != 1) abort(); } generates wrong code with 2.95.x through 3.4.x (but fixed / worked around on mainline) with -O2. Maybe someone can trigger the failure on mainline by disabling the right tree-optimization. See http://gcc.gnu.org/ml/gcc/2004-10/msg00172.html and followups. -- Summary: loop optimizer generates wrong code Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at tat dot physik dot uni-tuebingen dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17861