https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129154
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:ea493d41ebd85f04c65144de243ad9b78dd51d57 commit r17-6879-gea493d41ebd85f04c65144de243ad9b78dd51d57 Author: Magnus Lindholm <[email protected]> Date: Tue Dec 1 00:00:41 2026 -0700 [PATCH] alpha: Reset relocation sequences for each assembly file [PR129154] The Alpha backend uses a GTY scalar initialized to one to number relocation pairs. JIT cleanup clears the scalar between compilations. The next compilation can emit !gpdisp!0, which GAS rejects. Initialize the counter in alpha_file_start so that each output file starts its own sequence at one. Exercise repeated output to PIC objects with references to an imported function and an imported global. Assisted-by: OpenAI Codex gcc/ChangeLog: PR target/129154 * config/alpha/alpha.cc (alpha_file_start): Reset alpha_next_sequence_number for each assembly file. gcc/testsuite/ChangeLog: * jit.dg/test-alpha-reloc-sequence.c: New test. Signed-off-by: Magnus Lindholm <[email protected]>
