This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/38572] [4.4 Regression] ICE in set_value_range, at tree-vrp.c:398



------- Comment #19 from bonzini at gnu dot org  2008-12-22 08:52 -------
Smaller testcase, without uninitialized variables too:

enum JSOp
{
  JSOP_GETELEM = 5,
  JSOP_LIMIT
};
extern void g ();
void
f (char *pc, char *endpc, int format, char ***fp, enum JSOp op)
{
  while (pc <= endpc)
    {
      if ((fp && *fp && pc == **fp) || pc == endpc)
        {
          if (format == 1)
            op = (JSOp) 256;
          else if (format == 2)
            op = (JSOp) 257;
          else
            op = JSOP_GETELEM;
        }
      if (op >= JSOP_LIMIT)
        {
          if (format)
            g ();
        }
    }
}


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]