r142998 - in /trunk/gcc: ChangeLog c-parser.c c...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Thu Jan 1 19:40:00 GMT 2009
Author: jakub
Date: Thu Jan 1 19:40:03 2009
New Revision: 142998
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142998
Log:
PR c/36489
* c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
warn about overwriting initializer with side-effects or
-Woverride-init if !IMPLICIT.
(output_init_element): Likewise. Pass IMPLICIT down to
add_pending_init.
(process_init_element): Add IMPLICIT argument. Pass it down
to output_init_element.
(push_init_element, pop_init_level, set_designator): Adjust
process_init_element callers.
(set_nonincremental_init, set_nonincremental_init_from_string):
Adjust add_pending_init callers.
(output_pending_init_elements): Adjust output_init_element callers.
* c-tree.h (process_init_element): Adjust prototype.
* c-parser.c (c_parser_initelt, c_parser_initval): Adjust
process_init_element callers.
* gcc.dg/pr36489.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr36489.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-parser.c
trunk/gcc/c-tree.h
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list