+merge_sets_func *__dbg_info_merge_sets = default_dbg_info_merge_sets;
+
+snprint_dbg_func *__dbg_info_snprint = (snprint_dbg_func *)0;
+
+void dbg_init( merge_pair_func *mpf, merge_sets_func *msf, snprint_dbg_func *snprint_dbg )
+{
+ __dbg_info_merge_pair = mpf ? mpf : default_dbg_info_merge_pair;
+ __dbg_info_merge_sets = msf ? msf : default_dbg_info_merge_sets;
+ __dbg_info_snprint = snprint_dbg;
+} /* dbg_init */
+
+/*
+ * Converts a debug_action into a string.
+ */
+const char *dbg_action_2_str(dbg_action a) {
+#define CASE(a) case a: return #a
+
+ switch (a) {
+ CASE(dbg_error);
+ CASE(dbg_opt_ssa);
+ CASE(dbg_opt_auxnode);
+ CASE(dbg_const_eval);
+ CASE(dbg_opt_cse);
+ CASE(dbg_straightening);
+ CASE(dbg_if_simplification);
+ CASE(dbg_algebraic_simplification);
+ CASE(dbg_write_after_write);
+ CASE(dbg_write_after_read);
+ CASE(dbg_read_after_write);
+ CASE(dbg_read_after_read);
+ CASE(dbg_read_a_const);
+ CASE(dbg_rem_poly_call);
+ CASE(dbg_dead_code);
+ CASE(dbg_opt_confirm);
+ CASE(dbg_gvn_pre);
+ CASE(dbg_combo);
+ CASE(dbg_backend);
+ default:
+ if (a <= dbg_max)
+ return "string conversion not implemented";
+ else
+ assert(!"Missing debug action in dbg_action_2_str()");
+ return NULL;
+ }
+#undef CASE
+} /* dbg_action_2_str */