/* A Bison parser, made from ./ldgram.y with Bison version GNU Bison version 1.24 */ #define YYBISON 1 /* Identify Bison output. */ #define INT 258 #define NAME 259 #define LNAME 260 #define PLUSEQ 261 #define MINUSEQ 262 #define MULTEQ 263 #define DIVEQ 264 #define LSHIFTEQ 265 #define RSHIFTEQ 266 #define ANDEQ 267 #define OREQ 268 #define OROR 269 #define ANDAND 270 #define EQ 271 #define NE 272 #define LE 273 #define GE 274 #define LSHIFT 275 #define RSHIFT 276 #define UNARY 277 #define END 278 #define ALIGN_K 279 #define BLOCK 280 #define QUAD 281 #define LONG 282 #define SHORT 283 #define BYTE 284 #define SECTIONS 285 #define SIZEOF_HEADERS 286 #define OUTPUT_FORMAT 287 #define FORCE_COMMON_ALLOCATION 288 #define OUTPUT_ARCH 289 #define INCLUDE 290 #define MEMORY 291 #define DEFSYMEND 292 #define NOLOAD 293 #define DSECT 294 #define COPY 295 #define INFO 296 #define OVERLAY 297 #define DEFINED 298 #define TARGET_K 299 #define SEARCH_DIR 300 #define MAP 301 #define ENTRY 302 #define SIZEOF 303 #define NEXT 304 #define ADDR 305 #define STARTUP 306 #define HLL 307 #define SYSLIB 308 #define FLOAT 309 #define NOFLOAT 310 #define ORIGIN 311 #define FILL 312 #define LENGTH 313 #define CREATE_OBJECT_SYMBOLS 314 #define INPUT 315 #define GROUP 316 #define OUTPUT 317 #define CONSTRUCTORS 318 #define ALIGNMOD 319 #define AT 320 #define PROVIDE 321 #define CHIP 322 #define LIST 323 #define SECT 324 #define ABSOLUTE 325 #define LOAD 326 #define NEWLINE 327 #define ENDWORD 328 #define ORDER 329 #define NAMEWORD 330 #define FORMAT 331 #define PUBLIC 332 #define BASE 333 #define ALIAS 334 #define TRUNCATE 335 #define REL 336 #define INPUT_SCRIPT 337 #define INPUT_MRI_SCRIPT 338 #define INPUT_DEFSYM 339 #define CASE 340 #define EXTERN 341 #define START 342 #line 21 "./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 "ldemul.h" #include "ldfile.h" #include "ldmisc.h" #include "ldmain.h" #include "mri.h" #include "ldlex.h" #ifndef YYDEBUG #define YYDEBUG 1 #endif static int typebits; lang_memory_region_type *region; char *current_file; boolean ldgram_want_filename = true; boolean had_script = false; boolean force_make_executable = false; boolean ldgram_in_script = false; boolean ldgram_had_equals = false; #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 66 "./ldgram.y" typedef union { bfd_vma integer; char *name; int token; union etree_union *etree; } YYSTYPE; #ifndef YYLTYPE typedef struct yyltype { int timestamp; int first_line; int first_column; int last_line; int last_column; char *text; } yyltype; #define YYLTYPE yyltype #endif #include #ifndef __cplusplus #ifndef __STDC__ #define const #endif #endif #define YYFINAL 394 #define YYFLAG -32768 #define YYNTBASE 111 #define YYTRANSLATE(x) ((unsigned)(x) <= 342 ? yytranslate[x] : 176) static const char yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 109, 2, 2, 2, 34, 21, 2, 37, 106, 32, 30, 104, 31, 2, 33, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 16, 105, 24, 10, 25, 15, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 107, 2, 108, 20, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 45, 19, 46, 110, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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, 2, 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, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103 }; #if YYDEBUG != 0 static const short yyprhs[] = { 0, 0, 3, 6, 9, 11, 12, 17, 18, 21, 25, 26, 29, 34, 36, 38, 41, 43, 48, 53, 57, 60, 65, 69, 74, 79, 84, 89, 94, 97, 100, 103, 108, 113, 116, 119, 122, 125, 126, 132, 135, 136, 140, 143, 144, 146, 150, 152, 156, 157, 159, 163, 165, 169, 170, 173, 176, 177, 179, 181, 183, 185, 187, 189, 191, 193, 198, 203, 208, 213, 222, 227, 229, 234, 235, 241, 246, 247, 253, 255, 259, 262, 264, 268, 271, 276, 279, 282, 283, 288, 291, 293, 297, 299, 300, 305, 306, 312, 313, 319, 322, 324, 326, 328, 330, 335, 340, 343, 345, 346, 348, 350, 352, 354, 356, 359, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 384, 388, 395, 397, 398, 404, 407, 411, 412, 413, 421, 425, 429, 433, 434, 439, 444, 448, 452, 454, 459, 463, 464, 466, 468, 469, 472, 475, 479, 484, 487, 490, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 557, 563, 567, 571, 576, 578, 580, 585, 590, 595, 600, 605, 607, 612, 613, 614, 615, 616, 617, 618, 633, 635, 637, 639, 641, 643, 647, 648, 652, 655, 658 }; static const short yyrhs[] = { 98, 125, 0, 99, 115, 0, 100, 113, 0, 4, 0, 0, 114, 4, 10, 164, 0, 0, 116, 117, 0, 117, 118, 88, 0, 0, 83, 164, 0, 83, 164, 104, 164, 0, 4, 0, 84, 0, 90, 120, 0, 89, 0, 93, 4, 10, 164, 0, 93, 4, 104, 164, 0, 93, 4, 164, 0, 92, 4, 0, 85, 4, 104, 164, 0, 85, 4, 164, 0, 85, 4, 10, 164, 0, 38, 4, 10, 164, 0, 38, 4, 104, 164, 0, 80, 4, 10, 164, 0, 80, 4, 104, 164, 0, 86, 122, 0, 87, 121, 0, 91, 4, 0, 95, 4, 104, 4, 0, 95, 4, 104, 3, 0, 94, 164, 0, 96, 3, 0, 101, 123, 0, 102, 124, 0, 0, 51, 112, 119, 117, 36, 0, 103, 4, 0, 0, 120, 104, 4, 0, 120, 4, 0, 0, 4, 0, 121, 104, 4, 0, 4, 0, 122, 104, 4, 0, 0, 4, 0, 123, 104, 4, 0, 4, 0, 124, 104, 4, 0, 0, 126, 127, 0, 127, 128, 0, 0, 149, 0, 132, 0, 156, 0, 157, 0, 159, 0, 161, 0, 134, 0, 105, 0, 60, 37, 4, 106, 0, 61, 37, 112, 106, 0, 78, 37, 112, 106, 0, 48, 37, 4, 106, 0, 48, 37, 4, 104, 4, 104, 4, 106, 0, 50, 37, 4, 106, 0, 49, 0, 76, 37, 131, 106, 0, 0, 77, 129, 37, 131, 106, 0, 62, 37, 112, 106, 0, 0, 51, 112, 130, 127, 36, 0, 4, 0, 131, 104, 4, 0, 131, 4, 0, 5, 0, 131, 104, 5, 0, 131, 5, 0, 44, 45, 133, 46, 0, 133, 166, 0, 133, 134, 0, 0, 63, 37, 4, 106, 0, 147, 146, 0, 4, 0, 135, 148, 4, 0, 4, 0, 0, 107, 137, 135, 108, 0, 0, 4, 138, 37, 135, 106, 0, 0, 32, 139, 37, 135, 106, 0, 147, 146, 0, 75, 0, 105, 0, 79, 0, 136, 0, 143, 37, 164, 106, 0, 73, 37, 164, 106, 0, 141, 140, 0, 140, 0, 0, 141, 0, 40, 0, 41, 0, 42, 0, 43, 0, 10, 162, 0, 0, 6, 0, 7, 0, 8, 0, 9, 0, 11, 0, 12, 0, 13, 0, 14, 0, 105, 0, 104, 0, 4, 10, 162, 0, 4, 145, 162, 0, 82, 37, 4, 10, 162, 106, 0, 104, 0, 0, 52, 45, 151, 150, 46, 0, 150, 151, 0, 150, 104, 151, 0, 0, 0, 4, 152, 155, 16, 153, 148, 154, 0, 72, 10, 162, 0, 74, 10, 162, 0, 37, 4, 106, 0, 0, 67, 37, 112, 106, 0, 68, 37, 158, 106, 0, 68, 37, 106, 0, 158, 148, 112, 0, 112, 0, 69, 37, 160, 106, 0, 160, 148, 112, 0, 0, 70, 0, 71, 0, 0, 163, 164, 0, 31, 164, 0, 37, 164, 106, 0, 65, 37, 164, 106, 0, 109, 164, 0, 30, 164, 0, 110, 164, 0, 164, 32, 164, 0, 164, 33, 164, 0, 164, 34, 164, 0, 164, 30, 164, 0, 164, 31, 164, 0, 164, 28, 164, 0, 164, 29, 164, 0, 164, 22, 164, 0, 164, 23, 164, 0, 164, 26, 164, 0, 164, 27, 164, 0, 164, 24, 164, 0, 164, 25, 164, 0, 164, 21, 164, 0, 164, 20, 164, 0, 164, 19, 164, 0, 164, 15, 164, 16, 164, 0, 164, 18, 164, 0, 164, 17, 164, 0, 59, 37, 4, 106, 0, 3, 0, 47, 0, 64, 37, 4, 106, 0, 66, 37, 4, 106, 0, 86, 37, 164, 106, 0, 38, 37, 164, 106, 0, 39, 37, 164, 106, 0, 4, 0, 81, 37, 164, 106, 0, 0, 0, 0, 0, 0, 0, 4, 167, 174, 165, 168, 45, 169, 142, 46, 170, 175, 144, 171, 148, 0, 54, 0, 55, 0, 56, 0, 57, 0, 58, 0, 37, 172, 106, 0, 0, 164, 173, 16, 0, 173, 16, 0, 25, 4, 0, 0 }; #endif #if YYDEBUG != 0 static const short yyrline[] = { 0, 119, 121, 122, 126, 129, 131, 138, 143, 148, 150, 153, 155, 156, 159, 162, 163, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 187, 188, 190, 192, 194, 196, 198, 199, 200, 201, 202, 204, 207, 209, 210, 213, 216, 219, 222, 226, 228, 229, 232, 235, 239, 244, 250, 252, 257, 259, 260, 261, 262, 263, 264, 265, 266, 268, 270, 272, 275, 277, 279, 281, 282, 284, 286, 288, 289, 292, 296, 299, 302, 305, 308, 313, 317, 319, 320, 323, 326, 329, 332, 336, 341, 346, 347, 351, 352, 356, 359, 361, 365, 366, 371, 372, 377, 387, 389, 392, 394, 397, 400, 402, 404, 408, 416, 421, 424, 426, 428, 430, 432, 434, 436, 441, 441, 445, 450, 458, 465, 466, 469, 473, 475, 476, 480, 482, 485, 491, 500, 505, 509, 514, 516, 520, 523, 528, 530, 533, 536, 539, 544, 546, 549, 552, 554, 556, 558, 560, 563, 565, 567, 569, 571, 573, 575, 577, 579, 581, 583, 585, 587, 589, 591, 593, 595, 597, 599, 601, 603, 605, 608, 610, 612, 614, 616, 618, 623, 625, 628, 630, 632, 636, 636, 643, 645, 647, 648, 649, 650, 653, 655, 659, 661, 664, 667 }; 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","QUAD","LONG","SHORT","BYTE","SECTIONS","'{'","'}'","SIZEOF_HEADERS", "OUTPUT_FORMAT","FORCE_COMMON_ALLOCATION","OUTPUT_ARCH","INCLUDE","MEMORY","DEFSYMEND", "NOLOAD","DSECT","COPY","INFO","OVERLAY","DEFINED","TARGET_K","SEARCH_DIR","MAP", "ENTRY","SIZEOF","NEXT","ADDR","STARTUP","HLL","SYSLIB","FLOAT","NOFLOAT","ORIGIN", "FILL","LENGTH","CREATE_OBJECT_SYMBOLS","INPUT","GROUP","OUTPUT","CONSTRUCTORS", "ALIGNMOD","AT","PROVIDE","CHIP","LIST","SECT","ABSOLUTE","LOAD","NEWLINE","ENDWORD", "ORDER","NAMEWORD","FORMAT","PUBLIC","BASE","ALIAS","TRUNCATE","REL","INPUT_SCRIPT", "INPUT_MRI_SCRIPT","INPUT_DEFSYM","CASE","EXTERN","START","','","';'","')'", "'['","']'","'!'","'~'","file","filename","defsym_expr","@1","mri_script_file", "@2","mri_script_lines","mri_script_command","@3","ordernamelist","mri_load_name_list", "mri_abs_name_list","casesymlist","extern_name_list","script_file","@4","ifile_list", "ifile_p1","@5","@6","input_list","sections","sec_or_group_p1","statement_anywhere", "file_NAME_list","input_section_spec","@7","@8","@9","statement","statement_list", "statement_list_opt","length","fill_opt","assign_op","end","assignment","opt_comma", "memory","memory_spec_list","memory_spec","@10","origin_spec","length_spec", "attributes_opt","startup","high_level_library","high_level_library_NAME_list", "low_level_library","low_level_library_NAME_list","floating_point_support","mustbe_exp", "@11","exp","opt_at","section","@12","@13","@14","@15","@16","type","atype", "opt_exp_with_type","memspec_opt","" }; #endif static const short yyr1[] = { 0, 111, 111, 111, 112, 114, 113, 116, 115, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 119, 118, 118, 118, 120, 120, 120, 121, 121, 122, 122, 123, 123, 123, 124, 124, 126, 125, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 129, 128, 128, 130, 128, 131, 131, 131, 131, 131, 131, 132, 133, 133, 133, 134, 134, 135, 135, 136, 137, 136, 138, 136, 139, 136, 140, 140, 140, 140, 140, 140, 140, 141, 141, 142, 142, 143, 143, 143, 143, 144, 144, 145, 145, 145, 145, 145, 145, 145, 145, 146, 146, 147, 147, 147, 148, 148, 149, 150, 150, 150, 152, 151, 153, 154, 155, 155, 156, 157, 157, 158, 158, 159, 160, 160, 161, 161, 163, 162, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 164, 165, 165, 167, 168, 169, 170, 171, 166, 172, 172, 172, 172, 172, 173, 173, 174, 174, 175, 175 }; static const short yyr2[] = { 0, 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, 3, 0, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, 8, 4, 1, 4, 0, 5, 4, 0, 5, 1, 3, 2, 1, 3, 2, 4, 2, 2, 0, 4, 2, 1, 3, 1, 0, 4, 0, 5, 0, 5, 2, 1, 1, 1, 1, 4, 4, 2, 1, 0, 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, 3, 0, 4, 4, 3, 3, 1, 4, 3, 0, 1, 1, 0, 2, 2, 3, 4, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 3, 4, 1, 1, 4, 4, 4, 4, 4, 1, 4, 0, 0, 0, 0, 0, 0, 14, 1, 1, 1, 1, 1, 3, 0, 3, 2, 2, 0 }; static const short yydefact[] = { 0, 53, 7, 5, 1, 56, 2, 10, 3, 0, 54, 8, 0, 0, 0, 0, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 149, 150, 0, 73, 0, 0, 64, 55, 58, 63, 0, 57, 59, 60, 61, 62, 13, 0, 0, 0, 0, 14, 0, 0, 0, 16, 43, 0, 0, 0, 0, 0, 0, 48, 0, 0, 0, 0, 116, 117, 118, 119, 151, 120, 121, 122, 123, 151, 87, 0, 0, 4, 76, 0, 0, 0, 0, 0, 0, 0, 148, 0, 0, 0, 0, 125, 124, 89, 0, 37, 0, 179, 186, 0, 0, 0, 0, 0, 180, 0, 0, 0, 0, 0, 0, 0, 11, 0, 46, 28, 44, 29, 15, 30, 20, 0, 33, 0, 34, 49, 35, 51, 36, 39, 9, 6, 126, 0, 127, 0, 0, 0, 56, 135, 134, 0, 0, 0, 0, 0, 143, 145, 130, 130, 78, 81, 0, 0, 0, 0, 0, 0, 10, 0, 0, 157, 153, 0, 0, 0, 0, 0, 0, 0, 0, 156, 158, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 42, 0, 0, 0, 19, 0, 0, 0, 152, 189, 84, 86, 85, 0, 68, 70, 0, 140, 0, 65, 66, 75, 88, 141, 129, 142, 0, 146, 0, 80, 83, 0, 72, 0, 67, 151, 24, 25, 40, 26, 27, 154, 0, 0, 0, 0, 0, 0, 0, 0, 177, 176, 174, 173, 172, 166, 167, 170, 171, 168, 169, 164, 165, 162, 163, 159, 160, 161, 12, 23, 21, 47, 45, 41, 17, 18, 32, 31, 50, 52, 201, 0, 77, 0, 0, 131, 0, 132, 144, 147, 79, 82, 74, 0, 38, 184, 185, 178, 181, 155, 182, 183, 0, 0, 201, 0, 188, 0, 0, 0, 133, 128, 175, 195, 196, 197, 198, 199, 0, 0, 0, 203, 0, 190, 0, 139, 0, 130, 200, 202, 0, 0, 69, 151, 0, 0, 191, 137, 0, 136, 187, 108, 151, 92, 97, 110, 111, 112, 113, 0, 100, 102, 101, 93, 103, 107, 109, 0, 0, 0, 138, 0, 0, 0, 0, 106, 192, 0, 99, 0, 0, 0, 90, 130, 205, 0, 130, 130, 105, 94, 0, 0, 115, 104, 96, 98, 91, 204, 151, 193, 114, 130, 194, 0, 0, 0 }; static const short yydefgoto[] = { 392, 79, 8, 9, 6, 7, 11, 63, 159, 119, 118, 116, 127, 129, 4, 5, 10, 34, 89, 139, 153, 35, 136, 36, 372, 353, 363, 360, 361, 354, 355, 356, 357, 388, 74, 94, 37, 379, 38, 217, 141, 216, 326, 338, 283, 39, 40, 149, 41, 150, 42, 133, 134, 164, 322, 211, 279, 330, 340, 373, 390, 317, 304, 305, 381 }; static const short yypact[] = { -37, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 29, 341, 377, 30, 579, 21, 9,-32768, 48, 86, 56, 67, 69, 83, 116, 119, 120, 121,-32768,-32768, 123,-32768, 125, 128,-32768,-32768,-32768,-32768, -91,-32768,-32768,-32768, -32768,-32768,-32768, 155, 86, 164, 174,-32768, 165, 166, 167,-32768,-32768, 168, 170, 171, 174, 172, 177, 178, 179, 181, 93, 174,-32768,-32768,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768, 183, 184,-32768,-32768, 185, 188, 86, 86, 191, 86, 3,-32768, 47, 159, 86, 199,-32768,-32768,-32768, -1,-32768, 12,-32768,-32768, 174, 174, 174, 169, 186,-32768, 197, 198, 204, 205, 207, 174, 174, 670, 163,-32768, 104,-32768, 105, 8,-32768, -32768, 227, 758, 132,-32768,-32768, 141,-32768, 143,-32768, -32768, 758,-32768, 174,-32768, 14, -83, 114,-32768,-32768, -32768, 142, 144, 146, 147, 149,-32768,-32768, -28, -18, -32768,-32768, 1, 47, 150, 241, 174, 174,-32768, 174, 174,-32768,-32768, 490, 174, 174, 259, 267, 174, 271, 174,-32768,-32768, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 758, 272, 273,-32768, 274, 174, 174, 758, 122, 275, 276, 758, 579,-32768,-32768, -32768, 277,-32768,-32768, 302, 248, 4,-32768,-32768,-32768, -32768,-32768,-32768,-32768, 86,-32768, 86,-32768,-32768, 145, -32768, 11,-32768,-32768, 758, 758, 401, 758, 758,-32768, 510, 530, 192, 193, 550, 194, 580, 732, 710, 774, 789, 803, 816, 827, 827, 40, 40, 40, 40, 5, 5, 60, 60,-32768,-32768,-32768, 758, 758, 758,-32768, -32768,-32768, 758, 758,-32768,-32768,-32768,-32768, 258, 190, -32768, 283, 285,-32768, 185,-32768,-32768,-32768,-32768,-32768, -32768, 196,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 174, 160, 690, 287, 209, 300, 201, 236,-32768,-32768, 758,-32768,-32768,-32768,-32768,-32768, 203, 26, 294,-32768, 279,-32768, 206,-32768, 301, 214,-32768,-32768, 174, 280, -32768,-32768, 246, 600,-32768,-32768, 311,-32768,-32768, 16, -32768, 18,-32768,-32768,-32768,-32768,-32768, 289,-32768,-32768, -32768,-32768,-32768,-32768, 16, 281, 291, -91,-32768, 292, 293, 174, 328,-32768,-32768, 174,-32768, 328, 328, 620, -32768, -61, 308, 640, -7, -4,-32768,-32768, 330, 331, 329,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 214, -32768, 340, 342,-32768 }; static const short yypgoto[] = {-32768, -41,-32768,-32768,-32768,-32768, 182,-32768,-32768,-32768,-32768, -32768,-32768,-32768,-32768,-32768, 208,-32768,-32768,-32768, 189, -32768,-32768, 212, -217,-32768,-32768,-32768,-32768, -6,-32768, -32768,-32768,-32768,-32768, -3, -321, -147,-32768,-32768, -206, -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -73,-32768, -47,-32768,-32768,-32768,-32768,-32768,-32768,-32768, -32768, 53,-32768,-32768 }; #define YYLAST 861 static const short yytable[] = { 113, 135, 225, 227, 96, 228, 229, 78, 140, 157, 123, 286, 199, 92, 93, 228, 229, 132, 208, 358, 342, 212, 160, 213, 65, 66, 67, 68, 69, 70, 71, 72, 73, 12, 358, 188, 189, 190, 191, 192, 64, 143, 144, 223, 146, 148, 76, 378, 343, 155, 284, 151, 152, 162, 163, -95, 344, 345, 346, 347, 209, 1, 2, 3, 172, 173, 75, 196, 186, 187, 188, 189, 190, 191, 192, 203, 223, 23, 224, 309, 312, 313, 314, 315, 316, 77, 223, 207, 226, 348, 78, 349, 190, 191, 192, 350, 32, 223, 32, 383, 223, 80, 384, 158, 81, 230, 82, 231, 285, 147, 235, 236, 200, 238, 239, 230, 161, 291, 241, 242, 83, 351, 245, 352, 247, 275, 276, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 289, 290, 375, 376, 84, 273, 274, 85, 86, 87, 95, 88, 292, 90, 98, 99, 91, 98, 99, 97, 114, 115, 117, 120, 194, 121, 122, 124, 98, 99, 333, 125, 131, 126, 128, 287, 130, 288, 137, 138, 140, 100, 101, 142, 100, 101, 145, 154, 102, 103, 104, 102, 103, 104, 156, 100, 101, 165, 105, 197, 198, 105, 102, 103, 104, 312, 313, 314, 315, 316, 106, 214, 105, 106, 166, 107, 108, 109, 107, 108, 109, 98, 99, 303, 106, 167, 168, 204, 201, 107, 108, 109, 169, 170, 391, 171, 205, 110, 206, 218, 110, 219, 234, 220, 221, 311, 222, 233, 100, 101, 336, 110, 98, 99, 243, 102, 103, 104, 195, 359, 111, 112, 244, 111, 112, 105, 246, 270, 271, 272, 277, 278, 280, 334, 111, 112, 282, 106, 307, 100, 101, 321, 107, 108, 109, 306, 302, 103, 104, 296, 297, 299, 308, 310, 320, 323, 105, 13, 324, 325, 327, 328, 332, 331, 110, 389, 370, 329, 106, 223, 374, 337, 341, 107, 108, 109, 335, 362, 365, 366, 368, 369, 202, 371, 380, 385, 386, 111, 112, 281, 387, 393, 237, 394, 232, 110, 13, 14, 215, 210, 364, 15, 16, 17, 18, 19, 367, 319, 0, 0, 0, 0, 0, 20, 21, 22, 23, 0, 111, 112, 24, 25, 26, 27, 28, 0, 0, 0, 0, 29, 30, 31, 43, 0, 0, 32, 14, 0, 0, 0, 15, 16, 17, 18, 19, 0, 0, 0, 0, 0, 0, 0, 20, 21, 22, 23, 43, 0, 33, 24, 25, 26, 27, 28, 0, 0, 44, 0, 29, 30, 31, 0, 0, 0, 32, 0, 0, 0, 0, 45, 0, 0, 0, 0, 0, 0, 0, 0, 293, 0, 44, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 0, 0, 45, 0, 0, 0, 0, 46, 0, 0, 47, 48, 49, 50, 51, -40, 52, 53, 54, 55, 56, 57, 58, 59, 0, 0, 0, 0, 60, 61, 62, 46, 0, 0, 47, 48, 49, 50, 51, 0, 52, 53, 54, 55, 56, 57, 58, 59, 0, 0, 0, 0, 60, 61, 62, 174, 0, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 174, 0, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 174, 0, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 174, 0, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 65, 66, 67, 68, 69, 70, 71, 72, 73, 0, 174, 240, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 174, 294, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 174, 295, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 174, 298, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 300, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 174, 339, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 0, 377, 318, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 0, 382, 174, 301, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 0, 0, 0, 0, 0, 0, 174, 193, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192 }; static const short yycheck[] = { 47, 74, 149, 150, 45, 4, 5, 4, 4, 10, 57, 217, 4, 104, 105, 4, 5, 64, 4, 340, 4, 104, 10, 106, 6, 7, 8, 9, 10, 11, 12, 13, 14, 4, 355, 30, 31, 32, 33, 34, 10, 82, 83, 104, 85, 86, 37, 108, 32, 90, 46, 4, 5, 100, 101, 37, 40, 41, 42, 43, 46, 98, 99, 100, 111, 112, 45, 114, 28, 29, 30, 31, 32, 33, 34, 122, 104, 63, 106, 285, 54, 55, 56, 57, 58, 37, 104, 134, 106, 73, 4, 75, 32, 33, 34, 79, 82, 104, 82, 106, 104, 45, 106, 104, 37, 104, 37, 106, 104, 106, 157, 158, 104, 160, 161, 104, 104, 106, 165, 166, 37, 105, 169, 107, 171, 3, 4, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 4, 5, 368, 369, 37, 201, 202, 37, 37, 37, 4, 37, 234, 37, 3, 4, 37, 3, 4, 4, 4, 4, 4, 4, 10, 4, 4, 4, 3, 4, 326, 3, 88, 4, 4, 225, 4, 227, 4, 4, 4, 30, 31, 4, 30, 31, 4, 37, 37, 38, 39, 37, 38, 39, 4, 30, 31, 37, 47, 104, 104, 47, 37, 38, 39, 54, 55, 56, 57, 58, 59, 106, 47, 59, 37, 64, 65, 66, 64, 65, 66, 3, 4, 279, 59, 37, 37, 104, 10, 64, 65, 66, 37, 37, 390, 37, 104, 86, 104, 106, 86, 106, 10, 106, 106, 301, 106, 106, 30, 31, 332, 86, 3, 4, 4, 37, 38, 39, 104, 341, 109, 110, 4, 109, 110, 47, 4, 4, 4, 4, 4, 4, 4, 329, 109, 110, 37, 59, 4, 30, 31, 81, 64, 65, 66, 104, 37, 38, 39, 106, 106, 106, 16, 106, 16, 4, 47, 4, 106, 72, 106, 16, 10, 106, 86, 387, 362, 37, 59, 104, 366, 74, 10, 64, 65, 66, 45, 37, 46, 37, 37, 37, 104, 4, 25, 4, 4, 109, 110, 36, 10, 0, 159, 0, 154, 86, 4, 44, 139, 136, 355, 48, 49, 50, 51, 52, 358, 303, -1, -1, -1, -1, -1, 60, 61, 62, 63, -1, 109, 110, 67, 68, 69, 70, 71, -1, -1, -1, -1, 76, 77, 78, 4, -1, -1, 82, 44, -1, -1, -1, 48, 49, 50, 51, 52, -1, -1, -1, -1, -1, -1, -1, 60, 61, 62, 63, 4, -1, 105, 67, 68, 69, 70, 71, -1, -1, 38, -1, 76, 77, 78, -1, -1, -1, 82, -1, -1, -1, -1, 51, -1, -1, -1, -1, -1, -1, -1, -1, 36, -1, 38, -1, -1, -1, -1, -1, -1, 105, -1, -1, -1, -1, -1, 51, -1, -1, -1, -1, 80, -1, -1, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, -1, -1, -1, -1, 101, 102, 103, 80, -1, -1, 83, 84, 85, 86, 87, -1, 89, 90, 91, 92, 93, 94, 95, 96, -1, -1, -1, -1, 101, 102, 103, 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, 6, 7, 8, 9, 10, 11, 12, 13, 14, -1, 15, 106, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 15, 106, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 15, 106, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 15, 106, 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, 15, 106, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 15, 106, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, 106, 37, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, 106, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, 15, 104, 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, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ #line 3 "/usr/unsupported/share/bison.simple" /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990 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., 675 Mass Ave, Cambridge, MA 02139, 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. */ #ifndef alloca #ifdef __GNUC__ #define alloca __builtin_alloca #else /* not GNU C. */ #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) #include #else /* not sparc */ #if defined (MSDOS) && !defined (__TURBOC__) #include #else /* not MSDOS, or __TURBOC__ */ #if defined(_AIX) #include #pragma alloca #else /* not MSDOS, __TURBOC__, or _AIX */ #ifdef __hpux #ifdef __cplusplus extern "C" { void *alloca (unsigned int); }; #else /* not __cplusplus */ void *alloca (); #endif /* not __cplusplus */ #endif /* __hpux */ #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ #endif /* not GNU C. */ #endif /* alloca not defined. */ /* 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. */ /* Note: there must be only one dollar sign in this file. It is replaced by the list of actions, each action as one case of the switch. */ #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY -2 #define YYEOF 0 #define YYACCEPT return(0) #define YYABORT return(1) #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 #ifndef YYPURE #define YYLEX yylex() #endif #ifdef YYPURE #ifdef YYLSP_NEEDED #ifdef YYLEX_PARAM #define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) #else #define YYLEX yylex(&yylval, &yylloc) #endif #else /* not YYLSP_NEEDED */ #ifdef YYLEX_PARAM #define YYLEX yylex(&yylval, YYLEX_PARAM) #else #define YYLEX yylex(&yylval) #endif #endif /* not YYLSP_NEEDED */ #endif /* If nonreentrant, generate the variables here */ #ifndef YYPURE int yychar; /* the lookahead symbol */ YYSTYPE yylval; /* the semantic value of the */ /* lookahead symbol */ #ifdef YYLSP_NEEDED YYLTYPE yylloc; /* location data for the lookahead */ /* symbol */ #endif int yynerrs; /* number of parse errors so far */ #endif /* not YYPURE */ #if YYDEBUG != 0 int yydebug; /* nonzero means print parse trace */ /* Since this is uninitialized, it does not stop multiple parsers from coexisting. */ #endif /* YYINITDEPTH indicates the initial size of the parser's stacks */ #ifndef YYINITDEPTH #define YYINITDEPTH 200 #endif /* YYMAXDEPTH is the maximum size the stacks can grow to (effective only if the built-in stack extension method is used). */ #if YYMAXDEPTH == 0 #undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH #define YYMAXDEPTH 10000 #endif /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ int yyparse (void); #endif #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ #define __yy_memcpy(FROM,TO,COUNT) __builtin_memcpy(TO,FROM,COUNT) #else /* not GNU C or C++ */ #ifndef __cplusplus /* This is the most reliable way to avoid incompatibilities in available built-in functions on various systems. */ static void __yy_memcpy (from, to, count) char *from; char *to; int count; { register char *f = from; register char *t = to; register int i = count; while (i-- > 0) *t++ = *f++; } #else /* __cplusplus */ /* This is the most reliable way to avoid incompatibilities in available built-in functions on various systems. */ static void __yy_memcpy (char *from, char *to, int count) { register char *f = from; register char *t = to; register int i = count; while (i-- > 0) *t++ = *f++; } #endif #endif #line 192 "/usr/unsupported/share/bison.simple" /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. It should actually point to an object. Grammar actions can access the variable by casting it to the proper pointer type. */ #ifdef YYPARSE_PARAM #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; #else #define YYPARSE_PARAM #define YYPARSE_PARAM_DECL #endif int yyparse(YYPARSE_PARAM) YYPARSE_PARAM_DECL { register int yystate; register int yyn; register short *yyssp; register YYSTYPE *yyvsp; int yyerrstatus; /* number of tokens to shift before error messages enabled */ int yychar1 = 0; /* lookahead token as an internal (translated) token number */ short yyssa[YYINITDEPTH]; /* the state stack */ YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ short *yyss = yyssa; /* refer to the stacks thru separate pointers */ YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ #ifdef YYLSP_NEEDED YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ YYLTYPE *yyls = yylsa; YYLTYPE *yylsp; #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else #define YYPOPSTACK (yyvsp--, yyssp--) #endif int yystacksize = YYINITDEPTH; #ifdef YYPURE int yychar; YYSTYPE yylval; int yynerrs; #ifdef YYLSP_NEEDED YYLTYPE yylloc; #endif #endif YYSTYPE yyval; /* the variable used to return */ /* semantic values from the action */ /* routines */ int yylen; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Starting parse\n"); #endif 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 - 1; yyvsp = yyvs; #ifdef YYLSP_NEEDED yylsp = yyls; #endif /* Push a new state, which is found in yystate . */ /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yynewstate: *++yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { /* 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; #ifdef YYLSP_NEEDED YYLTYPE *yyls1 = yyls; #endif /* Get the current used size of the three stacks, in elements. */ int size = yyssp - yyss + 1; #ifdef yyoverflow /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. */ #ifdef YYLSP_NEEDED /* 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, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yyls1, size * sizeof (*yylsp), &yystacksize); #else yyoverflow("parser stack overflow", &yyss1, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yystacksize); #endif yyss = yyss1; yyvs = yyvs1; #ifdef YYLSP_NEEDED yyls = yyls1; #endif #else /* no yyoverflow */ /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) { yyerror("parser stack overflow"); return 2; } yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; yyss = (short *) alloca (yystacksize * sizeof (*yyssp)); __yy_memcpy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp)); yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp)); __yy_memcpy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp)); #ifdef YYLSP_NEEDED yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp)); __yy_memcpy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp)); #endif #endif /* no yyoverflow */ yyssp = yyss + size - 1; yyvsp = yyvs + size - 1; #ifdef YYLSP_NEEDED yylsp = yyls + size - 1; #endif #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Stack size increased to %d\n", yystacksize); #endif if (yyssp >= yyss + yystacksize - 1) YYABORT; } #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Entering state %d\n", yystate); #endif goto 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) { #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Reading a token: "); #endif 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 */ #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Now at end of input.\n"); #endif } else { yychar1 = YYTRANSLATE(yychar); #if YYDEBUG != 0 if (yydebug) { fprintf (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 fprintf (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. */ #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); #endif /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; #ifdef YYLSP_NEEDED *++yylsp = yylloc; #endif /* count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; goto yynewstate; /* Do the default action for the current state. */ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; /* Do a reduction. yyn is the number of a rule to reduce with. */ yyreduce: yylen = yyr2[yyn]; if (yylen > 0) yyval = yyvsp[1-yylen]; /* implement default value of the action */ #if YYDEBUG != 0 if (yydebug) { int i; fprintf (stderr, "Reducing via rule %d (line %d), ", yyn, yyrline[yyn]); /* Print the symbols being reduced, and their result. */ for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) fprintf (stderr, "%s ", yytname[yyrhs[i]]); fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); } #endif switch (yyn) { case 5: #line 130 "./ldgram.y" { ldlex_defsym(); ; break;} case 6: #line 132 "./ldgram.y" { ldlex_popstate(); lang_add_assignment(exp_assop(yyvsp[-1].token,yyvsp[-2].name,yyvsp[0].etree)); ; break;} case 7: #line 139 "./ldgram.y" { ldlex_mri_script(); PUSH_ERROR("MRI style script"); ; break;} case 8: #line 143 "./ldgram.y" { ldlex_popstate(); POP_ERROR(); ; break;} case 13: #line 156 "./ldgram.y" { einfo("%P%F: unrecognised keyword in MRI style script '%s'\n",yyvsp[0].name); ; break;} case 14: #line 159 "./ldgram.y" { config.map_filename = "-"; ; break;} case 17: #line 165 "./ldgram.y" { mri_public(yyvsp[-2].name, yyvsp[0].etree); ; break;} case 18: #line 167 "./ldgram.y" { mri_public(yyvsp[-2].name, yyvsp[0].etree); ; break;} case 19: #line 169 "./ldgram.y" { mri_public(yyvsp[-1].name, yyvsp[0].etree); ; break;} case 20: #line 171 "./ldgram.y" { mri_format(yyvsp[0].name); ; break;} case 21: #line 173 "./ldgram.y" { mri_output_section(yyvsp[-2].name, yyvsp[0].etree);; break;} case 22: #line 175 "./ldgram.y" { mri_output_section(yyvsp[-1].name, yyvsp[0].etree);; break;} case 23: #line 177 "./ldgram.y" { mri_output_section(yyvsp[-2].name, yyvsp[0].etree);; break;} case 24: #line 179 "./ldgram.y" { mri_align(yyvsp[-2].name,yyvsp[0].etree); ; break;} case 25: #line 181 "./ldgram.y" { mri_align(yyvsp[-2].name,yyvsp[0].etree); ; break;} case 26: #line 183 "./ldgram.y" { mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); ; break;} case 27: #line 185 "./ldgram.y" { mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); ; break;} case 30: #line 189 "./ldgram.y" { mri_name(yyvsp[0].name); ; break;} case 31: #line 191 "./ldgram.y" { mri_alias(yyvsp[-2].name,yyvsp[0].name,0);; break;} case 32: #line 193 "./ldgram.y" { mri_alias(yyvsp[-2].name,0,(int) yyvsp[0].integer);; break;} case 33: #line 195 "./ldgram.y" { mri_base(yyvsp[0].etree); ; break;} case 34: #line 197 "./ldgram.y" { mri_truncate((unsigned int) yyvsp[0].integer); ; break;} case 37: #line 201 "./ldgram.y" { ldfile_open_command_file (yyvsp[0].name); ; break;} case 39: #line 203 "./ldgram.y" { lang_add_entry (yyvsp[0].name, false); ; break;} case 41: #line 208 "./ldgram.y" { mri_order(yyvsp[0].name); ; break;} case 42: #line 209 "./ldgram.y" { mri_order(yyvsp[0].name); ; break;} case 44: #line 215 "./ldgram.y" { mri_load(yyvsp[0].name); ; break;} case 45: #line 216 "./ldgram.y" { mri_load(yyvsp[0].name); ; break;} case 46: #line 221 "./ldgram.y" { mri_only_load(yyvsp[0].name); ; break;} case 47: #line 223 "./ldgram.y" { mri_only_load(yyvsp[0].name); ; break;} case 48: #line 227 "./ldgram.y" { yyval.name = NULL; ; break;} case 51: #line 234 "./ldgram.y" { ldlang_add_undef (yyvsp[0].name); ; break;} case 52: #line 236 "./ldgram.y" { ldlang_add_undef (yyvsp[0].name); ; break;} case 53: #line 240 "./ldgram.y" { ldlex_both(); ; break;} case 54: #line 244 "./ldgram.y" { ldlex_popstate(); ; break;} case 65: #line 267 "./ldgram.y" { lang_add_target(yyvsp[-1].name); ; break;} case 66: #line 269 "./ldgram.y" { ldfile_add_library_path (yyvsp[-1].name, false); ; break;} case 67: #line 271 "./ldgram.y" { lang_add_output(yyvsp[-1].name, 1); ; break;} case 68: #line 273 "./ldgram.y" { lang_add_output_format (yyvsp[-1].name, (char *) NULL, (char *) NULL, 1); ; break;} case 69: #line 276 "./ldgram.y" { lang_add_output_format (yyvsp[-5].name, yyvsp[-3].name, yyvsp[-1].name, 1); ; break;} case 70: #line 278 "./ldgram.y" { ldfile_set_output_arch(yyvsp[-1].name); ; break;} case 71: #line 280 "./ldgram.y" { command_line.force_common_definition = true ; ; break;} case 73: #line 283 "./ldgram.y" { lang_enter_group (); ; break;} case 74: #line 285 "./ldgram.y" { lang_leave_group (); ; break;} case 75: #line 287 "./ldgram.y" { lang_add_map(yyvsp[-1].name); ; break;} case 76: #line 289 "./ldgram.y" { ldfile_open_command_file(yyvsp[0].name); ; break;} case 78: #line 294 "./ldgram.y" { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum, (char *)NULL); ; break;} case 79: #line 297 "./ldgram.y" { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum, (char *)NULL); ; break;} case 80: #line 300 "./ldgram.y" { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum, (char *)NULL); ; break;} case 81: #line 303 "./ldgram.y" { lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum, (char *)NULL); ; break;} case 82: #line 306 "./ldgram.y" { lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum, (char *)NULL); ; break;} case 83: #line 309 "./ldgram.y" { lang_add_input_file(yyvsp[0].name,lang_input_file_is_l_enum, (char *)NULL); ; break;} case 88: #line 325 "./ldgram.y" { lang_add_entry (yyvsp[-1].name, false); ; break;} case 90: #line 331 "./ldgram.y" { lang_add_wild(yyvsp[0].name, current_file); ; break;} case 91: #line 333 "./ldgram.y" { lang_add_wild(yyvsp[0].name, current_file); ; break;} case 92: #line 338 "./ldgram.y" { lang_add_wild((char *)NULL, yyvsp[0].name); ; break;} case 93: #line 342 "./ldgram.y" { current_file = (char *)NULL; ; break;} case 95: #line 348 "./ldgram.y" { current_file =yyvsp[0].name; ; break;} case 97: #line 353 "./ldgram.y" { current_file = (char *)NULL; ; break;} case 100: #line 362 "./ldgram.y" { lang_add_attribute(lang_object_symbols_statement_enum); ; break;} case 102: #line 367 "./ldgram.y" { lang_add_attribute(lang_constructors_statement_enum); ; break;} case 104: #line 373 "./ldgram.y" { lang_add_data((int) yyvsp[-3].integer,yyvsp[-1].etree); ; break;} case 105: #line 378 "./ldgram.y" { lang_add_fill (exp_get_value_int(yyvsp[-1].etree, 0, "fill value", lang_first_phase_enum)); ; break;} case 110: #line 399 "./ldgram.y" { yyval.integer = yyvsp[0].token; ; break;} case 111: #line 401 "./ldgram.y" { yyval.integer = yyvsp[0].token; ; break;} case 112: #line 403 "./ldgram.y" { yyval.integer = yyvsp[0].token; ; break;} case 113: #line 405 "./ldgram.y" { yyval.integer = yyvsp[0].token; ; break;} case 114: #line 410 "./ldgram.y" { yyval.integer = exp_get_value_int(yyvsp[0].etree, 0, "fill value", lang_first_phase_enum); ; break;} case 115: #line 416 "./ldgram.y" { yyval.integer = 0; ; break;} case 116: #line 423 "./ldgram.y" { yyval.token = '+'; ; break;} case 117: #line 425 "./ldgram.y" { yyval.token = '-'; ; break;} case 118: #line 427 "./ldgram.y" { yyval.token = '*'; ; break;} case 119: #line 429 "./ldgram.y" { yyval.token = '/'; ; break;} case 120: #line 431 "./ldgram.y" { yyval.token = LSHIFT; ; break;} case 121: #line 433 "./ldgram.y" { yyval.token = RSHIFT; ; break;} case 122: #line 435 "./ldgram.y" { yyval.token = '&'; ; break;} case 123: #line 437 "./ldgram.y" { yyval.token = '|'; ; break;} case 126: #line 447 "./ldgram.y" { lang_add_assignment (exp_assop (yyvsp[-1].token, yyvsp[-2].name, yyvsp[0].etree)); ; break;} case 127: #line 451 "./ldgram.y" { lang_add_assignment (exp_assop ('=', yyvsp[-2].name, exp_binop (yyvsp[-1].token, exp_nameop (NAME, yyvsp[-2].name), yyvsp[0].etree))); ; break;} case 128: #line 459 "./ldgram.y" { lang_add_assignment (exp_provide (yyvsp[-3].name, yyvsp[-1].etree)); ; break;} case 135: #line 481 "./ldgram.y" { region = lang_memory_region_lookup(yyvsp[0].name); ; break;} case 137: #line 487 "./ldgram.y" { region->current = region->origin = exp_get_vma(yyvsp[0].etree, 0L,"origin", lang_first_phase_enum); ; break;} case 138: #line 493 "./ldgram.y" { region->length = exp_get_vma(yyvsp[0].etree, ~((bfd_vma)0), "length", lang_first_phase_enum); ; break;} case 139: #line 502 "./ldgram.y" { lang_set_flags(®ion->flags, yyvsp[-1].name); ; break;} case 141: #line 511 "./ldgram.y" { lang_startup(yyvsp[-1].name); ; break;} case 143: #line 517 "./ldgram.y" { ldemul_hll((char *)NULL); ; break;} case 144: #line 522 "./ldgram.y" { ldemul_hll(yyvsp[0].name); ; break;} case 145: #line 524 "./ldgram.y" { ldemul_hll(yyvsp[0].name); ; break;} case 147: #line 532 "./ldgram.y" { ldemul_syslib(yyvsp[0].name); ; break;} case 149: #line 538 "./ldgram.y" { lang_float(true); ; break;} case 150: #line 540 "./ldgram.y" { lang_float(false); ; break;} case 151: #line 544 "./ldgram.y" { ldlex_expression(); ; break;} case 152: #line 546 "./ldgram.y" { ldlex_popstate(); yyval.etree=yyvsp[0].etree;; break;} case 153: #line 551 "./ldgram.y" { yyval.etree = exp_unop('-', yyvsp[0].etree); ; break;} case 154: #line 553 "./ldgram.y" { yyval.etree = yyvsp[-1].etree; ; break;} case 155: #line 555 "./ldgram.y" { yyval.etree = exp_unop((int) yyvsp[-3].integer,yyvsp[-1].etree); ; break;} case 156: #line 557 "./ldgram.y" { yyval.etree = exp_unop('!', yyvsp[0].etree); ; break;} case 157: #line 559 "./ldgram.y" { yyval.etree = yyvsp[0].etree; ; break;} case 158: #line 561 "./ldgram.y" { yyval.etree = exp_unop('~', yyvsp[0].etree);; break;} case 159: #line 564 "./ldgram.y" { yyval.etree = exp_binop('*', yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 160: #line 566 "./ldgram.y" { yyval.etree = exp_binop('/', yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 161: #line 568 "./ldgram.y" { yyval.etree = exp_binop('%', yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 162: #line 570 "./ldgram.y" { yyval.etree = exp_binop('+', yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 163: #line 572 "./ldgram.y" { yyval.etree = exp_binop('-' , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 164: #line 574 "./ldgram.y" { yyval.etree = exp_binop(LSHIFT , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 165: #line 576 "./ldgram.y" { yyval.etree = exp_binop(RSHIFT , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 166: #line 578 "./ldgram.y" { yyval.etree = exp_binop(EQ , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 167: #line 580 "./ldgram.y" { yyval.etree = exp_binop(NE , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 168: #line 582 "./ldgram.y" { yyval.etree = exp_binop(LE , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 169: #line 584 "./ldgram.y" { yyval.etree = exp_binop(GE , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 170: #line 586 "./ldgram.y" { yyval.etree = exp_binop('<' , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 171: #line 588 "./ldgram.y" { yyval.etree = exp_binop('>' , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 172: #line 590 "./ldgram.y" { yyval.etree = exp_binop('&' , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 173: #line 592 "./ldgram.y" { yyval.etree = exp_binop('^' , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 174: #line 594 "./ldgram.y" { yyval.etree = exp_binop('|' , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 175: #line 596 "./ldgram.y" { yyval.etree = exp_trinop('?' , yyvsp[-4].etree, yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 176: #line 598 "./ldgram.y" { yyval.etree = exp_binop(ANDAND , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 177: #line 600 "./ldgram.y" { yyval.etree = exp_binop(OROR , yyvsp[-2].etree, yyvsp[0].etree); ; break;} case 178: #line 602 "./ldgram.y" { yyval.etree = exp_nameop(DEFINED, yyvsp[-1].name); ; break;} case 179: #line 604 "./ldgram.y" { yyval.etree = exp_intop(yyvsp[0].integer); ; break;} case 180: #line 606 "./ldgram.y" { yyval.etree = exp_nameop(SIZEOF_HEADERS,0); ; break;} case 181: #line 609 "./ldgram.y" { yyval.etree = exp_nameop(SIZEOF,yyvsp[-1].name); ; break;} case 182: #line 611 "./ldgram.y" { yyval.etree = exp_nameop(ADDR,yyvsp[-1].name); ; break;} case 183: #line 613 "./ldgram.y" { yyval.etree = exp_unop(ABSOLUTE, yyvsp[-1].etree); ; break;} case 184: #line 615 "./ldgram.y" { yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); ; break;} case 185: #line 617 "./ldgram.y" { yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); ; break;} case 186: #line 619 "./ldgram.y" { yyval.etree = exp_nameop(NAME,yyvsp[0].name); ; break;} case 187: #line 624 "./ldgram.y" { yyval.etree = yyvsp[-1].etree; ; break;} case 188: #line 625 "./ldgram.y" { yyval.etree = 0; ; break;} case 189: #line 628 "./ldgram.y" { ldlex_expression(); ; break;} case 190: #line 630 "./ldgram.y" { ldlex_popstate(); ; break;} case 191: #line 632 "./ldgram.y" { lang_enter_output_section_statement(yyvsp[-5].name,yyvsp[-3].etree,typebits,0,0,0,yyvsp[-2].etree); ; break;} case 192: #line 636 "./ldgram.y" {ldlex_expression();; break;} case 193: #line 637 "./ldgram.y" { ldlex_popstate(); lang_leave_output_section_statement(yyvsp[0].integer, yyvsp[-1].name); ; break;} case 195: #line 646 "./ldgram.y" { typebits = SEC_NEVER_LOAD; ; break;} case 196: #line 647 "./ldgram.y" { typebits = 0; ; break;} case 197: #line 648 "./ldgram.y" { typebits = 0; ; break;} case 198: #line 649 "./ldgram.y" { typebits = 0; ; break;} case 199: #line 650 "./ldgram.y" { typebits = 0; ; break;} case 201: #line 655 "./ldgram.y" { typebits = 0; ; break;} case 202: #line 660 "./ldgram.y" { yyval.etree = yyvsp[-2].etree; ;; break;} case 203: #line 661 "./ldgram.y" { yyval.etree= (etree_type *)NULL; ; break;} case 204: #line 666 "./ldgram.y" { yyval.name = yyvsp[0].name; ; break;} case 205: #line 667 "./ldgram.y" { yyval.name = "*default*"; ; break;} } /* the action file gets copied in in place of this dollarsign */ #line 487 "/usr/unsupported/share/bison.simple" yyvsp -= yylen; yyssp -= yylen; #ifdef YYLSP_NEEDED yylsp -= yylen; #endif #if YYDEBUG != 0 if (yydebug) { short *ssp1 = yyss - 1; fprintf (stderr, "state stack now"); while (ssp1 != yyssp) fprintf (stderr, " %d", *++ssp1); fprintf (stderr, "\n"); } #endif *++yyvsp = yyval; #ifdef YYLSP_NEEDED yylsp++; if (yylen == 0) { yylsp->first_line = yylloc.first_line; yylsp->first_column = yylloc.first_column; yylsp->last_line = (yylsp-1)->last_line; yylsp->last_column = (yylsp-1)->last_column; yylsp->text = 0; } else { yylsp->last_line = (yylsp+yylen-1)->last_line; yylsp->last_column = (yylsp+yylen-1)->last_column; } #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 */ if (! yyerrstatus) /* If not already recovering from an error, report this error. */ { ++yynerrs; #ifdef YYERROR_VERBOSE yyn = yypact[yystate]; if (yyn > YYFLAG && yyn < YYLAST) { int size = 0; char *msg; int x, count; count = 0; /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ for (x = (yyn < 0 ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) size += strlen(yytname[x]) + 15, count++; msg = (char *) malloc(size + 15); if (msg != 0) { strcpy(msg, "parse error"); if (count < 5) { count = 0; for (x = (yyn < 0 ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) { strcat(msg, count == 0 ? ", expecting `" : " or `"); strcat(msg, yytname[x]); strcat(msg, "'"); count++; } } yyerror(msg); free(msg); } else yyerror ("parse error; also virtual memory exceeded"); } else #endif /* YYERROR_VERBOSE */ yyerror("parse error"); } goto yyerrlab1; yyerrlab1: /* here on error raised explicitly by an action */ 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; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); #endif 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. */ #if 0 /* This is wrong; only states that explicitly want error tokens should shift them. */ yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ if (yyn) goto yydefault; #endif yyerrpop: /* pop the current state because it cannot handle the error token */ if (yyssp == yyss) YYABORT; yyvsp--; yystate = *--yyssp; #ifdef YYLSP_NEEDED yylsp--; #endif #if YYDEBUG != 0 if (yydebug) { short *ssp1 = yyss - 1; fprintf (stderr, "Error: state stack now"); while (ssp1 != yyssp) fprintf (stderr, " %d", *++ssp1); fprintf (stderr, "\n"); } #endif 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; #if YYDEBUG != 0 if (yydebug) fprintf(stderr, "Shifting error token, "); #endif *++yyvsp = yylval; #ifdef YYLSP_NEEDED *++yylsp = yylloc; #endif yystate = yyn; goto yynewstate; } #line 669 "./ldgram.y" void yyerror(arg) const char *arg; { if (ldfile_assumed_script) einfo ("%P:%s: file format not recognized; treating as linker script\n", ldfile_input_filename); if (error_index > 0 && error_index < ERROR_NAME_MAX) einfo ("%P%F:%S: %s in %s\n", arg, error_names[error_index-1]); else einfo ("%P%F:%S: %s\n", arg); }