This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] add __attribute__ ((designated_init))
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 29 Jul 2014 21:43:52 +0000
- Subject: Re: [PATCH] add __attribute__ ((designated_init))
- Authentication-results: sourceware.org; auth=none
- References: <874n4ygzay dot fsf at fleche dot redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1401231756090 dot 31884 at digraph dot polyomino dot org dot uk> <87r47y1bta dot fsf at fleche dot redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1401241702450 dot 9799 at digraph dot polyomino dot org dot uk> <87egy4r9dy dot fsf at fleche dot redhat dot com>
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