Commit 7a50f126 by Jim Wilson Committed by Jim Wilson

Don't accept GNU C macro varargs extension when pedantic.

	* cccp.c (create_definition): If pedantic, call pedwarn for macro
	varargs feature.

From-SVN: r18522
parent 57dbca5e
Thu Mar 12 14:47:14 1998 Jim Wilson <wilson@cygnus.com>
* cccp.c (create_definition): If pedantic, call pedwarn for macro
varargs feature.
Thu Mar 12 13:43:25 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE> Thu Mar 12 13:43:25 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
* i386.c (ix86_logical_operator): New function. * i386.c (ix86_logical_operator): New function.
......
...@@ -5565,6 +5565,8 @@ create_definition (buf, limit, op) ...@@ -5565,6 +5565,8 @@ create_definition (buf, limit, op)
/* do we have a "special" rest-args extension here? */ /* do we have a "special" rest-args extension here? */
if (limit - bp > REST_EXTENSION_LENGTH if (limit - bp > REST_EXTENSION_LENGTH
&& bcmp (rest_extension, bp, REST_EXTENSION_LENGTH) == 0) { && bcmp (rest_extension, bp, REST_EXTENSION_LENGTH) == 0) {
if (pedantic && !instack[indepth].system_header_p)
pedwarn ("ANSI C does not allow macro with variable arguments");
rest_args = 1; rest_args = 1;
temp->rest_args = 1; temp->rest_args = 1;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment