From ecb68251ec372b2b6971d4875bd1548978dbc058 Mon Sep 17 00:00:00 2001 From: zack Date: Sun, 6 Feb 2000 08:24:22 +0000 Subject: * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump input pointer before possibly branching off to the backslash code. * cpphash.c (macroexpand): Correctly delete \r escapes when stringifying parameters. * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment if we can; bail out early if we hit a line comment. (handle_directive): Treat '# 123' in an .S file just like '# '. Discard the shifted '#' if we hit '#\n'. Return 1 for '# not_a_directive'. (get_directive_token): Pop macro buffers here, so that cpp_get_token can't sneakily move past a newline. Add sanity checks. (cpp_get_token): goto randomchar if handle_directive returns 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31819 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cppfiles.c') diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index a89a0cafc04..36e330572ea 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -1017,6 +1017,7 @@ read_and_prescan (pfile, fp, desc, len) *op++ = '?'; break; } + ip += 2; if (CPP_OPTIONS (pfile)->warn_trigraphs) { unsigned long col; @@ -1042,7 +1043,6 @@ read_and_prescan (pfile, fp, desc, len) *op++ = '?'; *op++ = d; } - ip += 2; } } } -- cgit v1.2.3