This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/gcc ChangeLog.tree-ssa fold-const.c
- From: sayle at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 20 Jan 2004 23:11:59 -0000
- Subject: gcc/gcc ChangeLog.tree-ssa fold-const.c
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: sayle@gcc.gnu.org 2004-01-20 23:11:59
Modified files:
gcc : ChangeLog.tree-ssa fold-const.c
Log message:
* 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.
(nondestructive_fold_unary_to_constant): Likewise, simplify
call to fold_convert to match new fold_convert_const.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.1113&r2=1.1.2.1114
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.213.2.67&r2=1.213.2.68