re PR middle-end/30656 (ICE with -ftrapv)
2007-02-01 Richard Guenther <rguenther@suse.de> PR middle-end/30656 * fold-const.c (fold_negate_expr): Allow negating a constant if overflow does not change. From-SVN: r121460
This commit is contained in:
parent
f1b0882e68
commit
ee7d8048d5
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-02-01 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/30656
|
||||
* fold-const.c (fold_negate_expr): Allow negating a
|
||||
constant if overflow does not change.
|
||||
|
||||
2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* doc/c-tree.texi (Expression trees): Improve markup.
|
||||
|
|
|
@ -1109,7 +1109,7 @@ fold_negate_expr (tree t)
|
|||
|
||||
case INTEGER_CST:
|
||||
tem = fold_negate_const (t, type);
|
||||
if (!TREE_OVERFLOW (tem)
|
||||
if (TREE_OVERFLOW (tem) == TREE_OVERFLOW (t)
|
||||
|| !TYPE_OVERFLOW_TRAPS (type))
|
||||
return tem;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue