]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Map holds clause to IFN_ASSUME for C/C++
authorJakub Jelinek <jakub@redhat.com>
Thu, 6 Oct 2022 08:39:41 +0000 (10:39 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 6 Oct 2022 08:39:41 +0000 (10:39 +0200)
commit847f5addc4d07a2f3b95f5daa50ab4a64dfd957d
tree0ce51845a3d521b129664927810852f72e264775
parent08b51baddc53d64aa4c5e7a81ef3c4bf320293be
openmp: Map holds clause to IFN_ASSUME for C/C++

Now that [[assume (cond)]] support is in, this simple patch makes
  #pragma omp assume holds(cond)
use it.

2022-10-06  Jakub Jelinek  <jakub@redhat.com>

* c-parser.cc (c_parser_omp_assumption_clauses): Emit IFN_ASSUME
call for holds clause on assume construct.

* parser.cc (cp_parser_omp_assumption_clauses): Emit IFN_ASSUME
call for holds clause on assume construct.

* c-c++-common/gomp/assume-4.c: New test.
gcc/c/c-parser.cc
gcc/cp/parser.cc
gcc/testsuite/c-c++-common/gomp/assume-4.c [new file with mode: 0644]