Hacker News new | ask | show | jobs
by kllrnohj 462 days ago
strict-aliasing, which is what caused that bug to manifest, is enabled at O2.
1 comments

Yep, it's what caused the bug to manifest, but who knows if that UB would have caused -O2 optimizations to mangle the result as well.

EDIT: first one is -funswitch-loops, though

Probably would have. There's no shortage of UB bugs revealed by O2 after all, including major security issues.