c-tree.h (struct c_declspecs): Add const_p, volatile_p and restrict_p.
authorJoseph Myers <jsm@polyomino.org.uk>
Tue, 14 Sep 2004 18:59:38 +0000 (19:59 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 14 Sep 2004 18:59:38 +0000 (19:59 +0100)
commit3b53cddc38abb716ac6b300d68cfe841a3a4f265
treefb8bf0df6ee54a733add01818e6fc44482343ef3
parent67dd4a937789286c3903508be8662fb93051b1c3
c-tree.h (struct c_declspecs): Add const_p, volatile_p and restrict_p.

* c-tree.h (struct c_declspecs): Add const_p, volatile_p and
restrict_p.
(struct c_declarator): Change u.array.quals and pointer_quals to
int.  Add u.array.attrs.
(quals_from_declspecs): New.
* c-decl.c (quals_from_declspecs): New.
(shadow_tag_warned): Give more specific message for useless type
qualifiers.
(build_array_declarator, set_array_declarator_inner,
grokdeclarator, make_pointer_declarator, build_null_declspecs,
declspecs_add_qual): Update for changed structures.

testsuite:
* gcc.dg/declspec-12.c: New test.

From-SVN: r87500
gcc/ChangeLog
gcc/c-decl.c
gcc/c-tree.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/declspec-12.c [new file with mode: 0644]