Commit 1f498652 by Richard Guenther Committed by Richard Biener

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
parent 298942dc
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment