c-common.h (RID_FIRST_PQ): New.
authorNeil Booth <neil@cat.daikokuya.demon.co.uk>
Wed, 16 May 2001 06:22:15 +0000 (06:22 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 16 May 2001 06:22:15 +0000 (06:22 +0000)
commit4c521bad98510915b9bae91033f03a525a7fe5bd
tree1e5d0fbc2d1d0260932b68eec0147527bb4f696d
parentfca790eb60478652025f6604d5b57152cb5160c9
c-common.h (RID_FIRST_PQ): New.

* c-common.h (RID_FIRST_PQ): New.
* c-parse.in (objc_pq_context): New.
(objc parser): Set objc_pq_context rather than calling
remember_protocol_qualifiers and forget_protocol_qualifiers.
Don't call save_and_forget_protocol_qualifiers.
(yylexname): Handle objc protocol qualifiers here.
* stringpool.c (struct str_header): Replace with sp_hashnode.
(SP_EMPTY, SP_LEN, SP_TREE, SP_STR, SP_VALID): New.
(alloc_string): Rename alloc_ident.  Use the SP_ accessors.
Allocate an IDENTIFIER_NODE for each identifier.
(FORALL_STRINGS, set_identifier): Delete.
(FORALL_IDS, expand_string_table, stringpool_statistics): Update.
(ggc_alloc_string): Use an obstack.
(get_identifier, maybe_get_identifier, mark_string_hash): Update.
* tree.h: Update comments.
(set_identifier): Delete.
* objc/objc-act.c (N_PQ, saved_pq, saved_not_pq,
save_and_forget_protocol_qualifiers, forget_protocol_qualifiers,
remember_protocol_qualifiers): Delete.

From-SVN: r42132
gcc/ChangeLog
gcc/c-common.h
gcc/c-parse.in
gcc/objc/objc-act.c
gcc/stringpool.c
gcc/tree.h