This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]