* [patch] c-decl.c(grokdeclarator) trivial formating fixes
@ 2011-04-01 5:37 Gary Funck
2011-04-01 11:52 ` Joseph S. Myers
0 siblings, 1 reply; 2+ messages in thread
From: Gary Funck @ 2011-04-01 5:37 UTC (permalink / raw)
To: Gcc Patches
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
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
[-- Attachment #2: c-decl.c-fix-formatting.diffs.txt --]
[-- Type: text/plain, Size: 1128 bytes --]
Index: ChangeLog
===================================================================
--- ChangeLog (revision 171815)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2011-04-01 Gary Funck <gary@intrepid.com>
+
+ * c-decl.c (grokdeclarator): Fix formatting.
+
2011-03-31 Joseph Myers <joseph@codesourcery.com>
* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] c-decl.c(grokdeclarator) trivial formating fixes
2011-04-01 5:37 [patch] c-decl.c(grokdeclarator) trivial formating fixes Gary Funck
@ 2011-04-01 11:52 ` Joseph S. Myers
0 siblings, 0 replies; 2+ messages in thread
From: Joseph S. Myers @ 2011-04-01 11:52 UTC (permalink / raw)
To: Gary Funck; +Cc: Gcc Patches
This patch is OK.
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-01 11:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-01 5:37 [patch] c-decl.c(grokdeclarator) trivial formating fixes Gary Funck
2011-04-01 11:52 ` Joseph S. Myers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).