summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-09 20:09:08 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-09 20:09:08 +0000
commit1504ff55fe203c6d4263a519aa7445e428cb2ef5 (patch)
tree099c654045f9bab3ead558a3ba895efb47627d0a
parent0052b98e5395be104155d3108ede39f541838410 (diff)
downloadppe42-gcc-1504ff55fe203c6d4263a519aa7445e428cb2ef5.tar.gz
ppe42-gcc-1504ff55fe203c6d4263a519aa7445e428cb2ef5.zip
* 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
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/fold-const.c1
2 files changed, 5 insertions, 0 deletions
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 <ghazi@caip.rutgers.edu>
+
+ * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
+
2005-03-09 Kazu Hirata <kazu@cs.umass.edu>
* 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:
OpenPOWER on IntegriCloud