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: [PATCH] add __attribute__ ((designated_init))


On Tue, 1 Jul 2014, Tom Tromey wrote:

> 2014-07-01  Tom Tromey  <tromey@redhat.com>
> 
> 	PR c/59855
> 	* doc/invoke.texi (Warning Options): Document -Wdesignated-init.
> 	* doc/extend.texi (Type Attributes): Document designated_init
> 	attribute.
> 
> 2014-07-01  Tom Tromey  <tromey@redhat.com>
> 
> 	PR c/59855
> 	* c.opt (Wdesignated-init): New option.
> 	* c-common.c (c_common_attribute_table): Add "designated_init".
> 	(handle_designated_init): New function.
> 
> 2014-07-01  Tom Tromey  <tromey@redhat.com>
> 
> 	* c-typeck.c (struct constructor_stack) <designator_depth>: New
> 	field.
> 	(really_start_incremental_init, push_init_level): Initialize
> 	designator_depth.
> 	(pop_init_level): Set global designator_depth.
> 	(process_init_element): Check for designated_init attribute.
> 
> 2014-07-01  Tom Tromey  <tromey@redhat.com>
> 
> 	PR c/59855
> 	* gcc.dg/Wdesignated-init.c: New file.

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]