Fix infinite recursion in OMP clause pretty-printing, default label
authorJulian Brown <julian@codesourcery.com>
Mon, 3 Dec 2018 13:46:19 +0000 (13:46 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Mon, 3 Dec 2018 13:46:19 +0000 (13:46 +0000)
gcc/
* tree-pretty-print.c (dump_omp_clause): Make default case
gcc_unreachable.

From-SVN: r266740

gcc/ChangeLog
gcc/tree-pretty-print.c

index 626e70239e3131f1d699035ac2c23ba43f965e5f..2f4e96f18a979d70b42782b8dfd22e613fde0a08 100644 (file)
@@ -1,3 +1,8 @@
+2018-12-03  Julian Brown  <julian@codesourcery.com>
+
+       * tree-pretty-print.c (dump_omp_clause): Make default case
+       gcc_unreachable.
+
 2018-12-03  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/88301
index 99eca4ae4043d3305a2745f46c4a7b1f225761b5..0861cc9a172b48f0e97cfc2c96afba6722c1cc91 100644 (file)
@@ -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 ();
     }
 }