From 1e013d2ee59f0cd640dc56a973ef577465c4aa6b Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 26 Sep 2001 21:44:35 +0000 Subject: cpphash.h (struct cpp_pool): Remove locks and locked. * cpphash.h (struct cpp_pool): Remove locks and locked. (struct cpp_context): Add member buff. (struct cpp_reader): Remove member argument_pool. (_cpp_lock_pool, _cpp_unlock_pool): Remove. * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead. * cpplex.c (chunk_suitable): Remove pool argument. (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New. (new_buff, _cpp_extend_buff): Update. (_cpp_get_buff): Fix silly pointer bug. Be more selective about which buffer is returned. (_cpp_next_chunk, _cpp_init_pool): Pool locking removed. (_cpp_lock_pool, _cpp_unlock_pool): Remove. * cppmacro.c (lock_pools, unlock_pools): Remove. (push_ptoken_context): Take a _cpp_buff. (enter_macro_context): Pool locking removed. (replace_args): Use a _cpp_buff for the replacement list with arguments replaced. (push_token_context): Clear buff. (expand_arg): Use _cpp_pop_context. (_cpp_pop_context): Free a context's buffer, if any. From-SVN: r45833 --- gcc/cppinit.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gcc/cppinit.c') diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 53e1c68..42decd1 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -530,9 +530,6 @@ cpp_create_reader (table, lang) /* Identifier pool initially 8K. Unaligned, permanent pool. */ _cpp_init_pool (&pfile->ident_pool, 8 * 1024, 1, 0); - /* Argument pool initially 8K. Aligned, temporary pool. */ - _cpp_init_pool (&pfile->argument_pool, 8 * 1024, 0, 1); - /* Macro pool initially 8K. Aligned, permanent pool. */ _cpp_init_pool (&pfile->macro_pool, 8 * 1024, 0, 0); @@ -590,7 +587,6 @@ cpp_destroy (pfile) _cpp_free_pool (&pfile->ident_pool); _cpp_free_pool (&pfile->macro_pool); - _cpp_free_pool (&pfile->argument_pool); _cpp_free_buff (pfile->free_buffs); for (run = &pfile->base_run; run; run = runn) -- cgit v1.1