aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1999-07-27 06:10:49 -0400
committerJason Merrill <jason@gcc.gnu.org>1999-07-27 06:10:49 -0400
commit3c56dbcfe29dc4053c0ec20f0dc43f76d039c97b (patch)
treeeb458bb156c99731f34490749f42655298486d08 /gcc
parent0068735be16b82f63860040bb4fecbc8ab08453e (diff)
downloadgcc-3c56dbcfe29dc4053c0ec20f0dc43f76d039c97b.zip
gcc-3c56dbcfe29dc4053c0ec20f0dc43f76d039c97b.tar.gz
gcc-3c56dbcfe29dc4053c0ec20f0dc43f76d039c97b.tar.bz2
try again
From-SVN: r28291
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/input.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cp/input.c b/gcc/cp/input.c
index 7fd97a7..f8ab714 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;