From d3592adfe09802b635b9db7ccbad5ab4526cbbb1 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Wed, 9 Mar 2005 20:09:08 +0000 Subject: [PATCH] * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case. From-SVN: r96204 --- gcc/ChangeLog | 4 ++++ gcc/fold-const.c | 1 + 2 files changed, 5 insertions(+) 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: -- 2.30.2