3 ms·
One problem here is that GCC emits certain warnings as part of the optimizer, which results in many false positives that are essentially impossible for the lay
by nikic 4y ago
One problem here is that GCC emits certain warnings as part of the optimizer, which results in many false positives that are essentially impossible for the lay programmer to understand. For example, jump threading might duplicate some code path and propagate constants in it, and then warn about an uninitialized variable / out of range access / etc in that code-path, even though it does not exist in that form in the original program.
- MauranKilom 4y agoFunny enough, this is exactly the kind of situation where other people cry "why did the compiler not warn me about basing optimizations on UB".