https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122906

--- Comment #18 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <[email protected]>:

https://gcc.gnu.org/g:c44586acdc6e107de7ceea173aaaacd8b0525153

commit r16-5787-gc44586acdc6e107de7ceea173aaaacd8b0525153
Author: H.J. Lu <[email protected]>
Date:   Mon Dec 1 10:05:44 2025 +0800

    x86: Emit the TLS call after deleted instructions

    For a basic block with only deleted instructions:

    (code_label 348 23 349 45 3 (nil) [0 uses])
    (note 349 348 436 45 [bb 45] NOTE_INSN_BASIC_BLOCK)
    (note 436 349 362 45 NOTE_INSN_DELETED)

    emit the TLS call after deleted instructions.

    gcc/

            PR target/122906
            * config/i386/i386-features.cc (ix86_emit_tls_call): Emit the
            TLS call after deleted instructions.

    gcc/testsuite/

            PR target/122906
            * g++.target/i386/pr122906-1.C: New test.

    Signed-off-by: H.J. Lu <[email protected]>

Reply via email to