This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Remove extra newline in diagnostics
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 28 Oct 2003 15:36:08 +0100
- Subject: [PATCH] Remove extra newline in diagnostics
pp_flush already adds a newline, so no need to call pp_newline.
Andreas.
2003-10-28 Andreas Schwab <schwab@suse.de>
* c-pretty-print.c (pp_c_function_definition): Don't call
pp_newline.
* langhooks.c (lhd_print_error_function): Likewise.
--- gcc/langhooks.c.~1.54.~ 2003-09-18 10:55:26.000000000 +0200
+++ gcc/langhooks.c 2003-10-23 10:58:23.000000000 +0200
@@ -544,7 +544,6 @@ lhd_print_error_function (diagnostic_con
(context->printer, "In function `%s':",
(*lang_hooks.decl_printable_name) (current_function_decl, 2));
}
- pp_newline (context->printer);
diagnostic_set_last_function (context);
pp_flush (context->printer);
--- gcc/c-pretty-print.c.~1.32.~ 2003-10-09 10:32:42.000000000 +0200
+++ gcc/c-pretty-print.c 2003-10-23 10:58:22.000000000 +0200
@@ -670,7 +670,6 @@ pp_c_function_definition (c_pretty_print
pp_declarator (pp, t);
pp_needs_newline (pp) = true;
pp_statement (pp, DECL_SAVED_TREE (t));
- pp_newline (pp);
pp_flush (pp);
}
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."