(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 2903562b8ac53ca5ea2a4dea481e9a6e832d0c5d..fc5b64f5297d4cf5dd6c9d00597508cb5a482b5a 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);