[Bug optimization/11379] ICE with optimization option -fnew-ra

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Tue Jul 15 14:42:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-06-30 13:39:09         |2003-07-15 14:42:15
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-15 14:42 -------
Here is a reduce test case (down to 36 lines):
typedef unsigned char Byte;
typedef unsigned int uInt;
typedef uInt uIntf;
typedef struct inflate_huft_s inflate_huft;
struct inflate_huft_s
{
  Byte Exop;
  Byte Bits;
  uInt base;
};
int huft_build (uInt n, uInt s, const uIntf * d,
            const uIntf * e)
{

  uInt a = n;
  uInt c[15 + 1];
  uInt i = n;
  uInt j = n;
  uInt k = n;
  register uIntf *p;
  inflate_huft *q = 0;
  struct inflate_huft_s r;
  p = c;
  for (; k <= n; k++)
    { 
      while (a--)
        { 
          r.Exop = (Byte) (e[*p - s] + 16 + 64);
          r.base = d[*p++ - s];
          for (j = i >> n; j < n; j += 1 << (k - n))
            q[j] = r;
        }
    }
  return 0;
}



More information about the Gcc-bugs mailing list