public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] [gfortran] Set omp_requires_mask for dynamic_allocators.
@ 2022-02-21 14:24 Hafiz Abid Qadeer
  2022-02-21 15:50 ` Jakub Jelinek
  0 siblings, 1 reply; 5+ messages in thread
From: Hafiz Abid Qadeer @ 2022-02-21 14:24 UTC (permalink / raw)
  To: gcc-patches; +Cc: fortran, jakub

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.cc (gfc_parse_file): Set OMP_REQUIRES_DYNAMIC_ALLOCATORS
	bit in omp_requires_mask.
---
 gcc/fortran/parse.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/fortran/parse.cc b/gcc/fortran/parse.cc
index db918291b10..821555bd85f 100644
--- a/gcc/fortran/parse.cc
+++ b/gcc/fortran/parse.cc
@@ -6890,6 +6890,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;
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-21 18:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 14:24 [PATCH] [gfortran] Set omp_requires_mask for dynamic_allocators Hafiz Abid Qadeer
2022-02-21 15:50 ` Jakub Jelinek
2022-02-21 17:02   ` Tobias Burnus
2022-02-21 17:47     ` Jakub Jelinek
2022-02-21 18:47       ` Tobias Burnus

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).