diff options
author | Gabriel Dos Reis <gdr@codesourcery.com> | 2001-06-26 19:18:37 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2001-06-26 19:18:37 +0000 |
commit | 9596ddd67ef7106cc0d6eac0bcfa8fe24b73f50d (patch) | |
tree | ddbcd8386d8c592593807dad30877f6e735fbb0b /gcc/cp | |
parent | 5e3caf26130ce7ec7e34b28e4f412c6e7c313eae (diff) | |
download | gcc-9596ddd67ef7106cc0d6eac0bcfa8fe24b73f50d.zip gcc-9596ddd67ef7106cc0d6eac0bcfa8fe24b73f50d.tar.gz gcc-9596ddd67ef7106cc0d6eac0bcfa8fe24b73f50d.tar.bz2 |
toplev.c (decode_f_option): Adjust setting.
* toplev.c (decode_f_option): Adjust setting.
(toplev_main): Call diagnostic_initialize. Remove call to
reshape_diagnostic_buffer._
* diagnostic.h (struct output_buffer): Add new field format_decoder.
(diagnostic_format_decoder): New macro.
(diagnostic_prefixing_rule): Likewise.
(diagnostic_line_cutoff): Likewise.
(set_message_prefixing_rule): Remove.
* diagnostic.c (lang_printer): Remove.
(diagnostic_message_length_per_line): Likewise.
(current_prefixing_rule): Likewise.
(initialize_diagnostics): Rename to...
(diagnostic_initialize): ...this. Tweak.
(default_initialize_buffer): Remove.
(reshape_diagnostic_buffer): Likewise.
(init_output_buffer): Adjust prefixing rule setting.
(output_format): Use format_decoder from the output_buffer.
* c-lang.c (c_init): Adjust tree formatter setting.
cp/
* error.c (init_error): Adjust settings.
From-SVN: r43588
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/error.c | 2 | ||||
-rw-r--r-- | gcc/cp/lex.c | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 44233af..33688d4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -2,6 +2,10 @@ * error.c (init_error): Adjust settings. +2001-06-26 Gabriel Dos Reis <gdr@codesourcery.com> + + * error.c (init_error): Adjust settings. + 2001-06-19 Richard Sandiford <rsandifo@redhat.com> * except.c (initialize_handler_parm): Expect __cxa_begin_catch to diff --git a/gcc/cp/error.c b/gcc/cp/error.c index e028a10..5a8522a 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -194,7 +194,7 @@ init_error () print_error_function = lang_print_error_function; diagnostic_starter (global_dc) = cp_diagnostic_starter; diagnostic_finalizer (global_dc) = cp_diagnostic_finalizer; - lang_printer = cp_tree_printer; + diagnostic_format_decoder (global_dc) = cp_tree_printer; init_output_buffer (scratch_buffer, /* prefix */NULL, /* line-width */0); } diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index c466a73..8cee04e 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -269,10 +269,10 @@ cxx_init_options () flag_bounds_check = -1; /* By default wrap lines at 80 characters. Is getenv ("COLUMNS") preferable? */ - diagnostic_message_length_per_line = 80; + diagnostic_line_cutoff (global_dc) = 80; /* By default, emit location information once for every diagnostic message. */ - set_message_prefixing_rule (DIAGNOSTICS_SHOW_PREFIX_ONCE); + diagnostic_prefixing_rule (global_dc) = DIAGNOSTICS_SHOW_PREFIX_ONCE; } static void |