summaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-06 18:56:26 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-06 18:56:26 +0000
commit64cb8c905885e84ec221a614d99c163d8978039a (patch)
treeb934a2743256c5e4e95dea15cdccc9504bf5ed64 /gcc/c-opts.c
parent79369c386b6d0f20d5fa5e940e8e89927c0614a7 (diff)
downloadgcc-64cb8c905885e84ec221a614d99c163d8978039a.tar.gz
gcc
PR c/29172: * c-opts.c (c_common_parse_file): Call cpp_clear_file_cache. libcpp PR c/29172: * internal.h (struct cpp_reader) <file_hash_entries>: Changed type. <file_hash_entries_allocated, file_hash_entries_used>: Removed. * files.c (FILE_HASH_POOL_SIZE): New macro. (struct file_hash_entry_pool): New. (destroy_all_cpp_files): New function. (allocate_file_hash_entries): Allocate a file_hash_entry_pool. (new_file_hash_entry): Update. (free_file_hash_entries): New function. (_cpp_cleanup_files): Call free_file_hash_entries and destroy_all_cpp_files. (cpp_clear_file_cache): New function. * include/cpplib.h (cpp_clear_file_cache): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130656 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index 16710b6a825..a5c2270c025 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -1281,6 +1281,7 @@ c_common_parse_file (int set_yydebug)
if (++i >= num_in_fnames)
break;
cpp_undef_all (parse_in);
+ cpp_clear_file_cache (parse_in);
this_input_filename
= cpp_read_main_file (parse_in, in_fnames[i]);
/* If an input file is missing, abandon further compilation.