d3707adb79
* builtins.c (expand_builtin_saveregs): Remove static, remove exp and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS. (expand_builtin_next_arg): Accept ARGLIST not EXP. (stabilize_va_list): New function. (std_expand_builtin_va_start): New function. (expand_builtin_va_start): New function. (get_varargs_alias_set): New function. (std_expand_builtin_va_arg): New function. (expand_builtin_va_arg): New function. (expand_builtin_va_end): New function. (expand_builtin_va_copy): New function. (expand_builtin): Call them. * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list, __builtin_{varargs_start,stdarg_start,end,copy}. (build_va_arg): New function. * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete. (build_va_arg): Declare. * c-decl.c (ptr_type_node, va_list_type_node): New. * c-parse.gperf (__builtin_va_arg): New. * c-parse.in (VA_ARG): New token. (unary_expr): Recognize it. * expr.c (expand_expr): Expand VA_ARG_EXPR. * expr.h (std_expand_builtin_va_start): Declare. (std_expand_builtin_va_arg): Declare. (expand_builtin_va_arg): Declare. (get_varargs_alias_set): Declare. * tree.def (VA_ARG_EXPR): New. * tree.h (BUILT_IN_VARARGS_START): New. (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New. (ptr_type_node, va_list_type_node): Declare. * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument. * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise. * m88k.h, m88k.c: Likewise. * mn10300.h, mn10300.c: Likewise. * pa.h, pa.c: Likewise. * rs6000.h, rs6000.c: Likewise. * sh.h, sh.c: Likewise. * sparc.h, sparc.c: Likewise. * emit-rtl.c (operand_subword): Copy alias set. (change_address): Likewise. From-SVN: r28243
90 lines
2.4 KiB
Plaintext
90 lines
2.4 KiB
Plaintext
%{
|
|
/* Command-line: gperf -L KR-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; };
|
|
%%
|
|
@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
|
|
__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
|
|
__iterator, SCSPEC, RID_ITERATOR
|
|
__iterator__, SCSPEC, RID_ITERATOR
|
|
__label__, LABEL, 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
|
|
__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
|