From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22726 invoked by alias); 22 Feb 2007 22:39:41 -0000 Received: (qmail 22695 invoked by uid 48); 22 Feb 2007 22:39:31 -0000 Date: Thu, 22 Feb 2007 22:39:00 -0000 Subject: [Bug rtl-optimization/30931] New: Simple test case loops infinitely with -O1 -fstrength-reduce. X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bergner at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-02/txt/msg02605.txt.bz2 The simple test which I'll attach shortly, loops infinitely when compiled with -O1 -fstrength-reduce and executes fine with plain -O1. Doing a little debugging, it seems the loop index variable "i" is not incremented within the loop causing us to loop forever. I have tested this using the latest FSF 4.1, 4.2 and mainline compiler sources and it only fails using the 4.1 compiler. Using an older 3.4.6 distro compiler, it executes fine, so this _looks_ like a regression. -- Summary: Simple test case loops infinitely with -O1 -fstrength- reduce. Product: gcc Version: 4.1.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bergner at gcc dot gnu dot org GCC build triplet: i686-linux GCC host triplet: i686-linux GCC target triplet: i686-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30931