(handle_directive): Fix typo...
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 25 Jan 1995 17:48:25 +0000 (12:48 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 25 Jan 1995 17:48:25 +0000 (12:48 -0500)
(handle_directive): Fix typo: '\' caused next char to be copied
blindly, which was an error if !traditional and if the next char was
newline or one of <\'"/.

From-SVN: r8804

gcc/cccp.c

index d83fd98026c536f9acf75a0467e156487287a991..a819ace2c210f1869cb61accd266094fe6a2cdb1 100644 (file)
@@ -3740,7 +3740,7 @@ handle_directive (ip, op)
                *cp++ = *xp++;
                SKIP_WHITE_SPACE (xp);
              }
-           } else {
+           } else if (traditional && xp < bp) {
              *cp++ = *xp++;
            }
            break;