https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103979
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|asm goto is not considered |asm goto is not considered |volatile |volatile with output | |operands Last reconfirmed| |2022-01-11 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Keywords| |ice-on-valid-code, | |inline-asm, wrong-code Component|c |rtl-optimization --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect the code was not updated once output operands were allowed to have it marked as volatile. As inline-asm without output operands is always considered volatile.