News for hackers. Stuff that matters.
Re:GCC optimized code gives strange floating point results by kccqzy on Monday February 27, 2017 @02:20AM (#13742487)
With -O2 gcc actually compiles the program to

    xorl %eax, %eax
    ret
That is, it optimized away everything.
Re:GCC optimized code gives strange floating point results by acqq on Monday February 27, 2017 @08:17AM (#13743925)
Yes, that's the correct optimization. That code obviously can't perform printf("error\n") to manifest the bug, and obviously both additions were made compile-time producing the results that are equal.