* cpperror.c (print_containing_files): Moved to line-map.c.
(print_location): line-map.c handles re-listing or otherwise. * cpphash.h (struct lexer_state): Remove next_bol. (struct cpp_buffer): Remove include_stack_listed. * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer): Remove faked buffer handling. (_cpp_do_file_change): Tweak. * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE. * cppmain.c (struct printer): Remove filename. (print_line, cb_file_change): Update accordingly. * line-map.c: Include intl.h. (init_line_maps): Initialize last_listed. (free_line_maps): Sanity check, warn if ENABLED_CHECKING. (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING. (print_containing_files): New. * line-map.h (struct line_maps): New member last_listed. (print_containing_files, INCLUDED_FROM): New. * Makefile.in: Update. * po/POTFILES.in: Add line-map.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44670 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 22 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 1 addition, 1 deletiongcc/Makefile.in
- gcc/cpperror.c 1 addition, 51 deletionsgcc/cpperror.c
- gcc/cpphash.h 0 additions, 7 deletionsgcc/cpphash.h
- gcc/cpplib.c 44 additions, 111 deletionsgcc/cpplib.c
- gcc/cpplib.h 3 additions, 4 deletionsgcc/cpplib.h
- gcc/cppmain.c 2 additions, 5 deletionsgcc/cppmain.c
- gcc/line-map.c 73 additions, 9 deletionsgcc/line-map.c
- gcc/line-map.h 14 additions, 0 deletionsgcc/line-map.h
- gcc/po/POTFILES.in 1 addition, 0 deletionsgcc/po/POTFILES.in
Loading
Please register or sign in to comment