83bab8db08
* Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o. (c-iterate.o): Remove target. * gcc/c-common.h (enum rid): Remove RID_ITERATOR. * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators. (finish_decl): Don't handle iterators. (grokdeclarator): Likewise. * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords. * gcc/c-gperf.h: Regenerated. * gcc/c-iterate.c: Removed. * gcc/c-lex.c (init_lex): Don't handle iterators. * gcc/c-parse.in (primary): Remove pop_iterator_stack call. (compstmt_primary_start): Remove push_iterator_stack call. (stmt): Don't allow iterator statements. Replace iterator_expand with expand_expr_stmt. (all_iter_stmt): Remove. (all_iter_stmt_simple): Likewise. (all_iter_stmt_with_decl): Likewise. * gcc/c-tree.h (ITERATOR_P): Remove. (ITERATOR_BOUND_P): Likewise. (init_iterators): Remove declaration. (iterator_expand): Likewise. (iterator_for_loop_start): Likewise. (iterator_for_loop_end): Likewise. (iterator_for_loop_record): Likewise. (push_iterator_stack): Likewise. (pop_iterator_stack): Likewise. * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P. (readonly_warning): Likewise. * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it. * Make-lang.in (cc1chill): Don't depend on c-iterate.o. * gcc.dg/noncompile/930622-2.c: Adjust error message. From-SVN: r35967
106 lines
2.8 KiB
Plaintext
106 lines
2.8 KiB
Plaintext
%{
|
|
/* Command-line: gperf -L C -F ', 0, 0' -p -j1 -i 1 -g -o -t -N is_reserved_word -k1,3,$ c-parse.gperf */
|
|
%}
|
|
struct resword { const char *name; short token; enum rid rid; };
|
|
#ifdef __GNUC__
|
|
__inline
|
|
#endif
|
|
static unsigned int hash PARAMS ((const char *, unsigned int));
|
|
#ifdef __GNUC__
|
|
__inline
|
|
#endif
|
|
struct resword *is_reserved_word PARAMS ((const char *, unsigned int));
|
|
%%
|
|
@class, CLASS, NORID
|
|
@compatibility_alias, ALIAS, NORID
|
|
@defs, DEFS, NORID
|
|
@encode, ENCODE, NORID
|
|
@end, END, NORID
|
|
@implementation, IMPLEMENTATION, NORID
|
|
@interface, INTERFACE, NORID
|
|
@private, PRIVATE, NORID
|
|
@protected, PROTECTED, NORID
|
|
@protocol, PROTOCOL, NORID
|
|
@public, PUBLIC, NORID
|
|
@selector, SELECTOR, NORID
|
|
__alignof, ALIGNOF, NORID
|
|
__alignof__, ALIGNOF, NORID
|
|
__asm, ASM_KEYWORD, NORID
|
|
__asm__, ASM_KEYWORD, NORID
|
|
__attribute, ATTRIBUTE, NORID
|
|
__attribute__, ATTRIBUTE, NORID
|
|
__bounded, TYPE_QUAL, RID_BOUNDED
|
|
__bounded__, TYPE_QUAL, RID_BOUNDED
|
|
__builtin_va_arg, VA_ARG, NORID
|
|
__complex, TYPESPEC, RID_COMPLEX
|
|
__complex__, TYPESPEC, RID_COMPLEX
|
|
__const, TYPE_QUAL, RID_CONST
|
|
__const__, TYPE_QUAL, RID_CONST
|
|
__extension__, EXTENSION, NORID
|
|
__imag, IMAGPART, NORID
|
|
__imag__, IMAGPART, NORID
|
|
__inline, SCSPEC, RID_INLINE
|
|
__inline__, SCSPEC, RID_INLINE
|
|
__label__, LABEL, NORID
|
|
__ptrbase, PTR_BASE, NORID
|
|
__ptrbase__, PTR_BASE, NORID
|
|
__ptrextent, PTR_EXTENT, NORID
|
|
__ptrextent__, PTR_EXTENT, NORID
|
|
__ptrvalue, PTR_VALUE, NORID
|
|
__ptrvalue__, PTR_VALUE, NORID
|
|
__real, REALPART, NORID
|
|
__real__, REALPART, NORID
|
|
__restrict, TYPE_QUAL, RID_RESTRICT
|
|
__restrict__, TYPE_QUAL, RID_RESTRICT
|
|
__signed, TYPESPEC, RID_SIGNED
|
|
__signed__, TYPESPEC, RID_SIGNED
|
|
__typeof, TYPEOF, NORID
|
|
__typeof__, TYPEOF, NORID
|
|
__unbounded, TYPE_QUAL, RID_UNBOUNDED
|
|
__unbounded__, TYPE_QUAL, RID_UNBOUNDED
|
|
__volatile, TYPE_QUAL, RID_VOLATILE
|
|
__volatile__, TYPE_QUAL, RID_VOLATILE
|
|
asm, ASM_KEYWORD, NORID
|
|
auto, SCSPEC, RID_AUTO
|
|
break, BREAK, NORID
|
|
bycopy, TYPE_QUAL, RID_BYCOPY
|
|
byref, TYPE_QUAL, RID_BYREF
|
|
case, CASE, NORID
|
|
char, TYPESPEC, RID_CHAR
|
|
const, TYPE_QUAL, RID_CONST
|
|
continue, CONTINUE, NORID
|
|
default, DEFAULT, NORID
|
|
do, DO, NORID
|
|
double, TYPESPEC, RID_DOUBLE
|
|
else, ELSE, NORID
|
|
enum, ENUM, NORID
|
|
extern, SCSPEC, RID_EXTERN
|
|
float, TYPESPEC, RID_FLOAT
|
|
for, FOR, NORID
|
|
goto, GOTO, NORID
|
|
id, OBJECTNAME, RID_ID
|
|
if, IF, NORID
|
|
in, TYPE_QUAL, RID_IN
|
|
inout, TYPE_QUAL, RID_INOUT
|
|
inline, SCSPEC, RID_INLINE
|
|
int, TYPESPEC, RID_INT
|
|
long, TYPESPEC, RID_LONG
|
|
oneway, TYPE_QUAL, RID_ONEWAY
|
|
out, TYPE_QUAL, RID_OUT
|
|
register, SCSPEC, RID_REGISTER
|
|
restrict, TYPE_QUAL, RID_RESTRICT
|
|
return, RETURN, NORID
|
|
short, TYPESPEC, RID_SHORT
|
|
signed, TYPESPEC, RID_SIGNED
|
|
sizeof, SIZEOF, NORID
|
|
static, SCSPEC, RID_STATIC
|
|
struct, STRUCT, NORID
|
|
switch, SWITCH, NORID
|
|
typedef, SCSPEC, RID_TYPEDEF
|
|
typeof, TYPEOF, NORID
|
|
union, UNION, NORID
|
|
unsigned, TYPESPEC, RID_UNSIGNED
|
|
void, TYPESPEC, RID_VOID
|
|
volatile, TYPE_QUAL, RID_VOLATILE
|
|
while, WHILE, NORID
|