OSDN Git Service

* cpppch.c (reset_ht): Remove.
authoraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Apr 2003 21:00:56 +0000 (21:00 +0000)
committeraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Apr 2003 21:00:56 +0000 (21:00 +0000)
commit78e9fc5073efe5a72073621400ad34aeec481bd5
treedbb1adecad038d29321ac64a1fb29c837c4b0c87
parentcbf55766ae0f73a61a54d56d442e43ed6eac8d42
* cpppch.c (reset_ht): Remove.
(cpp_read_state): Remove loop to reset hashtable identifiers.
* ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
after pch file is written.
* ggc.h (gt_pch_fixup_stringpool): Declare.
* stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
hashnode's value to another hashtable, then clear the original.
(saved_ident_hash): Define.
(gt_pch_save_stringpool): Create saved_ident_hash, use it to
store definitions in ident_hash, and clear ident_hash.
(gt_pch_fixup_stringpool): Define.  Restore definitions from
saved_ident_hash to ident_hash, then destroy saved_ident_hash.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65215 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cpppch.c
gcc/ggc-common.c
gcc/ggc.h
gcc/stringpool.c