From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1738 invoked by alias); 20 Jun 2011 15:18:14 -0000 Received: (qmail 1730 invoked by uid 22791); 20 Jun 2011 15:18:14 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_AQ 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; Mon, 20 Jun 2011 15:18:00 +0000 From: "wschmidt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/49472] [4.7 regression] Compiler segfault on valid code X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: wschmidt 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: 4.7.0 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: Mon, 20 Jun 2011 15:18: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: 2011-06/txt/msg01779.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49472 --- Comment #6 from William J. Schmidt 2011-06-20 15:16:59 UTC --- Gimple out of the middle end looks fine. From 142t.optimized: ;; Function nu_derivs (__massivenu_MOD_nu_derivs, funcdef_no=0, decl_uid=708, cgraph_uid=0) nu_derivs () { real(kind=8) D.719; real(kind=8) vdot; integer(kind=4) iq; real(kind=8) g1[4]; real(kind=8) aqdot; real(kind=8) aq; real(kind=8) adotoa; integer(kind=8) D.736; integer(kind=8) D.735; real(kind=8) D.734; real(kind=8) D.733; real(kind=8) D.732; real(kind=8) D.731; real(kind=8) D.730; real(kind=8) D.729; real(kind=8) D.728; real(kind=8) D.727; : # DEBUG iq => 2 : # iq_1 = PHI <2(2), iq_19(3)> # DEBUG iq => iq_1 D.727_3 = (real(kind=8)) iq_1; D.728_4 = D.727_3 - 1.5e+0; D.729_5 = ((D.728_4)); aq_6 = 1.0e+0 / D.729_5; # DEBUG aq => aq_6 # DEBUG aqdot => aq_6 * adotoa_7(D) D.730_9 = __builtin_pow (aq_6, 2.0e+0); D.731_10 = D.730_9 + 1.0e+0; D.719_11 = ((D.731_10)); D.733_13 = __builtin_pow (D.719_11, -1.5e+0); aqdot_8 = D.733_13 * adotoa_7(D); D.732_12 = aqdot_8 * aq_6; D.734_14 = D.732_12 * aq_6; vdot_15 = -D.734_14; # DEBUG vdot => vdot_15 D.735_16 = (integer(kind=8)) iq_1; D.736_17 = D.735_16 + -1; g1[D.736_17] = vdot_15; iq_19 = iq_1 + 1; # DEBUG iq => iq_19 if (iq_1 == 4) goto ; else goto ; : dummy (&g1); return; }