diff options
author | Matt Austern <austern@apple.com> | 2003-04-03 21:00:56 +0000 |
---|---|---|
committer | Matt Austern <austern@apple.com> | 2003-04-03 21:00:56 +0000 |
commit | 65d8ff55b70839ccc135f8ca52966826f2260464 (patch) | |
tree | dbb1adecad038d29321ac64a1fb29c837c4b0c87 /gcc/ggc.h | |
parent | 6126d736052f6b0b6a31e8e0398f8152b21edef7 (diff) |
* 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: https://gcc.gnu.org/svn/gcc/trunk@65215 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r-- | gcc/ggc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h index 17b8e721c7d..e1364a3a84e 100644 --- a/gcc/ggc.h +++ b/gcc/ggc.h @@ -124,6 +124,7 @@ extern void ggc_mark_roots PARAMS ((void)); /* Save and restore the string pool entries for PCH. */ extern void gt_pch_save_stringpool PARAMS ((void)); +extern void gt_pch_fixup_stringpool PARAMS ((void)); extern void gt_pch_restore_stringpool PARAMS ((void)); /* PCH and GGC handling for strings, mostly trivial. */ |