(make_definition): Enable `-D' with macro arguments.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 20 Sep 1994 21:55:33 +0000 (17:55 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 20 Sep 1994 21:55:33 +0000 (17:55 -0400)
From-SVN: r8104

gcc/cccp.c

index 2903562..fc5b64f 100644 (file)
@@ -9274,6 +9274,12 @@ make_definition (str, op)
   }
   while (is_idchar[*++p])
     ;
+  if (*p == '(') {
+    while (is_idchar[*++p] || *p == ',' || is_hor_space[*p])
+      ;
+    if (*p++ != ')')
+      p = str;                 /* Error */
+  }
   if (*p == 0) {
     buf = (U_CHAR *) alloca (p - buf + 4);
     strcpy ((char *)buf, str);