diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 7a907941788..6b73ad34e4d 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -357,11 +357,9 @@ cpp_reader *pfile; else max_chars = MAX_LONG_TYPE_SIZE / width; - while (1) + ++ptr; + while (ptr < tok_end && ((c = *ptr++) != '\'')) { - if (ptr >= CPP_PWRITTEN (pfile) || (c = *ptr++) == '\'') - break; - if (c == '\\') { c = cpp_parse_escape (pfile, &ptr);