+2017-05-05 David Malcolm <dmalcolm@redhat.com>
+
+ * diagnostic.c (diagnostic_impl): Replace report_diagnostic
+ with diagnostic_report_diagnostic.
+ (diagnostic_n_impl_richloc): Likewise.
+ * diagnostic.h (report_diagnostic): Delete macro.
+ * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
+ with diagnostic_report_diagnostic.
+ * substring-locations.c (format_warning_va): Likewise.
+
2017-05-05 David Malcolm <dmalcolm@redhat.com>
* diagnostic.c (diagnostic_report_diagnostic): Eliminate
+2017-05-05 David Malcolm <dmalcolm@redhat.com>
+
+ * c-common.c (c_cpp_error): Replace report_diagnostic
+ with diagnostic_report_diagnostic.
+
2017-05-04 Martin Sebor <msebor@redhat.com>
PR translation/80280
richloc, dlevel);
diagnostic_override_option_index (&diagnostic,
c_option_controlling_cpp_error (reason));
- ret = report_diagnostic (&diagnostic);
+ ret = diagnostic_report_diagnostic (global_dc, &diagnostic);
if (level == CPP_DL_WARNING_SYSHDR)
global_dc->dc_warn_system_headers = save_warn_system_headers;
return ret;
+2017-05-05 David Malcolm <dmalcolm@redhat.com>
+
+ * c-decl.c (warn_defaults_to): Replace report_diagnostic
+ with diagnostic_report_diagnostic.
+ * c-errors.c (pedwarn_c99): Likewise.
+ (pedwarn_c90): Likewise.
+
2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
PR c++/80038
diagnostic_set_info (&diagnostic, gmsgid, &ap, &richloc,
flag_isoc99 ? DK_PEDWARN : DK_WARNING);
diagnostic.option_index = opt;
- report_diagnostic (&diagnostic);
+ diagnostic_report_diagnostic (global_dc, &diagnostic);
va_end (ap);
}
(pedantic && !flag_isoc11)
? DK_PEDWARN : DK_WARNING);
diagnostic.option_index = OPT_Wc99_c11_compat;
- warned = report_diagnostic (&diagnostic);
+ warned = diagnostic_report_diagnostic (global_dc, &diagnostic);
}
/* -Wno-c99-c11-compat suppresses even the pedwarns. */
else if (warn_c99_c11_compat == 0)
{
diagnostic_set_info (&diagnostic, gmsgid, &ap, &richloc, DK_PEDWARN);
diagnostic.option_index = opt;
- warned = report_diagnostic (&diagnostic);
+ warned = diagnostic_report_diagnostic (global_dc, &diagnostic);
}
va_end (ap);
return warned;
(pedantic && !flag_isoc99)
? DK_PEDWARN : DK_WARNING);
diagnostic.option_index = opt;
- report_diagnostic (&diagnostic);
+ diagnostic_report_diagnostic (global_dc, &diagnostic);
warned = true;
goto out;
}
(pedantic && !flag_isoc99)
? DK_PEDWARN : DK_WARNING);
diagnostic.option_index = OPT_Wc90_c99_compat;
- report_diagnostic (&diagnostic);
+ diagnostic_report_diagnostic (global_dc, &diagnostic);
}
/* -Wno-c90-c99-compat suppresses the pedwarns. */
else if (warn_c90_c99_compat == 0)
{
diagnostic_set_info (&diagnostic, gmsgid, &ap, &richloc, DK_PEDWARN);
diagnostic.option_index = opt;
- report_diagnostic (&diagnostic);
+ diagnostic_report_diagnostic (global_dc, &diagnostic);
warned = true;
}
out:
+2017-05-05 David Malcolm <dmalcolm@redhat.com>
+
+ * error.c (pedwarn_cxx98): Replace report_diagnostic
+ with diagnostic_report_diagnostic.
+
2017-05-05 Nathan Sidwell <nathan@acm.org>
* cp-tree.h (IDENTIFIER_GLOBAL_VALUE): Use get_namespace_value.
diagnostic_set_info (&diagnostic, gmsgid, &ap, &richloc,
(cxx_dialect == cxx98) ? DK_PEDWARN : DK_WARNING);
diagnostic.option_index = opt;
- ret = report_diagnostic (&diagnostic);
+ ret = diagnostic_report_diagnostic (global_dc, &diagnostic);
va_end (ap);
return ret;
}
if (kind == DK_WARNING || kind == DK_PEDWARN)
diagnostic.option_index = opt;
}
- return report_diagnostic (&diagnostic);
+ return diagnostic_report_diagnostic (global_dc, &diagnostic);
}
/* Same as diagonostic_n_impl taking rich_location instead of location_t. */
ap, richloc, kind);
if (kind == DK_WARNING)
diagnostic.option_index = opt;
- return report_diagnostic (&diagnostic);
+ return diagnostic_report_diagnostic (global_dc, &diagnostic);
}
/* Implement inform_n, warning_n, and error_n, as documented and
(!(DC)->dc_inhibit_warnings \
&& !(in_system_header_at (LOC) && !(DC)->dc_warn_system_headers))
-#define report_diagnostic(D) diagnostic_report_diagnostic (global_dc, D)
-
/* Override the option index to be used for reporting a
diagnostic. */
#define diagnostic_override_option_index(DI, OPTIDX) \
+2017-05-05 David Malcolm <dmalcolm@redhat.com>
+
+ * cpp.c (cb_cpp_error): Replace report_diagnostic
+ with diagnostic_report_diagnostic.
+ * error.c (gfc_warning): Likewise.
+ (gfc_warning_now_at): Likewise.
+ (gfc_warning_now): Likewise.
+ (gfc_warning_internal): Likewise.
+ (gfc_error_now): Likewise.
+ (gfc_fatal_error): Likewise.
+ (gfc_error_opt): Likewise.
+ (gfc_internal_error): Likewise.
+
2017-05-01 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/37131
richloc, dlevel);
if (reason == CPP_W_WARNING_DIRECTIVE)
diagnostic_override_option_index (&diagnostic, OPT_Wcpp);
- ret = report_diagnostic (&diagnostic);
+ ret = diagnostic_report_diagnostic (global_dc, &diagnostic);
if (level == CPP_DL_WARNING_SYSHDR)
global_dc->dc_warn_system_headers = save_warn_system_headers;
return ret;
diagnostic_set_info (&diagnostic, gmsgid, &argp, &rich_loc,
DK_WARNING);
diagnostic.option_index = opt;
- bool ret = report_diagnostic (&diagnostic);
+ bool ret = diagnostic_report_diagnostic (global_dc, &diagnostic);
if (buffered_p)
{
va_start (argp, gmsgid);
diagnostic_set_info (&diagnostic, gmsgid, &argp, &rich_loc, DK_WARNING);
diagnostic.option_index = opt;
- ret = report_diagnostic (&diagnostic);
+ ret = diagnostic_report_diagnostic (global_dc, &diagnostic);
va_end (argp);
return ret;
}
diagnostic_set_info (&diagnostic, gmsgid, &argp, &rich_loc,
DK_WARNING);
diagnostic.option_index = opt;
- ret = report_diagnostic (&diagnostic);
+ ret = diagnostic_report_diagnostic (global_dc, &diagnostic);
va_end (argp);
return ret;
}
diagnostic_set_info (&diagnostic, gmsgid, &argp, &rich_loc,
DK_WARNING);
diagnostic.option_index = opt;
- ret = report_diagnostic (&diagnostic);
+ ret = diagnostic_report_diagnostic (global_dc, &diagnostic);
va_end (argp);
return ret;
}
va_start (argp, gmsgid);
diagnostic_set_info (&diagnostic, gmsgid, &argp, &rich_loc, DK_ERROR);
- report_diagnostic (&diagnostic);
+ diagnostic_report_diagnostic (global_dc, &diagnostic);
va_end (argp);
}
va_start (argp, gmsgid);
diagnostic_set_info (&diagnostic, gmsgid, &argp, &rich_loc, DK_FATAL);
- report_diagnostic (&diagnostic);
+ diagnostic_report_diagnostic (global_dc, &diagnostic);
va_end (argp);
gcc_unreachable ();
}
diagnostic_set_info (&diagnostic, gmsgid, &argp, &richloc, DK_ERROR);
- report_diagnostic (&diagnostic);
+ diagnostic_report_diagnostic (global_dc, &diagnostic);
if (buffered_p)
{
va_start (argp, gmsgid);
diagnostic_set_info (&diagnostic, gmsgid, &argp, &rich_loc, DK_ICE);
- report_diagnostic (&diagnostic);
+ diagnostic_report_diagnostic (global_dc, &diagnostic);
va_end (argp);
gcc_unreachable ();
diagnostic_set_info (&diagnostic, msg, args_ptr,
&richloc, kind);
- report_diagnostic (&diagnostic);
+ diagnostic_report_diagnostic (global_dc, &diagnostic);
}
void
diagnostic_info diagnostic;
diagnostic_set_info (&diagnostic, gmsgid, ap, &richloc, DK_WARNING);
diagnostic.option_index = opt;
- bool warned = report_diagnostic (&diagnostic);
+ bool warned = diagnostic_report_diagnostic (global_dc, &diagnostic);
if (!err && fmt_substring_loc && !substring_within_range)
/* Case 2. */