From: Gary Funck Date: Fri, 1 Apr 2011 14:07:52 +0000 (+0000) Subject: c-decl.c (grokdeclarator): Fix formatting. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=636b4106f693484fe21032b7acb2d0c3f43fe165;p=gcc.git c-decl.c (grokdeclarator): Fix formatting. 2011-04-01 Gary Funck * c-decl.c (grokdeclarator): Fix formatting. From-SVN: r171831 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c38662ab245..b5f45a01d89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-04-01 Gary Funck + + * c-decl.c (grokdeclarator): Fix formatting. + 2011-04-01 Richard Sandiford * expr.c (emit_block_move_via_movmem): Use n_generator_args diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 1af3d23b677..d54f37853b2 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5450,7 +5450,7 @@ grokdeclarator (const struct c_declarator *declarator, } } - /* 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_declarator *declarator, 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