diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-10-26 22:08:01 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-10-26 22:08:01 +0000 |
commit | 1d512e80c079fdfcaf80c22d44f6f1efbd62294e (patch) | |
tree | 0685975cf275c7b4761ae5a2655239b323c46c64 /gcc/cccp.c | |
parent | 1cd9bc4692d82d108b5c64100b6c4cb83a211745 (diff) | |
download | gcc-1d512e80c079fdfcaf80c22d44f6f1efbd62294e.tar.gz |
(handle_directive): Don't treat newline as white space when coalescing
white space around a backslash-newline.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10519 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r-- | gcc/cccp.c | 8 |
1 files 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); } |