From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13347 invoked by alias); 27 Jan 2015 09:15:10 -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 Received: (qmail 13215 invoked by uid 48); 27 Jan 2015 09:14:57 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/64809] [5 Regression] ICE at -O3 with -g enabled on x86_64-linux-gnu (in 32-bit mode) Date: Tue, 27 Jan 2015 09:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority cc short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg03022.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64809 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 CC| |jakub at gcc dot gnu.org Summary|ICE at -O3 with -g enabled |[5 Regression] ICE at -O3 |on x86_64-linux-gnu (in |with -g enabled on |32-bit mode) |x86_64-linux-gnu (in 32-bit | |mode) --- Comment #3 from Jakub Jelinek --- I can't seem to reproduce this, even with valgrind. Line 5031 is: lattice[i] += lattice[gimple_uid (def_stmt)]; But adding a gcc_assert (gimple_bb (def_stmt) == bb); ICEs on this testcase, so the assumptions that we only TER inside bbs is apparently false, either due to some bug or intentionally so. In that case, either we need to fix that bug or change reorder_operands back to check gimple_bb (def_stmt) == bb in all 3 spots where reorder_operands calls get_gimple_for_ssa_name.