diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2023-09-20 16:03:19 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2023-09-20 16:03:19 +0200 |
commit | 1a554a2c9f33fdb3c170f1c37274037ece050114 (patch) | |
tree | 6fe2af4bde5515e04ec8af01de59a40a3fcde3dd /libgcc/enable-execute-stack-empty.c | |
parent | b9cb735fc1bb4ca2339ab900e2d07667d7c0f6b4 (diff) | |
download | gcc-1a554a2c9f33fdb3c170f1c37274037ece050114.zip gcc-1a554a2c9f33fdb3c170f1c37274037ece050114.tar.gz gcc-1a554a2c9f33fdb3c170f1c37274037ece050114.tar.bz2 |
OpenMP: Add ME support for 'omp allocate' stack variables
Call GOMP_alloc/free for 'omp allocate' allocated variables. This is
for C only as C++ and Fortran show a sorry already in the FE. Note that
this only applies to stack variables as the C FE shows a sorry for
static variables.
gcc/ChangeLog:
* gimplify.cc (gimplify_bind_expr): Call GOMP_alloc/free for
'omp allocate' variables; move stack cleanup after other
cleanup.
(omp_notice_variable): Process original decl when decl
of the value-expression for a 'omp allocate' variable is passed.
* omp-low.cc (scan_omp_1_op): Handle 'omp allocate' variables
libgomp/ChangeLog:
* libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
implemented for C only.
* testsuite/libgomp.c/allocate-4.c: New test.
* testsuite/libgomp.c/allocate-5.c: New test.
* testsuite/libgomp.c/allocate-6.c: New test.
gcc/testsuite/ChangeLog:
* c-c++-common/gomp/allocate-11.c: Remove C-only dg-message
for 'sorry, unimplemented'.
* c-c++-common/gomp/allocate-12.c: Likewise.
* c-c++-common/gomp/allocate-15.c: Likewise.
* c-c++-common/gomp/allocate-9.c: Likewise.
* c-c++-common/gomp/allocate-10.c: New test.
* c-c++-common/gomp/allocate-17.c: New test.
Diffstat (limited to 'libgcc/enable-execute-stack-empty.c')
0 files changed, 0 insertions, 0 deletions