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]

Re: [C PATCH] Warn for _Alignas in an array declarator (PR c/58267)


On Wed, 16 Oct 2013, Marek Polacek wrote:

> Regtested/bootstrapped on x86_64-linux, ok for trunk?
> 
> 2013-10-16  Marek Polacek  <polacek@redhat.com>
> 
> 	PR c/58267
> c/
> 	* c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
> 	Document syntax of the array-declarator.
> 	(c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
> 	are not permitted.
> 	(c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
> 	(c_parser_struct_declaration): Likewise.
> 	(c_parser_declarator): Likewise.
> 	(c_parser_direct_declarator_inner): Likewise.
> 	(c_parser_parameter_declaration): Likewise.
> 	(c_parser_type_name): Likewise.
> testsuite/
> 	* gcc.dg/c1x-align-5.c: New test.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


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