[Bug rtl-optimization/49472] [4.7 regression] Compiler segfault on valid code

wschmidt at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 20 15:19:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49472

--- Comment #7 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2011-06-20 15:18:55 UTC ---
Sorry, paste error.  That was the wrong gimple dump.  HERE is 142.optimized:

;; Function nu_derivs (__massivenu_MOD_nu_derivs, funcdef_no=0, decl_uid=708,
cgraph_uid=0)

nu_derivs ()
{
  void * D.760;
  <unnamed-unsigned:64> ivtmp.14;
  real(kind=8) powroot.4;
  real(kind=8) powmult.2;
  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;
  real(kind=8) D.734;
  real(kind=8) D.732;
  real(kind=8) D.731;
  real(kind=8) D.729;
  real(kind=8) D.728;
  real(kind=8) D.727;

<bb 2>:
  # DEBUG iq => 2
  ivtmp.14_31 = (<unnamed-unsigned:64>) &g1[0];

<bb 3>:
  # iq_1 = PHI <2(2), iq_19(3)>
  # ivtmp.14_29 = PHI <ivtmp.14_31(2), ivtmp.14_30(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)
  powmult.2_25 = aq_6 * aq_6;
  D.731_10 = powmult.2_25 + 1.0e+0;
  D.719_11 = ((D.731_10));
  powroot.4_26 = __builtin_sqrt (D.719_11);
  powroot.4_27 = D.719_11 * powroot.4_26;
  powroot.4_28 = 1.0e+0 / powroot.4_27;
  aqdot_8 = powroot.4_28 * 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
  ivtmp.14_30 = ivtmp.14_29 + 8;
  D.760_32 = (void *) ivtmp.14_30;
  MEM[base: D.760_32, offset: 0B] = vdot_15;
  iq_19 = iq_1 + 1;
  # DEBUG iq => iq_19
  if (iq_19 == 5)
    goto <bb 4>;
  else
    goto <bb 3>;

<bb 4>:
  dummy (&g1);
  return;

}



More information about the Gcc-bugs mailing list