https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61421
--- Comment #4 from mimamer at gmail dot com --- Indeed, this is alias-related. Two questions: (1) What is a concrete solution for this problem when -fstrict-aliasing is being used? How should I change my code? (Sorry, I am no expert on this.) (2) Why is -fno-strict-aliasing being ignored when placed after -O2, just as I had it all the time in my Makefile?