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 to remove stray \n from diagnostic


The

          sorry ("GCC supports only %u nested scopes\n", scope->depth);

diagnostic in c-decl.c should not have the trailing \n.  Fixed thus.
This diagnostic isn't effectively testable in the testsuite: a test
would run out of memory on almost all systems.  Bootstrapped with no
regressions on i686-pc-linux-gnu.  Applied to mainline.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)

2004-11-19  Joseph S. Myers  <joseph@codesourcery.com>

	* c-decl.c (push_scope): Remove "\n" from end of diagnostic for
	too many nested scopes.

diff -rupN GCC.orig/gcc/c-decl.c GCC/gcc/c-decl.c
--- GCC.orig/gcc/c-decl.c	2004-11-15 22:06:32.000000000 +0000
+++ GCC/gcc/c-decl.c	2004-11-19 13:22:40.000000000 +0000
@@ -634,7 +634,7 @@ push_scope (void)
       if (current_scope && scope->depth == 0)
 	{
 	  scope->depth--;
-	  sorry ("GCC supports only %u nested scopes\n", scope->depth);
+	  sorry ("GCC supports only %u nested scopes", scope->depth);
 	}
 
       current_scope        = scope;


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