diff options
author | David Malcolm <dmalcolm@redhat.com> | 2017-05-05 21:01:05 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2017-05-05 21:01:05 +0000 |
commit | 56d3558517e7d7b75ff6704913f563a11eb13118 (patch) | |
tree | c9613ec3bbd5d40d228e3d7c8a7edc4cda958a68 /gcc/diagnostic.h | |
parent | 80ceac09a50d0d730cd729d735a49cd689ef2f65 (diff) | |
download | gcc-56d3558517e7d7b75ff6704913f563a11eb13118.zip gcc-56d3558517e7d7b75ff6704913f563a11eb13118.tar.gz gcc-56d3558517e7d7b75ff6704913f563a11eb13118.tar.bz2 |
Eliminate report_diagnostic macro
This patch eliminates the report_diagnostic macro, manually
expanding it in all sites in the code.
No functional change intended.
gcc/c-family/ChangeLog:
* c-common.c (c_cpp_error): Replace report_diagnostic
with diagnostic_report_diagnostic.
gcc/c/ChangeLog:
* c-decl.c (warn_defaults_to): Replace report_diagnostic
with diagnostic_report_diagnostic.
* c-errors.c (pedwarn_c99): Likewise.
(pedwarn_c90): Likewise.
gcc/cp/ChangeLog:
* error.c (pedwarn_cxx98): Replace report_diagnostic
with diagnostic_report_diagnostic.
gcc/ChangeLog:
* 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.
gcc/fortran/ChangeLog:
* 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.
From-SVN: r247663
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 91a9642..846a158 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -278,8 +278,6 @@ extern diagnostic_context *global_dc; (!(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) \ |