From a64e73290a52f1936e1fd102c2f58fd92580d095 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Wed, 23 Aug 2000 09:31:12 +0000 Subject: [PATCH] error.c (cp_print_error_function): Don't use embedded '\n' in output_printf. * error.c (cp_print_error_function): Don't use embedded '\n' in output_printf. From-SVN: r35906 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/error.c | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8ddd8a03f42..174263e74f3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-08-23 Gabriel Dos Reis + + * error.c (cp_print_error_function): Don't use embedded '\n' in + output_printf. + 2000-08-23 Gabriel Dos Reis * decl.c (init_decl_processing): Remove bogus initialization. diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 012bbcf6aee..4329de5e876 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -2486,14 +2486,12 @@ cp_print_error_function (buffer, dc) output_set_prefix (buffer, prefix); if (current_function_decl == NULL) - { - output_add_string (buffer, "At global scope:"); - output_add_newline (buffer); - } + output_add_string (buffer, "At global scope:"); else output_printf - (buffer, "In %s `%s':\n", function_category (current_function_decl), + (buffer, "In %s `%s':", function_category (current_function_decl), (*decl_printable_name) (current_function_decl, 2)); + output_add_newline (buffer); record_last_error_function (); output_destroy_prefix (buffer);