From 2e420a17f71d3bceba073f34cdfd402dbcecdb7a Mon Sep 17 00:00:00 2001
From: Richard Kenner <kenner@gcc.gnu.org>
Date: Wed, 25 Jan 1995 12:48:25 -0500
Subject: [PATCH] (handle_directive): Fix typo...

(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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cccp.c b/gcc/cccp.c
index d83fd98026c5..a819ace2c210 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -3740,7 +3740,7 @@ handle_directive (ip, op)
 		*cp++ = *xp++;
 		SKIP_WHITE_SPACE (xp);
 	      }
-	    } else {
+	    } else if (traditional && xp < bp) {
 	      *cp++ = *xp++;
 	    }
 	    break;
-- 
GitLab