summaryrefslogtreecommitdiff
path: root/gcc/scan-decls.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-11 17:03:02 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-11 17:03:02 +0000
commitc872ef7190b3a6b3d927c3839779e0db9522dab3 (patch)
treee90d5520b9c1823e81bce2ff5b7c937da9575bc8 /gcc/scan-decls.c
parentcf2b989a4f0cfa4e2382587c5208b68e367694fc (diff)
downloadgcc-c872ef7190b3a6b3d927c3839779e0db9522dab3.tar.gz
* Makefile.in: Exterminate all references to assert.h.
* cross-make: Likewise. * assert.h: Delete. * configure.in: Correct commentary. * configure: Regenerate. * po/POTFILES.in: Remove assert.h. * libgcc-std.ver, libgcc2.c, libgcc2.h, sys-protos.h: Remove __eprintf. * config/t-freebsd, config/t-linux, config/t-linux-aout, config/t-netbsd, config/t-rtems, config/x-linux, config/i386/t-beos, config/mcore/t-mcore, config/mcore/t-mcore-pe: No need to override INSTALL_ASSERT_H. * fixinc/fixinc.dgux, fixinc/fixinc.interix, fixinc/fixinc.ptx, fixinc/fixinc.svr4, fixinc/fixinc.winnt, fixinc/fixinc.wrap, fixinc/fixincl.sh: Don't install assert.h into objdir/include. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41972 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/scan-decls.c')
-rw-r--r--gcc/scan-decls.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/scan-decls.c b/gcc/scan-decls.c
index 55f10abb8d6..336ced71889 100644
--- a/gcc/scan-decls.c
+++ b/gcc/scan-decls.c
@@ -187,8 +187,12 @@ scan_decls (pfile, argc, argv)
skip_to_closing_brace (pfile);
goto new_statement;
}
- if (token.type == CPP_SEMICOLON)
- goto new_statement;
+
+ /* skip a possible __attribute__ or throw expression after the
+ parameter list */
+ while (token.type != CPP_SEMICOLON && token.type != CPP_EOF)
+ cpp_get_token (pfile, &token);
+ goto new_statement;
}
break;
case CPP_NAME: