[Bug middle-end/123876] ICE: Segmentation fault with asm goto and openmp simd/for

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 15 06:07:30 GMT 2026


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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:667e46f73a1df0f8c691f28513bb92ff4320d608

commit r14-12399-g667e46f73a1df0f8c691f28513bb92ff4320d608
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Fri Jan 30 11:00:41 2026 +0100

    openmp: Handle asm goto in diagnose_sb_2 [PR123876]

    We weren't handling asm goto in diagnose_sb_2, so could ICE
    on invalid code instead of diagnosing it as invalid.

    Note, for C++ the FE already diagnoses that instead of deferring
    it will omp-low.cc.

    2026-01-30  Jakub Jelinek  <jakub@redhat.com>

            PR middle-end/123876
            * omp-low.cc (diagnose_sb_2): Handle GIMPLE_ASM.

            * gcc.dg/gomp/pr123876.c: New test.

    (cherry picked from commit de23c4ad41319525077da03ecbabf41efbf9a3b3)


More information about the Gcc-bugs mailing list