From cea7835c3fe8ce644d09b4d6e4160b0d70d09a6c Mon Sep 17 00:00:00 2001 From: jason Date: Tue, 27 Jul 1999 10:10:49 +0000 Subject: [PATCH] try again git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28291 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/input.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/cp/input.c b/gcc/cp/input.c index 7fd97a784d2..f8ab714aa83 100644 --- a/gcc/cp/input.c +++ b/gcc/cp/input.c @@ -124,13 +124,14 @@ feed_input (str, len, file, line) #if USE_CPPLIB if (yy_lim > yy_cur) - /* If we've started reading the next token, we're hosed. */ + /* If we've started reading the next token, we're hosed. The + token_getch stuff is supposed to prevent this from happening. */ my_friendly_abort (990710); cpp_push_buffer (&parse_in, str, len); CPP_BUFFER (&parse_in)->manual_pop = 1; CPP_BUFFER (&parse_in)->nominal_fname = CPP_BUFFER (&parse_in)->fname = file; - CPP_BUFFER (&parse_in)->lineno = line; + CPP_BUFFER (&parse_in)->lineno = parse_in.lineno = line; #else inp->str = str; inp->length = len; @@ -141,12 +142,12 @@ feed_input (str, len, file, line) putback.buffer = NULL; putback.buffer_size = 0; putback.index = -1; - lineno = line; - input_filename = file; #endif inp->next = input; inp->input = save_pending_input (); input = inp; + lineno = line; + input_filename = file; } extern int end_of_file; -- 2.11.0