From: Kaveh R. 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: https://git.libre-soc.org/?a=commitdiff_plain;h=d3592adfe09802b635b9db7ccbad5ab4526cbbb1;p=gcc.git * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case. From-SVN: r96204 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e969a7b17af..e90219878e6 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 6d099d9db9d..38fb95d5cfb 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: