https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108448
--- Comment #3 from Gavin Howard <gavin at yzena dot com> --- > Have you tried -fno-strict-aliasing ? I have a feeling like you have some > aliasing issues in this code ... Just tried it, same thing happens. I'll try to make a better test case, but in this case, the bug happens deep in the startup of a custom runtime that touches many files and sets up its own version of stdio. I'll probably just amalgamate all of the required files together. I know the policy, but the URL really is the best way to reproduce easily.