[Bug middle-end/105860] Miscompilation causing clobbered union contents

tpg+gcc at mutabah dot net gcc-bugzilla@gcc.gnu.org
Wed Jun 15 12:05:41 GMT 2022


--- Comment #2 from John Hodge <tpg+gcc at mutabah dot net> ---
Created attachment 53144
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53144&action=edit
Reproduction, partially minimised and including assertion

Attached is an updated reproduction, that includes asserts.
This fails the assert when compiled with gcc 10.3.0-1ubuntu1~20.04 when -O1 is
passed, and passes when no optimisation is enabled.

(Platform is x86_64, in case that wasn't already obvious from the disassembly)

More information about the Gcc-bugs mailing list