summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/cp/hash.h
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-03 21:37:38 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-03-03 21:37:38 +0000
commitc826e751760901de543f4640467e3a08df7f49bf (patch)
tree6a2323a78664ba45b78df1709ff3cc077db63ccd /gnu/usr.bin/gcc/cp/hash.h
parenta4511fe6a5dc69a771b5ffdf64ba574c959cf37d (diff)
GCC 2.8.0 merge
Diffstat (limited to 'gnu/usr.bin/gcc/cp/hash.h')
-rw-r--r--gnu/usr.bin/gcc/cp/hash.h226
1 files changed, 115 insertions, 111 deletions
diff --git a/gnu/usr.bin/gcc/cp/hash.h b/gnu/usr.bin/gcc/cp/hash.h
index 4848aba4775..720890fd4c8 100644
--- a/gnu/usr.bin/gcc/cp/hash.h
+++ b/gnu/usr.bin/gcc/cp/hash.h
@@ -1,14 +1,13 @@
/* C code produced by gperf version 2.5 (GNU C++ version) */
-/* Command-line: gperf -p -j1 -g -o -t -N is_reserved_word -k1,4,7,$ ../../../devo/gcc/cp/gxx.gperf */
-/* Command-line: gperf -p -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gplus.gperf */
+/* Command-line: gperf -p -j1 -g -o -t -N is_reserved_word -k1,4,$,7 gxx.gperf */
struct resword { char *name; short token; enum rid rid;};
-#define TOTAL_KEYWORDS 97
+#define TOTAL_KEYWORDS 103
#define MIN_WORD_LENGTH 2
#define MAX_WORD_LENGTH 16
#define MIN_HASH_VALUE 4
-#define MAX_HASH_VALUE 219
-/* maximum key range = 216, duplicates = 0 */
+#define MAX_HASH_VALUE 195
+/* maximum key range = 192, duplicates = 0 */
#ifdef __GNUC__
inline
@@ -20,19 +19,19 @@ hash (str, len)
{
static unsigned char asso_values[] =
{
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
- 220, 220, 220, 220, 220, 0, 220, 88, 16, 19,
- 52, 0, 9, 72, 1, 77, 220, 0, 0, 38,
- 13, 44, 38, 30, 27, 57, 1, 14, 0, 2,
- 2, 7, 220, 220, 220, 220, 220, 220,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
+ 196, 196, 196, 196, 196, 0, 196, 80, 26, 28,
+ 44, 0, 49, 38, 6, 81, 196, 2, 0, 41,
+ 16, 47, 4, 31, 32, 5, 6, 62, 20, 96,
+ 17, 25, 196, 196, 196, 196, 196, 196,
};
register int hval = len;
@@ -49,6 +48,7 @@ hash (str, len)
case 2:
case 1:
hval += asso_values[str[0]];
+ break;
}
return hval + asso_values[str[len - 1]];
}
@@ -65,144 +65,148 @@ is_reserved_word (str, len)
{
{"",}, {"",}, {"",}, {"",},
{"else", ELSE, NORID,},
+ {"",},
+ {"__real", REALPART, NORID},
+ {"",},
+ {"__real__", REALPART, NORID},
+ {"",},
{"true", CXX_TRUE, NORID,},
{"",},
- {"while", WHILE, NORID,},
- {"virtual", SCSPEC, RID_VIRTUAL,},
- {"",}, {"",},
- {"try", TRY, NORID,},
- {"",}, {"",}, {"",}, {"",},
- {"typeof", TYPEOF, NORID,},
- {"not", '!', NORID,},
- {"new", NEW, NORID,},
+ {"__asm__", GCC_ASM_KEYWORD, NORID},
+ {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
+ {"this", THIS, NORID,},
+ {"",},
{"extern", SCSPEC, RID_EXTERN,},
- {"bool", TYPESPEC, RID_BOOL,},
- {"",}, {"",},
- {"case", CASE, NORID,},
- {"__alignof__", ALIGNOF, NORID},
+ {"switch", SWITCH, NORID,},
+ {"template", TEMPLATE, RID_TEMPLATE,},
+ {"not", '!', NORID,},
{"",},
- {"typedef", SCSPEC, RID_TYPEDEF,},
+ {"__alignof__", ALIGNOF, NORID},
+ {"static_cast", STATIC_CAST, NORID,},
{"",},
- {"__extension__", EXTENSION, NORID},
+ {"bool", TYPESPEC, RID_BOOL,},
+ {"private", VISSPEC, RID_PRIVATE,},
+ {"case", CASE, NORID,},
+ {"virtual", SCSPEC, RID_VIRTUAL,},
+ {"try", TRY, NORID,},
{"",}, {"",},
- {"__alignof", ALIGNOF, NORID},
- {"xor", '^', NORID,},
+ {"compl", '~', NORID,},
+ {"public", VISSPEC, RID_PUBLIC,},
{"",},
{"__inline", SCSPEC, RID_INLINE},
{"",},
{"__inline__", SCSPEC, RID_INLINE},
+ {"class", AGGR, RID_CLASS,},
+ {"const", CV_QUALIFIER, RID_CONST,},
+ {"static", SCSPEC, RID_STATIC,},
+ {"__extension__", EXTENSION, NORID},
{"",},
+ {"short", TYPESPEC, RID_SHORT,},
+ {"__imag__", IMAGPART, NORID},
+ {"delete", DELETE, NORID,},
+ {"__asm", GCC_ASM_KEYWORD, NORID},
+ {"xor", '^', NORID,},
+ {"not_eq", EQCOMPARE, NORID,},
{"xor_eq", ASSIGN, NORID,},
- {"for", FOR, NORID,},
- {"",}, {"",},
- {"continue", CONTINUE, NORID,},
- {"",},
- {"catch", CATCH, NORID,},
- {"private", VISSPEC, RID_PRIVATE,},
- {"",},
{"typename", TYPENAME_KEYWORD, NORID,},
- {"template", TEMPLATE, RID_TEMPLATE,},
- {"not_eq", EQCOMPARE, NORID,},
- {"",}, {"",},
- {"throw", THROW, NORID,},
- {"__const", TYPE_QUAL, RID_CONST},
- {"__const__", TYPE_QUAL, RID_CONST},
- {"__volatile", TYPE_QUAL, RID_VOLATILE},
- {"__wchar_t", TYPESPEC, RID_WCHAR /* Unique to ANSI C++ */,},
- {"__volatile__", TYPE_QUAL, RID_VOLATILE},
- {"delete", DELETE, NORID,},
{"typeid", TYPEID, NORID,},
- {"return", RETURN, NORID,},
- {"__typeof__", TYPEOF, NORID},
- {"compl", '~', NORID,},
- {"public", VISSPEC, RID_PUBLIC,},
- {"__asm__", GCC_ASM_KEYWORD, NORID},
- {"switch", SWITCH, NORID,},
- {"",},
- {"friend", SCSPEC, RID_FRIEND,},
- {"__typeof", TYPEOF, NORID},
{"",},
- {"static_cast", STATIC_CAST, NORID,},
+ {"__complex__", TYPESPEC, RID_COMPLEX},
{"false", CXX_FALSE, NORID,},
{"sizeof", SIZEOF, NORID,},
- {"or", OROR, NORID,},
+ {"typeof", TYPEOF, NORID,},
+ {"__const__", CV_QUALIFIER, RID_CONST},
+ {"__volatile", CV_QUALIFIER, RID_VOLATILE},
+ {"",},
+ {"__volatile__", CV_QUALIFIER, RID_VOLATILE},
+ {"__const", CV_QUALIFIER, RID_CONST},
+ {"catch", CATCH, NORID,},
+ {"__null", CONSTANT, RID_NULL},
+ {"protected", VISSPEC, RID_PROTECTED,},
+ {"",},
+ {"signed", TYPESPEC, RID_SIGNED,},
+ {"",},
+ {"__complex", TYPESPEC, RID_COMPLEX},
+ {"__alignof", ALIGNOF, NORID},
+ {"__wchar_t", TYPESPEC, RID_WCHAR /* Unique to ANSI C++ */,},
{"double", TYPESPEC, RID_DOUBLE,},
+ {"const_cast", CONST_CAST, NORID,},
{"",},
- {"union", AGGR, RID_UNION,},
- {"char", TYPESPEC, RID_CHAR,},
{"struct", AGGR, RID_RECORD,},
+ {"long", TYPESPEC, RID_LONG,},
+ {"or", OROR, NORID,},
+ {"__typeof__", TYPEOF, NORID},
{"or_eq", ASSIGN, NORID,},
+ {"for", FOR, NORID,},
+ {"__imag", IMAGPART, NORID},
{"enum", ENUM, NORID,},
+ {"",}, {"",},
+ {"__label__", LABEL, NORID},
{"int", TYPESPEC, RID_INT,},
- {"const", TYPE_QUAL, RID_CONST,},
- {"static", SCSPEC, RID_STATIC,},
- {"reinterpret_cast", REINTERPRET_CAST, NORID,},
- {"",},
- {"explicit", SCSPEC, RID_EXPLICIT,},
{"__signed__", TYPESPEC, RID_SIGNED},
- {"if", IF, NORID,},
- {"__attribute", ATTRIBUTE, NORID},
- {"short", TYPESPEC, RID_SHORT,},
- {"__attribute__", ATTRIBUTE, NORID},
- {"bitor", '|', NORID,},
{"signature", AGGR, RID_SIGNATURE /* Extension */,},
- {"",},
- {"__sigof__", SIGOF, NORID /* Extension */,},
- {"volatile", TYPE_QUAL, RID_VOLATILE,},
- {"__label__", LABEL, NORID},
{"do", DO, NORID,},
{"",},
- {"__asm", GCC_ASM_KEYWORD, NORID},
- {"protected", VISSPEC, RID_PROTECTED,},
+ {"explicit", SCSPEC, RID_EXPLICIT,},
+ {"char", TYPESPEC, RID_CHAR,},
{"",},
- {"float", TYPESPEC, RID_FLOAT,},
- {"using", USING, NORID,},
+ {"__attribute", ATTRIBUTE, NORID},
+ {"friend", SCSPEC, RID_FRIEND,},
+ {"__attribute__", ATTRIBUTE, NORID},
+ {"while", WHILE, NORID,},
+ {"reinterpret_cast", REINTERPRET_CAST, NORID,},
{"",},
- {"const_cast", CONST_CAST, NORID,},
+ {"continue", CONTINUE, NORID,},
+ {"namespace", NAMESPACE, NORID,},
+ {"sigof", SIGOF, NORID /* Extension */,},
+ {"",},
+ {"volatile", CV_QUALIFIER, RID_VOLATILE,},
{"",},
+ {"bitor", '|', NORID,},
+ {"typedef", SCSPEC, RID_TYPEDEF,},
{"void", TYPESPEC, RID_VOID,},
{"break", BREAK, NORID,},
- {"namespace", NAMESPACE, NORID,},
- {"",}, {"",}, {"",}, {"",},
- {"sigof", SIGOF, NORID /* Extension */,},
- {"",}, {"",}, {"",},
- {"this", THIS, NORID,},
- {"",}, {"",}, {"",}, {"",},
+ {"",},
+ {"new", NEW, NORID,},
+ {"return", RETURN, NORID,},
{"and_eq", ASSIGN, NORID,},
{"",}, {"",}, {"",},
- {"signed", TYPESPEC, RID_SIGNED,},
+ {"using", USING, NORID,},
+ {"",}, {"",},
{"asm", ASM_KEYWORD, NORID,},
- {"",}, {"",}, {"",},
+ {"",}, {"",},
+ {"and", ANDAND, NORID,},
{"mutable", SCSPEC, RID_MUTABLE,},
- {"",}, {"",}, {"",},
+ {"__typeof", TYPEOF, NORID},
+ {"union", AGGR, RID_UNION,},
+ {"",},
+ {"if", IF, NORID,},
{"__signed", TYPESPEC, RID_SIGNED},
- {"class", AGGR, RID_CLASS,},
- {"register", SCSPEC, RID_REGISTER,},
- {"",}, {"",}, {"",},
- {"and", ANDAND, NORID,},
- {"",}, {"",}, {"",}, {"",},
- {"long", TYPESPEC, RID_LONG,},
+ {"",}, {"",},
+ {"goto", GOTO, NORID,},
+ {"",}, {"",},
+ {"__sigof__", SIGOF, NORID /* Extension */,},
+ {"float", TYPESPEC, RID_FLOAT,},
+ {"",}, {"",},
{"default", DEFAULT, NORID,},
- {"operator", OPERATOR, NORID,},
- {"unsigned", TYPESPEC, RID_UNSIGNED,},
- {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
- {"inline", SCSPEC, RID_INLINE,},
+ {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
+ {"register", SCSPEC, RID_REGISTER,},
+ {"throw", THROW, NORID,},
{"",},
{"bitand", '&', NORID,},
+ {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
+ {"operator", OPERATOR, NORID,},
+ {"",},
+ {"inline", SCSPEC, RID_INLINE,},
{"",},
- {"goto", GOTO, NORID,},
- {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"dynamic_cast", DYNAMIC_CAST, NORID,},
- {"",}, {"",}, {"",}, {"",}, {"",},
+ {"",}, {"",}, {"",},
{"__signature__", AGGR, RID_SIGNATURE /* Extension */,},
- {"",},
+ {"",}, {"",}, {"",},
{"auto", SCSPEC, RID_AUTO,},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
- {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
- {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
- {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
- {"",}, {"",},
- {"overload", OVERLOAD, NORID,},
+ {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
+ {"unsigned", TYPESPEC, RID_UNSIGNED,},
};
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)