News for hackers. Stuff that matters.
Re:How undefined signed overflow enables optimizations in GCC by Spivak on Monday February 22, 2016 @01:27AM (#11148951)
Maybe a better way to illustrate the surprising behavior is that

if (x < x + c) { // block }

if (0 < c) { // block }

are not equivalent statements if you add overflow wrapping into the spec. What if the processor your application is running on doesn't do two's compliment arithmetic? Does gcc need to emulate this behavior to comply with the spec?

There are no comments on this comment yet.