OSDN Git Service

(rescan): ".." no longer terminates a preprocessing number, since
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Oct 1994 22:39:55 +0000 (22:39 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Oct 1994 22:39:55 +0000 (22:39 +0000)
that's incompatible with the C standard.

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

gcc/cccp.c

index 7f3613d..5901f5f 100644 (file)
@@ -2934,9 +2934,7 @@ do { ip = &instack[indepth];              \
            ibp += 2;
          }
          c = *ibp++;
-         /* ".." terminates a preprocessing number.  This is useless for C
-            code but useful for preprocessing other things.  */
-         if (!isalnum (c) && (c != '.' || *ibp == '.') && c != '_') {
+         if (!is_idchar[c] && c != '.') {
            --ibp;
            break;
          }