r124929 - in /trunk/libcpp: ChangeLog files.c i...

ian@gcc.gnu.org ian@gcc.gnu.org
Mon May 21 23:43:00 GMT 2007


Author: ian
Date: Mon May 21 23:43:53 2007
New Revision: 124929

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124929
Log:
	* internal.h (struct cpp_reader): Add new fields:
	nonexistent_file_hash and nonexistent_file_ob.
	* files.c: Include "obstack.h".
	(find_file_in_dir): Before trying to open the file, look up the
	path name in the hash table of nonexistent files.  After failing
	to open the file, add the path name to the hash table.
	(_cpp_find_file): Cache the results of looking up the file name
	starting with the quote and bracket chain heads, if we can.
	(nonexistent_file_hash_eq): New static function.
	(_cpp_init_files): Initialize pfile->nonexistent_file_hash and
	pfile->nonexistent_file_ob.
	(_cpp_cleanup_files): Free pfile->nonexistent_file_hash and
	pfile->nonexistent_file_ob.

Modified:
    trunk/libcpp/ChangeLog
    trunk/libcpp/files.c
    trunk/libcpp/internal.h



More information about the Gcc-cvs mailing list