Remove the single instance of Wstrict-overflow warning and the
associated testcase.
gcc/ChangeLog:
* expr.cc (maybe_optimize_sub_cmp_0): Removed warning_at () call
for Wstrict-overflow comparison.
gcc/testsuite/ChangeLog:
* gcc.dg/Wstrict-overflow-25.c: Removed.
if (!TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (treeop0)))
return;
- if (issue_strict_overflow_warning (WARN_STRICT_OVERFLOW_COMPARISON))
- warning_at (gimple_location (stmt), OPT_Wstrict_overflow,
- "assuming signed overflow does not occur when "
- "simplifying %<X - Y %s 0%> to %<X %s Y%>",
- op_symbol_code (code), op_symbol_code (code));
-
*arg0 = treeop0;
*arg1 = treeop1;
}
+++ /dev/null
-/* { dg-do compile } */
-/* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow=3" } */
-
-/* We can only simplify the conditional when using strict overflow
- semantics. */
-
-int
-foo (int x, int y)
-{
- return x - y < 0; /* { dg-warning "assuming signed overflow does not occur" "correct warning" } */
-}