diff options
author | Richard Guenther <rguenther@suse.de> | 2006-06-16 14:56:34 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-06-16 14:56:34 +0000 |
commit | 1af8dcbf0b77a3e7e99c586f5e6673eead8b53b1 (patch) | |
tree | 7073ab53b36f03e3e04cb67e6df2ca77822bd4df /gcc/fortran/trans-array.c | |
parent | 2d0df1f9a8051d2a89f50e75b9555db06a9fdad8 (diff) | |
download | gcc-1af8dcbf0b77a3e7e99c586f5e6673eead8b53b1.zip gcc-1af8dcbf0b77a3e7e99c586f5e6673eead8b53b1.tar.gz gcc-1af8dcbf0b77a3e7e99c586f5e6673eead8b53b1.tar.bz2 |
re PR middle-end/27116 (Incorrect integer division (wrong sign).)
2006-06-16 Richard Guenther <rguenther@suse.de>
PR middle-end/27116
* fold-const.c (negate_expr_p): Do not introduce undefined
overflow in negating INTEGER_CSTs.
(fold_negate_expr): Rename from negate_expr. Revert last
change for folding BIT_NOT_EXPR. Change semantics to
return NULL_TREE for non-simplified negations. Do not
strip type conversions and unify type handling.
(negate_expr): New function, wrap around fold_negate_expr
but ensure building a tree always. Strip type conversions
here, fold to result type.
(fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
* gcc.dg/pr15785-1.c: Revert last change.
* gcc.dg/torture/pr27116-2.c: New testcase.
From-SVN: r114723
Diffstat (limited to 'gcc/fortran/trans-array.c')
0 files changed, 0 insertions, 0 deletions