cccp.c (create_definition): Fix end of bufer logic.
authorDave Brolley <brolley@cygnus.com>
Wed, 9 Dec 1998 09:17:52 +0000 (09:17 +0000)
committerDave Brolley <brolley@gcc.gnu.org>
Wed, 9 Dec 1998 09:17:52 +0000 (04:17 -0500)
Wed Dec  9 12:15:26 1998  Dave Brolley  <brolley@cygnus.com>
* cccp.c (create_definition): Fix end of bufer logic.

From-SVN: r24205

gcc/ChangeLog
gcc/cccp.c

index aa4225a3aac26eb4e1c627b6c86a9a29fb3b7ec4..ac54c6630ffb313acd4be25b6898ce5336f7b956 100644 (file)
@@ -1,3 +1,7 @@
+Wed Dec  9 12:15:26 1998  Dave Brolley  <brolley@cygnus.com>
+
+       * cccp.c (create_definition): Fix end of bufer logic.
+
 Wed Dec  9 10:15:45 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * except.c (duplicate_eh_handlers, rethrow_symbol_map): Function
index 8cbb1214ffdee6dcac815ca0cc905c2be48836ba..ab3e8bfbe21207228274789f343bac267d2e72b0 100644 (file)
@@ -5878,8 +5878,8 @@ create_definition (buf, limit, op)
        SKIP_WHITE_SPACE (bp);
        /* A comma at this point can only be followed by an identifier.  */
        if (!is_idstart[*bp]
-           && (c9x && limit - bp <= (long) REST_EXTENSION_LENGTH
-               ||  bcmp (rest_extension, bp, REST_EXTENSION_LENGTH) != 0)) {
+           && !(c9x && limit - bp > (long) REST_EXTENSION_LENGTH
+               &&  bcmp (rest_extension, bp, REST_EXTENSION_LENGTH) == 0)) {
          error ("badly punctuated parameter list in `#define'");
          goto nope;
        }