[Bug c++/98187] ICE in build_call_expr_loc_array, at tree.c:11554

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 6 09:39:34 GMT 2021


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

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

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

commit r10-9217-ge315ba968d2a47643a9487ea48d62e6399a07d49
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Dec 8 10:45:30 2020 +0100

    openmp: -fopenmp-simd fixes [PR98187]

    This patch fixes two bugs in the -fopenmp-simd support.  One is that
    in C++ #pragma omp parallel master would actually create OMP_PARALLEL
    in the IL, which is a big no-no for -fopenmp-simd, we should be creating
    only the constructs -fopenmp-simd handles (mainly OMP_SIMD, OMP_LOOP which
    is gimplified as simd in that case, declare simd/reduction and ordered
simd).

    The other bug was that #pragma omp master taskloop simd combined construct
    contains simd and thus should be recognized as #pragma omp simd (with only
    the simd applicable clauses), but as master wasn't included in
    omp_pragmas_simd, we'd ignore it completely instead.

    2020-12-08  Jakub Jelinek  <jakub@redhat.com>

            PR c++/98187
            * c-pragma.c (omp_pragmas): Remove "master".
            (omp_pragmas_simd): Add "master".

            * parser.c (cp_parser_omp_parallel): For parallel master with
            -fopenmp-simd only, just call cp_parser_omp_master instead of
            wrapping it in OMP_PARALLEL.

            * c-c++-common/gomp/pr98187.c: New test.

    (cherry picked from commit 31007091b10944c358e5038a6271d7e2744cde37)


More information about the Gcc-bugs mailing list