https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101868
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |11.2.0
Target Milestone|--- |9.5
Summary|Incorrect reordering in -O2 |[9/10/11 Regression]
|with LTO |Incorrect reordering in -O2
| |with LTO
Known to work| |12.0
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #3)
> (In reply to Andrew Pinski from comment #2)
> > (In reply to Andrew Pinski from comment #1)
> > > Works for me on the trunk:
> >
> > I almost want to say this was fixed by PR 101373.
>
> Yes, I can confirm that it was fixed with r12-2254-gfedcf3c476aff753.
> @Richi: Can we close it as dup?
We should at least put this as a testcase. I suspect it is a regression from
when -fcode-hoisting was added to GCC too.