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
|
2006-02-02 23:58:06 +03:00
|
|
|
|
# define DATA_SEGMENT_ALIGN 288
|
|
|
|
|
# define DATA_SEGMENT_RELRO_END 289
|
2003-11-26 14:33:51 +03:00
|
|
|
|
# define DATA_SEGMENT_END 290
|
2006-02-02 23:58:06 +03:00
|
|
|
|
# define SORT_BY_NAME 291
|
|
|
|
|
# define SORT_BY_ALIGNMENT 292
|
|
|
|
|
# define SIZEOF_HEADERS 293
|
|
|
|
|
# define OUTPUT_FORMAT 294
|
|
|
|
|
# define FORCE_COMMON_ALLOCATION 295
|
|
|
|
|
# define OUTPUT_ARCH 296
|
|
|
|
|
# define INHIBIT_COMMON_ALLOCATION 297
|
|
|
|
|
# define SEGMENT_START 298
|
|
|
|
|
# define INCLUDE 299
|
|
|
|
|
# define MEMORY 300
|
|
|
|
|
# define DEFSYMEND 301
|
|
|
|
|
# define NOLOAD 302
|
|
|
|
|
# define DSECT 303
|
|
|
|
|
# define COPY 304
|
|
|
|
|
# define INFO 305
|
|
|
|
|
# define OVERLAY 306
|
|
|
|
|
# define DEFINED 307
|
|
|
|
|
# define TARGET_K 308
|
|
|
|
|
# define SEARCH_DIR 309
|
|
|
|
|
# define MAP 310
|
|
|
|
|
# define ENTRY 311
|
|
|
|
|
# define NEXT 312
|
|
|
|
|
# define SIZEOF 313
|
|
|
|
|
# define ADDR 314
|
|
|
|
|
# define LOADADDR 315
|
|
|
|
|
# define MAX_K 316
|
|
|
|
|
# define MIN_K 317
|
|
|
|
|
# define STARTUP 318
|
|
|
|
|
# define HLL 319
|
|
|
|
|
# define SYSLIB 320
|
|
|
|
|
# define FLOAT 321
|
|
|
|
|
# define NOFLOAT 322
|
|
|
|
|
# define NOCROSSREFS 323
|
|
|
|
|
# define ORIGIN 324
|
|
|
|
|
# define FILL 325
|
|
|
|
|
# define LENGTH 326
|
|
|
|
|
# define CREATE_OBJECT_SYMBOLS 327
|
|
|
|
|
# define INPUT 328
|
|
|
|
|
# define GROUP 329
|
|
|
|
|
# define OUTPUT 330
|
|
|
|
|
# define CONSTRUCTORS 331
|
|
|
|
|
# define ALIGNMOD 332
|
|
|
|
|
# define AT 333
|
|
|
|
|
# define SUBALIGN 334
|
|
|
|
|
# define PROVIDE 335
|
|
|
|
|
# define AS_NEEDED 336
|
|
|
|
|
# define CHIP 337
|
|
|
|
|
# define LIST 338
|
|
|
|
|
# define SECT 339
|
|
|
|
|
# define ABSOLUTE 340
|
|
|
|
|
# define LOAD 341
|
|
|
|
|
# define NEWLINE 342
|
|
|
|
|
# define ENDWORD 343
|
|
|
|
|
# define ORDER 344
|
|
|
|
|
# define NAMEWORD 345
|
|
|
|
|
# define ASSERT_K 346
|
|
|
|
|
# define FORMAT 347
|
|
|
|
|
# define PUBLIC 348
|
|
|
|
|
# define BASE 349
|
|
|
|
|
# define ALIAS 350
|
|
|
|
|
# define TRUNCATE 351
|
|
|
|
|
# define REL 352
|
|
|
|
|
# define INPUT_SCRIPT 353
|
|
|
|
|
# define INPUT_MRI_SCRIPT 354
|
|
|
|
|
# define INPUT_DEFSYM 355
|
|
|
|
|
# define CASE 356
|
|
|
|
|
# define EXTERN 357
|
|
|
|
|
# define START 358
|
|
|
|
|
# define VERS_TAG 359
|
|
|
|
|
# define VERS_IDENTIFIER 360
|
|
|
|
|
# define GLOBAL 361
|
|
|
|
|
# define LOCAL 362
|
|
|
|
|
# define VERSIONK 363
|
|
|
|
|
# define INPUT_VERSION_SCRIPT 364
|
|
|
|
|
# define KEEP 365
|
|
|
|
|
# define ONLY_IF_RO 366
|
|
|
|
|
# define ONLY_IF_RW 367
|
|
|
|
|
# define EXCLUDE_FILE 368
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#define YYFINAL 689
|
2003-11-26 14:33:51 +03:00
|
|
|
|
#define YYFLAG -32768
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#define YYNTBASE 138
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#define YYTRANSLATE(x) ((unsigned)(x) <= 368 ? yytranslate[x] : 250)
|
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,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
2, 2, 2, 136, 2, 2, 2, 34, 21, 2,
|
|
|
|
|
37, 133, 32, 30, 131, 31, 2, 33, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 16, 132,
|
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,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
2, 134, 2, 135, 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,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
2, 2, 2, 53, 19, 54, 137, 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,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
50, 51, 52, 55, 56, 57, 58, 59, 60, 61,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
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,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
122, 123, 124, 125, 126, 127, 128, 129, 130
|
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,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
290, 293, 294, 300, 301, 309, 310, 317, 322, 325,
|
|
|
|
|
328, 329, 334, 337, 338, 346, 348, 350, 352, 354,
|
|
|
|
|
360, 365, 370, 378, 386, 394, 402, 411, 414, 416,
|
|
|
|
|
420, 422, 424, 428, 433, 435, 436, 442, 445, 447,
|
|
|
|
|
449, 451, 456, 458, 463, 468, 471, 473, 474, 476,
|
|
|
|
|
478, 480, 482, 484, 486, 488, 491, 492, 494, 496,
|
|
|
|
|
498, 500, 502, 504, 506, 508, 510, 512, 516, 520,
|
|
|
|
|
527, 529, 530, 536, 539, 543, 544, 545, 553, 557,
|
|
|
|
|
561, 562, 566, 568, 571, 573, 576, 581, 586, 590,
|
|
|
|
|
594, 596, 601, 605, 606, 608, 610, 611, 614, 618,
|
|
|
|
|
619, 622, 625, 629, 634, 637, 640, 643, 647, 651,
|
|
|
|
|
655, 659, 663, 667, 671, 675, 679, 683, 687, 691,
|
|
|
|
|
695, 699, 703, 707, 713, 717, 721, 726, 728, 730,
|
|
|
|
|
735, 740, 745, 750, 755, 762, 769, 776, 781, 788,
|
|
|
|
|
793, 795, 802, 809, 816, 821, 826, 830, 831, 836,
|
|
|
|
|
837, 842, 843, 845, 847, 848, 849, 850, 851, 852,
|
|
|
|
|
853, 872, 873, 874, 875, 876, 877, 896, 897, 898,
|
|
|
|
|
906, 908, 910, 912, 914, 916, 920, 921, 924, 928,
|
|
|
|
|
931, 938, 949, 952, 954, 955, 957, 960, 961, 962,
|
|
|
|
|
966, 967, 968, 969, 970, 982, 987, 988, 991, 992,
|
|
|
|
|
993, 1000, 1002, 1003, 1007, 1013, 1014, 1018, 1019, 1022,
|
|
|
|
|
1023, 1029, 1031, 1034, 1039, 1045, 1052, 1054, 1057, 1058,
|
|
|
|
|
1061, 1066, 1071, 1080, 1082, 1086, 1087, 1097, 1098, 1106,
|
|
|
|
|
1107
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
static const short yyrhs[] =
|
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
115, 152, 0, 116, 142, 0, 126, 238, 0, 117,
|
|
|
|
|
140, 0, 4, 0, 0, 141, 4, 10, 201, 0,
|
|
|
|
|
0, 143, 144, 0, 144, 145, 104, 0, 0, 99,
|
|
|
|
|
201, 0, 99, 201, 131, 201, 0, 4, 0, 100,
|
|
|
|
|
0, 106, 147, 0, 105, 0, 110, 4, 10, 201,
|
|
|
|
|
0, 110, 4, 131, 201, 0, 110, 4, 201, 0,
|
|
|
|
|
109, 4, 0, 101, 4, 131, 201, 0, 101, 4,
|
|
|
|
|
201, 0, 101, 4, 10, 201, 0, 38, 4, 10,
|
|
|
|
|
201, 0, 38, 4, 131, 201, 0, 94, 4, 10,
|
|
|
|
|
201, 0, 94, 4, 131, 201, 0, 102, 149, 0,
|
|
|
|
|
103, 148, 0, 107, 4, 0, 112, 4, 131, 4,
|
|
|
|
|
0, 112, 4, 131, 3, 0, 111, 201, 0, 113,
|
|
|
|
|
3, 0, 118, 150, 0, 119, 151, 0, 0, 61,
|
|
|
|
|
139, 146, 144, 36, 0, 120, 4, 0, 0, 147,
|
|
|
|
|
131, 4, 0, 147, 4, 0, 0, 4, 0, 148,
|
|
|
|
|
131, 4, 0, 4, 0, 149, 131, 4, 0, 0,
|
|
|
|
|
4, 0, 150, 131, 4, 0, 4, 0, 151, 4,
|
|
|
|
|
0, 151, 131, 4, 0, 0, 153, 154, 0, 154,
|
|
|
|
|
155, 0, 0, 183, 0, 162, 0, 230, 0, 192,
|
|
|
|
|
0, 193, 0, 195, 0, 197, 0, 164, 0, 240,
|
|
|
|
|
0, 132, 0, 70, 37, 4, 133, 0, 71, 37,
|
|
|
|
|
139, 133, 0, 92, 37, 139, 133, 0, 56, 37,
|
|
|
|
|
4, 133, 0, 56, 37, 4, 131, 4, 131, 4,
|
|
|
|
|
133, 0, 58, 37, 4, 133, 0, 57, 0, 59,
|
|
|
|
|
0, 90, 37, 158, 133, 0, 0, 91, 156, 37,
|
|
|
|
|
158, 133, 0, 72, 37, 139, 133, 0, 0, 61,
|
|
|
|
|
139, 157, 154, 36, 0, 85, 37, 198, 133, 0,
|
|
|
|
|
119, 37, 151, 133, 0, 4, 0, 158, 131, 4,
|
|
|
|
|
0, 158, 4, 0, 5, 0, 158, 131, 5, 0,
|
|
|
|
|
158, 5, 0, 0, 98, 37, 159, 158, 133, 0,
|
|
|
|
|
0, 158, 131, 98, 37, 160, 158, 133, 0, 0,
|
|
|
|
|
158, 98, 37, 161, 158, 133, 0, 46, 53, 163,
|
|
|
|
|
54, 0, 163, 206, 0, 163, 164, 0, 0, 73,
|
|
|
|
|
37, 4, 133, 0, 181, 180, 0, 0, 108, 165,
|
|
|
|
|
37, 201, 131, 4, 133, 0, 4, 0, 32, 0,
|
|
|
|
|
15, 0, 166, 0, 130, 37, 168, 133, 166, 0,
|
|
|
|
|
51, 37, 166, 133, 0, 52, 37, 166, 133, 0,
|
|
|
|
|
51, 37, 52, 37, 166, 133, 133, 0, 51, 37,
|
|
|
|
|
51, 37, 166, 133, 133, 0, 52, 37, 51, 37,
|
|
|
|
|
166, 133, 133, 0, 52, 37, 52, 37, 166, 133,
|
|
|
|
|
133, 0, 51, 37, 130, 37, 168, 133, 166, 133,
|
|
|
|
|
0, 168, 166, 0, 166, 0, 169, 182, 167, 0,
|
|
|
|
|
167, 0, 4, 0, 134, 169, 135, 0, 167, 37,
|
|
|
|
|
169, 133, 0, 170, 0, 0, 127, 37, 172, 170,
|
|
|
|
|
133, 0, 181, 180, 0, 89, 0, 132, 0, 93,
|
|
|
|
|
0, 51, 37, 93, 133, 0, 171, 0, 176, 37,
|
|
|
|
|
199, 133, 0, 87, 37, 177, 133, 0, 174, 173,
|
|
|
|
|
0, 173, 0, 0, 174, 0, 41, 0, 42, 0,
|
|
|
|
|
43, 0, 44, 0, 45, 0, 199, 0, 10, 177,
|
|
|
|
|
0, 0, 6, 0, 7, 0, 8, 0, 9, 0,
|
|
|
|
|
11, 0, 12, 0, 13, 0, 14, 0, 132, 0,
|
|
|
|
|
131, 0, 4, 10, 199, 0, 4, 179, 199, 0,
|
|
|
|
|
97, 37, 4, 10, 199, 133, 0, 131, 0, 0,
|
|
|
|
|
62, 53, 185, 184, 54, 0, 184, 185, 0, 184,
|
|
|
|
|
131, 185, 0, 0, 0, 4, 186, 189, 16, 187,
|
|
|
|
|
182, 188, 0, 86, 10, 199, 0, 88, 10, 199,
|
|
|
|
|
0, 0, 37, 190, 133, 0, 191, 0, 190, 191,
|
|
|
|
|
0, 4, 0, 136, 4, 0, 80, 37, 139, 133,
|
|
|
|
|
0, 81, 37, 194, 133, 0, 81, 37, 133, 0,
|
|
|
|
|
194, 182, 139, 0, 139, 0, 82, 37, 196, 133,
|
|
|
|
|
0, 196, 182, 139, 0, 0, 83, 0, 84, 0,
|
|
|
|
|
0, 4, 198, 0, 4, 131, 198, 0, 0, 200,
|
|
|
|
|
201, 0, 31, 201, 0, 37, 201, 133, 0, 74,
|
|
|
|
|
37, 201, 133, 0, 136, 201, 0, 30, 201, 0,
|
|
|
|
|
137, 201, 0, 201, 32, 201, 0, 201, 33, 201,
|
|
|
|
|
0, 201, 34, 201, 0, 201, 30, 201, 0, 201,
|
|
|
|
|
31, 201, 0, 201, 28, 201, 0, 201, 29, 201,
|
|
|
|
|
0, 201, 22, 201, 0, 201, 23, 201, 0, 201,
|
|
|
|
|
26, 201, 0, 201, 27, 201, 0, 201, 24, 201,
|
|
|
|
|
0, 201, 25, 201, 0, 201, 21, 201, 0, 201,
|
|
|
|
|
20, 201, 0, 201, 19, 201, 0, 201, 15, 201,
|
|
|
|
|
16, 201, 0, 201, 18, 201, 0, 201, 17, 201,
|
|
|
|
|
0, 69, 37, 4, 133, 0, 3, 0, 55, 0,
|
|
|
|
|
75, 37, 4, 133, 0, 76, 37, 4, 133, 0,
|
|
|
|
|
77, 37, 4, 133, 0, 102, 37, 201, 133, 0,
|
|
|
|
|
38, 37, 201, 133, 0, 38, 37, 201, 131, 201,
|
|
|
|
|
133, 0, 48, 37, 201, 131, 201, 133, 0, 49,
|
|
|
|
|
37, 201, 131, 201, 133, 0, 50, 37, 201, 133,
|
|
|
|
|
0, 60, 37, 4, 131, 201, 133, 0, 39, 37,
|
|
|
|
|
201, 133, 0, 4, 0, 78, 37, 201, 131, 201,
|
|
|
|
|
133, 0, 79, 37, 201, 131, 201, 133, 0, 108,
|
|
|
|
|
37, 201, 131, 4, 133, 0, 86, 37, 4, 133,
|
|
|
|
|
0, 88, 37, 4, 133, 0, 95, 25, 4, 0,
|
|
|
|
|
0, 95, 37, 201, 133, 0, 0, 96, 37, 201,
|
|
|
|
|
133, 0, 0, 128, 0, 129, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 4, 207, 221, 203, 204, 208, 205,
|
|
|
|
|
53, 209, 175, 54, 210, 224, 202, 225, 178, 211,
|
|
|
|
|
182, 0, 0, 0, 0, 0, 0, 68, 212, 222,
|
|
|
|
|
223, 203, 204, 213, 53, 214, 226, 54, 215, 224,
|
|
|
|
|
202, 225, 178, 216, 182, 0, 0, 0, 91, 217,
|
|
|
|
|
221, 218, 53, 163, 54, 0, 64, 0, 65, 0,
|
|
|
|
|
66, 0, 67, 0, 68, 0, 37, 219, 133, 0,
|
|
|
|
|
0, 37, 133, 0, 201, 220, 16, 0, 220, 16,
|
|
|
|
|
0, 40, 37, 201, 133, 220, 16, 0, 40, 37,
|
|
|
|
|
201, 133, 39, 37, 201, 133, 220, 16, 0, 201,
|
|
|
|
|
16, 0, 16, 0, 0, 85, 0, 25, 4, 0,
|
|
|
|
|
0, 0, 225, 16, 4, 0, 0, 0, 0, 0,
|
|
|
|
|
226, 4, 227, 53, 175, 54, 228, 225, 178, 229,
|
|
|
|
|
182, 0, 47, 53, 231, 54, 0, 0, 231, 232,
|
|
|
|
|
0, 0, 0, 4, 233, 235, 236, 234, 132, 0,
|
|
|
|
|
201, 0, 0, 4, 237, 236, 0, 95, 37, 201,
|
|
|
|
|
133, 236, 0, 0, 37, 201, 133, 0, 0, 239,
|
|
|
|
|
242, 0, 0, 241, 125, 53, 242, 54, 0, 243,
|
|
|
|
|
0, 242, 243, 0, 53, 245, 54, 132, 0, 121,
|
|
|
|
|
53, 245, 54, 132, 0, 121, 53, 245, 54, 244,
|
|
|
|
|
132, 0, 121, 0, 244, 121, 0, 0, 246, 132,
|
|
|
|
|
0, 123, 16, 246, 132, 0, 124, 16, 246, 132,
|
|
|
|
|
0, 123, 16, 246, 132, 124, 16, 246, 132, 0,
|
|
|
|
|
122, 0, 246, 132, 122, 0, 0, 246, 132, 119,
|
|
|
|
|
4, 53, 247, 246, 249, 54, 0, 0, 119, 4,
|
|
|
|
|
53, 248, 246, 249, 54, 0, 0, 132, 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[] =
|
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
0, 163, 165, 166, 167, 171, 174, 174, 184, 184,
|
|
|
|
|
197, 199, 202, 204, 205, 208, 211, 212, 213, 215,
|
|
|
|
|
217, 219, 221, 223, 225, 227, 229, 231, 233, 235,
|
|
|
|
|
236, 237, 239, 241, 243, 245, 247, 248, 249, 249,
|
|
|
|
|
253, 255, 258, 260, 261, 264, 267, 270, 273, 277,
|
|
|
|
|
279, 280, 283, 286, 288, 292, 292, 303, 305, 310,
|
|
|
|
|
312, 313, 314, 315, 316, 317, 318, 319, 320, 321,
|
|
|
|
|
323, 325, 327, 330, 332, 334, 336, 338, 339, 339,
|
|
|
|
|
343, 345, 345, 349, 353, 356, 360, 363, 366, 369,
|
|
|
|
|
372, 375, 375, 379, 379, 383, 383, 389, 393, 395,
|
|
|
|
|
396, 399, 402, 403, 403, 410, 415, 419, 425, 432,
|
|
|
|
|
438, 444, 450, 456, 462, 468, 474, 482, 491, 502,
|
|
|
|
|
511, 522, 531, 535, 541, 543, 543, 549, 551, 555,
|
|
|
|
|
556, 561, 566, 567, 572, 578, 580, 583, 585, 588,
|
|
|
|
|
591, 593, 595, 597, 601, 611, 614, 617, 620, 622,
|
|
|
|
|
624, 626, 628, 630, 632, 637, 637, 641, 646, 654,
|
|
|
|
|
661, 662, 665, 669, 671, 672, 676, 676, 683, 691,
|
|
|
|
|
700, 703, 706, 708, 711, 714, 718, 723, 725, 729,
|
|
|
|
|
732, 737, 739, 742, 745, 748, 752, 757, 766, 777,
|
|
|
|
|
777, 782, 785, 787, 789, 791, 793, 796, 798, 800,
|
|
|
|
|
802, 804, 806, 808, 810, 812, 814, 816, 818, 820,
|
|
|
|
|
822, 824, 826, 828, 830, 832, 834, 836, 838, 841,
|
|
|
|
|
843, 845, 847, 849, 851, 853, 855, 857, 859, 868,
|
|
|
|
|
870, 872, 874, 876, 878, 880, 885, 887, 890, 892,
|
|
|
|
|
895, 897, 900, 902, 903, 906, 906, 906, 906, 906,
|
|
|
|
|
906, 926, 926, 926, 926, 926, 926, 944, 944, 944,
|
|
|
|
|
957, 959, 960, 961, 962, 965, 967, 968, 971, 973,
|
|
|
|
|
974, 979, 983, 985, 988, 991, 995, 998, 1001, 1006,
|
|
|
|
|
1019, 1021, 1021, 1021, 1021, 1037, 1041, 1043, 1046, 1046,
|
|
|
|
|
1046, 1056, 1100, 1105, 1117, 1124, 1129, 1137, 1137, 1151,
|
|
|
|
|
1151, 1161, 1163, 1166, 1171, 1175, 1181, 1186, 1192, 1197,
|
|
|
|
|
1201, 1205, 1209, 1215, 1220, 1224, 1224, 1234, 1234, 1246,
|
|
|
|
|
1248
|
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",
|
2006-02-02 23:58:06 +03:00
|
|
|
|
"SQUAD", "LONG", "SHORT", "BYTE", "SECTIONS", "PHDRS",
|
|
|
|
|
"DATA_SEGMENT_ALIGN", "DATA_SEGMENT_RELRO_END", "DATA_SEGMENT_END",
|
|
|
|
|
"SORT_BY_NAME", "SORT_BY_ALIGNMENT", "'{'", "'}'", "SIZEOF_HEADERS",
|
|
|
|
|
"OUTPUT_FORMAT", "FORCE_COMMON_ALLOCATION", "OUTPUT_ARCH",
|
|
|
|
|
"INHIBIT_COMMON_ALLOCATION", "SEGMENT_START", "INCLUDE", "MEMORY",
|
2003-11-26 14:33:51 +03:00
|
|
|
|
"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",
|
2006-02-02 23:58:06 +03:00
|
|
|
|
"ALIGNMOD", "AT", "SUBALIGN", "PROVIDE", "AS_NEEDED", "CHIP", "LIST",
|
|
|
|
|
"SECT", "ABSOLUTE", "LOAD", "NEWLINE", "ENDWORD", "ORDER", "NAMEWORD",
|
2004-12-08 12:52:50 +03:00
|
|
|
|
"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",
|
2006-02-02 23:58:06 +03:00
|
|
|
|
"INPUT_VERSION_SCRIPT", "KEEP", "ONLY_IF_RO", "ONLY_IF_RW",
|
|
|
|
|
"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", "@7", "@8", "@9", "sections", "sec_or_group_p1",
|
|
|
|
|
"statement_anywhere", "@10", "wildcard_name", "wildcard_spec",
|
2003-11-26 14:33:51 +03:00
|
|
|
|
"exclude_name_list", "file_NAME_list", "input_section_spec_no_keep",
|
2006-02-02 23:58:06 +03:00
|
|
|
|
"input_section_spec", "@11", "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",
|
2006-02-02 23:58:06 +03:00
|
|
|
|
"memory_spec", "@12", "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",
|
2006-02-02 23:58:06 +03:00
|
|
|
|
"nocrossref_list", "mustbe_exp", "@13", "exp", "memspec_at_opt",
|
|
|
|
|
"opt_at", "opt_subalign", "sect_constraint", "section", "@14", "@15",
|
|
|
|
|
"@16", "@17", "@18", "@19", "@20", "@21", "@22", "@23", "@24", "@25",
|
|
|
|
|
"type", "atype", "opt_exp_with_type", "opt_exp_without_type",
|
|
|
|
|
"opt_nocrossrefs", "memspec_opt", "phdr_opt", "overlay_section", "@26",
|
|
|
|
|
"@27", "@28", "phdrs", "phdr_list", "phdr", "@29", "@30", "phdr_type",
|
|
|
|
|
"phdr_qualifiers", "phdr_val", "version_script_file", "@31", "version",
|
|
|
|
|
"@32", "vers_nodes", "vers_node", "verdep", "vers_tag", "vers_defns",
|
|
|
|
|
"@33", "@34", "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[] =
|
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
0, 138, 138, 138, 138, 139, 141, 140, 143, 142,
|
|
|
|
|
144, 144, 145, 145, 145, 145, 145, 145, 145, 145,
|
|
|
|
|
145, 145, 145, 145, 145, 145, 145, 145, 145, 145,
|
|
|
|
|
145, 145, 145, 145, 145, 145, 145, 145, 146, 145,
|
|
|
|
|
145, 145, 147, 147, 147, 148, 148, 149, 149, 150,
|
|
|
|
|
150, 150, 151, 151, 151, 153, 152, 154, 154, 155,
|
|
|
|
|
155, 155, 155, 155, 155, 155, 155, 155, 155, 155,
|
|
|
|
|
155, 155, 155, 155, 155, 155, 155, 155, 156, 155,
|
|
|
|
|
155, 157, 155, 155, 155, 158, 158, 158, 158, 158,
|
|
|
|
|
158, 159, 158, 160, 158, 161, 158, 162, 163, 163,
|
|
|
|
|
163, 164, 164, 165, 164, 166, 166, 166, 167, 167,
|
|
|
|
|
167, 167, 167, 167, 167, 167, 167, 168, 168, 169,
|
|
|
|
|
169, 170, 170, 170, 171, 172, 171, 173, 173, 173,
|
|
|
|
|
173, 173, 173, 173, 173, 174, 174, 175, 175, 176,
|
|
|
|
|
176, 176, 176, 176, 177, 178, 178, 179, 179, 179,
|
|
|
|
|
179, 179, 179, 179, 179, 180, 180, 181, 181, 181,
|
|
|
|
|
182, 182, 183, 184, 184, 184, 186, 185, 187, 188,
|
|
|
|
|
189, 189, 190, 190, 191, 191, 192, 193, 193, 194,
|
|
|
|
|
194, 195, 196, 196, 197, 197, 198, 198, 198, 200,
|
|
|
|
|
199, 201, 201, 201, 201, 201, 201, 201, 201, 201,
|
|
|
|
|
201, 201, 201, 201, 201, 201, 201, 201, 201, 201,
|
|
|
|
|
201, 201, 201, 201, 201, 201, 201, 201, 201, 201,
|
|
|
|
|
201, 201, 201, 201, 201, 201, 201, 201, 201, 201,
|
|
|
|
|
201, 201, 201, 201, 201, 201, 202, 202, 203, 203,
|
|
|
|
|
204, 204, 205, 205, 205, 207, 208, 209, 210, 211,
|
|
|
|
|
206, 212, 213, 214, 215, 216, 206, 217, 218, 206,
|
|
|
|
|
219, 219, 219, 219, 219, 220, 220, 220, 221, 221,
|
|
|
|
|
221, 221, 222, 222, 223, 223, 224, 224, 225, 225,
|
|
|
|
|
226, 227, 228, 229, 226, 230, 231, 231, 233, 234,
|
|
|
|
|
232, 235, 236, 236, 236, 237, 237, 239, 238, 241,
|
|
|
|
|
240, 242, 242, 243, 243, 243, 244, 244, 245, 245,
|
|
|
|
|
245, 245, 245, 246, 246, 247, 246, 248, 246, 249,
|
|
|
|
|
249
|
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,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
2, 0, 5, 0, 7, 0, 6, 4, 2, 2,
|
|
|
|
|
0, 4, 2, 0, 7, 1, 1, 1, 1, 5,
|
|
|
|
|
4, 4, 7, 7, 7, 7, 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,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
3, 3, 3, 5, 3, 3, 4, 1, 1, 4,
|
|
|
|
|
4, 4, 4, 4, 6, 6, 6, 4, 6, 4,
|
|
|
|
|
1, 6, 6, 6, 4, 4, 3, 0, 4, 0,
|
|
|
|
|
4, 0, 1, 1, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
18, 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[] =
|
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
0, 55, 8, 6, 297, 1, 58, 2, 11, 4,
|
|
|
|
|
0, 3, 0, 56, 9, 0, 308, 0, 298, 301,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
0, 0, 0, 0, 75, 0, 76, 0, 0, 0,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 184, 185, 0, 0,
|
|
|
|
|
78, 0, 0, 103, 0, 68, 57, 60, 66, 0,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
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,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
0, 313, 0, 0, 0, 0, 308, 302, 147, 148,
|
|
|
|
|
149, 150, 189, 151, 152, 153, 154, 189, 100, 286,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
0, 0, 5, 81, 0, 0, 0, 0, 0, 0,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
0, 183, 186, 0, 0, 0, 0, 0, 0, 156,
|
|
|
|
|
155, 102, 0, 0, 38, 0, 217, 230, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 218, 0, 0, 0,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
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, 309, 0, 157, 0, 158,
|
|
|
|
|
0, 0, 0, 0, 58, 166, 165, 0, 0, 0,
|
|
|
|
|
0, 0, 178, 180, 161, 161, 186, 0, 85, 88,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
11, 0, 0, 195, 191, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 194, 196, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 23, 0, 0,
|
|
|
|
|
43, 0, 0, 0, 20, 0, 0, 53, 0, 317,
|
|
|
|
|
0, 0, 303, 0, 314, 0, 190, 245, 97, 251,
|
|
|
|
|
257, 99, 98, 288, 285, 287, 0, 72, 74, 299,
|
|
|
|
|
170, 0, 69, 70, 80, 101, 176, 160, 177, 0,
|
|
|
|
|
181, 0, 186, 187, 83, 91, 87, 90, 0, 0,
|
|
|
|
|
77, 0, 71, 189, 0, 84, 0, 25, 26, 41,
|
|
|
|
|
27, 28, 192, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 215, 214, 212, 211, 210, 204, 205, 208, 209,
|
|
|
|
|
206, 207, 202, 203, 200, 201, 197, 198, 199, 13,
|
|
|
|
|
24, 22, 48, 46, 42, 18, 19, 33, 32, 51,
|
|
|
|
|
54, 0, 310, 311, 0, 306, 304, 0, 266, 0,
|
|
|
|
|
266, 0, 0, 82, 0, 0, 162, 0, 163, 179,
|
|
|
|
|
182, 188, 0, 95, 86, 89, 0, 79, 0, 0,
|
|
|
|
|
300, 39, 0, 223, 229, 0, 0, 227, 0, 216,
|
|
|
|
|
193, 219, 220, 221, 0, 0, 234, 235, 222, 0,
|
|
|
|
|
0, 319, 0, 315, 307, 305, 0, 0, 266, 0,
|
|
|
|
|
239, 273, 0, 274, 258, 291, 292, 0, 174, 0,
|
|
|
|
|
0, 172, 0, 164, 0, 0, 93, 159, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 213, 320, 0, 0,
|
|
|
|
|
0, 260, 261, 262, 263, 264, 267, 0, 0, 0,
|
|
|
|
|
0, 269, 0, 241, 272, 275, 239, 0, 295, 0,
|
|
|
|
|
289, 0, 175, 171, 173, 0, 161, 92, 0, 0,
|
|
|
|
|
104, 224, 225, 226, 228, 231, 232, 233, 318, 0,
|
|
|
|
|
319, 265, 0, 268, 0, 0, 246, 241, 100, 0,
|
|
|
|
|
292, 0, 0, 73, 189, 0, 96, 0, 312, 0,
|
|
|
|
|
266, 0, 0, 244, 252, 0, 0, 293, 0, 290,
|
|
|
|
|
168, 0, 167, 94, 316, 0, 0, 238, 0, 242,
|
|
|
|
|
243, 0, 0, 259, 296, 292, 189, 0, 270, 240,
|
|
|
|
|
247, 253, 294, 169, 0, 137, 280, 266, 121, 107,
|
|
|
|
|
106, 139, 140, 141, 142, 143, 0, 0, 0, 128,
|
|
|
|
|
130, 0, 0, 129, 0, 108, 0, 124, 132, 136,
|
|
|
|
|
138, 0, 0, 0, 0, 0, 0, 0, 189, 125,
|
|
|
|
|
0, 105, 0, 120, 161, 0, 135, 248, 189, 127,
|
|
|
|
|
281, 254, 271, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 144, 0, 118, 0, 0, 122, 0, 161,
|
|
|
|
|
277, 0, 0, 277, 0, 0, 131, 0, 110, 0,
|
|
|
|
|
0, 111, 134, 105, 0, 0, 117, 119, 123, 0,
|
|
|
|
|
237, 133, 137, 237, 0, 0, 0, 0, 0, 126,
|
|
|
|
|
109, 276, 0, 278, 0, 278, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 146, 282, 146, 113, 112, 0, 114, 115,
|
|
|
|
|
236, 189, 0, 249, 278, 255, 116, 145, 279, 161,
|
|
|
|
|
146, 161, 250, 283, 256, 161, 284, 0, 0, 0
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const short yydefgoto[] =
|
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
687, 103, 9, 10, 7, 8, 14, 78, 210, 157,
|
|
|
|
|
156, 154, 165, 167, 5, 6, 13, 46, 114, 184,
|
|
|
|
|
201, 392, 489, 445, 47, 180, 48, 117, 575, 576,
|
|
|
|
|
615, 594, 577, 578, 613, 579, 580, 581, 582, 611,
|
|
|
|
|
673, 97, 121, 49, 618, 50, 291, 186, 290, 486,
|
|
|
|
|
532, 385, 440, 441, 51, 52, 194, 53, 195, 54,
|
|
|
|
|
197, 612, 178, 215, 653, 473, 506, 541, 282, 378,
|
|
|
|
|
523, 555, 620, 679, 379, 542, 556, 623, 681, 380,
|
|
|
|
|
477, 467, 429, 430, 433, 476, 640, 662, 584, 622,
|
|
|
|
|
674, 685, 55, 181, 285, 381, 512, 436, 480, 510,
|
|
|
|
|
11, 12, 56, 57, 18, 19, 377, 84, 85, 460,
|
|
|
|
|
371, 458
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const short yypact[] =
|
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
139,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
18,-32768, -35, 759, 1346, 52, 180, 14, -35,-32768,
|
|
|
|
|
391, 26, 74, 96,-32768, 162,-32768, 85, 149, 196,
|
|
|
|
|
203, 220, 232, 254, 255, 273,-32768,-32768, 291, 292,
|
|
|
|
|
-32768, 293, 295,-32768, 296,-32768,-32768,-32768,-32768, -78,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768, 98,-32768, 242,
|
|
|
|
|
85, 332, 672,-32768, 334, 336, 341,-32768,-32768, 342,
|
|
|
|
|
354, 356, 672, 357, 360, 361, 363, 371, 283, 672,
|
|
|
|
|
372,-32768, 373, 375, 323, 262, 180,-32768,-32768,-32768,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
403, 404,-32768,-32768, 405, 410, 85, 85, 411, 85,
|
|
|
|
|
13,-32768, 412, 37, 358, 85, 414, 384, 363,-32768,
|
|
|
|
|
-32768,-32768, 374, 25,-32768, 83,-32768,-32768, 672, 672,
|
|
|
|
|
672, 387, 388, 389, 392, 393,-32768, 394, 397, 398,
|
|
|
|
|
399, 406, 407, 413, 415, 418, 419, 422, 424, 672,
|
|
|
|
|
672, 1474, 35,-32768, 311,-32768, 316, 11,-32768,-32768,
|
|
|
|
|
435, 1704, 338,-32768,-32768, 339,-32768, 33,-32768,-32768,
|
|
|
|
|
1704, 423, -95, -95, 335, -16, 417,-32768, 672,-32768,
|
|
|
|
|
258, 42, 3, 344,-32768,-32768,-32768, 345, 347, 348,
|
|
|
|
|
349, 364,-32768,-32768, 133, 167, 36, 365,-32768,-32768,
|
|
|
|
|
438, 24, 37, 366, 477, 672, 7, -35, 672, 672,
|
|
|
|
|
-32768, 672, 672,-32768,-32768, 940, 672, 672, 672, 672,
|
|
|
|
|
672, 489, 490, 672, 492, 496, 497, 672, 672, 498,
|
|
|
|
|
499, 672, 672,-32768,-32768, 672, 672, 672, 672, 672,
|
|
|
|
|
672, 672, 672, 672, 672, 672, 672, 672, 672, 672,
|
|
|
|
|
672, 672, 672, 672, 672, 672, 672, 1704, 501, 503,
|
|
|
|
|
-32768, 504, 672, 672, 1704, 248, 511,-32768, 512,-32768,
|
|
|
|
|
390, 401,-32768, 515,-32768, -45, 1704, 391,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768, 516,-32768,-32768, 824,
|
|
|
|
|
502, 21,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 85,
|
|
|
|
|
-32768, 85, 412,-32768,-32768,-32768,-32768,-32768, 505, 127,
|
|
|
|
|
-32768, 77,-32768,-32768, 1494,-32768, 47, 1704, 1704, 1368,
|
|
|
|
|
1704, 1704,-32768, 253, 960, 1514, 1534, 980, 409, 402,
|
|
|
|
|
1000, 408, 416, 425, 1554, 1589, 426, 427, 1020, 1609,
|
|
|
|
|
1671, 1037, 1153, 770, 1268, 660, 920, 920, 285, 285,
|
|
|
|
|
285, 285, 186, 186, 256, 256,-32768,-32768,-32768, 1704,
|
|
|
|
|
1704, 1704,-32768,-32768,-32768, 1704, 1704,-32768,-32768,-32768,
|
|
|
|
|
-32768, -95, 113, -16, 481,-32768,-32768, 117, 514, 593,
|
|
|
|
|
514, 672, 430,-32768, 9, 520,-32768, 405,-32768,-32768,
|
|
|
|
|
-32768,-32768, 37,-32768,-32768,-32768, 509,-32768, 432, 534,
|
|
|
|
|
-32768,-32768, 672,-32768,-32768, 672, 672,-32768, 672,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768, 672, 672,-32768,-32768,-32768, 543,
|
|
|
|
|
672, 436, 532,-32768,-32768,-32768, 304, 513, 1629, 540,
|
|
|
|
|
462,-32768, 1726, 482,-32768, 1704, 22, 566,-32768, 569,
|
|
|
|
|
8,-32768, 491,-32768, 103, 37,-32768,-32768, 442, 1057,
|
|
|
|
|
1077, 1097, 1117, 1137, 1174, 443, 1704, -16, 524, -95,
|
|
|
|
|
-95,-32768,-32768,-32768,-32768,-32768,-32768, 446, 672, 163,
|
|
|
|
|
564,-32768, 544, 486,-32768,-32768, 462, 531, 548, 549,
|
|
|
|
|
-32768, 454,-32768,-32768,-32768, 584, 464,-32768, 111, 37,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 466,
|
|
|
|
|
436,-32768, 1194,-32768, 672, 562,-32768, 486,-32768, 672,
|
|
|
|
|
22, 672, 469,-32768,-32768, 517,-32768, 114, -16, 550,
|
|
|
|
|
272, 1214, 672, 177,-32768, 320, 1234,-32768, 1254,-32768,
|
|
|
|
|
-32768, 596,-32768,-32768,-32768, 570, 587,-32768, 1291,-32768,
|
|
|
|
|
-32768, 555, 557,-32768,-32768, 22,-32768, 672,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768, 1311, 692,-32768, 574, 518,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768, 575, 576, 577,-32768,
|
|
|
|
|
-32768, 578, 580,-32768, 207,-32768, 581,-32768,-32768,-32768,
|
|
|
|
|
692, 565, 583, -78, 45, 605, 46, 381,-32768,-32768,
|
|
|
|
|
211,-32768, 588,-32768, 132, 207,-32768,-32768,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768, 589, 590, 495, 592, 500, 597, 598,
|
|
|
|
|
506, 507,-32768, 73,-32768, 15, 209,-32768, 207, 194,
|
|
|
|
|
611, 519, 585, 611, 211, 211,-32768, 211,-32768, 211,
|
|
|
|
|
211,-32768,-32768, 521, 522, 211,-32768,-32768,-32768, 633,
|
|
|
|
|
551,-32768, 692, 551, 523, 525, 16, 526, 527,-32768,
|
|
|
|
|
-32768,-32768, 619,-32768, 591,-32768, 528, 530, 211, 533,
|
|
|
|
|
541, 643, 53,-32768, 53,-32768,-32768, 545,-32768,-32768,
|
|
|
|
|
-32768,-32768, 645,-32768,-32768,-32768,-32768,-32768,-32768, 464,
|
|
|
|
|
53, 464,-32768,-32768,-32768, 464,-32768, 657, 664,-32768
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const short yypgoto[] =
|
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
-32768, -51,-32768,-32768,-32768,-32768, 455,-32768,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768, 559,-32768,-32768, 529,-32768,-32768,-32768,
|
|
|
|
|
-192,-32768,-32768,-32768,-32768, 165, -174,-32768, -167, -538,
|
|
|
|
|
70, 104, 67,-32768,-32768, 118,-32768, 58,-32768, 34,
|
|
|
|
|
-620,-32768, 121, -512, -193,-32768,-32768, -259,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768, 266,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
-173, -92,-32768, -58, 65, 236, 208,-32768,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
|
|
|
|
-32768,-32768, -394, 337,-32768,-32768, 91, -622,-32768,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -494,-32768,
|
|
|
|
|
-32768,-32768,-32768,-32768, 535, -15,-32768, 630, -165,-32768,
|
|
|
|
|
-32768, 218
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#define YYLAST 1760
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const short yytable[] =
|
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
177, 299, 301, 87, 151, 179, 281, 270, 271, 124,
|
|
|
|
|
311, 267, 438, 438, 161, 260, 527, 102, 16, 591,
|
|
|
|
|
591, 170, 15, 303, 80, 185, 478, 81, 306, 307,
|
|
|
|
|
559, 559, 388, 664, 470, 208, 593, 267, 126, 127,
|
|
|
|
|
196, 198, 199, 583, 675, 255, 283, 560, 560, 600,
|
|
|
|
|
591, 552, 680, 119, 120, 188, 189, 593, 191, 193,
|
|
|
|
|
683, 559, 79, 671, 203, 128, 129, 86, 583, 672,
|
|
|
|
|
213, 214, 130, 131, 132, 386, 375, 633, 560, 98,
|
|
|
|
|
637, 306, 307, 133, 134, 135, 17, 376, 559, 102,
|
|
|
|
|
136, 233, 234, 211, 257, 137, 284, 603, 604, 601,
|
|
|
|
|
16, 400, 264, 273, 138, 560, 274, 306, 307, 139,
|
|
|
|
|
140, 141, 142, 143, 144, 306, 307, 479, 306, 307,
|
|
|
|
|
276, 145, 308, 146, 592, 567, 536, 99, 443, 391,
|
|
|
|
|
583, 394, 395, 100, 286, 200, 287, 147, 268, 605,
|
|
|
|
|
315, 483, 261, 148, 439, 439, 192, 314, 635, 658,
|
|
|
|
|
317, 318, 387, 320, 321, 309, 209, 310, 323, 324,
|
|
|
|
|
325, 326, 327, 585, 268, 330, 256, 302, 17, 334,
|
|
|
|
|
335, 149, 150, 338, 339, 308, 606, 340, 341, 342,
|
|
|
|
|
343, 344, 345, 346, 347, 348, 349, 350, 351, 352,
|
|
|
|
|
353, 354, 355, 356, 357, 358, 359, 360, 361, 101,
|
|
|
|
|
444, 308, 104, 572, 365, 366, 421, 574, 309, 308,
|
|
|
|
|
397, 591, 308, 591, 212, 591, 249, 250, 251, 252,
|
|
|
|
|
253, 398, 559, 122, 559, 396, 559, 461, 462, 463,
|
|
|
|
|
464, 465, 273, 105, 309, 274, 487, 422, 424, 560,
|
|
|
|
|
106, 560, 309, 560, 516, 309, 123, 533, 389, 425,
|
|
|
|
|
390, 367, 368, 488, 1, 2, 3, 107, 592, 567,
|
|
|
|
|
603, 604, 277, 297, 297, 4, 298, 617, 235, 108,
|
|
|
|
|
236, 237, 238, 239, 240, 241, 242, 243, 244, 245,
|
|
|
|
|
246, 247, 248, 249, 250, 251, 252, 253, 251, 252,
|
|
|
|
|
253, 109, 110, 515, 499, 500, 466, 517, 297, 80,
|
|
|
|
|
300, 87, 81, 82, 83, 539, 540, 126, 127, 469,
|
|
|
|
|
111, 535, 278, 247, 248, 249, 250, 251, 252, 253,
|
|
|
|
|
428, 432, 428, 435, 277, 297, 279, 638, 112, 113,
|
|
|
|
|
115, 32, 116, 118, 128, 129, 125, 572, 152, 606,
|
|
|
|
|
153, 130, 131, 132, 449, 155, 158, 450, 451, 280,
|
|
|
|
|
452, 281, 133, 134, 135, 42, 453, 454, 159, 136,
|
|
|
|
|
160, 162, 456, 163, 137, 164, 43, 166, 461, 462,
|
|
|
|
|
463, 464, 465, 138, 543, 168, 171, 174, 139, 140,
|
|
|
|
|
141, 142, 143, 144, 402, 591, 403, 169, 279, 172,
|
|
|
|
|
145, 173, 146, 32, 175, 202, 559, 88, 89, 90,
|
|
|
|
|
91, 92, 93, 94, 95, 96, 147, 182, 183, 185,
|
|
|
|
|
502, 280, 148, 560, 187, 190, 196, 42, 204, 607,
|
|
|
|
|
610, 205, 530, 614, 216, 217, 218, 207, 43, 219,
|
|
|
|
|
220, 221, 608, 609, 222, 223, 224, 466, 126, 127,
|
|
|
|
|
149, 150, 258, 225, 226, 262, 521, 259, 636, 607,
|
|
|
|
|
227, 526, 228, 528, 553, 229, 230, 644, 645, 231,
|
|
|
|
|
614, 232, 647, 648, 538, 128, 129, 272, 650, 265,
|
|
|
|
|
266, 275, 130, 131, 132, 305, 269, 288, 292, 636,
|
|
|
|
|
293, 294, 295, 133, 134, 135, 682, 313, 684, 554,
|
|
|
|
|
136, 667, 686, 328, 329, 137, 331, 296, 304, 312,
|
|
|
|
|
332, 333, 336, 337, 138, 362, 621, 363, 364, 139,
|
|
|
|
|
140, 141, 142, 143, 144, 369, 370, 126, 127, 374,
|
|
|
|
|
382, 145, 372, 146, 88, 89, 90, 91, 92, 93,
|
|
|
|
|
94, 95, 96, 373, 423, 409, 442, 147, 448, 384,
|
|
|
|
|
408, 411, 393, 148, 128, 129, 446, 455, 459, 412,
|
|
|
|
|
468, 426, 131, 132, 427, -105, 471, 472, 413, 416,
|
|
|
|
|
417, 437, 133, 134, 135, 447, 263, 475, 457, 136,
|
|
|
|
|
481, 149, 150, 482, 137, 490, 497, 485, 498, 501,
|
|
|
|
|
503, 504, 505, 138, 508, 509, 511, 513, 139, 140,
|
|
|
|
|
141, 142, 143, 144, 514, 297, 126, 127, 518, 522,
|
|
|
|
|
145, 529, 146, 548, 534, 531, 546, 547, 550, 431,
|
|
|
|
|
551, 469, 586, 587, 588, 589, 147, 590, 595, 597,
|
|
|
|
|
598, 602, 148, 128, 129, 616, 624, 625, 626, 627,
|
|
|
|
|
130, 131, 132, 628, 629, 630, 639, 651, 642, 631,
|
|
|
|
|
632, 133, 134, 135, 661, 663, 652, 670, 136, 678,
|
|
|
|
|
149, 150, 641, 137, -121, 649, 656, 688, 657, 659,
|
|
|
|
|
660, 665, 138, 666, 689, 319, 668, 139, 140, 141,
|
|
|
|
|
142, 143, 144, 525, 669, 126, 127, 206, 676, 145,
|
|
|
|
|
634, 146, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
|
|
|
249, 250, 251, 252, 253, 147, 558, 646, 596, 619,
|
|
|
|
|
654, 148, 128, 129, 599, 677, 484, 559, 655, 130,
|
|
|
|
|
131, 132, 507, 289, 643, 524, 176, 434, 519, 0,
|
|
|
|
|
133, 134, 135, 0, 560, 0, 0, 136, 0, 149,
|
|
|
|
|
150, 0, 137, 561, 562, 563, 564, 565, 0, 0,
|
|
|
|
|
0, 138, 316, 566, 567, 0, 139, 140, 141, 142,
|
|
|
|
|
143, 144, 0, 0, 0, 0, 0, 0, 145, 0,
|
|
|
|
|
146, 0, 0, 20, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 147, 0, 0, 0, 0, 568,
|
|
|
|
|
148, 569, 0, 0, 0, 570, 0, 0, 0, 42,
|
|
|
|
|
239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
|
|
|
249, 250, 251, 252, 253, 21, 22, 0, 149, 150,
|
|
|
|
|
0, 0, 0, 0, 0, 23, 24, 25, 26, 571,
|
|
|
|
|
27, 28, 572, 0, 573, 0, 574, 0, 20, 29,
|
|
|
|
|
30, 31, 32, 0, 0, 0, 0, 0, 0, 33,
|
|
|
|
|
34, 35, 36, 37, 38, 0, 0, 0, 0, 39,
|
|
|
|
|
40, 41, 0, 0, 0, 0, 42, 0, 0, 0,
|
|
|
|
|
383, 0, 0, 0, 0, 0, 0, 43, 0, 0,
|
|
|
|
|
21, 22, 0, 0, 0, 0, 0, 0, 44, 0,
|
|
|
|
|
23, 24, 25, 26, -299, 27, 28, 0, 0, 0,
|
|
|
|
|
0, 45, 0, 0, 29, 30, 31, 32, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 33, 34, 35, 36, 37, 38,
|
|
|
|
|
0, 0, 0, 0, 39, 40, 41, 0, 0, 0,
|
|
|
|
|
0, 42, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 43, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 44, 243, 244, 245, 246, 247, 248,
|
|
|
|
|
249, 250, 251, 252, 253, 235, 45, 236, 237, 238,
|
|
|
|
|
239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
|
|
|
249, 250, 251, 252, 253, 235, 0, 236, 237, 238,
|
|
|
|
|
239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
|
|
|
249, 250, 251, 252, 253, 235, 0, 236, 237, 238,
|
|
|
|
|
239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
|
|
|
249, 250, 251, 252, 253, 235, 0, 236, 237, 238,
|
|
|
|
|
239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
|
|
|
249, 250, 251, 252, 253, 235, 0, 236, 237, 238,
|
|
|
|
|
239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
|
|
|
|
249, 250, 251, 252, 253, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 245, 246, 247, 248, 249, 250, 251,
|
|
|
|
|
252, 253, 235, 322, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 245, 246, 247, 248, 249, 250, 251,
|
|
|
|
|
252, 253, 235, 404, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 245, 246, 247, 248, 249, 250, 251,
|
|
|
|
|
252, 253, 235, 407, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 245, 246, 247, 248, 249, 250, 251,
|
|
|
|
|
252, 253, 235, 410, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 245, 246, 247, 248, 249, 250, 251,
|
|
|
|
|
252, 253, 235, 418, 236, 237, 238, 239, 240, 241,
|
|
|
|
|
242, 243, 244, 245, 246, 247, 248, 249, 250, 251,
|
|
|
|
|
252, 253, 238, 239, 240, 241, 242, 243, 244, 245,
|
|
|
|
|
246, 247, 248, 249, 250, 251, 252, 253, 0, 235,
|
|
|
|
|
491, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 235,
|
|
|
|
|
492, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 235,
|
|
|
|
|
493, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 235,
|
|
|
|
|
494, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 235,
|
|
|
|
|
495, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 240,
|
|
|
|
|
241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
|
|
|
|
|
251, 252, 253, 0, 0, 0, 235, 496, 236, 237,
|
|
|
|
|
238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
|
|
|
|
|
248, 249, 250, 251, 252, 253, 235, 520, 236, 237,
|
|
|
|
|
238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
|
|
|
|
|
248, 249, 250, 251, 252, 253, 0, 537, 0, 0,
|
|
|
|
|
58, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 544, 0, 0,
|
|
|
|
|
0, 0, 58, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 59, 0, 0, 545, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 401, 0, 59, 60, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 549, 0, 0, 0, 0, 60,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
61, 0, 0, 0, 557, 62, 63, 64, 65, 66,
|
|
|
|
|
-41, 67, 68, 69, 0, 70, 71, 72, 73, 74,
|
|
|
|
|
0, 0, 61, 0, 75, 76, 77, 62, 63, 64,
|
|
|
|
|
65, 66, 0, 67, 68, 69, 0, 70, 71, 72,
|
|
|
|
|
73, 74, 0, 0, 0, 0, 75, 76, 77, 235,
|
|
|
|
|
0, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 235,
|
|
|
|
|
0, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 235,
|
|
|
|
|
0, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 235,
|
|
|
|
|
0, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 235,
|
|
|
|
|
0, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 235, 254, 236, 237, 238, 239,
|
|
|
|
|
240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
|
|
|
|
250, 251, 252, 253, 235, 399, 236, 237, 238, 239,
|
|
|
|
|
240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
|
|
|
|
250, 251, 252, 253, 235, 405, 236, 237, 238, 239,
|
|
|
|
|
240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
|
|
|
|
250, 251, 252, 253, 0, 406, 469, 0, 0, 0,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
0, 0, 0, 0, 0, 414, 235, 420, 236, 237,
|
|
|
|
|
238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
|
|
|
|
|
248, 249, 250, 251, 252, 253, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 235,
|
|
|
|
|
415, 236, 237, 238, 239, 240, 241, 242, 243, 244,
|
|
|
|
|
245, 246, 247, 248, 249, 250, 251, 252, 253, 0,
|
|
|
|
|
419, 235, 474, 236, 237, 238, 239, 240, 241, 242,
|
|
|
|
|
243, 244, 245, 246, 247, 248, 249, 250, 251, 252,
|
|
|
|
|
253
|
2003-11-26 14:33:51 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const short yycheck[] =
|
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
92, 194, 195, 18, 62, 97, 180, 172, 173, 60,
|
|
|
|
|
202, 4, 4, 4, 72, 4, 510, 4, 53, 4,
|
|
|
|
|
4, 79, 4, 196, 119, 4, 4, 122, 4, 5,
|
|
|
|
|
15, 15, 291, 655, 428, 10, 574, 4, 3, 4,
|
|
|
|
|
4, 4, 5, 555, 664, 10, 4, 32, 32, 4,
|
|
|
|
|
4, 545, 674, 131, 132, 106, 107, 595, 109, 110,
|
|
|
|
|
680, 15, 10, 10, 115, 30, 31, 53, 580, 16,
|
|
|
|
|
128, 129, 37, 38, 39, 54, 121, 4, 32, 53,
|
|
|
|
|
618, 4, 5, 48, 49, 50, 121, 132, 15, 4,
|
|
|
|
|
55, 149, 150, 10, 152, 60, 54, 51, 52, 54,
|
|
|
|
|
53, 54, 160, 119, 69, 32, 122, 4, 5, 74,
|
|
|
|
|
75, 76, 77, 78, 79, 4, 5, 95, 4, 5,
|
|
|
|
|
178, 86, 98, 88, 51, 52, 520, 53, 387, 302,
|
|
|
|
|
642, 4, 5, 37, 131, 98, 133, 102, 131, 93,
|
|
|
|
|
133, 133, 131, 108, 136, 136, 133, 205, 133, 133,
|
|
|
|
|
208, 209, 131, 211, 212, 131, 131, 133, 216, 217,
|
|
|
|
|
218, 219, 220, 557, 131, 223, 131, 131, 121, 227,
|
|
|
|
|
228, 136, 137, 231, 232, 98, 130, 235, 236, 237,
|
|
|
|
|
238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
|
|
|
|
|
248, 249, 250, 251, 252, 253, 254, 255, 256, 37,
|
|
|
|
|
392, 98, 53, 130, 262, 263, 371, 134, 131, 98,
|
|
|
|
|
133, 4, 98, 4, 131, 4, 30, 31, 32, 33,
|
|
|
|
|
34, 313, 15, 125, 15, 98, 15, 64, 65, 66,
|
|
|
|
|
67, 68, 119, 37, 131, 122, 133, 124, 121, 32,
|
|
|
|
|
37, 32, 131, 32, 133, 131, 4, 133, 299, 132,
|
|
|
|
|
301, 3, 4, 445, 115, 116, 117, 37, 51, 52,
|
|
|
|
|
51, 52, 4, 131, 131, 126, 133, 135, 15, 37,
|
|
|
|
|
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
|
|
|
|
27, 28, 29, 30, 31, 32, 33, 34, 32, 33,
|
|
|
|
|
34, 37, 37, 486, 459, 460, 133, 489, 131, 119,
|
|
|
|
|
133, 316, 122, 123, 124, 128, 129, 3, 4, 37,
|
|
|
|
|
37, 39, 54, 28, 29, 30, 31, 32, 33, 34,
|
|
|
|
|
378, 379, 380, 381, 4, 131, 68, 133, 37, 37,
|
|
|
|
|
37, 73, 37, 37, 30, 31, 4, 130, 4, 130,
|
|
|
|
|
4, 37, 38, 39, 402, 4, 4, 405, 406, 91,
|
|
|
|
|
408, 525, 48, 49, 50, 97, 414, 415, 4, 55,
|
|
|
|
|
4, 4, 420, 3, 60, 4, 108, 4, 64, 65,
|
|
|
|
|
66, 67, 68, 69, 54, 4, 4, 54, 74, 75,
|
|
|
|
|
76, 77, 78, 79, 131, 4, 133, 104, 68, 16,
|
|
|
|
|
86, 16, 88, 73, 132, 37, 15, 6, 7, 8,
|
|
|
|
|
9, 10, 11, 12, 13, 14, 102, 4, 4, 4,
|
|
|
|
|
468, 91, 108, 32, 4, 4, 4, 97, 4, 586,
|
|
|
|
|
587, 37, 514, 590, 37, 37, 37, 53, 108, 37,
|
|
|
|
|
37, 37, 51, 52, 37, 37, 37, 133, 3, 4,
|
|
|
|
|
136, 137, 131, 37, 37, 10, 504, 131, 615, 616,
|
|
|
|
|
37, 509, 37, 511, 546, 37, 37, 624, 625, 37,
|
|
|
|
|
627, 37, 629, 630, 522, 30, 31, 132, 635, 131,
|
|
|
|
|
131, 54, 37, 38, 39, 37, 53, 133, 133, 646,
|
|
|
|
|
133, 133, 133, 48, 49, 50, 679, 10, 681, 547,
|
|
|
|
|
55, 658, 685, 4, 4, 60, 4, 133, 133, 133,
|
|
|
|
|
4, 4, 4, 4, 69, 4, 598, 4, 4, 74,
|
|
|
|
|
75, 76, 77, 78, 79, 4, 4, 3, 4, 4,
|
|
|
|
|
4, 86, 132, 88, 6, 7, 8, 9, 10, 11,
|
|
|
|
|
12, 13, 14, 132, 53, 133, 16, 102, 4, 37,
|
|
|
|
|
131, 133, 37, 108, 30, 31, 37, 4, 16, 133,
|
|
|
|
|
37, 37, 38, 39, 40, 37, 16, 95, 133, 133,
|
|
|
|
|
133, 131, 48, 49, 50, 133, 131, 85, 132, 55,
|
|
|
|
|
4, 136, 137, 4, 60, 133, 133, 86, 54, 133,
|
|
|
|
|
16, 37, 96, 69, 53, 37, 37, 133, 74, 75,
|
|
|
|
|
76, 77, 78, 79, 10, 131, 3, 4, 132, 37,
|
|
|
|
|
86, 132, 88, 16, 54, 88, 10, 37, 53, 16,
|
|
|
|
|
53, 37, 37, 37, 37, 37, 102, 37, 37, 54,
|
|
|
|
|
37, 16, 108, 30, 31, 37, 37, 37, 133, 37,
|
|
|
|
|
37, 38, 39, 133, 37, 37, 25, 4, 53, 133,
|
|
|
|
|
133, 48, 49, 50, 25, 54, 95, 4, 55, 4,
|
|
|
|
|
136, 137, 133, 60, 133, 133, 133, 0, 133, 133,
|
|
|
|
|
133, 133, 69, 133, 0, 210, 133, 74, 75, 76,
|
|
|
|
|
77, 78, 79, 508, 133, 3, 4, 118, 133, 86,
|
|
|
|
|
613, 88, 22, 23, 24, 25, 26, 27, 28, 29,
|
|
|
|
|
30, 31, 32, 33, 34, 102, 4, 627, 580, 595,
|
|
|
|
|
642, 108, 30, 31, 583, 671, 440, 15, 643, 37,
|
|
|
|
|
38, 39, 476, 184, 623, 507, 86, 380, 500, -1,
|
|
|
|
|
48, 49, 50, -1, 32, -1, -1, 55, -1, 136,
|
|
|
|
|
137, -1, 60, 41, 42, 43, 44, 45, -1, -1,
|
|
|
|
|
-1, 69, 207, 51, 52, -1, 74, 75, 76, 77,
|
|
|
|
|
78, 79, -1, -1, -1, -1, -1, -1, 86, -1,
|
|
|
|
|
88, -1, -1, 4, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, 102, -1, -1, -1, -1, 87,
|
|
|
|
|
108, 89, -1, -1, -1, 93, -1, -1, -1, 97,
|
|
|
|
|
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
|
|
|
|
30, 31, 32, 33, 34, 46, 47, -1, 136, 137,
|
|
|
|
|
-1, -1, -1, -1, -1, 56, 57, 58, 59, 127,
|
|
|
|
|
61, 62, 130, -1, 132, -1, 134, -1, 4, 70,
|
|
|
|
|
71, 72, 73, -1, -1, -1, -1, -1, -1, 80,
|
|
|
|
|
81, 82, 83, 84, 85, -1, -1, -1, -1, 90,
|
|
|
|
|
91, 92, -1, -1, -1, -1, 97, -1, -1, -1,
|
|
|
|
|
36, -1, -1, -1, -1, -1, -1, 108, -1, -1,
|
|
|
|
|
46, 47, -1, -1, -1, -1, -1, -1, 119, -1,
|
|
|
|
|
56, 57, 58, 59, 125, 61, 62, -1, -1, -1,
|
|
|
|
|
-1, 132, -1, -1, 70, 71, 72, 73, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, 80, 81, 82, 83, 84, 85,
|
|
|
|
|
-1, -1, -1, -1, 90, 91, 92, -1, -1, -1,
|
|
|
|
|
-1, 97, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, 108, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, 119, 24, 25, 26, 27, 28, 29,
|
|
|
|
|
30, 31, 32, 33, 34, 15, 132, 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, 18, 19, 20, 21, 22,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
33, 34, 15, 133, 17, 18, 19, 20, 21, 22,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
33, 34, 15, 133, 17, 18, 19, 20, 21, 22,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
33, 34, 15, 133, 17, 18, 19, 20, 21, 22,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
33, 34, 15, 133, 17, 18, 19, 20, 21, 22,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
33, 34, 15, 133, 17, 18, 19, 20, 21, 22,
|
|
|
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
|
|
|
33, 34, 19, 20, 21, 22, 23, 24, 25, 26,
|
|
|
|
|
27, 28, 29, 30, 31, 32, 33, 34, -1, 15,
|
|
|
|
|
133, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
|
|
|
|
26, 27, 28, 29, 30, 31, 32, 33, 34, 15,
|
|
|
|
|
133, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
|
|
|
|
26, 27, 28, 29, 30, 31, 32, 33, 34, 15,
|
|
|
|
|
133, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
|
|
|
|
26, 27, 28, 29, 30, 31, 32, 33, 34, 15,
|
|
|
|
|
133, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
|
|
|
|
26, 27, 28, 29, 30, 31, 32, 33, 34, 15,
|
|
|
|
|
133, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
|
|
|
|
26, 27, 28, 29, 30, 31, 32, 33, 34, 21,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
32, 33, 34, -1, -1, -1, 15, 133, 17, 18,
|
|
|
|
|
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
|
|
|
|
|
29, 30, 31, 32, 33, 34, 15, 133, 17, 18,
|
|
|
|
|
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
|
|
|
|
|
29, 30, 31, 32, 33, 34, -1, 133, -1, -1,
|
|
|
|
|
4, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, 133, -1, -1,
|
|
|
|
|
-1, -1, 4, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, 38, -1, -1, 133, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, 36, -1, 38, 61, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, 133, -1, -1, -1, -1, 61,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
94, -1, -1, -1, 133, 99, 100, 101, 102, 103,
|
|
|
|
|
104, 105, 106, 107, -1, 109, 110, 111, 112, 113,
|
|
|
|
|
-1, -1, 94, -1, 118, 119, 120, 99, 100, 101,
|
|
|
|
|
102, 103, -1, 105, 106, 107, -1, 109, 110, 111,
|
|
|
|
|
112, 113, -1, -1, -1, -1, 118, 119, 120, 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, -1,
|
|
|
|
|
-1, -1, -1, -1, 15, 131, 17, 18, 19, 20,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
31, 32, 33, 34, 15, 131, 17, 18, 19, 20,
|
2004-12-08 12:52:50 +03:00
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
31, 32, 33, 34, 15, 131, 17, 18, 19, 20,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
31, 32, 33, 34, -1, 131, 37, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, 131, 15, 16, 17, 18,
|
|
|
|
|
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
|
|
|
|
|
29, 30, 31, 32, 33, 34, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 15,
|
|
|
|
|
131, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
|
|
|
|
26, 27, 28, 29, 30, 31, 32, 33, 34, -1,
|
|
|
|
|
131, 15, 16, 17, 18, 19, 20, 21, 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. */
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 3 "/usr/share/bison/bison.simple"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
/* 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)
|
2006-02-02 23:58:06 +03:00
|
|
|
|
# include <string.h>
|
2003-11-26 14:33:51 +03:00
|
|
|
|
# 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
|
|
|
|
|
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 316 "/usr/share/bison/bison.simple"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 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:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 175 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_defsym(); }
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 177 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate();
|
|
|
|
|
lang_add_assignment(exp_assop(yyvsp[-1].token,yyvsp[-2].name,yyvsp[0].etree));
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 185 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_mri_script ();
|
|
|
|
|
PUSH_ERROR (_("MRI style script"));
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 9:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 190 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
mri_draw_tree ();
|
|
|
|
|
POP_ERROR ();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 14:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 205 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
einfo(_("%P%F: unrecognised keyword in MRI style script '%s'\n"),yyvsp[0].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 15:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 208 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
config.map_filename = "-";
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 18:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 214 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_public(yyvsp[-2].name, yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 19:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 216 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_public(yyvsp[-2].name, yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 20:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 218 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_public(yyvsp[-1].name, yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 21:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 220 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_format(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 22:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 222 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_output_section(yyvsp[-2].name, yyvsp[0].etree);}
|
|
|
|
|
break;
|
|
|
|
|
case 23:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 224 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_output_section(yyvsp[-1].name, yyvsp[0].etree);}
|
|
|
|
|
break;
|
|
|
|
|
case 24:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 226 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_output_section(yyvsp[-2].name, yyvsp[0].etree);}
|
|
|
|
|
break;
|
|
|
|
|
case 25:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 228 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_align(yyvsp[-2].name,yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 26:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 230 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_align(yyvsp[-2].name,yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 27:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 232 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 28:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 234 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 31:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 238 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_name(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 32:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 240 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_alias(yyvsp[-2].name,yyvsp[0].name,0);}
|
|
|
|
|
break;
|
|
|
|
|
case 33:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 242 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_alias (yyvsp[-2].name, 0, (int) yyvsp[0].bigint.integer); }
|
|
|
|
|
break;
|
|
|
|
|
case 34:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 244 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_base(yyvsp[0].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 35:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 246 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_truncate ((unsigned int) yyvsp[0].bigint.integer); }
|
|
|
|
|
break;
|
|
|
|
|
case 38:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 250 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_script (); ldfile_open_command_file(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 39:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 252 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); }
|
|
|
|
|
break;
|
|
|
|
|
case 40:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 254 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_entry (yyvsp[0].name, FALSE); }
|
|
|
|
|
break;
|
|
|
|
|
case 42:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 259 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_order(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 43:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 260 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_order(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 45:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 266 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_load(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 46:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 267 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_load(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 47:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 272 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_only_load(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 48:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 274 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ mri_only_load(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 49:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 278 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.name = NULL; }
|
|
|
|
|
break;
|
|
|
|
|
case 52:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 285 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlang_add_undef (yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 53:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 287 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlang_add_undef (yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 54:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 289 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlang_add_undef (yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 55:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 293 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_both();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 56:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 297 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 69:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 322 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_target(yyvsp[-1].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 70:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 324 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldfile_add_library_path (yyvsp[-1].name, FALSE); }
|
|
|
|
|
break;
|
|
|
|
|
case 71:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 326 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_output(yyvsp[-1].name, 1); }
|
|
|
|
|
break;
|
|
|
|
|
case 72:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 328 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_output_format (yyvsp[-1].name, (char *) NULL,
|
|
|
|
|
(char *) NULL, 1); }
|
|
|
|
|
break;
|
|
|
|
|
case 73:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 331 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_output_format (yyvsp[-5].name, yyvsp[-3].name, yyvsp[-1].name, 1); }
|
|
|
|
|
break;
|
|
|
|
|
case 74:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 333 "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:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 335 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ command_line.force_common_definition = TRUE ; }
|
|
|
|
|
break;
|
|
|
|
|
case 76:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 337 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ command_line.inhibit_common_definition = TRUE ; }
|
|
|
|
|
break;
|
|
|
|
|
case 78:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 340 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_enter_group (); }
|
|
|
|
|
break;
|
|
|
|
|
case 79:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 342 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_leave_group (); }
|
|
|
|
|
break;
|
|
|
|
|
case 80:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 344 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_map(yyvsp[-1].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 81:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 346 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_script (); ldfile_open_command_file(yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 82:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 348 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); }
|
|
|
|
|
break;
|
|
|
|
|
case 83:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 350 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_nocrossref (yyvsp[-1].nocrossref);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 85:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 358 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 86:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 361 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 87:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 364 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 88:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 367 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 89:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 370 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
|
|
|
|
case 90:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 373 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum,
|
|
|
|
|
(char *)NULL); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 91:
|
|
|
|
|
#line 376 "ldgram.y"
|
|
|
|
|
{ yyval.integer = as_needed; as_needed = TRUE; }
|
|
|
|
|
break;
|
|
|
|
|
case 92:
|
|
|
|
|
#line 378 "ldgram.y"
|
|
|
|
|
{ as_needed = yyvsp[-2].integer; }
|
|
|
|
|
break;
|
|
|
|
|
case 93:
|
|
|
|
|
#line 380 "ldgram.y"
|
|
|
|
|
{ yyval.integer = as_needed; as_needed = TRUE; }
|
|
|
|
|
break;
|
|
|
|
|
case 94:
|
|
|
|
|
#line 382 "ldgram.y"
|
|
|
|
|
{ as_needed = yyvsp[-2].integer; }
|
|
|
|
|
break;
|
2003-11-26 14:33:51 +03:00
|
|
|
|
case 95:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 384 "ldgram.y"
|
|
|
|
|
{ yyval.integer = as_needed; as_needed = TRUE; }
|
|
|
|
|
break;
|
|
|
|
|
case 96:
|
|
|
|
|
#line 386 "ldgram.y"
|
|
|
|
|
{ as_needed = yyvsp[-2].integer; }
|
|
|
|
|
break;
|
|
|
|
|
case 101:
|
|
|
|
|
#line 401 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_add_entry (yyvsp[-1].name, FALSE); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 103:
|
|
|
|
|
#line 403 "ldgram.y"
|
2004-12-08 12:52:50 +03:00
|
|
|
|
{ldlex_expression ();}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 104:
|
|
|
|
|
#line 404 "ldgram.y"
|
2004-12-08 12:52:50 +03:00
|
|
|
|
{ ldlex_popstate ();
|
|
|
|
|
lang_add_assignment (exp_assert (yyvsp[-3].etree, yyvsp[-1].name)); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 105:
|
|
|
|
|
#line 412 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.cname = yyvsp[0].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 106:
|
|
|
|
|
#line 416 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.cname = "*";
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 107:
|
|
|
|
|
#line 420 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.cname = "?";
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 108:
|
|
|
|
|
#line 427 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[0].cname;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
yyval.wildcard.sorted = none;
|
2003-11-26 14:33:51 +03:00
|
|
|
|
yyval.wildcard.exclude_name_list = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 109:
|
|
|
|
|
#line 433 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[0].cname;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
yyval.wildcard.sorted = none;
|
2003-11-26 14:33:51 +03:00
|
|
|
|
yyval.wildcard.exclude_name_list = yyvsp[-2].name_list;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 110:
|
|
|
|
|
#line 439 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[-1].cname;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
yyval.wildcard.sorted = by_name;
|
2003-11-26 14:33:51 +03:00
|
|
|
|
yyval.wildcard.exclude_name_list = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 111:
|
|
|
|
|
#line 445 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[-1].cname;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
yyval.wildcard.sorted = by_alignment;
|
|
|
|
|
yyval.wildcard.exclude_name_list = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 112:
|
|
|
|
|
#line 451 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[-2].cname;
|
|
|
|
|
yyval.wildcard.sorted = by_name_alignment;
|
|
|
|
|
yyval.wildcard.exclude_name_list = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 113:
|
|
|
|
|
#line 457 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[-2].cname;
|
|
|
|
|
yyval.wildcard.sorted = by_name;
|
|
|
|
|
yyval.wildcard.exclude_name_list = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 114:
|
|
|
|
|
#line 463 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[-2].cname;
|
|
|
|
|
yyval.wildcard.sorted = by_alignment_name;
|
|
|
|
|
yyval.wildcard.exclude_name_list = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 115:
|
|
|
|
|
#line 469 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[-2].cname;
|
|
|
|
|
yyval.wildcard.sorted = by_alignment;
|
|
|
|
|
yyval.wildcard.exclude_name_list = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 116:
|
|
|
|
|
#line 475 "ldgram.y"
|
|
|
|
|
{
|
|
|
|
|
yyval.wildcard.name = yyvsp[-1].cname;
|
|
|
|
|
yyval.wildcard.sorted = by_name;
|
2003-11-26 14:33:51 +03:00
|
|
|
|
yyval.wildcard.exclude_name_list = yyvsp[-3].name_list;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 117:
|
|
|
|
|
#line 484 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 118:
|
|
|
|
|
#line 493 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 119:
|
|
|
|
|
#line 504 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 120:
|
|
|
|
|
#line 513 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 121:
|
|
|
|
|
#line 524 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
struct wildcard_spec tmp;
|
|
|
|
|
tmp.name = yyvsp[0].name;
|
|
|
|
|
tmp.exclude_name_list = NULL;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
tmp.sorted = none;
|
2003-11-26 14:33:51 +03:00
|
|
|
|
lang_add_wild (&tmp, NULL, ldgram_had_keep);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 122:
|
|
|
|
|
#line 532 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_wild (NULL, yyvsp[-1].wildcard_list, ldgram_had_keep);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 123:
|
|
|
|
|
#line 536 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_wild (&yyvsp[-3].wildcard, yyvsp[-1].wildcard_list, ldgram_had_keep);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 125:
|
|
|
|
|
#line 544 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldgram_had_keep = TRUE; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 126:
|
|
|
|
|
#line 546 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldgram_had_keep = FALSE; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 128:
|
|
|
|
|
#line 552 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_attribute(lang_object_symbols_statement_enum);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 130:
|
|
|
|
|
#line 557 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
lang_add_attribute(lang_constructors_statement_enum);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 131:
|
|
|
|
|
#line 562 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
constructors_sorted = TRUE;
|
|
|
|
|
lang_add_attribute (lang_constructors_statement_enum);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 133:
|
|
|
|
|
#line 568 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_data ((int) yyvsp[-3].integer, yyvsp[-1].etree);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 134:
|
|
|
|
|
#line 573 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_fill (yyvsp[-1].fill);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 139:
|
|
|
|
|
#line 590 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 140:
|
|
|
|
|
#line 592 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 141:
|
|
|
|
|
#line 594 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 142:
|
|
|
|
|
#line 596 "ldgram.y"
|
2004-12-08 12:52:50 +03:00
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 143:
|
|
|
|
|
#line 598 "ldgram.y"
|
2004-12-08 12:52:50 +03:00
|
|
|
|
{ yyval.integer = yyvsp[0].token; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 144:
|
|
|
|
|
#line 603 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 145:
|
|
|
|
|
#line 613 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.fill = yyvsp[0].fill; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 146:
|
|
|
|
|
#line 614 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.fill = (fill_type *) 0; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 147:
|
|
|
|
|
#line 619 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '+'; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 148:
|
|
|
|
|
#line 621 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '-'; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 149:
|
|
|
|
|
#line 623 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '*'; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 150:
|
|
|
|
|
#line 625 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '/'; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 151:
|
|
|
|
|
#line 627 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = LSHIFT; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 152:
|
|
|
|
|
#line 629 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = RSHIFT; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 153:
|
|
|
|
|
#line 631 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '&'; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 154:
|
|
|
|
|
#line 633 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.token = '|'; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 157:
|
|
|
|
|
#line 643 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 158:
|
|
|
|
|
#line 647 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 159:
|
|
|
|
|
#line 655 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_add_assignment (exp_provide (yyvsp[-3].name, yyvsp[-1].etree));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 166:
|
|
|
|
|
#line 677 "ldgram.y"
|
2004-12-08 12:52:50 +03:00
|
|
|
|
{ region = lang_memory_region_lookup (yyvsp[0].name, TRUE); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 167:
|
|
|
|
|
#line 680 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 168:
|
|
|
|
|
#line 685 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 169:
|
|
|
|
|
#line 693 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 170:
|
|
|
|
|
#line 702 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ /* dummy action to avoid bison 1.25 error message */ }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 174:
|
|
|
|
|
#line 713 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_set_flags (region, yyvsp[0].name, 0); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 175:
|
|
|
|
|
#line 715 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_set_flags (region, yyvsp[0].name, 1); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 176:
|
|
|
|
|
#line 720 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_startup(yyvsp[-1].name); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 178:
|
|
|
|
|
#line 726 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldemul_hll((char *)NULL); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 179:
|
|
|
|
|
#line 731 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldemul_hll(yyvsp[0].name); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 180:
|
|
|
|
|
#line 733 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldemul_hll(yyvsp[0].name); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 182:
|
|
|
|
|
#line 741 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldemul_syslib(yyvsp[0].name); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 184:
|
|
|
|
|
#line 747 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_float(TRUE); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 185:
|
|
|
|
|
#line 749 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ lang_float(FALSE); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 186:
|
|
|
|
|
#line 754 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.nocrossref = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 187:
|
|
|
|
|
#line 758 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 188:
|
|
|
|
|
#line 767 "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 189:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 777 "ldgram.y"
|
|
|
|
|
{ ldlex_expression (); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 190:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 779 "ldgram.y"
|
|
|
|
|
{ ldlex_popstate (); yyval.etree=yyvsp[0].etree;}
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 191:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 784 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_unop ('-', yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 192:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 786 "ldgram.y"
|
|
|
|
|
{ yyval.etree = yyvsp[-1].etree; }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 193:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 788 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_unop ((int) yyvsp[-3].integer,yyvsp[-1].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 194:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 790 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_unop ('!', yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 195:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 792 "ldgram.y"
|
|
|
|
|
{ yyval.etree = yyvsp[0].etree; }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 196:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 794 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_unop ('~', yyvsp[0].etree);}
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 197:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 797 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('*', yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 198:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 799 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('/', yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 199:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 801 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('%', yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 200:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 803 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('+', yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 201:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 805 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('-' , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 202:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 807 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (LSHIFT , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 203:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 809 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (RSHIFT , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 204:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 811 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (EQ , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 205:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 813 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (NE , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 206:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 815 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (LE , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 207:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 817 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (GE , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 208:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 819 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('<' , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 209:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 821 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('>' , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 210:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 823 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('&' , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 211:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 825 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('^' , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 212:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 827 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop ('|' , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 213:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 829 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_trinop ('?' , yyvsp[-4].etree, yyvsp[-2].etree, yyvsp[0].etree); }
|
2004-12-08 12:52:50 +03:00
|
|
|
|
break;
|
|
|
|
|
case 214:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 831 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (ANDAND , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 215:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 833 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (OROR , yyvsp[-2].etree, yyvsp[0].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 216:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 835 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_nameop (DEFINED, yyvsp[-1].name); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 217:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 837 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_bigintop (yyvsp[0].bigint.integer, yyvsp[0].bigint.str); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 218:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 839 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_nameop (SIZEOF_HEADERS,0); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 219:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 842 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_nameop (SIZEOF,yyvsp[-1].name); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 220:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 844 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_nameop (ADDR,yyvsp[-1].name); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 221:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 846 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_nameop (LOADADDR,yyvsp[-1].name); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 222:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 848 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_unop (ABSOLUTE, yyvsp[-1].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 223:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 850 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_unop (ALIGN_K,yyvsp[-1].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 224:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 852 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (ALIGN_K,yyvsp[-3].etree,yyvsp[-1].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 225:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 854 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (DATA_SEGMENT_ALIGN, yyvsp[-3].etree, yyvsp[-1].etree); }
|
2004-12-08 12:52:50 +03:00
|
|
|
|
break;
|
|
|
|
|
case 226:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 856 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (DATA_SEGMENT_RELRO_END, yyvsp[-1].etree, yyvsp[-3].etree); }
|
2004-12-08 12:52:50 +03:00
|
|
|
|
break;
|
|
|
|
|
case 227:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 858 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_unop (DATA_SEGMENT_END, yyvsp[-1].etree); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 228:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 860 "ldgram.y"
|
|
|
|
|
{ /* The operands to the expression node are
|
|
|
|
|
placed in the opposite order from the way
|
|
|
|
|
in which they appear in the script as
|
|
|
|
|
that allows us to reuse more code in
|
|
|
|
|
fold_binary. */
|
|
|
|
|
yyval.etree = exp_binop (SEGMENT_START,
|
|
|
|
|
yyvsp[-1].etree,
|
|
|
|
|
exp_nameop (NAME, yyvsp[-3].name)); }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2004-12-08 12:52:50 +03:00
|
|
|
|
case 229:
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 869 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_unop (ALIGN_K,yyvsp[-1].etree); }
|
|
|
|
|
break;
|
|
|
|
|
case 230:
|
|
|
|
|
#line 871 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_nameop (NAME,yyvsp[0].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 231:
|
|
|
|
|
#line 873 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (MAX_K, yyvsp[-3].etree, yyvsp[-1].etree ); }
|
|
|
|
|
break;
|
|
|
|
|
case 232:
|
|
|
|
|
#line 875 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_binop (MIN_K, yyvsp[-3].etree, yyvsp[-1].etree ); }
|
|
|
|
|
break;
|
|
|
|
|
case 233:
|
|
|
|
|
#line 877 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_assert (yyvsp[-3].etree, yyvsp[-1].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 234:
|
|
|
|
|
#line 879 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_nameop (ORIGIN, yyvsp[-1].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 235:
|
|
|
|
|
#line 881 "ldgram.y"
|
|
|
|
|
{ yyval.etree = exp_nameop (LENGTH, yyvsp[-1].name); }
|
|
|
|
|
break;
|
|
|
|
|
case 236:
|
|
|
|
|
#line 886 "ldgram.y"
|
|
|
|
|
{ yyval.name = yyvsp[0].name; }
|
|
|
|
|
break;
|
|
|
|
|
case 237:
|
|
|
|
|
#line 887 "ldgram.y"
|
|
|
|
|
{ yyval.name = 0; }
|
|
|
|
|
break;
|
|
|
|
|
case 238:
|
|
|
|
|
#line 891 "ldgram.y"
|
|
|
|
|
{ yyval.etree = yyvsp[-1].etree; }
|
|
|
|
|
break;
|
|
|
|
|
case 239:
|
|
|
|
|
#line 892 "ldgram.y"
|
|
|
|
|
{ yyval.etree = 0; }
|
|
|
|
|
break;
|
|
|
|
|
case 240:
|
|
|
|
|
#line 896 "ldgram.y"
|
|
|
|
|
{ yyval.etree = yyvsp[-1].etree; }
|
|
|
|
|
break;
|
|
|
|
|
case 241:
|
|
|
|
|
#line 897 "ldgram.y"
|
|
|
|
|
{ yyval.etree = 0; }
|
|
|
|
|
break;
|
|
|
|
|
case 242:
|
|
|
|
|
#line 901 "ldgram.y"
|
|
|
|
|
{ yyval.token = ONLY_IF_RO; }
|
|
|
|
|
break;
|
|
|
|
|
case 243:
|
|
|
|
|
#line 902 "ldgram.y"
|
|
|
|
|
{ yyval.token = ONLY_IF_RW; }
|
|
|
|
|
break;
|
|
|
|
|
case 244:
|
|
|
|
|
#line 903 "ldgram.y"
|
|
|
|
|
{ yyval.token = 0; }
|
|
|
|
|
break;
|
|
|
|
|
case 245:
|
|
|
|
|
#line 906 "ldgram.y"
|
|
|
|
|
{ ldlex_expression(); }
|
|
|
|
|
break;
|
|
|
|
|
case 246:
|
|
|
|
|
#line 909 "ldgram.y"
|
|
|
|
|
{ ldlex_popstate (); ldlex_script (); }
|
|
|
|
|
break;
|
|
|
|
|
case 247:
|
|
|
|
|
#line 912 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
2006-02-02 23:58:06 +03:00
|
|
|
|
lang_enter_output_section_statement(yyvsp[-7].name, yyvsp[-5].etree,
|
2003-11-26 14:33:51 +03:00
|
|
|
|
sectype,
|
2006-02-02 23:58:06 +03:00
|
|
|
|
0, yyvsp[-3].etree, yyvsp[-4].etree, yyvsp[-1].token);
|
2003-11-26 14:33:51 +03:00
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 248:
|
|
|
|
|
#line 918 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); ldlex_expression (); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 249:
|
|
|
|
|
#line 920 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 250:
|
|
|
|
|
#line 925 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 251:
|
|
|
|
|
#line 927 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_expression (); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 252:
|
|
|
|
|
#line 929 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); ldlex_script (); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 253:
|
|
|
|
|
#line 931 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 254:
|
|
|
|
|
#line 936 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); ldlex_expression (); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 255:
|
|
|
|
|
#line 938 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 257:
|
|
|
|
|
#line 948 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_expression (); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 258:
|
|
|
|
|
#line 950 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
lang_add_assignment (exp_assop ('=', ".", yyvsp[0].etree));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 260:
|
|
|
|
|
#line 958 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = noload_section; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 261:
|
|
|
|
|
#line 959 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = dsect_section; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 262:
|
|
|
|
|
#line 960 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = copy_section; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 263:
|
|
|
|
|
#line 961 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = info_section; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 264:
|
|
|
|
|
#line 962 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = overlay_section; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 266:
|
|
|
|
|
#line 967 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = normal_section; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 267:
|
|
|
|
|
#line 968 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ sectype = normal_section; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 268:
|
|
|
|
|
#line 972 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-2].etree; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 269:
|
|
|
|
|
#line 973 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = (etree_type *)NULL; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 270:
|
|
|
|
|
#line 978 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-3].etree; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 271:
|
|
|
|
|
#line 980 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-7].etree; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 272:
|
|
|
|
|
#line 984 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = yyvsp[-1].etree; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 273:
|
|
|
|
|
#line 985 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.etree = (etree_type *) NULL; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 274:
|
|
|
|
|
#line 990 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = 0; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 275:
|
|
|
|
|
#line 992 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.integer = 1; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 276:
|
|
|
|
|
#line 997 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ yyval.name = yyvsp[0].name; }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 277:
|
|
|
|
|
#line 998 "ldgram.y"
|
2004-12-08 12:52:50 +03:00
|
|
|
|
{ yyval.name = DEFAULT_MEMORY_REGION; }
|
2003-11-26 14:33:51 +03:00
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 278:
|
|
|
|
|
#line 1003 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.section_phdr = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 279:
|
|
|
|
|
#line 1007 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 281:
|
|
|
|
|
#line 1023 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_script ();
|
|
|
|
|
lang_enter_overlay_section (yyvsp[0].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 282:
|
|
|
|
|
#line 1028 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); ldlex_expression (); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 283:
|
|
|
|
|
#line 1030 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
lang_leave_overlay_section (yyvsp[0].fill, yyvsp[-1].section_phdr);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 288:
|
|
|
|
|
#line 1047 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_expression (); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 289:
|
|
|
|
|
#line 1048 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{ ldlex_popstate (); }
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 290:
|
|
|
|
|
#line 1050 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 291:
|
|
|
|
|
#line 1058 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 292:
|
|
|
|
|
#line 1102 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
memset (&yyval.phdr, 0, sizeof (struct phdr_info));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 293:
|
|
|
|
|
#line 1106 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 294:
|
|
|
|
|
#line 1118 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.phdr = yyvsp[0].phdr;
|
|
|
|
|
yyval.phdr.at = yyvsp[-2].etree;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 295:
|
|
|
|
|
#line 1126 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.etree = NULL;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 296:
|
|
|
|
|
#line 1130 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.etree = yyvsp[-1].etree;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 297:
|
|
|
|
|
#line 1138 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_version_file ();
|
|
|
|
|
PUSH_ERROR (_("VERSION script"));
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 298:
|
|
|
|
|
#line 1143 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
POP_ERROR ();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 299:
|
|
|
|
|
#line 1152 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_version_script ();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 300:
|
|
|
|
|
#line 1156 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
ldlex_popstate ();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 303:
|
|
|
|
|
#line 1168 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_register_vers_node (NULL, yyvsp[-2].versnode, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 304:
|
|
|
|
|
#line 1172 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_register_vers_node (yyvsp[-4].name, yyvsp[-2].versnode, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 305:
|
|
|
|
|
#line 1176 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
lang_register_vers_node (yyvsp[-5].name, yyvsp[-3].versnode, yyvsp[-1].deflist);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 306:
|
|
|
|
|
#line 1183 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.deflist = lang_add_vers_depend (NULL, yyvsp[0].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 307:
|
|
|
|
|
#line 1187 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.deflist = lang_add_vers_depend (yyvsp[-1].deflist, yyvsp[0].name);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 308:
|
|
|
|
|
#line 1194 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (NULL, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 309:
|
|
|
|
|
#line 1198 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (yyvsp[-1].versyms, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 310:
|
|
|
|
|
#line 1202 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (yyvsp[-1].versyms, NULL);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 311:
|
|
|
|
|
#line 1206 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (NULL, yyvsp[-1].versyms);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 312:
|
|
|
|
|
#line 1210 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versnode = lang_new_vers_node (yyvsp[-5].versyms, yyvsp[-1].versyms);
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 313:
|
|
|
|
|
#line 1217 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 314:
|
|
|
|
|
#line 1221 "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;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 315:
|
|
|
|
|
#line 1225 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.name = ldgram_vers_current_lang;
|
|
|
|
|
ldgram_vers_current_lang = yyvsp[-1].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 316:
|
|
|
|
|
#line 1230 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versyms = yyvsp[-2].versyms;
|
|
|
|
|
ldgram_vers_current_lang = yyvsp[-3].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 317:
|
|
|
|
|
#line 1235 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.name = ldgram_vers_current_lang;
|
|
|
|
|
ldgram_vers_current_lang = yyvsp[-1].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
2006-02-02 23:58:06 +03:00
|
|
|
|
case 318:
|
|
|
|
|
#line 1240 "ldgram.y"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
{
|
|
|
|
|
yyval.versyms = yyvsp[-2].versyms;
|
|
|
|
|
ldgram_vers_current_lang = yyvsp[-3].name;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 706 "/usr/share/bison/bison.simple"
|
2003-11-26 14:33:51 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
2006-02-02 23:58:06 +03:00
|
|
|
|
#line 1251 "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);
|
|
|
|
|
}
|