From: Julian Brown Date: Mon, 3 Dec 2018 13:46:19 +0000 (+0000) Subject: Fix infinite recursion in OMP clause pretty-printing, default label X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df3fdfa67f485cf68f62b555fb9bb8015fb9e3ad;p=gcc.git Fix infinite recursion in OMP clause pretty-printing, default label gcc/ * tree-pretty-print.c (dump_omp_clause): Make default case gcc_unreachable. From-SVN: r266740 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 626e70239e3..2f4e96f18a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-12-03 Julian Brown + + * tree-pretty-print.c (dump_omp_clause): Make default case + gcc_unreachable. + 2018-12-03 Richard Biener PR tree-optimization/88301 diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 99eca4ae404..0861cc9a172 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -1180,9 +1180,7 @@ dump_omp_clause (pretty_printer *pp, tree clause, int spc, dump_flags_t flags) break; default: - /* Should never happen. */ - dump_generic_node (pp, clause, spc, flags, false); - break; + gcc_unreachable (); } }