cppfiles.c (stack_include_file): line-map.c now handles include depth.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Tue, 21 Aug 2001 23:05:12 +0000 (23:05 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Tue, 21 Aug 2001 23:05:12 +0000 (23:05 +0000)
commitd8693c6fa425fecaf6570114f1cd69aaf3c08043
treee9c81016bacfbc22e38372b7b5b54d1c58bf8dc2
parent5993019d2058a2d4ff24b5990ff6d4ac9c8a3311
cppfiles.c (stack_include_file): line-map.c now handles include depth.

* cppfiles.c (stack_include_file): line-map.c now handles include
depth.
(handle_missing_handler): Similarly.
(_cpp_execute_include): Similarly.
(_cpp_pop_file_buffer): Similarly.
* cpphash.h (struct cpp_reader): Remove system_include_depth,
buffer_stack_depth and include_depth.
* cpplib.c (do_include_common): line-map.c now handles include depth.
(cpp_push_buffer): Similarly.
(_cpp_pop_buffer): Similarly.
* cppmacro.c (builtin_macro): Update.
* line-map.c (init_line_maps): Set depth.
(add_line_map): Increment "used" earlier.  Update and use the
include depth.
(trace_include): Use the include depth.
* line-map.h (struct line_maps): New member depth.

From-SVN: r45085
gcc/ChangeLog
gcc/cppfiles.c
gcc/cpphash.h
gcc/cpplib.c
gcc/cppmacro.c
gcc/line-map.c
gcc/line-map.h