OSDN Git Service

* c-tree.h (struct c_declspecs): Add const_p, volatile_p and
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Sep 2004 18:59:38 +0000 (18:59 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Sep 2004 18:59:38 +0000 (18:59 +0000)
commitbb4762163b4edc6e12f262f5ecd6dda3bc66d5a6
treefb8bf0df6ee54a733add01818e6fc44482343ef3
parentb368ada25fad9cc941cacfd0dc2be98bd3de1604
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87500 138bc75d-0d04-0410-961f-82ee72b054a4
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]