public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] fortran/dump-parse-tree.c: Use proper enum type
@ 2021-06-28 10:32 Tobias Burnus
0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2021-06-28 10:32 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4c7c00c362ef2554f28d5d3356decb3ab6cf4bba
commit 4c7c00c362ef2554f28d5d3356decb3ab6cf4bba
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Mon Jun 28 11:55:26 2021 +0200
fortran/dump-parse-tree.c: Use proper enum type
gcc/fortran/ChangeLog:
* dump-parse-tree.c (show_omp_clauses): Fix enum type used
for dumping gfc_omp_defaultmap_category.
(cherry picked from commit cac3527793b38164e2a83c7ccbfe0cfcf5ac95b8)
Diff:
---
gcc/fortran/ChangeLog.omp | 8 ++++++++
gcc/fortran/dump-parse-tree.c | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gcc/fortran/ChangeLog.omp b/gcc/fortran/ChangeLog.omp
index 8d400174c00..92952cad90d 100644
--- a/gcc/fortran/ChangeLog.omp
+++ b/gcc/fortran/ChangeLog.omp
@@ -1,3 +1,11 @@
+2021-06-28 Tobias Burnus <tobias@codesourcery.com>
+
+ Backported from master:
+ 2021-06-23 Tobias Burnus <tobias@codesourcery.com>
+
+ * dump-parse-tree.c (show_omp_clauses): Fix enum type used
+ for dumping gfc_omp_defaultmap_category.
+
2021-06-15 Tobias Burnus <tobias@codesourcery.com>
Backported from master:
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c
index 07e98b7e30d..26841eefb7d 100644
--- a/gcc/fortran/dump-parse-tree.c
+++ b/gcc/fortran/dump-parse-tree.c
@@ -1781,7 +1781,7 @@ show_omp_clauses (gfc_omp_clauses *omp_clauses)
if (i != OMP_DEFAULTMAP_CAT_UNCATEGORIZED)
{
fputc (':', dumpfile);
- switch ((enum gfc_omp_defaultmap) i)
+ switch ((enum gfc_omp_defaultmap_category) i)
{
case OMP_DEFAULTMAP_CAT_SCALAR: dfltmap = "SCALAR"; break;
case OMP_DEFAULTMAP_CAT_AGGREGATE: dfltmap = "AGGREGATE"; break;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-28 10:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 10:32 [gcc/devel/omp/gcc-11] fortran/dump-parse-tree.c: Use proper enum type 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).