OSDN Git Service

* c-parse.in (initelt): Give appropriate pedantic warnings,
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Nov 2000 13:31:16 +0000 (13:31 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Nov 2000 13:31:16 +0000 (13:31 +0000)
commit31bd149b296eeb1cc7ba1c5c1984dcc31f5ced30
tree7f9d7597fc09c082ffe833c9bc59a6994331b0a1
parent967ccfb6ec2956b1132240b2e84da6fd3dbb9787
* c-parse.in (initelt): Give appropriate pedantic warnings,
depending on flag_isoc99, for non-ISO syntax and for C99 syntax
outside C99 mode.
(designator): If pedantic, pedwarn for a designator specifying a
range of elements.
* c-typeck.c (set_init_index, set_init_label): Don't pedwarn for
these cases.
* extend.texi: Document the C99 syntax as the preferred syntax,
and the pre-2.5 syntax as obsolete.  Mention use of designator
lists for nested subobjects.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37421 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-parse.in
gcc/c-typeck.c
gcc/extend.texi