diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-06 08:24:22 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-06 08:24:22 +0000 |
commit | ecb68251ec372b2b6971d4875bd1548978dbc058 (patch) | |
tree | b4662b68daf63cc7cf16c2fab569a5dde8daa2ea /gcc/cppfiles.c | |
parent | 08c74ec4b319bc6e5092b9a0385270b87d06d7dd (diff) | |
download | ppe42-gcc-ecb68251ec372b2b6971d4875bd1548978dbc058.tar.gz ppe42-gcc-ecb68251ec372b2b6971d4875bd1548978dbc058.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31819 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } } |