From bdf777e4a4ab6e2e988dc45c0bdd682f508f43de Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Wed, 9 Dec 1998 09:17:52 +0000 Subject: [PATCH] cccp.c (create_definition): Fix end of bufer logic. Wed Dec 9 12:15:26 1998 Dave Brolley * cccp.c (create_definition): Fix end of bufer logic. From-SVN: r24205 --- gcc/ChangeLog | 4 ++++ gcc/cccp.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aa4225a3aac..ac54c6630ff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Dec 9 12:15:26 1998 Dave Brolley + + * cccp.c (create_definition): Fix end of bufer logic. + Wed Dec 9 10:15:45 1998 Kaveh R. Ghazi * except.c (duplicate_eh_handlers, rethrow_symbol_map): Function diff --git a/gcc/cccp.c b/gcc/cccp.c index 8cbb1214ffd..ab3e8bfbe21 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -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; } -- 2.30.2