summaryrefslogtreecommitdiffstats
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-22 06:01:05 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-22 06:01:05 +0000
commit0d3711e298dd977537fea66a10708cc494461d6e (patch)
treef96fcb0f55d8d7039e390d740416c36937075bf7 /gcc/fold-const.c
parent101bd0afda2d4793ca45b8b22e0b1ddc40c02257 (diff)
downloadppe42-gcc-0d3711e298dd977537fea66a10708cc494461d6e.tar.gz
ppe42-gcc-0d3711e298dd977537fea66a10708cc494461d6e.zip
* fold-const.c (fold_unary, fold_binary): Update comments
about arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96855 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 2c4404b7676..2342400867f 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -6620,9 +6620,9 @@ fold_complex_div (tree type, tree ac, tree bc, enum tree_code code)
return fold_complex_div_parts (type, ar, ai, br, bi, code);
}
-/* Fold a unary expression EXPR. Return the folded expression if
- folding is successful. Otherwise, return the original
- expression. */
+/* Fold a unary expression of code CODE and type TYPE with operand
+ OP0. Return the folded expression if folding is successful.
+ Otherwise, return NULL_TREE. */
static tree
fold_unary (enum tree_code code, tree type, tree op0)
@@ -7033,9 +7033,9 @@ fold_unary (enum tree_code code, tree type, tree op0)
} /* switch (code) */
}
-/* Fold a binary expression EXPR. Return the folded expression if
- folding is successful. Otherwise, return the original
- expression. */
+/* Fold a binary expression of code CODE and type TYPE with operands
+ OP0 and OP1. Return the folded expression if folding is
+ successful. Otherwise, return NULL_TREE. */
static tree
fold_binary (enum tree_code code, tree type, tree op0, tree op1)
OpenPOWER on IntegriCloud