diff options
author | Neil Booth <neilb@earthling.net> | 2000-07-04 22:26:16 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-07-04 22:26:16 +0000 |
commit | 043afb2a089d22e59dd0a6e9d4bb2ca3aa342432 (patch) | |
tree | 817777257373fdb5986b614252de7d6ef1b8ad5b /gcc/cpplex.c | |
parent | d2c1325af0ee17d224af50909f0dbcc70526b98d (diff) | |
download | gcc-043afb2a089d22e59dd0a6e9d4bb2ca3aa342432.zip gcc-043afb2a089d22e59dd0a6e9d4bb2ca3aa342432.tar.gz gcc-043afb2a089d22e59dd0a6e9d4bb2ca3aa342432.tar.bz2 |
cpplex.c: Fix trigraph replacement within strings.
* cpplex.c: Fix trigraph replacement within strings.
* gcc.dg/cpp/lexident.c, gcc.dg/cpp/lexnum.c,
gcc.dg/cpp/lexstrng.c: New tests.
From-SVN: r34868
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index a45336d..b0fba65 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -853,7 +853,7 @@ trigraph_replace (pfile, src, limit) /* Starting with src[1], find two consecutive '?'. The case of no trigraphs is streamlined. */ - for (; src + 1 < limit; src += 2) + for (src++; src + 1 < limit; src += 2) { if (src[0] != '?') continue; |