aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs4127
1 files changed, 2141 insertions, 1986 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index f321782663..75c460919c 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -1,7 +1,9 @@
-/* A Bison parser, made by GNU Bison 2.1. */
+/* A Bison parser, made by GNU Bison 2.3. */
-/* Skeleton parser for Yacc-like parsing with Bison,
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+/* Skeleton implementation for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -18,13 +20,21 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
-/* As a special exception, when this file is copied by Bison into a
- Bison output file, you may use that output file without restriction.
- This special exception was added by the Free Software Foundation
- in version 1.24 of Bison. */
+/* As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof
+ as a parser skeleton. Alternatively, if you modify or redistribute
+ the parser skeleton itself, you may (at your option) remove this
+ special exception, which will cause the skeleton and the resulting
+ Bison output files to be licensed under the GNU General Public
+ License without this special exception.
+
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison. */
-/* Written by Richard Stallman by simplifying the original so called
- ``semantic'' parser. */
+/* C LALR(1) parser skeleton written by Richard Stallman, by
+ simplifying the original so-called "semantic" parser. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
@@ -37,7 +47,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.1"
+#define YYBISON_VERSION "2.3"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -93,108 +103,109 @@
CONSTANT = 284,
SECTION = 285,
VOLATILE = 286,
- TO = 287,
- DOTDOTDOT = 288,
- NULL_TOK = 289,
- UNDEF = 290,
- INTERNAL = 291,
- LINKONCE = 292,
- WEAK = 293,
- APPENDING = 294,
- DLLIMPORT = 295,
- DLLEXPORT = 296,
- EXTERN_WEAK = 297,
- OPAQUE = 298,
- EXTERNAL = 299,
- TARGET = 300,
- TRIPLE = 301,
- ALIGN = 302,
- DEPLIBS = 303,
- CALL = 304,
- TAIL = 305,
- ASM_TOK = 306,
- MODULE = 307,
- SIDEEFFECT = 308,
- CC_TOK = 309,
- CCC_TOK = 310,
- FASTCC_TOK = 311,
- COLDCC_TOK = 312,
- X86_STDCALLCC_TOK = 313,
- X86_FASTCALLCC_TOK = 314,
- DATALAYOUT = 315,
- RET = 316,
- BR = 317,
- SWITCH = 318,
- INVOKE = 319,
- UNWIND = 320,
- UNREACHABLE = 321,
- ADD = 322,
- SUB = 323,
- MUL = 324,
- UDIV = 325,
- SDIV = 326,
- FDIV = 327,
- UREM = 328,
- SREM = 329,
- FREM = 330,
- AND = 331,
- OR = 332,
- XOR = 333,
- SHL = 334,
- LSHR = 335,
- ASHR = 336,
- ICMP = 337,
- FCMP = 338,
- EQ = 339,
- NE = 340,
- SLT = 341,
- SGT = 342,
- SLE = 343,
- SGE = 344,
- ULT = 345,
- UGT = 346,
- ULE = 347,
- UGE = 348,
- OEQ = 349,
- ONE = 350,
- OLT = 351,
- OGT = 352,
- OLE = 353,
- OGE = 354,
- ORD = 355,
- UNO = 356,
- UEQ = 357,
- UNE = 358,
- MALLOC = 359,
- ALLOCA = 360,
- FREE = 361,
- LOAD = 362,
- STORE = 363,
- GETELEMENTPTR = 364,
- TRUNC = 365,
- ZEXT = 366,
- SEXT = 367,
- FPTRUNC = 368,
- FPEXT = 369,
- BITCAST = 370,
- UITOFP = 371,
- SITOFP = 372,
- FPTOUI = 373,
- FPTOSI = 374,
- INTTOPTR = 375,
- PTRTOINT = 376,
- PHI_TOK = 377,
- SELECT = 378,
- VAARG = 379,
- EXTRACTELEMENT = 380,
- INSERTELEMENT = 381,
- SHUFFLEVECTOR = 382,
- NORETURN = 383,
- INREG = 384,
- SRET = 385,
- NOUNWIND = 386,
- DEFAULT = 387,
- HIDDEN = 388
+ THREAD_LOCAL = 287,
+ TO = 288,
+ DOTDOTDOT = 289,
+ NULL_TOK = 290,
+ UNDEF = 291,
+ INTERNAL = 292,
+ LINKONCE = 293,
+ WEAK = 294,
+ APPENDING = 295,
+ DLLIMPORT = 296,
+ DLLEXPORT = 297,
+ EXTERN_WEAK = 298,
+ OPAQUE = 299,
+ EXTERNAL = 300,
+ TARGET = 301,
+ TRIPLE = 302,
+ ALIGN = 303,
+ DEPLIBS = 304,
+ CALL = 305,
+ TAIL = 306,
+ ASM_TOK = 307,
+ MODULE = 308,
+ SIDEEFFECT = 309,
+ CC_TOK = 310,
+ CCC_TOK = 311,
+ FASTCC_TOK = 312,
+ COLDCC_TOK = 313,
+ X86_STDCALLCC_TOK = 314,
+ X86_FASTCALLCC_TOK = 315,
+ DATALAYOUT = 316,
+ RET = 317,
+ BR = 318,
+ SWITCH = 319,
+ INVOKE = 320,
+ UNWIND = 321,
+ UNREACHABLE = 322,
+ ADD = 323,
+ SUB = 324,
+ MUL = 325,
+ UDIV = 326,
+ SDIV = 327,
+ FDIV = 328,
+ UREM = 329,
+ SREM = 330,
+ FREM = 331,
+ AND = 332,
+ OR = 333,
+ XOR = 334,
+ SHL = 335,
+ LSHR = 336,
+ ASHR = 337,
+ ICMP = 338,
+ FCMP = 339,
+ EQ = 340,
+ NE = 341,
+ SLT = 342,
+ SGT = 343,
+ SLE = 344,
+ SGE = 345,
+ ULT = 346,
+ UGT = 347,
+ ULE = 348,
+ UGE = 349,
+ OEQ = 350,
+ ONE = 351,
+ OLT = 352,
+ OGT = 353,
+ OLE = 354,
+ OGE = 355,
+ ORD = 356,
+ UNO = 357,
+ UEQ = 358,
+ UNE = 359,
+ MALLOC = 360,
+ ALLOCA = 361,
+ FREE = 362,
+ LOAD = 363,
+ STORE = 364,
+ GETELEMENTPTR = 365,
+ TRUNC = 366,
+ ZEXT = 367,
+ SEXT = 368,
+ FPTRUNC = 369,
+ FPEXT = 370,
+ BITCAST = 371,
+ UITOFP = 372,
+ SITOFP = 373,
+ FPTOUI = 374,
+ FPTOSI = 375,
+ INTTOPTR = 376,
+ PTRTOINT = 377,
+ PHI_TOK = 378,
+ SELECT = 379,
+ VAARG = 380,
+ EXTRACTELEMENT = 381,
+ INSERTELEMENT = 382,
+ SHUFFLEVECTOR = 383,
+ NORETURN = 384,
+ INREG = 385,
+ SRET = 386,
+ NOUNWIND = 387,
+ DEFAULT = 388,
+ HIDDEN = 389
};
#endif
/* Tokens. */
@@ -227,114 +238,115 @@
#define CONSTANT 284
#define SECTION 285
#define VOLATILE 286
-#define TO 287
-#define DOTDOTDOT 288
-#define NULL_TOK 289
-#define UNDEF 290
-#define INTERNAL 291
-#define LINKONCE 292
-#define WEAK 293
-#define APPENDING 294
-#define DLLIMPORT 295
-#define DLLEXPORT 296
-#define EXTERN_WEAK 297
-#define OPAQUE 298
-#define EXTERNAL 299
-#define TARGET 300
-#define TRIPLE 301
-#define ALIGN 302
-#define DEPLIBS 303
-#define CALL 304
-#define TAIL 305
-#define ASM_TOK 306
-#define MODULE 307
-#define SIDEEFFECT 308
-#define CC_TOK 309
-#define CCC_TOK 310
-#define FASTCC_TOK 311
-#define COLDCC_TOK 312
-#define X86_STDCALLCC_TOK 313
-#define X86_FASTCALLCC_TOK 314
-#define DATALAYOUT 315
-#define RET 316
-#define BR 317
-#define SWITCH 318
-#define INVOKE 319
-#define UNWIND 320
-#define UNREACHABLE 321
-#define ADD 322
-#define SUB 323
-#define MUL 324
-#define UDIV 325
-#define SDIV 326
-#define FDIV 327
-#define UREM 328
-#define SREM 329
-#define FREM 330
-#define AND 331
-#define OR 332
-#define XOR 333
-#define SHL 334
-#define LSHR 335
-#define ASHR 336
-#define ICMP 337
-#define FCMP 338
-#define EQ 339
-#define NE 340
-#define SLT 341
-#define SGT 342
-#define SLE 343
-#define SGE 344
-#define ULT 345
-#define UGT 346
-#define ULE 347
-#define UGE 348
-#define OEQ 349
-#define ONE 350
-#define OLT 351
-#define OGT 352
-#define OLE 353
-#define OGE 354
-#define ORD 355
-#define UNO 356
-#define UEQ 357
-#define UNE 358
-#define MALLOC 359
-#define ALLOCA 360
-#define FREE 361
-#define LOAD 362
-#define STORE 363
-#define GETELEMENTPTR 364
-#define TRUNC 365
-#define ZEXT 366
-#define SEXT 367
-#define FPTRUNC 368
-#define FPEXT 369
-#define BITCAST 370
-#define UITOFP 371
-#define SITOFP 372
-#define FPTOUI 373
-#define FPTOSI 374
-#define INTTOPTR 375
-#define PTRTOINT 376
-#define PHI_TOK 377
-#define SELECT 378
-#define VAARG 379
-#define EXTRACTELEMENT 380
-#define INSERTELEMENT 381
-#define SHUFFLEVECTOR 382
-#define NORETURN 383
-#define INREG 384
-#define SRET 385
-#define NOUNWIND 386
-#define DEFAULT 387
-#define HIDDEN 388
+#define THREAD_LOCAL 287
+#define TO 288
+#define DOTDOTDOT 289
+#define NULL_TOK 290
+#define UNDEF 291
+#define INTERNAL 292
+#define LINKONCE 293
+#define WEAK 294
+#define APPENDING 295
+#define DLLIMPORT 296
+#define DLLEXPORT 297
+#define EXTERN_WEAK 298
+#define OPAQUE 299
+#define EXTERNAL 300
+#define TARGET 301
+#define TRIPLE 302
+#define ALIGN 303
+#define DEPLIBS 304
+#define CALL 305
+#define TAIL 306
+#define ASM_TOK 307
+#define MODULE 308
+#define SIDEEFFECT 309
+#define CC_TOK 310
+#define CCC_TOK 311
+#define FASTCC_TOK 312
+#define COLDCC_TOK 313
+#define X86_STDCALLCC_TOK 314
+#define X86_FASTCALLCC_TOK 315
+#define DATALAYOUT 316
+#define RET 317
+#define BR 318
+#define SWITCH 319
+#define INVOKE 320
+#define UNWIND 321
+#define UNREACHABLE 322
+#define ADD 323
+#define SUB 324
+#define MUL 325
+#define UDIV 326
+#define SDIV 327
+#define FDIV 328
+#define UREM 329
+#define SREM 330
+#define FREM 331
+#define AND 332
+#define OR 333
+#define XOR 334
+#define SHL 335
+#define LSHR 336
+#define ASHR 337
+#define ICMP 338
+#define FCMP 339
+#define EQ 340
+#define NE 341
+#define SLT 342
+#define SGT 343
+#define SLE 344
+#define SGE 345
+#define ULT 346
+#define UGT 347
+#define ULE 348
+#define UGE 349
+#define OEQ 350
+#define ONE 351
+#define OLT 352
+#define OGT 353
+#define OLE 354
+#define OGE 355
+#define ORD 356
+#define UNO 357
+#define UEQ 358
+#define UNE 359
+#define MALLOC 360
+#define ALLOCA 361
+#define FREE 362
+#define LOAD 363
+#define STORE 364
+#define GETELEMENTPTR 365
+#define TRUNC 366
+#define ZEXT 367
+#define SEXT 368
+#define FPTRUNC 369
+#define FPEXT 370
+#define BITCAST 371
+#define UITOFP 372
+#define SITOFP 373
+#define FPTOUI 374
+#define FPTOSI 375
+#define INTTOPTR 376
+#define PTRTOINT 377
+#define PHI_TOK 378
+#define SELECT 379
+#define VAARG 380
+#define EXTRACTELEMENT 381
+#define INSERTELEMENT 382
+#define SHUFFLEVECTOR 383
+#define NORETURN 384
+#define INREG 385
+#define SRET 386
+#define NOUNWIND 387
+#define DEFAULT 388
+#define HIDDEN 389
/* Copy the first part of user declarations. */
-#line 14 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
+#line 14 "/home/laurov/llvm/llvm/lib/AsmParser/llvmAsmParser.y"
#include "ParserInternals.h"
#include "llvm/CallingConv.h"
@@ -1028,7 +1040,7 @@ ParseGlobalVariable(char *NameStr,
GlobalValue::LinkageTypes Linkage,
GlobalValue::VisibilityTypes Visibility,
bool isConstantGlobal, const Type *Ty,
- Constant *Initializer) {
+ Constant *Initializer, bool IsThreadLocal) {
if (isa<FunctionType>(Ty)) {
GenerateError("Cannot declare global vars of function type");
return 0;
@@ -1061,6 +1073,7 @@ ParseGlobalVariable(char *NameStr,
GV->setLinkage(Linkage);
GV->setVisibility(Visibility);
GV->setConstant(isConstantGlobal);
+ GV->setThreadLocal(IsThreadLocal);
InsertValue(GV, CurModule.Values);
return GV;
}
@@ -1085,7 +1098,7 @@ ParseGlobalVariable(char *NameStr,
// Otherwise there is no existing GV to use, create one now.
GlobalVariable *GV =
new GlobalVariable(Ty, isConstantGlobal, Linkage, Initializer, Name,
- CurModule.CurrentModule);
+ CurModule.CurrentModule, IsThreadLocal);
GV->setVisibility(Visibility);
InsertValue(GV, CurModule.Values);
return GV;
@@ -1276,9 +1289,10 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
# define YYTOKEN_TABLE 0
#endif
-#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
-#line 937 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
-typedef union YYSTYPE {
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
+typedef union YYSTYPE
+#line 938 "/home/laurov/llvm/llvm/lib/AsmParser/llvmAsmParser.y"
+{
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
llvm::BasicBlock *BasicBlockVal;
@@ -1323,9 +1337,10 @@ typedef union YYSTYPE {
llvm::Instruction::OtherOps OtherOpVal;
llvm::ICmpInst::Predicate IPredicate;
llvm::FCmpInst::Predicate FPredicate;
-} YYSTYPE;
-/* Line 196 of yacc.c. */
-#line 1329 "llvmAsmParser.tab.c"
+}
+/* Line 193 of yacc.c. */
+#line 1343 "llvmAsmParser.tab.c"
+ YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
@@ -1336,23 +1351,56 @@ typedef union YYSTYPE {
/* Copy the second part of user declarations. */
-/* Line 219 of yacc.c. */
-#line 1341 "llvmAsmParser.tab.c"
+/* Line 216 of yacc.c. */
+#line 1356 "llvmAsmParser.tab.c"
-#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
-# define YYSIZE_T __SIZE_TYPE__
+#ifdef short
+# undef short
#endif
-#if ! defined (YYSIZE_T) && defined (size_t)
-# define YYSIZE_T size_t
+
+#ifdef YYTYPE_UINT8
+typedef YYTYPE_UINT8 yytype_uint8;
+#else
+typedef unsigned char yytype_uint8;
#endif
-#if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus))
-# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
+
+#ifdef YYTYPE_INT8
+typedef YYTYPE_INT8 yytype_int8;
+#elif (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+typedef signed char yytype_int8;
+#else
+typedef short int yytype_int8;
+#endif
+
+#ifdef YYTYPE_UINT16
+typedef YYTYPE_UINT16 yytype_uint16;
+#else
+typedef unsigned short int yytype_uint16;
+#endif
+
+#ifdef YYTYPE_INT16
+typedef YYTYPE_INT16 yytype_int16;
+#else
+typedef short int yytype_int16;
#endif
-#if ! defined (YYSIZE_T)
-# define YYSIZE_T unsigned int
+
+#ifndef YYSIZE_T
+# ifdef __SIZE_TYPE__
+# define YYSIZE_T __SIZE_TYPE__
+# elif defined size_t
+# define YYSIZE_T size_t
+# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# else
+# define YYSIZE_T unsigned int
+# endif
#endif
+#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
+
#ifndef YY_
# if YYENABLE_NLS
# if ENABLE_NLS
@@ -1365,7 +1413,32 @@ typedef union YYSTYPE {
# endif
#endif
-#if ! defined (yyoverflow) || YYERROR_VERBOSE
+/* Suppress unused-variable warnings by "using" E. */
+#if ! defined lint || defined __GNUC__
+# define YYUSE(e) ((void) (e))
+#else
+# define YYUSE(e) /* empty */
+#endif
+
+/* Identity function, used to suppress warnings about constant conditions. */
+#ifndef lint
+# define YYID(n) (n)
+#else
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static int
+YYID (int i)
+#else
+static int
+YYID (i)
+ int i;
+#endif
+{
+ return i;
+}
+#endif
+
+#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
@@ -1373,64 +1446,76 @@ typedef union YYSTYPE {
# if YYSTACK_USE_ALLOCA
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
+# elif defined __BUILTIN_VA_ARG_INCR
+# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
+# elif defined _AIX
+# define YYSTACK_ALLOC __alloca
+# elif defined _MSC_VER
+# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
+# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
-# if defined (__STDC__) || defined (__cplusplus)
+# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# define YYINCLUDED_STDLIB_H
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
to allow for a few compiler-allocated temporary stack slots. */
-# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */
+# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
# endif
# else
# define YYSTACK_ALLOC YYMALLOC
# define YYSTACK_FREE YYFREE
# ifndef YYSTACK_ALLOC_MAXIMUM
-# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
+# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
-# ifdef __cplusplus
-extern "C" {
+# if (defined __cplusplus && ! defined _STDLIB_H \
+ && ! ((defined YYMALLOC || defined malloc) \
+ && (defined YYFREE || defined free)))
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
-# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
- && (defined (__STDC__) || defined (__cplusplus)))
+# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
-# if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \
- && (defined (__STDC__) || defined (__cplusplus)))
+# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
-# ifdef __cplusplus
-}
-# endif
# endif
-#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
+#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
-#if (! defined (yyoverflow) \
- && (! defined (__cplusplus) \
- || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
+#if (! defined yyoverflow \
+ && (! defined __cplusplus \
+ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
- short int yyss;
+ yytype_int16 yyss;
YYSTYPE yyvs;
};
@@ -1440,13 +1525,13 @@ union yyalloc
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
- ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
+ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
/* Copy COUNT objects from FROM to TO. The source and destination do
not overlap. */
# ifndef YYCOPY
-# if defined (__GNUC__) && 1 < __GNUC__
+# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(To, From, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
# else
@@ -1457,7 +1542,7 @@ union yyalloc
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
- while (0)
+ while (YYID (0))
# endif
# endif
@@ -1475,53 +1560,47 @@ union yyalloc
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
- while (0)
+ while (YYID (0))
#endif
-#if defined (__STDC__) || defined (__cplusplus)
- typedef signed char yysigned_char;
-#else
- typedef short int yysigned_char;
-#endif
-
-/* YYFINAL -- State number of the termination state. */
+/* YYFINAL -- State number of the termination state. */
#define YYFINAL 39
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1441
+#define YYLAST 1317
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 148
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 78
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 286
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 559
+/* YYNTOKENS -- Number of terminals. */
+#define YYNTOKENS 149
+/* YYNNTS -- Number of nonterminals. */
+#define YYNNTS 79
+/* YYNRULES -- Number of rules. */
+#define YYNRULES 288
+/* YYNRULES -- Number of states. */
+#define YYNSTATES 563
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 388
+#define YYMAXUTOK 389
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
-static const unsigned char yytranslate[] =
+static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 138, 139, 136, 2, 135, 2, 2, 2, 2, 2,
+ 139, 140, 137, 2, 136, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 143, 134, 144, 2, 2, 2, 2, 2, 2, 2,
+ 144, 135, 145, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 140, 137, 142, 2, 2, 2, 2, 2, 147,
+ 2, 141, 138, 143, 2, 2, 2, 2, 2, 148,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 141, 2, 2, 145, 2, 146, 2, 2, 2, 2,
+ 142, 2, 2, 146, 2, 147, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -1547,13 +1626,13 @@ static const unsigned char yytranslate[] =
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
- 125, 126, 127, 128, 129, 130, 131, 132, 133
+ 125, 126, 127, 128, 129, 130, 131, 132, 133, 134
};
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
-static const unsigned short int yyprhs[] =
+static const yytype_uint16 yyprhs[] =
{
0, 0, 3, 5, 7, 9, 11, 13, 15, 17,
19, 21, 23, 25, 27, 29, 31, 33, 35, 37,
@@ -1573,153 +1652,154 @@ static const unsigned short int yyprhs[] =
352, 358, 361, 364, 367, 370, 373, 376, 379, 382,
385, 388, 391, 394, 401, 407, 416, 423, 430, 438,
446, 453, 462, 471, 475, 477, 479, 481, 483, 484,
- 486, 489, 490, 494, 495, 499, 503, 507, 511, 512,
- 519, 520, 528, 529, 537, 540, 544, 546, 550, 554,
- 558, 562, 564, 565, 571, 575, 577, 581, 583, 584,
- 594, 596, 598, 603, 605, 607, 610, 614, 615, 617,
- 619, 621, 623, 625, 627, 629, 631, 633, 637, 639,
- 645, 647, 649, 651, 653, 655, 657, 660, 663, 666,
- 670, 673, 674, 676, 679, 682, 686, 696, 706, 715,
- 730, 732, 734, 741, 747, 750, 757, 765, 769, 775,
- 776, 777, 781, 784, 786, 792, 798, 805, 812, 817,
- 824, 829, 834, 841, 848, 851, 860, 862, 864, 865,
- 869, 876, 880, 887, 890, 895, 902
+ 486, 487, 489, 492, 493, 497, 498, 502, 506, 510,
+ 514, 515, 523, 524, 533, 534, 543, 546, 550, 552,
+ 556, 560, 564, 568, 570, 571, 577, 581, 583, 587,
+ 589, 590, 600, 602, 604, 609, 611, 613, 616, 620,
+ 621, 623, 625, 627, 629, 631, 633, 635, 637, 639,
+ 643, 645, 651, 653, 655, 657, 659, 661, 663, 666,
+ 669, 672, 676, 679, 680, 682, 685, 688, 692, 702,
+ 712, 721, 736, 738, 740, 747, 753, 756, 763, 771,
+ 775, 781, 782, 783, 787, 790, 792, 798, 804, 811,
+ 818, 823, 830, 835, 840, 847, 854, 857, 866, 868,
+ 870, 871, 875, 882, 886, 893, 896, 901, 908
};
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const short int yyrhs[] =
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const yytype_int16 yyrhs[] =
{
- 188, 0, -1, 67, -1, 68, -1, 69, -1, 70,
- -1, 71, -1, 72, -1, 73, -1, 74, -1, 75,
- -1, 79, -1, 80, -1, 81, -1, 76, -1, 77,
- -1, 78, -1, 110, -1, 111, -1, 112, -1, 113,
- -1, 114, -1, 115, -1, 116, -1, 117, -1, 118,
- -1, 119, -1, 120, -1, 121, -1, 84, -1, 85,
- -1, 86, -1, 87, -1, 88, -1, 89, -1, 90,
- -1, 91, -1, 92, -1, 93, -1, 94, -1, 95,
- -1, 96, -1, 97, -1, 98, -1, 99, -1, 100,
- -1, 101, -1, 102, -1, 103, -1, 90, -1, 91,
- -1, 92, -1, 93, -1, 22, -1, 23, -1, 11,
- -1, 12, -1, 13, -1, 16, -1, 19, -1, 156,
- -1, -1, 156, 134, -1, -1, 17, -1, 20, -1,
- 159, 134, -1, -1, 36, -1, 38, -1, 37, -1,
- 39, -1, 41, -1, 40, -1, 42, -1, 44, -1,
- -1, 133, -1, -1, 40, -1, 42, -1, -1, 36,
- -1, 37, -1, 38, -1, 41, -1, -1, 55, -1,
- 56, -1, 57, -1, 58, -1, 59, -1, 54, 4,
- -1, 111, -1, 112, -1, 129, -1, 130, -1, -1,
- 168, 167, -1, 128, -1, 131, -1, 167, -1, -1,
- 170, 169, -1, -1, 47, 4, -1, -1, 135, 47,
- 4, -1, 30, 19, -1, -1, 173, -1, -1, 135,
- 176, 175, -1, 173, -1, 47, 4, -1, 11, -1,
- 12, -1, 13, -1, 14, -1, 43, -1, 177, -1,
- 178, 136, -1, 210, -1, 137, 4, -1, 178, 138,
- 182, 139, 170, -1, 10, 138, 182, 139, 170, -1,
- 140, 4, 141, 178, 142, -1, 143, 4, 141, 178,
- 144, -1, 145, 183, 146, -1, 145, 146, -1, 143,
- 145, 183, 146, 144, -1, 143, 145, 146, 144, -1,
- 178, 168, -1, 178, -1, 10, -1, 179, -1, 181,
- 135, 179, -1, 181, -1, 181, 135, 33, -1, 33,
- -1, -1, 178, -1, 183, 135, 178, -1, 178, 140,
- 186, 142, -1, 178, 140, 142, -1, 178, 147, 19,
- -1, 178, 143, 186, 144, -1, 178, 145, 186, 146,
- -1, 178, 145, 146, -1, 178, 143, 145, 186, 146,
- 144, -1, 178, 143, 145, 146, 144, -1, 178, 34,
- -1, 178, 35, -1, 178, 210, -1, 178, 185, -1,
- 178, 21, -1, 154, 3, -1, 154, 5, -1, 154,
- 4, -1, 154, 6, -1, 11, 22, -1, 11, 23,
- -1, 155, 9, -1, 151, 138, 184, 32, 178, 139,
- -1, 109, 138, 184, 221, 139, -1, 123, 138, 184,
- 135, 184, 135, 184, 139, -1, 149, 138, 184, 135,
- 184, 139, -1, 150, 138, 184, 135, 184, 139, -1,
- 82, 152, 138, 184, 135, 184, 139, -1, 83, 153,
- 138, 184, 135, 184, 139, -1, 125, 138, 184, 135,
- 184, 139, -1, 126, 138, 184, 135, 184, 135, 184,
- 139, -1, 127, 138, 184, 135, 184, 135, 184, 139,
- -1, 186, 135, 184, -1, 184, -1, 28, -1, 29,
- -1, 189, -1, -1, 190, -1, 189, 190, -1, -1,
- 27, 191, 206, -1, -1, 26, 192, 207, -1, 52,
- 51, 196, -1, 158, 15, 178, -1, 158, 15, 10,
- -1, -1, 160, 163, 187, 184, 193, 175, -1, -1,
- 160, 161, 163, 187, 184, 194, 175, -1, -1, 160,
- 162, 163, 187, 178, 195, 175, -1, 45, 197, -1,
- 48, 134, 198, -1, 19, -1, 46, 134, 19, -1,
- 60, 134, 19, -1, 140, 199, 142, -1, 199, 135,
- 19, -1, 19, -1, -1, 200, 135, 178, 168, 157,
- -1, 178, 168, 157, -1, 200, -1, 200, 135, 33,
- -1, 33, -1, -1, 166, 180, 159, 138, 201, 139,
- 170, 174, 171, -1, 24, -1, 145, -1, 165, 163,
- 202, 203, -1, 25, -1, 146, -1, 213, 205, -1,
- 164, 163, 202, -1, -1, 53, -1, 3, -1, 4,
- -1, 9, -1, 22, -1, 23, -1, 34, -1, 35,
- -1, 21, -1, 143, 186, 144, -1, 185, -1, 51,
- 208, 19, 135, 19, -1, 7, -1, 8, -1, 156,
- -1, 159, -1, 210, -1, 209, -1, 178, 211, -1,
- 213, 214, -1, 204, 214, -1, 215, 158, 216, -1,
- 215, 218, -1, -1, 18, -1, 61, 212, -1, 61,
- 10, -1, 62, 14, 211, -1, 62, 11, 211, 135,
- 14, 211, 135, 14, 211, -1, 63, 154, 211, 135,
- 14, 211, 140, 217, 142, -1, 63, 154, 211, 135,
- 14, 211, 140, 142, -1, 64, 166, 180, 211, 138,
- 220, 139, 170, 32, 14, 211, 65, 14, 211, -1,
- 65, -1, 66, -1, 217, 154, 209, 135, 14, 211,
- -1, 154, 209, 135, 14, 211, -1, 158, 223, -1,
- 178, 140, 211, 135, 211, 142, -1, 219, 135, 140,
- 211, 135, 211, 142, -1, 178, 211, 168, -1, 220,
- 135, 178, 211, 168, -1, -1, -1, 221, 135, 212,
- -1, 50, 49, -1, 49, -1, 149, 178, 211, 135,
- 211, -1, 150, 178, 211, 135, 211, -1, 82, 152,
- 178, 211, 135, 211, -1, 83, 153, 178, 211, 135,
- 211, -1, 151, 212, 32, 178, -1, 123, 212, 135,
- 212, 135, 212, -1, 124, 212, 135, 178, -1, 125,
- 212, 135, 212, -1, 126, 212, 135, 212, 135, 212,
- -1, 127, 212, 135, 212, 135, 212, -1, 122, 219,
- -1, 222, 166, 180, 211, 138, 220, 139, 170, -1,
- 225, -1, 31, -1, -1, 104, 178, 172, -1, 104,
- 178, 135, 11, 211, 172, -1, 105, 178, 172, -1,
- 105, 178, 135, 11, 211, 172, -1, 106, 212, -1,
- 224, 107, 178, 211, -1, 224, 108, 212, 135, 178,
- 211, -1, 109, 178, 211, 221, -1
+ 190, 0, -1, 68, -1, 69, -1, 70, -1, 71,
+ -1, 72, -1, 73, -1, 74, -1, 75, -1, 76,
+ -1, 80, -1, 81, -1, 82, -1, 77, -1, 78,
+ -1, 79, -1, 111, -1, 112, -1, 113, -1, 114,
+ -1, 115, -1, 116, -1, 117, -1, 118, -1, 119,
+ -1, 120, -1, 121, -1, 122, -1, 85, -1, 86,
+ -1, 87, -1, 88, -1, 89, -1, 90, -1, 91,
+ -1, 92, -1, 93, -1, 94, -1, 95, -1, 96,
+ -1, 97, -1, 98, -1, 99, -1, 100, -1, 101,
+ -1, 102, -1, 103, -1, 104, -1, 91, -1, 92,
+ -1, 93, -1, 94, -1, 22, -1, 23, -1, 11,
+ -1, 12, -1, 13, -1, 16, -1, 19, -1, 157,
+ -1, -1, 157, 135, -1, -1, 17, -1, 20, -1,
+ 160, 135, -1, -1, 37, -1, 39, -1, 38, -1,
+ 40, -1, 42, -1, 41, -1, 43, -1, 45, -1,
+ -1, 134, -1, -1, 41, -1, 43, -1, -1, 37,
+ -1, 38, -1, 39, -1, 42, -1, -1, 56, -1,
+ 57, -1, 58, -1, 59, -1, 60, -1, 55, 4,
+ -1, 112, -1, 113, -1, 130, -1, 131, -1, -1,
+ 169, 168, -1, 129, -1, 132, -1, 168, -1, -1,
+ 171, 170, -1, -1, 48, 4, -1, -1, 136, 48,
+ 4, -1, 30, 19, -1, -1, 174, -1, -1, 136,
+ 177, 176, -1, 174, -1, 48, 4, -1, 11, -1,
+ 12, -1, 13, -1, 14, -1, 44, -1, 178, -1,
+ 179, 137, -1, 212, -1, 138, 4, -1, 179, 139,
+ 183, 140, 171, -1, 10, 139, 183, 140, 171, -1,
+ 141, 4, 142, 179, 143, -1, 144, 4, 142, 179,
+ 145, -1, 146, 184, 147, -1, 146, 147, -1, 144,
+ 146, 184, 147, 145, -1, 144, 146, 147, 145, -1,
+ 179, 169, -1, 179, -1, 10, -1, 180, -1, 182,
+ 136, 180, -1, 182, -1, 182, 136, 34, -1, 34,
+ -1, -1, 179, -1, 184, 136, 179, -1, 179, 141,
+ 187, 143, -1, 179, 141, 143, -1, 179, 148, 19,
+ -1, 179, 144, 187, 145, -1, 179, 146, 187, 147,
+ -1, 179, 146, 147, -1, 179, 144, 146, 187, 147,
+ 145, -1, 179, 144, 146, 147, 145, -1, 179, 35,
+ -1, 179, 36, -1, 179, 212, -1, 179, 186, -1,
+ 179, 21, -1, 155, 3, -1, 155, 5, -1, 155,
+ 4, -1, 155, 6, -1, 11, 22, -1, 11, 23,
+ -1, 156, 9, -1, 152, 139, 185, 33, 179, 140,
+ -1, 110, 139, 185, 223, 140, -1, 124, 139, 185,
+ 136, 185, 136, 185, 140, -1, 150, 139, 185, 136,
+ 185, 140, -1, 151, 139, 185, 136, 185, 140, -1,
+ 83, 153, 139, 185, 136, 185, 140, -1, 84, 154,
+ 139, 185, 136, 185, 140, -1, 126, 139, 185, 136,
+ 185, 140, -1, 127, 139, 185, 136, 185, 136, 185,
+ 140, -1, 128, 139, 185, 136, 185, 136, 185, 140,
+ -1, 187, 136, 185, -1, 185, -1, 28, -1, 29,