fold-const.c (fold_convert): Rename to fold_convert_const.
authorRoger Sayle <roger@eyesopen.com>
Tue, 20 Jan 2004 22:59:59 +0000 (22:59 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 20 Jan 2004 22:59:59 +0000 (22:59 +0000)
commitfdb33708b4393f5794a726497c71aadc5d9dfe65
tree7c1875f2cf72e5a1fe76b5d2b14fbd92343c68dc
parent34c80057fcd1c1019fa93f44483842e1d1c9cc55
fold-const.c (fold_convert): Rename to fold_convert_const.

* fold-const.c (fold_convert): Rename to fold_convert_const.
(fold_convert_const): Change arguments to take a tree_code,
a type and the operand/expression to be converted.  Return
NULL_TREE if no simplification is possible.  Add support for
FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
(fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
Adjust call to fold_convert to match new fold_convert_const.
Avoid modifying the tree passed to fold in-place.

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