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

FWIW I compiled this with gcc 4.9.3 -O3 and got:

    satd.c:7:29: warning: iteration 15u invokes undefined behavior [-Waggressive-loop-optimizations]
         for (dd=d[k=0]; k<16; dd=d[++k]) {
                                 ^


Good evidence that compiler writers aren't quite so malicious as the author portrays.

Warnings, not optimizations, are what most programmers actually want from undefined behavior.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: