aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-06-15 18:55:18 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-06-15 18:55:18 +0000
commitd817ed3b10f38c21cda334293e0fb969cb03e2c5 (patch)
treecaac830c9d00c0c5dec714e1584bbeae8d74ae22 /gcc/tree.h
parent5cf0aa0a315f54b23f311605171579367a8258f5 (diff)
downloadgcc-d817ed3b10f38c21cda334293e0fb969cb03e2c5.zip
gcc-d817ed3b10f38c21cda334293e0fb969cb03e2c5.tar.gz
gcc-d817ed3b10f38c21cda334293e0fb969cb03e2c5.tar.bz2
fold-const.c (fold_truth_not_expr): Rename from invert_truthvalue.
2006-06-15 Richard Guenther <rguenther@suse.de> * fold-const.c (fold_truth_not_expr): Rename from invert_truthvalue. Give it fold_* semantics to avoid generating garbage. (invert_truthvalue): New function. Wrapper around fold_truth_not_expr. (optimize_minmax_comparison): Avoid creating garbage. (fold_unary): Use fold_truth_not_expr for folding TRUTH_NOT_EXPR. (fold_ternary): Replace uses of invert_truthvalue with fold_truth_not_expr where applicable. * tree.h (fold_truth_not_expr): Prototype. From-SVN: r114683
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 9c11818..ad21877 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4208,6 +4208,7 @@ extern int operand_equal_p (tree, tree, unsigned int);
extern tree omit_one_operand (tree, tree, tree);
extern tree omit_two_operands (tree, tree, tree, tree);
extern tree invert_truthvalue (tree);
+extern tree fold_truth_not_expr (tree);
extern tree fold_unary_to_constant (enum tree_code, tree, tree);
extern tree fold_binary_to_constant (enum tree_code, tree, tree, tree);
extern tree fold_read_from_constant_string (tree);