aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc.h
diff options
context:
space:
mode:
authorMatt Austern <austern@apple.com>2003-04-03 21:00:56 +0000
committerMatt Austern <austern@gcc.gnu.org>2003-04-03 21:00:56 +0000
commitd24ecd21b30e9e914788443666912d4dee5be6bc (patch)
treedbb1adecad038d29321ac64a1fb29c837c4b0c87 /gcc/ggc.h
parentbcc53e2a94852391230761e15c044cd48797d4d1 (diff)
downloadgcc-d24ecd21b30e9e914788443666912d4dee5be6bc.zip
gcc-d24ecd21b30e9e914788443666912d4dee5be6bc.tar.gz
gcc-d24ecd21b30e9e914788443666912d4dee5be6bc.tar.bz2
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
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r--gcc/ggc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h
index 17b8e72..e1364a3 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. */