Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Funny enough, this is exactly the kind of situation where other people cry "why did the compiler not warn me about basing optimizations on UB".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: