https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116693
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andreas Schwab <sch...@gcc.gnu.org>: https://gcc.gnu.org/g:952df9c50b30cc6f849c422b84592a81524f8ef7 commit r15-3663-g952df9c50b30cc6f849c422b84592a81524f8ef7 Author: Andreas Schwab <sch...@suse.de> Date: Thu Sep 12 13:55:09 2024 +0200 riscv: Fix duplicate assmbler label in @tlsdesc<mode> insn Use %= instead of maintaining a sequence number manually, so that it doesn't result in a duplicate assembler label when the insn is duplicated. PR target/116693 * config/riscv/riscv.cc (riscv_legitimize_tls_address): Don't pass seqno to gen_tlsdesc and remove it. * config/riscv/riscv.md (@tlsdesc<mode>): Remove operand 1. Use %= instead of %1 in template.