aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-09-26 21:44:35 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-09-26 21:44:35 +0000
commit1e013d2ee59f0cd640dc56a973ef577465c4aa6b (patch)
tree03b83203b4e6f5bc73aa03834e13b0fb8efa1d57 /gcc/cppinit.c
parent0c055e3461e70139f7277fb146e080599a0ab6a2 (diff)
downloadgcc-1e013d2ee59f0cd640dc56a973ef577465c4aa6b.zip
gcc-1e013d2ee59f0cd640dc56a973ef577465c4aa6b.tar.gz
gcc-1e013d2ee59f0cd640dc56a973ef577465c4aa6b.tar.bz2
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
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c4
1 files changed, 0 insertions, 4 deletions
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)