From ef6e958a8611ff372211d0fd3cd9659614583bb4 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 4 Aug 2001 12:01:59 +0000 Subject: Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h are also on line-map.h. * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h are also on line-map.h. * cppfiles.c (stack_include_file): Update. * cpphash.h (struct cpp_buffer): New member return_at_eof. (_cpp_pop_buffer): New. * cppinit.c (cpp_destroy, cpp_finish): Update. (do_includes): Mark each buffer to return at EOF. * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or return as requested. * cpplib.c (run_directive, do_line, cpp_push_buffer): Update. (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping. * cpplib.h (cpp_pop_buffer): Remove. (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput. * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop buffers. * cppmain.c (scan_buffer): Rename scan_translation_unit. No need to pop buffers. (do_preprocessing): Update. * fix-header.c (read_scan_file): Update. No need to pop buffers. * c-parse.in (_yylex): Similarly. * scan-decls.c (scan_decls): Similarly. * line-map.h: Update comments. * cp/spew.c (read_token): No need to pop buffers. * objc/Make-lang.in (objc-act.o): Update dependencies. From-SVN: r44634 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/spew.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/cp') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7f29314..2911f99 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2001-08-04 Neil Booth + + * cp/spew.c (read_token): No need to pop buffers. + 2001-08-02 Stan Shebs * cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used. diff --git a/gcc/cp/spew.c b/gcc/cp/spew.c index 28b2323..4b7f845 100644 --- a/gcc/cp/spew.c +++ b/gcc/cp/spew.c @@ -331,8 +331,6 @@ read_token (t) #undef YYCODE case CPP_EOF: - if (cpp_pop_buffer (parse_in) != 0) - goto retry; t->yychar = 0; break; -- cgit v1.1