From a957c7944d610aed6f0be44d8716ba338daab3f6 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 7 Sep 1994 19:31:32 -0400 Subject: [PATCH] (handle_directive): In `#include ' directives, remove backslash-newline properly. (handle_directive): In `#include ' directives, remove backslash-newline properly. Don't allow any other newlines. From-SVN: r8036 --- gcc/cccp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/cccp.c b/gcc/cccp.c index bcc0edc6d74..bd83ebf16b5 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -3608,7 +3608,14 @@ handle_directive (ip, op) case '<': if (!kt->angle_brackets) break; - while (*bp && *bp != '>') bp++; + while (bp < limit && *bp != '>' && *bp != '\n') { + if (*bp == '\\' && bp[1] == '\n') { + ip->lineno++; + copy_command = 1; + bp++; + } + bp++; + } break; case '/': -- 2.30.2