OSDN Git Service

(handle_directive): Don't treat newline as white space when coalescing
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Oct 1995 22:08:01 +0000 (22:08 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Oct 1995 22:08:01 +0000 (22:08 +0000)
white space around a backslash-newline.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10519 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cccp.c

index 64f5f75..39f1a5a 100644 (file)
@@ -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);
              }