From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5774 invoked by alias); 11 Nov 2010 20:38:53 -0000 Received: (qmail 5759 invoked by uid 22791); 11 Nov 2010 20:38:49 -0000 X-SWARE-Spam-Status: No, hits=-2.8 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; Thu, 11 Nov 2010 20:38:45 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46099] [4.5 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: Thu, 11 Nov 2010 20:38: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/msg01528.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46099 --- Comment #6 from Jakub Jelinek 2010-11-11 20:38:15 UTC --- Author: jakub Date: Thu Nov 11 20:38:12 2010 New Revision: 166618 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166618 Log: Backport from mainline 2010-11-05 Jakub Jelinek 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: branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/autopar/pr46099.c Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/testsuite/ChangeLog branches/gcc-4_5-branch/gcc/tree-parloops.c