OSDN Git Service

(handle_directive): Fix typo: '\' caused next char to be copied
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 1995 17:48:25 +0000 (17:48 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 1995 17:48:25 +0000 (17:48 +0000)
blindly, which was an error if !traditional and if the next char was
newline or one of <\'"/.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8804 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cccp.c

index d83fd98..a819ace 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;