https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66230
--- Comment #5 from gpnuma at centaurean dot com --- Ok I did just try "-fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations" and the issue is still there. If I add the printf("something"); at the top of the function, everything works normally.