diff options
Diffstat (limited to 'gcc/stringpool.c')
-rw-r--r-- | gcc/stringpool.c | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/gcc/stringpool.c b/gcc/stringpool.c index 747db177b2a..281e5501d1e 100644 --- a/gcc/stringpool.c +++ b/gcc/stringpool.c @@ -49,7 +49,7 @@ static const char digit_vector[] = { struct ht *ident_hash; -static hashnode alloc_node (hash_table *); +static hashnode alloc_node (cpp_hash_table *); static int mark_ident (struct cpp_reader *, hashnode, const void *); static void * @@ -70,7 +70,7 @@ init_stringpool (void) /* Allocate a hash node. */ static hashnode -alloc_node (hash_table *table ATTRIBUTE_UNUSED) +alloc_node (cpp_hash_table *table ATTRIBUTE_UNUSED) { return GCC_IDENT_TO_HT_IDENT (make_node (IDENTIFIER_NODE)); } @@ -210,6 +210,32 @@ gt_pch_n_S (const void *x) gt_pch_note_object (CONST_CAST (void *, x), CONST_CAST (void *, x), >_pch_p_S, gt_types_enum_last); } + + +/* User-callable entry point for marking string X. */ + +void +gt_pch_nx (const char *& x) +{ + gt_pch_n_S (x); +} + +void +gt_pch_nx (unsigned char *& x) +{ + gt_pch_n_S (x); +} + +void +gt_pch_nx (unsigned char& x ATTRIBUTE_UNUSED) +{ +} + +void +gt_pch_nx (unsigned char *x, gt_pointer_operator op, void *cookie) +{ + op (x, cookie); +} /* Handle saving and restoring the string pool for PCH. */ |