https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122133
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:e088f42517ed4c6f8c79e1c78839faec0aefe906 commit r15-10414-ge088f42517ed4c6f8c79e1c78839faec0aefe906 Author: Jakub Jelinek <[email protected]> Date: Mon Oct 6 09:46:48 2025 +0200 stmt: Handle %cc[name] in resolve_asm_operand_names [PR122133] Last year I've extended the asm template syntax in inline asm to support %cc0 etc., apparently the first 2 letter generic operand modifier. As the following testcase shows, I forgot to tweak the [foo] handling for it though. As final.cc will error on any % ISALPHA not followed by digit (with the exception of % c c digit), I think we can safely handle this for any 2 letters in between % and [, instead of hardcoding it for now only for %cc[ and changing it again next time we add something two-letter. 2025-10-06 Jakub Jelinek <[email protected]> PR middle-end/122133 * stmt.cc (resolve_asm_operand_names): Handle % and 2 letters followed by open square. * c-c++-common/toplevel-asm-9.c: New test. (cherry picked from commit 96c4a32cfec8c4b4c677de114164192cfd8ae54d)
