Commit 38e5f045 by Jason Merrill Committed by Jason Merrill

re PR bootstrap/68346 (Bootstrap failure on i686-linux)

	PR bootstrap/68346
	* call.c (build_new_op_1): Don't fold arguments to
	warn_tautological_cmp.

From-SVN: r230382
parent e4606348
2015-11-14 Jason Merrill <jason@redhat.com>
PR bootstrap/68346
* call.c (build_new_op_1): Don't fold arguments to
warn_tautological_cmp.
2015-11-14 Jakub Jelinek <jakub@redhat.com> 2015-11-14 Jakub Jelinek <jakub@redhat.com>
* semantics.c (finish_omp_clauses): Don't mark * semantics.c (finish_omp_clauses): Don't mark
......
...@@ -5741,7 +5741,7 @@ build_new_op_1 (location_t loc, enum tree_code code, int flags, tree arg1, ...@@ -5741,7 +5741,7 @@ build_new_op_1 (location_t loc, enum tree_code code, int flags, tree arg1,
maybe_warn_bool_compare (loc, code, fold (arg1), maybe_warn_bool_compare (loc, code, fold (arg1),
fold (arg2)); fold (arg2));
if (complain & tf_warning && warn_tautological_compare) if (complain & tf_warning && warn_tautological_compare)
warn_tautological_cmp (loc, code, fold (arg1), fold (arg2)); warn_tautological_cmp (loc, code, arg1, arg2);
/* Fall through. */ /* Fall through. */
case PLUS_EXPR: case PLUS_EXPR:
case MINUS_EXPR: case MINUS_EXPR:
......
// PR bootstrap/68346
// { dg-options -Wtautological-compare }
bool f(unsigned u)
{
return ((unsigned)(int)u == u);
}
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