]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostic.c: Don't include flags.h.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 24 May 2010 18:55:44 +0000 (19:55 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 24 May 2010 18:55:44 +0000 (19:55 +0100)
commit243fbddd9c886159b7461867c84db564e0b5b0b0
treed6028a1f52919db5575cd7449139f2ab89757163
parent611d6f76fe8eae737566fb809f61b0c094ef92c9
diagnostic.c: Don't include flags.h.

* diagnostic.c: Don't include flags.h.
(pedantic_warning_kind, permissive_error_kind): Take diagnostic
context parameters.  Check flags in the context passed as a
parameter.
(diagnostic_build_prefix): Add context parameter.  Check
show_column flag in context.
(diagnostic_action_after_output): Check fatal_errors flag in
context.
(diagnostic_report_current_module): Check show_column flag in
context.
(default_diagnostic_starter): Update call to
diagnostic_build_prefix.
(diagnostic_report_diagnostic): Pass context to
pedantic_warning_kind.
(emit_diagnostic): Pass context to permissive_error_kind.
(permerror): Pass context to permissive_error_kind.
* diagnostic.h (struct diagnostic_context): Add show_column,
pedantic_errors, permissive and fatal_errors fields.
(diagnostic_build_prefix): Update prototype.
* langhooks.c
* toplev.c (process_options): Set flags in global_dc from
flag_show_column, flag_pedantic_errors, flag_permissive,
flag_fatal_errors.
* tree-diagnostic.c (default_tree_diagnostic_starter): Update call
to diagnostic_build_prefix.
* Makefile.in (diagnostic.o): Update dependencies.

cp:
* error.c (cp_diagnostic_starter): Update call to
diagnostic_build_prefix.
(cp_print_error_function,
print_instantiation_partial_context_line): Check show_column flag
in context.

From-SVN: r159793
gcc/ChangeLog
gcc/Makefile.in
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/diagnostic.c
gcc/diagnostic.h
gcc/langhooks.c
gcc/toplev.c
gcc/tree-diagnostic.c