diff options
author | Mark Mitchell <mark@codesourcery.com> | 1999-05-21 15:55:56 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-05-21 15:55:56 +0000 |
commit | adecb3f41f0bb582c936e2be5fda659a611067ca (patch) | |
tree | 4e92434070d5a41b4f55d72fcc9bd86c081920ec /gcc/cp/hash.h | |
parent | 7133357a34e813233a8b949ac335e9521c8b8270 (diff) | |
download | gcc-adecb3f41f0bb582c936e2be5fda659a611067ca.zip gcc-adecb3f41f0bb582c936e2be5fda659a611067ca.tar.gz gcc-adecb3f41f0bb582c936e2be5fda659a611067ca.tar.bz2 |
Make-lang.in (cc1plus): Make it depend on gxx.gperf.
* Make-lang.in (cc1plus): Make it depend on gxx.gperf.
* cp-tree.h: Fix typo in documentation on pointers-to-members.
(cp_build_qualified_type): Make it a macro.
(cp_build_qualified_type_real): Declare.
* decl.c (grokdeclarator): Remove misleading comment. Avoid
problem with template parameters and restrict-qualification.
* gxx.gperf: Replace NORID with RID_UNUSED throughout.
* hash.h: Regenerated.
* lex.h (rid): Move RID_FIRST_MODIFIER and RID_LAST_MODIFIER into
the enumeration.
(NORID): Remove definition.
* pt.c (tsubst_aggr_type): Use cp_build_qualified_type_real.
(tsubst): Likewise. Remove special handling for FUNCTION_TYPEs.
(fn_type_unification): Check that the function type resulting from
the deduction is legal.
(check_cv_quals_for_unify): Don't handle FUNCTION_TYPEs specially.
(unify): Use cp_build_qualified_type_real.
* tree.c (build_cplus_array_type_1): Handle error_marks as inputs.
(cp_build_qualified_type): Rename to ...
(cp_build_qualified_type_real): Add additional COMPLAIN parameter
and modify appropriately.
Co-Authored-By: Nathan Sidwell <nathan@acm.org>
From-SVN: r27086
Diffstat (limited to 'gcc/cp/hash.h')
-rw-r--r-- | gcc/cp/hash.h | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/gcc/cp/hash.h b/gcc/cp/hash.h index 3c61996..b7db192 100644 --- a/gcc/cp/hash.h +++ b/gcc/cp/hash.h @@ -78,16 +78,16 @@ is_reserved_word (str, len) static struct resword wordlist[] = { {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, - {"else", ELSE, NORID,}, + {"else", ELSE, RID_UNUSED,}, {"", 0, 0}, - {"delete", DELETE, NORID,}, - {"case", CASE, NORID,}, - {"__real__", REALPART, NORID}, + {"delete", DELETE, RID_UNUSED,}, + {"case", CASE, RID_UNUSED,}, + {"__real__", REALPART, RID_UNUSED}, {"", 0, 0}, - {"true", CXX_TRUE, NORID,}, - {"catch", CATCH, NORID,}, - {"typeid", TYPEID, NORID,}, - {"try", TRY, NORID,}, + {"true", CXX_TRUE, RID_UNUSED,}, + {"catch", CATCH, RID_UNUSED,}, + {"typeid", TYPEID, RID_UNUSED,}, + {"try", TRY, RID_UNUSED,}, {"", 0, 0}, {"", 0, 0}, {"void", TYPESPEC, RID_VOID,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, @@ -96,23 +96,23 @@ is_reserved_word (str, len) {"protected", VISSPEC, RID_PROTECTED,}, {"extern", SCSPEC, RID_EXTERN,}, {"", 0, 0}, {"", 0, 0}, - {"not", '!', NORID,}, + {"not", '!', RID_UNUSED,}, {"", 0, 0}, {"__signed", TYPESPEC, RID_SIGNED}, {"int", TYPESPEC, RID_INT,}, {"__signed__", TYPESPEC, RID_SIGNED}, - {"__real", REALPART, NORID}, + {"__real", REALPART, RID_UNUSED}, {"", 0, 0}, - {"xor_eq", ASSIGN, NORID,}, + {"xor_eq", ASSIGN, RID_UNUSED,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, - {"__attribute", ATTRIBUTE, NORID}, - {"__asm__", ASM_KEYWORD, NORID}, - {"__attribute__", ATTRIBUTE, NORID}, - {"compl", '~', NORID,}, + {"__attribute", ATTRIBUTE, RID_UNUSED}, + {"__asm__", ASM_KEYWORD, RID_UNUSED}, + {"__attribute__", ATTRIBUTE, RID_UNUSED}, + {"compl", '~', RID_UNUSED,}, {"public", VISSPEC, RID_PUBLIC,}, - {"not_eq", EQCOMPARE, NORID,}, - {"switch", SWITCH, NORID,}, - {"__extension__", EXTENSION, NORID}, + {"not_eq", EQCOMPARE, RID_UNUSED,}, + {"switch", SWITCH, RID_UNUSED,}, + {"__extension__", EXTENSION, RID_UNUSED}, {"const", CV_QUALIFIER, RID_CONST,}, {"static", SCSPEC, RID_STATIC,}, {"", 0, 0}, @@ -121,77 +121,77 @@ is_reserved_word (str, len) {"__inline__", SCSPEC, RID_INLINE}, {"__restrict__", CV_QUALIFIER, RID_RESTRICT}, {"inline", SCSPEC, RID_INLINE,}, - {"const_cast", CONST_CAST, NORID,}, - {"static_cast", STATIC_CAST, NORID,}, + {"const_cast", CONST_CAST, RID_UNUSED,}, + {"static_cast", STATIC_CAST, RID_UNUSED,}, {"__restrict", CV_QUALIFIER, RID_RESTRICT}, - {"xor", '^', NORID,}, + {"xor", '^', RID_UNUSED,}, {"__wchar_t", TYPESPEC, RID_WCHAR /* Unique to ANSI C++ */,}, - {"new", NEW, NORID,}, - {"__alignof__", ALIGNOF, NORID}, + {"new", NEW, RID_UNUSED,}, + {"__alignof__", ALIGNOF, RID_UNUSED}, {"signed", TYPESPEC, RID_SIGNED,}, - {"and", ANDAND, NORID,}, + {"and", ANDAND, RID_UNUSED,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"explicit", SCSPEC, RID_EXPLICIT,}, {"", 0, 0}, - {"__imag__", IMAGPART, NORID}, - {"while", WHILE, NORID,}, + {"__imag__", IMAGPART, RID_UNUSED}, + {"while", WHILE, RID_UNUSED,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, - {"do", DO, NORID,}, - {"typename", TYPENAME_KEYWORD, NORID,}, + {"do", DO, RID_UNUSED,}, + {"typename", TYPENAME_KEYWORD, RID_UNUSED,}, {"friend", SCSPEC, RID_FRIEND,}, - {"continue", CONTINUE, NORID,}, + {"continue", CONTINUE, RID_UNUSED,}, {"class", AGGR, RID_CLASS,}, - {"default", DEFAULT, NORID,}, - {"this", THIS, NORID,}, - {"dynamic_cast", DYNAMIC_CAST, NORID,}, - {"typeof", TYPEOF, NORID,}, + {"default", DEFAULT, RID_UNUSED,}, + {"this", THIS, RID_UNUSED,}, + {"dynamic_cast", DYNAMIC_CAST, RID_UNUSED,}, + {"typeof", TYPEOF, RID_UNUSED,}, {"virtual", SCSPEC, RID_VIRTUAL,}, {"export", SCSPEC, RID_EXPORT,}, - {"and_eq", ASSIGN, NORID,}, - {"__typeof__", TYPEOF, NORID}, + {"and_eq", ASSIGN, RID_UNUSED,}, + {"__typeof__", TYPEOF, RID_UNUSED}, {"__const__", CV_QUALIFIER, RID_CONST}, {"__volatile", CV_QUALIFIER, RID_VOLATILE}, {"short", TYPESPEC, RID_SHORT,}, {"__volatile__", CV_QUALIFIER, RID_VOLATILE}, {"__const", CV_QUALIFIER, RID_CONST}, - {"namespace", NAMESPACE, NORID,}, + {"namespace", NAMESPACE, RID_UNUSED,}, {"char", TYPESPEC, RID_CHAR,}, {"unsigned", TYPESPEC, RID_UNSIGNED,}, {"double", TYPESPEC, RID_DOUBLE,}, - {"or_eq", ASSIGN, NORID,}, + {"or_eq", ASSIGN, RID_UNUSED,}, {"__null", CONSTANT, RID_NULL}, - {"if", IF, NORID,}, + {"if", IF, RID_UNUSED,}, {"__signature__", AGGR, RID_SIGNATURE /* Extension */,}, - {"__label__", LABEL, NORID}, + {"__label__", LABEL, RID_UNUSED}, {"long", TYPESPEC, RID_LONG,}, - {"__imag", IMAGPART, NORID}, - {"__asm", ASM_KEYWORD, NORID}, + {"__imag", IMAGPART, RID_UNUSED}, + {"__asm", ASM_KEYWORD, RID_UNUSED}, {"", 0, 0}, - {"__sigof__", SIGOF, NORID /* Extension */,}, + {"__sigof__", SIGOF, RID_UNUSED /* Extension */,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"struct", AGGR, RID_RECORD,}, {"", 0, 0}, {"volatile", CV_QUALIFIER, RID_VOLATILE,}, - {"false", CXX_FALSE, NORID,}, - {"sizeof", SIZEOF, NORID,}, + {"false", CXX_FALSE, RID_UNUSED,}, + {"sizeof", SIZEOF, RID_UNUSED,}, {"__complex__", TYPESPEC, RID_COMPLEX}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, - {"for", FOR, NORID,}, - {"or", OROR, NORID,}, + {"for", FOR, RID_UNUSED,}, + {"or", OROR, RID_UNUSED,}, {"register", SCSPEC, RID_REGISTER,}, - {"throw", THROW, NORID,}, + {"throw", THROW, RID_UNUSED,}, {"", 0, 0}, - {"using", USING, NORID,}, + {"using", USING, RID_UNUSED,}, {"", 0, 0}, {"", 0, 0}, {"__complex", TYPESPEC, RID_COMPLEX}, {"", 0, 0}, - {"asm", ASM_KEYWORD, NORID,}, + {"asm", ASM_KEYWORD, RID_UNUSED,}, {"signature", AGGR, RID_SIGNATURE /* Extension */,}, - {"enum", ENUM, NORID,}, - {"reinterpret_cast", REINTERPRET_CAST, NORID,}, + {"enum", ENUM, RID_UNUSED,}, + {"reinterpret_cast", REINTERPRET_CAST, RID_UNUSED,}, {"mutable", SCSPEC, RID_MUTABLE,}, - {"__alignof", ALIGNOF, NORID}, - {"return", RETURN_KEYWORD, NORID,}, + {"__alignof", ALIGNOF, RID_UNUSED}, + {"return", RETURN_KEYWORD, RID_UNUSED,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"float", TYPESPEC, RID_FLOAT,}, @@ -199,26 +199,26 @@ is_reserved_word (str, len) {"bool", TYPESPEC, RID_BOOL,}, {"", 0, 0}, {"typedef", SCSPEC, RID_TYPEDEF,}, - {"__typeof", TYPEOF, NORID}, - {"bitand", '&', NORID,}, - {"break", BREAK, NORID,}, + {"__typeof", TYPEOF, RID_UNUSED}, + {"bitand", '&', RID_UNUSED,}, + {"break", BREAK, RID_UNUSED,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"union", AGGR, RID_UNION,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, - {"goto", GOTO, NORID,}, - {"sigof", SIGOF, NORID /* Extension */,}, + {"goto", GOTO, RID_UNUSED,}, + {"sigof", SIGOF, RID_UNUSED /* Extension */,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, - {"bitor", '|', NORID,}, + {"bitor", '|', RID_UNUSED,}, {"auto", SCSPEC, RID_AUTO,}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, {"", 0, 0}, - {"operator", OPERATOR, NORID,} + {"operator", OPERATOR, RID_UNUSED,} }; if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) |