Fragen? Antworten! Siehe auch: Alternativlos
New command line options
-Wstrict-overflowhave been added.
-fstrict-overflowtells the compiler that it may assume that the program follows the strict signed overflow semantics permitted for the language: for C and C++ this means that the compiler may assume that signed overflow does not occur. For example, a loop likefor (i = 1; i > 0; i *= 2)is presumably intended to continue looping until
-fstrict-overflow, the compiler may assume that signed overflow will not occur, and transform this into an infinite loop.
-fstrict-overflowis turned on by default at
-O2, and may be disabled via
-Wstrict-overflowoption may be used to warn about cases where the compiler assumes that signed overflow will not occur. It takes five different levels:
5. See the documentation for details.
-Wstrict-overflow=1is enabled by