* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45085 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 19 additions, 0 deletionsgcc/ChangeLog
- gcc/cppfiles.c 1 addition, 12 deletionsgcc/cppfiles.c
- gcc/cpphash.h 0 additions, 9 deletionsgcc/cpphash.h
- gcc/cpplib.c 1 addition, 3 deletionsgcc/cpplib.c
- gcc/cppmacro.c 4 additions, 4 deletionsgcc/cppmacro.c
- gcc/line-map.c 15 additions, 10 deletionsgcc/line-map.c
- gcc/line-map.h 3 additions, 0 deletionsgcc/line-map.h
Loading
Please register or sign in to comment