From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24748 invoked by alias); 1 Dec 2014 10:00:19 -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 24684 invoked by uid 48); 1 Dec 2014 10:00:14 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64121] [5 Regression] ICE: SSA corruption with -O -fsanitize=undefined Date: Mon, 01 Dec 2014 10:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2014-12/txt/msg00031.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64121 --- Comment #2 from Richard Biener --- # xp_1(ab) = PHI base: if (x_5(D) != 0) goto ; else goto ; : xp.0_6 = xp_1(ab); xp_7(ab) = xp.0_6 + 4; _15 = __builtin_object_size (ip_8(D), 0); _16 = ip_8(D); UBSAN_OBJECT_SIZE (_16, 4, _15, 0); _9 = *ip_8(D); _17 = __builtin_object_size (xp_1(ab), 0); ... _13 = &base + _12; gotovar.1_14 = _13; goto gotovar.1_14; xp_1 and xp_7 are life at the same time - the above is from 017t.ubsan. You may not refer to xp_1(ab) but should use xp.0_6 here.