cpppch.c (reset_ht): Remove.
authorMatt Austern <austern@apple.com>
Thu, 3 Apr 2003 21:00:56 +0000 (21:00 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Thu, 3 Apr 2003 21:00:56 +0000 (21:00 +0000)
commitd24ecd21b30e9e914788443666912d4dee5be6bc
treedbb1adecad038d29321ac64a1fb29c837c4b0c87
parentbcc53e2a94852391230761e15c044cd48797d4d1
cpppch.c (reset_ht): Remove.

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

From-SVN: r65215
gcc/ChangeLog
gcc/cpppch.c
gcc/ggc-common.c
gcc/ggc.h
gcc/stringpool.c