This finishes removing the support for -Wstrict-overflow that seemly was
missed before. It also marks the option as being ignored and fixes
the -Wstrict-overflow= case where it was rejecting -Wstrict-overflow=1 now.
Pushed as obvious after bootstrap/test on x86_64-linux-gnu.
PR middle-end/125558
gcc/ChangeLog:
* common.opt (Wstrict-overflow): Mark as Ignore.
(Wstrict-overflow=): Fix up and mark as igore.
* gcc-diagnostic-spec.cc (nowarn_spec_t::nowarn_spec_t):
Remove OPT_Wstrict_overflow.
* opts.cc (common_handle_option): Likewise.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Warn about code which might break strict aliasing rules.
Wstrict-overflow
-Common Warning
+Common Ignore Warning
Does nothing. Preserved for backward compatibility.
Wstrict-overflow=
+Common Ignore Joined RejectNegative UInteger Warning
Does nothing. Preserved for backward compatibility.
Wsuggest-attribute=cold
case OPT_Woverflow:
case OPT_Wshift_count_negative:
case OPT_Wshift_count_overflow:
- case OPT_Wstrict_overflow:
m_bits = NW_VFLOW;
break;
set_Wstrict_aliasing (opts, value);
break;
- case OPT_Wstrict_overflow:
- /* Deferred. */
- break;
-
case OPT_Wsystem_headers:
dc->m_warn_system_headers = value;
break;