summaryrefslogtreecommitdiffstats
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-20 10:29:22 +0000
committerbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-20 10:29:22 +0000
commit5ddef640bef4f1c6a0c15ce3b25a499eb8180bb0 (patch)
tree9ce1e3e1880ba47f3968473b011f4d1144753950 /gcc/cpplib.c
parenta4bf57aaa4b0e3c1f19cea4bbe4edab0b3131e25 (diff)
downloadppe42-gcc-5ddef640bef4f1c6a0c15ce3b25a499eb8180bb0.tar.gz
ppe42-gcc-5ddef640bef4f1c6a0c15ce3b25a499eb8180bb0.zip
Thu Aug 20 13:15:11 1998 Dave Brolley <brolley@cygnus.com>
* stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for arrays of bits. * cpplib.c (cpp_define): Handle macros with parameters. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21872 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 5b1034935ff..b9ded523c1d 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -534,6 +534,12 @@ cpp_define (pfile, str)
}
while (is_idchar[*++p])
;
+ if (*p == '(') {
+ while (is_idchar[*++p] || *p == ',' || is_hor_space[*p])
+ ;
+ if (*p++ != ')')
+ p = (U_CHAR *) str; /* Error */
+ }
if (*p == 0)
{
buf = (U_CHAR *) alloca (p - buf + 4);
OpenPOWER on IntegriCloud