From patchwork Fri Apr 1 05:36:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: c-decl.c(grokdeclarator) trivial formating fixes From: Gary Funck X-Patchwork-Id: 89204 Message-Id: <20110401053653.GD7573@intrepid.com> To: Gcc Patches Date: Thu, 31 Mar 2011 22:36:53 -0700 See attached: two places in grokdeclarartor, where extra spaces appear. I can make this patch, or perhaps someone else can just fold it into something they're doing? (Although I had separately made these changes in the GUPC branch, I haven't tested them. Hopefully, they're safe by inspection.) - Gary Index: ChangeLog =================================================================== --- ChangeLog (revision 171815) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2011-04-01 Gary Funck + + * c-decl.c (grokdeclarator): Fix formatting. + 2011-03-31 Joseph Myers * opts.h (cl_option): Add comments to fields. Add bit-fields for Index: c-decl.c =================================================================== --- c-decl.c (revision 171815) +++ c-decl.c (working copy) @@ -5450,7 +5450,7 @@ grokdeclarator (const struct c_declarato } } - /* Complain about arrays of incomplete types. */ + /* Complain about arrays of incomplete types. */ if (!COMPLETE_TYPE_P (type)) { error_at (loc, "array type has incomplete element type"); @@ -5936,7 +5936,7 @@ grokdeclarator (const struct c_declarato if (storage_class == csc_register || threadp) { error_at (loc, "invalid storage class for function %qE", name); - } + } else if (current_scope != file_scope) { /* Function declaration not at file scope. Storage