From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32587 invoked by alias); 12 Mar 2014 12:05:56 -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 32544 invoked by uid 48); 12 Mar 2014 12:05:52 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/60508] internal compiler error: in lra_set_insn_recog_data, at lra.c:1082 Date: Wed, 12 Mar 2014 12:05: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: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed 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-03/txt/msg00964.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60508 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-03-12 CC| |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek --- Cleaned up testcase: int a = 1, g, h = 1, d, e, *f; char b; static int c[] = { 0, 0 }; void fn2 (void); void fn1 (short x, int l) { lab: { int k, m[0]; long j = h ? 0 : 0 / 0; unsigned char n = j; unsigned char i = x >= 0 ? n : n >> x; g = i; for (;;) { if (a) goto lab; while (d) { e = b = c[l]; fn2 (); } int o = m[0]; f = &k; } } } m[0] is undefined behavior of course, but with the above global variables unchanged and x >= 0 argument the function should be just endless loop without triggering undefined behavior.