c-parse.in (initelt): Give appropriate pedantic warnings...
authorJoseph Myers <jsm28@cam.ac.uk>
Mon, 13 Nov 2000 13:31:16 +0000 (13:31 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 13 Nov 2000 13:31:16 +0000 (13:31 +0000)
commit26d4fec72e0319f2af9416ceaa9c76430b9e808d
tree7f9d7597fc09c082ffe833c9bc59a6994331b0a1
parent1173593dd6368a86253e21fcb00ff8496c0eac34
c-parse.in (initelt): Give appropriate pedantic warnings...

* 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.

From-SVN: r37421
gcc/ChangeLog
gcc/c-parse.in
gcc/c-typeck.c
gcc/extend.texi