From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30351 invoked by alias); 10 Nov 2014 13:11: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 Received: (qmail 30291 invoked by uid 48); 10 Nov 2014 13:10:56 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/63804] [5 Regression] ice in find_oldest_value_reg with -g -O2 Date: Mon, 10 Nov 2014 13:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels 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-11/txt/msg00703.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63804 --- Comment #5 from Markus Trippelsdorf --- Please ignore comment 4. Testcase without implicit functions: markus@x4 tmp % cat bug169.c struct brw_context { int gen; } e; int a, d; long b; enum brw_reg_type { BRW_REGISTER_TYPE_Q }; struct brw_reg { enum brw_reg_type type : 1; int nr : 1; struct { unsigned ud; } dw1; }; enum brw_reg_type c; void fn1 (int p1) { b = p1 & a; } int fn2 (); void fn3 (); void fn4 (struct brw_reg p1, unsigned p2, int p3) { struct brw_reg f, g, h, j = p1, l, m = l; struct brw_context i = e; if (i.gen) p2 = 0; j.type = c; g = j; p1 = g; fn3 (); int k = p2, v = p1.nr, p = v; m.dw1.ud = k; f = m; h = f; struct brw_reg n = h; fn3 (n); { d = fn2 (); int o = d; fn1 (o); } if (i.gen) fn3 (p1); b = p & a; fn3 (p3); }