News for hackers. Stuff that matters.
Re:What Every C Programmer Should Know About Undefined Behav... by haberman on Thursday January 05, 2017 @12:17PM (#13329040)
Compilers already have these optimizations. Doing nothing would be leaving those optimizations in.

If what you want is a straightforward translation of C into machine code, there is always -O0.

Re:What Every C Programmer Should Know About Undefined Behav... by mpweiher on Thursday January 05, 2017 @03:22PM (#13330991)
> Compilers already have these optimizations.

git co <previous-hash>

You're welcome!

Re:What Every C Programmer Should Know About Undefined Behav... by haberman on Thursday January 05, 2017 @05:11PM (#13331909)
You're the person who wants this. Maybe you should do that? Also make sure you're willing to give up support for newer language standards, CPU architectures, and countless bugfixes (even C++98 support was getting pretty noticeable bugfixes in GCC 10 years ago).