2003-11-26 14:33:51 +03:00
|
|
|
|
/* A Bison parser, made from ldgram.y
|
|
|
|
|
by GNU bison 1.35. */
|
|
|
|
|
|
|
|
|
|
#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 DATA_SEGMENT_ALIGN 289
|
|
|
|
|
# define DATA_SEGMENT_END 290
|
|
|
|
|
# define SIZEOF_HEADERS 291
|
|
|
|
|
# define OUTPUT_FORMAT 292
|
|
|
|
|
# define FORCE_COMMON_ALLOCATION 293
|
|
|
|
|
# define OUTPUT_ARCH 294
|
|
|
|
|
# define INHIBIT_COMMON_ALLOCATION 295
|
|
|
|
|
# define INCLUDE 296
|
|
|
|
|
# define MEMORY 297
|
|
|
|
|
# define DEFSYMEND 298
|
|
|
|
|
# define NOLOAD 299
|
|
|
|
|
# define DSECT 300
|
|
|
|
|
# define COPY 301
|
|
|
|
|
# define INFO 302
|
|
|
|
|
# define OVERLAY 303
|
|
|
|
|
# define DEFINED 304
|
|
|
|
|
# define TARGET_K 305
|
|
|
|
|
# define SEARCH_DIR 306
|
|
|
|
|
# define MAP 307
|
|
|
|
|
# define ENTRY 308
|
|
|
|
|
# define NEXT 309
|
|
|
|
|
# define SIZEOF 310
|
|
|
|
|
# define ADDR 311
|
|
|
|
|
# define LOADADDR 312
|
|
|
|
|
# define MAX_K 313
|
|
|
|
|
# define MIN_K 314
|
|
|
|
|
# define STARTUP 315
|
|
|
|
|
# define HLL 316
|
|
|
|
|
# define SYSLIB 317
|
|
|
|
|
# define FLOAT 318
|
|
|
|
|
# define NOFLOAT 319
|
|
|
|
|
# define NOCROSSREFS 320
|
|
|
|
|
# define ORIGIN 321
|
|
|
|
|
# define FILL 322
|
|
|
|
|
# define LENGTH 323
|
|
|
|
|
# define CREATE_OBJECT_SYMBOLS 324
|
|
|
|
|
# define INPUT 325
|
|
|
|
|
# define GROUP 326
|
|
|
|
|
# define OUTPUT 327
|
|
|
|
|
# define CONSTRUCTORS 328
|
|
|
|
|
# define ALIGNMOD 329
|
|
|
|
|
# define AT 330
|
2004-12-08 12:52:50 +03:00
|
|
|
|
# define SUBALIGN 331
|
|
|
|
|
# define PROVIDE 332
|
|
|
|
|
# define CHIP 333
|
|
|
|
|
# define LIST 334
|
|
|
|
|
# define SECT 335
|
|
|
|
|
# define ABSOLUTE 336
|
|
|
|
|
# define LOAD 337
|
|
|
|
|
# define NEWLINE 338
|
|
|
|
|
# define ENDWORD 339
|
|
|
|
|
# define ORDER 340
|
|
|
|
|
# define NAMEWORD 341
|
|
|
|
|
# define ASSERT_K 342
|
|
|
|
|
# define FORMAT 343
|
|
|
|
|
# define PUBLIC 344
|
|
|
|
|
# define BASE 345
|
|
|
|
|
# define ALIAS 346
|
|
|
|
|
# define TRUNCATE 347
|
|
|
|
|
# define REL 348
|
|
|
|
|
# define INPUT_SCRIPT 349
|
|
|
|
|
# define INPUT_MRI_SCRIPT 350
|
|
|
|
|
# define INPUT_DEFSYM 351
|
|
|
|
|
# define CASE 352
|
|
|
|
|
# define EXTERN 353
|
|
|
|
|
# define START 354
|
|
|
|
|
# define VERS_TAG 355
|
|
|
|
|
# define VERS_IDENTIFIER 356
|
|
|
|
|
# define GLOBAL 357
|
|
|
|
|
# define LOCAL 358
|
|
|
|
|
# define VERSIONK 359
|
|
|
|
|
# define INPUT_VERSION_SCRIPT 360
|
|
|
|
|
# define KEEP 361
|
|
|
|
|
# define EXCLUDE_FILE 362
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
#line 22 "ldgram.y"
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#define DONTDECLARE_MALLOC
|
|
|
|
|
|
|
|
|
|
#include "bfd.h"
|
|
|
|
|
#include "sysdep.h"
|
|
|
|
|
#include "bfdlink.h"
|
|
|
|
|
#include "ld.h"
|
|
|
|
|
#include "ldexp.h"
|
|
|
|
|
#include "ldver.h"
|
|
|
|
|
#include "ldlang.h"
|
|
|
|
|
#include "ldfile.h"
|
|
|
|
|
#include "ldemul.h"
|
|
|
|
|
#include "ldmisc.h"
|
|
|
|
|
#include "ldmain.h"
|
|
|
|
|
#include "mri.h"
|
|
|
|
|
#include "ldctor.h"
|
|
|
|
|
#include "ldlex.h"
|
|
|
|
|
|
|
|
|
|
#ifndef YYDEBUG
|
|
|
|
|
#define YYDEBUG 1
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
static enum section_type sectype;
|
|
|
|
|
|
|
|
|
|
lang_memory_region_type *region;
|
|
|
|
|
|
|
|
|
|
bfd_boolean ldgram_want_filename = TRUE;
|
|
|
|
|
FILE *saved_script_handle = NULL;
|
|
|
|
|
bfd_boolean force_make_executable = FALSE;
|
|
|
|
|
|
|
|
|
|
bfd_boolean ldgram_in_script = FALSE;
|
|
|
|
|
bfd_boolean ldgram_had_equals = FALSE;
|
|
|
|
|
bfd_boolean ldgram_had_keep = FALSE;
|
|
|
|
|
char *ldgram_vers_current_lang = NULL;
|
|
|
|
|
|
|
|
|
|
#define ERROR_NAME_MAX 20
|
|
|
|
|
static char *error_names[ERROR_NAME_MAX];
|
|
|
|
|
static int error_index;
|
|
|
|
|
#define PUSH_ERROR(x) if (error_index < ERROR_NAME_MAX) error_names[error_index] = x; error_index++;
|
|
|
|
|
#define POP_ERROR() error_index--;
|
|
|
|
|
|
|
|
|
|
#line 67 "ldgram.y"
|
|
|
|
|
#ifndef YYSTYPE
|
|
|
|
|
typedef union {
|
|
|
|
|
bfd_vma integer;
|
|
|
|
|
struct big_int
|
|
|
|
|
{
|
|
|
|
|
bfd_vma integer;
|
|
|
|
|
char *str;
|
|
|
|
|
} bigint;
|
|
|
|
|
fill_type *fill;
|
|
|
|
|
char *name;
|
|
|
|
|
const char *cname;
|
|
|
|
|
struct wildcard_spec wildcard;
|
|
|
|
|
struct wildcard_list *wildcard_list;
|
|
|
|
|
struct name_list *name_list;
|
|
|
|
|
int token;
|
|
|
|
|
union etree_union *etree;
|
|
|
|
|
struct phdr_info
|
|
|
|
|
{
|
|
|
|
|
bfd_boolean filehdr;
|
|
|
|
|
bfd_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
|
|
|
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef YYDEBUG
|
|
|
|
|
# define YYDEBUG 0
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#define YYFINAL 627
|
2003-11-26 14:33:51 +03:00
|
|
|
|
#define YYFLAG -32768
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#define YYNTBASE 132
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#define YYTRANSLATE(x) ((unsigned)(x) <= 362 ? yytranslate[x] : 240)
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
/* 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,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
2, 2, 2, 130, 2, 2, 2, 34, 21, 2,
|
|
|
|
|
37, 127, 32, 30, 125, 31, 2, 33, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 16, 126,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
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,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
2, 128, 2, 129, 20, 2, 2, 2, 2, 2,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
2, 2, 2, 51, 19, 52, 131, 2, 2, 2,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 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, 49,
|
|
|
|
|
50, 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,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
122, 123, 124
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#if YYDEBUG
|
|
|
|
|
static const short yyprhs[] =
|
|
|
|
|
{
|
|
|
|
|
0, 0, 3, 6, 9, 12, 14, 15, 20, 21,
|
|
|
|
|
24, 28, 29, 32, 37, 39, 41, 44, 46, 51,
|
|
|
|
|
56, 60, 63, 68, 72, 77, 82, 87, 92, 97,
|
|
|
|
|
100, 103, 106, 111, 116, 119, 122, 125, 128, 129,
|
|
|
|
|
135, 138, 139, 143, 146, 147, 149, 153, 155, 159,
|
|
|
|
|
160, 162, 166, 168, 171, 175, 176, 179, 182, 183,
|
|
|
|
|
185, 187, 189, 191, 193, 195, 197, 199, 201, 203,
|
|
|
|
|
208, 213, 218, 223, 232, 237, 239, 241, 246, 247,
|
|
|
|
|
253, 258, 259, 265, 270, 275, 277, 281, 284, 286,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
290, 293, 298, 301, 304, 305, 310, 313, 314, 322,
|
|
|
|
|
324, 326, 328, 330, 336, 341, 350, 353, 355, 359,
|
|
|
|
|
361, 363, 367, 372, 374, 375, 381, 384, 386, 388,
|
|
|
|
|
390, 395, 397, 402, 407, 410, 412, 413, 415, 417,
|
|
|
|
|
419, 421, 423, 425, 427, 430, 431, 433, 435, 437,
|
|
|
|
|
439, 441, 443, 445, 447, 449, 451, 455, 459, 466,
|
|
|
|
|
468, 469, 475, 478, 482, 483, 484, 492, 496, 500,
|
|
|
|
|
501, 505, 507, 510, 512, 515, 520, 525, 529, 533,
|
|
|
|
|
535, 540, 544, 545, 547, 549, 550, 553, 557, 558,
|
|
|
|
|
561, 564, 568, 573, 576, 579, 582, 586, 590, 594,
|
|
|
|
|
598, 602, 606, 610, 614, 618, 622, 626, 630, 634,
|
|
|
|
|
638, 642, 646, 652, 656, 660, 665, 667, 669, 674,
|
|
|
|
|
679, 684, 689, 694, 701, 708, 713, 718, 720, 727,
|
|
|
|
|
734, 741, 745, 746, 751, 752, 757, 758, 759, 760,
|
|
|
|
|
761, 762, 763, 781, 782, 783, 784, 785, 786, 805,
|
|
|
|
|
806, 807, 815, 817, 819, 821, 823, 825, 829, 830,
|
|
|
|
|
833, 837, 840, 847, 858, 861, 863, 864, 866, 869,
|
|
|
|
|
870, 871, 875, 876, 877, 878, 879, 891, 896, 897,
|
|
|
|
|
900, 901, 902, 909, 911, 912, 916, 922, 923, 927,
|
|
|
|
|
928, 931, 932, 938, 940, 943, 948, 954, 961, 963,
|
|
|
|
|
966, 967, 970, 975, 980, 989, 991, 995, 996, 1006,
|
|
|
|
|
1007, 1015, 1016
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
static const short yyrhs[] =
|
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
111, 146, 0, 112, 136, 0, 122, 228, 0, 113,
|
|
|
|
|
134, 0, 4, 0, 0, 135, 4, 10, 192, 0,
|
|
|
|
|
0, 137, 138, 0, 138, 139, 100, 0, 0, 95,
|
|
|
|
|
192, 0, 95, 192, 125, 192, 0, 4, 0, 96,
|
|
|
|
|
0, 102, 141, 0, 101, 0, 106, 4, 10, 192,
|
|
|
|
|
0, 106, 4, 125, 192, 0, 106, 4, 192, 0,
|
|
|
|
|
105, 4, 0, 97, 4, 125, 192, 0, 97, 4,
|
|
|
|
|
192, 0, 97, 4, 10, 192, 0, 38, 4, 10,
|
|
|
|
|
192, 0, 38, 4, 125, 192, 0, 91, 4, 10,
|
|
|
|
|
192, 0, 91, 4, 125, 192, 0, 98, 143, 0,
|
|
|
|
|
99, 142, 0, 103, 4, 0, 108, 4, 125, 4,
|
|
|
|
|
0, 108, 4, 125, 3, 0, 107, 192, 0, 109,
|
|
|
|
|
3, 0, 114, 144, 0, 115, 145, 0, 0, 58,
|
|
|
|
|
133, 140, 138, 36, 0, 116, 4, 0, 0, 141,
|
|
|
|
|
125, 4, 0, 141, 4, 0, 0, 4, 0, 142,
|
|
|
|
|
125, 4, 0, 4, 0, 143, 125, 4, 0, 0,
|
|
|
|
|
4, 0, 144, 125, 4, 0, 4, 0, 145, 4,
|
|
|
|
|
0, 145, 125, 4, 0, 0, 147, 148, 0, 148,
|
|
|
|
|
149, 0, 0, 174, 0, 153, 0, 220, 0, 183,
|
|
|
|
|
0, 184, 0, 186, 0, 188, 0, 155, 0, 230,
|
|
|
|
|
0, 126, 0, 67, 37, 4, 127, 0, 68, 37,
|
|
|
|
|
133, 127, 0, 89, 37, 133, 127, 0, 54, 37,
|
|
|
|
|
4, 127, 0, 54, 37, 4, 125, 4, 125, 4,
|
|
|
|
|
127, 0, 56, 37, 4, 127, 0, 55, 0, 57,
|
|
|
|
|
0, 87, 37, 152, 127, 0, 0, 88, 150, 37,
|
|
|
|
|
152, 127, 0, 69, 37, 133, 127, 0, 0, 58,
|
|
|
|
|
133, 151, 148, 36, 0, 82, 37, 189, 127, 0,
|
|
|
|
|
115, 37, 145, 127, 0, 4, 0, 152, 125, 4,
|
|
|
|
|
0, 152, 4, 0, 5, 0, 152, 125, 5, 0,
|
|
|
|
|
152, 5, 0, 46, 51, 154, 52, 0, 154, 196,
|
|
|
|
|
0, 154, 155, 0, 0, 70, 37, 4, 127, 0,
|
|
|
|
|
172, 171, 0, 0, 104, 156, 37, 192, 125, 4,
|
|
|
|
|
127, 0, 4, 0, 32, 0, 15, 0, 157, 0,
|
|
|
|
|
124, 37, 159, 127, 157, 0, 48, 37, 157, 127,
|
|
|
|
|
0, 48, 37, 124, 37, 159, 127, 157, 127, 0,
|
|
|
|
|
159, 157, 0, 157, 0, 160, 173, 158, 0, 158,
|
|
|
|
|
0, 4, 0, 128, 160, 129, 0, 158, 37, 160,
|
|
|
|
|
127, 0, 161, 0, 0, 123, 37, 163, 161, 127,
|
|
|
|
|
0, 172, 171, 0, 86, 0, 126, 0, 90, 0,
|
|
|
|
|
48, 37, 90, 127, 0, 162, 0, 167, 37, 190,
|
|
|
|
|
127, 0, 84, 37, 168, 127, 0, 165, 164, 0,
|
|
|
|
|
164, 0, 0, 165, 0, 41, 0, 42, 0, 43,
|
|
|
|
|
0, 44, 0, 45, 0, 190, 0, 10, 168, 0,
|
|
|
|
|
0, 6, 0, 7, 0, 8, 0, 9, 0, 11,
|
|
|
|
|
0, 12, 0, 13, 0, 14, 0, 126, 0, 125,
|
|
|
|
|
0, 4, 10, 190, 0, 4, 170, 190, 0, 94,
|
|
|
|
|
37, 4, 10, 190, 127, 0, 125, 0, 0, 59,
|
|
|
|
|
51, 176, 175, 52, 0, 175, 176, 0, 175, 125,
|
|
|
|
|
176, 0, 0, 0, 4, 177, 180, 16, 178, 173,
|
|
|
|
|
179, 0, 83, 10, 190, 0, 85, 10, 190, 0,
|
|
|
|
|
0, 37, 181, 127, 0, 182, 0, 181, 182, 0,
|
|
|
|
|
4, 0, 130, 4, 0, 77, 37, 133, 127, 0,
|
|
|
|
|
78, 37, 185, 127, 0, 78, 37, 127, 0, 185,
|
|
|
|
|
173, 133, 0, 133, 0, 79, 37, 187, 127, 0,
|
|
|
|
|
187, 173, 133, 0, 0, 80, 0, 81, 0, 0,
|
|
|
|
|
4, 189, 0, 4, 125, 189, 0, 0, 191, 192,
|
|
|
|
|
0, 31, 192, 0, 37, 192, 127, 0, 71, 37,
|
|
|
|
|
192, 127, 0, 130, 192, 0, 30, 192, 0, 131,
|
|
|
|
|
192, 0, 192, 32, 192, 0, 192, 33, 192, 0,
|
|
|
|
|
192, 34, 192, 0, 192, 30, 192, 0, 192, 31,
|
|
|
|
|
192, 0, 192, 28, 192, 0, 192, 29, 192, 0,
|
|
|
|
|
192, 22, 192, 0, 192, 23, 192, 0, 192, 26,
|
|
|
|
|
192, 0, 192, 27, 192, 0, 192, 24, 192, 0,
|
|
|
|
|
192, 25, 192, 0, 192, 21, 192, 0, 192, 20,
|
|
|
|
|
192, 0, 192, 19, 192, 0, 192, 15, 192, 16,
|
|
|
|
|
192, 0, 192, 18, 192, 0, 192, 17, 192, 0,
|
|
|
|
|
66, 37, 4, 127, 0, 3, 0, 53, 0, 72,
|
|
|
|
|
37, 4, 127, 0, 73, 37, 4, 127, 0, 74,
|
|
|
|
|
37, 4, 127, 0, 98, 37, 192, 127, 0, 38,
|
|
|
|
|
37, 192, 127, 0, 38, 37, 192, 125, 192, 127,
|
|
|
|
|
0, 49, 37, 192, 125, 192, 127, 0, 50, 37,
|
|
|
|
|
192, 127, 0, 39, 37, 192, 127, 0, 4, 0,
|
|
|
|
|
75, 37, 192, 125, 192, 127, 0, 76, 37, 192,
|
|
|
|
|
125, 192, 127, 0, 104, 37, 192, 125, 4, 127,
|
|
|
|
|
0, 92, 25, 4, 0, 0, 92, 37, 192, 127,
|
|
|
|
|
0, 0, 93, 37, 192, 127, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 4, 197, 211, 194, 195, 198, 51,
|
|
|
|
|
199, 166, 52, 200, 214, 193, 215, 169, 201, 173,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 65, 202, 212, 213,
|
|
|
|
|
194, 195, 203, 51, 204, 216, 52, 205, 214, 193,
|
|
|
|
|
215, 169, 206, 173, 0, 0, 0, 88, 207, 211,
|
|
|
|
|
208, 51, 154, 52, 0, 61, 0, 62, 0, 63,
|
|
|
|
|
0, 64, 0, 65, 0, 37, 209, 127, 0, 0,
|
|
|
|
|
37, 127, 0, 192, 210, 16, 0, 210, 16, 0,
|
|
|
|
|
40, 37, 192, 127, 210, 16, 0, 40, 37, 192,
|
|
|
|
|
127, 39, 37, 192, 127, 210, 16, 0, 192, 16,
|
|
|
|
|
0, 16, 0, 0, 82, 0, 25, 4, 0, 0,
|
|
|
|
|
0, 215, 16, 4, 0, 0, 0, 0, 0, 216,
|
|
|
|
|
4, 217, 51, 166, 52, 218, 215, 169, 219, 173,
|
|
|
|
|
0, 47, 51, 221, 52, 0, 0, 221, 222, 0,
|
|
|
|
|
0, 0, 4, 223, 225, 226, 224, 126, 0, 192,
|
|
|
|
|
0, 0, 4, 227, 226, 0, 92, 37, 192, 127,
|
|
|
|
|
226, 0, 0, 37, 192, 127, 0, 0, 229, 232,
|
|
|
|
|
0, 0, 231, 121, 51, 232, 52, 0, 233, 0,
|
|
|
|
|
232, 233, 0, 51, 235, 52, 126, 0, 117, 51,
|
|
|
|
|
235, 52, 126, 0, 117, 51, 235, 52, 234, 126,
|
|
|
|
|
0, 117, 0, 234, 117, 0, 0, 236, 126, 0,
|
|
|
|
|
119, 16, 236, 126, 0, 120, 16, 236, 126, 0,
|
|
|
|
|
119, 16, 236, 126, 120, 16, 236, 126, 0, 118,
|
|
|
|
|
0, 236, 126, 118, 0, 0, 236, 126, 115, 4,
|
|
|
|
|
51, 237, 236, 239, 52, 0, 0, 115, 4, 51,
|
|
|
|
|
238, 236, 239, 52, 0, 0, 126, 0
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if YYDEBUG
|
|
|
|
|
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
|
|
|
|
static const short yyrline[] =
|
|
|
|
|
{
|
|
|
|
|
0, 161, 163, 164, 165, 169, 172, 172, 182, 182,
|
|
|
|
|
195, 197, 200, 202, 203, 206, 209, 210, 211, 213,
|
|
|
|
|
215, 217, 219, 221, 223, 225, 227, 229, 231, 233,
|
|
|
|
|
234, 235, 237, 239, 241, 243, 245, 246, 247, 247,
|
|
|
|
|
251, 253, 256, 258, 259, 262, 265, 268, 271, 275,
|
|
|
|
|
277, 278, 281, 284, 286, 290, 290, 301, 303, 308,
|
|
|
|
|
310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
|
|
|
|
|
321, 323, 325, 328, 330, 332, 334, 336, 337, 337,
|
|
|
|
|
341, 343, 343, 347, 351, 354, 358, 361, 364, 367,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
370, 375, 379, 381, 382, 385, 388, 389, 389, 396,
|
|
|
|
|
401, 405, 411, 418, 424, 430, 438, 447, 458, 467,
|
|
|
|
|
478, 487, 491, 497, 499, 499, 505, 507, 511, 512,
|
|
|
|
|
517, 522, 523, 528, 534, 536, 539, 541, 544, 547,
|
|
|
|
|
549, 551, 553, 557, 567, 570, 573, 576, 578, 580,
|
|
|
|
|
582, 584, 586, 588, 593, 593, 597, 602, 610, 617,
|
|
|
|
|
618, 621, 625, 627, 628, 632, 632, 639, 647, 656,
|
|
|
|
|
659, 662, 664, 667, 670, 674, 679, 681, 685, 688,
|
|
|
|
|
693, 695, 698, 701, 704, 708, 713, 722, 733, 733,
|
|
|
|
|
738, 741, 743, 745, 747, 749, 752, 754, 756, 758,
|
|
|
|
|
760, 762, 764, 766, 768, 770, 772, 774, 776, 778,
|
|
|
|
|
780, 782, 784, 786, 788, 790, 792, 794, 797, 799,
|
|
|
|
|
801, 803, 805, 807, 809, 811, 813, 815, 817, 819,
|
|
|
|
|
821, 826, 828, 831, 833, 836, 838, 841, 841, 841,
|
|
|
|
|
841, 841, 841, 860, 860, 860, 860, 860, 860, 878,
|
|
|
|
|
878, 878, 891, 893, 894, 895, 896, 899, 901, 902,
|
|
|
|
|
905, 907, 908, 913, 917, 919, 922, 925, 929, 932,
|
|
|
|
|
935, 940, 953, 955, 955, 955, 955, 971, 975, 977,
|
|
|
|
|
980, 980, 980, 990, 1034, 1039, 1051, 1058, 1063, 1071,
|
|
|
|
|
1071, 1085, 1085, 1095, 1097, 1100, 1105, 1109, 1115, 1120,
|
|
|
|
|
1126, 1131, 1135, 1139, 1143, 1149, 1154, 1158, 1158, 1168,
|
|
|
|
|
1168, 1180, 1182
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
#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",
|
|
|
|
|
"DATA_SEGMENT_ALIGN", "DATA_SEGMENT_END", "'{'", "'}'",
|
|
|
|
|
"SIZEOF_HEADERS", "OUTPUT_FORMAT", "FORCE_COMMON_ALLOCATION",
|
|
|
|
|
"OUTPUT_ARCH", "INHIBIT_COMMON_ALLOCATION", "INCLUDE", "MEMORY",
|
|
|
|
|
"DEFSYMEND", "NOLOAD", "DSECT", "COPY", "INFO", "OVERLAY", "DEFINED",
|
|
|
|
|
"TARGET_K", "SEARCH_DIR", "MAP", "ENTRY", "NEXT", "SIZEOF", "ADDR",
|
|
|
|
|
"LOADADDR", "MAX_K", "MIN_K", "STARTUP", "HLL", "SYSLIB", "FLOAT",
|
|
|
|
|
"NOFLOAT", "NOCROSSREFS", "ORIGIN", "FILL", "LENGTH",
|
|
|
|
|
"CREATE_OBJECT_SYMBOLS", "INPUT", "GROUP", "OUTPUT", "CONSTRUCTORS",
|
2004-12-08 12:52:50 +03:00
|
|
|
|
"ALIGNMOD", "AT", "SUBALIGN", "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",
|
2003-11-26 14:33:51 +03:00
|
|
|
|
"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",
|
2004-12-08 12:52:50 +03:00
|
|
|
|
"statement_anywhere", "@7", "wildcard_name", "wildcard_spec",
|
2003-11-26 14:33:51 +03:00
|
|
|
|
"exclude_name_list", "file_NAME_list", "input_section_spec_no_keep",
|
2004-12-08 12:52:50 +03:00
|
|
|
|
"input_section_spec", "@8", "statement", "statement_list",
|
2003-11-26 14:33:51 +03:00
|
|
|
|
"statement_list_opt", "length", "fill_exp", "fill_opt", "assign_op",
|
|
|
|
|
"end", "assignment", "opt_comma", "memory", "memory_spec_list",
|
2004-12-08 12:52:50 +03:00
|
|
|
|
"memory_spec", "@9", "origin_spec", "length_spec", "attributes_opt",
|
2003-11-26 14:33:51 +03:00
|
|
|
|
"attributes_list", "attributes_string", "startup", "high_level_library",
|
|
|
|
|
"high_level_library_NAME_list", "low_level_library",
|
|
|
|
|
"low_level_library_NAME_list", "floating_point_support",
|
2004-12-08 12:52:50 +03:00
|
|
|
|
"nocrossref_list", "mustbe_exp", "@10", "exp", "memspec_at_opt",
|
|
|
|
|
"opt_at", "opt_subalign", "section", "@11", "@12", "@13", "@14", "@15",
|
|
|
|
|
"@16", "@17", "@18", "@19", "@20", "@21", "@22", "type", "atype",
|
|
|
|
|
"opt_exp_with_type", "opt_exp_without_type", "opt_nocrossrefs",
|
|
|
|
|
"memspec_opt", "phdr_opt", "overlay_section", "@23", "@24", "@25",
|
|
|
|
|
"phdrs", "phdr_list", "phdr", "@26", "@27", "phdr_type",
|
|
|
|
|
"phdr_qualifiers", "phdr_val", "version_script_file", "@28", "version",
|
|
|
|
|
"@29", "vers_nodes", "vers_node", "verdep", "vers_tag", "vers_defns",
|
|
|
|
|
"@30", "@31", "opt_semicolon", 0
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
|
|
|
|
|
static const short yyr1[] =
|
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
0, 132, 132, 132, 132, 133, 135, 134, 137, 136,
|
|
|
|
|
138, 138, 139, 139, 139, 139, 139, 139, 139, 139,
|
|
|
|
|
139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
|
|
|
|
|
139, 139, 139, 139, 139, 139, 139, 139, 140, 139,
|
|
|
|
|
139, 139, 141, 141, 141, 142, 142, 143, 143, 144,
|
|
|
|
|
144, 144, 145, 145, 145, 147, 146, 148, 148, 149,
|
|
|
|
|
149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
|
|
|
|
|
149, 149, 149, 149, 149, 149, 149, 149, 150, 149,
|
|
|
|
|
149, 151, 149, 149, 149, 152, 152, 152, 152, 152,
|
|
|
|
|
152, 153, 154, 154, 154, 155, 155, 156, 155, 157,
|
|
|
|
|
157, 157, 158, 158, 158, 158, 159, 159, 160, 160,
|
|
|
|
|
161, 161, 161, 162, 163, 162, 164, 164, 164, 164,
|
|
|
|
|
164, 164, 164, 164, 165, 165, 166, 166, 167, 167,
|
|
|
|
|
167, 167, 167, 168, 169, 169, 170, 170, 170, 170,
|
|
|
|
|
170, 170, 170, 170, 171, 171, 172, 172, 172, 173,
|
|
|
|
|
173, 174, 175, 175, 175, 177, 176, 178, 179, 180,
|
|
|
|
|
180, 181, 181, 182, 182, 183, 184, 184, 185, 185,
|
|
|
|
|
186, 187, 187, 188, 188, 189, 189, 189, 191, 190,
|
|
|
|
|
192, 192, 192, 192, 192, 192, 192, 192, 192, 192,
|
|
|
|
|
192, 192, 192, 192, 192, 192, 192, 192, 192, 192,
|
|
|
|
|
192, 192, 192, 192, 192, 192, 192, 192, 192, 192,
|
|
|
|
|
192, 192, 192, 192, 192, 192, 192, 192, 192, 192,
|
|
|
|
|
192, 193, 193, 194, 194, 195, 195, 197, 198, 199,
|
|
|
|
|
200, 201, 196, 202, 203, 204, 205, 206, 196, 207,
|
|
|
|
|
208, 196, 209, 209, 209, 209, 209, 210, 210, 210,
|
|
|
|
|
211, 211, 211, 211, 212, 212, 213, 213, 214, 214,
|
|
|
|
|
215, 215, 216, 217, 218, 219, 216, 220, 221, 221,
|
|
|
|
|
223, 224, 222, 225, 226, 226, 226, 227, 227, 229,
|
|
|
|
|
228, 231, 230, 232, 232, 233, 233, 233, 234, 234,
|
|
|
|
|
235, 235, 235, 235, 235, 236, 236, 237, 236, 238,
|
|
|
|
|
236, 239, 239
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
|
|
|
|
|
static const short yyr2[] =
|
|
|
|
|
{
|
|
|
|
|
0, 2, 2, 2, 2, 1, 0, 4, 0, 2,
|
|
|
|
|
3, 0, 2, 4, 1, 1, 2, 1, 4, 4,
|
|
|
|
|
3, 2, 4, 3, 4, 4, 4, 4, 4, 2,
|
|
|
|
|
2, 2, 4, 4, 2, 2, 2, 2, 0, 5,
|
|
|
|
|
2, 0, 3, 2, 0, 1, 3, 1, 3, 0,
|
|
|
|
|
1, 3, 1, 2, 3, 0, 2, 2, 0, 1,
|
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 4,
|
|
|
|
|
4, 4, 4, 8, 4, 1, 1, 4, 0, 5,
|
|
|
|
|
4, 0, 5, 4, 4, 1, 3, 2, 1, 3,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
2, 4, 2, 2, 0, 4, 2, 0, 7, 1,
|
|
|
|
|
1, 1, 1, 5, 4, 8, 2, 1, 3, 1,
|
|
|
|
|
1, 3, 4, 1, 0, 5, 2, 1, 1, 1,
|
|
|
|
|
4, 1, 4, 4, 2, 1, 0, 1, 1, 1,
|
|
|
|
|
1, 1, 1, 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,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
3, 3, 5, 3, 3, 4, 1, 1, 4, 4,
|
|
|
|
|
4, 4, 4, 6, 6, 4, 4, 1, 6, 6,
|
|
|
|
|
6, 3, 0, 4, 0, 4, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 17, 0, 0, 0, 0, 0, 18, 0,
|
|
|
|
|
0, 7, 1, 1, 1, 1, 1, 3, 0, 2,
|
|
|
|
|
3, 2, 6, 10, 2, 1, 0, 1, 2, 0,
|
|
|
|
|
0, 3, 0, 0, 0, 0, 11, 4, 0, 2,
|
|
|
|
|
0, 0, 6, 1, 0, 3, 5, 0, 3, 0,
|
|
|
|
|
2, 0, 5, 1, 2, 4, 5, 6, 1, 2,
|
|
|
|
|
0, 2, 4, 4, 8, 1, 3, 0, 9, 0,
|
|
|
|
|
7, 0, 1
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* 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[] =
|
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
0, 55, 8, 6, 279, 1, 58, 2, 11, 4,
|
|
|
|
|
0, 3, 0, 56, 9, 0, 290, 0, 280, 283,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
0, 0, 0, 0, 75, 0, 76, 0, 0, 0,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 173, 174, 0, 0,
|
|
|
|
|
78, 0, 0, 97, 0, 68, 57, 60, 66, 0,
|
|
|
|
|
59, 62, 63, 64, 65, 61, 67, 0, 14, 0,
|
|
|
|
|
0, 0, 0, 15, 0, 0, 0, 17, 44, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 49, 0, 0, 0, 0,
|
|
|
|
|
0, 295, 0, 0, 0, 0, 290, 284, 136, 137,
|
|
|
|
|
138, 139, 178, 140, 141, 142, 143, 178, 94, 268,
|
|
|
|
|
0, 0, 5, 81, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 172, 175, 0, 0, 0, 0, 0, 0, 145,
|
|
|
|
|
144, 96, 0, 0, 38, 0, 206, 217, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 207, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 12, 0, 47,
|
|
|
|
|
29, 45, 30, 16, 31, 21, 0, 34, 0, 35,
|
|
|
|
|
50, 36, 52, 37, 40, 10, 7, 0, 0, 0,
|
|
|
|
|
0, 291, 0, 146, 0, 147, 0, 0, 0, 0,
|
|
|
|
|
58, 155, 154, 0, 0, 0, 0, 0, 167, 169,
|
|
|
|
|
150, 150, 175, 0, 85, 88, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 11, 0, 0, 184, 180,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
0, 0, 0, 0, 183, 185, 0, 0, 0, 0,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 23, 0,
|
|
|
|
|
0, 43, 0, 0, 0, 20, 0, 0, 53, 0,
|
|
|
|
|
299, 0, 0, 285, 0, 296, 0, 179, 227, 91,
|
|
|
|
|
233, 239, 93, 92, 270, 267, 269, 0, 72, 74,
|
|
|
|
|
281, 159, 0, 69, 70, 80, 95, 165, 149, 166,
|
|
|
|
|
0, 170, 0, 175, 176, 83, 87, 90, 0, 77,
|
|
|
|
|
0, 71, 178, 0, 84, 0, 25, 26, 41, 27,
|
|
|
|
|
28, 181, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 204, 203, 201, 200,
|
|
|
|
|
199, 193, 194, 197, 198, 195, 196, 191, 192, 189,
|
|
|
|
|
190, 186, 187, 188, 13, 24, 22, 48, 46, 42,
|
|
|
|
|
18, 19, 33, 32, 51, 54, 0, 292, 293, 0,
|
|
|
|
|
288, 286, 0, 248, 0, 248, 0, 0, 82, 0,
|
|
|
|
|
0, 151, 0, 152, 168, 171, 177, 86, 89, 79,
|
|
|
|
|
0, 0, 282, 39, 0, 212, 216, 0, 215, 205,
|
|
|
|
|
182, 208, 209, 210, 0, 0, 211, 0, 0, 301,
|
|
|
|
|
0, 297, 289, 287, 0, 0, 248, 0, 224, 255,
|
|
|
|
|
0, 256, 240, 273, 274, 0, 163, 0, 0, 161,
|
|
|
|
|
0, 153, 148, 0, 0, 0, 0, 0, 0, 202,
|
|
|
|
|
302, 0, 0, 0, 242, 243, 244, 245, 246, 249,
|
|
|
|
|
0, 0, 0, 0, 251, 0, 226, 254, 257, 224,
|
|
|
|
|
0, 277, 0, 271, 0, 164, 160, 162, 0, 150,
|
|
|
|
|
98, 213, 214, 218, 219, 220, 300, 0, 301, 247,
|
|
|
|
|
0, 250, 0, 0, 228, 226, 94, 0, 274, 0,
|
|
|
|
|
0, 73, 178, 0, 294, 0, 248, 0, 0, 0,
|
|
|
|
|
234, 0, 0, 275, 0, 272, 157, 0, 156, 298,
|
|
|
|
|
0, 0, 223, 0, 229, 0, 241, 278, 274, 178,
|
|
|
|
|
0, 252, 225, 126, 235, 276, 158, 0, 110, 101,
|
|
|
|
|
100, 128, 129, 130, 131, 132, 0, 0, 117, 119,
|
|
|
|
|
0, 0, 118, 0, 102, 0, 113, 121, 125, 127,
|
|
|
|
|
0, 0, 0, 262, 248, 0, 178, 114, 0, 99,
|
|
|
|
|
0, 109, 150, 0, 124, 230, 178, 116, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 133, 0, 107, 0, 0, 111,
|
|
|
|
|
0, 150, 259, 0, 263, 236, 253, 120, 0, 104,
|
|
|
|
|
123, 99, 0, 0, 106, 108, 112, 0, 222, 122,
|
|
|
|
|
0, 259, 0, 115, 103, 258, 0, 260, 126, 222,
|
|
|
|
|
0, 0, 135, 0, 260, 0, 221, 178, 0, 231,
|
|
|
|
|
264, 135, 105, 134, 261, 150, 260, 237, 232, 135,
|
|
|
|
|
150, 265, 238, 150, 266, 0, 0, 0
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const short yydefgoto[] =
|
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
625, 103, 9, 10, 7, 8, 14, 78, 205, 153,
|
|
|
|
|
152, 150, 161, 163, 5, 6, 13, 46, 114, 180,
|
|
|
|
|
196, 47, 176, 48, 117, 534, 535, 567, 552, 536,
|
|
|
|
|
537, 565, 538, 539, 540, 541, 563, 609, 97, 121,
|
|
|
|
|
49, 570, 50, 282, 182, 281, 459, 498, 370, 418,
|
|
|
|
|
419, 51, 52, 190, 53, 191, 54, 193, 564, 174,
|
|
|
|
|
210, 597, 446, 474, 273, 363, 489, 513, 572, 615,
|
|
|
|
|
364, 505, 543, 591, 620, 365, 450, 440, 407, 408,
|
|
|
|
|
411, 449, 588, 602, 558, 590, 616, 623, 55, 177,
|
|
|
|
|
276, 366, 480, 414, 453, 478, 11, 12, 56, 57,
|
|
|
|
|
18, 19, 362, 84, 85, 433, 356, 431
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const short yypact[] =
|
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
114,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
48,-32768, -20, 585, 699, 50, 113, 43, -20,-32768,
|
|
|
|
|
467, 52, 106, 158,-32768, 162,-32768, 204, 163, 180,
|
|
|
|
|
184, 193, 218, 231, 245, 247,-32768,-32768, 250, 251,
|
|
|
|
|
-32768, 253, 254,-32768, 255,-32768,-32768,-32768,-32768, 145,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768, 173,-32768, 291,
|
|
|
|
|
204, 293, 520,-32768, 294, 295, 296,-32768,-32768, 302,
|
|
|
|
|
304, 305, 520, 315, 319, 320, 321, 323, 228, 520,
|
|
|
|
|
325,-32768, 314, 316, 279, 209, 113,-32768,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
332, 334,-32768,-32768, 335, 338, 204, 204, 339, 204,
|
|
|
|
|
17,-32768, 340, 271, 308, 204, 342, 313, 321,-32768,
|
|
|
|
|
-32768,-32768, 300, 5,-32768, 23,-32768,-32768, 520, 520,
|
|
|
|
|
520, 317, 324, 327, 328,-32768, 329, 330, 333, 337,
|
|
|
|
|
341, 350, 351, 352, 355, 520, 520, 1180, 33,-32768,
|
|
|
|
|
227,-32768, 232, 16,-32768,-32768, 310, 1398, 233,-32768,
|
|
|
|
|
-32768, 237,-32768, 31,-32768,-32768, 1398, 318, -71, -71,
|
|
|
|
|
230, 10, 301,-32768, 520,-32768, 28, 26, -4, 244,
|
|
|
|
|
-32768,-32768,-32768, 248, 252, 266, 267, 268,-32768,-32768,
|
|
|
|
|
2, 93, 65, 269,-32768,-32768, 22, 271, 282, 362,
|
|
|
|
|
520, 73, -20, 520, 520,-32768, 520, 520,-32768,-32768,
|
|
|
|
|
847, 520, 520, 520, 520, 373, 520, 406, 408, 409,
|
|
|
|
|
520, 520, 520, 520,-32768,-32768, 520, 520, 520, 520,
|
|
|
|
|
520, 520, 520, 520, 520, 520, 520, 520, 520, 520,
|
|
|
|
|
520, 520, 520, 520, 520, 520, 520, 520, 1398, 411,
|
|
|
|
|
417,-32768, 418, 520, 520, 1398, 275, 419,-32768, 420,
|
|
|
|
|
-32768, 299, 306,-32768, 422,-32768, -88, 1398, 467,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768, 426,-32768,-32768,
|
|
|
|
|
666, 394, 62,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
204,-32768, 204, 340,-32768,-32768,-32768,-32768, 276,-32768,
|
|
|
|
|
69,-32768,-32768, 1200,-32768, 7, 1398, 1398, 725, 1398,
|
|
|
|
|
1398,-32768, 827, 867, 1220, 887, 307, 907, 311, 312,
|
|
|
|
|
343, 1240, 1289, 938, 1309, 1352, 582, 1269, 1415, 1429,
|
|
|
|
|
1442, 1029, 1029, 429, 429, 429, 429, 210, 210, 220,
|
|
|
|
|
220,-32768,-32768,-32768, 1398, 1398, 1398,-32768,-32768,-32768,
|
|
|
|
|
1398, 1398,-32768,-32768,-32768,-32768, -71, -39, 10, 386,
|
|
|
|
|
-32768,-32768, -78, 416, 468, 416, 520, 326,-32768, 4,
|
|
|
|
|
427,-32768, 335,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
356, 438,-32768,-32768, 520,-32768,-32768, 520,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768, 520, 520,-32768, 440, 520, 322,
|
|
|
|
|
434,-32768,-32768,-32768, 185, 415, 1329, 451, 353,-32768,
|
|
|
|
|
1372, 403,-32768, 1398, 19, 464,-32768, 482, 8,-32768,
|
|
|
|
|
410,-32768,-32768, 367, 958, 978, 998, 1018, 368, 1398,
|
|
|
|
|
10, 444, -71, -71,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
370, 520, 142, 484,-32768, 465, 423,-32768,-32768, 353,
|
|
|
|
|
450, 466, 471,-32768, 377,-32768,-32768,-32768, 499, 385,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768, 387, 322,-32768,
|
|
|
|
|
1049,-32768, 520, 474,-32768, 423,-32768, 520, 19, 520,
|
|
|
|
|
389,-32768,-32768, 437, 10, 460, 225, 1069, 520, 475,
|
|
|
|
|
-32768, 303, 1089,-32768, 1109,-32768,-32768, 509,-32768,-32768,
|
|
|
|
|
488, 511,-32768, 1129,-32768, 477,-32768,-32768, 19,-32768,
|
|
|
|
|
520,-32768,-32768, 533,-32768,-32768,-32768, 1160, 392,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768, 492, 493,-32768,-32768,
|
|
|
|
|
494, 495,-32768, 197,-32768, 496,-32768,-32768,-32768, 533,
|
|
|
|
|
483, 501, 145,-32768, 508, 187,-32768,-32768, 86,-32768,
|
|
|
|
|
512,-32768, -64, 197,-32768,-32768,-32768,-32768, 36, 536,
|
|
|
|
|
428, 516, 433, 435,-32768, 85,-32768, 9, 87,-32768,
|
|
|
|
|
197, 140, 529, 436,-32768,-32768,-32768,-32768, 86,-32768,
|
|
|
|
|
-32768, 441, 452, 86,-32768,-32768,-32768, 532, 469,-32768,
|
|
|
|
|
505, 529, 13,-32768,-32768,-32768, 539,-32768, 533, 469,
|
|
|
|
|
86, 563, 110, 519,-32768, 453,-32768,-32768, 578,-32768,
|
|
|
|
|
-32768, 110,-32768,-32768,-32768, 385,-32768,-32768,-32768, 110,
|
|
|
|
|
385,-32768,-32768, 385,-32768, 583, 584,-32768
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const short yypgoto[] =
|
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
-32768, -53,-32768,-32768,-32768,-32768, 380,-32768,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768, 470,-32768,-32768, 407,-32768,-32768,-32768,
|
|
|
|
|
393,-32768, 121, -174,-32768, -282, -478, 42, 68, 57,
|
|
|
|
|
-32768,-32768, 89,-32768, 27,-32768, 29, -569,-32768, 84,
|
|
|
|
|
-488, -187,-32768,-32768, -260,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
211,-32768,-32768,-32768,-32768,-32768,-32768, -178, -92,-32768,
|
|
|
|
|
-61, 34, 181, 159,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -390, 270,
|
|
|
|
|
-32768,-32768, 46, -570,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768, -459,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
443, -12,-32768, 552, -159,-32768,-32768, 178
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#define YYLAST 1476
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const short yytable[] =
|
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
173, 147, 272, 290, 292, 175, 87, 124, 416, 261,
|
|
|
|
|
262, 157, 416, 549, 294, 203, 443, 549, 166, 493,
|
|
|
|
|
251, 102, 373, 451, 519, 542, 296, 297, 519, 360,
|
|
|
|
|
274, 16, 268, 206, 611, 258, 126, 127, 361, 402,
|
|
|
|
|
574, 520, 617, 246, 80, 520, 619, 81, 403, 515,
|
|
|
|
|
621, 542, 15, 184, 185, 551, 187, 189, 16, 382,
|
|
|
|
|
79, 288, 198, 128, 129, 569, 181, 208, 209, 192,
|
|
|
|
|
130, 131, 132, 296, 297, 551, 264, 258, 275, 265,
|
|
|
|
|
269, 400, 133, 134, 224, 225, 135, 248, 575, 581,
|
|
|
|
|
549, 549, 585, 270, 86, 255, 501, 17, 32, 136,
|
|
|
|
|
519, 519, 519, 98, 137, 138, 139, 140, 141, 142,
|
|
|
|
|
542, 452, 421, 267, 371, 376, 271, 520, 520, 520,
|
|
|
|
|
607, 277, 42, 278, 17, 264, 608, 288, 265, 289,
|
|
|
|
|
204, 143, 43, 550, 417, 456, 583, 144, 417, 303,
|
|
|
|
|
600, 252, 306, 307, 188, 309, 310, 298, 207, 299,
|
|
|
|
|
312, 313, 314, 315, 559, 317, 259, 99, 247, 321,
|
|
|
|
|
322, 323, 324, 145, 146, 325, 326, 327, 328, 329,
|
|
|
|
|
330, 331, 332, 333, 334, 335, 336, 337, 338, 339,
|
|
|
|
|
340, 341, 342, 343, 344, 345, 346, 372, 126, 127,
|
|
|
|
|
293, 549, 350, 351, 298, 100, 379, 399, 259, 101,
|
|
|
|
|
304, 549, 519, 434, 435, 436, 437, 438, 102, 531,
|
|
|
|
|
380, 561, 519, 533, 104, 128, 129, 105, 288, 520,
|
|
|
|
|
291, 106, 130, 131, 132, 1, 2, 3, 80, 520,
|
|
|
|
|
107, 81, 82, 83, 133, 134, 4, 374, 135, 375,
|
|
|
|
|
240, 241, 242, 243, 244, 550, 434, 435, 436, 437,
|
|
|
|
|
438, 136, 242, 243, 244, 108, 137, 138, 139, 140,
|
|
|
|
|
141, 142, 442, 562, 500, 288, 566, 586, 109, 439,
|
|
|
|
|
119, 120, 483, 467, 468, 194, 195, 560, 352, 353,
|
|
|
|
|
377, 378, 110, 143, 111, 584, 562, 112, 113, 144,
|
|
|
|
|
115, 116, 118, 87, 122, 123, 566, 125, 148, 149,
|
|
|
|
|
151, 594, 406, 410, 406, 413, 154, 268, 155, 156,
|
|
|
|
|
584, 561, 439, 126, 127, 145, 146, 272, 605, 158,
|
|
|
|
|
253, 531, 159, 424, 160, 162, 425, 164, 165, 167,
|
|
|
|
|
168, 170, 169, 426, 427, 171, 178, 429, 179, 181,
|
|
|
|
|
128, 129, 183, 186, 192, 197, 199, 130, 131, 132,
|
|
|
|
|
200, 202, 249, 266, 211, 506, 263, 250, 256, 133,
|
|
|
|
|
134, 212, 257, 135, 213, 214, 215, 216, 270, 260,
|
|
|
|
|
217, 279, 302, 32, 218, 283, 136, 316, 219, 284,
|
|
|
|
|
470, 137, 138, 139, 140, 141, 142, 220, 221, 222,
|
|
|
|
|
496, 271, 223, 285, 286, 287, 295, 42, 88, 89,
|
|
|
|
|
90, 91, 92, 93, 94, 95, 96, 43, 143, 301,
|
|
|
|
|
318, 487, 319, 320, 144, 347, 492, 516, 494, 126,
|
|
|
|
|
127, 348, 349, 354, 355, 357, 359, 503, 618, -99,
|
|
|
|
|
367, 369, 358, 622, 389, 254, 624, 401, 391, 392,
|
|
|
|
|
145, 146, 423, 420, 428, 445, 128, 129, 430, 517,
|
|
|
|
|
432, 415, 441, 404, 131, 132, 405, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 573, 133, 134, 444, 454, 135,
|
|
|
|
|
393, 126, 127, 88, 89, 90, 91, 92, 93, 94,
|
|
|
|
|
95, 96, 136, 422, 409, 448, 455, 137, 138, 139,
|
|
|
|
|
140, 141, 142, 458, 460, 465, 466, 469, 128, 129,
|
|
|
|
|
471, 476, 472, 477, 481, 130, 131, 132, 479, 482,
|
|
|
|
|
288, 488, 499, 484, 143, 495, 473, 133, 134, 509,
|
|
|
|
|
144, 135, 497, 126, 127, 510, 504, 511, 514, 545,
|
|
|
|
|
546, 547, 548, 553, 136, 555, 595, 518, 556, 137,
|
|
|
|
|
138, 139, 140, 141, 142, 442, 145, 146, 519, 568,
|
|
|
|
|
128, 129, 576, 578, 587, 577, 598, 130, 131, 132,
|
|
|
|
|
579, 596, 580, 589, 601, 520, 143, 606, -110, 133,
|
|
|
|
|
134, 610, 144, 135, 521, 522, 523, 524, 525, 593,
|
|
|
|
|
612, 526, 614, 626, 627, 308, 136, 280, 201, 20,
|
|
|
|
|
300, 137, 138, 139, 140, 141, 142, 491, 145, 146,
|
|
|
|
|
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
|
|
|
|
|
238, 239, 240, 241, 242, 243, 244, 527, 143, 528,
|
|
|
|
|
592, 571, 582, 529, 144, 603, 557, 42, 554, 457,
|
|
|
|
|
475, 21, 22, 604, 490, 412, 613, 599, 172, 23,
|
|
|
|
|
24, 25, 26, 27, 28, 305, 485, 0, 0, 0,
|
|
|
|
|
145, 146, 29, 30, 31, 32, 530, 531, 0, 532,
|
|
|
|
|
0, 533, 33, 34, 35, 36, 37, 38, 0, 0,
|
|
|
|
|
20, 0, 39, 40, 41, 0, 0, 0, 0, 42,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 43,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
44, 0, 368, 58, 0, 0, -281, 0, 0, 0,
|
|
|
|
|
0, 45, 21, 22, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
23, 24, 25, 26, 27, 28, 0, 0, 0, 58,
|
|
|
|
|
0, 0, 0, 29, 30, 31, 32, 59, 0, 0,
|
|
|
|
|
0, 0, 0, 33, 34, 35, 36, 37, 38, 0,
|
|
|
|
|
0, 0, 0, 39, 40, 41, 0, 60, 0, 0,
|
|
|
|
|
42, 383, 0, 59, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
43, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 44, 0, 60, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
61, 0, 45, 0, 62, 63, 64, 65, 66, -41,
|
|
|
|
|
67, 68, 69, 0, 70, 71, 72, 73, 74, 0,
|
|
|
|
|
0, 0, 0, 75, 76, 77, 61, 0, 0, 0,
|
|
|
|
|
62, 63, 64, 65, 66, 0, 67, 68, 69, 0,
|
|
|
|
|
70, 71, 72, 73, 74, 0, 0, 0, 0, 75,
|
|
|
|
|
76, 77, 226, 0, 227, 228, 229, 230, 231, 232,
|
|
|
|
|
233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
|
|
|
243, 244, 226, 0, 227, 228, 229, 230, 231, 232,
|
|
|
|
|
233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
|
|
|
243, 244, 226, 0, 227, 228, 229, 230, 231, 232,
|
|
|
|
|
233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
|
|
|
243, 244, 226, 0, 227, 228, 229, 230, 231, 232,
|
|
|
|
|
233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
|
|
|
243, 244, 226, 0, 227, 228, 229, 230, 231, 232,
|
|
|
|
|
233, 234, 235, 236, 237, 238, 239, 240, 241, 242,
|
|
|
|
|
243, 244, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 384, 226, 385, 227, 228, 229, 230, 231,
|
|
|
|
|
232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 226, 311, 227, 228, 229, 230, 231,
|
|
|
|
|
232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 226, 386, 227, 228, 229, 230, 231,
|
|
|
|
|
232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 226, 388, 227, 228, 229, 230, 231,
|
|
|
|
|
232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 226, 390, 227, 228, 229, 230, 231,
|
|
|
|
|
232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 226, 396, 227, 228, 229, 230,
|
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 226, 461, 227, 228, 229, 230,
|
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 226, 462, 227, 228, 229, 230,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
241, 242, 243, 244, 226, 463, 227, 228, 229, 230,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
241, 242, 243, 244, 226, 464, 227, 228, 229, 230,
|
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 226, 486, 227, 228, 229,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
240, 241, 242, 243, 244, 226, 502, 227, 228, 229,
|
|
|
|
|
230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
|
|
|
|
|
240, 241, 242, 243, 244, 226, 507, 227, 228, 229,
|
|
|
|
|
230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
|
|
|
|
|
240, 241, 242, 243, 244, 226, 508, 227, 228, 229,
|
|
|
|
|
230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
|
|
|
|
|
240, 241, 242, 243, 244, 226, 512, 227, 228, 229,
|
|
|
|
|
230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
|
|
|
|
|
240, 241, 242, 243, 244, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 544, 229, 230,
|
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 226, 245, 227, 228, 229, 230,
|
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 226, 381, 227, 228, 229, 230,
|
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 226, 387, 227, 228, 229, 230,
|
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 0, 394, 442, 226, 398, 227,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
238, 239, 240, 241, 242, 243, 244, 226, 447, 227,
|
|
|
|
|
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
|
|
|
|
|
238, 239, 240, 241, 242, 243, 244, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 226, 395, 227, 228, 229, 230, 231,
|
|
|
|
|
232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 0, 397, 230, 231, 232, 233, 234,
|
|
|
|
|
235, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 232, 233, 234, 235, 236, 237,
|
|
|
|
|
238, 239, 240, 241, 242, 243, 244
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const short yycheck[] =
|
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
92, 62, 176, 190, 191, 97, 18, 60, 4, 168,
|
|
|
|
|
169, 72, 4, 4, 192, 10, 406, 4, 79, 478,
|
|
|
|
|
4, 4, 282, 4, 15, 513, 4, 5, 15, 117,
|
|
|
|
|
4, 51, 4, 10, 604, 4, 3, 4, 126, 117,
|
|
|
|
|
4, 32, 611, 10, 115, 32, 616, 118, 126, 508,
|
|
|
|
|
619, 539, 4, 106, 107, 533, 109, 110, 51, 52,
|
|
|
|
|
10, 125, 115, 30, 31, 129, 4, 128, 129, 4,
|
|
|
|
|
37, 38, 39, 4, 5, 553, 115, 4, 52, 118,
|
|
|
|
|
52, 120, 49, 50, 145, 146, 53, 148, 52, 4,
|
|
|
|
|
4, 4, 570, 65, 51, 156, 486, 117, 70, 66,
|
|
|
|
|
15, 15, 15, 51, 71, 72, 73, 74, 75, 76,
|
|
|
|
|
598, 92, 372, 174, 52, 293, 88, 32, 32, 32,
|
|
|
|
|
10, 125, 94, 127, 117, 115, 16, 125, 118, 127,
|
|
|
|
|
125, 98, 104, 48, 130, 127, 127, 104, 130, 200,
|
|
|
|
|
127, 125, 203, 204, 127, 206, 207, 125, 125, 127,
|
|
|
|
|
211, 212, 213, 214, 544, 216, 125, 51, 125, 220,
|
|
|
|
|
221, 222, 223, 130, 131, 226, 227, 228, 229, 230,
|
|
|
|
|
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
|
|
|
|
|
241, 242, 243, 244, 245, 246, 247, 125, 3, 4,
|
|
|
|
|
125, 4, 253, 254, 125, 37, 127, 356, 125, 37,
|
|
|
|
|
127, 4, 15, 61, 62, 63, 64, 65, 4, 124,
|
|
|
|
|
302, 124, 15, 128, 51, 30, 31, 37, 125, 32,
|
|
|
|
|
127, 37, 37, 38, 39, 111, 112, 113, 115, 32,
|
|
|
|
|
37, 118, 119, 120, 49, 50, 122, 290, 53, 292,
|
|
|
|
|
30, 31, 32, 33, 34, 48, 61, 62, 63, 64,
|
|
|
|
|
65, 66, 32, 33, 34, 37, 71, 72, 73, 74,
|
|
|
|
|
75, 76, 37, 545, 39, 125, 548, 127, 37, 127,
|
|
|
|
|
125, 126, 459, 432, 433, 4, 5, 90, 3, 4,
|
|
|
|
|
4, 5, 37, 98, 37, 567, 568, 37, 37, 104,
|
|
|
|
|
37, 37, 37, 305, 121, 4, 578, 4, 4, 4,
|
|
|
|
|
4, 583, 363, 364, 365, 366, 4, 4, 4, 4,
|
|
|
|
|
592, 124, 127, 3, 4, 130, 131, 491, 600, 4,
|
|
|
|
|
10, 124, 3, 384, 4, 4, 387, 4, 100, 4,
|
|
|
|
|
16, 52, 16, 394, 395, 126, 4, 398, 4, 4,
|
|
|
|
|
30, 31, 4, 4, 4, 37, 4, 37, 38, 39,
|
|
|
|
|
37, 51, 125, 52, 37, 52, 126, 125, 125, 49,
|
|
|
|
|
50, 37, 125, 53, 37, 37, 37, 37, 65, 51,
|
|
|
|
|
37, 127, 10, 70, 37, 127, 66, 4, 37, 127,
|
|
|
|
|
441, 71, 72, 73, 74, 75, 76, 37, 37, 37,
|
|
|
|
|
482, 88, 37, 127, 127, 127, 127, 94, 6, 7,
|
|
|
|
|
8, 9, 10, 11, 12, 13, 14, 104, 98, 127,
|
|
|
|
|
4, 472, 4, 4, 104, 4, 477, 509, 479, 3,
|
|
|
|
|
4, 4, 4, 4, 4, 126, 4, 488, 615, 37,
|
|
|
|
|
4, 37, 126, 620, 127, 125, 623, 51, 127, 127,
|
|
|
|
|
130, 131, 4, 16, 4, 92, 30, 31, 126, 510,
|
|
|
|
|
16, 125, 37, 37, 38, 39, 40, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 556, 49, 50, 16, 4, 53,
|
|
|
|
|
127, 3, 4, 6, 7, 8, 9, 10, 11, 12,
|
|
|
|
|
13, 14, 66, 127, 16, 82, 4, 71, 72, 73,
|
|
|
|
|
74, 75, 76, 83, 127, 127, 52, 127, 30, 31,
|
|
|
|
|
16, 51, 37, 37, 127, 37, 38, 39, 37, 10,
|
|
|
|
|
125, 37, 52, 126, 98, 126, 93, 49, 50, 10,
|
|
|
|
|
104, 53, 85, 3, 4, 37, 51, 16, 51, 37,
|
|
|
|
|
37, 37, 37, 37, 66, 52, 4, 4, 37, 71,
|
|
|
|
|
72, 73, 74, 75, 76, 37, 130, 131, 15, 37,
|
|
|
|
|
30, 31, 16, 37, 25, 127, 51, 37, 38, 39,
|
|
|
|
|
127, 92, 127, 127, 25, 32, 98, 4, 127, 49,
|
|
|
|
|
50, 52, 104, 53, 41, 42, 43, 44, 45, 127,
|
|
|
|
|
127, 48, 4, 0, 0, 205, 66, 180, 118, 4,
|
|
|
|
|
197, 71, 72, 73, 74, 75, 76, 476, 130, 131,
|
|
|
|
|
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
|
|
|
|
|
28, 29, 30, 31, 32, 33, 34, 84, 98, 86,
|
|
|
|
|
578, 553, 565, 90, 104, 598, 542, 94, 539, 418,
|
|
|
|
|
449, 46, 47, 599, 475, 365, 607, 591, 86, 54,
|
|
|
|
|
55, 56, 57, 58, 59, 202, 468, -1, -1, -1,
|
|
|
|
|
130, 131, 67, 68, 69, 70, 123, 124, -1, 126,
|
|
|
|
|
-1, 128, 77, 78, 79, 80, 81, 82, -1, -1,
|
|
|
|
|
4, -1, 87, 88, 89, -1, -1, -1, -1, 94,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 104,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
115, -1, 36, 4, -1, -1, 121, -1, -1, -1,
|
|
|
|
|
-1, 126, 46, 47, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
54, 55, 56, 57, 58, 59, -1, -1, -1, 4,
|
|
|
|
|
-1, -1, -1, 67, 68, 69, 70, 38, -1, -1,
|
|
|
|
|
-1, -1, -1, 77, 78, 79, 80, 81, 82, -1,
|
|
|
|
|
-1, -1, -1, 87, 88, 89, -1, 58, -1, -1,
|
|
|
|
|
94, 36, -1, 38, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
104, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, 115, -1, 58, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
91, -1, 126, -1, 95, 96, 97, 98, 99, 100,
|
|
|
|
|
101, 102, 103, -1, 105, 106, 107, 108, 109, -1,
|
|
|
|
|
-1, -1, -1, 114, 115, 116, 91, -1, -1, -1,
|
|
|
|
|
95, 96, 97, 98, 99, -1, 101, 102, 103, -1,
|
|
|
|
|
105, 106, 107, 108, 109, -1, -1, -1, -1, 114,
|
|
|
|
|
115, 116, 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,
|
|
|
|
|
-1, -1, 125, 15, 127, 17, 18, 19, 20, 21,
|
|
|
|
|
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
|
|
|
32, 33, 34, 15, 127, 17, 18, 19, 20, 21,
|
|
|
|
|
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
|
|
|
32, 33, 34, 15, 127, 17, 18, 19, 20, 21,
|
|
|
|
|
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
|
|
|
32, 33, 34, 15, 127, 17, 18, 19, 20, 21,
|
|
|
|
|
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
|
|
|
32, 33, 34, 15, 127, 17, 18, 19, 20, 21,
|
|
|
|
|
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
|
|
|
32, 33, 34, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 15, 127, 17, 18, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 15, 127, 17, 18, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 15, 127, 17, 18, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 15, 127, 17, 18, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 15, 127, 17, 18, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, 15, 127, 17, 18, 19,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
30, 31, 32, 33, 34, 15, 127, 17, 18, 19,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
30, 31, 32, 33, 34, 15, 127, 17, 18, 19,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
30, 31, 32, 33, 34, 15, 127, 17, 18, 19,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
30, 31, 32, 33, 34, 15, 127, 17, 18, 19,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
|
|
|
|
30, 31, 32, 33, 34, -1, -1, -1, -1, -1,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, 127, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 15, 125, 17, 18, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 15, 125, 17, 18, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 15, 125, 17, 18, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, -1, 125, 37, 15, 16, 17,
|
|
|
|
|
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
|
|
|
|
|
28, 29, 30, 31, 32, 33, 34, 15, 16, 17,
|
|
|
|
|
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
|
|
|
|
|
28, 29, 30, 31, 32, 33, 34, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, 15, 125, 17, 18, 19, 20, 21,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
32, 33, 34, -1, 125, 20, 21, 22, 23, 24,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
31, 32, 33, 34, 22, 23, 24, 25, 26, 27,
|
|
|
|
|
28, 29, 30, 31, 32, 33, 34
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
|
|
|
|
|
#line 3 "/usr/share/bison-1.35/bison.simple"
|
|
|
|
|
|
|
|
|
|
/* Skeleton output parser for bison,
|
|
|
|
|
|
|
|
|
|
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software
|
|
|
|
|
Foundation, Inc.
|
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
|
|
|
|
|
|
/* As a special exception, when this file is copied by Bison into a
|
|
|
|
|
Bison output file, you may use that output file without restriction.
|
|
|
|
|
This special exception was added by the Free Software Foundation
|
|
|
|
|
in version 1.24 of Bison. */
|
|
|
|
|
|
|
|
|
|
/* This is the parser code that is written into each bison parser when
|
|
|
|
|
the %semantic_parser declaration is not specified in the grammar.
|
|
|
|
|
It was written by Richard Stallman by simplifying the hairy parser
|
|
|
|
|
used when %semantic_parser is specified. */
|
|
|
|
|
|
|
|
|
|
/* All symbols defined below should begin with yy or YY, to avoid
|
|
|
|
|
infringing on user name space. This should be done even for local
|
|
|
|
|
variables, as they might otherwise be expanded by user macros.
|
|
|
|
|
There are some unavoidable exceptions within include files to
|
|
|
|
|
define necessary library symbols; they are noted "INFRINGES ON
|
|
|
|
|
USER NAME SPACE" below. */
|
|
|
|
|
|
|
|
|
|
#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
|
|
|
|
|
|
|
|
|
|
/* The parser invokes alloca or malloc; define the necessary symbols. */
|
|
|
|
|
|
|
|
|
|
# if YYSTACK_USE_ALLOCA
|
|
|
|
|
# define YYSTACK_ALLOC alloca
|
|
|
|
|
# else
|
|
|
|
|
# ifndef YYSTACK_USE_ALLOCA
|
|
|
|
|
# if defined (alloca) || defined (_ALLOCA_H)
|
|
|
|
|
# define YYSTACK_ALLOC alloca
|
|
|
|
|
# else
|
|
|
|
|
# ifdef __GNUC__
|
|
|
|
|
# define YYSTACK_ALLOC __builtin_alloca
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef YYSTACK_ALLOC
|
|
|
|
|
/* Pacify GCC's `empty if-body' warning. */
|
|
|
|
|
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
|
|
|
|
|
# else
|
|
|
|
|
# if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
|
|
|
|
# define YYSIZE_T size_t
|
|
|
|
|
# endif
|
|
|
|
|
# define YYSTACK_ALLOC malloc
|
|
|
|
|
# define YYSTACK_FREE free
|
|
|
|
|
# endif
|
|
|
|
|
#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if (! defined (yyoverflow) \
|
|
|
|
|
&& (! defined (__cplusplus) \
|
|
|
|
|
|| (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
|
|
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
|
|
|
/* Copy COUNT objects from FROM to TO. The source and destination do
|
|
|
|
|
not overlap. */
|
|
|
|
|
# ifndef YYCOPY
|
|
|
|
|
# if 1 < __GNUC__
|
|
|
|
|
# define YYCOPY(To, From, Count) \
|
|
|
|
|
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
|
|
|
|
|
# else
|
|
|
|
|
# define YYCOPY(To, From, Count) \
|
|
|
|
|
do \
|
|
|
|
|
{ \
|
|
|
|
|
register YYSIZE_T yyi; \
|
|
|
|
|
for (yyi = 0; yyi < (Count); yyi++) \
|
|
|
|
|
(To)[yyi] = (From)[yyi]; \
|
|
|
|
|
} \
|
|
|
|
|
while (0)
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
/* Relocate 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(Stack) \
|
|
|
|
|
do \
|
|
|
|
|
{ \
|
|
|
|
|
YYSIZE_T yynewbytes; \
|
|
|
|
|
YYCOPY (&yyptr->Stack, Stack, yysize); \
|
|
|
|
|
Stack = &yyptr->Stack; \
|
|
|
|
|
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \
|
|
|
|
|
yyptr += yynewbytes / sizeof (*yyptr); \
|
|
|
|
|
} \
|
|
|
|
|
while (0)
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#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)
|
|
|
|
|
# if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
|
|
|
|
# define YYSIZE_T size_t
|
|
|
|
|
# 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
|
|
|
|
|
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
|
|
|
|
|
# define YYFPRINTF fprintf
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# define YYDPRINTF(Args) \
|
|
|
|
|
do { \
|
|
|
|
|
if (yydebug) \
|
|
|
|
|
YYFPRINTF Args; \
|
|
|
|
|
} while (0)
|
|
|
|
|
/* Nonzero means print parse trace. It is left uninitialized so that
|
|
|
|
|
multiple parsers can coexist. */
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
#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 315 "/usr/share/bison-1.35/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
|
|
|
|
|
# if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
# define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
|
|
|
|
|
# define YYPARSE_PARAM_DECL
|
|
|
|
|
# else
|
|
|
|
|
# define YYPARSE_PARAM_ARG YYPARSE_PARAM
|
|
|
|
|
# define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
|
|
|
|
|
# endif
|
|
|
|
|
#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 */
|
|
|
|
|
# ifndef YYSTACK_RELOCATE
|
|
|
|
|
goto yyoverflowlab;
|
|
|
|
|
# else
|
|
|
|
|
/* 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 (yyss);
|
|
|
|
|
YYSTACK_RELOCATE (yyvs);
|
|
|
|
|
# if YYLSP_NEEDED
|
|
|
|
|
YYSTACK_RELOCATE (yyls);
|
|
|
|
|
# endif
|
|
|
|
|
# undef YYSTACK_RELOCATE
|
|
|
|
|
if (yyss1 != yyssa)
|
|
|
|
|
YYSTACK_FREE (yyss1);
|
|
|
|
|
}
|
|
|
|
|
# endif
|
|
|
|
|
#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 173 "ldgram.y"
|
|
|
|
|
{ ldlex_defsym(); }
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
#line 175 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
ldlex_popstate();
|
|
|
|
|
lang_add_assignment(exp_assop(yyvsp[-1].token,yyvsp[-2].name,yyvsp[0].etree));
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
|
|
|
|
#line 183 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
ldlex_mri_script ();
|
|
|
|
|
PUSH_ERROR (_("MRI style script"));
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 9:
|
|
|
|
|
#line 188 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
mri_draw_tree ();
|
|
|
|
|
POP_ERROR ();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 14:
|
|
|
|
|
#line 203 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
einfo(_("%P%F: unrecognised keyword in MRI style script '%s'\n"),yyvsp[0].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 15:
|
|
|
|
|
#line 206 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
config.map_filename = "-";
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 18:
|
|
|
|
|
#line 212 "ldgram.y"
|
|
|
|
|
{ mri_public(yyvsp[-2].name, yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 19:
|
|
|
|
|
#line 214 "ldgram.y"
|
|
|
|
|
{ mri_public(yyvsp[-2].name, yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 20:
|
|
|
|
|
#line 216 "ldgram.y"
|
|
|
|
|
{ mri_public(yyvsp[-1].name, yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 21:
|
|
|
|
|
#line 218 "ldgram.y"
|
|
|
|
|
{ mri_format(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 22:
|
|
|
|
|
#line 220 "ldgram.y"
|
|
|
|
|
{ mri_output_section(yyvsp[-2].name, yyvsp[0].etree);}
|
|
|
|
|
break;
|
|
|
|
|
case 23:
|
|
|
|
|
#line 222 "ldgram.y"
|
|
|
|
|
{ mri_output_section(yyvsp[-1].name, yyvsp[0].etree);}
|
|
|
|
|
break;
|
|
|
|
|
case 24:
|
|
|
|
|
#line 224 "ldgram.y"
|
|
|
|
|
{ mri_output_section(yyvsp[-2].name, yyvsp[0].etree);}
|
|
|
|
|
break;
|
|
|
|
|
case 25:
|
|
|
|
|
#line 226 "ldgram.y"
|
|
|
|
|
{ mri_align(yyvsp[-2].name,yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 26:
|
|
|
|
|
#line 228 "ldgram.y"
|
|
|
|
|
{ mri_align(yyvsp[-2].name,yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 27:
|
|
|
|
|
#line 230 "ldgram.y"
|
|
|
|
|
{ mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 28:
|
|
|
|
|
#line 232 "ldgram.y"
|
|
|
|
|
{ mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 31:
|
|
|
|
|
#line 236 "ldgram.y"
|
|
|
|
|
{ mri_name(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 32:
|
|
|
|
|
#line 238 "ldgram.y"
|
|
|
|
|
{ mri_alias(yyvsp[-2].name,yyvsp[0].name,0);}
|
|
|
|
|
break;
|
|
|
|
|
case 33:
|
|
|
|
|
#line 240 "ldgram.y"
|
|
|
|
|
{ mri_alias (yyvsp[-2].name, 0, (int) yyvsp[0].bigint.integer); }
|
|
|
|
|
break;
|
|
|
|
|
case 34:
|
|
|
|
|
#line 242 "ldgram.y"
|
|
|
|
|
{ mri_base(yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 35:
|
|
|
|
|
#line 244 "ldgram.y"
|
|
|
|
|
{ mri_truncate ((unsigned int) yyvsp[0].bigint.integer); }
|
|
|
|
|
break;
|
|
|
|
|
case 38:
|
|
|
|
|
#line 248 "ldgram.y"
|
|
|
|
|
{ ldlex_script (); ldfile_open_command_file(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 39:
|
|
|
|
|
#line 250 "ldgram.y"
|
|
|
|
|
{ ldlex_popstate (); }
|
|
|
|
|
break;
|
|
|
|
|
case 40:
|
|
|
|
|
#line 252 "ldgram.y"
|
|
|
|
|
{ lang_add_entry (yyvsp[0].name, FALSE); }
|
|
|
|
|
break;
|
|
|
|
|
case 42:
|
|
|
|
|
#line 257 "ldgram.y"
|
|
|
|
|
{ mri_order(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 43:
|
|
|
|
|
#line 258 "ldgram.y"
|
|
|
|
|
{ mri_order(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 45:
|
|
|
|
|
#line 264 "ldgram.y"
|
|
|
|
|
{ mri_load(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 46:
|
|
|
|
|
#line 265 "ldgram.y"
|
|
|
|
|
{ mri_load(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 47:
|
|
|
|
|
#line 270 "ldgram.y"
|
|
|
|
|
{ mri_only_load(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 48:
|
|
|
|
|
#line 272 "ldgram.y"
|
|
|
|
|
{ mri_only_load(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 49:
|
|
|
|
|
#line 276 "ldgram.y"
|
|
|
|
|
{ yyval.name = NULL; }
|
|
|
|
|
break;
|
|
|
|
|
case 52:
|
|
|
|
|
#line 283 "ldgram.y"
|
|
|
|
|
{ ldlang_add_undef (yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 53:
|
|
|
|
|
#line 285 "ldgram.y"
|
|
|
|
|
{ ldlang_add_undef (yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 54:
|
|
|
|
|
#line 287 "ldgram.y"
|
|
|
|
|
{ ldlang_add_undef (yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 55:
|
|
|
|
|
#line 291 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
ldlex_both();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 56:
|
|
|
|
|
#line 295 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
ldlex_popstate();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 69:
|
|
|
|
|
#line 320 "ldgram.y"
|
|
|
|
|
{ lang_add_target(yyvsp[-1].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 70:
|
|
|
|
|
#line 322 "ldgram.y"
|
|
|
|
|
{ ldfile_add_library_path (yyvsp[-1].name, FALSE); }
|
|
|
|
|
break;
|
|
|
|
|
case 71:
|
|
|
|
|
#line 324 "ldgram.y"
|
|
|
|
|
{ lang_add_output(yyvsp[-1].name, 1); }
|
|
|
|
|
break;
|
|
|
|
|
case 72:
|
|
|
|
|
#line 326 "ldgram.y"
|
|
|
|
|
{ lang_add_output_format (yyvsp[-1].name, (char *) NULL,
|
|
|
|
|
(char *) NULL, 1); }
|
|
|
|
|
break;
|
|
|
|
|
case 73:
|
|
|
|
|
#line 329 "ldgram.y"
|
|
|
|
|
{ lang_add_output_format (yyvsp[-5].name, yyvsp[-3].name, yyvsp[-1].name, 1); }
|
|
|
|
|
break;
|
|
|
|
|
case 74:
|
|
|
|
|
#line 331 "ldgram.y"
|
2004-12-08 12:52:50 +03:00
|
|
|
|
{ ldfile_set_output_arch (yyvsp[-1].name, bfd_arch_unknown); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
|
|
|
|
case 75:
|
|
|
|
|
#line 333 "ldgram.y"
|
|
|
|
|
{ command_line.force_common_definition = TRUE ; }
|
|
|
|
|
break;
|
|
|
|
|
case 76:
|
|
|
|
|
#line 335 "ldgram.y"
|
|
|
|
|
{ command_line.inhibit_common_definition = TRUE ; }
|
|
|
|
|
break;
|
|
|
|
|
case 78:
|
|
|
|
|
#line 338 "ldgram.y"
|
|
|
|
|
{ lang_enter_group (); }
|
|
|
|
|
break;
|
|
|
|
|
case 79:
|
|
|
|
|
#line 340 "ldgram.y"
|
|
|
|
|
{ lang_leave_group (); }
|
|
|
|
|
break;
|
|
|
|
|
case 80:
|
|
|
|
|
#line 342 "ldgram.y"
|
|
|
|
|
{ lang_add_map(yyvsp[-1].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 81:
|
|
|
|
|
#line 344 "ldgram.y"
|
|
|
|
|
{ ldlex_script (); ldfile_open_command_file(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 82:
|
|
|
|
|
#line 346 "ldgram.y"
|
|
|
|
|
{ ldlex_popstate (); }
|
|
|
|
|
break;
|
|
|
|
|
case 83:
|
|
|
|
|
#line 348 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
lang_add_nocrossref (yyvsp[-1].nocrossref);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 85:
|
|
|
|
|
#line 356 "ldgram.y"
|
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 86:
|
|
|
|
|
#line 359 "ldgram.y"
|
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 87:
|
|
|
|
|
#line 362 "ldgram.y"
|
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 88:
|
|
|
|
|
#line 365 "ldgram.y"
|
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 89:
|
|
|
|
|
#line 368 "ldgram.y"
|
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 90:
|
|
|
|
|
#line 371 "ldgram.y"
|
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 95:
|
|
|
|
|
#line 387 "ldgram.y"
|
|
|
|
|
{ lang_add_entry (yyvsp[-1].name, FALSE); }
|
|
|
|
|
break;
|
|
|
|
|
case 97:
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#line 389 "ldgram.y"
|
|
|
|
|
{ldlex_expression ();}
|
|
|
|
|
break;
|
|
|
|
|
case 98:
|
|
|
|
|
#line 390 "ldgram.y"
|
|
|
|
|
{ ldlex_popstate ();
|
|
|
|
|
lang_add_assignment (exp_assert (yyvsp[-3].etree, yyvsp[-1].name)); }
|
|
|
|
|
break;
|
|
|
|
|
case 99:
|
|
|
|
|
#line 398 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.cname = yyvsp[0].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 100:
|
|
|
|
|
#line 402 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.cname = "*";
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 101:
|
|
|
|
|
#line 406 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.cname = "?";
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 102:
|
|
|
|
|
#line 413 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[0].cname;
|
|
|
|
|
yyval.wildcard.sorted = FALSE;
|
|
|
|
|
yyval.wildcard.exclude_name_list = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 103:
|
|
|
|
|
#line 419 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[0].cname;
|
|
|
|
|
yyval.wildcard.sorted = FALSE;
|
|
|
|
|
yyval.wildcard.exclude_name_list = yyvsp[-2].name_list;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 104:
|
|
|
|
|
#line 425 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[-1].cname;
|
|
|
|
|
yyval.wildcard.sorted = TRUE;
|
|
|
|
|
yyval.wildcard.exclude_name_list = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 105:
|
|
|
|
|
#line 431 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[-1].cname;
|
|
|
|
|
yyval.wildcard.sorted = TRUE;
|
|
|
|
|
yyval.wildcard.exclude_name_list = yyvsp[-3].name_list;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 106:
|
|
|
|
|
#line 440 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
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;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 107:
|
|
|
|
|
#line 449 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
struct name_list *tmp;
|
|
|
|
|
tmp = (struct name_list *) xmalloc (sizeof *tmp);
|
|
|
|
|
tmp->name = yyvsp[0].cname;
|
|
|
|
|
tmp->next = NULL;
|
|
|
|
|
yyval.name_list = tmp;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 108:
|
|
|
|
|
#line 460 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
struct wildcard_list *tmp;
|
|
|
|
|
tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
|
|
|
|
|
tmp->next = yyvsp[-2].wildcard_list;
|
|
|
|
|
tmp->spec = yyvsp[0].wildcard;
|
|
|
|
|
yyval.wildcard_list = tmp;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 109:
|
|
|
|
|
#line 469 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
struct wildcard_list *tmp;
|
|
|
|
|
tmp = (struct wildcard_list *) xmalloc (sizeof *tmp);
|
|
|
|
|
tmp->next = NULL;
|
|
|
|
|
tmp->spec = yyvsp[0].wildcard;
|
|
|
|
|
yyval.wildcard_list = tmp;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 110:
|
|
|
|
|
#line 480 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
struct wildcard_spec tmp;
|
|
|
|
|
tmp.name = yyvsp[0].name;
|
|
|
|
|
tmp.exclude_name_list = NULL;
|
|
|
|
|
tmp.sorted = FALSE;
|
|
|
|
|
lang_add_wild (&tmp, NULL, ldgram_had_keep);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 111:
|
|
|
|
|
#line 488 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_wild (NULL, yyvsp[-1].wildcard_list, ldgram_had_keep);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 112:
|
|
|
|
|
#line 492 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_wild (&yyvsp[-3].wildcard, yyvsp[-1].wildcard_list, ldgram_had_keep);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 114:
|
|
|
|
|
#line 500 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldgram_had_keep = TRUE; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 115:
|
|
|
|
|
#line 502 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldgram_had_keep = FALSE; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 117:
|
|
|
|
|
#line 508 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_attribute(lang_object_symbols_statement_enum);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 119:
|
|
|
|
|
#line 513 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
lang_add_attribute(lang_constructors_statement_enum);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 120:
|
|
|
|
|
#line 518 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
constructors_sorted = TRUE;
|
|
|
|
|
lang_add_attribute (lang_constructors_statement_enum);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 122:
|
|
|
|
|
#line 524 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_data ((int) yyvsp[-3].integer, yyvsp[-1].etree);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 123:
|
|
|
|
|
#line 529 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_fill (yyvsp[-1].fill);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 128:
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#line 546 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
|
|
|
|
case 129:
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#line 548 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
|
|
|
|
case 130:
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#line 550 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
|
|
|
|
case 131:
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#line 552 "ldgram.y"
|
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
|
|
|
|
case 132:
|
|
|
|
|
#line 554 "ldgram.y"
|
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
|
|
|
|
case 133:
|
|
|
|
|
#line 559 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.fill = exp_get_fill (yyvsp[0].etree,
|
|
|
|
|
0,
|
|
|
|
|
"fill value",
|
|
|
|
|
lang_first_phase_enum);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 134:
|
|
|
|
|
#line 569 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.fill = yyvsp[0].fill; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 135:
|
|
|
|
|
#line 570 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.fill = (fill_type *) 0; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 136:
|
|
|
|
|
#line 575 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '+'; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 137:
|
|
|
|
|
#line 577 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '-'; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 138:
|
|
|
|
|
#line 579 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '*'; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 139:
|
|
|
|
|
#line 581 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '/'; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 140:
|
|
|
|
|
#line 583 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = LSHIFT; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 141:
|
|
|
|
|
#line 585 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = RSHIFT; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 142:
|
|
|
|
|
#line 587 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '&'; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 143:
|
|
|
|
|
#line 589 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '|'; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 146:
|
|
|
|
|
#line 599 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_assignment (exp_assop (yyvsp[-1].token, yyvsp[-2].name, yyvsp[0].etree));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 147:
|
|
|
|
|
#line 603 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_assignment (exp_assop ('=', yyvsp[-2].name,
|
|
|
|
|
exp_binop (yyvsp[-1].token,
|
|
|
|
|
exp_nameop (NAME,
|
|
|
|
|
yyvsp[-2].name),
|
|
|
|
|
yyvsp[0].etree)));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 148:
|
|
|
|
|
#line 611 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_assignment (exp_provide (yyvsp[-3].name, yyvsp[-1].etree));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 155:
|
2003-11-26 14:33:51 +03:00
|
|
|
|
#line 633 "ldgram.y"
|
2004-12-08 12:52:50 +03:00
|
|
|
|
{ region = lang_memory_region_lookup (yyvsp[0].name, TRUE); }
|
|
|
|
|
break;
|
|
|
|
|
case 156:
|
|
|
|
|
#line 636 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 157:
|
|
|
|
|
#line 641 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ region->current =
|
|
|
|
|
region->origin =
|
|
|
|
|
exp_get_vma(yyvsp[0].etree, 0L,"origin", lang_first_phase_enum);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 158:
|
|
|
|
|
#line 649 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ region->length = exp_get_vma(yyvsp[0].etree,
|
|
|
|
|
~((bfd_vma)0),
|
|
|
|
|
"length",
|
|
|
|
|
lang_first_phase_enum);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 159:
|
|
|
|
|
#line 658 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ /* dummy action to avoid bison 1.25 error message */ }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 163:
|
|
|
|
|
#line 669 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_set_flags (region, yyvsp[0].name, 0); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 164:
|
|
|
|
|
#line 671 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_set_flags (region, yyvsp[0].name, 1); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 165:
|
|
|
|
|
#line 676 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_startup(yyvsp[-1].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 167:
|
|
|
|
|
#line 682 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldemul_hll((char *)NULL); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 168:
|
|
|
|
|
#line 687 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldemul_hll(yyvsp[0].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 169:
|
|
|
|
|
#line 689 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldemul_hll(yyvsp[0].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 171:
|
|
|
|
|
#line 697 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldemul_syslib(yyvsp[0].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 173:
|
|
|
|
|
#line 703 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_float(TRUE); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 174:
|
|
|
|
|
#line 705 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_float(FALSE); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 175:
|
|
|
|
|
#line 710 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.nocrossref = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 176:
|
|
|
|
|
#line 714 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
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;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 177:
|
|
|
|
|
#line 723 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
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;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 178:
|
|
|
|
|
#line 733 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_expression(); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 179:
|
|
|
|
|
#line 735 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate(); yyval.etree=yyvsp[0].etree;}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 180:
|
|
|
|
|
#line 740 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_unop('-', yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 181:
|
|
|
|
|
#line 742 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-1].etree; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 182:
|
|
|
|
|
#line 744 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_unop((int) yyvsp[-3].integer,yyvsp[-1].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 183:
|
|
|
|
|
#line 746 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_unop('!', yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 184:
|
|
|
|
|
#line 748 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[0].etree; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 185:
|
|
|
|
|
#line 750 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_unop('~', yyvsp[0].etree);}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 186:
|
|
|
|
|
#line 753 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('*', yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 187:
|
|
|
|
|
#line 755 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('/', yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 188:
|
|
|
|
|
#line 757 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('%', yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 189:
|
|
|
|
|
#line 759 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('+', yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 190:
|
|
|
|
|
#line 761 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('-' , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 191:
|
|
|
|
|
#line 763 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop(LSHIFT , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 192:
|
|
|
|
|
#line 765 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop(RSHIFT , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 193:
|
|
|
|
|
#line 767 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop(EQ , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 194:
|
|
|
|
|
#line 769 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop(NE , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 195:
|
|
|
|
|
#line 771 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop(LE , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 196:
|
|
|
|
|
#line 773 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop(GE , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 197:
|
|
|
|
|
#line 775 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('<' , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 198:
|
|
|
|
|
#line 777 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('>' , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 199:
|
|
|
|
|
#line 779 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('&' , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 200:
|
|
|
|
|
#line 781 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('^' , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 201:
|
|
|
|
|
#line 783 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop('|' , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 202:
|
|
|
|
|
#line 785 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_trinop('?' , yyvsp[-4].etree, yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 203:
|
|
|
|
|
#line 787 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop(ANDAND , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 204:
|
|
|
|
|
#line 789 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop(OROR , yyvsp[-2].etree, yyvsp[0].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 205:
|
|
|
|
|
#line 791 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_nameop(DEFINED, yyvsp[-1].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 206:
|
|
|
|
|
#line 793 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_bigintop (yyvsp[0].bigint.integer, yyvsp[0].bigint.str); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 207:
|
|
|
|
|
#line 795 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_nameop(SIZEOF_HEADERS,0); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 208:
|
|
|
|
|
#line 798 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_nameop(SIZEOF,yyvsp[-1].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 209:
|
|
|
|
|
#line 800 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_nameop(ADDR,yyvsp[-1].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 210:
|
|
|
|
|
#line 802 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_nameop(LOADADDR,yyvsp[-1].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 211:
|
|
|
|
|
#line 804 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_unop(ABSOLUTE, yyvsp[-1].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 212:
|
|
|
|
|
#line 806 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 213:
|
|
|
|
|
#line 808 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop(ALIGN_K,yyvsp[-3].etree,yyvsp[-1].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 214:
|
|
|
|
|
#line 810 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop (DATA_SEGMENT_ALIGN, yyvsp[-3].etree, yyvsp[-1].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 215:
|
|
|
|
|
#line 812 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_unop(DATA_SEGMENT_END, yyvsp[-1].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 216:
|
|
|
|
|
#line 814 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 217:
|
|
|
|
|
#line 816 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_nameop(NAME,yyvsp[0].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 218:
|
|
|
|
|
#line 818 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop (MAX_K, yyvsp[-3].etree, yyvsp[-1].etree ); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 219:
|
|
|
|
|
#line 820 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_binop (MIN_K, yyvsp[-3].etree, yyvsp[-1].etree ); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 220:
|
|
|
|
|
#line 822 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = exp_assert (yyvsp[-3].etree, yyvsp[-1].name); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 221:
|
|
|
|
|
#line 827 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.name = yyvsp[0].name; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 222:
|
|
|
|
|
#line 828 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.name = 0; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 223:
|
|
|
|
|
#line 832 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-1].etree; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 224:
|
|
|
|
|
#line 833 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = 0; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 225:
|
|
|
|
|
#line 837 "ldgram.y"
|
|
|
|
|
{ yyval.etree = yyvsp[-1].etree; }
|
|
|
|
|
break;
|
|
|
|
|
case 226:
|
|
|
|
|
#line 838 "ldgram.y"
|
|
|
|
|
{ yyval.etree = 0; }
|
|
|
|
|
break;
|
|
|
|
|
case 227:
|
|
|
|
|
#line 841 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_expression(); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 228:
|
|
|
|
|
#line 844 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); ldlex_script (); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 229:
|
|
|
|
|
#line 846 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
lang_enter_output_section_statement(yyvsp[-6].name, yyvsp[-4].etree,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
sectype,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
0, yyvsp[-2].etree, yyvsp[-3].etree);
|
2003-11-26 14:33:51 +03:00
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 230:
|
|
|
|
|
#line 852 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); ldlex_expression (); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 231:
|
|
|
|
|
#line 854 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
lang_leave_output_section_statement (yyvsp[0].fill, yyvsp[-3].name, yyvsp[-1].section_phdr, yyvsp[-2].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 232:
|
|
|
|
|
#line 859 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 233:
|
|
|
|
|
#line 861 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_expression (); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 234:
|
|
|
|
|
#line 863 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); ldlex_script (); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 235:
|
|
|
|
|
#line 865 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
2004-12-08 12:52:50 +03:00
|
|
|
|
lang_enter_overlay (yyvsp[-5].etree, yyvsp[-2].etree);
|
2003-11-26 14:33:51 +03:00
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 236:
|
|
|
|
|
#line 870 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); ldlex_expression (); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 237:
|
|
|
|
|
#line 872 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
2004-12-08 12:52:50 +03:00
|
|
|
|
lang_leave_overlay (yyvsp[-11].etree, (int) yyvsp[-12].integer,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
yyvsp[0].fill, yyvsp[-3].name, yyvsp[-1].section_phdr, yyvsp[-2].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 239:
|
|
|
|
|
#line 882 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_expression (); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 240:
|
|
|
|
|
#line 884 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
lang_add_assignment (exp_assop ('=', ".", yyvsp[0].etree));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 242:
|
|
|
|
|
#line 892 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = noload_section; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 243:
|
|
|
|
|
#line 893 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = dsect_section; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 244:
|
|
|
|
|
#line 894 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = copy_section; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 245:
|
|
|
|
|
#line 895 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = info_section; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 246:
|
|
|
|
|
#line 896 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = overlay_section; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 248:
|
|
|
|
|
#line 901 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = normal_section; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 249:
|
|
|
|
|
#line 902 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = normal_section; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 250:
|
|
|
|
|
#line 906 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-2].etree; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 251:
|
|
|
|
|
#line 907 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = (etree_type *)NULL; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 252:
|
|
|
|
|
#line 912 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-3].etree; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 253:
|
|
|
|
|
#line 914 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-7].etree; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 254:
|
|
|
|
|
#line 918 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-1].etree; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 255:
|
|
|
|
|
#line 919 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = (etree_type *) NULL; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 256:
|
|
|
|
|
#line 924 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = 0; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 257:
|
|
|
|
|
#line 926 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = 1; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 258:
|
|
|
|
|
#line 931 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.name = yyvsp[0].name; }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 259:
|
|
|
|
|
#line 932 "ldgram.y"
|
|
|
|
|
{ yyval.name = DEFAULT_MEMORY_REGION; }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 260:
|
|
|
|
|
#line 937 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.section_phdr = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 261:
|
|
|
|
|
#line 941 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
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;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 263:
|
|
|
|
|
#line 957 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_script ();
|
|
|
|
|
lang_enter_overlay_section (yyvsp[0].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 264:
|
|
|
|
|
#line 962 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); ldlex_expression (); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 265:
|
|
|
|
|
#line 964 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
lang_leave_overlay_section (yyvsp[0].fill, yyvsp[-1].section_phdr);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 270:
|
|
|
|
|
#line 981 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_expression (); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 271:
|
|
|
|
|
#line 982 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); }
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 272:
|
|
|
|
|
#line 984 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
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;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 273:
|
|
|
|
|
#line 992 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
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", "PT_TLS"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
if (i == sizeof phdr_types / sizeof phdr_types[0])
|
|
|
|
|
{
|
|
|
|
|
if (strcmp (s, "PT_GNU_EH_FRAME") == 0)
|
|
|
|
|
yyval.etree = exp_intop (0x6474e550);
|
2004-12-08 12:52:50 +03:00
|
|
|
|
else if (strcmp (s, "PT_GNU_STACK") == 0)
|
|
|
|
|
yyval.etree = exp_intop (0x6474e551);
|
2003-11-26 14:33:51 +03:00
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
einfo (_("\
|
|
|
|
|
%X%P:%S: unknown phdr type `%s' (try integer literal)\n"),
|
|
|
|
|
s);
|
|
|
|
|
yyval.etree = exp_intop (0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 274:
|
|
|
|
|
#line 1036 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
memset (&yyval.phdr, 0, sizeof (struct phdr_info));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 275:
|
|
|
|
|
#line 1040 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
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;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 276:
|
|
|
|
|
#line 1052 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.phdr = yyvsp[0].phdr;
|
|
|
|
|
yyval.phdr.at = yyvsp[-2].etree;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 277:
|
|
|
|
|
#line 1060 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.etree = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 278:
|
|
|
|
|
#line 1064 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.etree = yyvsp[-1].etree;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 279:
|
|
|
|
|
#line 1072 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_version_file ();
|
|
|
|
|
PUSH_ERROR (_("VERSION script"));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 280:
|
|
|
|
|
#line 1077 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
POP_ERROR ();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 281:
|
|
|
|
|
#line 1086 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_version_script ();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 282:
|
|
|
|
|
#line 1090 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 285:
|
|
|
|
|
#line 1102 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_register_vers_node (NULL, yyvsp[-2].versnode, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 286:
|
|
|
|
|
#line 1106 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_register_vers_node (yyvsp[-4].name, yyvsp[-2].versnode, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 287:
|
|
|
|
|
#line 1110 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_register_vers_node (yyvsp[-5].name, yyvsp[-3].versnode, yyvsp[-1].deflist);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 288:
|
|
|
|
|
#line 1117 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.deflist = lang_add_vers_depend (NULL, yyvsp[0].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 289:
|
|
|
|
|
#line 1121 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.deflist = lang_add_vers_depend (yyvsp[-1].deflist, yyvsp[0].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 290:
|
|
|
|
|
#line 1128 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (NULL, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 291:
|
|
|
|
|
#line 1132 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (yyvsp[-1].versyms, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 292:
|
|
|
|
|
#line 1136 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (yyvsp[-1].versyms, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 293:
|
|
|
|
|
#line 1140 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (NULL, yyvsp[-1].versyms);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 294:
|
|
|
|
|
#line 1144 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (yyvsp[-5].versyms, yyvsp[-1].versyms);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 295:
|
|
|
|
|
#line 1151 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versyms = lang_new_vers_pattern (NULL, yyvsp[0].name, ldgram_vers_current_lang);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 296:
|
|
|
|
|
#line 1155 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versyms = lang_new_vers_pattern (yyvsp[-2].versyms, yyvsp[0].name, ldgram_vers_current_lang);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 297:
|
|
|
|
|
#line 1159 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.name = ldgram_vers_current_lang;
|
|
|
|
|
ldgram_vers_current_lang = yyvsp[-1].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 298:
|
|
|
|
|
#line 1164 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versyms = yyvsp[-2].versyms;
|
|
|
|
|
ldgram_vers_current_lang = yyvsp[-3].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 299:
|
|
|
|
|
#line 1169 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.name = ldgram_vers_current_lang;
|
|
|
|
|
ldgram_vers_current_lang = yyvsp[-1].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 300:
|
|
|
|
|
#line 1174 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versyms = yyvsp[-2].versyms;
|
|
|
|
|
ldgram_vers_current_lang = yyvsp[-3].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#line 705 "/usr/share/bison-1.35/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;
|
|
|
|
|
}
|
2004-12-08 12:52:50 +03:00
|
|
|
|
#line 1185 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|