aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-02-06 08:24:22 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-02-06 08:24:22 +0000
commiteaefae0ec35904e854d4f8a097fdb3e7c678aff8 (patch)
treeb4662b68daf63cc7cf16c2fab569a5dde8daa2ea /gcc/cppfiles.c
parent1316f1f7fcb21e1f5c807f2a3a84f177674e0e5b (diff)
downloadgcc-eaefae0ec35904e854d4f8a097fdb3e7c678aff8.zip
gcc-eaefae0ec35904e854d4f8a097fdb3e7c678aff8.tar.gz
gcc-eaefae0ec35904e854d4f8a097fdb3e7c678aff8.tar.bz2
cppfiles.c (read_and_prescan): Bump input pointer before possibly branching off to the backslash code.
* 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 '# <punctuation>'. 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. From-SVN: r31819
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index a89a0ca..36e3305 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;
}
}
}