]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Handle asm goto in diagnose_sb_2 [PR123876] master trunk
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Jan 2026 10:00:41 +0000 (11:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Jan 2026 10:00:41 +0000 (11:00 +0100)
commitde23c4ad41319525077da03ecbabf41efbf9a3b3
tree8e52e973c342cca442d14169026fc752bf1b293a
parent1297b7204aca7fbad741ae02086fa5e134083a5f
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.
gcc/omp-low.cc
gcc/testsuite/gcc.dg/gomp/pr123876.c [new file with mode: 0644]