[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug rtl-optimization/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719



------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-18 18:10 -------
Confirmed, a reduced testcase:
void tree_insert();
int empty, nulls;
char found;
long long min_arg, max_arg;
static inline int compare_longlong(const long long s, const long long t) {
  return ((s < t) ? -1 : s > t ? 1 : 0);
}
int num1();
int null_value;
void add(int room_in_tree)
{
  long long  num = num1();
  if (null_value)
  {
    nulls++;
    return;
  }
  if (num == 0)
    empty++;
  if (room_in_tree)
    tree_insert();
  if (!found)
    found = 1;
  else if (num != 0)
  {
    if (compare_longlong(num, min_arg) < 0)
      min_arg = num;
    if (compare_longlong(num, max_arg) > 0)
      max_arg = num;
  }
}
----
This one fails at -O2.

This also might fail on the mainline with -O2 -fno-tree-vrp.

Also this one might fail in 3.4.x also but I have not tested it there or on the mainline yet.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-18 18:10:45
               date|                            |


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

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: