diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-10-26 18:08:01 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-10-26 18:08:01 -0400 |
commit | a128ef196d60153366c16d24870fd066c32fd642 (patch) | |
tree | 0685975cf275c7b4761ae5a2655239b323c46c64 /gcc/cccp.c | |
parent | a78e7bc47f8682b4c98fd9b14d0b0eaf6fab5139 (diff) | |
download | gcc-a128ef196d60153366c16d24870fd066c32fd642.zip gcc-a128ef196d60153366c16d24870fd066c32fd642.tar.gz gcc-a128ef196d60153366c16d24870fd066c32fd642.tar.bz2 |
(handle_directive): Don't treat newline as white space when coalescing
white space around a backslash-newline.
From-SVN: r10519
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r-- | gcc/cccp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |