[Bug rtl-optimization/106032] [10/11/12/13 Regression] wrong code at -Os and above on x86_64-linux-gnu

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 20 08:04:25 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106032

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> Here is a testcase which shows this was latent but fails in GCC 7+ (so it is
> still a regression):
> int a, b, c, *d;
> int main() {
>   int e = 0, f = 0;
>   int *dd = d;
>   for (; f < 1; f++)
>     if (c < 0)
>       e = *dd;
>   if (a) {
>     a = b ? 0 : a;
>     e && (b = a);
>   }
>   return 0;
> }

This one started with r9-6299-gd7a700e0a701e516.


More information about the Gcc-bugs mailing list