------- Comment #6 from rguenth at gcc dot gnu dot org  2007-01-31 23:27 -------
We can fix the symptom by

Index: fold-const.c
===================================================================
*** fold-const.c        (revision 121440)
--- fold-const.c        (working copy)
*************** fold_negate_expr (tree t)
*** 1109,1115 ****

      case INTEGER_CST:
        tem = fold_negate_const (t, type);
!       if (!TREE_OVERFLOW (tem)
          || !TYPE_OVERFLOW_TRAPS (type))
        return tem;
        break;
--- 1109,1115 ----

      case INTEGER_CST:
        tem = fold_negate_const (t, type);
!       if (TREE_OVERFLOW (tem) == TREE_OVERFLOW (t)
          || !TYPE_OVERFLOW_TRAPS (type))
        return tem;
        break;


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-01-31 23:27:47
               date|                            |


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

Reply via email to