aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-05-26 13:54:23 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-05-26 13:54:23 +0000
commit1f498652b20a31721e404371e6a0cfa339752bce (patch)
tree28e4f9b7f422fae287ae2f947a6950c41bc25648 /gcc
parent298942dc313bf129f503cb7dc5609f7277604ada (diff)
downloadgcc-1f498652b20a31721e404371e6a0cfa339752bce.zip
gcc-1f498652b20a31721e404371e6a0cfa339752bce.tar.gz
gcc-1f498652b20a31721e404371e6a0cfa339752bce.tar.bz2
fold-const.c (fold_unary_loc): Remove bogus code.
2011-05-26 Richard Guenther <rguenther@suse.de> * fold-const.c (fold_unary_loc): Remove bogus code. From-SVN: r174290
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/fold-const.c15
2 files changed, 4 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f6a3ba7..2b8478e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-26 Richard Guenther <rguenther@suse.de>
+
+ * fold-const.c (fold_unary_loc): Remove bogus code.
+
2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
* tree.h (struct tree_identifier): Inherit from tree_typed, not
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index d399c53..c9c7afa 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -7639,21 +7639,6 @@ fold_unary_loc (location_t loc, enum tree_code code, tree type, tree op0)
0)));
return tem;
}
- else if (COMPARISON_CLASS_P (arg0))
- {
- if (TREE_CODE (type) == BOOLEAN_TYPE)
- {
- arg0 = copy_node (arg0);
- TREE_TYPE (arg0) = type;
- return arg0;
- }
- else if (TREE_CODE (type) != INTEGER_TYPE)
- return fold_build3_loc (loc, COND_EXPR, type, arg0,
- fold_build1_loc (loc, code, type,
- integer_one_node),
- fold_build1_loc (loc, code, type,
- integer_zero_node));
- }
}
switch (code)