This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gomp4, committed] Add nohost clause support in dump_omp_clause
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Cc: Jakub Jelinek <jakub at redhat dot com>
- Date: Fri, 16 Oct 2015 17:07:25 +0200
- Subject: [gomp4, committed] Add nohost clause support in dump_omp_clause
- Authentication-results: sourceware.org; auth=none
Hi,
this patch adds nohost clause support in dump_omp_clause. Furthermore,
it fixes an infinite recursion bug when handling unrecognized clauses.
Committed to gomp-4_0-branch.
Thanks,
- Tom
Add nohost clause support in dump_omp_clause
2015-10-16 Tom de Vries <tom@codesourcery.com>
* tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_NOHOST. Fix
infinite recursion in default label.
---
gcc/tree-pretty-print.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index cd965bb..19ebdbc 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -802,10 +802,12 @@ dump_omp_clause (pretty_printer *pp, tree clause, int spc, int flags)
spc, flags);
pp_string (pp, " ]");
break;
+ case OMP_CLAUSE_NOHOST:
+ pp_string (pp, "nohost");
+ break;
default:
- /* Should never happen. */
- dump_generic_node (pp, clause, spc, flags, false);
+ pp_string (pp, "unknown");
break;
}
}
--
1.9.1