Sooo, if I build a #c program on #gcc once with -O0 and once with -O2, and it outputs something different. And gcc builds it without any warnings, even with -Wall -Werror -Wextra -pedantic
. And also UBSan not finding any undefined behaviors.... Assuming all that, have I found a bug in GCC? 😬
(The disassembly gdb spits out for the offending function looks kinda wrong to me, but my ASM skills are a bit rusty...)
=> More informations about this toot | View the thread | More toots from laria@duclaria.com
=> View c tag | View gcc tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini