blob: 081af1e32e328854bd6b7073d894ee3dcbde6fd5 [file] [log] [blame]
/* A Bison parser, made from ldgram.y
by GNU bison 1.33. */
#define YYBISON 1 /* Identify Bison output. */
# define INT 257
# define NAME 258
# define LNAME 259
# define PLUSEQ 260
# define MINUSEQ 261
# define MULTEQ 262
# define DIVEQ 263
# define LSHIFTEQ 264
# define RSHIFTEQ 265
# define ANDEQ 266
# define OREQ 267
# define OROR 268
# define ANDAND 269
# define EQ 270
# define NE 271
# define LE 272
# define GE 273
# define LSHIFT 274
# define RSHIFT 275
# define UNARY 276
# define END 277
# define ALIGN_K 278
# define BLOCK 279
# define BIND 280
# define QUAD 281
# define SQUAD 282
# define LONG 283
# define SHORT 284
# define BYTE 285
# define SECTIONS 286
# define PHDRS 287
# define SORT 288
# define SIZEOF_HEADERS 289
# define OUTPUT_FORMAT 290
# define FORCE_COMMON_ALLOCATION 291
# define OUTPUT_ARCH 292
# define INHIBIT_COMMON_ALLOCATION 293
# define INCLUDE 294
# define MEMORY 295
# define DEFSYMEND 296
# define NOLOAD 297
# define DSECT 298
# define COPY 299
# define INFO 300
# define OVERLAY 301
# define DEFINED 302
# define TARGET_K 303
# define SEARCH_DIR 304
# define MAP 305
# define ENTRY 306
# define NEXT 307
# define SIZEOF 308
# define ADDR 309
# define LOADADDR 310
# define MAX_K 311
# define MIN_K 312
# define STARTUP 313
# define HLL 314
# define SYSLIB 315
# define FLOAT 316
# define NOFLOAT 317
# define NOCROSSREFS 318
# define ORIGIN 319
# define FILL 320
# define LENGTH 321
# define CREATE_OBJECT_SYMBOLS 322
# define INPUT 323
# define GROUP 324
# define OUTPUT 325
# define CONSTRUCTORS 326
# define ALIGNMOD 327
# define AT 328
# define PROVIDE 329
# define CHIP 330
# define LIST 331
# define SECT 332
# define ABSOLUTE 333
# define LOAD 334
# define NEWLINE 335
# define ENDWORD 336
# define ORDER 337
# define NAMEWORD 338
# define ASSERT_K 339
# define FORMAT 340
# define PUBLIC 341
# define BASE 342
# define ALIAS 343
# define TRUNCATE 344
# define REL 345
# define INPUT_SCRIPT 346
# define INPUT_MRI_SCRIPT 347
# define INPUT_DEFSYM 348
# define CASE 349
# define EXTERN 350
# define START 351
# define VERS_TAG 352
# define VERS_IDENTIFIER 353
# define GLOBAL 354
# define LOCAL 355
# define VERSIONK 356
# define INPUT_VERSION_SCRIPT 357
# define KEEP 358
# define EXCLUDE_FILE 359
#line 22 "ldgram.y"
/*
*/
#define DONTDECLARE_MALLOC
#include "bfd.h"
#include "sysdep.h"
#include "bfdlink.h"
#include "ld.h"
#include "ldexp.h"
#include "ldver.h"
#include "ldlang.h"
#include "ldfile.h"
#include "ldemul.h"
#include "ldmisc.h"
#include "ldmain.h"
#include "mri.h"
#include "ldctor.h"
#include "ldlex.h"
#ifndef YYDEBUG
#define YYDEBUG 1
#endif
static enum section_type sectype;
lang_memory_region_type *region;
boolean ldgram_want_filename = true;
FILE * saved_script_handle = NULL;
boolean force_make_executable = false;
boolean ldgram_in_script = false;
boolean ldgram_had_equals = false;
boolean ldgram_had_keep = false;
char *ldgram_vers_current_lang = NULL;
#define ERROR_NAME_MAX 20
static char *error_names[ERROR_NAME_MAX];
static int error_index;
#define PUSH_ERROR(x) if (error_index < ERROR_NAME_MAX) error_names[error_index] = x; error_index++;
#define POP_ERROR() error_index--;
#line 67 "ldgram.y"
#ifndef YYSTYPE
typedef union {
bfd_vma integer;
char *name;
const char *cname;
struct wildcard_spec wildcard;
struct wildcard_list *wildcard_list;
struct name_list *name_list;
int token;
union etree_union *etree;
struct phdr_info
{
boolean filehdr;
boolean phdrs;
union etree_union *at;
union etree_union *flags;
} phdr;
struct lang_nocrossref *nocrossref;
struct lang_output_section_phdr_list *section_phdr;
struct bfd_elf_version_deps *deflist;
struct bfd_elf_version_expr *versyms;
struct bfd_elf_version_tree *versnode;
} yystype;
# define YYSTYPE yystype
#endif
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#define YYFINAL 592
#define YYFLAG -32768
#define YYNTBASE 129
/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
#define YYTRANSLATE(x) ((unsigned)(x) <= 359 ? yytranslate[x] : 232)
/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */
static const short 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, 127, 2, 2, 2, 34, 21, 2,
37, 124, 32, 30, 122, 31, 2, 33, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 16, 123,
24, 10, 25, 15, 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, 125, 2, 126, 20, 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, 49, 19, 50, 128, 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, 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, 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, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 3, 4, 5,
6, 7, 8, 9, 11, 12, 13, 14, 17, 18,
22, 23, 26, 27, 28, 29, 35, 36, 38, 39,
40, 41, 42, 43, 44, 45, 46, 47, 48, 51,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 80, 81,
82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
92, 93, 94, 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
};
#if YYDEBUG
static const short yyprhs[] =
{
0, 0, 3, 6, 9, 12, 14, 15, 20, 21,
24, 28, 29, 32, 37, 39, 41, 44, 46, 51,
56, 60, 63, 68, 72, 77, 82, 87, 92, 97,
100, 103, 106, 111, 116, 119, 122, 125, 128, 129,
135, 138, 139, 143, 146, 147, 149, 153, 155, 159,
160, 162, 166, 168, 171, 175, 176, 179, 182, 183,
185, 187, 189, 191, 193, 195, 197, 199, 201, 203,
208, 213, 218, 223, 232, 237, 239, 241, 246, 247,
253, 258, 259, 265, 270, 275, 277, 281, 284, 286,
290, 293, 298, 301, 304, 305, 310, 313, 315, 317,
319, 321, 327, 332, 341, 344, 346, 350, 352, 354,
358, 363, 365, 366, 372, 375, 377, 379, 381, 386,
388, 393, 398, 401, 403, 404, 406, 408, 410, 412,
414, 416, 419, 420, 422, 424, 426, 428, 430, 432,
434, 436, 438, 440, 444, 448, 455, 457, 458, 464,
467, 471, 472, 473, 481, 485, 489, 490, 494, 496,
499, 501, 504, 509, 514, 518, 522, 524, 529, 533,
534, 536, 538, 539, 542, 546, 547, 550, 553, 557,
562, 565, 568, 571, 575, 579, 583, 587, 591, 595,
599, 603, 607, 611, 615, 619, 623, 627, 631, 635,
641, 645, 649, 654, 656, 658, 663, 668, 673, 678,
683, 688, 690, 697, 704, 711, 715, 716, 721, 722,
723, 724, 725, 726, 727, 744, 745, 746, 747, 748,
749, 767, 768, 769, 777, 779, 781, 783, 785, 787,
791, 792, 795, 799, 802, 809, 820, 823, 825, 826,
828, 831, 832, 833, 837, 838, 839, 840, 841, 853,
858, 859, 862, 863, 864, 871, 873, 874, 878, 884,
885, 889, 890, 893, 894, 900, 902, 905, 910, 916,
923, 925, 928, 929, 932, 937, 942, 951, 953, 957,
958
};
static const short yyrhs[] =
{
108, 143, 0, 109, 133, 0, 119, 222, 0, 110,
131, 0, 4, 0, 0, 132, 4, 10, 187, 0,
0, 134, 135, 0, 135, 136, 97, 0, 0, 92,
187, 0, 92, 187, 122, 187, 0, 4, 0, 93,
0, 99, 138, 0, 98, 0, 103, 4, 10, 187,
0, 103, 4, 122, 187, 0, 103, 4, 187, 0,
102, 4, 0, 94, 4, 122, 187, 0, 94, 4,
187, 0, 94, 4, 10, 187, 0, 38, 4, 10,
187, 0, 38, 4, 122, 187, 0, 89, 4, 10,
187, 0, 89, 4, 122, 187, 0, 95, 140, 0,
96, 139, 0, 100, 4, 0, 105, 4, 122, 4,
0, 105, 4, 122, 3, 0, 104, 187, 0, 106,
3, 0, 111, 141, 0, 112, 142, 0, 0, 56,
130, 137, 135, 36, 0, 113, 4, 0, 0, 138,
122, 4, 0, 138, 4, 0, 0, 4, 0, 139,
122, 4, 0, 4, 0, 140, 122, 4, 0, 0,
4, 0, 141, 122, 4, 0, 4, 0, 142, 4,
0, 142, 122, 4, 0, 0, 144, 145, 0, 145,
146, 0, 0, 169, 0, 150, 0, 214, 0, 178,
0, 179, 0, 181, 0, 183, 0, 152, 0, 224,
0, 123, 0, 65, 37, 4, 124, 0, 66, 37,
130, 124, 0, 87, 37, 130, 124, 0, 52, 37,
4, 124, 0, 52, 37, 4, 122, 4, 122, 4,
124, 0, 54, 37, 4, 124, 0, 53, 0, 55,
0, 85, 37, 149, 124, 0, 0, 86, 147, 37,
149, 124, 0, 67, 37, 130, 124, 0, 0, 56,
130, 148, 145, 36, 0, 80, 37, 184, 124, 0,
112, 37, 142, 124, 0, 4, 0, 149, 122, 4,
0, 149, 4, 0, 5, 0, 149, 122, 5, 0,
149, 5, 0, 46, 49, 151, 50, 0, 151, 190,
0, 151, 152, 0, 0, 68, 37, 4, 124, 0,
167, 166, 0, 4, 0, 32, 0, 15, 0, 153,
0, 121, 37, 155, 124, 153, 0, 48, 37, 153,
124, 0, 48, 37, 121, 37, 155, 124, 153, 124,
0, 155, 153, 0, 153, 0, 156, 168, 154, 0,
154, 0, 4, 0, 125, 156, 126, 0, 154, 37,
156, 124, 0, 157, 0, 0, 120, 37, 159, 157,
124, 0, 167, 166, 0, 84, 0, 123, 0, 88,
0, 48, 37, 88, 124, 0, 158, 0, 163, 37,
185, 124, 0, 82, 37, 185, 124, 0, 161, 160,
0, 160, 0, 0, 161, 0, 41, 0, 42, 0,
43, 0, 44, 0, 45, 0, 10, 185, 0, 0,
6, 0, 7, 0, 8, 0, 9, 0, 11, 0,
12, 0, 13, 0, 14, 0, 123, 0, 122, 0,
4, 10, 185, 0, 4, 165, 185, 0, 91, 37,
4, 10, 185, 124, 0, 122, 0, 0, 57, 49,
171, 170, 50, 0, 170, 171, 0, 170, 122, 171,
0, 0, 0, 4, 172, 175, 16, 173, 168, 174,
0, 81, 10, 185, 0, 83, 10, 185, 0, 0,
37, 176, 124, 0, 177, 0, 176, 177, 0, 4,
0, 127, 4, 0, 75, 37, 130, 124, 0, 76,
37, 180, 124, 0, 76, 37, 124, 0, 180, 168,
130, 0, 130, 0, 77, 37, 182, 124, 0, 182,
168, 130, 0, 0, 78, 0, 79, 0, 0, 4,
184, 0, 4, 122, 184, 0, 0, 186, 187, 0,
31, 187, 0, 37, 187, 124, 0, 69, 37, 187,
124, 0, 127, 187, 0, 30, 187, 0, 128, 187,
0, 187, 32, 187, 0, 187, 33, 187, 0, 187,
34, 187, 0, 187, 30, 187, 0, 187, 31, 187,
0, 187, 28, 187, 0, 187, 29, 187, 0, 187,
22, 187, 0, 187, 23, 187, 0, 187, 26, 187,
0, 187, 27, 187, 0, 187, 24, 187, 0, 187,
25, 187, 0, 187, 21, 187, 0, 187, 20, 187,
0, 187, 19, 187, 0, 187, 15, 187, 16, 187,
0, 187, 18, 187, 0, 187, 17, 187, 0, 64,
37, 4, 124, 0, 3, 0, 51, 0, 70, 37,
4, 124, 0, 71, 37, 4, 124, 0, 72, 37,
4, 124, 0, 95, 37, 187, 124, 0, 38, 37,
187, 124, 0, 39, 37, 187, 124, 0, 4, 0,
73, 37, 187, 122, 187, 124, 0, 74, 37, 187,
122, 187, 124, 0, 101, 37, 187, 122, 4, 124,
0, 90, 25, 4, 0, 0, 90, 37, 187, 124,
0, 0, 0, 0, 0, 0, 0, 4, 191, 205,
189, 192, 49, 193, 162, 50, 194, 208, 188, 209,
164, 195, 168, 0, 0, 0, 0, 0, 0, 63,
196, 206, 207, 189, 197, 49, 198, 210, 50, 199,
208, 188, 209, 164, 200, 168, 0, 0, 0, 86,
201, 205, 202, 49, 151, 50, 0, 59, 0, 60,
0, 61, 0, 62, 0, 63, 0, 37, 203, 124,
0, 0, 37, 124, 0, 187, 204, 16, 0, 204,
16, 0, 40, 37, 187, 124, 204, 16, 0, 40,
37, 187, 124, 39, 37, 187, 124, 204, 16, 0,
187, 16, 0, 16, 0, 0, 80, 0, 25, 4,
0, 0, 0, 209, 16, 4, 0, 0, 0, 0,
0, 210, 4, 211, 49, 162, 50, 212, 209, 164,
213, 168, 0, 47, 49, 215, 50, 0, 0, 215,
216, 0, 0, 0, 4, 217, 219, 220, 218, 123,
0, 187, 0, 0, 4, 221, 220, 0, 90, 37,
187, 124, 220, 0, 0, 37, 187, 124, 0, 0,
223, 226, 0, 0, 225, 118, 49, 226, 50, 0,
227, 0, 226, 227, 0, 49, 229, 50, 123, 0,
114, 49, 229, 50, 123, 0, 114, 49, 229, 50,
228, 123, 0, 114, 0, 228, 114, 0, 0, 230,
123, 0, 116, 16, 230, 123, 0, 117, 16, 230,
123, 0, 116, 16, 230, 123, 117, 16, 230, 123,
0, 115, 0, 230, 123, 115, 0, 0, 112, 4,
49, 231, 230, 50, 0
};
#endif
#if YYDEBUG
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const short yyrline[] =
{
0, 155, 157, 158, 159, 163, 166, 166, 175, 175,
188, 190, 193, 195, 196, 199, 202, 203, 204, 206,
208, 210, 212, 214, 216, 218, 220, 222, 224, 226,
227, 228, 230, 232, 234, 236, 238, 239, 240, 240,
244, 246, 249, 251, 252, 255, 258, 261, 264, 268,
270, 271, 274, 277, 279, 283, 283, 294, 296, 301,
303, 304, 305, 306, 307, 308, 309, 310, 311, 312,
314, 316, 318, 321, 323, 325, 327, 329, 330, 330,
334, 336, 336, 340, 344, 347, 351, 354, 357, 360,
363, 368, 372, 374, 375, 378, 381, 386, 391, 395,
401, 408, 414, 420, 428, 437, 448, 457, 468, 477,
481, 487, 489, 489, 495, 497, 501, 502, 507, 512,
513, 518, 528, 530, 533, 535, 538, 541, 543, 545,
547, 551, 559, 564, 567, 569, 571, 573, 575, 577,
579, 584, 584, 588, 593, 601, 608, 609, 612, 616,
618, 619, 623, 623, 630, 638, 647, 650, 653, 655,
658, 661, 665, 670, 672, 676, 679, 684, 686, 689,
692, 695, 699, 704, 713, 724, 724, 729, 732, 734,
736, 738, 740, 743, 745, 747, 749, 751, 753, 755,
757, 759, 761, 763, 765, 767, 769, 771, 773, 775,
777, 779, 781, 783, 785, 788, 790, 792, 794, 796,
798, 800, 802, 804, 806, 811, 813, 816, 818, 821,
821, 821, 821, 821, 821, 838, 838, 838, 838, 838,
838, 855, 855, 855, 868, 870, 871, 872, 873, 876,
878, 879, 882, 884, 885, 890, 894, 896, 899, 902,
906, 909, 912, 917, 930, 932, 932, 932, 932, 948,
952, 954, 957, 957, 957, 967, 997, 1002, 1014, 1021,
1026, 1034, 1034, 1048, 1048, 1058, 1060, 1063, 1068, 1072,
1078, 1083, 1089, 1094, 1098, 1102, 1106, 1112, 1117, 1121,
1121
};
#endif
#if (YYDEBUG) || defined YYERROR_VERBOSE
/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */
static const char *const yytname[] =
{
"$", "error", "$undefined.", "INT", "NAME", "LNAME", "PLUSEQ", "MINUSEQ",
"MULTEQ", "DIVEQ", "'='", "LSHIFTEQ", "RSHIFTEQ", "ANDEQ", "OREQ",
"'?'", "':'", "OROR", "ANDAND", "'|'", "'^'", "'&'", "EQ", "NE", "'<'",
"'>'", "LE", "GE", "LSHIFT", "RSHIFT", "'+'", "'-'", "'*'", "'/'",
"'%'", "UNARY", "END", "'('", "ALIGN_K", "BLOCK", "BIND", "QUAD",
"SQUAD", "LONG", "SHORT", "BYTE", "SECTIONS", "PHDRS", "SORT", "'{'",
"'}'", "SIZEOF_HEADERS", "OUTPUT_FORMAT", "FORCE_COMMON_ALLOCATION",
"OUTPUT_ARCH", "INHIBIT_COMMON_ALLOCATION", "INCLUDE", "MEMORY",
"DEFSYMEND", "NOLOAD", "DSECT", "COPY", "INFO", "OVERLAY", "DEFINED",
"TARGET_K", "SEARCH_DIR", "MAP", "ENTRY", "NEXT", "SIZEOF", "ADDR",
"LOADADDR", "MAX_K", "MIN_K", "STARTUP", "HLL", "SYSLIB", "FLOAT",
"NOFLOAT", "NOCROSSREFS", "ORIGIN", "FILL", "LENGTH",
"CREATE_OBJECT_SYMBOLS", "INPUT", "GROUP", "OUTPUT", "CONSTRUCTORS",
"ALIGNMOD", "AT", "PROVIDE", "CHIP", "LIST", "SECT", "ABSOLUTE", "LOAD",
"NEWLINE", "ENDWORD", "ORDER", "NAMEWORD", "ASSERT_K", "FORMAT",
"PUBLIC", "BASE", "ALIAS", "TRUNCATE", "REL", "INPUT_SCRIPT",
"INPUT_MRI_SCRIPT", "INPUT_DEFSYM", "CASE", "EXTERN", "START",
"VERS_TAG", "VERS_IDENTIFIER", "GLOBAL", "LOCAL", "VERSIONK",
"INPUT_VERSION_SCRIPT", "KEEP", "EXCLUDE_FILE", "','", "';'", "')'",
"'['", "']'", "'!'", "'~'", "file", "filename", "defsym_expr", "@1",
"mri_script_file", "@2", "mri_script_lines", "mri_script_command", "@3",
"ordernamelist", "mri_load_name_list", "mri_abs_name_list",
"casesymlist", "extern_name_list", "script_file", "@4", "ifile_list",
"ifile_p1", "@5", "@6", "input_list", "sections", "sec_or_group_p1",
"statement_anywhere", "wildcard_name", "wildcard_spec",
"exclude_name_list", "file_NAME_list", "input_section_spec_no_keep",
"input_section_spec", "@7", "statement", "statement_list",
"statement_list_opt", "length", "fill_opt", "assign_op", "end",
"assignment", "opt_comma", "memory", "memory_spec_list", "memory_spec",
"@8", "origin_spec", "length_spec", "attributes_opt", "attributes_list",
"attributes_string", "startup", "high_level_library",
"high_level_library_NAME_list", "low_level_library",
"low_level_library_NAME_list", "floating_point_support",
"nocrossref_list", "mustbe_exp", "@9", "exp", "memspec_at_opt",
"opt_at", "section", "@10", "@11", "@12", "@13", "@14", "@15", "@16",
"@17", "@18", "@19", "@20", "@21", "type", "atype", "opt_exp_with_type",
"opt_exp_without_type", "opt_nocrossrefs", "memspec_opt", "phdr_opt",
"overlay_section", "@22", "@23", "@24", "phdrs", "phdr_list", "phdr",
"@25", "@26", "phdr_type", "phdr_qualifiers", "phdr_val",
"version_script_file", "@27", "version", "@28", "vers_nodes",
"vers_node", "verdep", "vers_tag", "vers_defns", "@29", NULL
};
#endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const short yyr1[] =
{
0, 129, 129, 129, 129, 130, 132, 131, 134, 133,
135, 135, 136, 136, 136, 136, 136, 136, 136, 136,
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
136, 136, 136, 136, 136, 136, 136, 136, 137, 136,
136, 136, 138, 138, 138, 139, 139, 140, 140, 141,
141, 141, 142, 142, 142, 144, 143, 145, 145, 146,
146, 146, 146, 146, 146, 146, 146, 146, 146, 146,
146, 146, 146, 146, 146, 146, 146, 146, 147, 146,
146, 148, 146, 146, 146, 149, 149, 149, 149, 149,
149, 150, 151, 151, 151, 152, 152, 153, 153, 153,
154, 154, 154, 154, 155, 155, 156, 156, 157, 157,
157, 158, 159, 158, 160, 160, 160, 160, 160, 160,
160, 160, 161, 161, 162, 162, 163, 163, 163, 163,
163, 164, 164, 165, 165, 165, 165, 165, 165, 165,
165, 166, 166, 167, 167, 167, 168, 168, 169, 170,
170, 170, 172, 171, 173, 174, 175, 175, 176, 176,
177, 177, 178, 179, 179, 180, 180, 181, 182, 182,
183, 183, 184, 184, 184, 186, 185, 187, 187, 187,
187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
187, 187, 187, 187, 187, 187, 187, 187, 187, 187,
187, 187, 187, 187, 187, 188, 188, 189, 189, 191,
192, 193, 194, 195, 190, 196, 197, 198, 199, 200,
190, 201, 202, 190, 203, 203, 203, 203, 203, 204,
204, 204, 205, 205, 205, 205, 206, 206, 207, 207,
208, 208, 209, 209, 210, 211, 212, 213, 210, 214,
215, 215, 217, 218, 216, 219, 220, 220, 220, 221,
221, 223, 222, 225, 224, 226, 226, 227, 227, 227,
228, 228, 229, 229, 229, 229, 229, 230, 230, 231,
230
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const short yyr2[] =
{
0, 2, 2, 2, 2, 1, 0, 4, 0, 2,
3, 0, 2, 4, 1, 1, 2, 1, 4, 4,
3, 2, 4, 3, 4, 4, 4, 4, 4, 2,
2, 2, 4, 4, 2, 2, 2, 2, 0, 5,
2, 0, 3, 2, 0, 1, 3, 1, 3, 0,
1, 3, 1, 2, 3, 0, 2, 2, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 4,
4, 4, 4, 8, 4, 1, 1, 4, 0, 5,
4, 0, 5, 4, 4, 1, 3, 2, 1, 3,
2, 4, 2, 2, 0, 4, 2, 1, 1, 1,
1, 5, 4, 8, 2, 1, 3, 1, 1, 3,
4, 1, 0, 5, 2, 1, 1, 1, 4, 1,
4, 4, 2, 1, 0, 1, 1, 1, 1, 1,
1, 2, 0, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 3, 3, 6, 1, 0, 5, 2,
3, 0, 0, 7, 3, 3, 0, 3, 1, 2,
1, 2, 4, 4, 3, 3, 1, 4, 3, 0,
1, 1, 0, 2, 3, 0, 2, 2, 3, 4,
2, 2, 2, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 5,
3, 3, 4, 1, 1, 4, 4, 4, 4, 4,
4, 1, 6, 6, 6, 3, 0, 4, 0, 0,
0, 0, 0, 0, 16, 0, 0, 0, 0, 0,
17, 0, 0, 7, 1, 1, 1, 1, 1, 3,
0, 2, 3, 2, 6, 10, 2, 1, 0, 1,
2, 0, 0, 3, 0, 0, 0, 0, 11, 4,
0, 2, 0, 0, 6, 1, 0, 3, 5, 0,
3, 0, 2, 0, 5, 1, 2, 4, 5, 6,
1, 2, 0, 2, 4, 4, 8, 1, 3, 0,
6
};
/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
doesn't specify something else to do. Zero means the default is an
error. */
static const short yydefact[] =
{
0, 55, 8, 6, 271, 1, 58, 2, 11, 4,
0, 3, 0, 56, 9, 0, 282, 0, 272, 275,
0, 0, 0, 0, 75, 0, 76, 0, 0, 0,
0, 0, 0, 0, 0, 0, 170, 171, 0, 0,
78, 0, 0, 0, 68, 57, 60, 66, 0, 59,
62, 63, 64, 65, 61, 67, 0, 14, 0, 0,
0, 0, 15, 0, 0, 0, 17, 44, 0, 0,
0, 0, 0, 0, 49, 0, 0, 0, 0, 0,
287, 0, 0, 0, 0, 282, 276, 133, 134, 135,
136, 175, 137, 138, 139, 140, 175, 94, 260, 0,
0, 5, 81, 0, 0, 0, 0, 0, 0, 0,
169, 172, 0, 0, 0, 0, 0, 142, 141, 96,
0, 0, 38, 0, 203, 211, 0, 0, 0, 0,
0, 204, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 12, 0, 47, 29, 45, 30, 16,
31, 21, 0, 34, 0, 35, 50, 36, 52, 37,
40, 10, 7, 0, 0, 0, 0, 283, 0, 143,
0, 144, 0, 0, 0, 0, 58, 152, 151, 0,
0, 0, 0, 0, 164, 166, 147, 147, 172, 0,
85, 88, 0, 0, 0, 0, 0, 0, 0, 0,
11, 0, 0, 181, 177, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 180, 182, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 23, 0, 0, 43, 0, 0, 0, 20, 0,
0, 53, 0, 289, 0, 0, 277, 288, 0, 176,
219, 91, 225, 231, 93, 92, 262, 259, 261, 0,
72, 74, 273, 156, 0, 69, 70, 80, 95, 162,
146, 163, 0, 167, 0, 172, 173, 83, 87, 90,
0, 77, 0, 71, 175, 84, 0, 25, 26, 41,
27, 28, 178, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 201, 200, 198, 197, 196,
190, 191, 194, 195, 192, 193, 188, 189, 186, 187,
183, 184, 185, 13, 24, 22, 48, 46, 42, 18,
19, 33, 32, 51, 54, 0, 284, 285, 280, 278,
0, 240, 0, 240, 0, 0, 82, 0, 0, 148,
0, 149, 165, 168, 174, 86, 89, 79, 0, 274,
39, 209, 210, 202, 179, 205, 206, 207, 0, 0,
208, 0, 0, 0, 0, 281, 279, 0, 0, 240,
0, 218, 247, 0, 248, 232, 265, 266, 0, 160,
0, 0, 158, 0, 150, 145, 0, 0, 0, 199,
290, 0, 0, 234, 235, 236, 237, 238, 241, 0,
0, 0, 0, 243, 0, 220, 246, 249, 218, 0,
269, 0, 263, 0, 161, 157, 159, 0, 147, 212,
213, 214, 0, 239, 0, 242, 0, 0, 226, 94,
0, 266, 0, 0, 73, 175, 0, 286, 240, 0,
221, 0, 0, 0, 267, 0, 264, 154, 0, 153,
0, 0, 217, 124, 227, 233, 270, 266, 175, 0,
244, 108, 99, 98, 126, 127, 128, 129, 130, 0,
0, 115, 117, 0, 0, 116, 0, 100, 0, 111,
119, 123, 125, 0, 0, 0, 254, 268, 155, 0,
0, 175, 112, 0, 97, 0, 107, 147, 0, 122,
222, 175, 114, 0, 240, 0, 0, 0, 0, 0,
105, 0, 0, 109, 0, 147, 251, 0, 255, 228,
0, 118, 0, 102, 121, 97, 0, 0, 104, 106,
110, 0, 216, 120, 0, 251, 245, 0, 113, 101,
250, 0, 252, 124, 216, 0, 0, 132, 0, 252,
0, 215, 175, 0, 223, 256, 132, 103, 131, 253,
147, 252, 229, 224, 132, 147, 257, 230, 147, 258,
0, 0, 0
};
static const short yydefgoto[] =
{
590, 102, 9, 10, 7, 8, 14, 77, 200, 149,
148, 146, 157, 159, 5, 6, 13, 45, 113, 176,
192, 46, 172, 47, 497, 498, 531, 517, 499, 500,
529, 501, 502, 503, 504, 574, 96, 119, 48, 534,
49, 274, 178, 273, 438, 469, 358, 401, 402, 50,
51, 186, 52, 187, 53, 189, 169, 170, 205, 562,
425, 265, 351, 447, 473, 536, 580, 352, 461, 506,
555, 585, 353, 429, 419, 390, 391, 394, 428, 552,
567, 523, 554, 581, 588, 54, 173, 268, 354, 453,
397, 432, 451, 11, 12, 55, 56, 18, 19, 350,
83, 84, 345
};
static const short yypact[] =
{
96,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
47,-32768, -25, 561, 618, 53, 7, 21, -25,-32768,
340, 57, 66, 83,-32768, 106,-32768, 90, 108, 147,
153, 175, 188, 207, 210, 221,-32768,-32768, 223, 228,
-32768, 229, 230, 231,-32768,-32768,-32768,-32768, 74,-32768,
-32768,-32768,-32768,-32768,-32768,-32768, 151,-32768, 266, 90,
268, 482,-32768, 269, 271, 272,-32768,-32768, 273, 274,
277, 482, 286, 293, 295, 296, 297, 205, 482, 301,
-32768, 298, 300, 260, 190, 7,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 307,
308,-32768,-32768, 313, 316, 90, 90, 317, 90, 16,
-32768, 319, 203, 289, 90, 323, 296,-32768,-32768,-32768,
279, 36,-32768, 73,-32768,-32768, 482, 482, 482, 292,
302,-32768, 303, 304, 318, 320, 324, 325, 333, 334,
335, 482, 482, 1063, 294,-32768, 208,-32768, 212, 9,
-32768,-32768, 305, 1169, 215,-32768,-32768, 216,-32768, 29,
-32768,-32768, 1169, 331, 2, 2, 250, 270, 337,-32768,
482,-32768, 25, 19, -84, 257,-32768,-32768,-32768, 259,
264, 267, 275, 281,-32768,-32768, 104, 110, 30, 283,
-32768,-32768, 26, 203, 284, 374, 70, -25, 482, 482,
-32768, 482, 482,-32768,-32768, 739, 482, 482, 389, 482,
390, 393, 394, 482, 482, 482, 482,-32768,-32768, 482,
482, 482, 482, 482, 482, 482, 482, 482, 482, 482,
482, 482, 482, 482, 482, 482, 482, 482, 482, 482,
482, 1169, 405, 406,-32768, 407, 482, 482, 1169, 233,
408,-32768, 413,-32768, 311, 312,-32768,-32768, -73, 1169,
340,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 414,
-32768,-32768, 615, 383, 23,-32768,-32768,-32768,-32768,-32768,
-32768,-32768, 90,-32768, 90, 319,-32768,-32768,-32768,-32768,
258,-32768, 67,-32768,-32768,-32768, -13, 1169, 1169, 699,
1169, 1169,-32768, 798, 818, 299, 847, 321, 322, 327,
1083, 1103, 867, 1123, 1231, 905, 1187, 719, 753, 1204,
1262, 1262, 255, 255, 255, 255, 189, 189, 95, 95,
-32768,-32768,-32768, 1169, 1169, 1169,-32768,-32768,-32768, 1169,
1169,-32768,-32768,-32768,-32768, 2, 118, 270,-32768,-32768,
-23, 399, 410, 399, 482, 306,-32768, 8, 415,-32768,
313,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 328,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 482, 482,
-32768, 420, 482, -28, 426,-32768,-32768, 179, 416, 1144,
427, 354,-32768, 1251, 375,-32768, 1169, 17, 450,-32768,
452, 6,-32768, 376,-32768,-32768, 887, 926, 336, 1169,
-32768, 270, 2,-32768,-32768,-32768,-32768,-32768,-32768, 338,
482, 140, 442,-32768, 422,-32768,-32768,-32768, 354, 417,
428, 430,-32768, 351,-32768,-32768,-32768, 454, 355,-32768,
-32768,-32768, 364,-32768, 955,-32768, 482, 429,-32768,-32768,
482, 17, 482, 365,-32768,-32768, 409, 270, 174, 975,
-32768, 440, 35, 995,-32768, 1015,-32768,-32768, 480,-32768,
456, 475,-32768, 500,-32768,-32768,-32768, 17,-32768, 482,
-32768, 560,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 458,
459,-32768,-32768, 460, 461,-32768, 64,-32768, 462,-32768,
-32768,-32768, 500, 451, 465, 74,-32768,-32768,-32768, 1036,
93,-32768,-32768, 45,-32768, 466,-32768, -64, 64,-32768,
-32768,-32768,-32768, 40, 469, 384, 470, 385, 386, 11,
-32768, 10, 72,-32768, 64, 135, 489, 392,-32768,-32768,
501,-32768, 45,-32768,-32768, 398, 400, 45,-32768,-32768,
-32768, 514, 433,-32768, 476, 489,-32768, 13,-32768,-32768,
-32768, 503,-32768, 500, 433, 45, 525, 89, 481,-32768,
411,-32768,-32768, 526,-32768,-32768, 89,-32768,-32768,-32768,
355,-32768,-32768,-32768, 89, 355,-32768,-32768, 355,-32768,
534, 536,-32768
};
static const short yypgoto[] =
{
-32768, -53,-32768,-32768,-32768,-32768, 339,-32768,-32768,-32768,
-32768,-32768,-32768, 424,-32768,-32768, 371,-32768,-32768,-32768,
356,-32768, 101, -167, -286, -432, 15, 41, 31,-32768,
-32768, 56,-32768, -2,-32768, -519,-32768, 58, -454, -184,
-32768,-32768, -242,-32768,-32768,-32768,-32768,-32768, 161,-32768,
-32768,-32768,-32768,-32768,-32768, -172, -96,-32768, -60, 0,
148,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768, -380, 222,-32768,-32768, 24,
-534,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768, -397,-32768,-32768,-32768,-32768,-32768, 381, -14,-32768,
495, -157,-32768
};
#define YYLAST 1296
static const short yytable[] =
{
171, 143, 282, 284, 86, 264, 122, 254, 255, 422,
399, 153, 399, 244, 514, 545, 286, 514, 162, 505,
101, 430, 410, 266, 16, 482, 482, 177, 482, 260,
288, 289, 361, 251, 188, 576, 16, 369, 269, 260,
270, 348, 483, 483, 538, 483, 198, 584, 505, 514,
349, 15, 180, 181, 464, 183, 185, 582, 280, 515,
482, 194, 533, 78, 516, 586, 203, 204, 514, 267,
85, 288, 289, 359, 251, 261, 514, 483, 471, 482,
507, 217, 218, 201, 241, 475, 516, 482, 262, 17,
539, 385, 248, 32, 101, 411, 483, 514, 262, 572,
386, 17, 549, 32, 483, 573, 97, 431, 482, 505,
259, 263, 515, 364, 79, 98, 42, 80, 404, 79,
99, 263, 80, 81, 82, 483, 42, 235, 236, 237,
435, 245, 494, 400, 547, 400, 496, 565, 297, 298,
184, 300, 301, 100, 540, 360, 303, 304, 290, 306,
291, 252, 285, 310, 311, 312, 313, 103, 199, 314,
315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
335, 525, 124, 125, 104, 494, 339, 340, 383, 290,
105, 367, 252, 526, 295, 202, 117, 118, 368, 413,
414, 415, 416, 417, 1, 2, 3, 190, 191, 126,
127, 421, 106, 470, 526, 4, 128, 129, 130, 233,
234, 235, 236, 237, 527, 107, 280, 530, 281, 362,
131, 363, 280, 257, 283, 384, 341, 342, 413, 414,
415, 416, 417, 132, 108, 548, 527, 109, 133, 134,
135, 136, 137, 138, 456, 442, 530, 280, 110, 550,
111, 559, 365, 366, 418, 112, 114, 115, 116, 120,
121, 548, 123, 144, 139, 145, 147, 150, 151, 570,
140, 152, 86, 231, 232, 233, 234, 235, 236, 237,
154, 389, 393, 389, 396, 264, 155, 124, 125, 156,
158, 160, 161, 418, 239, 163, 141, 142, 124, 125,
166, 174, 175, 167, 164, 246, 165, 177, 406, 407,
179, 182, 409, 188, 126, 127, 193, 195, 197, 206,
242, 128, 129, 130, 243, 126, 127, 249, 250, 207,
208, 209, 128, 129, 130, 131, 87, 88, 89, 90,
91, 92, 93, 94, 95, 210, 131, 211, 132, 467,
444, 212, 213, 133, 134, 135, 136, 137, 138, 132,
214, 215, 216, 256, 133, 134, 135, 136, 137, 138,
253, 271, 508, 275, 294, 257, 459, 258, 276, 139,
463, 277, 465, 305, 307, 140, 583, 308, 309, 278,
139, 587, 124, 125, 589, 279, 140, 287, 293, 336,
337, 338, 343, 124, 125, 528, 240, 344, 355, 509,
357, 141, 142, 373, 408, 537, 392, 247, 398, 126,
127, 403, 141, 142, 346, 347, 387, 129, 130, 388,
126, 127, 412, 423, 424, 375, 376, 128, 129, 130,
131, 377, 405, 420, 433, 427, 434, 437, 445, 446,
441, 131, 443, 132, 455, 450, 449, 452, 133, 134,
135, 136, 137, 138, 132, 454, 578, 280, 460, 133,
134, 135, 136, 137, 138, 124, 125, 457, 466, 474,
478, 480, 468, 479, 139, 510, 511, 512, 513, 518,
140, 520, 521, 532, 481, 139, 421, 542, 541, 543,
544, 140, 126, 127, 551, 482, 553, 556, 560, 128,
129, 130, -108, 561, 558, 563, 141, 142, 566, 571,
579, 575, 483, 131, 591, 577, 592, 141, 142, 299,
196, 484, 485, 486, 487, 488, 132, 272, 489, 292,
462, 133, 134, 135, 136, 137, 138, 557, 519, 535,
546, 568, 436, 522, 569, 20, 87, 88, 89, 90,
91, 92, 93, 94, 95, 395, 448, 139, 296, 564,
168, 0, 490, 140, 491, 0, 0, 0, 492, 0,
0, 42, 0, 0, 0, 0, 0, -97, 0, 0,
0, 0, 0, 0, 0, 0, 0, 21, 22, 141,
142, 0, 0, 23, 24, 25, 26, 27, 28, 20,
493, 494, 57, 495, 0, 496, 29, 30, 31, 32,
0, 0, 0, 0, 0, 0, 33, 34, 35, 36,
37, 38, 0, 0, 0, 0, 39, 40, 41, 0,
0, 356, 42, 0, 0, 0, 58, 0, 0, 0,
0, 21, 22, 0, 0, 0, 0, 23, 24, 25,
26, 27, 28, 43, 59, 0, 0, 0, 0, -273,
29, 30, 31, 32, 44, 0, 0, 0, 0, 0,
33, 34, 35, 36, 37, 38, 0, 0, 0, 0,
39, 40, 41, 57, 0, 0, 42, 60, 0, 0,
61, 62, 63, 64, 65, -41, 66, 67, 68, 0,
69, 70, 71, 72, 73, 0, 0, 43, 0, 74,
75, 76, 0, 0, 0, 370, 0, 58, 44, 223,
224, 225, 226, 227, 228, 229, 230, 231, 232, 233,
234, 235, 236, 237, 219, 59, 220, 221, 222, 223,
224, 225, 226, 227, 228, 229, 230, 231, 232, 233,
234, 235, 236, 237, 224, 225, 226, 227, 228, 229,
230, 231, 232, 233, 234, 235, 236, 237, 60, 0,
0, 61, 62, 63, 64, 65, 0, 66, 67, 68,
0, 69, 70, 71, 72, 73, 0, 0, 0, 0,
74, 75, 76, 219, 0, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234,
235, 236, 237, 219, 0, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 230, 231, 232, 233, 234,
235, 236, 237, 0, 0, 0, 0, 0, 0, 0,
0, 0, 219, 302, 220, 221, 222, 223, 224, 225,
226, 227, 228, 229, 230, 231, 232, 233, 234, 235,
236, 237, 219, 0, 220, 221, 222, 223, 224, 225,
226, 227, 228, 229, 230, 231, 232, 233, 234, 235,
236, 237, 219, 0, 220, 221, 222, 223, 224, 225,
226, 227, 228, 229, 230, 231, 232, 233, 234, 235,
236, 237, 371, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
0, 219, 372, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
237, 0, 0, 0, 0, 0, 0, 0, 0, 0,
219, 374, 220, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
219, 380, 220, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
219, 439, 220, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
219, 0, 220, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
440, 219, 0, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
237, 0, 0, 0, 0, 0, 0, 0, 219, 458,
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 232, 233, 234, 235, 236, 237, 219, 472,
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 232, 233, 234, 235, 236, 237, 219, 476,
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 232, 233, 234, 235, 236, 237, 219, 477,
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 232, 233, 234, 235, 236, 237, 0, 219,
524, 220, 221, 222, 223, 224, 225, 226, 227, 228,
229, 230, 231, 232, 233, 234, 235, 236, 237, 0,
0, 421, 0, 0, 219, 238, 220, 221, 222, 223,
224, 225, 226, 227, 228, 229, 230, 231, 232, 233,
234, 235, 236, 237, 0, 378, 222, 223, 224, 225,
226, 227, 228, 229, 230, 231, 232, 233, 234, 235,
236, 237, 0, 0, 0, 379, 225, 226, 227, 228,
229, 230, 231, 232, 233, 234, 235, 236, 237, 0,
0, 0, 0, 0, 0, 381, 219, 382, 220, 221,
222, 223, 224, 225, 226, 227, 228, 229, 230, 231,
232, 233, 234, 235, 236, 237, 219, 426, 220, 221,
222, 223, 224, 225, 226, 227, 228, 229, 230, 231,
232, 233, 234, 235, 236, 237, 227, 228, 229, 230,
231, 232, 233, 234, 235, 236, 237
};
static const short yycheck[] =
{
96, 61, 186, 187, 18, 172, 59, 164, 165, 389,
4, 71, 4, 4, 4, 4, 188, 4, 78, 473,
4, 4, 50, 4, 49, 15, 15, 4, 15, 4,
4, 5, 274, 4, 4, 569, 49, 50, 122, 4,
124, 114, 32, 32, 4, 32, 10, 581, 502, 4,
123, 4, 105, 106, 451, 108, 109, 576, 122, 48,
15, 114, 126, 10, 496, 584, 126, 127, 4, 50,
49, 4, 5, 50, 4, 50, 4, 32, 458, 15,
477, 141, 142, 10, 144, 50, 518, 15, 63, 114,
50, 114, 152, 68, 4, 123, 32, 4, 63, 10,
123, 114, 534, 68, 32, 16, 49, 90, 15, 563,
170, 86, 48, 285, 112, 49, 91, 115, 360, 112,
37, 86, 115, 116, 117, 32, 91, 32, 33, 34,
124, 122, 121, 127, 124, 127, 125, 124, 198, 199,
124, 201, 202, 37, 524, 122, 206, 207, 122, 209,
124, 122, 122, 213, 214, 215, 216, 49, 122, 219,
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 88, 3, 4, 37, 121, 246, 247, 345, 122,
37, 124, 122, 121, 124, 122, 122, 123, 294, 59,
60, 61, 62, 63, 108, 109, 110, 4, 5, 30,
31, 37, 37, 39, 121, 119, 37, 38, 39, 30,
31, 32, 33, 34, 510, 37, 122, 513, 124, 282,
51, 284, 122, 115, 124, 117, 3, 4, 59, 60,
61, 62, 63, 64, 37, 531, 532, 37, 69, 70,
71, 72, 73, 74, 438, 412, 542, 122, 37, 124,
37, 547, 4, 5, 124, 37, 37, 37, 37, 118,
4, 557, 4, 4, 95, 4, 4, 4, 4, 565,
101, 4, 296, 28, 29, 30, 31, 32, 33, 34,
4, 351, 352, 353, 354, 462, 3, 3, 4, 4,
4, 4, 97, 124, 10, 4, 127, 128, 3, 4,
50, 4, 4, 123, 16, 10, 16, 4, 378, 379,
4, 4, 382, 4, 30, 31, 37, 4, 49, 37,
122, 37, 38, 39, 122, 30, 31, 122, 122, 37,
37, 37, 37, 38, 39, 51, 6, 7, 8, 9,
10, 11, 12, 13, 14, 37, 51, 37, 64, 455,
420, 37, 37, 69, 70, 71, 72, 73, 74, 64,
37, 37, 37, 123, 69, 70, 71, 72, 73, 74,
49, 124, 478, 124, 10, 115, 446, 50, 124, 95,
450, 124, 452, 4, 4, 101, 580, 4, 4, 124,
95, 585, 3, 4, 588, 124, 101, 124, 124, 4,
4, 4, 4, 3, 4, 511, 122, 4, 4, 479,
37, 127, 128, 124, 4, 521, 16, 122, 122, 30,
31, 16, 127, 128, 123, 123, 37, 38, 39, 40,
30, 31, 16, 16, 90, 124, 124, 37, 38, 39,
51, 124, 124, 37, 4, 80, 4, 81, 16, 37,
124, 51, 124, 64, 10, 37, 49, 37, 69, 70,
71, 72, 73, 74, 64, 124, 572, 122, 49, 69,
70, 71, 72, 73, 74, 3, 4, 123, 123, 49,
10, 16, 83, 37, 95, 37, 37, 37, 37, 37,
101, 50, 37, 37, 4, 95, 37, 37, 124, 124,
124, 101, 30, 31, 25, 15, 124, 16, 4, 37,
38, 39, 124, 90, 124, 49, 127, 128, 25, 4,
4, 50, 32, 51, 0, 124, 0, 127, 128, 200,
116, 41, 42, 43, 44, 45, 64, 176, 48, 193,
449, 69, 70, 71, 72, 73, 74, 542, 502, 518,
529, 563, 401, 505, 564, 4, 6, 7, 8, 9,
10, 11, 12, 13, 14, 353, 428, 95, 197, 555,
85, -1, 82, 101, 84, -1, -1, -1, 88, -1,
-1, 91, -1, -1, -1, -1, -1, 37, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 46, 47, 127,
128, -1, -1, 52, 53, 54, 55, 56, 57, 4,
120, 121, 4, 123, -1, 125, 65, 66, 67, 68,
-1, -1, -1, -1, -1, -1, 75, 76, 77, 78,
79, 80, -1, -1, -1, -1, 85, 86, 87, -1,
-1, 36, 91, -1, -1, -1, 38, -1, -1, -1,
-1, 46, 47, -1, -1, -1, -1, 52, 53, 54,
55, 56, 57, 112, 56, -1, -1, -1, -1, 118,
65, 66, 67, 68, 123, -1, -1, -1, -1, -1,
75, 76, 77, 78, 79, 80, -1, -1, -1, -1,
85, 86, 87, 4, -1, -1, 91, 89, -1, -1,
92, 93, 94, 95, 96, 97, 98, 99, 100, -1,
102, 103, 104, 105, 106, -1, -1, 112, -1, 111,
112, 113, -1, -1, -1, 36, -1, 38, 123, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33, 34, 15, 56, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33, 34, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, 89, -1,
-1, 92, 93, 94, 95, 96, -1, 98, 99, 100,
-1, 102, 103, 104, 105, 106, -1, -1, -1, -1,
111, 112, 113, 15, -1, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 15, -1, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 15, 124, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 15, -1, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 15, -1, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 124, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
-1, 15, 124, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
34, -1, -1, -1, -1, -1, -1, -1, -1, -1,
15, 124, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
15, 124, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
15, 124, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
15, -1, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
124, 15, -1, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
34, -1, -1, -1, -1, -1, -1, -1, 15, 124,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, 15, 124,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, 15, 124,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, 15, 124,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, -1, 15,
124, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, -1,
-1, 37, -1, -1, 15, 122, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33, 34, -1, 122, 19, 20, 21, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, -1, -1, -1, 122, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, -1,
-1, -1, -1, -1, -1, 122, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34
};
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
#line 3 "/usr/share/bison/bison.simple"
/* Skeleton output parser for bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, 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. */
/* This is the parser code that is written into each bison parser when
the %semantic_parser declaration is not specified in the grammar.
It was written by Richard Stallman by simplifying the hairy parser
used when %semantic_parser is specified. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
#ifdef __cplusplus
# define YYSTD(x) std::x
#else
# define YYSTD(x) x
#endif
#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
/* The parser invokes alloca or malloc; define the necessary symbols. */
# if YYSTACK_USE_ALLOCA
# define YYSTACK_ALLOC alloca
# else
# ifndef YYSTACK_USE_ALLOCA
# if defined (alloca) || defined (_ALLOCA_H)
# define YYSTACK_ALLOC alloca
# else
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's `empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
# ifdef __cplusplus
# include <cstdlib> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T std::size_t
# else
# ifdef __STDC__
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# endif
# endif
# define YYSTACK_ALLOC YYSTD (malloc)
# define YYSTACK_FREE YYSTD (free)
# endif
/* A type that is properly aligned for any stack member. */
union yyalloc
{
short yyss;
YYSTYPE yyvs;
# if YYLSP_NEEDED
YYLTYPE yyls;
# endif
};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# if YYLSP_NEEDED
# define YYSTACK_BYTES(N) \
((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
+ 2 * YYSTACK_GAP_MAX)
# else
# define YYSTACK_BYTES(N) \
((N) * (sizeof (short) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAX)
# endif
/* Relocate the TYPE STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Type, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
yymemcpy ((char *) yyptr, (char *) (Stack), \
yysize * (YYSIZE_T) sizeof (Type)); \
Stack = &yyptr->Stack; \
yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (0)
#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# define YYSIZE_T __SIZE_TYPE__
#endif
#if ! defined (YYSIZE_T) && defined (size_t)
# define YYSIZE_T size_t
#endif
#if ! defined (YYSIZE_T)
# ifdef __cplusplus
# include <cstddef> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T std::size_t
# else
# ifdef __STDC__
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# endif
# endif
#endif
#if ! defined (YYSIZE_T)
# define YYSIZE_T unsigned int
#endif
#define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYEMPTY -2
#define YYEOF 0
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrlab1
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
Once GCC version 2 has supplanted version 1, this can go. */
#define YYFAIL goto yyerrlab
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
yychar1 = YYTRANSLATE (yychar); \
YYPOPSTACK; \
goto yybackup; \
} \
else \
{ \
yyerror ("syntax error: cannot back up"); \
YYERROR; \
} \
while (0)
#define YYTERROR 1
#define YYERRCODE 256
/* YYLLOC_DEFAULT -- Compute the default location (before the actions
are run).
When YYLLOC_DEFAULT is run, CURRENT is set the location of the
first token. By default, to implement support for ranges, extend
its range to the last symbol. */
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N) \
Current.last_line = Rhs[N].last_line; \
Current.last_column = Rhs[N].last_column;
#endif
/* YYLEX -- calling `yylex' with the right arguments. */
#if YYPURE
# if YYLSP_NEEDED
# ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
# else
# define YYLEX yylex (&yylval, &yylloc)
# endif
# else /* !YYLSP_NEEDED */
# ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, YYLEX_PARAM)
# else
# define YYLEX yylex (&yylval)
# endif
# endif /* !YYLSP_NEEDED */
#else /* !YYPURE */
# define YYLEX yylex ()
#endif /* !YYPURE */
/* Enable debugging if requested. */
#if YYDEBUG
# ifndef YYFPRINTF
# ifdef __cplusplus
# include <cstdio> /* INFRINGES ON USER NAME SPACE */
# else
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
# endif
# define YYFPRINTF YYSTD (fprintf)
# endif
# define YYDPRINTF(Args) \
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (0)
/* Nonzero means print parse trace. [The following comment makes no
sense to me. Could someone clarify it? --akim] Since this is
uninitialized, it does not stop multiple parsers from coexisting.
*/
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
#endif /* !YYDEBUG */
/* YYINITDEPTH -- initial size of the parser's stacks. */
#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
if the built-in stack extension method is used).
Do not make this value too large; the results are undefined if
SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
evaluated with infinite-precision integer arithmetic. */
#if YYMAXDEPTH == 0
# undef YYMAXDEPTH
#endif
#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif
#if ! defined (yyoverflow) && ! defined (yymemcpy)
# if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
# define yymemcpy __builtin_memcpy
# else /* not GNU C or C++ */
/* This is the most reliable way to avoid incompatibilities
in available built-in functions on various systems. */
static void
# if defined (__STDC__) || defined (__cplusplus)
yymemcpy (char *yyto, const char *yyfrom, YYSIZE_T yycount)
# else
yymemcpy (yyto, yyfrom, yycount)
char *yyto;
const char *yyfrom;
YYSIZE_T yycount;
# endif
{
register const char *yyf = yyfrom;
register char *yyt = yyto;
register YYSIZE_T yyi = yycount;
while (yyi-- != 0)
*yyt++ = *yyf++;
}
# endif
#endif
#ifdef YYERROR_VERBOSE
# ifndef yystrlen
# if defined (__GLIBC__) && defined (_STRING_H)
# define yystrlen strlen
# else
/* Return the length of YYSTR. */
static YYSIZE_T
# if defined (__STDC__) || defined (__cplusplus)
yystrlen (const char *yystr)
# else
yystrlen (yystr)
const char *yystr;
# endif
{
register const char *yys = yystr;
while (*yys++ != '\0')
continue;
return yys - yystr - 1;
}
# endif
# endif
# ifndef yystpcpy
# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
# define yystpcpy stpcpy
# else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
static char *
# if defined (__STDC__) || defined (__cplusplus)
yystpcpy (char *yydest, const char *yysrc)
# else
yystpcpy (yydest, yysrc)
char *yydest;
const char *yysrc;
# endif
{
register char *yyd = yydest;
register const char *yys = yysrc;
while ((*yyd++ = *yys++) != '\0')
continue;
return yyd - 1;
}
# endif
# endif
#endif
#line 341 "/usr/share/bison/bison.simple"
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
into yyparse. The argument should have type void *.
It should actually point to an object.
Grammar actions can access the variable by casting it
to the proper pointer type. */
#ifdef YYPARSE_PARAM
# ifdef __cplusplus
# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
# define YYPARSE_PARAM_DECL
# else /* !__cplusplus */
# define YYPARSE_PARAM_ARG YYPARSE_PARAM
# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
# endif /* !__cplusplus */
#else /* !YYPARSE_PARAM */
# define YYPARSE_PARAM_ARG
# define YYPARSE_PARAM_DECL
#endif /* !YYPARSE_PARAM */
/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
# ifdef YYPARSE_PARAM
int yyparse (void *);
# else
int yyparse (void);
# endif
#endif
/* YY_DECL_VARIABLES -- depending whether we use a pure parser,
variables are global, or local to YYPARSE. */
#define YY_DECL_NON_LSP_VARIABLES \
/* The lookahead symbol. */ \
int yychar; \
\
/* The semantic value of the lookahead symbol. */ \
YYSTYPE yylval; \
\
/* Number of parse errors so far. */ \
int yynerrs;
#if YYLSP_NEEDED
# define YY_DECL_VARIABLES \
YY_DECL_NON_LSP_VARIABLES \
\
/* Location data for the lookahead symbol. */ \
YYLTYPE yylloc;
#else
# define YY_DECL_VARIABLES \
YY_DECL_NON_LSP_VARIABLES
#endif
/* If nonreentrant, generate the variables here. */
#if !YYPURE
YY_DECL_VARIABLES
#endif /* !YYPURE */
int
yyparse (YYPARSE_PARAM_ARG)
YYPARSE_PARAM_DECL
{
/* If reentrant, generate the variables here. */
#if YYPURE
YY_DECL_VARIABLES
#endif /* !YYPURE */
register int yystate;
register int yyn;
int yyresult;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
/* Lookahead token as an internal (translated) token number. */
int yychar1 = 0;
/* Three stacks and their tools:
`yyss': related to states,
`yyvs': related to semantic values,
`yyls': related to locations.
Refer to the stacks thru separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* The state stack. */
short yyssa[YYINITDEPTH];
short *yyss = yyssa;
register short *yyssp;
/* The semantic value stack. */
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs = yyvsa;
register YYSTYPE *yyvsp;
#if YYLSP_NEEDED
/* The location stack. */
YYLTYPE yylsa[YYINITDEPTH];
YYLTYPE *yyls = yylsa;
YYLTYPE *yylsp;
#endif
#if YYLSP_NEEDED
# define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
#else
# define YYPOPSTACK (yyvsp--, yyssp--)
#endif
YYSIZE_T yystacksize = YYINITDEPTH;
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
#if YYLSP_NEEDED
YYLTYPE yyloc;
#endif
/* When reducing, the number of symbols on the RHS of the reduced
rule. */
int yylen;
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
yychar = YYEMPTY; /* Cause a token to be read. */
/* Initialize stack pointers.
Waste one element of value and location stack
so that they stay on the same level as the state stack.
The wasted elements are never initialized. */
yyssp = yyss;
yyvsp = yyvs;
#if YYLSP_NEEDED
yylsp = yyls;
#endif
goto yysetstate;
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate. |
`------------------------------------------------------------*/
yynewstate:
/* In all cases, when you get here, the value and location stacks
have just been pushed. so pushing a state here evens the stacks.
*/
yyssp++;
yysetstate:
*yyssp = yystate;
if (yyssp >= yyss + yystacksize - 1)
{
/* Get the current used size of the three stacks, in elements. */
YYSIZE_T yysize = yyssp - yyss + 1;
#ifdef yyoverflow
{
/* Give user a chance to reallocate the stack. Use copies of
these so that the &'s don't force the real ones into
memory. */
YYSTYPE *yyvs1 = yyvs;
short *yyss1 = yyss;
/* Each stack pointer address is followed by the size of the
data in use in that stack, in bytes. */
# if YYLSP_NEEDED
YYLTYPE *yyls1 = yyls;
/* This used to be a conditional around just the two extra args,
but that might be undefined if yyoverflow is a macro. */
yyoverflow ("parser stack overflow",
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
&yyls1, yysize * sizeof (*yylsp),
&yystacksize);
yyls = yyls1;
# else
yyoverflow ("parser stack overflow",
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
&yystacksize);
# endif
yyss = yyss1;
yyvs = yyvs1;
}
#else /* no yyoverflow */
/* Extend the stack our own way. */
if (yystacksize >= YYMAXDEPTH)
goto yyoverflowlab;
yystacksize *= 2;
if (yystacksize > YYMAXDEPTH)
yystacksize = YYMAXDEPTH;
{
short *yyss1 = yyss;
union yyalloc *yyptr =
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
if (! yyptr)
goto yyoverflowlab;
YYSTACK_RELOCATE (short, yyss);
YYSTACK_RELOCATE (YYSTYPE, yyvs);
# if YYLSP_NEEDED
YYSTACK_RELOCATE (YYLTYPE, yyls);
# endif
# undef YYSTACK_RELOCATE
if (yyss1 != yyssa)
YYSTACK_FREE (yyss1);
}
#endif /* no yyoverflow */
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
#if YYLSP_NEEDED
yylsp = yyls + yysize - 1;
#endif
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
(unsigned long int) yystacksize));
if (yyssp >= yyss + yystacksize - 1)
YYABORT;
}
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
goto yybackup;
/*-----------.
| yybackup. |
`-----------*/
yybackup:
/* Do appropriate processing given the current state. */
/* Read a lookahead token if we need one and don't already have one. */
/* yyresume: */
/* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate];
if (yyn == YYFLAG)
goto yydefault;
/* Not known => get a lookahead token if don't already have one. */
/* yychar is either YYEMPTY or YYEOF
or a valid token in external form. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
yychar = YYLEX;
}
/* Convert token to internal form (in yychar1) for indexing tables with */
if (yychar <= 0) /* This means end of input. */
{
yychar1 = 0;
yychar = YYEOF; /* Don't call YYLEX any more */
YYDPRINTF ((stderr, "Now at end of input.\n"));
}
else
{
yychar1 = YYTRANSLATE (yychar);
#if YYDEBUG
/* We have to keep this `#if YYDEBUG', since we use variables
which are defined only if `YYDEBUG' is set. */
if (yydebug)
{
YYFPRINTF (stderr, "Next token is %d (%s",
yychar, yytname[yychar1]);
/* Give the individual parser a way to print the precise
meaning of a token, for further debugging info. */
# ifdef YYPRINT
YYPRINT (stderr, yychar, yylval);
# endif
YYFPRINTF (stderr, ")\n");
}
#endif
}
yyn += yychar1;
if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
goto yydefault;
yyn = yytable[yyn];
/* yyn is what to do for this token type in this state.
Negative => reduce, -yyn is rule number.
Positive => shift, yyn is new state.
New state is final state => don't bother to shift,
just return success.
0, or most negative number => error. */
if (yyn < 0)
{
if (yyn == YYFLAG)
goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
else if (yyn == 0)
goto yyerrlab;
if (yyn == YYFINAL)
YYACCEPT;
/* Shift the lookahead token. */
YYDPRINTF ((stderr, "Shifting token %d (%s), ",
yychar, yytname[yychar1]));
/* Discard the token being shifted unless it is eof. */
if (yychar != YYEOF)
yychar = YYEMPTY;
*++yyvsp = yylval;
#if YYLSP_NEEDED
*++yylsp = yylloc;
#endif
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
yystate = yyn;
goto yynewstate;
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
yydefault:
yyn = yydefact[yystate];
if (yyn == 0)
goto yyerrlab;
goto yyreduce;
/*-----------------------------.
| yyreduce -- Do a reduction. |
`-----------------------------*/
yyreduce:
/* yyn is the number of a rule to reduce with. */
yylen = yyr2[yyn];
/* If YYLEN is nonzero, implement the default value of the action:
`$$ = $1'.
Otherwise, the following line sets YYVAL to the semantic value of
the lookahead token. This behavior is undocumented and Bison
users should not rely upon it. Assigning to YYVAL
unconditionally makes the parser a bit smaller, and it avoids a
GCC warning that YYVAL may be used uninitialized. */
yyval = yyvsp[1-yylen];
#if YYLSP_NEEDED
/* Similarly for the default location. Let the user run additional
commands if for instance locations are ranges. */
yyloc = yylsp[1-yylen];
YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
#endif
#if YYDEBUG
/* We have to keep this `#if YYDEBUG', since we use variables which
are defined only if `YYDEBUG' is set. */
if (yydebug)
{
int yyi;
YYFPRINTF (stderr, "Reducing via rule %d (line %d), ",
yyn, yyrline[yyn]);
/* Print the symbols being reduced, and their result. */
for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++)
YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]);
}
#endif
switch (yyn) {
case 6:
#line 167 "ldgram.y"
{ ldlex_defsym(); }
break;
case 7:
#line 169 "ldgram.y"
{
ldlex_popstate();
lang_add_assignment(exp_assop(yyvsp[-1].token,yyvsp[-2].name,yyvsp[0].etree));
}
break;
case 8:
#line 176 "ldgram.y"
{
ldlex_mri_script ();
PUSH_ERROR (_("MRI style script"));
}
break;
case 9:
#line 181 "ldgram.y"
{
ldlex_popstate ();
mri_draw_tree ();
POP_ERROR ();
}
break;
case 14:
#line 196 "ldgram.y"
{
einfo(_("%P%F: unrecognised keyword in MRI style script '%s'\n"),yyvsp[0].name);
}
break;
case 15:
#line 199 "ldgram.y"
{
config.map_filename = "-";
}
break;
case 18:
#line 205 "ldgram.y"
{ mri_public(yyvsp[-2].name, yyvsp[0].etree); }
break;
case 19:
#line 207 "ldgram.y"
{ mri_public(yyvsp[-2].name, yyvsp[0].etree); }
break;
case 20:
#line 209 "ldgram.y"
{ mri_public(yyvsp[-1].name, yyvsp[0].etree); }
break;
case 21:
#line 211 "ldgram.y"
{ mri_format(yyvsp[0].name); }
break;
case 22:
#line 213 "ldgram.y"
{ mri_output_section(yyvsp[-2].name, yyvsp[0].etree);}
break;
case 23:
#line 215 "ldgram.y"
{ mri_output_section(yyvsp[-1].name, yyvsp[0].etree);}
break;
case 24:
#line 217 "ldgram.y"
{ mri_output_section(yyvsp[-2].name, yyvsp[0].etree);}
break;
case 25:
#line 219 "ldgram.y"
{ mri_align(yyvsp[-2].name,yyvsp[0].etree); }
break;
case 26:
#line 221 "ldgram.y"
{ mri_align(yyvsp[-2].name,yyvsp[0].etree); }
break;
case 27:
#line 223 "ldgram.y"
{ mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); }
break;
case 28:
#line 225 "ldgram.y"
{ mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); }
break;
case 31:
#line 229 "ldgram.y"
{ mri_name(yyvsp[0].name); }
break;
case 32:
#line 231 "ldgram.y"
{ mri_alias(yyvsp[-2].name,yyvsp[0].name,0);}
break;
case 33:
#line 233 "ldgram.y"
{ mri_alias(yyvsp[-2].name,0,(int) yyvsp[0].integer);}
break;
case 34:
#line 235 "ldgram.y"
{ mri_base(yyvsp[0].etree); }
break;
case 35:
#line 237 "ldgram.y"
{ mri_truncate((unsigned int) yyvsp[0].integer); }
break;
case 38:
#line 241 "ldgram.y"
{ ldlex_script (); ldfile_open_command_file(yyvsp[0].name); }
break;
case 39:
#line 243 "ldgram.y"
{ ldlex_popstate (); }
break;
case 40:
#line 245 "ldgram.y"
{ lang_add_entry (yyvsp[0].name, false); }
break;
case 42:
#line 250 "ldgram.y"
{ mri_order(yyvsp[0].name); }
break;
case 43:
#line 251 "ldgram.y"
{ mri_order(yyvsp[0].name); }
break;
case 45:
#line 257 "ldgram.y"
{ mri_load(yyvsp[0].name); }
break;
case 46:
#line 258 "ldgram.y"
{ mri_load(yyvsp[0].name); }
break;
case 47:
#line 263 "ldgram.y"
{ mri_only_load(yyvsp[0].name); }
break;
case 48:
#line 265 "ldgram.y"
{ mri_only_load(yyvsp[0].name); }
break;
case 49:
#line 269 "ldgram.y"
{ yyval.name = NULL; }
break;
case 52:
#line 276 "ldgram.y"
{ ldlang_add_undef (yyvsp[0].name); }
break;
case 53:
#line 278 "ldgram.y"
{ ldlang_add_undef (yyvsp[0].name); }
break;
case 54:
#line 280 "ldgram.y"
{ ldlang_add_undef (yyvsp[0].name); }
break;
case 55:
#line 284 "ldgram.y"
{
ldlex_both();
}
break;
case 56:
#line 288 "ldgram.y"
{
ldlex_popstate();
}
break;
case 69:
#line 313 "ldgram.y"
{ lang_add_target(yyvsp[-1].name); }
break;
case 70:
#line 315 "ldgram.y"
{ ldfile_add_library_path (yyvsp[-1].name, false); }
break;
case 71:
#line 317 "ldgram.y"
{ lang_add_output(yyvsp[-1].name, 1); }
break;
case 72:
#line 319 "ldgram.y"
{ lang_add_output_format (yyvsp[-1].name, (char *) NULL,
(char *) NULL, 1); }
break;
case 73:
#line 322 "ldgram.y"
{ lang_add_output_format (yyvsp[-5].name, yyvsp[-3].name, yyvsp[-1].name, 1); }
break;
case 74:
#line 324 "ldgram.y"
{ ldfile_set_output_arch(yyvsp[-1].name); }
break;
case 75:
#line 326 "ldgram.y"
{ command_line.force_common_definition = true ; }
break;
case 76:
#line 328 "ldgram.y"
{ command_line.inhibit_common_definition = true ; }
break;
case 78:
#line 331 "ldgram.y"
{ lang_enter_group (); }
break;
case 79:
#line 333 "ldgram.y"
{ lang_leave_group (); }
break;
case 80:
#line 335 "ldgram.y"
{ lang_add_map(yyvsp[-1].name); }
break;
case 81:
#line 337 "ldgram.y"
{ ldlex_script (); ldfile_open_command_file(yyvsp[0].name); }
break;
case 82:
#line 339 "ldgram.y"
{ ldlex_popstate (); }
break;
case 83:
#line 341 "ldgram.y"
{
lang_add_nocrossref (yyvsp[-1].nocrossref);
}
break;
case 85:
#line 349 "ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
(char *)NULL); }
break;
case 86:
#line 352 "ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
(char *)NULL); }
break;
case 87:
#line 355 "ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
(char *)NULL); }
break;
case 88:
#line 358 "ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
(char *)NULL); }
break;
case 89:
#line 361 "ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
(char *)NULL); }
break;
case 90:
#line 364 "ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
(char *)NULL); }
break;
case 95:
#line 380 "ldgram.y"
{ lang_add_entry (yyvsp[-1].name, false); }
break;
case 97:
#line 388 "ldgram.y"
{
yyval.cname = yyvsp[0].name;
}
break;
case 98:
#line 392 "ldgram.y"
{
yyval.cname = "*";
}
break;
case 99:
#line 396 "ldgram.y"
{
yyval.cname = "?";
}
break;
case 100:
#line 403 "ldgram.y"
{
yyval.wildcard.name = yyvsp[0].cname;
yyval.wildcard.sorted = false;
yyval.wildcard.exclude_name_list = NULL;
}
break;
case 101:
#line 409 "ldgram.y"
{
yyval.wildcard.name = yyvsp[0].cname;
yyval.wildcard.sorted = false;
yyval.wildcard.exclude_name_list = yyvsp[-2].name_list;
}
break;
case 102:
#line 415 "ldgram.y"
{
yyval.wildcard.name = yyvsp[-1].cname;
yyval.wildcard.sorted = true;
yyval.wildcard.exclude_name_list = NULL;
}
break;
case 103:
#line 421 "ldgram.y"
{
yyval.wildcard.name = yyvsp[-1].cname;
yyval.wildcard.sorted = true;
yyval.wildcard.exclude_name_list = yyvsp[-3].name_list;
}
break;
case 104:
#line 430 "ldgram.y"
{
struct name_list *tmp;
tmp = (struct name_list *) xmalloc (sizeof *tmp);
tmp->name = yyvsp[0].cname;
tmp->next = yyvsp[-1].name_list;
yyval.name_list = tmp;
}
break;
case 105:
#line 439 "ldgram.y"
{
struct name_list *tmp;
tmp = (struct name_list *) xmalloc (sizeof *tmp);
tmp->name = yyvsp[0].cname;
tmp->next = NULL;
yyval.name_list = tmp;
}
break;
case 106:
#line 450 "ldgram.y"
{
struct wildcard_list *tmp;
tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
tmp->next = yyvsp[-2].wildcard_list;
tmp->spec = yyvsp[0].wildcard;
yyval.wildcard_list = tmp;
}
break;
case 107:
#line 459 "ldgram.y"
{
struct wildcard_list *tmp;
tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
tmp->next = NULL;
tmp->spec = yyvsp[0].wildcard;
yyval.wildcard_list = tmp;
}
break;
case 108:
#line 470 "ldgram.y"
{
struct wildcard_spec tmp;
tmp.name = yyvsp[0].name;
tmp.exclude_name_list = NULL;
tmp.sorted = false;
lang_add_wild (&tmp, NULL, ldgram_had_keep);
}
break;
case 109:
#line 478 "ldgram.y"
{
lang_add_wild (NULL, yyvsp[-1].wildcard_list, ldgram_had_keep);
}
break;
case 110:
#line 482 "ldgram.y"
{
lang_add_wild (&yyvsp[-3].wildcard, yyvsp[-1].wildcard_list, ldgram_had_keep);
}
break;
case 112:
#line 490 "ldgram.y"
{ ldgram_had_keep = true; }
break;
case 113:
#line 492 "ldgram.y"
{ ldgram_had_keep = false; }
break;
case 115:
#line 498 "ldgram.y"
{
lang_add_attribute(lang_object_symbols_statement_enum);
}
break;
case 117:
#line 503 "ldgram.y"
{
lang_add_attribute(lang_constructors_statement_enum);
}
break;
case 118:
#line 508 "ldgram.y"
{
constructors_sorted = true;
lang_add_attribute (lang_constructors_statement_enum);
}
break;
case 120:
#line 514 "ldgram.y"
{
lang_add_data((int) yyvsp[-3].integer,yyvsp[-1].etree);
}
break;
case 121:
#line 519 "ldgram.y"
{
lang_add_fill
(exp_get_value_int(yyvsp[-1].etree,
0,
"fill value",
lang_first_phase_enum));
}
break;
case 126:
#line 540 "ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 127:
#line 542 "ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 128:
#line 544 "ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 129:
#line 546 "ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 130:
#line 548 "ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 131:
#line 553 "ldgram.y"
{
yyval.integer = exp_get_value_int(yyvsp[0].etree,
0,
"fill value",
lang_first_phase_enum);
}
break;
case 132:
#line 559 "ldgram.y"
{ yyval.integer = 0; }
break;
case 133:
#line 566 "ldgram.y"
{ yyval.token = '+'; }
break;
case 134:
#line 568 "ldgram.y"
{ yyval.token = '-'; }
break;
case 135:
#line 570 "ldgram.y"
{ yyval.token = '*'; }
break;
case 136:
#line 572 "ldgram.y"
{ yyval.token = '/'; }
break;
case 137:
#line 574 "ldgram.y"
{ yyval.token = LSHIFT; }
break;
case 138:
#line 576 "ldgram.y"
{ yyval.token = RSHIFT; }
break;
case 139:
#line 578 "ldgram.y"
{ yyval.token = '&'; }
break;
case 140:
#line 580 "ldgram.y"
{ yyval.token = '|'; }
break;
case 143:
#line 590 "ldgram.y"
{
lang_add_assignment (exp_assop (yyvsp[-1].token, yyvsp[-2].name, yyvsp[0].etree));
}
break;
case 144:
#line 594 "ldgram.y"
{
lang_add_assignment (exp_assop ('=', yyvsp[-2].name,
exp_binop (yyvsp[-1].token,
exp_nameop (NAME,
yyvsp[-2].name),
yyvsp[0].etree)));
}
break;
case 145:
#line 602 "ldgram.y"
{
lang_add_assignment (exp_provide (yyvsp[-3].name, yyvsp[-1].etree));
}
break;
case 152:
#line 624 "ldgram.y"
{ region = lang_memory_region_lookup(yyvsp[0].name); }
break;
case 154:
#line 632 "ldgram.y"
{ region->current =
region->origin =
exp_get_vma(yyvsp[0].etree, 0L,"origin", lang_first_phase_enum);
}
break;
case 155:
#line 640 "ldgram.y"
{ region->length = exp_get_vma(yyvsp[0].etree,
~((bfd_vma)0),
"length",
lang_first_phase_enum);
}
break;
case 156:
#line 649 "ldgram.y"
{ /* dummy action to avoid bison 1.25 error message */ }
break;
case 160:
#line 660 "ldgram.y"
{ lang_set_flags (region, yyvsp[0].name, 0); }
break;
case 161:
#line 662 "ldgram.y"
{ lang_set_flags (region, yyvsp[0].name, 1); }
break;
case 162:
#line 667 "ldgram.y"
{ lang_startup(yyvsp[-1].name); }
break;
case 164:
#line 673 "ldgram.y"
{ ldemul_hll((char *)NULL); }
break;
case 165:
#line 678 "ldgram.y"
{ ldemul_hll(yyvsp[0].name); }
break;
case 166:
#line 680 "ldgram.y"
{ ldemul_hll(yyvsp[0].name); }
break;
case 168:
#line 688 "ldgram.y"
{ ldemul_syslib(yyvsp[0].name); }
break;
case 170:
#line 694 "ldgram.y"
{ lang_float(true); }
break;
case 171:
#line 696 "ldgram.y"
{ lang_float(false); }
break;
case 172:
#line 701 "ldgram.y"
{
yyval.nocrossref = NULL;
}
break;
case 173:
#line 705 "ldgram.y"
{
struct lang_nocrossref *n;
n = (struct lang_nocrossref *) xmalloc (sizeof *n);
n->name = yyvsp[-1].name;
n->next = yyvsp[0].nocrossref;
yyval.nocrossref = n;
}
break;
case 174:
#line 714 "ldgram.y"
{
struct lang_nocrossref *n;
n = (struct lang_nocrossref *) xmalloc (sizeof *n);
n->name = yyvsp[-2].name;
n->next = yyvsp[0].nocrossref;
yyval.nocrossref = n;
}
break;
case 175:
#line 724 "ldgram.y"
{ ldlex_expression(); }
break;
case 176:
#line 726 "ldgram.y"
{ ldlex_popstate(); yyval.etree=yyvsp[0].etree;}
break;
case 177:
#line 731 "ldgram.y"
{ yyval.etree = exp_unop('-', yyvsp[0].etree); }
break;
case 178:
#line 733 "ldgram.y"
{ yyval.etree = yyvsp[-1].etree; }
break;
case 179:
#line 735 "ldgram.y"
{ yyval.etree = exp_unop((int) yyvsp[-3].integer,yyvsp[-1].etree); }
break;
case 180:
#line 737 "ldgram.y"
{ yyval.etree = exp_unop('!', yyvsp[0].etree); }
break;
case 181:
#line 739 "ldgram.y"
{ yyval.etree = yyvsp[0].etree; }
break;
case 182:
#line 741 "ldgram.y"
{ yyval.etree = exp_unop('~', yyvsp[0].etree);}
break;
case 183:
#line 744 "ldgram.y"
{ yyval.etree = exp_binop('*', yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 184:
#line 746 "ldgram.y"
{ yyval.etree = exp_binop('/', yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 185:
#line 748 "ldgram.y"
{ yyval.etree = exp_binop('%', yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 186:
#line 750 "ldgram.y"
{ yyval.etree = exp_binop('+', yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 187:
#line 752 "ldgram.y"
{ yyval.etree = exp_binop('-' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 188:
#line 754 "ldgram.y"
{ yyval.etree = exp_binop(LSHIFT , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 189:
#line 756 "ldgram.y"
{ yyval.etree = exp_binop(RSHIFT , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 190:
#line 758 "ldgram.y"
{ yyval.etree = exp_binop(EQ , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 191:
#line 760 "ldgram.y"
{ yyval.etree = exp_binop(NE , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 192:
#line 762 "ldgram.y"
{ yyval.etree = exp_binop(LE , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 193:
#line 764 "ldgram.y"
{ yyval.etree = exp_binop(GE , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 194:
#line 766 "ldgram.y"
{ yyval.etree = exp_binop('<' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 195:
#line 768 "ldgram.y"
{ yyval.etree = exp_binop('>' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 196:
#line 770 "ldgram.y"
{ yyval.etree = exp_binop('&' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 197:
#line 772 "ldgram.y"
{ yyval.etree = exp_binop('^' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 198:
#line 774 "ldgram.y"
{ yyval.etree = exp_binop('|' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 199:
#line 776 "ldgram.y"
{ yyval.etree = exp_trinop('?' , yyvsp[-4].etree, yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 200:
#line 778 "ldgram.y"
{ yyval.etree = exp_binop(ANDAND , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 201:
#line 780 "ldgram.y"
{ yyval.etree = exp_binop(OROR , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 202:
#line 782 "ldgram.y"
{ yyval.etree = exp_nameop(DEFINED, yyvsp[-1].name); }
break;
case 203:
#line 784 "ldgram.y"
{ yyval.etree = exp_intop(yyvsp[0].integer); }
break;
case 204:
#line 786 "ldgram.y"
{ yyval.etree = exp_nameop(SIZEOF_HEADERS,0); }
break;
case 205:
#line 789 "ldgram.y"
{ yyval.etree = exp_nameop(SIZEOF,yyvsp[-1].name); }
break;
case 206:
#line 791 "ldgram.y"
{ yyval.etree = exp_nameop(ADDR,yyvsp[-1].name); }
break;
case 207:
#line 793 "ldgram.y"
{ yyval.etree = exp_nameop(LOADADDR,yyvsp[-1].name); }
break;
case 208:
#line 795 "ldgram.y"
{ yyval.etree = exp_unop(ABSOLUTE, yyvsp[-1].etree); }
break;
case 209:
#line 797 "ldgram.y"
{ yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); }
break;
case 210:
#line 799 "ldgram.y"
{ yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); }
break;
case 211:
#line 801 "ldgram.y"
{ yyval.etree = exp_nameop(NAME,yyvsp[0].name); }
break;
case 212:
#line 803 "ldgram.y"
{ yyval.etree = exp_binop (MAX_K, yyvsp[-3].etree, yyvsp[-1].etree ); }
break;
case 213:
#line 805 "ldgram.y"
{ yyval.etree = exp_binop (MIN_K, yyvsp[-3].etree, yyvsp[-1].etree ); }
break;
case 214:
#line 807 "ldgram.y"
{ yyval.etree = exp_assert (yyvsp[-3].etree, yyvsp[-1].name); }
break;
case 215:
#line 812 "ldgram.y"
{ yyval.name = yyvsp[0].name; }
break;
case 216:
#line 813 "ldgram.y"
{ yyval.name = "*default*"; }
break;
case 217:
#line 817 "ldgram.y"
{ yyval.etree = yyvsp[-1].etree; }
break;
case 218:
#line 818 "ldgram.y"
{ yyval.etree = 0; }
break;
case 219:
#line 821 "ldgram.y"
{ ldlex_expression(); }
break;
case 220:
#line 823 "ldgram.y"
{ ldlex_popstate (); ldlex_script (); }
break;
case 221:
#line 825 "ldgram.y"
{
lang_enter_output_section_statement(yyvsp[-5].name, yyvsp[-3].etree,
sectype,
0, 0, 0, yyvsp[-2].etree);
}
break;
case 222:
#line 831 "ldgram.y"
{ ldlex_popstate (); ldlex_expression (); }
break;
case 223:
#line 833 "ldgram.y"
{
ldlex_popstate ();
lang_leave_output_section_statement (yyvsp[0].integer, yyvsp[-3].name, yyvsp[-1].section_phdr, yyvsp[-2].name);
}
break;
case 225:
#line 839 "ldgram.y"
{ ldlex_expression (); }
break;
case 226:
#line 841 "ldgram.y"
{ ldlex_popstate (); ldlex_script (); }
break;
case 227:
#line 843 "ldgram.y"
{
lang_enter_overlay (yyvsp[-4].etree, yyvsp[-2].etree, (int) yyvsp[-3].integer);
}
break;
case 228:
#line 848 "ldgram.y"
{ ldlex_popstate (); ldlex_expression (); }
break;
case 229:
#line 850 "ldgram.y"
{
ldlex_popstate ();
lang_leave_overlay (yyvsp[0].integer, yyvsp[-3].name, yyvsp[-1].section_phdr, yyvsp[-2].name);
}
break;
case 231:
#line 859 "ldgram.y"
{ ldlex_expression (); }
break;
case 232:
#line 861 "ldgram.y"
{
ldlex_popstate ();
lang_add_assignment (exp_assop ('=', ".", yyvsp[0].etree));
}
break;
case 234:
#line 869 "ldgram.y"
{ sectype = noload_section; }
break;
case 235:
#line 870 "ldgram.y"
{ sectype = dsect_section; }
break;
case 236:
#line 871 "ldgram.y"
{ sectype = copy_section; }
break;
case 237:
#line 872 "ldgram.y"
{ sectype = info_section; }
break;
case 238:
#line 873 "ldgram.y"
{ sectype = overlay_section; }
break;
case 240:
#line 878 "ldgram.y"
{ sectype = normal_section; }
break;
case 241:
#line 879 "ldgram.y"
{ sectype = normal_section; }
break;
case 242:
#line 883 "ldgram.y"
{ yyval.etree = yyvsp[-2].etree; }
break;
case 243:
#line 884 "ldgram.y"
{ yyval.etree = (etree_type *)NULL; }
break;
case 244:
#line 889 "ldgram.y"
{ yyval.etree = yyvsp[-3].etree; }
break;
case 245:
#line 891 "ldgram.y"
{ yyval.etree = yyvsp[-7].etree; }
break;
case 246:
#line 895 "ldgram.y"
{ yyval.etree = yyvsp[-1].etree; }
break;
case 247:
#line 896 "ldgram.y"
{ yyval.etree = (etree_type *) NULL; }
break;
case 248:
#line 901 "ldgram.y"
{ yyval.integer = 0; }
break;
case 249:
#line 903 "ldgram.y"
{ yyval.integer = 1; }
break;
case 250:
#line 908 "ldgram.y"
{ yyval.name = yyvsp[0].name; }
break;
case 251:
#line 909 "ldgram.y"
{ yyval.name = "*default*"; }
break;
case 252:
#line 914 "ldgram.y"
{
yyval.section_phdr = NULL;
}
break;
case 253:
#line 918 "ldgram.y"
{
struct lang_output_section_phdr_list *n;
n = ((struct lang_output_section_phdr_list *)
xmalloc (sizeof *n));
n->name = yyvsp[0].name;
n->used = false;
n->next = yyvsp[-2].section_phdr;
yyval.section_phdr = n;
}
break;
case 255:
#line 934 "ldgram.y"
{
ldlex_script ();
lang_enter_overlay_section (yyvsp[0].name);
}
break;
case 256:
#line 939 "ldgram.y"
{ ldlex_popstate (); ldlex_expression (); }
break;
case 257:
#line 941 "ldgram.y"
{
ldlex_popstate ();
lang_leave_overlay_section (yyvsp[0].integer, yyvsp[-1].section_phdr);
}
break;
case 262:
#line 958 "ldgram.y"
{ ldlex_expression (); }
break;
case 263:
#line 959 "ldgram.y"
{ ldlex_popstate (); }
break;
case 264:
#line 961 "ldgram.y"
{
lang_new_phdr (yyvsp[-5].name, yyvsp[-3].etree, yyvsp[-2].phdr.filehdr, yyvsp[-2].phdr.phdrs, yyvsp[-2].phdr.at,
yyvsp[-2].phdr.flags);
}
break;
case 265:
#line 969 "ldgram.y"
{
yyval.etree = yyvsp[0].etree;
if (yyvsp[0].etree->type.node_class == etree_name
&& yyvsp[0].etree->type.node_code == NAME)
{
const char *s;
unsigned int i;
static const char * const phdr_types[] =
{
"PT_NULL", "PT_LOAD", "PT_DYNAMIC",
"PT_INTERP", "PT_NOTE", "PT_SHLIB",
"PT_PHDR"
};
s = yyvsp[0].etree->name.name;
for (i = 0;
i < sizeof phdr_types / sizeof phdr_types[0];
i++)
if (strcmp (s, phdr_types[i]) == 0)
{
yyval.etree = exp_intop (i);
break;
}
}
}
break;
case 266:
#line 999 "ldgram.y"
{
memset (&yyval.phdr, 0, sizeof (struct phdr_info));
}
break;
case 267:
#line 1003 "ldgram.y"
{
yyval.phdr = yyvsp[0].phdr;
if (strcmp (yyvsp[-2].name, "FILEHDR") == 0 && yyvsp[-1].etree == NULL)
yyval.phdr.filehdr = true;
else if (strcmp (yyvsp[-2].name, "PHDRS") == 0 && yyvsp[-1].etree == NULL)
yyval.phdr.phdrs = true;
else if (strcmp (yyvsp[-2].name, "FLAGS") == 0 && yyvsp[-1].etree != NULL)
yyval.phdr.flags = yyvsp[-1].etree;
else
einfo (_("%X%P:%S: PHDRS syntax error at `%s'\n"), yyvsp[-2].name);
}
break;
case 268:
#line 1015 "ldgram.y"
{
yyval.phdr = yyvsp[0].phdr;
yyval.phdr.at = yyvsp[-2].etree;
}
break;
case 269:
#line 1023 "ldgram.y"
{
yyval.etree = NULL;
}
break;
case 270:
#line 1027 "ldgram.y"
{
yyval.etree = yyvsp[-1].etree;
}
break;
case 271:
#line 1035 "ldgram.y"
{
ldlex_version_file ();
PUSH_ERROR (_("VERSION script"));
}
break;
case 272:
#line 1040 "ldgram.y"
{
ldlex_popstate ();
POP_ERROR ();
}
break;
case 273:
#line 1049 "ldgram.y"
{
ldlex_version_script ();
}
break;
case 274:
#line 1053 "ldgram.y"
{
ldlex_popstate ();
}
break;
case 277:
#line 1065 "ldgram.y"
{
lang_register_vers_node (NULL, yyvsp[-2].versnode, NULL);
}
break;
case 278:
#line 1069 "ldgram.y"
{
lang_register_vers_node (yyvsp[-4].name, yyvsp[-2].versnode, NULL);
}
break;
case 279:
#line 1073 "ldgram.y"
{
lang_register_vers_node (yyvsp[-5].name, yyvsp[-3].versnode, yyvsp[-1].deflist);
}
break;
case 280:
#line 1080 "ldgram.y"
{
yyval.deflist = lang_add_vers_depend (NULL, yyvsp[0].name);
}
break;
case 281:
#line 1084 "ldgram.y"
{
yyval.deflist = lang_add_vers_depend (yyvsp[-1].deflist, yyvsp[0].name);
}
break;
case 282:
#line 1091 "ldgram.y"
{
yyval.versnode = lang_new_vers_node (NULL, NULL);
}
break;
case 283:
#line 1095 "ldgram.y"
{
yyval.versnode = lang_new_vers_node (yyvsp[-1].versyms, NULL);
}
break;
case 284:
#line 1099 "ldgram.y"
{
yyval.versnode = lang_new_vers_node (yyvsp[-1].versyms, NULL);
}
break;
case 285:
#line 1103 "ldgram.y"
{
yyval.versnode = lang_new_vers_node (NULL, yyvsp[-1].versyms);
}
break;
case 286:
#line 1107 "ldgram.y"
{
yyval.versnode = lang_new_vers_node (yyvsp[-5].versyms, yyvsp[-1].versyms);
}
break;
case 287:
#line 1114 "ldgram.y"
{
yyval.versyms = lang_new_vers_pattern (NULL, yyvsp[0].name, ldgram_vers_current_lang);
}
break;
case 288:
#line 1118 "ldgram.y"
{
yyval.versyms = lang_new_vers_pattern (yyvsp[-2].versyms, yyvsp[0].name, ldgram_vers_current_lang);
}
break;
case 289:
#line 1122 "ldgram.y"
{
yyval.name = ldgram_vers_current_lang;
ldgram_vers_current_lang = yyvsp[-1].name;
}
break;
case 290:
#line 1127 "ldgram.y"
{
yyval.versyms = yyvsp[-1].versyms;
ldgram_vers_current_lang = yyvsp[-2].name;
}
break;
}
#line 727 "/usr/share/bison/bison.simple"
yyvsp -= yylen;
yyssp -= yylen;
#if YYLSP_NEEDED
yylsp -= yylen;
#endif
#if YYDEBUG
if (yydebug)
{
short *yyssp1 = yyss - 1;
YYFPRINTF (stderr, "state stack now");
while (yyssp1 != yyssp)
YYFPRINTF (stderr, " %d", *++yyssp1);
YYFPRINTF (stderr, "\n");
}
#endif
*++yyvsp = yyval;
#if YYLSP_NEEDED
*++yylsp = yyloc;
#endif
/* Now `shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule
number reduced by. */
yyn = yyr1[yyn];
yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
yystate = yytable[yystate];
else
yystate = yydefgoto[yyn - YYNTBASE];
goto yynewstate;
/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
/* If not already recovering from an error, report this error. */
if (!yyerrstatus)
{
++yynerrs;
#ifdef YYERROR_VERBOSE
yyn = yypact[yystate];
if (yyn > YYFLAG && yyn < YYLAST)
{
YYSIZE_T yysize = 0;
char *yymsg;
int yyx, yycount;
yycount = 0;
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. */
for (yyx = yyn < 0 ? -yyn : 0;
yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
if (yycheck[yyx + yyn] == yyx)
yysize += yystrlen (yytname[yyx]) + 15, yycount++;
yysize += yystrlen ("parse error, unexpected ") + 1;
yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
yymsg = (char *) YYSTACK_ALLOC (yysize);
if (yymsg != 0)
{
char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);
if (yycount < 5)
{
yycount = 0;
for (yyx = yyn < 0 ? -yyn : 0;
yyx < (int) (sizeof (yytname) / sizeof (char *));
yyx++)
if (yycheck[yyx + yyn] == yyx)
{
const char *yyq = ! yycount ? ", expecting " : " or ";
yyp = yystpcpy (yyp, yyq);
yyp = yystpcpy (yyp, yytname[yyx]);
yycount++;
}
}
yyerror (yymsg);
YYSTACK_FREE (yymsg);
}
else
yyerror ("parse error; also virtual memory exhausted");
}
else
#endif /* defined (YYERROR_VERBOSE) */
yyerror ("parse error");
}
goto yyerrlab1;
/*--------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action |
`--------------------------------------------------*/
yyerrlab1:
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
error, discard it. */
/* return failure if at end of input */
if (yychar == YYEOF)
YYABORT;
YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
yychar, yytname[yychar1]));
yychar = YYEMPTY;
}
/* Else will try to reuse lookahead token after shifting the error
token. */
yyerrstatus = 3; /* Each real token shifted decrements this */
goto yyerrhandle;
/*-------------------------------------------------------------------.
| yyerrdefault -- current state does not do anything special for the |
| error token. |
`-------------------------------------------------------------------*/
yyerrdefault:
#if 0
/* This is wrong; only states that explicitly want error tokens
should shift them. */
/* If its default is to accept any token, ok. Otherwise pop it. */
yyn = yydefact[yystate];
if (yyn)
goto yydefault;
#endif
/*---------------------------------------------------------------.
| yyerrpop -- pop the current state because it cannot handle the |
| error token |
`---------------------------------------------------------------*/
yyerrpop:
if (yyssp == yyss)
YYABORT;
yyvsp--;
yystate = *--yyssp;
#if YYLSP_NEEDED
yylsp--;
#endif
#if YYDEBUG
if (yydebug)
{
short *yyssp1 = yyss - 1;
YYFPRINTF (stderr, "Error: state stack now");
while (yyssp1 != yyssp)
YYFPRINTF (stderr, " %d", *++yyssp1);
YYFPRINTF (stderr, "\n");
}
#endif
/*--------------.
| yyerrhandle. |
`--------------*/
yyerrhandle:
yyn = yypact[yystate];
if (yyn == YYFLAG)
goto yyerrdefault;
yyn += YYTERROR;
if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
goto yyerrdefault;
yyn = yytable[yyn];
if (yyn < 0)
{
if (yyn == YYFLAG)
goto yyerrpop;
yyn = -yyn;
goto yyreduce;
}
else if (yyn == 0)
goto yyerrpop;
if (yyn == YYFINAL)
YYACCEPT;
YYDPRINTF ((stderr, "Shifting error token, "));
*++yyvsp = yylval;
#if YYLSP_NEEDED
*++yylsp = yylloc;
#endif
yystate = yyn;
goto yynewstate;
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here. |
`-------------------------------------*/
yyacceptlab:
yyresult = 0;
goto yyreturn;
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
yyabortlab:
yyresult = 1;
goto yyreturn;
/*---------------------------------------------.
| yyoverflowab -- parser overflow comes here. |
`---------------------------------------------*/
yyoverflowlab:
yyerror ("parser stack overflow");
yyresult = 2;
/* Fall through. */
yyreturn:
#ifndef yyoverflow
if (yyss != yyssa)
YYSTACK_FREE (yyss);
#endif
return yyresult;
}
#line 1133 "ldgram.y"
void
yyerror(arg)
const char *arg;
{
if (ldfile_assumed_script)
einfo (_("%P:%s: file format not recognized; treating as linker script\n"),
ldfile_input_filename);
if (error_index > 0 && error_index < ERROR_NAME_MAX)
einfo ("%P%F:%S: %s in %s\n", arg, error_names[error_index-1]);
else
einfo ("%P%F:%S: %s\n", arg);
}