From c9373c1ec3aa4b53ce943e629ed8ebb7287e6dfc Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 9 Jul 2018 17:39:48 -0400 Subject: [PATCH 46/46] FIXME: hack up optinfo-emit-diagnostics.cc --- gcc/optinfo-emit-diagnostics.cc | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/gcc/optinfo-emit-diagnostics.cc b/gcc/optinfo-emit-diagnostics.cc index a47c2a7..7051149 100644 --- a/gcc/optinfo-emit-diagnostics.cc +++ b/gcc/optinfo-emit-diagnostics.cc @@ -141,7 +141,7 @@ print_count (pretty_printer *pp, profile_count count) /* Print IMPL_LOC to PP (as part of a remark). */ -static void +void print_impl_location (pretty_printer *pp, const dump_impl_location_t &impl_loc) { bool show_color = pp_show_color (pp); @@ -207,6 +207,29 @@ emit_optinfo_as_diagnostic_remark (const optinfo *optinfo) if (!flag_remarks) return; + if (optinfo->get_pass ()) + if (strcmp (optinfo->get_pass ()->name, "vect") != 0) + return; + +#if 1 +#if 0 + switch (optinfo->get_kind ()) + { + default: + gcc_unreachable (); + case OPTINFO_KIND_SUCCESS: + case OPTINFO_KIND_FAILURE: + break; + case OPTINFO_KIND_NOTE: + case OPTINFO_KIND_SCOPE: + /* FIXME: don't emit notes and scope for now. */ + return; + } +#else + return; +#endif +#endif + remark_printer pp (pp_show_color (global_dc->printer)); print_optinfo_as_remark (&pp, optinfo); -- 1.8.5.3