This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30656] [4.3 Regression] ICE with -ftrapv
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2007 23:27:47 -0000
- Subject: [Bug middle-end/30656] [4.3 Regression] ICE with -ftrapv
- References: <bug-30656-7427@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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