diff options
Diffstat (limited to 'gcc/stringpool.c')
-rw-r--r-- | gcc/stringpool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/stringpool.c b/gcc/stringpool.c index 4b6900c..e317525 100644 --- a/gcc/stringpool.c +++ b/gcc/stringpool.c @@ -79,7 +79,7 @@ alloc_node (cpp_hash_table *table ATTRIBUTE_UNUSED) nul-terminated string, and the length is calculated using strlen. */ const char * -ggc_alloc_string_stat (const char *contents, int length MEM_STAT_DECL) +ggc_alloc_string (const char *contents, int length MEM_STAT_DECL) { char *result; @@ -91,7 +91,7 @@ ggc_alloc_string_stat (const char *contents, int length MEM_STAT_DECL) if (length == 1 && ISDIGIT (contents[0])) return digit_string (contents[0] - '0'); - result = (char *) ggc_alloc_atomic_stat (length + 1 PASS_MEM_STAT); + result = (char *) ggc_internal_cleared_alloc (length + 1 PASS_MEM_STAT); memcpy (result, contents, length); result[length] = '\0'; return (const char *) result; |