[Bug c/110728] should __attribute__((cleanup())) callback get invoked for indirect edges of asm goto

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 18 21:33:35 GMT 2023


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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
That is even doing:
```
int g();
int h()
{
l0:;
    int x __attribute__((cleanup(test4cleanup)));
    if (g()) goto l0;
}
```
Produces the same result which is why I said this is the same as PR 91951
really.


More information about the Gcc-bugs mailing list