public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] Set omp_requires_mask for dynamic_allocators.
@ 2022-03-09 10:02 Hafiz Abid Qadeer
0 siblings, 0 replies; only message in thread
From: Hafiz Abid Qadeer @ 2022-03-09 10:02 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:822a982d48b5e07b4c09dc222a521c9b63a7259c
commit 822a982d48b5e07b4c09dc222a521c9b63a7259c
Author: Hafiz Abid Qadeer <abidh@codesourcery.com>
Date: Mon Feb 21 13:54:57 2022 +0000
Set omp_requires_mask for dynamic_allocators.
This is backport of a patch posted in
https://gcc.gnu.org/pipermail/gcc-patches/2022-February/590655.html
This patch fixes an issue that although gfortran accepts
'requires dynamic_allocators', it does not set the omp_requires_mask
accordingly.
gcc/fortran/ChangeLog:
* parse.c (gfc_parse_file): Set OMP_REQUIRES_DYNAMIC_ALLOCATORS
bit in omp_requires_mask.
Diff:
---
gcc/fortran/ChangeLog.omp | 5 +++++
gcc/fortran/parse.c | 3 +++
2 files changed, 8 insertions(+)
diff --git a/gcc/fortran/ChangeLog.omp b/gcc/fortran/ChangeLog.omp
index 205c2f10237..71e5cc2c9bd 100644
--- a/gcc/fortran/ChangeLog.omp
+++ b/gcc/fortran/ChangeLog.omp
@@ -1,3 +1,8 @@
+2022-03-08 Abid Qadeer <abidh@codesourcery.com>
+
+ * parse.c (gfc_parse_file): Set OMP_REQUIRES_DYNAMIC_ALLOCATORS
+ bit in omp_requires_mask.
+
2022-03-08 Abid Qadeer <abidh@codesourcery.com>
Backported from master:
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c
index 9ee150b712d..f52a7c2103c 100644
--- a/gcc/fortran/parse.c
+++ b/gcc/fortran/parse.c
@@ -7001,6 +7001,9 @@ done:
break;
}
+ if (omp_requires & OMP_REQ_DYNAMIC_ALLOCATORS)
+ omp_requires_mask
+ = (enum omp_requires) (omp_requires_mask | OMP_REQUIRES_DYNAMIC_ALLOCATORS);
/* Do the parse tree dump. */
gfc_current_ns = flag_dump_fortran_original ? gfc_global_ns_list : NULL;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-09 10:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-09 10:02 [gcc/devel/omp/gcc-11] Set omp_requires_mask for dynamic_allocators Hafiz Abid Qadeer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).