https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98096
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Vladimir Makarov <vmaka...@gcc.gnu.org>: https://gcc.gnu.org/g:72d78655a91bb2f89ac4432cfd6374380d6f9987 commit r11-7256-g72d78655a91bb2f89ac4432cfd6374380d6f9987 Author: Vladimir N. Makarov <vmaka...@redhat.com> Date: Tue Feb 16 10:27:56 2021 -0500 [PR98096] inline-asm: Take inout operands into account for access to labels by names. GCC splits inout operands into output and new matched input operands during gimplfication. Addressing operands by name or number is not problem as the new input operands are added at the end of existing input operands. However it became a problem for labels in asm goto with output reloads. Addressing labels should take into account the new input operands. The patch solves the problem. gcc/ChangeLog: PR inline-asm/98096 * stmt.c (resolve_operand_name_1): Take inout operands into account for access to labels by names. * doc/extend.texi: Describe counting operands for accessing labels. gcc/testsuite/ChangeLog: PR inline-asm/98096 * gcc.c-torture/compile/pr98096.c: New.