This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gomp4, committed] Add nohost clause support in dump_omp_clause


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]