NetBSD/gnu/dist/toolchain/ld/ldgram.c

3050 lines
114 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* A Bison parser, made from /u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y
by GNU bison 1.32. */
#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 INCLUDE 293
# define MEMORY 294
# define DEFSYMEND 295
# define NOLOAD 296
# define DSECT 297
# define COPY 298
# define INFO 299
# define OVERLAY 300
# define DEFINED 301
# define TARGET_K 302
# define SEARCH_DIR 303
# define MAP 304
# define ENTRY 305
# define NEXT 306
# define SIZEOF 307
# define SIZEOF_UNADJ 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 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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;
struct wildcard_spec current_file;
boolean ldgram_want_filename = true;
boolean had_script = false;
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 68 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
#ifndef YYSTYPE
typedef union {
bfd_vma integer;
char *name;
const char *cname;
struct wildcard_spec wildcard;
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 589
#define YYFLAG -32768
#define YYNTBASE 129
/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
#define YYTRANSLATE(x) ((unsigned)(x) <= 359 ? yytranslate[x] : 234)
/* 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, 244, 245, 251,
256, 257, 263, 268, 273, 275, 279, 282, 284, 288,
291, 296, 299, 302, 303, 308, 311, 313, 315, 317,
319, 325, 330, 339, 342, 344, 346, 350, 352, 353,
358, 359, 365, 367, 368, 374, 377, 379, 381, 383,
388, 390, 395, 400, 403, 405, 406, 408, 410, 412,
414, 416, 418, 421, 422, 424, 426, 428, 430, 432,
434, 436, 438, 440, 442, 446, 450, 457, 459, 460,
466, 469, 473, 474, 475, 483, 487, 491, 492, 496,
498, 501, 503, 506, 511, 516, 520, 524, 526, 531,
535, 536, 538, 540, 541, 544, 548, 549, 552, 555,
559, 564, 567, 570, 573, 577, 581, 585, 589, 593,
597, 601, 605, 609, 613, 617, 621, 625, 629, 633,
637, 643, 647, 651, 656, 658, 660, 665, 670, 675,
680, 685, 690, 692, 699, 706, 713, 717, 718, 723,
724, 725, 726, 727, 728, 729, 746, 747, 748, 749,
750, 751, 769, 770, 771, 779, 781, 783, 785, 787,
789, 793, 794, 797, 801, 804, 811, 822, 825, 827,
828, 830, 833, 834, 835, 839, 840, 841, 842, 843,
855, 860, 861, 864, 865, 866, 873, 875, 876, 880,
886, 887, 891, 892, 895, 896, 902, 904, 907, 913,
920, 922, 925, 926, 929, 934, 939, 948, 950, 954,
955
};
static const short yyrhs[] =
{
108, 143, 0, 109, 133, 0, 119, 224, 0, 110,
131, 0, 4, 0, 0, 132, 4, 10, 189, 0,
0, 134, 135, 0, 135, 136, 97, 0, 0, 92,
189, 0, 92, 189, 122, 189, 0, 4, 0, 93,
0, 99, 138, 0, 98, 0, 103, 4, 10, 189,
0, 103, 4, 122, 189, 0, 103, 4, 189, 0,
102, 4, 0, 94, 4, 122, 189, 0, 94, 4,
189, 0, 94, 4, 10, 189, 0, 38, 4, 10,
189, 0, 38, 4, 122, 189, 0, 89, 4, 10,
189, 0, 89, 4, 122, 189, 0, 95, 140, 0,
96, 139, 0, 100, 4, 0, 105, 4, 122, 4,
0, 105, 4, 122, 3, 0, 104, 189, 0, 106,
3, 0, 111, 141, 0, 112, 142, 0, 0, 55,
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, 171, 0, 150, 0, 216, 0, 180,
0, 181, 0, 183, 0, 185, 0, 152, 0, 226,
0, 123, 0, 64, 37, 4, 124, 0, 65, 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, 85,
37, 149, 124, 0, 0, 86, 147, 37, 149, 124,
0, 66, 37, 130, 124, 0, 0, 55, 130, 148,
145, 36, 0, 80, 37, 186, 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, 192, 0, 151,
152, 0, 0, 67, 37, 4, 124, 0, 169, 168,
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, 154, 0, 156, 170, 154, 0,
4, 0, 0, 125, 158, 156, 126, 0, 0, 154,
159, 37, 156, 124, 0, 157, 0, 0, 120, 37,
161, 157, 124, 0, 169, 168, 0, 84, 0, 123,
0, 88, 0, 48, 37, 88, 124, 0, 160, 0,
165, 37, 187, 124, 0, 82, 37, 187, 124, 0,
163, 162, 0, 162, 0, 0, 163, 0, 41, 0,
42, 0, 43, 0, 44, 0, 45, 0, 10, 187,
0, 0, 6, 0, 7, 0, 8, 0, 9, 0,
11, 0, 12, 0, 13, 0, 14, 0, 123, 0,
122, 0, 4, 10, 187, 0, 4, 167, 187, 0,
91, 37, 4, 10, 187, 124, 0, 122, 0, 0,
56, 49, 173, 172, 50, 0, 172, 173, 0, 172,
122, 173, 0, 0, 0, 4, 174, 177, 16, 175,
170, 176, 0, 81, 10, 187, 0, 83, 10, 187,
0, 0, 37, 178, 124, 0, 179, 0, 178, 179,
0, 4, 0, 127, 4, 0, 75, 37, 130, 124,
0, 76, 37, 182, 124, 0, 76, 37, 124, 0,
182, 170, 130, 0, 130, 0, 77, 37, 184, 124,
0, 184, 170, 130, 0, 0, 78, 0, 79, 0,
0, 4, 186, 0, 4, 122, 186, 0, 0, 188,
189, 0, 31, 189, 0, 37, 189, 124, 0, 68,
37, 189, 124, 0, 127, 189, 0, 30, 189, 0,
128, 189, 0, 189, 32, 189, 0, 189, 33, 189,
0, 189, 34, 189, 0, 189, 30, 189, 0, 189,
31, 189, 0, 189, 28, 189, 0, 189, 29, 189,
0, 189, 22, 189, 0, 189, 23, 189, 0, 189,
26, 189, 0, 189, 27, 189, 0, 189, 24, 189,
0, 189, 25, 189, 0, 189, 21, 189, 0, 189,
20, 189, 0, 189, 19, 189, 0, 189, 15, 189,
16, 189, 0, 189, 18, 189, 0, 189, 17, 189,
0, 63, 37, 4, 124, 0, 3, 0, 51, 0,
69, 37, 4, 124, 0, 71, 37, 4, 124, 0,
72, 37, 4, 124, 0, 95, 37, 189, 124, 0,
38, 37, 189, 124, 0, 39, 37, 189, 124, 0,
4, 0, 73, 37, 189, 122, 189, 124, 0, 74,
37, 189, 122, 189, 124, 0, 101, 37, 189, 122,
4, 124, 0, 90, 25, 4, 0, 0, 90, 37,
189, 124, 0, 0, 0, 0, 0, 0, 0, 4,
193, 207, 191, 194, 49, 195, 164, 50, 196, 210,
190, 211, 166, 197, 170, 0, 0, 0, 0, 0,
0, 62, 198, 208, 209, 191, 199, 49, 200, 212,
50, 201, 210, 190, 211, 166, 202, 170, 0, 0,
0, 86, 203, 207, 204, 49, 151, 50, 0, 58,
0, 59, 0, 60, 0, 61, 0, 62, 0, 37,
205, 124, 0, 0, 37, 124, 0, 189, 206, 16,
0, 206, 16, 0, 40, 37, 189, 124, 206, 16,
0, 40, 37, 189, 124, 39, 37, 189, 124, 206,
16, 0, 189, 16, 0, 16, 0, 0, 80, 0,
25, 4, 0, 0, 0, 211, 16, 4, 0, 0,
0, 0, 0, 212, 4, 213, 49, 164, 50, 214,
211, 166, 215, 170, 0, 47, 49, 217, 50, 0,
0, 217, 218, 0, 0, 0, 4, 219, 221, 222,
220, 123, 0, 189, 0, 0, 4, 223, 222, 0,
90, 37, 189, 124, 222, 0, 0, 37, 189, 124,
0, 0, 225, 228, 0, 0, 227, 118, 49, 228,
50, 0, 229, 0, 228, 229, 0, 114, 49, 231,
50, 123, 0, 114, 49, 231, 50, 230, 123, 0,
114, 0, 230, 114, 0, 0, 232, 123, 0, 116,
16, 232, 123, 0, 117, 16, 232, 123, 0, 116,
16, 232, 123, 117, 16, 232, 123, 0, 115, 0,
232, 123, 115, 0, 0, 112, 4, 49, 233, 232,
50, 0
};
#endif
#if YYDEBUG
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const short yyrline[] =
{
0, 153, 155, 156, 157, 161, 164, 164, 173, 173,
186, 188, 191, 193, 194, 197, 200, 201, 202, 204,
206, 208, 210, 212, 214, 216, 218, 220, 222, 224,
225, 226, 228, 230, 232, 234, 236, 237, 238, 238,
240, 242, 245, 247, 248, 251, 254, 257, 260, 264,
266, 267, 270, 273, 275, 279, 279, 290, 292, 297,
299, 300, 301, 302, 303, 304, 305, 306, 307, 308,
310, 312, 314, 317, 319, 321, 323, 324, 324, 328,
330, 330, 332, 336, 339, 343, 346, 349, 352, 355,
360, 364, 366, 367, 370, 373, 378, 383, 387, 393,
400, 406, 412, 422, 431, 442, 450, 459, 465, 465,
471, 471, 481, 483, 483, 489, 491, 495, 496, 501,
506, 507, 512, 522, 524, 527, 529, 532, 535, 537,
539, 541, 545, 553, 558, 561, 563, 565, 567, 569,
571, 573, 578, 578, 582, 587, 595, 602, 603, 606,
610, 612, 613, 617, 617, 624, 632, 641, 644, 647,
649, 652, 655, 659, 664, 666, 670, 673, 678, 680,
683, 686, 689, 693, 698, 707, 718, 718, 723, 726,
728, 730, 732, 734, 737, 739, 741, 743, 745, 747,
749, 751, 753, 755, 757, 759, 761, 763, 765, 767,
769, 771, 773, 775, 777, 779, 782, 784, 786, 788,
790, 792, 794, 796, 798, 800, 805, 807, 810, 812,
815, 815, 815, 815, 815, 815, 832, 832, 832, 832,
832, 832, 849, 849, 849, 862, 864, 865, 866, 867,
870, 872, 873, 876, 878, 879, 884, 888, 890, 893,
896, 900, 903, 906, 911, 924, 926, 926, 926, 926,
942, 946, 948, 951, 951, 951, 961, 991, 996, 1008,
1015, 1020, 1028, 1028, 1042, 1042, 1052, 1054, 1057, 1062,
1068, 1073, 1079, 1084, 1088, 1092, 1096, 1102, 1107, 1111,
1111
};
#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", "INCLUDE", "MEMORY", "DEFSYMEND", "NOLOAD", "DSECT",
"COPY", "INFO", "OVERLAY", "DEFINED", "TARGET_K", "SEARCH_DIR", "MAP",
"ENTRY", "NEXT", "SIZEOF", "SIZEOF_UNADJ", "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",
"@7", "@8", "input_section_spec", "@9", "statement", "statement_list",
"statement_list_opt", "length", "fill_opt", "assign_op", "end",
"assignment", "opt_comma", "memory", "memory_spec_list", "memory_spec",
"@10", "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", "@11", "exp", "memspec_at_opt",
"opt_at", "section", "@12", "@13", "@14", "@15", "@16", "@17", "@18",
"@19", "@20", "@21", "@22", "@23", "type", "atype", "opt_exp_with_type",
"opt_exp_without_type", "opt_nocrossrefs", "memspec_opt", "phdr_opt",
"overlay_section", "@24", "@25", "@26", "phdrs", "phdr_list", "phdr",
"@27", "@28", "phdr_type", "phdr_qualifiers", "phdr_val",
"version_script_file", "@29", "version", "@30", "vers_nodes",
"vers_node", "verdep", "vers_tag", "vers_defns", "@31", 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, 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, 158, 157,
159, 157, 160, 161, 160, 162, 162, 162, 162, 162,
162, 162, 162, 163, 163, 164, 164, 165, 165, 165,
165, 165, 166, 166, 167, 167, 167, 167, 167, 167,
167, 167, 168, 168, 169, 169, 169, 170, 170, 171,
172, 172, 172, 174, 173, 175, 176, 177, 177, 178,
178, 179, 179, 180, 181, 181, 182, 182, 183, 184,
184, 185, 185, 186, 186, 186, 188, 187, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 190, 190, 191, 191,
193, 194, 195, 196, 197, 192, 198, 199, 200, 201,
202, 192, 203, 204, 192, 205, 205, 205, 205, 205,
206, 206, 206, 207, 207, 207, 207, 208, 208, 209,
209, 210, 210, 211, 211, 212, 213, 214, 215, 212,
216, 217, 217, 219, 220, 218, 221, 222, 222, 222,
223, 223, 225, 224, 227, 226, 228, 228, 229, 229,
230, 230, 231, 231, 231, 231, 231, 232, 232, 233,
232
};
/* 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, 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, 1, 3, 1, 0, 4,
0, 5, 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, 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, 272, 1, 58, 2, 11, 4,
0, 3, 0, 56, 9, 0, 0, 273, 276, 0,
0, 0, 0, 75, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 171, 172, 0, 0, 77, 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, 282, 277, 134,
135, 136, 137, 176, 138, 139, 140, 141, 176, 93,
261, 0, 0, 5, 80, 0, 0, 0, 0, 0,
0, 0, 170, 173, 0, 0, 0, 0, 0, 143,
142, 95, 0, 0, 38, 0, 204, 212, 0, 0,
0, 0, 0, 205, 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, 287, 0, 0, 0,
0, 144, 0, 145, 0, 0, 0, 0, 58, 153,
152, 0, 0, 0, 0, 0, 165, 167, 148, 148,
173, 0, 84, 87, 0, 0, 0, 0, 0, 0,
0, 0, 11, 0, 0, 182, 178, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 181,
183, 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, 0, 0, 0, 0, 283,
177, 220, 90, 226, 232, 92, 91, 263, 260, 262,
0, 72, 74, 274, 157, 0, 69, 70, 79, 94,
163, 147, 164, 0, 168, 0, 173, 174, 82, 86,
89, 0, 76, 0, 71, 176, 83, 0, 25, 26,
41, 27, 28, 179, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 202, 201, 199, 198,
197, 191, 192, 195, 196, 193, 194, 189, 190, 187,
188, 184, 185, 186, 13, 24, 22, 48, 46, 42,
18, 19, 33, 32, 51, 54, 289, 0, 0, 280,
278, 0, 288, 241, 0, 241, 0, 0, 81, 0,
0, 149, 0, 150, 166, 169, 175, 85, 88, 78,
0, 275, 39, 210, 211, 203, 180, 206, 207, 208,
0, 0, 209, 0, 0, 0, 284, 285, 281, 279,
0, 0, 241, 0, 219, 248, 0, 249, 233, 266,
267, 0, 161, 0, 0, 159, 0, 151, 146, 0,
0, 0, 200, 0, 0, 235, 236, 237, 238, 239,
242, 0, 0, 0, 0, 244, 0, 221, 247, 250,
219, 0, 270, 0, 264, 0, 162, 158, 160, 0,
148, 213, 214, 215, 290, 0, 0, 240, 0, 243,
0, 0, 227, 93, 0, 267, 0, 0, 73, 176,
0, 0, 241, 0, 222, 0, 0, 0, 268, 0,
265, 155, 0, 154, 286, 0, 0, 218, 125, 228,
234, 271, 267, 176, 0, 245, 107, 98, 97, 127,
128, 129, 130, 131, 0, 0, 116, 118, 0, 0,
117, 108, 99, 110, 112, 120, 124, 126, 0, 0,
0, 255, 269, 156, 0, 0, 176, 113, 0, 0,
0, 123, 223, 176, 115, 0, 241, 96, 0, 0,
0, 0, 0, 104, 0, 0, 105, 148, 0, 252,
0, 256, 229, 0, 119, 0, 101, 122, 96, 0,
0, 103, 0, 109, 0, 148, 0, 217, 121, 0,
252, 246, 0, 114, 100, 106, 111, 251, 0, 253,
125, 217, 0, 0, 133, 0, 253, 0, 216, 176,
0, 224, 257, 133, 102, 132, 254, 148, 253, 230,
225, 133, 148, 258, 231, 148, 259, 0, 0, 0
};
static const short yydefgoto[] =
{
587, 94, 9, 10, 7, 8, 14, 75, 192, 141,
140, 138, 149, 151, 5, 6, 13, 43, 105, 168,
184, 44, 164, 45, 492, 493, 524, 527, 494, 509,
510, 495, 522, 496, 497, 498, 499, 571, 88, 111,
46, 544, 47, 265, 170, 264, 430, 463, 350, 394,
395, 48, 49, 178, 50, 179, 51, 181, 161, 162,
197, 559, 417, 256, 343, 441, 468, 529, 577, 344,
455, 501, 550, 582, 345, 421, 411, 383, 384, 387,
420, 547, 564, 515, 549, 578, 585, 52, 165, 259,
346, 447, 390, 424, 445, 11, 12, 53, 54, 17,
18, 341, 159, 160, 375
};
static const short yypact[] =
{
91,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
41,-32768, -63, 578, 582, 44, 14, -63,-32768, 751,
56, 65, 45,-32768, 85, 68, 136, 174, 184, 188,
194, 204, 208, 215,-32768,-32768, 219, 232,-32768, 241,
242, 244,-32768,-32768,-32768,-32768, -5,-32768,-32768,-32768,
-32768,-32768,-32768,-32768, 164,-32768, 279, 68, 280, 472,
-32768, 285, 286, 287,-32768,-32768, 288, 289, 290, 472,
291, 294, 300, 301, 302, 201, 472, 92,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768, 306, 307,-32768,-32768, 310, 311, 68, 68, 313,
68, 10,-32768, 314, 198, 282, 68, 327, 301,-32768,
-32768,-32768, 271, 6,-32768, 69,-32768,-32768, 472, 472,
472, 295, 297,-32768, 298, 299, 303, 308, 309, 312,
315, 318, 319, 472, 472, 1056, 270,-32768, 225,-32768,
226, 9,-32768,-32768, 373, 1252, 228,-32768,-32768, 229,
-32768, 17,-32768,-32768, 1252, 333,-32768, 341, 342, 317,
236,-32768, 472,-32768, 33, 24, -33, 238,-32768,-32768,
-32768, 239, 240, 245, 246, 248,-32768,-32768, 1, 108,
30, 249,-32768,-32768, 53, 198, 250, 350, 64, -63,
472, 472,-32768, 472, 472,-32768,-32768, 800, 472, 472,
362, 472, 364, 371, 374, 472, 472, 472, 472,-32768,
-32768, 472, 472, 472, 472, 472, 472, 472, 472, 472,
472, 472, 472, 472, 472, 472, 472, 472, 472, 472,
472, 472, 472, 1252, 375, 376,-32768, 377, 472, 472,
1252, 186, 380,-32768, 383, 340, -82, -82, -85, 275,
1252, 751,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
387,-32768,-32768, 656, 356, 23,-32768,-32768,-32768,-32768,
-32768,-32768,-32768, 68,-32768, 68, 314,-32768,-32768,-32768,
-32768, 267,-32768, 60,-32768,-32768,-32768, -26, 1252, 1252,
701, 1252, 1252,-32768, 820, 840, 276, 860, 278, 281,
283, 1076, 1096, 880, 1124, 1204, 1182, 1142, 1267, 1281,
1294, 563, 563, 231, 231, 231, 231, 185, 185, 195,
195,-32768,-32768,-32768, 1252, 1252, 1252,-32768,-32768,-32768,
1252, 1252,-32768,-32768,-32768,-32768,-32768, 292, 296,-32768,
-32768, -71,-32768, 392, 453, 392, 472, 272,-32768, 11,
397,-32768, 310,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
284,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
472, 472,-32768, 395, 472, -82, 125, 275,-32768,-32768,
175, 384, 1162, 398, 330,-32768, 1232, 337,-32768, 1252,
18, 422,-32768, 423, 3,-32768, 347,-32768,-32768, 908,
928, 324, 1252, -24, 417,-32768,-32768,-32768,-32768,-32768,
-32768, 325, 472, 134, 418,-32768, 400,-32768,-32768,-32768,
330, 386, 401, 402,-32768, 326,-32768,-32768,-32768, 430,
329,-32768,-32768,-32768,-32768, 275, -82,-32768, 948,-32768,
472, 403,-32768,-32768, 472, 18, 472, 331,-32768,-32768,
370, 335, 214, 968,-32768, 410, 35, 988,-32768, 1016,
-32768,-32768, 452,-32768, 275, 433, 451,-32768, 527,-32768,
-32768,-32768, 18,-32768, 472,-32768, 316,-32768,-32768,-32768,
-32768,-32768,-32768,-32768, 434, 435,-32768,-32768, 436, 440,
-32768,-32768,-32768,-32768,-32768,-32768,-32768, 527, 428, 442,
-5,-32768,-32768,-32768, 1036, 8,-32768,-32768, 88, 62,
443,-32768,-32768,-32768,-32768, 37, 445,-32768, 361, 449,
365, 372, 21,-32768, 27, 457,-32768, -10, 62, 463,
381,-32768,-32768, 481,-32768, 88,-32768,-32768, 382, 388,
88,-32768, 66,-32768, 62, 144, 494, 409,-32768, 458,
463,-32768, 52,-32768,-32768,-32768,-32768,-32768, 483,-32768,
527, 409, 88, 509, 99, 464,-32768, 391,-32768,-32768,
513,-32768,-32768, 99,-32768,-32768,-32768, 329,-32768,-32768,
-32768, 99, 329,-32768,-32768, 329,-32768, 518, 528,-32768
};
static const short yypgoto[] =
{
-32768, -51,-32768,-32768,-32768,-32768, 338,-32768,-32768,-32768,
-32768,-32768,-32768, 421,-32768,-32768, 366,-32768,-32768,-32768,
348,-32768, 89, -160, -285, -438, 2, 19, 16,-32768,
-32768,-32768,-32768, 39,-32768, -21,-32768, -480,-32768, 49,
-449, -176,-32768,-32768, -245,-32768,-32768,-32768,-32768,-32768,
156,-32768,-32768,-32768,-32768,-32768,-32768, -163, -88,-32768,
-58, -9, 131,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768, -372, 210,-32768,
-32768, 7, -534,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,-32768, -410,-32768,-32768,-32768,-32768,-32768, 367,
-12,-32768,-32768, -238,-32768
};
#define YYLAST 1328
static const short yytable[] =
{
163, 135, 273, 275, 255, 78, 114, 392, 337, 338,
414, 145, 517, 236, 93, 392, 190, 277, 154, 500,
353, 243, 422, 477, 361, 538, 434, 169, 257, 339,
155, 517, 573, 156, 180, 458, 477, 251, 340, 251,
478, 531, 477, 378, 581, 15, 172, 173, 500, 175,
177, 16, 379, 478, 76, 186, 517, 279, 280, 478,
195, 196, 502, 77, 279, 280, 517, 477, 243, 525,
517, 526, 93, 351, 258, 209, 210, 477, 233, 193,
466, 477, 91, 252, 478, 470, 240, 532, 16, 260,
526, 261, 517, 579, 478, 253, 518, 253, 478, 435,
30, 583, 30, 477, 250, 89, 555, 397, 423, 569,
525, 500, 271, 356, 90, 570, 543, 109, 110, 254,
478, 254, 92, 271, 40, 272, 40, 427, 191, 519,
393, 237, 288, 289, 176, 291, 292, 403, 393, 244,
294, 295, 489, 297, 533, 352, 491, 301, 302, 303,
304, 540, 276, 305, 306, 307, 308, 309, 310, 311,
312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
322, 323, 324, 325, 326, 281, 562, 282, 116, 117,
330, 331, 281, 489, 359, 95, 244, 519, 286, 332,
333, 194, 405, 406, 407, 408, 409, 360, 451, 1,
2, 3, 182, 183, 155, 118, 119, 156, 157, 158,
4, 96, 120, 121, 122, 225, 226, 227, 228, 229,
520, 97, 354, 523, 355, 98, 123, 227, 228, 229,
271, 99, 274, 405, 406, 407, 408, 409, 124, 541,
342, 100, 404, 125, 126, 101, 127, 128, 129, 130,
523, 413, 102, 465, 450, 554, 103, 520, 410, 223,
224, 225, 226, 227, 228, 229, 271, 541, 556, 104,
131, 357, 358, 116, 117, 78, 132, 567, 106, 107,
231, 108, 112, 113, 115, 382, 386, 382, 389, 136,
137, 139, 142, 143, 144, 146, 255, 147, 153, 410,
118, 119, 133, 134, 148, 150, 152, 120, 121, 122,
166, 167, 399, 400, 169, 171, 402, 174, 180, 185,
189, 123, 79, 80, 81, 82, 83, 84, 85, 86,
87, 187, 198, 124, 199, 200, 201, 245, 125, 126,
202, 127, 128, 129, 130, 203, 204, 234, 235, 205,
241, 242, 206, -96, 438, 207, 208, 246, 247, 249,
285, 461, 262, 266, 267, 131, 296, 248, 298, 268,
269, 132, 270, 278, 284, 299, 116, 117, 300, 327,
328, 329, 453, 238, 334, 503, 457, 335, 459, 336,
342, 347, 232, 349, 391, 116, 117, 133, 134, 401,
365, 580, 367, 118, 119, 368, 584, 369, 398, 586,
120, 121, 122, 396, 415, 376, 504, 419, 521, 377,
416, 412, 118, 119, 123, 530, 425, 426, 429, 380,
121, 122, 381, 436, 439, 443, 124, 440, 444, 446,
449, 125, 126, 123, 127, 128, 129, 130, 433, 437,
448, 271, 454, 462, 460, 124, 116, 117, 464, 469,
125, 126, 473, 127, 128, 129, 130, 475, 131, 385,
474, 505, 506, 507, 132, 116, 117, 508, 512, 513,
528, 575, 413, 118, 119, 534, 535, 131, 546, 536,
120, 121, 122, 132, 542, 239, 537, 551, 557, 558,
133, 134, 118, 119, 123, 548, -107, 560, 563, 120,
121, 122, 553, 568, 572, 574, 124, 576, 588, 133,
134, 125, 126, 123, 127, 128, 129, 130, 589, 188,
290, 476, 456, 283, 263, 124, 511, 552, 539, 565,
125, 126, 477, 127, 128, 129, 130, 545, 131, 514,
428, 442, 566, 0, 132, 388, 287, 561, 0, 478,
0, 0, 0, 0, 0, 0, 0, 131, 479, 480,
481, 482, 483, 132, 0, 484, 0, 0, 0, 0,
133, 134, 19, 0, 0, 0, 55, 219, 220, 221,
222, 223, 224, 225, 226, 227, 228, 229, 0, 133,
134, 0, 0, 0, 0, 0, 0, 0, 0, 485,
0, 486, 0, 0, 0, 487, 0, 0, 40, 0,
56, 0, 0, 0, 20, 21, 0, 0, 0, 0,
22, 23, 24, 25, 26, 0, 0, 57, 0, 0,
0, 0, 27, 28, 29, 30, 0, 488, 489, 0,
490, 0, 491, 31, 32, 33, 34, 35, 36, 0,
19, 0, 0, 37, 38, 39, 0, 0, 0, 40,
0, 58, 0, 0, 59, 60, 61, 62, 63, -41,
64, 65, 66, 0, 67, 68, 69, 70, 71, 0,
41, 0, 348, 72, 73, 74, -274, 0, 0, 0,
0, 42, 20, 21, 0, 55, 0, 0, 22, 23,
24, 25, 26, 0, 0, 0, 0, 0, 0, 0,
27, 28, 29, 30, 0, 0, 0, 0, 0, 0,
0, 31, 32, 33, 34, 35, 36, 362, 0, 56,
0, 37, 38, 39, 0, 0, 0, 40, 0, 0,
0, 0, 0, 0, 0, 0, 57, 79, 80, 81,
82, 83, 84, 85, 86, 87, 0, 0, 41, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 42,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
58, 0, 0, 59, 60, 61, 62, 63, 0, 64,
65, 66, 0, 67, 68, 69, 70, 71, 0, 0,
0, 0, 72, 73, 74, 211, 0, 212, 213, 214,
215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 211, 0, 212, 213, 214,
215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 211, 0, 212, 213, 214,
215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 211, 0, 212, 213, 214,
215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 211, 0, 212, 213, 214,
215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
225, 226, 227, 228, 229, 0, 0, 0, 0, 0,
0, 0, 0, 211, 293, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 211, 363, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 211, 364, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 211, 366, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 211, 372, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 0, 0, 0, 0, 0, 0, 0,
0, 211, 431, 212, 213, 214, 215, 216, 217, 218,
219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
229, 211, 432, 212, 213, 214, 215, 216, 217, 218,
219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
229, 211, 452, 212, 213, 214, 215, 216, 217, 218,
219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
229, 211, 467, 212, 213, 214, 215, 216, 217, 218,
219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
229, 211, 471, 212, 213, 214, 215, 216, 217, 218,
219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
229, 0, 0, 0, 0, 0, 0, 0, 0, 211,
472, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 0,
516, 214, 215, 216, 217, 218, 219, 220, 221, 222,
223, 224, 225, 226, 227, 228, 229, 211, 230, 212,
213, 214, 215, 216, 217, 218, 219, 220, 221, 222,
223, 224, 225, 226, 227, 228, 229, 0, 370, 413,
213, 214, 215, 216, 217, 218, 219, 220, 221, 222,
223, 224, 225, 226, 227, 228, 229, 0, 371, 211,
374, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 0,
0, 0, 0, 0, 0, 0, 373, 211, 418, 212,
213, 214, 215, 216, 217, 218, 219, 220, 221, 222,
223, 224, 225, 226, 227, 228, 229, 211, 0, 212,
213, 214, 215, 216, 217, 218, 219, 220, 221, 222,
223, 224, 225, 226, 227, 228, 229, 215, 216, 217,
218, 219, 220, 221, 222, 223, 224, 225, 226, 227,
228, 229, 216, 217, 218, 219, 220, 221, 222, 223,
224, 225, 226, 227, 228, 229, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229
};
static const short yycheck[] =
{
88, 59, 178, 179, 164, 17, 57, 4, 246, 247,
382, 69, 4, 4, 4, 4, 10, 180, 76, 468,
265, 4, 4, 15, 50, 4, 50, 4, 4, 114,
112, 4, 566, 115, 4, 445, 15, 4, 123, 4,
32, 4, 15, 114, 578, 4, 97, 98, 497, 100,
101, 114, 123, 32, 10, 106, 4, 4, 5, 32,
118, 119, 472, 49, 4, 5, 4, 15, 4, 48,
4, 509, 4, 50, 50, 133, 134, 15, 136, 10,
452, 15, 37, 50, 32, 50, 144, 50, 114, 122,
528, 124, 4, 573, 32, 62, 88, 62, 32, 123,
67, 581, 67, 15, 162, 49, 544, 352, 90, 10,
48, 560, 122, 276, 49, 16, 126, 122, 123, 86,
32, 86, 37, 122, 91, 124, 91, 124, 122, 121,
127, 122, 190, 191, 124, 193, 194, 375, 127, 122,
198, 199, 121, 201, 516, 122, 125, 205, 206, 207,
208, 124, 122, 211, 212, 213, 214, 215, 216, 217,
218, 219, 220, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 122, 124, 124, 3, 4,
238, 239, 122, 121, 124, 49, 122, 121, 124, 3,
4, 122, 58, 59, 60, 61, 62, 285, 436, 108,
109, 110, 4, 5, 112, 30, 31, 115, 116, 117,
119, 37, 37, 38, 39, 30, 31, 32, 33, 34,
505, 37, 273, 508, 275, 37, 51, 32, 33, 34,
122, 37, 124, 58, 59, 60, 61, 62, 63, 524,
115, 37, 117, 68, 69, 37, 71, 72, 73, 74,
535, 37, 37, 39, 430, 540, 37, 542, 124, 28,
29, 30, 31, 32, 33, 34, 122, 552, 124, 37,
95, 4, 5, 3, 4, 287, 101, 562, 37, 37,
10, 37, 118, 4, 4, 343, 344, 345, 346, 4,
4, 4, 4, 4, 4, 4, 456, 3, 97, 124,
30, 31, 127, 128, 4, 4, 4, 37, 38, 39,
4, 4, 370, 371, 4, 4, 374, 4, 4, 37,
49, 51, 6, 7, 8, 9, 10, 11, 12, 13,
14, 4, 37, 63, 37, 37, 37, 4, 68, 69,
37, 71, 72, 73, 74, 37, 37, 122, 122, 37,
122, 122, 37, 37, 412, 37, 37, 16, 16, 123,
10, 449, 124, 124, 124, 95, 4, 50, 4, 124,
124, 101, 124, 124, 124, 4, 3, 4, 4, 4,
4, 4, 440, 10, 4, 473, 444, 4, 446, 49,
115, 4, 122, 37, 122, 3, 4, 127, 128, 4,
124, 577, 124, 30, 31, 124, 582, 124, 124, 585,
37, 38, 39, 16, 16, 123, 474, 80, 506, 123,
90, 37, 30, 31, 51, 513, 4, 4, 81, 37,
38, 39, 40, 16, 16, 49, 63, 37, 37, 37,
10, 68, 69, 51, 71, 72, 73, 74, 124, 124,
124, 122, 49, 83, 123, 63, 3, 4, 123, 49,
68, 69, 10, 71, 72, 73, 74, 16, 95, 16,
37, 37, 37, 37, 101, 3, 4, 37, 50, 37,
37, 569, 37, 30, 31, 124, 37, 95, 25, 124,
37, 38, 39, 101, 37, 122, 124, 16, 4, 90,
127, 128, 30, 31, 51, 124, 124, 49, 25, 37,
38, 39, 124, 4, 50, 124, 63, 4, 0, 127,
128, 68, 69, 51, 71, 72, 73, 74, 0, 108,
192, 4, 443, 185, 168, 63, 497, 535, 522, 560,
68, 69, 15, 71, 72, 73, 74, 528, 95, 500,
394, 420, 561, -1, 101, 345, 189, 550, -1, 32,
-1, -1, -1, -1, -1, -1, -1, 95, 41, 42,
43, 44, 45, 101, -1, 48, -1, -1, -1, -1,
127, 128, 4, -1, -1, -1, 4, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, -1, 127,
128, -1, -1, -1, -1, -1, -1, -1, -1, 82,
-1, 84, -1, -1, -1, 88, -1, -1, 91, -1,
38, -1, -1, -1, 46, 47, -1, -1, -1, -1,
52, 53, 54, 55, 56, -1, -1, 55, -1, -1,
-1, -1, 64, 65, 66, 67, -1, 120, 121, -1,
123, -1, 125, 75, 76, 77, 78, 79, 80, -1,
4, -1, -1, 85, 86, 87, -1, -1, -1, 91,
-1, 89, -1, -1, 92, 93, 94, 95, 96, 97,
98, 99, 100, -1, 102, 103, 104, 105, 106, -1,
112, -1, 36, 111, 112, 113, 118, -1, -1, -1,
-1, 123, 46, 47, -1, 4, -1, -1, 52, 53,
54, 55, 56, -1, -1, -1, -1, -1, -1, -1,
64, 65, 66, 67, -1, -1, -1, -1, -1, -1,
-1, 75, 76, 77, 78, 79, 80, 36, -1, 38,
-1, 85, 86, 87, -1, -1, -1, 91, -1, -1,
-1, -1, -1, -1, -1, -1, 55, 6, 7, 8,
9, 10, 11, 12, 13, 14, -1, -1, 112, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 123,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
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, 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, 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, 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, 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, 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, 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, 15,
124, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, -1,
124, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34, 15, 122, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34, -1, 122, 37,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34, -1, 122, 15,
16, 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, 122, 15, 16, 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, 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, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34
};
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
#line 3 "/usr/pkg/share/bison/bison.simple"
/* Skeleton output parser for bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001 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
# define YYSIZE_T YYSTD (size_t)
# else
# ifndef YYSTACK_USE_ALLOCA
# if defined (alloca) || defined (_ALLOCA_H)
# define YYSTACK_ALLOC alloca
# define YYSIZE_T YYSTD (size_t)
# 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/pkg/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 165 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_defsym(); }
break;
case 7:
#line 167 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_popstate();
lang_add_assignment(exp_assop(yyvsp[-1].token,yyvsp[-2].name,yyvsp[0].etree));
}
break;
case 8:
#line 174 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_mri_script ();
PUSH_ERROR (_("MRI style script"));
}
break;
case 9:
#line 179 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_popstate ();
mri_draw_tree ();
POP_ERROR ();
}
break;
case 14:
#line 194 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
einfo(_("%P%F: unrecognised keyword in MRI style script '%s'\n"),yyvsp[0].name);
}
break;
case 15:
#line 197 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
config.map_filename = "-";
}
break;
case 18:
#line 203 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_public(yyvsp[-2].name, yyvsp[0].etree); }
break;
case 19:
#line 205 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_public(yyvsp[-2].name, yyvsp[0].etree); }
break;
case 20:
#line 207 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_public(yyvsp[-1].name, yyvsp[0].etree); }
break;
case 21:
#line 209 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_format(yyvsp[0].name); }
break;
case 22:
#line 211 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_output_section(yyvsp[-2].name, yyvsp[0].etree);}
break;
case 23:
#line 213 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_output_section(yyvsp[-1].name, yyvsp[0].etree);}
break;
case 24:
#line 215 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_output_section(yyvsp[-2].name, yyvsp[0].etree);}
break;
case 25:
#line 217 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_align(yyvsp[-2].name,yyvsp[0].etree); }
break;
case 26:
#line 219 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_align(yyvsp[-2].name,yyvsp[0].etree); }
break;
case 27:
#line 221 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); }
break;
case 28:
#line 223 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); }
break;
case 31:
#line 227 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_name(yyvsp[0].name); }
break;
case 32:
#line 229 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_alias(yyvsp[-2].name,yyvsp[0].name,0);}
break;
case 33:
#line 231 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_alias(yyvsp[-2].name,0,(int) yyvsp[0].integer);}
break;
case 34:
#line 233 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_base(yyvsp[0].etree); }
break;
case 35:
#line 235 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_truncate((unsigned int) yyvsp[0].integer); }
break;
case 38:
#line 239 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldfile_open_command_file (yyvsp[0].name); }
break;
case 40:
#line 241 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_entry (yyvsp[0].name, false); }
break;
case 42:
#line 246 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_order(yyvsp[0].name); }
break;
case 43:
#line 247 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_order(yyvsp[0].name); }
break;
case 45:
#line 253 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_load(yyvsp[0].name); }
break;
case 46:
#line 254 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_load(yyvsp[0].name); }
break;
case 47:
#line 259 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_only_load(yyvsp[0].name); }
break;
case 48:
#line 261 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ mri_only_load(yyvsp[0].name); }
break;
case 49:
#line 265 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.name = NULL; }
break;
case 52:
#line 272 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlang_add_undef (yyvsp[0].name); }
break;
case 53:
#line 274 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlang_add_undef (yyvsp[0].name); }
break;
case 54:
#line 276 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlang_add_undef (yyvsp[0].name); }
break;
case 55:
#line 280 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_both();
}
break;
case 56:
#line 284 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_popstate();
}
break;
case 69:
#line 309 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_target(yyvsp[-1].name); }
break;
case 70:
#line 311 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ if (!config.no_std_path) ldfile_add_library_path (yyvsp[-1].name, false); }
break;
case 71:
#line 313 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_output(yyvsp[-1].name, 1); }
break;
case 72:
#line 315 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_output_format (yyvsp[-1].name, (char *) NULL,
(char *) NULL, 1); }
break;
case 73:
#line 318 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_output_format (yyvsp[-5].name, yyvsp[-3].name, yyvsp[-1].name, 1); }
break;
case 74:
#line 320 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldfile_set_output_arch(yyvsp[-1].name); }
break;
case 75:
#line 322 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ command_line.force_common_definition = true ; }
break;
case 77:
#line 325 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_enter_group (); }
break;
case 78:
#line 327 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_leave_group (); }
break;
case 79:
#line 329 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_map(yyvsp[-1].name); }
break;
case 80:
#line 331 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldfile_open_command_file(yyvsp[0].name); }
break;
case 82:
#line 333 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_nocrossref (yyvsp[-1].nocrossref);
}
break;
case 84:
#line 341 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
(char *)NULL); }
break;
case 85:
#line 344 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
(char *)NULL); }
break;
case 86:
#line 347 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
(char *)NULL); }
break;
case 87:
#line 350 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
(char *)NULL); }
break;
case 88:
#line 353 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
(char *)NULL); }
break;
case 89:
#line 356 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
(char *)NULL); }
break;
case 94:
#line 372 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_add_entry (yyvsp[-1].name, false); }
break;
case 96:
#line 380 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.cname = yyvsp[0].name;
}
break;
case 97:
#line 384 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.cname = "*";
}
break;
case 98:
#line 388 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.cname = "?";
}
break;
case 99:
#line 395 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.wildcard.name = yyvsp[0].cname;
yyval.wildcard.sorted = false;
yyval.wildcard.exclude_name_list = NULL;
}
break;
case 100:
#line 401 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.wildcard.name = yyvsp[0].cname;
yyval.wildcard.sorted = false;
yyval.wildcard.exclude_name_list = yyvsp[-2].name_list;
}
break;
case 101:
#line 407 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.wildcard.name = yyvsp[-1].cname;
yyval.wildcard.sorted = true;
yyval.wildcard.exclude_name_list = NULL;
}
break;
case 102:
#line 413 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.wildcard.name = yyvsp[-1].cname;
yyval.wildcard.sorted = true;
yyval.wildcard.exclude_name_list = yyvsp[-3].name_list;
}
break;
case 103:
#line 424 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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 104:
#line 433 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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 105:
#line 444 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_wild (yyvsp[0].wildcard.name, yyvsp[0].wildcard.sorted,
current_file.name,
current_file.sorted,
ldgram_had_keep, yyvsp[0].wildcard.exclude_name_list);
}
break;
case 106:
#line 451 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_wild (yyvsp[0].wildcard.name, yyvsp[0].wildcard.sorted,
current_file.name,
current_file.sorted,
ldgram_had_keep, yyvsp[0].wildcard.exclude_name_list);
}
break;
case 107:
#line 461 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_wild (NULL, false, yyvsp[0].name, false,
ldgram_had_keep, NULL);
}
break;
case 108:
#line 466 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
current_file.name = NULL;
current_file.sorted = false;
}
break;
case 110:
#line 472 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
current_file = yyvsp[0].wildcard;
/* '*' matches any file name. */
if (strcmp (current_file.name, "*") == 0)
current_file.name = NULL;
}
break;
case 113:
#line 484 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldgram_had_keep = true; }
break;
case 114:
#line 486 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldgram_had_keep = false; }
break;
case 116:
#line 492 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_attribute(lang_object_symbols_statement_enum);
}
break;
case 118:
#line 497 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_attribute(lang_constructors_statement_enum);
}
break;
case 119:
#line 502 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
constructors_sorted = true;
lang_add_attribute (lang_constructors_statement_enum);
}
break;
case 121:
#line 508 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_data((int) yyvsp[-3].integer,yyvsp[-1].etree);
}
break;
case 122:
#line 513 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_fill
(exp_get_value_int(yyvsp[-1].etree,
0,
"fill value",
lang_first_phase_enum));
}
break;
case 127:
#line 534 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 128:
#line 536 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 129:
#line 538 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 130:
#line 540 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 131:
#line 542 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.integer = yyvsp[0].token; }
break;
case 132:
#line 547 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.integer = exp_get_value_int(yyvsp[0].etree,
0,
"fill value",
lang_first_phase_enum);
}
break;
case 133:
#line 553 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.integer = 0; }
break;
case 134:
#line 560 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.token = '+'; }
break;
case 135:
#line 562 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.token = '-'; }
break;
case 136:
#line 564 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.token = '*'; }
break;
case 137:
#line 566 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.token = '/'; }
break;
case 138:
#line 568 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.token = LSHIFT; }
break;
case 139:
#line 570 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.token = RSHIFT; }
break;
case 140:
#line 572 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.token = '&'; }
break;
case 141:
#line 574 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.token = '|'; }
break;
case 144:
#line 584 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_assignment (exp_assop (yyvsp[-1].token, yyvsp[-2].name, yyvsp[0].etree));
}
break;
case 145:
#line 588 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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 146:
#line 596 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_add_assignment (exp_provide (yyvsp[-3].name, yyvsp[-1].etree));
}
break;
case 153:
#line 618 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ region = lang_memory_region_lookup(yyvsp[0].name); }
break;
case 155:
#line 626 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ region->current =
region->origin =
exp_get_vma(yyvsp[0].etree, 0L,"origin", lang_first_phase_enum);
}
break;
case 156:
#line 634 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ region->length = exp_get_vma(yyvsp[0].etree,
~((bfd_vma)0),
"length",
lang_first_phase_enum);
}
break;
case 157:
#line 643 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ /* dummy action to avoid bison 1.25 error message */ }
break;
case 161:
#line 654 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_set_flags (region, yyvsp[0].name, 0); }
break;
case 162:
#line 656 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_set_flags (region, yyvsp[0].name, 1); }
break;
case 163:
#line 661 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_startup(yyvsp[-1].name); }
break;
case 165:
#line 667 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldemul_hll((char *)NULL); }
break;
case 166:
#line 672 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldemul_hll(yyvsp[0].name); }
break;
case 167:
#line 674 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldemul_hll(yyvsp[0].name); }
break;
case 169:
#line 682 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldemul_syslib(yyvsp[0].name); }
break;
case 171:
#line 688 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_float(true); }
break;
case 172:
#line 690 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ lang_float(false); }
break;
case 173:
#line 695 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.nocrossref = NULL;
}
break;
case 174:
#line 699 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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 175:
#line 708 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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 176:
#line 718 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_expression(); }
break;
case 177:
#line 720 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_popstate(); yyval.etree=yyvsp[0].etree;}
break;
case 178:
#line 725 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_unop('-', yyvsp[0].etree); }
break;
case 179:
#line 727 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = yyvsp[-1].etree; }
break;
case 180:
#line 729 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_unop((int) yyvsp[-3].integer,yyvsp[-1].etree); }
break;
case 181:
#line 731 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_unop('!', yyvsp[0].etree); }
break;
case 182:
#line 733 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = yyvsp[0].etree; }
break;
case 183:
#line 735 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_unop('~', yyvsp[0].etree);}
break;
case 184:
#line 738 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('*', yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 185:
#line 740 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('/', yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 186:
#line 742 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('%', yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 187:
#line 744 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('+', yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 188:
#line 746 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('-' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 189:
#line 748 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop(LSHIFT , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 190:
#line 750 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop(RSHIFT , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 191:
#line 752 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop(EQ , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 192:
#line 754 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop(NE , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 193:
#line 756 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop(LE , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 194:
#line 758 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop(GE , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 195:
#line 760 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('<' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 196:
#line 762 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('>' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 197:
#line 764 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('&' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 198:
#line 766 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('^' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 199:
#line 768 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop('|' , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 200:
#line 770 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_trinop('?' , yyvsp[-4].etree, yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 201:
#line 772 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop(ANDAND , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 202:
#line 774 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop(OROR , yyvsp[-2].etree, yyvsp[0].etree); }
break;
case 203:
#line 776 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_nameop(DEFINED, yyvsp[-1].name); }
break;
case 204:
#line 778 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_intop(yyvsp[0].integer); }
break;
case 205:
#line 780 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_nameop(SIZEOF_HEADERS,0); }
break;
case 206:
#line 783 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_nameop(SIZEOF,yyvsp[-1].name); }
break;
case 207:
#line 785 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_nameop(ADDR,yyvsp[-1].name); }
break;
case 208:
#line 787 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_nameop(LOADADDR,yyvsp[-1].name); }
break;
case 209:
#line 789 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_unop(ABSOLUTE, yyvsp[-1].etree); }
break;
case 210:
#line 791 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); }
break;
case 211:
#line 793 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); }
break;
case 212:
#line 795 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_nameop(NAME,yyvsp[0].name); }
break;
case 213:
#line 797 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop (MAX_K, yyvsp[-3].etree, yyvsp[-1].etree ); }
break;
case 214:
#line 799 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_binop (MIN_K, yyvsp[-3].etree, yyvsp[-1].etree ); }
break;
case 215:
#line 801 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = exp_assert (yyvsp[-3].etree, yyvsp[-1].name); }
break;
case 216:
#line 806 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.name = yyvsp[0].name; }
break;
case 217:
#line 807 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.name = "*default*"; }
break;
case 218:
#line 811 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = yyvsp[-1].etree; }
break;
case 219:
#line 812 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = 0; }
break;
case 220:
#line 815 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_expression(); }
break;
case 221:
#line 817 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_popstate (); ldlex_script (); }
break;
case 222:
#line 819 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_enter_output_section_statement(yyvsp[-5].name, yyvsp[-3].etree,
sectype,
0, 0, 0, yyvsp[-2].etree);
}
break;
case 223:
#line 825 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_popstate (); ldlex_expression (); }
break;
case 224:
#line 827 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_popstate ();
lang_leave_output_section_statement (yyvsp[0].integer, yyvsp[-3].name, yyvsp[-1].section_phdr, yyvsp[-2].name);
}
break;
case 226:
#line 833 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_expression (); }
break;
case 227:
#line 835 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_popstate (); ldlex_script (); }
break;
case 228:
#line 837 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_enter_overlay (yyvsp[-4].etree, yyvsp[-2].etree, (int) yyvsp[-3].integer);
}
break;
case 229:
#line 842 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_popstate (); ldlex_expression (); }
break;
case 230:
#line 844 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_popstate ();
lang_leave_overlay (yyvsp[0].integer, yyvsp[-3].name, yyvsp[-1].section_phdr, yyvsp[-2].name);
}
break;
case 232:
#line 853 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_expression (); }
break;
case 233:
#line 855 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_popstate ();
lang_add_assignment (exp_assop ('=', ".", yyvsp[0].etree));
}
break;
case 235:
#line 863 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ sectype = noload_section; }
break;
case 236:
#line 864 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ sectype = dsect_section; }
break;
case 237:
#line 865 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ sectype = copy_section; }
break;
case 238:
#line 866 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ sectype = info_section; }
break;
case 239:
#line 867 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ sectype = overlay_section; }
break;
case 241:
#line 872 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ sectype = normal_section; }
break;
case 242:
#line 873 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ sectype = normal_section; }
break;
case 243:
#line 877 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = yyvsp[-2].etree; }
break;
case 244:
#line 878 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = (etree_type *)NULL; }
break;
case 245:
#line 883 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = yyvsp[-3].etree; }
break;
case 246:
#line 885 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = yyvsp[-7].etree; }
break;
case 247:
#line 889 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = yyvsp[-1].etree; }
break;
case 248:
#line 890 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.etree = (etree_type *) NULL; }
break;
case 249:
#line 895 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.integer = 0; }
break;
case 250:
#line 897 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.integer = 1; }
break;
case 251:
#line 902 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.name = yyvsp[0].name; }
break;
case 252:
#line 903 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ yyval.name = "*default*"; }
break;
case 253:
#line 908 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.section_phdr = NULL;
}
break;
case 254:
#line 912 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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 256:
#line 928 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_script ();
lang_enter_overlay_section (yyvsp[0].name);
}
break;
case 257:
#line 933 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_popstate (); ldlex_expression (); }
break;
case 258:
#line 935 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_popstate ();
lang_leave_overlay_section (yyvsp[0].integer, yyvsp[-1].section_phdr);
}
break;
case 263:
#line 952 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_expression (); }
break;
case 264:
#line 953 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{ ldlex_popstate (); }
break;
case 265:
#line 955 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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 266:
#line 963 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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 267:
#line 993 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
memset (&yyval.phdr, 0, sizeof (struct phdr_info));
}
break;
case 268:
#line 997 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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 269:
#line 1009 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.phdr = yyvsp[0].phdr;
yyval.phdr.at = yyvsp[-2].etree;
}
break;
case 270:
#line 1017 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.etree = NULL;
}
break;
case 271:
#line 1021 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.etree = yyvsp[-1].etree;
}
break;
case 272:
#line 1029 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_version_file ();
PUSH_ERROR (_("VERSION script"));
}
break;
case 273:
#line 1034 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_popstate ();
POP_ERROR ();
}
break;
case 274:
#line 1043 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_version_script ();
}
break;
case 275:
#line 1047 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
ldlex_popstate ();
}
break;
case 278:
#line 1059 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_register_vers_node (yyvsp[-4].name, yyvsp[-2].versnode, NULL);
}
break;
case 279:
#line 1063 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
lang_register_vers_node (yyvsp[-5].name, yyvsp[-3].versnode, yyvsp[-1].deflist);
}
break;
case 280:
#line 1070 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.deflist = lang_add_vers_depend (NULL, yyvsp[0].name);
}
break;
case 281:
#line 1074 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.deflist = lang_add_vers_depend (yyvsp[-1].deflist, yyvsp[0].name);
}
break;
case 282:
#line 1081 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.versnode = lang_new_vers_node (NULL, NULL);
}
break;
case 283:
#line 1085 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.versnode = lang_new_vers_node (yyvsp[-1].versyms, NULL);
}
break;
case 284:
#line 1089 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.versnode = lang_new_vers_node (yyvsp[-1].versyms, NULL);
}
break;
case 285:
#line 1093 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.versnode = lang_new_vers_node (NULL, yyvsp[-1].versyms);
}
break;
case 286:
#line 1097 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.versnode = lang_new_vers_node (yyvsp[-5].versyms, yyvsp[-1].versyms);
}
break;
case 287:
#line 1104 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.versyms = lang_new_vers_regex (NULL, yyvsp[0].name, ldgram_vers_current_lang);
}
break;
case 288:
#line 1108 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.versyms = lang_new_vers_regex (yyvsp[-2].versyms, yyvsp[0].name, ldgram_vers_current_lang);
}
break;
case 289:
#line 1112 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.name = ldgram_vers_current_lang;
ldgram_vers_current_lang = yyvsp[-1].name;
}
break;
case 290:
#line 1117 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/ldgram.y"
{
yyval.versyms = yyvsp[-1].versyms;
ldgram_vers_current_lang = yyvsp[-2].name;
}
break;
}
#line 727 "/usr/pkg/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 1123 "/u1/netbsd/src/tools/toolchain/../../gnu/dist/toolchain/ld/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);
}