From: ghazi Date: Wed, 9 Mar 2005 20:09:08 +0000 (+0000) Subject: * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1504ff55fe203c6d4263a519aa7445e428cb2ef5;p=thirdparty%2Fgcc.git * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96204 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e969a7b17af4..e90219878e6a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-03-09 Kaveh R. Ghazi + + * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case. + 2005-03-09 Kazu Hirata * fold-const.c (fold_unary, fold_binary, fold_ternary): Return diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 6d099d9db9d6..38fb95d5cfb2 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -11126,6 +11126,7 @@ fold_unary_to_constant (enum tree_code code, tree type, tree op0) case FIX_TRUNC_EXPR: case FIX_FLOOR_EXPR: case FIX_CEIL_EXPR: + case FIX_ROUND_EXPR: return fold_convert_const (code, type, op0); case NEGATE_EXPR: