aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplex.c
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-07-04 22:26:16 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-07-04 22:26:16 +0000
commit043afb2a089d22e59dd0a6e9d4bb2ca3aa342432 (patch)
tree817777257373fdb5986b614252de7d6ef1b8ad5b /gcc/cpplex.c
parentd2c1325af0ee17d224af50909f0dbcc70526b98d (diff)
downloadgcc-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.c2
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;