Finalize deprecation of -Wstrict-overflow.
The deprecated `-Wstrict-overflow` flag is now officially a no-op.
The -Wstrict-overflow flag, deprecated since GCC 8, is now officially a no-op. The compiler no longer performs any strict overflow checking, regardless of whether the flag is used. This commit removes the remaining enum, updates documentation, and adjusts tests to reflect the change. Users relying on -Wstrict-overflow should migrate to -fwrapv and -fwrapv-pointer.
In Details
This commit removes the warn_strict_overflow_code enum from coretypes.h and updates common.opt, doc/invoke.texi, and opts.cc to remove the flag. Search terms: GCC -Wstrict-overflow deprecation
For Context
Compiler flags control various aspects of the compilation process, such as optimization levels, code generation options, and warning behavior. The -Wstrict-overflow flag used to control whether the compiler should warn about potential strict overflow issues. Overflow occurs when the result of an arithmetic operation exceeds the maximum representable value for the data type, and the C standard defines the behavior of signed integer overflow as undefined. This commit formalizes the removal of this warning.