]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (int_const_binop): Return NULL_TREE when an expression can't be evaluate...
authorRoger Sayle <roger@eyesopen.com>
Tue, 27 Dec 2005 23:27:34 +0000 (23:27 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 27 Dec 2005 23:27:34 +0000 (23:27 +0000)
commitfd6c76f46242891b11b7abbacb3c735f0012a240
tree3a566e041774c2831cfd87b087b4ca55259f0e53
parent5156c0c3a78803759bd723877af0ef2baafea938
fold-const.c (int_const_binop): Return NULL_TREE when an expression can't be evaluated at compile-time (instead...

* fold-const.c (int_const_binop): Return NULL_TREE when an expression
can't be evaluated at compile-time (instead of calling abort).
Return NULL_TREE for division (and modulus) by zero.
(const_binop):  Return NULL_TREE for floating point operators that
aren't handled by real_arithmetic.
(fold_binary):  Eliminate "wins" variable, and "binary" label, by
folding operators with constant operands early.  Assert that
operands are non-NULL.

From-SVN: r109088
gcc/ChangeLog
gcc/fold-const.c