This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to remove stray \n from diagnostic
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 19 Nov 2004 19:55:22 +0000 (UTC)
- Subject: 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;