[Bug tree-optimization/23476] [4.1 Regression] ICE in VRP, remove_range_assertions

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 19 09:05:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-19 06:24 -------
Ignore the comment about fold, copy prop is doing its job.

Also here is a testcase which can be repduced with a simple -O2 so this is definitely a regression now 
and not just a latent bug waiting to be exposed by other changes:
int h(int);
int t;
static inline int f(const int i)
{
  int tt = i;
  _Bool a = i < t;
  if (a)
    return h(t);
  return 9;
}
int g(void)
{
  return f(0x7FFFFFFF);
}

-- 


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



More information about the Gcc-bugs mailing list