aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@cygnus.com>1998-08-20 10:29:22 +0000
committerDave Brolley <brolley@gcc.gnu.org>1998-08-20 06:29:22 -0400
commit7771032e793152b7bb0ab1a9606e0d7383f8dcde (patch)
tree9ce1e3e1880ba47f3968473b011f4d1144753950 /gcc/cpplib.c
parentee712d650b2b85b90fea38107993dde469f9a708 (diff)
downloadgcc-7771032e793152b7bb0ab1a9606e0d7383f8dcde.zip
gcc-7771032e793152b7bb0ab1a9606e0d7383f8dcde.tar.gz
gcc-7771032e793152b7bb0ab1a9606e0d7383f8dcde.tar.bz2
stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for arrays of bits.
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. From-SVN: r21872
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 5b10349..b9ded52 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);