------- Comment #23 from kkojima at gcc dot gnu dot org  2008-08-12 00:27 
-------
(In reply to comment #22)
> Created an attachment (id=16053)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16053&action=view) [edit]
> pop.patch

I've confirmed that this patch gets rid of the ICEs for the test
case in #7 and the original libjava build failure on SH4, though
libjava fails to build at the another place on SH4.
Here is a reduced test case:

typedef union {
  double value;
  struct { unsigned int lsw, msw; } parts;
} ieee_double_shape_type;

double
foo (double x)
{
  unsigned int hx, lx;
  ieee_double_shape_type u;

  u.value = x;
  hx = u.parts.msw;

  if (hx >= 0x40862E42)
    {
      if (hx >= 0x7ff00000)
        {
          u.value = x;
          lx = u.parts.lsw;

          if (((hx & 0xfffff) | lx) != 0)
            return x+x;
        }
    }

  return x;
}

I'd like to attach .206.shorten dump for this.


-- 


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

Reply via email to