From a128ef196d60153366c16d24870fd066c32fd642 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 26 Oct 1995 18:08:01 -0400 Subject: [PATCH] (handle_directive): Don't treat newline as white space when coalescing white space around a backslash-newline. From-SVN: r10519 --- gcc/cccp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/cccp.c b/gcc/cccp.c index 64f5f757b40..39f1a5ae7c8 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -3938,11 +3938,11 @@ handle_directive (ip, op) if (*xp == '\n') { xp++; cp--; - if (cp != buf && is_space[cp[-1]]) { - while (cp != buf && is_space[cp[-1]]) cp--; - cp++; + if (cp != buf && is_hor_space[cp[-1]]) { + while (cp - 1 != buf && is_hor_space[cp[-2]]) + cp--; SKIP_WHITE_SPACE (xp); - } else if (is_space[*xp]) { + } else if (is_hor_space[*xp]) { *cp++ = *xp++; SKIP_WHITE_SPACE (xp); } -- 2.30.2