cppfiles.c (read_and_prescan): Bump input pointer before possibly branching off to...
authorZack Weinberg <zack@wolery.cumb.org>
Sun, 6 Feb 2000 08:24:22 +0000 (08:24 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sun, 6 Feb 2000 08:24:22 +0000 (08:24 +0000)
commiteaefae0ec35904e854d4f8a097fdb3e7c678aff8
treeb4662b68daf63cc7cf16c2fab569a5dde8daa2ea
parent1316f1f7fcb21e1f5c807f2a3a84f177674e0e5b
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
gcc/ChangeLog
gcc/cppfiles.c
gcc/cpphash.c
gcc/cpplib.c
gcc/testsuite/gcc.dg/lineno-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/strpaste.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/trigraphs.c [new file with mode: 0644]