From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19649 invoked by alias); 5 Nov 2010 11:16:01 -0000 Received: (qmail 19636 invoked by uid 22791); 5 Nov 2010 11:16:00 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_TM X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Nov 2010 11:15:56 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46099] [4.5/4.6 Regression] ICE: in replace_ssa_name, at tree-cfg.c:5643 with -ftree-parallelize-loops -g X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.5.2 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 05 Nov 2010 11:16:00 -0000 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: 2010-11/txt/msg00618.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46099 --- Comment #4 from Jakub Jelinek 2010-11-05 11:15:32 UTC --- Author: jakub Date: Fri Nov 5 11:15:28 2010 New Revision: 166355 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166355 Log: PR tree-optimization/46099 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL if it is NULL and uid wasn't found in the hash table. Just fold the result if it is NULL otherwise. Insert other potentially needed stmts right before current stmt instead of on the entry edge. (struct elv_data): Add gsi and reset fields. (eliminate_local_variables_1): Adjust caller. If take_address_of failed for debug stmt, set dta->reset and return. (eliminate_local_variables_stmt): Change STMT argument for GSI, pass GSI through to the callback, handle resetting of debug stmts. (eliminate_local_variables): Adjust caller. Process debug stmts in second phase. * gcc.dg/autopar/pr46099.c: New test. Added: trunk/gcc/testsuite/gcc.dg/autopar/pr46099.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-parloops.c