https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105373
--- Comment #19 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Avi Kivity from comment #17) > Please consider backporting > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99576, this is a subtle code > generation bug. Noted, that a back-port is needed, unfortunately the one-line fix for master is not applicable to the branches (they do not have the code that marks TARGET_EXPRESSIONS that will be elided). We will have to figure out how to make a stand-alone implementation of that for GCC-12, 11 etc.