public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/40669]  New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
@ 2009-07-07  8:55 jakub at gcc dot gnu dot org
  2009-07-07  8:55 ` [Bug middle-end/40669] " jakub at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-07  8:55 UTC (permalink / raw)
  To: gcc-bugs

double _Complex
test (int d, int t, double *x, double *y, double *z, int n,
      double _Complex (*fnp) (double))
{
  int m = n / 2;
  double min = y[t], max = z[t], med = x[m * d + t];
  double _Complex result = 0.0;

  if (n == 0)
    return 0.0;

  if (min > med)
    result += test (d, (t + 1) % d, x + (m + 1) * d, y, z, n - m - 1, fnp);
  else if (max < med)
    result += test (d, (t + 1) % d, x, y, z, m, fnp);
  else
    {
      result += fnp (y[0] + x[m]);
      result += test (d, (t + 1) % d, x + (m + 1) * d, y, z, n - m - 1, fnp);
    }
  return result;
}

ICEs at -O2 -ffast-math on x86_64-linux, in 4.4/4.5 with:
x.i: In function 'test':
x.i:22:1: internal compiler error: in gimple_assign_set_rhs1, at gimple.h:1683
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
and in 4.3 with:
x.i: In function 'test':
x.i:4: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1071
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Compiles just fine with 4.1 and 4.2.


-- 
           Summary: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1
                    from eliminate_tail_call
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: jakub at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: x86_64-linux


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-07-07 14:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-07  8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
2009-07-07  8:55 ` [Bug middle-end/40669] " jakub at gcc dot gnu dot org
2009-07-07  9:15 ` rguenth at gcc dot gnu dot org
2009-07-07  9:23 ` rguenth at gcc dot gnu dot org
2009-07-07  9:46 ` jakub at gcc dot gnu dot org
2009-07-07  9:59 ` rguenth at gcc dot gnu dot org
2009-07-07 10:01 ` rguenth at gcc dot gnu dot org
2009-07-07 12:19 ` jakub at gcc dot gnu dot org
2009-07-07 12:45 ` rguenth at gcc dot gnu dot org
2009-07-07 13:59 ` rguenth at gcc dot gnu dot org
2009-07-07 14:08 ` jakub at gcc dot gnu dot org
2009-07-07 14:09 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).