* cppfiles.c (open_include_file): If open(2) returns EMFILE or
commit34627970a873b9b35b83eec04fdc2d796f0ce81f
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jun 2000 19:03:08 +0000 (28 19:03 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jun 2000 19:03:08 +0000 (28 19:03 +0000)
tree82b11e25ea2057714b83389ff3651dad11f94f5e
parent1b3220456c5c74f0389eed351d9dbf201ea5ddd4
* cppfiles.c (open_include_file): If open(2) returns EMFILE or
ENFILE, close all cached file descriptors and try again.
(_cpp_execute_include): Keep a count of the number of times
each header is included.
(close_cached_fd): New function.
* cpphash.h (struct include_file): Rename before to
include_count; all users updated.  Make include_count and sysp
unsigned short.
* cppinit.c (cpp_finish): If -H, report headers that could use
reinclude guards.
(report_missing_guard): New function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34760 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cppfiles.c
gcc/cpphash.h
gcc/cppinit.c