I now reduced this to a single ~100 lines file that does no dynamic memory allocations. I'm pretty sure I'm not doing something that is undefined behavior. Still getting different results with -O0 / -O2. Even more weirdly, the bug(?) goes away when I remove an assert that only does a simple comparison. Also goes away when I remove certain struct members that are never written or read from.
I'm pretty sure this is indeed a compiler bug 😱
Currently building GCC from source to test against that.
=> More informations about this toot | View the thread | More toots from laria@duclaria.com
text/gemini
This content has been proxied by September (ba2dc).