projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cbc7b0
)
(make_definition): Enable `-D' with macro arguments.
author
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 20 Sep 1994 21:55:33 +0000
(17:55 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 20 Sep 1994 21:55:33 +0000
(17:55 -0400)
From-SVN: r8104
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index 2903562b8ac53ca5ea2a4dea481e9a6e832d0c5d..fc5b64f5297d4cf5dd6c9d00597508cb5a482b5a 100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-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);