fold-const.c (fold_binary): Use the precision of the type instead of the size of...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 1 Dec 2006 22:46:45 +0000 (22:46 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 1 Dec 2006 22:46:45 +0000 (22:46 +0000)
commitf0dbdfbb4d55628785aed06c8e9d1ab81b26e458
treeeed9131e8b7c9700cd4de51e2d384449f3da69b4
parent09aad82b44b0e51d3561f4e7b411f21b881f46c3
fold-const.c (fold_binary): Use the precision of the type instead of the size of its mode to compute the...

* fold-const.c (fold_binary) <LT_EXPR>: Use the precision of the
type instead of the size of its mode to compute the highest and
lowest possible values.  Still check the size of the mode before
flipping the signedness of the comparison.

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