From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7649 invoked by alias); 6 May 2009 13:25:35 -0000 Received: (qmail 6857 invoked by uid 48); 6 May 2009 13:24:40 -0000 Date: Wed, 06 May 2009 13:25:00 -0000 Message-ID: <20090506132440.6856.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/39999] [4.4/4.5 Regression] gcc 4.4.0 compiles in infinite loop In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth 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: 2009-05/txt/msg00462.txt.bz2 ------- Comment #4 from rguenth at gcc dot gnu dot org 2009-05-06 13:24 ------- Reduced testcase: void foo(void *); void MMAPGCD (int *A1, int *A2) { int *t; do { t = A1; A1 = A2; A2 = t; } while (A2[-1]); foo (A1-1); foo (A2-1); } if you make foo take int * the issue goes away. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.4.0 Known to work| |4.3.3 Summary|gcc 4.4.0 compiles in |[4.4/4.5 Regression] gcc |infinite loop |4.4.0 compiles in infinite | |loop Target Milestone|--- |4.4.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39999