mirror of
https://github.com/pmret/gcc-papermario.git
synced 2024-11-08 11:53:01 +01:00
3841 lines
144 KiB
C
3841 lines
144 KiB
C
|
||
/* A Bison parser, made from /home/matt/n64/gcc-papermario/c-parse.y
|
||
by Bison version A2.6 (Andrew Consortium)
|
||
*/
|
||
|
||
#define YYBISON 1 /* Identify Bison output. */
|
||
|
||
#define IDENTIFIER 258
|
||
#define TYPENAME 259
|
||
#define SCSPEC 260
|
||
#define TYPESPEC 261
|
||
#define TYPE_QUAL 262
|
||
#define CONSTANT 263
|
||
#define STRING 264
|
||
#define ELLIPSIS 265
|
||
#define SIZEOF 266
|
||
#define ENUM 267
|
||
#define STRUCT 268
|
||
#define UNION 269
|
||
#define IF 270
|
||
#define ELSE 271
|
||
#define WHILE 272
|
||
#define DO 273
|
||
#define FOR 274
|
||
#define SWITCH 275
|
||
#define CASE 276
|
||
#define DEFAULT 277
|
||
#define BREAK 278
|
||
#define CONTINUE 279
|
||
#define RETURN 280
|
||
#define GOTO 281
|
||
#define ASM_KEYWORD 282
|
||
#define TYPEOF 283
|
||
#define ALIGNOF 284
|
||
#define ATTRIBUTE 285
|
||
#define EXTENSION 286
|
||
#define LABEL 287
|
||
#define REALPART 288
|
||
#define IMAGPART 289
|
||
#define ASSIGN 290
|
||
#define OROR 291
|
||
#define ANDAND 292
|
||
#define EQCOMPARE 293
|
||
#define ARITHCOMPARE 294
|
||
#define LSHIFT 295
|
||
#define RSHIFT 296
|
||
#define UNARY 297
|
||
#define PLUSPLUS 298
|
||
#define MINUSMINUS 299
|
||
#define HYPERUNARY 300
|
||
#define POINTSAT 301
|
||
#define INTERFACE 302
|
||
#define IMPLEMENTATION 303
|
||
#define END 304
|
||
#define SELECTOR 305
|
||
#define DEFS 306
|
||
#define ENCODE 307
|
||
#define CLASSNAME 308
|
||
#define PUBLIC 309
|
||
#define PRIVATE 310
|
||
#define PROTECTED 311
|
||
#define PROTOCOL 312
|
||
#define OBJECTNAME 313
|
||
#define CLASS 314
|
||
#define ALIAS 315
|
||
#define OBJC_STRING 316
|
||
|
||
#line 56 "c-parse.y"
|
||
|
||
#include "config.h"
|
||
|
||
#include <stdio.h>
|
||
#include <errno.h>
|
||
#include <setjmp.h>
|
||
|
||
#include "tree.h"
|
||
#include "input.h"
|
||
#include "c-lex.h"
|
||
#include "c-tree.h"
|
||
#include "flags.h"
|
||
|
||
#ifdef MULTIBYTE_CHARS
|
||
#include <stdlib.h>
|
||
#include <locale.h>
|
||
#endif
|
||
|
||
|
||
/* Since parsers are distinct for each language, put the language string
|
||
definition here. */
|
||
char *language_string = "GNU C";
|
||
|
||
#ifndef errno
|
||
extern int errno;
|
||
#endif
|
||
|
||
void yyerror ();
|
||
|
||
/* Like YYERROR but do call yyerror. */
|
||
#define YYERROR1 { yyerror ("syntax error"); YYERROR; }
|
||
|
||
/* Cause the `yydebug' variable to be defined. */
|
||
#define YYDEBUG 1
|
||
|
||
#line 94 "c-parse.y"
|
||
typedef union {long itype; tree ttype; enum tree_code code;
|
||
char *filename; int lineno; int ends_in_label; } YYSTYPE;
|
||
#line 210 "c-parse.y"
|
||
|
||
/* Number of statements (loosely speaking) and compound statements
|
||
seen so far. */
|
||
static int stmt_count;
|
||
static int compstmt_count;
|
||
|
||
/* Input file and line number of the end of the body of last simple_if;
|
||
used by the stmt-rule immediately after simple_if returns. */
|
||
static char *if_stmt_file;
|
||
static int if_stmt_line;
|
||
|
||
/* List of types and structure classes of the current declaration. */
|
||
static tree current_declspecs = NULL_TREE;
|
||
static tree prefix_attributes = NULL_TREE;
|
||
|
||
/* Stack of saved values of current_declspecs and prefix_attributes. */
|
||
static tree declspec_stack;
|
||
|
||
/* 1 if we explained undeclared var errors. */
|
||
static int undeclared_variable_notice;
|
||
|
||
|
||
/* Tell yyparse how to print a token's value, if yydebug is set. */
|
||
|
||
#define YYPRINT(FILE,YYCHAR,YYLVAL) yyprint(FILE,YYCHAR,YYLVAL)
|
||
extern void yyprint ();
|
||
#include <stdio.h>
|
||
|
||
#ifndef __cplusplus
|
||
#ifndef __STDC__
|
||
#define const
|
||
#endif
|
||
#endif
|
||
|
||
|
||
|
||
#define YYFINAL 684
|
||
#define YYFLAG -32768
|
||
#define YYNTBASE 84
|
||
|
||
#define YYTRANSLATE(x) ((unsigned)(x) <= 316 ? yytranslate[x] : 239)
|
||
|
||
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, 80, 2, 2, 2, 52, 43, 2, 59,
|
||
76, 50, 48, 81, 49, 58, 51, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 38, 77, 2,
|
||
36, 2, 37, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
60, 2, 83, 42, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 82, 41, 78, 79, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||
2, 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, 10, 11, 12, 13, 14, 15,
|
||
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
|
||
26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
|
||
39, 40, 44, 45, 46, 47, 53, 54, 55, 56,
|
||
57, 61, 62, 63, 64, 65, 66, 67, 68, 69,
|
||
70, 71, 72, 73, 74, 75
|
||
};
|
||
|
||
#if YYDEBUG != 0
|
||
static const short yyprhs[] = { 0,
|
||
0, 1, 3, 4, 7, 8, 12, 14, 16, 22,
|
||
25, 29, 34, 39, 42, 45, 48, 51, 53, 54,
|
||
55, 63, 68, 69, 70, 78, 83, 84, 85, 92,
|
||
96, 98, 100, 102, 104, 106, 108, 110, 112, 114,
|
||
116, 117, 119, 121, 125, 127, 130, 133, 136, 139,
|
||
142, 147, 150, 155, 158, 161, 163, 165, 167, 172,
|
||
173, 181, 183, 187, 191, 195, 199, 203, 207, 211,
|
||
215, 219, 223, 227, 231, 232, 237, 238, 243, 244,
|
||
245, 253, 254, 260, 264, 268, 270, 272, 274, 278,
|
||
282, 283, 288, 293, 298, 302, 306, 309, 312, 314,
|
||
317, 318, 320, 323, 327, 329, 331, 334, 337, 342,
|
||
347, 350, 353, 357, 359, 361, 364, 367, 368, 369,
|
||
374, 379, 383, 387, 390, 393, 396, 399, 403, 404,
|
||
407, 410, 413, 416, 420, 421, 424, 427, 429, 431,
|
||
434, 437, 439, 441, 444, 447, 450, 454, 455, 458,
|
||
460, 462, 464, 469, 474, 476, 478, 480, 482, 486,
|
||
488, 492, 493, 498, 499, 506, 510, 511, 518, 522,
|
||
523, 525, 527, 530, 537, 539, 543, 544, 546, 551,
|
||
558, 563, 565, 567, 569, 571, 573, 574, 579, 581,
|
||
582, 585, 587, 591, 593, 594, 599, 601, 602, 611,
|
||
612, 619, 620, 626, 627, 632, 633, 639, 640, 641,
|
||
647, 648, 649, 655, 657, 659, 663, 667, 672, 676,
|
||
680, 684, 686, 690, 695, 699, 703, 707, 709, 713,
|
||
717, 721, 726, 730, 734, 736, 737, 745, 751, 754,
|
||
755, 763, 769, 772, 773, 782, 783, 791, 794, 795,
|
||
797, 798, 800, 802, 805, 806, 810, 813, 817, 822,
|
||
826, 828, 830, 833, 835, 839, 844, 851, 857, 859,
|
||
863, 865, 867, 871, 874, 877, 878, 880, 882, 885,
|
||
886, 889, 893, 897, 900, 904, 909, 913, 916, 920,
|
||
923, 925, 927, 930, 933, 934, 936, 939, 940, 941,
|
||
943, 945, 948, 952, 954, 957, 959, 962, 969, 975,
|
||
981, 984, 987, 992, 993, 998, 999, 1000, 1004, 1009,
|
||
1013, 1015, 1017, 1019, 1021, 1024, 1025, 1030, 1032, 1036,
|
||
1037, 1038, 1046, 1052, 1055, 1056, 1057, 1058, 1071, 1072,
|
||
1079, 1082, 1085, 1088, 1092, 1099, 1108, 1119, 1132, 1136,
|
||
1141, 1143, 1145, 1146, 1153, 1157, 1163, 1166, 1169, 1170,
|
||
1172, 1173, 1175, 1176, 1178, 1180, 1184, 1189, 1191, 1195,
|
||
1196, 1199, 1202, 1203, 1208, 1211, 1212, 1214, 1216, 1220,
|
||
1222, 1226, 1231, 1236, 1241, 1246, 1251, 1252, 1255, 1257,
|
||
1260, 1262, 1266, 1268, 1272
|
||
};
|
||
|
||
static const short yyrhs[] = { -1,
|
||
85, 0, 0, 86, 88, 0, 0, 85, 87, 88,
|
||
0, 90, 0, 89, 0, 27, 59, 99, 76, 77,
|
||
0, 238, 88, 0, 122, 136, 77, 0, 129, 122,
|
||
136, 77, 0, 125, 122, 135, 77, 0, 129, 77,
|
||
0, 125, 77, 0, 1, 77, 0, 1, 78, 0,
|
||
77, 0, 0, 0, 125, 122, 165, 91, 116, 92,
|
||
196, 0, 125, 122, 165, 1, 0, 0, 0, 129,
|
||
122, 168, 93, 116, 94, 196, 0, 129, 122, 168,
|
||
1, 0, 0, 0, 122, 168, 95, 116, 96, 196,
|
||
0, 122, 168, 1, 0, 3, 0, 4, 0, 43,
|
||
0, 49, 0, 48, 0, 54, 0, 55, 0, 79,
|
||
0, 80, 0, 101, 0, 0, 101, 0, 107, 0,
|
||
101, 81, 107, 0, 113, 0, 50, 105, 0, 238,
|
||
105, 0, 98, 105, 0, 40, 97, 0, 103, 102,
|
||
0, 103, 59, 183, 76, 0, 104, 102, 0, 104,
|
||
59, 183, 76, 0, 33, 105, 0, 34, 105, 0,
|
||
11, 0, 29, 0, 102, 0, 59, 183, 76, 105,
|
||
0, 0, 59, 183, 76, 82, 106, 150, 78, 0,
|
||
105, 0, 107, 48, 107, 0, 107, 49, 107, 0,
|
||
107, 50, 107, 0, 107, 51, 107, 0, 107, 52,
|
||
107, 0, 107, 46, 107, 0, 107, 47, 107, 0,
|
||
107, 45, 107, 0, 107, 44, 107, 0, 107, 43,
|
||
107, 0, 107, 41, 107, 0, 107, 42, 107, 0,
|
||
0, 107, 40, 108, 107, 0, 0, 107, 39, 109,
|
||
107, 0, 0, 0, 107, 37, 110, 99, 38, 111,
|
||
107, 0, 0, 107, 37, 112, 38, 107, 0, 107,
|
||
36, 107, 0, 107, 35, 107, 0, 3, 0, 8,
|
||
0, 115, 0, 59, 99, 76, 0, 59, 1, 76,
|
||
0, 0, 59, 114, 198, 76, 0, 113, 59, 100,
|
||
76, 0, 113, 60, 99, 83, 0, 113, 58, 97,
|
||
0, 113, 57, 97, 0, 113, 54, 0, 113, 55,
|
||
0, 9, 0, 115, 9, 0, 0, 118, 0, 118,
|
||
10, 0, 203, 204, 119, 0, 117, 0, 191, 0,
|
||
118, 117, 0, 117, 191, 0, 127, 122, 135, 77,
|
||
0, 130, 122, 136, 77, 0, 127, 77, 0, 130,
|
||
77, 0, 203, 204, 124, 0, 120, 0, 191, 0,
|
||
121, 120, 0, 120, 191, 0, 0, 0, 125, 122,
|
||
135, 77, 0, 129, 122, 136, 77, 0, 125, 122,
|
||
159, 0, 129, 122, 162, 0, 125, 77, 0, 129,
|
||
77, 0, 238, 124, 0, 133, 126, 0, 129, 133,
|
||
126, 0, 0, 126, 134, 0, 126, 5, 0, 126,
|
||
143, 0, 133, 128, 0, 130, 133, 128, 0, 0,
|
||
128, 134, 0, 128, 5, 0, 130, 0, 143, 0,
|
||
129, 130, 0, 129, 143, 0, 7, 0, 5, 0,
|
||
130, 7, 0, 130, 5, 0, 133, 132, 0, 185,
|
||
133, 132, 0, 0, 132, 134, 0, 6, 0, 169,
|
||
0, 4, 0, 28, 59, 99, 76, 0, 28, 59,
|
||
183, 76, 0, 6, 0, 7, 0, 169, 0, 138,
|
||
0, 135, 81, 138, 0, 140, 0, 136, 81, 138,
|
||
0, 0, 27, 59, 115, 76, 0, 0, 165, 137,
|
||
142, 36, 139, 148, 0, 165, 137, 142, 0, 0,
|
||
168, 137, 142, 36, 141, 148, 0, 168, 137, 142,
|
||
0, 0, 143, 0, 144, 0, 143, 144, 0, 30,
|
||
59, 59, 145, 76, 76, 0, 146, 0, 145, 81,
|
||
146, 0, 0, 147, 0, 147, 59, 3, 76, 0,
|
||
147, 59, 3, 81, 101, 76, 0, 147, 59, 100,
|
||
76, 0, 97, 0, 5, 0, 6, 0, 7, 0,
|
||
107, 0, 0, 82, 149, 150, 78, 0, 1, 0,
|
||
0, 151, 174, 0, 152, 0, 151, 81, 152, 0,
|
||
107, 0, 0, 82, 153, 150, 78, 0, 1, 0,
|
||
0, 60, 107, 10, 107, 83, 36, 154, 152, 0,
|
||
0, 60, 107, 83, 36, 155, 152, 0, 0, 60,
|
||
107, 83, 156, 152, 0, 0, 97, 38, 157, 152,
|
||
0, 0, 58, 97, 36, 158, 152, 0, 0, 0,
|
||
165, 160, 116, 161, 198, 0, 0, 0, 168, 163,
|
||
116, 164, 198, 0, 166, 0, 168, 0, 59, 166,
|
||
76, 0, 166, 59, 233, 0, 166, 60, 99, 83,
|
||
0, 166, 60, 83, 0, 50, 186, 166, 0, 143,
|
||
123, 166, 0, 4, 0, 167, 59, 233, 0, 167,
|
||
60, 99, 83, 0, 167, 60, 83, 0, 50, 186,
|
||
167, 0, 143, 123, 167, 0, 4, 0, 168, 59,
|
||
233, 0, 59, 168, 76, 0, 50, 186, 168, 0,
|
||
168, 60, 99, 83, 0, 168, 60, 83, 0, 143,
|
||
123, 168, 0, 3, 0, 0, 13, 97, 82, 170,
|
||
176, 78, 142, 0, 13, 82, 176, 78, 142, 0,
|
||
13, 97, 0, 0, 14, 97, 82, 171, 176, 78,
|
||
142, 0, 14, 82, 176, 78, 142, 0, 14, 97,
|
||
0, 0, 12, 97, 82, 172, 181, 175, 78, 142,
|
||
0, 0, 12, 82, 173, 181, 175, 78, 142, 0,
|
||
12, 97, 0, 0, 81, 0, 0, 81, 0, 177,
|
||
0, 177, 178, 0, 0, 177, 178, 77, 0, 177,
|
||
77, 0, 131, 122, 179, 0, 131, 122, 203, 204,
|
||
0, 185, 122, 179, 0, 185, 0, 1, 0, 238,
|
||
178, 0, 180, 0, 179, 81, 180, 0, 203, 204,
|
||
165, 142, 0, 203, 204, 165, 38, 107, 142, 0,
|
||
203, 204, 38, 107, 142, 0, 182, 0, 181, 81,
|
||
182, 0, 1, 0, 97, 0, 97, 36, 107, 0,
|
||
131, 184, 0, 185, 184, 0, 0, 187, 0, 7,
|
||
0, 185, 7, 0, 0, 186, 7, 0, 59, 187,
|
||
76, 0, 50, 186, 187, 0, 50, 186, 0, 187,
|
||
59, 226, 0, 187, 60, 99, 83, 0, 187, 60,
|
||
83, 0, 59, 226, 0, 60, 99, 83, 0, 60,
|
||
83, 0, 189, 0, 206, 0, 189, 206, 0, 189,
|
||
191, 0, 0, 188, 0, 1, 77, 0, 0, 0,
|
||
194, 0, 195, 0, 194, 195, 0, 32, 237, 77,
|
||
0, 198, 0, 1, 198, 0, 82, 0, 197, 78,
|
||
0, 197, 192, 193, 121, 190, 78, 0, 197, 192,
|
||
193, 1, 78, 0, 197, 192, 193, 188, 78, 0,
|
||
200, 205, 0, 200, 1, 0, 15, 59, 99, 76,
|
||
0, 0, 18, 202, 205, 17, 0, 0, 0, 203,
|
||
204, 208, 0, 203, 204, 219, 205, 0, 203, 204,
|
||
207, 0, 208, 0, 219, 0, 198, 0, 216, 0,
|
||
99, 77, 0, 0, 199, 16, 209, 205, 0, 199,
|
||
0, 199, 16, 1, 0, 0, 0, 17, 210, 59,
|
||
99, 76, 211, 205, 0, 201, 59, 99, 76, 77,
|
||
0, 201, 1, 0, 0, 0, 0, 19, 59, 221,
|
||
77, 212, 221, 77, 213, 221, 76, 214, 205, 0,
|
||
0, 20, 59, 99, 76, 215, 205, 0, 23, 77,
|
||
0, 24, 77, 0, 25, 77, 0, 25, 99, 77,
|
||
0, 27, 220, 59, 99, 76, 77, 0, 27, 220,
|
||
59, 99, 38, 222, 76, 77, 0, 27, 220, 59,
|
||
99, 38, 222, 38, 222, 76, 77, 0, 27, 220,
|
||
59, 99, 38, 222, 38, 222, 38, 225, 76, 77,
|
||
0, 26, 97, 77, 0, 26, 50, 99, 77, 0,
|
||
77, 0, 217, 0, 0, 19, 59, 113, 76, 218,
|
||
205, 0, 21, 107, 38, 0, 21, 107, 10, 107,
|
||
38, 0, 22, 38, 0, 97, 38, 0, 0, 7,
|
||
0, 0, 99, 0, 0, 223, 0, 224, 0, 223,
|
||
81, 224, 0, 9, 59, 99, 76, 0, 115, 0,
|
||
225, 81, 115, 0, 0, 227, 228, 0, 230, 76,
|
||
0, 0, 231, 77, 229, 228, 0, 1, 76, 0,
|
||
0, 10, 0, 231, 0, 231, 81, 10, 0, 232,
|
||
0, 231, 81, 232, 0, 125, 122, 167, 142, 0,
|
||
125, 122, 168, 142, 0, 125, 122, 184, 142, 0,
|
||
129, 122, 168, 142, 0, 129, 122, 184, 142, 0,
|
||
0, 234, 235, 0, 228, 0, 236, 76, 0, 3,
|
||
0, 236, 81, 3, 0, 97, 0, 237, 81, 97,
|
||
0, 31, 0
|
||
};
|
||
|
||
#endif
|
||
|
||
#if YYDEBUG != 0
|
||
static const short yyrline[] = { 0,
|
||
239, 244, 258, 260, 260, 261, 263, 265, 266, 274,
|
||
278, 289, 294, 299, 301, 303, 304, 305, 310, 317,
|
||
319, 324, 329, 335, 337, 342, 347, 353, 355, 360,
|
||
367, 369, 372, 374, 376, 378, 380, 382, 384, 388,
|
||
392, 395, 398, 401, 405, 407, 410, 413, 417, 445,
|
||
451, 454, 457, 460, 462, 466, 470, 474, 476, 479,
|
||
483, 510, 512, 514, 516, 518, 520, 522, 524, 526,
|
||
528, 530, 532, 534, 536, 540, 542, 546, 548, 551,
|
||
555, 557, 564, 567, 570, 576, 675, 676, 678, 684,
|
||
686, 700, 723, 725, 727, 731, 737, 739, 744, 746,
|
||
751, 753, 754, 764, 769, 771, 772, 773, 780, 786,
|
||
791, 794, 802, 807, 809, 810, 811, 818, 829, 833,
|
||
839, 844, 849, 854, 856, 858, 867, 870, 874, 876,
|
||
878, 883, 887, 890, 894, 897, 899, 911, 914, 916,
|
||
918, 922, 926, 928, 931, 944, 947, 951, 953, 961,
|
||
962, 963, 967, 969, 975, 976, 977, 980, 982, 985,
|
||
987, 990, 993, 999, 1006, 1008, 1015, 1022, 1025, 1032,
|
||
1035, 1039, 1042, 1046, 1051, 1054, 1058, 1061, 1063, 1065,
|
||
1067, 1074, 1076, 1077, 1078, 1083, 1085, 1090, 1098, 1103,
|
||
1107, 1110, 1112, 1117, 1120, 1122, 1124, 1128, 1131, 1131,
|
||
1134, 1134, 1137, 1137, 1140, 1140, 1143, 1145, 1156, 1164,
|
||
1168, 1179, 1187, 1194, 1196, 1201, 1204, 1209, 1211, 1213,
|
||
1220, 1222, 1230, 1236, 1238, 1240, 1247, 1249, 1255, 1261,
|
||
1263, 1265, 1267, 1274, 1276, 1279, 1284, 1286, 1290, 1292,
|
||
1294, 1296, 1300, 1302, 1305, 1308, 1311, 1314, 1318, 1320,
|
||
1323, 1325, 1329, 1332, 1337, 1339, 1341, 1355, 1362, 1366,
|
||
1372, 1377, 1379, 1384, 1386, 1390, 1394, 1398, 1408, 1410,
|
||
1415, 1420, 1423, 1427, 1430, 1434, 1437, 1440, 1443, 1447,
|
||
1450, 1454, 1458, 1460, 1462, 1464, 1466, 1468, 1470, 1472,
|
||
1482, 1490, 1492, 1494, 1498, 1500, 1503, 1506, 1517, 1519,
|
||
1524, 1526, 1529, 1543, 1546, 1549, 1551, 1553, 1561, 1569,
|
||
1580, 1585, 1588, 1602, 1611, 1615, 1619, 1623, 1629, 1633,
|
||
1638, 1641, 1646, 1649, 1650, 1667, 1672, 1675, 1687, 1689,
|
||
1699, 1709, 1710, 1718, 1721, 1733, 1737, 1754, 1764, 1773,
|
||
1778, 1783, 1788, 1792, 1796, 1807, 1814, 1821, 1828, 1839,
|
||
1845, 1848, 1853, 1876, 1910, 1935, 1966, 1981, 1992, 1996,
|
||
2000, 2003, 2008, 2010, 2013, 2015, 2019, 2024, 2027, 2033,
|
||
2038, 2043, 2045, 2054, 2055, 2061, 2063, 2073, 2075, 2079,
|
||
2082, 2088, 2098, 2107, 2116, 2126, 2140, 2145, 2150, 2152,
|
||
2161, 2164, 2169, 2172, 2176
|
||
};
|
||
#endif
|
||
|
||
|
||
#if YYDEBUG != 0 || defined(YYERROR_VERBOSE)
|
||
|
||
static const char * const yytname[] = { "$","error","$undefined.","IDENTIFIER",
|
||
"TYPENAME","SCSPEC","TYPESPEC","TYPE_QUAL","CONSTANT","STRING","ELLIPSIS","SIZEOF",
|
||
"ENUM","STRUCT","UNION","IF","ELSE","WHILE","DO","FOR","SWITCH","CASE","DEFAULT",
|
||
"BREAK","CONTINUE","RETURN","GOTO","ASM_KEYWORD","TYPEOF","ALIGNOF","ATTRIBUTE",
|
||
"EXTENSION","LABEL","REALPART","IMAGPART","ASSIGN","'='","'?'","':'","OROR",
|
||
"ANDAND","'|'","'^'","'&'","EQCOMPARE","ARITHCOMPARE","LSHIFT","RSHIFT","'+'",
|
||
"'-'","'*'","'/'","'%'","UNARY","PLUSPLUS","MINUSMINUS","HYPERUNARY","POINTSAT",
|
||
"'.'","'('","'['","INTERFACE","IMPLEMENTATION","END","SELECTOR","DEFS","ENCODE",
|
||
"CLASSNAME","PUBLIC","PRIVATE","PROTECTED","PROTOCOL","OBJECTNAME","CLASS","ALIAS",
|
||
"OBJC_STRING","')'","';'","'}'","'~'","'!'","','","'{'","']'","program","extdefs",
|
||
"@1","@2","extdef","datadef","fndef","@3","@4","@5","@6","@7","@8","identifier",
|
||
"unop","expr","exprlist","nonnull_exprlist","unary_expr","sizeof","alignof",
|
||
"cast_expr","@9","expr_no_commas","@10","@11","@12","@13","@14","primary","@15",
|
||
"string","old_style_parm_decls","lineno_datadecl","datadecls","datadecl","lineno_decl",
|
||
"decls","setspecs","setattrs","decl","typed_declspecs","reserved_declspecs",
|
||
"typed_declspecs_no_prefix_attr","reserved_declspecs_no_prefix_attr","declmods",
|
||
"declmods_no_prefix_attr","typed_typespecs","reserved_typespecquals","typespec",
|
||
"typespecqual_reserved","initdecls","notype_initdecls","maybeasm","initdcl",
|
||
"@16","notype_initdcl","@17","maybe_attribute","attributes","attribute","attribute_list",
|
||
"attrib","any_word","init","@18","initlist_maybe_comma","initlist1","initelt",
|
||
"@19","@20","@21","@22","@23","@24","nested_function","@25","@26","notype_nested_function",
|
||
"@27","@28","declarator","after_type_declarator","parm_declarator","notype_declarator",
|
||
"structsp","@29","@30","@31","@32","maybecomma","maybecomma_warn","component_decl_list",
|
||
"component_decl_list2","component_decl","components","component_declarator",
|
||
"enumlist","enumerator","typename","absdcl","nonempty_type_quals","type_quals",
|
||
"absdcl1","stmts","lineno_stmt_or_labels","xstmts","errstmt","pushlevel","maybe_label_decls",
|
||
"label_decls","label_decl","compstmt_or_error","compstmt_start","compstmt","simple_if",
|
||
"if_prefix","do_stmt_start","@33","save_filename","save_lineno","lineno_labeled_stmt",
|
||
"lineno_stmt_or_label","stmt_or_label","stmt","@34","@35","@36","@37","@38",
|
||
"@39","@40","all_iter_stmt","all_iter_stmt_simple","@41","label","maybe_type_qual",
|
||
"xexpr","asm_operands","nonnull_asm_operands","asm_operand","asm_clobbers","parmlist",
|
||
"@42","parmlist_1","@43","parmlist_2","parms","parm","parmlist_or_identifiers",
|
||
"@44","parmlist_or_identifiers_1","identifiers","identifiers_or_typenames","extension", NULL
|
||
};
|
||
#endif
|
||
|
||
static const short yyr1[] = { 0,
|
||
84, 84, 86, 85, 87, 85, 88, 88, 88, 88,
|
||
89, 89, 89, 89, 89, 89, 89, 89, 91, 92,
|
||
90, 90, 93, 94, 90, 90, 95, 96, 90, 90,
|
||
97, 97, 98, 98, 98, 98, 98, 98, 98, 99,
|
||
100, 100, 101, 101, 102, 102, 102, 102, 102, 102,
|
||
102, 102, 102, 102, 102, 103, 104, 105, 105, 106,
|
||
105, 107, 107, 107, 107, 107, 107, 107, 107, 107,
|
||
107, 107, 107, 107, 108, 107, 109, 107, 110, 111,
|
||
107, 112, 107, 107, 107, 113, 113, 113, 113, 113,
|
||
114, 113, 113, 113, 113, 113, 113, 113, 115, 115,
|
||
116, 116, 116, 117, 118, 118, 118, 118, 119, 119,
|
||
119, 119, 120, 121, 121, 121, 121, 122, 123, 124,
|
||
124, 124, 124, 124, 124, 124, 125, 125, 126, 126,
|
||
126, 126, 127, 127, 128, 128, 128, 129, 129, 129,
|
||
129, 130, 130, 130, 130, 131, 131, 132, 132, 133,
|
||
133, 133, 133, 133, 134, 134, 134, 135, 135, 136,
|
||
136, 137, 137, 139, 138, 138, 141, 140, 140, 142,
|
||
142, 143, 143, 144, 145, 145, 146, 146, 146, 146,
|
||
146, 147, 147, 147, 147, 148, 149, 148, 148, 150,
|
||
150, 151, 151, 152, 153, 152, 152, 154, 152, 155,
|
||
152, 156, 152, 157, 152, 158, 152, 160, 161, 159,
|
||
163, 164, 162, 165, 165, 166, 166, 166, 166, 166,
|
||
166, 166, 167, 167, 167, 167, 167, 167, 168, 168,
|
||
168, 168, 168, 168, 168, 170, 169, 169, 169, 171,
|
||
169, 169, 169, 172, 169, 173, 169, 169, 174, 174,
|
||
175, 175, 176, 176, 177, 177, 177, 178, 178, 178,
|
||
178, 178, 178, 179, 179, 180, 180, 180, 181, 181,
|
||
181, 182, 182, 183, 183, 184, 184, 185, 185, 186,
|
||
186, 187, 187, 187, 187, 187, 187, 187, 187, 187,
|
||
188, 189, 189, 189, 190, 190, 191, 192, 193, 193,
|
||
194, 194, 195, 196, 196, 197, 198, 198, 198, 198,
|
||
199, 199, 200, 202, 201, 203, 204, 205, 205, 206,
|
||
207, 207, 208, 208, 208, 209, 208, 208, 208, 210,
|
||
211, 208, 208, 208, 212, 213, 214, 208, 215, 208,
|
||
208, 208, 208, 208, 208, 208, 208, 208, 208, 208,
|
||
208, 216, 218, 217, 219, 219, 219, 219, 220, 220,
|
||
221, 221, 222, 222, 223, 223, 224, 225, 225, 227,
|
||
226, 228, 229, 228, 228, 230, 230, 230, 230, 231,
|
||
231, 232, 232, 232, 232, 232, 234, 233, 235, 235,
|
||
236, 236, 237, 237, 238
|
||
};
|
||
|
||
static const short yyr2[] = { 0,
|
||
0, 1, 0, 2, 0, 3, 1, 1, 5, 2,
|
||
3, 4, 4, 2, 2, 2, 2, 1, 0, 0,
|
||
7, 4, 0, 0, 7, 4, 0, 0, 6, 3,
|
||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||
0, 1, 1, 3, 1, 2, 2, 2, 2, 2,
|
||
4, 2, 4, 2, 2, 1, 1, 1, 4, 0,
|
||
7, 1, 3, 3, 3, 3, 3, 3, 3, 3,
|
||
3, 3, 3, 3, 0, 4, 0, 4, 0, 0,
|
||
7, 0, 5, 3, 3, 1, 1, 1, 3, 3,
|
||
0, 4, 4, 4, 3, 3, 2, 2, 1, 2,
|
||
0, 1, 2, 3, 1, 1, 2, 2, 4, 4,
|
||
2, 2, 3, 1, 1, 2, 2, 0, 0, 4,
|
||
4, 3, 3, 2, 2, 2, 2, 3, 0, 2,
|
||
2, 2, 2, 3, 0, 2, 2, 1, 1, 2,
|
||
2, 1, 1, 2, 2, 2, 3, 0, 2, 1,
|
||
1, 1, 4, 4, 1, 1, 1, 1, 3, 1,
|
||
3, 0, 4, 0, 6, 3, 0, 6, 3, 0,
|
||
1, 1, 2, 6, 1, 3, 0, 1, 4, 6,
|
||
4, 1, 1, 1, 1, 1, 0, 4, 1, 0,
|
||
2, 1, 3, 1, 0, 4, 1, 0, 8, 0,
|
||
6, 0, 5, 0, 4, 0, 5, 0, 0, 5,
|
||
0, 0, 5, 1, 1, 3, 3, 4, 3, 3,
|
||
3, 1, 3, 4, 3, 3, 3, 1, 3, 3,
|
||
3, 4, 3, 3, 1, 0, 7, 5, 2, 0,
|
||
7, 5, 2, 0, 8, 0, 7, 2, 0, 1,
|
||
0, 1, 1, 2, 0, 3, 2, 3, 4, 3,
|
||
1, 1, 2, 1, 3, 4, 6, 5, 1, 3,
|
||
1, 1, 3, 2, 2, 0, 1, 1, 2, 0,
|
||
2, 3, 3, 2, 3, 4, 3, 2, 3, 2,
|
||
1, 1, 2, 2, 0, 1, 2, 0, 0, 1,
|
||
1, 2, 3, 1, 2, 1, 2, 6, 5, 5,
|
||
2, 2, 4, 0, 4, 0, 0, 3, 4, 3,
|
||
1, 1, 1, 1, 2, 0, 4, 1, 3, 0,
|
||
0, 7, 5, 2, 0, 0, 0, 12, 0, 6,
|
||
2, 2, 2, 3, 6, 8, 10, 12, 3, 4,
|
||
1, 1, 0, 6, 3, 5, 2, 2, 0, 1,
|
||
0, 1, 0, 1, 1, 3, 4, 1, 3, 0,
|
||
2, 2, 0, 4, 2, 0, 1, 1, 3, 1,
|
||
3, 4, 4, 4, 4, 4, 0, 2, 1, 2,
|
||
1, 3, 1, 3, 1
|
||
};
|
||
|
||
static const short yydefact[] = { 3,
|
||
5, 0, 0, 0, 152, 143, 150, 142, 0, 0,
|
||
0, 0, 0, 0, 395, 18, 4, 8, 7, 0,
|
||
118, 118, 138, 129, 139, 172, 151, 0, 6, 16,
|
||
17, 31, 32, 246, 248, 255, 239, 255, 243, 0,
|
||
0, 0, 235, 280, 0, 0, 160, 119, 0, 15,
|
||
0, 14, 0, 140, 129, 141, 145, 144, 127, 173,
|
||
10, 0, 244, 0, 0, 236, 0, 240, 86, 87,
|
||
99, 56, 57, 0, 0, 0, 33, 35, 34, 0,
|
||
36, 37, 0, 38, 39, 0, 0, 40, 58, 0,
|
||
0, 62, 43, 45, 88, 0, 278, 0, 276, 148,
|
||
0, 276, 177, 0, 0, 11, 0, 0, 30, 0,
|
||
387, 0, 0, 170, 222, 280, 0, 0, 158, 119,
|
||
0, 214, 215, 0, 0, 128, 131, 155, 156, 130,
|
||
132, 157, 271, 272, 251, 269, 0, 170, 262, 257,
|
||
118, 254, 118, 0, 255, 170, 255, 54, 55, 49,
|
||
46, 0, 0, 0, 0, 48, 0, 0, 0, 50,
|
||
0, 52, 0, 0, 79, 77, 75, 0, 0, 0,
|
||
0, 0, 0, 0, 0, 0, 0, 0, 0, 97,
|
||
98, 0, 0, 41, 0, 100, 47, 153, 280, 370,
|
||
0, 274, 277, 146, 154, 279, 148, 275, 183, 184,
|
||
185, 182, 0, 175, 178, 281, 231, 230, 161, 162,
|
||
234, 0, 229, 0, 233, 0, 0, 28, 0, 316,
|
||
106, 317, 169, 171, 0, 0, 13, 0, 0, 22,
|
||
0, 170, 387, 0, 12, 26, 0, 0, 252, 0,
|
||
251, 238, 316, 256, 316, 263, 0, 242, 0, 90,
|
||
89, 306, 298, 0, 0, 9, 44, 0, 0, 85,
|
||
84, 0, 0, 0, 0, 73, 74, 72, 71, 70,
|
||
68, 69, 63, 64, 65, 66, 67, 96, 95, 0,
|
||
42, 0, 284, 0, 288, 0, 290, 0, 370, 0,
|
||
149, 147, 0, 177, 41, 0, 0, 391, 377, 118,
|
||
118, 389, 0, 378, 380, 388, 0, 232, 297, 0,
|
||
108, 103, 107, 0, 167, 220, 216, 159, 221, 20,
|
||
166, 217, 219, 0, 24, 273, 270, 170, 0, 258,
|
||
264, 317, 260, 317, 170, 170, 307, 299, 92, 60,
|
||
59, 51, 53, 0, 0, 78, 76, 93, 94, 283,
|
||
282, 371, 289, 285, 287, 0, 174, 176, 86, 0,
|
||
163, 375, 276, 276, 372, 373, 0, 390, 0, 0,
|
||
29, 304, 104, 118, 118, 135, 0, 0, 164, 218,
|
||
0, 247, 170, 316, 259, 0, 237, 241, 0, 0,
|
||
300, 301, 0, 80, 83, 286, 179, 0, 181, 228,
|
||
280, 370, 119, 170, 170, 170, 280, 170, 170, 0,
|
||
379, 381, 392, 305, 111, 0, 112, 0, 135, 133,
|
||
189, 187, 186, 168, 21, 0, 25, 245, 265, 0,
|
||
170, 393, 0, 0, 0, 316, 0, 0, 115, 317,
|
||
292, 302, 197, 86, 0, 0, 195, 0, 194, 0,
|
||
249, 192, 0, 0, 284, 0, 387, 0, 382, 383,
|
||
384, 284, 385, 386, 374, 0, 0, 162, 134, 137,
|
||
136, 0, 165, 170, 0, 266, 303, 0, 309, 117,
|
||
116, 296, 0, 310, 294, 317, 293, 0, 0, 0,
|
||
0, 204, 61, 0, 191, 81, 180, 226, 280, 227,
|
||
223, 225, 0, 109, 110, 0, 268, 170, 394, 308,
|
||
0, 152, 0, 330, 314, 0, 0, 0, 0, 0,
|
||
0, 0, 0, 359, 351, 0, 0, 113, 118, 118,
|
||
323, 328, 0, 0, 320, 321, 324, 352, 322, 0,
|
||
206, 0, 202, 0, 0, 193, 0, 224, 188, 267,
|
||
0, 0, 316, 361, 0, 0, 357, 341, 342, 343,
|
||
0, 0, 0, 360, 0, 358, 325, 124, 0, 125,
|
||
0, 0, 312, 317, 311, 334, 0, 126, 0, 0,
|
||
200, 0, 196, 205, 0, 0, 0, 362, 45, 0,
|
||
0, 0, 355, 344, 0, 349, 0, 0, 122, 208,
|
||
0, 123, 211, 329, 316, 0, 0, 207, 0, 0,
|
||
203, 313, 0, 315, 353, 335, 339, 0, 350, 0,
|
||
120, 0, 121, 0, 327, 318, 316, 0, 198, 201,
|
||
331, 316, 361, 316, 356, 363, 0, 209, 212, 319,
|
||
333, 0, 316, 354, 0, 340, 0, 0, 364, 365,
|
||
345, 0, 0, 199, 332, 336, 0, 363, 0, 0,
|
||
210, 213, 361, 0, 0, 346, 366, 0, 367, 0,
|
||
0, 337, 368, 0, 347, 316, 0, 0, 338, 348,
|
||
369, 0, 0, 0
|
||
};
|
||
|
||
static const short yydefgoto[] = { 682,
|
||
1, 2, 3, 17, 18, 19, 231, 378, 237, 381,
|
||
113, 310, 448, 86, 153, 280, 88, 89, 90, 91,
|
||
92, 393, 93, 265, 264, 262, 453, 263, 94, 154,
|
||
95, 218, 219, 220, 373, 435, 436, 20, 108, 528,
|
||
300, 59, 374, 420, 301, 23, 99, 194, 24, 130,
|
||
118, 46, 114, 119, 426, 47, 377, 223, 224, 26,
|
||
203, 204, 205, 424, 472, 450, 451, 452, 491, 642,
|
||
610, 582, 545, 579, 599, 622, 652, 602, 624, 653,
|
||
210, 122, 498, 123, 27, 145, 147, 137, 62, 495,
|
||
240, 64, 65, 142, 330, 331, 135, 136, 101, 192,
|
||
102, 104, 193, 437, 438, 483, 221, 338, 390, 391,
|
||
392, 371, 253, 372, 532, 533, 534, 553, 574, 314,
|
||
575, 441, 535, 536, 605, 552, 643, 633, 663, 676,
|
||
634, 537, 538, 632, 539, 565, 590, 648, 649, 650,
|
||
674, 285, 286, 302, 410, 303, 304, 305, 213, 214,
|
||
306, 307, 433, 96
|
||
};
|
||
|
||
static const short yypact[] = { 60,
|
||
83, 2030, 2030, 208,-32768,-32768,-32768,-32768, 73, 76,
|
||
98, 58, 70, 93,-32768,-32768,-32768,-32768,-32768, 199,
|
||
26, 193, 247,-32768, 81,-32768,-32768, 2030,-32768,-32768,
|
||
-32768,-32768,-32768,-32768, 77,-32768, 79,-32768, 94, 1892,
|
||
1826, 123,-32768,-32768, 199, 134,-32768, 81, 267,-32768,
|
||
442,-32768, 199, 247,-32768, 81,-32768,-32768, 964,-32768,
|
||
-32768, 547,-32768, 111, 768,-32768, 114,-32768,-32768,-32768,
|
||
-32768,-32768,-32768, 1892, 1892, 326,-32768,-32768,-32768, 1892,
|
||
-32768,-32768, 1038,-32768,-32768, 1892, 119, 180,-32768, 1919,
|
||
1946,-32768, 2154, 968, 195, 1892,-32768, 220, 556,-32768,
|
||
238, 691, 615, 444, 265,-32768, 442, 199,-32768, 210,
|
||
-32768, 1361, 333, 81,-32768,-32768, 442, 163,-32768, 81,
|
||
1346, 360, 471, 201, 1286, 964,-32768,-32768,-32768,-32768,
|
||
81,-32768,-32768, 299, 294,-32768, 547, 81,-32768,-32768,
|
||
-32768, 303, 389, 1109,-32768, 81,-32768,-32768,-32768,-32768,
|
||
-32768, 309, 312, 316, 337,-32768, 345, 1892, 1038,-32768,
|
||
1038,-32768, 1892, 1892, 393,-32768,-32768, 1892, 1892, 1892,
|
||
1892, 1892, 1892, 1892, 1892, 1892, 1892, 1892, 1892,-32768,
|
||
-32768, 326, 326, 1892, 1892,-32768,-32768,-32768,-32768, 556,
|
||
1421,-32768, 496, 219,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
-32768,-32768, 154,-32768, 378,-32768, 471,-32768,-32768, 417,
|
||
471, 445,-32768, 944,-32768, 373, 388,-32768, 585, 65,
|
||
-32768,-32768, 432, 81, 362, 457,-32768, 442, 442,-32768,
|
||
333, 81,-32768, 1434,-32768,-32768, 333, 1892, 326, 400,
|
||
294,-32768,-32768,-32768,-32768,-32768, 407,-32768, 412,-32768,
|
||
-32768,-32768, 415, 420, 1715,-32768, 2154, 429, 449, 2154,
|
||
2154, 1892, 505, 1892, 1892, 1685, 1292, 1863, 1526, 1741,
|
||
1005, 1005, 630, 630,-32768,-32768,-32768,-32768,-32768, 459,
|
||
180, 462, 448, 460,-32768, 851,-32768, 470,-32768, 1487,
|
||
-32768, 219, 484, 615, 1973, 44, 486,-32768,-32768,-32768,
|
||
1613,-32768, 508, 275,-32768,-32768, 170,-32768,-32768, 53,
|
||
-32768,-32768,-32768, 1374,-32768, 360,-32768,-32768, 360,-32768,
|
||
558,-32768,-32768, 513,-32768, 2154,-32768, 81, 529, 519,
|
||
-32768,-32768, 519,-32768, 81, 81,-32768, 577,-32768,-32768,
|
||
-32768,-32768,-32768, 576, 1892, 2022, 2166,-32768,-32768, 496,
|
||
-32768,-32768,-32768,-32768,-32768, 541,-32768,-32768, 212, 549,
|
||
-32768,-32768, 260, 272,-32768,-32768, 598,-32768, 624, 316,
|
||
-32768,-32768,-32768, 552, 102,-32768, 1275, 53,-32768,-32768,
|
||
53,-32768, 81,-32768, 403, 403,-32768,-32768, 326, 709,
|
||
577,-32768, 1095,-32768, 1605,-32768,-32768, 1892,-32768,-32768,
|
||
-32768, 272, 81, 178, 450, 81,-32768, 450, 81, 851,
|
||
-32768,-32768,-32768,-32768,-32768, 442,-32768, 199,-32768, 748,
|
||
-32768,-32768, 2154,-32768,-32768, 1275,-32768,-32768,-32768, 1892,
|
||
59,-32768, 283, 490, 629, 553, 567, 789,-32768,-32768,
|
||
-32768,-32768,-32768, 623, 326, 1892,-32768, 626, 2154, 590,
|
||
604,-32768, 1892, 240, 206, 454,-32768, 1500,-32768,-32768,
|
||
-32768, 217,-32768,-32768,-32768, 293, 398, 159, 748,-32768,
|
||
-32768, 1095,-32768, 2096, 1892,-32768,-32768, 326,-32768,-32768,
|
||
-32768,-32768, 608,-32768,-32768,-32768,-32768, 1581, 651, 2069,
|
||
1095,-32768,-32768, 1155,-32768, 1605,-32768, 522,-32768, 522,
|
||
-32768,-32768, 606,-32768,-32768, 612,-32768, 2096,-32768,-32768,
|
||
1661, 653, 634,-32768,-32768, 635, 637, 1892, 661, 625,
|
||
648, 1839, 122, 693,-32768, 663, 667,-32768, 668, 422,
|
||
-32768, 731, 882, 54,-32768,-32768,-32768,-32768,-32768, 1772,
|
||
-32768, 1892, 712, 678, 1215,-32768, 364,-32768,-32768,-32768,
|
||
1892, 706,-32768, 1892, 1892, 2118,-32768,-32768,-32768,-32768,
|
||
689, 1892, 690,-32768, 711,-32768,-32768,-32768, 442,-32768,
|
||
199, 981,-32768,-32768,-32768,-32768, 1892,-32768, 1215, 2051,
|
||
-32768, 1215,-32768,-32768, 695, 1892, 756,-32768, 616, 699,
|
||
701, 1892,-32768,-32768, 702,-32768, 1892, 410,-32768, 281,
|
||
461,-32768, 327,-32768,-32768, 1661, 707,-32768, 749, 1215,
|
||
-32768,-32768, 708,-32768,-32768,-32768,-32768, 2136,-32768, 43,
|
||
-32768, 333,-32768, 333,-32768,-32768,-32768, 710,-32768,-32768,
|
||
-32768,-32768, 1892,-32768,-32768, 786, 724,-32768,-32768,-32768,
|
||
-32768, 1215,-32768,-32768, 725,-32768, 744, 47, 736,-32768,
|
||
-32768, 316, 316,-32768,-32768,-32768, 1892, 786, 728, 786,
|
||
-32768,-32768, 1892, 743, 52,-32768,-32768, 745,-32768, 445,
|
||
747,-32768, 195, 252,-32768,-32768, 751, 445,-32768,-32768,
|
||
195, 825, 826,-32768
|
||
};
|
||
|
||
static const short yypgoto[] = {-32768,
|
||
-32768,-32768,-32768, 141,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
-32768,-32768, -5,-32768, -40, 535, -153, 497,-32768,-32768,
|
||
-28,-32768, 401,-32768,-32768,-32768,-32768,-32768, 279,-32768,
|
||
-189, -213, 614,-32768,-32768, 399,-32768, -2, -94, 296,
|
||
0, 785,-32768, 423, 7, -9, -1, 644, 22, -165,
|
||
-378, -39, -100, -57,-32768,-32768,-32768, 55, 14, 36,
|
||
-32768, 555,-32768, 424,-32768, -403,-32768, -446,-32768,-32768,
|
||
-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
-43, -55, -318, -13, -44,-32768,-32768,-32768,-32768,-32768,
|
||
610, 40,-32768, 715, 617, 469, 723, 631, 29, -80,
|
||
5, -89, -149, 436,-32768,-32768, -176,-32768,-32768,-32768,
|
||
483, -285,-32768, -129,-32768,-32768,-32768,-32768, -83, -283,
|
||
-459, 437,-32768, 271,-32768,-32768,-32768,-32768,-32768,-32768,
|
||
-32768,-32768,-32768,-32768, 274,-32768, -577, 224,-32768, 218,
|
||
-32768, 595,-32768, -247,-32768,-32768,-32768, 520, -200,-32768,
|
||
-32768,-32768,-32768, 9
|
||
};
|
||
|
||
|
||
#define YYLAST 2218
|
||
|
||
|
||
static const short yytable[] = { 87,
|
||
98, 21, 21, 35, 37, 39, 49, 121, 22, 22,
|
||
28, 28, 54, 124, 132, 25, 25, 320, 51, 53,
|
||
232, 198, 296, 325, 254, 229, 225, 21, 291, 222,
|
||
281, 105, 322, 48, 22, 56, 28, 466, 352, 125,
|
||
284, 25, 311, 55, 404, 148, 149, 546, 385, 209,
|
||
386, 151, 186, 370, 576, 645, 134, 156, 48, -1,
|
||
60, 226, 100, 141, 120, -102, 48, 187, 506, 143,
|
||
150, 216, 131, 144, 312, 32, 33, 67, 32, 33,
|
||
636, 132, -2, 60, 658, 668, 100, 544, 14, 670,
|
||
207, 60, 425, 587, 211, 427, 475, 202, 584, 283,
|
||
32, 33, 50, 105, 100, 5, 57, 7, 58, 232,
|
||
14, 155, 577, 9, 10, 11, 40, 48, 637, 361,
|
||
120, 48, 659, 197, 32, 33, 291, 671, 41, 13,
|
||
120, 134, 608, 350, 252, 611, 222, 500, 243, 131,
|
||
245, 281, 141, 29, 282, 625, -102, 222, 143, 132,
|
||
288, 42, 144, 222, 34, 60, 488, 36, 63, 332,
|
||
66, 334, 465, 630, 197, 100, 60, 640, 61, 316,
|
||
318, 562, 644, 319, 646, 68, 278, 279, 417, 38,
|
||
100, 103, 100, 655, 247, 110, 249, 258, 138, 259,
|
||
598, 146, 242, 324, 157, 654, 5, 6, 7, 8,
|
||
248, 43, 511, 186, 9, 10, 11, 14, 43, 400,
|
||
106, 207, 206, 439, 107, 211, 679, 111, 112, 43,
|
||
13, 344, 14, 206, 128, 129, 341, 25, 14, 293,
|
||
9, 10, 11, 134, 294, 14, 457, 458, 120, 227,
|
||
414, 120, 120, 228, 454, 368, 14, 132, 44, 356,
|
||
369, 57, 284, 58, 471, 401, 501, 45, 480, 60,
|
||
158, 485, 43, 400, 402, 191, 407, 109, 212, 52,
|
||
-27, -27, -27, -27, 43, 402, 191, 235, -27, -27,
|
||
-27, 107, 406, 409, 30, 31, 321, 397, 202, 14,
|
||
606, 54, 398, 110, -27, 188, -162, 363, 364, 25,
|
||
334, 14, -162, 471, 375, 350, 440, 110, 456, 401,
|
||
-162, 455, 350, 195, 56, 497, -162, 462, 402, 191,
|
||
158, 407, 55, 111, 112, 111, 112, 677, 32, 33,
|
||
402, 191, 678, 217, 238, 376, -316, -316, -316, -316,
|
||
208, 431, 431, -162, -316, -316, -316, -162, -27, 405,
|
||
408, 366, 440, 110, 486, 367, -162, -162, 531, 477,
|
||
-316, -162, -162, 478, 43, 115, 43, 400, 206, 504,
|
||
206, 416, 418, 228, 239, 132, 403, 48, 467, 244,
|
||
25, 531, 382, 432, 250, 111, 112, 251, 105, 387,
|
||
388, 14, 5, 14, 7, 196, 419, 252, 120, 120,
|
||
9, 10, 11, -162, 468, 43, 115, -162, 638, 547,
|
||
639, 116, 255, 499, -101, 48, 13, 503, 233, 234,
|
||
117, 256, 45, 25, 132, 5, 6, 7, 8, 120,
|
||
-82, 48, 14, 9, 10, 11, 295, 428, 60, 489,
|
||
430, 207, 211, 110, 43, 115, 43, 527, 207, 13,
|
||
206, 14, 116, 71, 206, 308, 43, 400, 459, 460,
|
||
461, 117, 463, 464, 309, -261, -261, 315, 403, 403,
|
||
527, 14, 509, 14, 505, 48, 531, 328, 107, 14,
|
||
673, 561, 526, 14, 335, 476, 621, 529, 681, 336,
|
||
228, 116, 337, 44, 530, 339, 540, 189, 570, 232,
|
||
117, 25, 45, 499, 342, 526, 190, 191, 111, 112,
|
||
585, 187, 45, 588, 591, 233, 234, 563, 289, 290,
|
||
54, 595, 661, 662, 343, 600, 569, 571, 507, 111,
|
||
112, 601, 317, 207, 348, 351, 607, 623, 222, 529,
|
||
222, 107, 345, 56, 349, 613, 530, 133, 540, 32,
|
||
33, 55, 353, 25, 289, 290, 620, 603, 257, 357,
|
||
403, 362, 550, 260, 261, 527, 309, 479, 266, 267,
|
||
268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
|
||
457, 458, 120, 365, 48, 217, 160, 162, -105, -105,
|
||
-105, -105, 588, 379, -105, 380, -105, -105, -105, 384,
|
||
526, 5, 6, 7, 8, 189, 383, 411, 389, 9,
|
||
10, 11, -105, 394, 190, 191, 664, 32, 33, 199,
|
||
200, 201, 588, 396, 399, 13, 413, 14, 415, 217,
|
||
-295, -114, -114, -114, -114, -114, -114, -114, 326, -114,
|
||
-114, -114, -114, -114, 484, -114, -114, -114, -114, -114,
|
||
-114, -114, -114, -114, -114, -114, -114, -114, -114, -114,
|
||
-31, -114, -114, 492, 346, 347, -105, 493, -114, 180,
|
||
181, -114, 182, 183, 184, 185, -114, -114, -114, 177,
|
||
178, 179, -114, -114, 494, 510, 541, -114, 548, 549,
|
||
-32, 615, 551, 554, 5, 555, 7, 196, 557, 564,
|
||
566, 558, 9, 10, 11, -114, -114, -114, -114, 434,
|
||
-114, -316, -316, -316, -316, -316, -316, -316, 13, -316,
|
||
-316, -316, -316, -316, 559, -316, -316, -316, -316, -316,
|
||
-316, -316, -316, -316, -316, -316, -316, -316, -316, -316,
|
||
189, -316, -316, 567, 568, 395, 572, 581, -316, 190,
|
||
191, -316, 470, 128, 129, 583, -316, -316, -316, 9,
|
||
10, 11, -316, -316, 586, 594, 596, -316, 139, 597,
|
||
612, 5, 614, 7, 97, 616, 617, 423, 619, 9,
|
||
10, 11, 628, 631, 629, -316, 641, -316, -316, 217,
|
||
-316, -316, -316, 449, 647, 13, -316, -316, 15, -316,
|
||
651, 656, 657, -316, 666, -316, -316, -316, -316, -316,
|
||
-316, -316, -316, -316, -316, -316, 660, -316, 669, -316,
|
||
672, -316, -316, 675, 683, 684, 423, 680, -316, 360,
|
||
474, -316, 589, 313, 481, 578, -316, -316, -316, 126,
|
||
292, 469, -316, -316, 140, -253, 490, -316, 358, 473,
|
||
329, 297, 429, 496, 5, 6, 7, 8, 246, 241,
|
||
299, 333, 9, 10, 11, -316, -291, -316, -316, 327,
|
||
-316, 482, 449, 442, 487, 508, 626, 667, 13, 627,
|
||
14, 665, 573, 354, -316, -316, 412, 0, 0, -316,
|
||
-316, 449, -316, 0, 449, 0, -316, 0, -316, -316,
|
||
-316, -316, -316, -316, -316, -316, -316, -316, -316, 0,
|
||
-316, 0, -316, 0, -316, -316, 0, 0, 556, 0,
|
||
0, -316, 0, 0, -316, 0, -376, 0, 0, -316,
|
||
-316, -316, 0, 0, 0, -316, -316, 0, 0, 0,
|
||
-316, 0, 580, 0, 297, 449, 298, 5, 6, 7,
|
||
8, 0, 0, 299, 0, 9, 10, 11, -316, 0,
|
||
-316, -316, 0, -316, 0, 0, 0, 0, 127, 128,
|
||
129, 13, 0, 14, 0, 9, 10, 11, 0, 449,
|
||
0, 604, 449, -326, -326, 0, 0, 0, -326, -326,
|
||
0, -326, 618, 14, 0, -326, 0, -326, -326, -326,
|
||
-326, -326, -326, -326, -326, -326, -326, -326, 0, -326,
|
||
449, -326, 0, -326, -326, 0, 0, 0, 0, -376,
|
||
-326, 180, 181, -326, 182, 183, 184, 185, -326, -326,
|
||
-326, 0, 0, 0, -326, -326, 0, 0, 152, -326,
|
||
69, 5, 449, 7, 97, 70, 71, 0, 72, 9,
|
||
10, 11, 175, 176, 177, 178, 179, -326, 0, -326,
|
||
-326, 0, -326, 0, 0, 13, 73, 0, 15, 0,
|
||
74, 75, 0, 0, 0, 0, 0, 76, 0, 0,
|
||
77, 0, 0, 0, 0, 78, 79, 80, 0, 0,
|
||
0, 81, 82, 0, 0, 443, 83, 444, 33, 0,
|
||
0, 0, 70, 71, 0, 72, 0, 0, 0, 139,
|
||
0, 0, 5, 0, 7, 97, 84, 85, 0, -91,
|
||
9, 10, 11, 73, 0, 15, 0, 74, 75, 0,
|
||
0, 0, 0, 0, 76, 0, 13, 77, 0, 15,
|
||
0, 0, 78, 79, 80, 0, 0, 0, 81, 82,
|
||
0, 0, 445, 83, 446, 443, 0, 444, 33, 0,
|
||
0, 0, 70, 71, 0, 72, 0, 0, 0, 0,
|
||
0, 0, -190, 84, 85, 0, 447, 0, 0, 0,
|
||
0, 0, 0, 73, 0, 15, 0, 74, 75, 0,
|
||
0, 0, 0, 0, 76, 0, 0, 77, 0, 0,
|
||
0, 0, 78, 79, 80, 0, 0, 0, 81, 82,
|
||
0, 0, 445, 83, 446, 443, 0, 444, 33, 0,
|
||
0, 0, 70, 71, 0, 72, 0, 0, 0, 0,
|
||
0, 0, -250, 84, 85, 0, 447, 0, 0, 0,
|
||
0, 0, 0, 73, 0, 15, 0, 74, 75, 0,
|
||
0, 0, 0, 0, 76, 0, 0, 77, 0, 0,
|
||
0, 0, 78, 79, 80, 0, 0, 0, 81, 82,
|
||
0, 0, 445, 83, 446, 421, 0, 69, 0, 0,
|
||
0, 0, 70, 71, 0, 72, 236, 0, 0, -23,
|
||
-23, -23, -23, 84, 85, 0, 447, -23, -23, -23,
|
||
0, 0, 0, 73, 0, 15, 0, 74, 75, 0,
|
||
0, 0, 110, -23, 76, -162, 0, 77, 0, 0,
|
||
0, -162, 78, 79, 80, 0, 0, 0, 81, 82,
|
||
0, 0, 0, 83, 170, 171, 172, 173, 174, 175,
|
||
176, 177, 178, 179, 111, 112, 230, 0, 0, -19,
|
||
-19, -19, -19, 84, 85, 0, 422, -19, -19, -19,
|
||
0, 0, -162, 69, 0, 0, -162, -23, 70, 71,
|
||
0, 72, 110, -19, 0, -162, 0, 5, 6, 7,
|
||
8, -162, 0, 0, 0, 9, 10, 11, 0, 73,
|
||
0, 15, 0, 74, 75, 0, 0, 0, 0, 0,
|
||
76, 13, 0, 77, 0, 0, 0, 0, 78, 79,
|
||
80, 0, 0, 0, 81, 82, 0, 0, 0, 83,
|
||
0, 0, -162, 69, 0, 0, -162, -19, 70, 71,
|
||
0, 72, 0, 0, 0, 0, 69, 0, 0, 84,
|
||
85, 70, 71, 215, 72, 0, 0, 0, 0, 73,
|
||
0, 15, 0, 74, 75, 0, 0, 0, 0, 0,
|
||
76, 0, 73, 77, 15, 0, 74, 75, 78, 79,
|
||
80, 0, 0, 76, 81, 82, 77, 0, 0, 83,
|
||
0, 78, 79, 80, 0, 0, 0, 81, 82, 69,
|
||
0, 0, 83, 0, 70, 71, 0, 72, 0, 84,
|
||
85, 0, 69, 287, 0, 0, 0, 70, 71, 0,
|
||
72, 0, 84, 85, 0, 73, 323, 15, 0, 74,
|
||
75, 0, 0, 0, 0, 0, 76, 0, 73, 77,
|
||
15, 0, 74, 75, 78, 79, 80, 0, 0, 76,
|
||
81, 82, 77, 0, 0, 83, 0, 78, 79, 80,
|
||
0, 0, 0, 81, 82, 0, 0, 0, 83, 0,
|
||
0, 0, 0, 0, 0, 84, 85, 0, 0, 355,
|
||
172, 173, 174, 175, 176, 177, 178, 179, 84, 85,
|
||
0, 0, 502, 444, 512, 6, 7, 8, 70, 71,
|
||
0, 72, 9, 10, 11, 513, 0, 514, 515, 516,
|
||
517, 518, 519, 520, 521, 522, 523, 524, 13, 73,
|
||
14, 15, 0, 74, 75, 0, 5, 6, 7, 8,
|
||
76, 0, 0, 77, 9, 10, 11, 0, 78, 79,
|
||
80, 0, 0, 0, 81, 82, 0, 0, 0, 83,
|
||
13, 165, 14, 166, 167, 168, 169, 170, 171, 172,
|
||
173, 174, 175, 176, 177, 178, 179, 525, 0, 84,
|
||
85, 0, 252, 444, 33, 0, 0, 0, 70, 71,
|
||
0, 72, 0, 0, 0, 513, 0, 514, 515, 516,
|
||
517, 518, 519, 520, 521, 522, 523, 524, 0, 73,
|
||
0, 15, 0, 74, 75, 0, 0, 0, 0, 0,
|
||
76, 0, 0, 77, 0, 0, 0, 0, 78, 79,
|
||
80, 0, 0, 0, 81, 82, 0, 69, 0, 83,
|
||
0, 0, 70, 71, 0, 72, 169, 170, 171, 172,
|
||
173, 174, 175, 176, 177, 178, 179, 525, 0, 84,
|
||
85, 0, 252, 73, 0, 15, 0, 74, 75, 0,
|
||
0, 0, 0, 0, 76, 0, 0, 77, 0, 0,
|
||
0, 0, 78, 79, 80, 0, 0, 0, 81, 82,
|
||
0, 0, 0, 83, 69, 5, 6, 7, 8, 70,
|
||
71, 0, 72, 9, 10, 11, 173, 174, 175, 176,
|
||
177, 178, 179, 84, 85, 0, 340, 0, 0, 13,
|
||
73, 14, 15, 0, 74, 75, 0, 0, 0, 0,
|
||
0, 76, 0, 0, 77, 0, 0, 0, 0, 78,
|
||
79, 80, 0, 0, 0, 81, 82, 0, 69, 5,
|
||
83, 7, 97, 70, 71, 0, 72, 9, 10, 11,
|
||
0, 69, 0, 0, 0, 0, 70, 71, 0, 72,
|
||
84, 85, 0, 13, 73, 0, 15, 0, 74, 75,
|
||
0, 0, 0, 0, 0, 76, 0, 73, 77, 15,
|
||
0, 74, 75, 78, 79, 80, 0, 0, 76, 81,
|
||
82, 77, 0, 0, 83, 0, 78, 79, 80, 0,
|
||
0, 0, 81, 82, 69, 0, 0, 83, 0, 70,
|
||
71, 0, 72, 0, 84, 85, 171, 172, 173, 174,
|
||
175, 176, 177, 178, 179, 560, 0, 84, 85, 0,
|
||
73, 69, 15, 0, 74, 75, 70, 71, 0, 72,
|
||
0, 76, 0, 0, 77, 0, 0, 0, 0, 78,
|
||
79, 80, 0, 0, 0, 81, 82, 73, 69, 15,
|
||
83, 74, 75, 70, 71, 0, 72, 0, 76, 0,
|
||
0, 77, 0, 0, 0, 0, 78, 79, 80, 0,
|
||
84, 85, 81, 82, 73, 359, 15, 159, 74, 75,
|
||
70, 71, 0, 72, 0, 76, 0, 0, 77, 0,
|
||
0, 0, 0, 78, 79, 80, 0, 84, 85, 81,
|
||
82, 73, 0, 15, 161, 74, 75, 0, 0, 0,
|
||
0, 0, 76, 0, 0, 77, 0, 0, 0, 0,
|
||
78, 79, 80, 0, 84, 85, 81, 82, 0, 0,
|
||
4, 83, -118, 5, 6, 7, 8, 0, 0, 0,
|
||
0, 9, 10, 11, 0, 0, 0, 0, 0, 0,
|
||
0, 84, 85, 0, 0, 0, 12, 13, 0, 14,
|
||
15, 167, 168, 169, 170, 171, 172, 173, 174, 175,
|
||
176, 177, 178, 179, 0, 0, 0, 0, 542, -118,
|
||
0, 0, 0, 0, 0, 163, 164, 165, -118, 166,
|
||
167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
|
||
177, 178, 179, 163, 164, 165, 16, 166, 167, 168,
|
||
169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
|
||
179, 0, 0, 0, 0, 14, 0, 592, 0, 0,
|
||
163, 164, 165, 609, 166, 167, 168, 169, 170, 171,
|
||
172, 173, 174, 175, 176, 177, 178, 179, 0, 0,
|
||
0, 543, 163, 164, 165, 593, 166, 167, 168, 169,
|
||
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
||
163, 164, 165, 635, 166, 167, 168, 169, 170, 171,
|
||
172, 173, 174, 175, 176, 177, 178, 179, 163, 164,
|
||
165, 0, 166, 167, 168, 169, 170, 171, 172, 173,
|
||
174, 175, 176, 177, 178, 179, 168, 169, 170, 171,
|
||
172, 173, 174, 175, 176, 177, 178, 179
|
||
};
|
||
|
||
static const short yycheck[] = { 40,
|
||
41, 2, 3, 9, 10, 11, 20, 51, 2, 3,
|
||
2, 3, 22, 53, 59, 2, 3, 231, 21, 22,
|
||
121, 102, 212, 237, 154, 120, 116, 28, 194, 113,
|
||
184, 45, 233, 20, 28, 22, 28, 416, 286, 53,
|
||
190, 28, 219, 22, 363, 74, 75, 494, 332, 107,
|
||
334, 80, 9, 1, 1, 633, 62, 86, 45, 0,
|
||
25, 117, 41, 65, 51, 1, 53, 96, 472, 65,
|
||
76, 112, 59, 65, 10, 3, 4, 38, 3, 4,
|
||
38, 126, 0, 48, 38, 663, 65, 491, 30, 38,
|
||
104, 56, 378, 553, 108, 381, 38, 103, 545, 189,
|
||
3, 4, 77, 117, 83, 4, 5, 6, 7, 210,
|
||
30, 83, 59, 12, 13, 14, 59, 104, 76, 76,
|
||
107, 108, 76, 102, 3, 4, 292, 76, 59, 28,
|
||
117, 137, 579, 283, 82, 582, 220, 456, 141, 126,
|
||
143, 295, 144, 3, 185, 605, 82, 231, 144, 194,
|
||
191, 59, 144, 237, 82, 120, 440, 82, 82, 243,
|
||
82, 245, 410, 610, 143, 144, 131, 627, 28, 225,
|
||
228, 50, 632, 229, 634, 82, 182, 183, 77, 82,
|
||
159, 59, 161, 643, 145, 27, 147, 159, 78, 161,
|
||
569, 78, 138, 234, 76, 642, 4, 5, 6, 7,
|
||
146, 3, 486, 9, 12, 13, 14, 30, 3, 4,
|
||
77, 225, 7, 390, 81, 229, 676, 59, 60, 3,
|
||
28, 262, 30, 7, 6, 7, 255, 214, 30, 76,
|
||
12, 13, 14, 239, 81, 30, 59, 60, 225, 77,
|
||
370, 228, 229, 81, 398, 76, 30, 292, 50, 290,
|
||
81, 5, 402, 7, 420, 50, 457, 59, 435, 224,
|
||
81, 438, 3, 4, 59, 60, 50, 1, 59, 77,
|
||
4, 5, 6, 7, 3, 59, 60, 77, 12, 13,
|
||
14, 81, 363, 364, 77, 78, 232, 76, 294, 30,
|
||
574, 301, 81, 27, 28, 76, 30, 300, 301, 286,
|
||
384, 30, 36, 469, 314, 455, 390, 27, 403, 50,
|
||
30, 401, 462, 76, 301, 76, 36, 407, 59, 60,
|
||
81, 50, 301, 59, 60, 59, 60, 76, 3, 4,
|
||
59, 60, 81, 1, 36, 314, 4, 5, 6, 7,
|
||
76, 385, 386, 77, 12, 13, 14, 81, 82, 363,
|
||
364, 77, 436, 27, 438, 81, 30, 77, 488, 77,
|
||
28, 81, 36, 81, 3, 4, 3, 4, 7, 77,
|
||
7, 374, 375, 81, 81, 420, 363, 364, 418, 77,
|
||
367, 511, 328, 389, 76, 59, 60, 76, 402, 335,
|
||
336, 30, 4, 30, 6, 7, 375, 82, 385, 386,
|
||
12, 13, 14, 77, 418, 3, 4, 81, 622, 499,
|
||
624, 50, 76, 50, 82, 402, 28, 458, 59, 60,
|
||
59, 77, 59, 410, 469, 4, 5, 6, 7, 416,
|
||
38, 418, 30, 12, 13, 14, 59, 383, 403, 445,
|
||
38, 455, 456, 27, 3, 4, 3, 488, 462, 28,
|
||
7, 30, 50, 9, 7, 83, 3, 4, 404, 405,
|
||
406, 59, 408, 409, 77, 77, 78, 36, 455, 456,
|
||
511, 30, 478, 30, 77, 462, 606, 78, 81, 30,
|
||
670, 522, 488, 30, 78, 431, 77, 488, 678, 78,
|
||
81, 50, 78, 50, 488, 76, 488, 50, 77, 600,
|
||
59, 488, 59, 50, 76, 511, 59, 60, 59, 60,
|
||
551, 540, 59, 554, 555, 59, 60, 523, 59, 60,
|
||
530, 562, 652, 653, 76, 569, 529, 530, 474, 59,
|
||
60, 571, 76, 547, 76, 76, 577, 77, 622, 540,
|
||
624, 81, 38, 530, 83, 586, 540, 1, 540, 3,
|
||
4, 530, 83, 540, 59, 60, 597, 571, 158, 76,
|
||
547, 76, 508, 163, 164, 606, 77, 78, 168, 169,
|
||
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
||
59, 60, 569, 76, 571, 1, 90, 91, 4, 5,
|
||
6, 7, 633, 36, 10, 83, 12, 13, 14, 81,
|
||
606, 4, 5, 6, 7, 50, 78, 10, 32, 12,
|
||
13, 14, 28, 38, 59, 60, 657, 3, 4, 5,
|
||
6, 7, 663, 83, 76, 28, 3, 30, 77, 1,
|
||
78, 3, 4, 5, 6, 7, 8, 9, 238, 11,
|
||
12, 13, 14, 15, 78, 17, 18, 19, 20, 21,
|
||
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
||
38, 33, 34, 38, 264, 265, 82, 78, 40, 54,
|
||
55, 43, 57, 58, 59, 60, 48, 49, 50, 50,
|
||
51, 52, 54, 55, 81, 78, 36, 59, 83, 78,
|
||
38, 76, 59, 59, 4, 59, 6, 7, 38, 7,
|
||
38, 77, 12, 13, 14, 77, 78, 79, 80, 1,
|
||
82, 3, 4, 5, 6, 7, 8, 9, 28, 11,
|
||
12, 13, 14, 15, 77, 17, 18, 19, 20, 21,
|
||
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
||
50, 33, 34, 77, 77, 345, 16, 36, 40, 59,
|
||
60, 43, 5, 6, 7, 78, 48, 49, 50, 12,
|
||
13, 14, 54, 55, 59, 77, 77, 59, 1, 59,
|
||
76, 4, 17, 6, 7, 77, 76, 377, 77, 12,
|
||
13, 14, 76, 76, 36, 77, 77, 79, 80, 1,
|
||
82, 3, 4, 393, 9, 28, 8, 9, 31, 11,
|
||
77, 77, 59, 15, 77, 17, 18, 19, 20, 21,
|
||
22, 23, 24, 25, 26, 27, 81, 29, 76, 31,
|
||
76, 33, 34, 77, 0, 0, 426, 77, 40, 295,
|
||
430, 43, 554, 220, 436, 540, 48, 49, 50, 55,
|
||
197, 419, 54, 55, 77, 78, 446, 59, 294, 426,
|
||
241, 1, 384, 453, 4, 5, 6, 7, 144, 137,
|
||
10, 245, 12, 13, 14, 77, 78, 79, 80, 239,
|
||
82, 436, 472, 391, 438, 475, 606, 660, 28, 606,
|
||
30, 658, 1, 289, 3, 4, 367, -1, -1, 8,
|
||
9, 491, 11, -1, 494, -1, 15, -1, 17, 18,
|
||
19, 20, 21, 22, 23, 24, 25, 26, 27, -1,
|
||
29, -1, 31, -1, 33, 34, -1, -1, 518, -1,
|
||
-1, 40, -1, -1, 43, -1, 76, -1, -1, 48,
|
||
49, 50, -1, -1, -1, 54, 55, -1, -1, -1,
|
||
59, -1, 542, -1, 1, 545, 3, 4, 5, 6,
|
||
7, -1, -1, 10, -1, 12, 13, 14, 77, -1,
|
||
79, 80, -1, 82, -1, -1, -1, -1, 5, 6,
|
||
7, 28, -1, 30, -1, 12, 13, 14, -1, 579,
|
||
-1, 1, 582, 3, 4, -1, -1, -1, 8, 9,
|
||
-1, 11, 592, 30, -1, 15, -1, 17, 18, 19,
|
||
20, 21, 22, 23, 24, 25, 26, 27, -1, 29,
|
||
610, 31, -1, 33, 34, -1, -1, -1, -1, 76,
|
||
40, 54, 55, 43, 57, 58, 59, 60, 48, 49,
|
||
50, -1, -1, -1, 54, 55, -1, -1, 1, 59,
|
||
3, 4, 642, 6, 7, 8, 9, -1, 11, 12,
|
||
13, 14, 48, 49, 50, 51, 52, 77, -1, 79,
|
||
80, -1, 82, -1, -1, 28, 29, -1, 31, -1,
|
||
33, 34, -1, -1, -1, -1, -1, 40, -1, -1,
|
||
43, -1, -1, -1, -1, 48, 49, 50, -1, -1,
|
||
-1, 54, 55, -1, -1, 1, 59, 3, 4, -1,
|
||
-1, -1, 8, 9, -1, 11, -1, -1, -1, 1,
|
||
-1, -1, 4, -1, 6, 7, 79, 80, -1, 82,
|
||
12, 13, 14, 29, -1, 31, -1, 33, 34, -1,
|
||
-1, -1, -1, -1, 40, -1, 28, 43, -1, 31,
|
||
-1, -1, 48, 49, 50, -1, -1, -1, 54, 55,
|
||
-1, -1, 58, 59, 60, 1, -1, 3, 4, -1,
|
||
-1, -1, 8, 9, -1, 11, -1, -1, -1, -1,
|
||
-1, -1, 78, 79, 80, -1, 82, -1, -1, -1,
|
||
-1, -1, -1, 29, -1, 31, -1, 33, 34, -1,
|
||
-1, -1, -1, -1, 40, -1, -1, 43, -1, -1,
|
||
-1, -1, 48, 49, 50, -1, -1, -1, 54, 55,
|
||
-1, -1, 58, 59, 60, 1, -1, 3, 4, -1,
|
||
-1, -1, 8, 9, -1, 11, -1, -1, -1, -1,
|
||
-1, -1, 78, 79, 80, -1, 82, -1, -1, -1,
|
||
-1, -1, -1, 29, -1, 31, -1, 33, 34, -1,
|
||
-1, -1, -1, -1, 40, -1, -1, 43, -1, -1,
|
||
-1, -1, 48, 49, 50, -1, -1, -1, 54, 55,
|
||
-1, -1, 58, 59, 60, 1, -1, 3, -1, -1,
|
||
-1, -1, 8, 9, -1, 11, 1, -1, -1, 4,
|
||
5, 6, 7, 79, 80, -1, 82, 12, 13, 14,
|
||
-1, -1, -1, 29, -1, 31, -1, 33, 34, -1,
|
||
-1, -1, 27, 28, 40, 30, -1, 43, -1, -1,
|
||
-1, 36, 48, 49, 50, -1, -1, -1, 54, 55,
|
||
-1, -1, -1, 59, 43, 44, 45, 46, 47, 48,
|
||
49, 50, 51, 52, 59, 60, 1, -1, -1, 4,
|
||
5, 6, 7, 79, 80, -1, 82, 12, 13, 14,
|
||
-1, -1, 77, 3, -1, -1, 81, 82, 8, 9,
|
||
-1, 11, 27, 28, -1, 30, -1, 4, 5, 6,
|
||
7, 36, -1, -1, -1, 12, 13, 14, -1, 29,
|
||
-1, 31, -1, 33, 34, -1, -1, -1, -1, -1,
|
||
40, 28, -1, 43, -1, -1, -1, -1, 48, 49,
|
||
50, -1, -1, -1, 54, 55, -1, -1, -1, 59,
|
||
-1, -1, 77, 3, -1, -1, 81, 82, 8, 9,
|
||
-1, 11, -1, -1, -1, -1, 3, -1, -1, 79,
|
||
80, 8, 9, 83, 11, -1, -1, -1, -1, 29,
|
||
-1, 31, -1, 33, 34, -1, -1, -1, -1, -1,
|
||
40, -1, 29, 43, 31, -1, 33, 34, 48, 49,
|
||
50, -1, -1, 40, 54, 55, 43, -1, -1, 59,
|
||
-1, 48, 49, 50, -1, -1, -1, 54, 55, 3,
|
||
-1, -1, 59, -1, 8, 9, -1, 11, -1, 79,
|
||
80, -1, 3, 83, -1, -1, -1, 8, 9, -1,
|
||
11, -1, 79, 80, -1, 29, 83, 31, -1, 33,
|
||
34, -1, -1, -1, -1, -1, 40, -1, 29, 43,
|
||
31, -1, 33, 34, 48, 49, 50, -1, -1, 40,
|
||
54, 55, 43, -1, -1, 59, -1, 48, 49, 50,
|
||
-1, -1, -1, 54, 55, -1, -1, -1, 59, -1,
|
||
-1, -1, -1, -1, -1, 79, 80, -1, -1, 83,
|
||
45, 46, 47, 48, 49, 50, 51, 52, 79, 80,
|
||
-1, -1, 83, 3, 4, 5, 6, 7, 8, 9,
|
||
-1, 11, 12, 13, 14, 15, -1, 17, 18, 19,
|
||
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
||
30, 31, -1, 33, 34, -1, 4, 5, 6, 7,
|
||
40, -1, -1, 43, 12, 13, 14, -1, 48, 49,
|
||
50, -1, -1, -1, 54, 55, -1, -1, -1, 59,
|
||
28, 37, 30, 39, 40, 41, 42, 43, 44, 45,
|
||
46, 47, 48, 49, 50, 51, 52, 77, -1, 79,
|
||
80, -1, 82, 3, 4, -1, -1, -1, 8, 9,
|
||
-1, 11, -1, -1, -1, 15, -1, 17, 18, 19,
|
||
20, 21, 22, 23, 24, 25, 26, 27, -1, 29,
|
||
-1, 31, -1, 33, 34, -1, -1, -1, -1, -1,
|
||
40, -1, -1, 43, -1, -1, -1, -1, 48, 49,
|
||
50, -1, -1, -1, 54, 55, -1, 3, -1, 59,
|
||
-1, -1, 8, 9, -1, 11, 42, 43, 44, 45,
|
||
46, 47, 48, 49, 50, 51, 52, 77, -1, 79,
|
||
80, -1, 82, 29, -1, 31, -1, 33, 34, -1,
|
||
-1, -1, -1, -1, 40, -1, -1, 43, -1, -1,
|
||
-1, -1, 48, 49, 50, -1, -1, -1, 54, 55,
|
||
-1, -1, -1, 59, 3, 4, 5, 6, 7, 8,
|
||
9, -1, 11, 12, 13, 14, 46, 47, 48, 49,
|
||
50, 51, 52, 79, 80, -1, 82, -1, -1, 28,
|
||
29, 30, 31, -1, 33, 34, -1, -1, -1, -1,
|
||
-1, 40, -1, -1, 43, -1, -1, -1, -1, 48,
|
||
49, 50, -1, -1, -1, 54, 55, -1, 3, 4,
|
||
59, 6, 7, 8, 9, -1, 11, 12, 13, 14,
|
||
-1, 3, -1, -1, -1, -1, 8, 9, -1, 11,
|
||
79, 80, -1, 28, 29, -1, 31, -1, 33, 34,
|
||
-1, -1, -1, -1, -1, 40, -1, 29, 43, 31,
|
||
-1, 33, 34, 48, 49, 50, -1, -1, 40, 54,
|
||
55, 43, -1, -1, 59, -1, 48, 49, 50, -1,
|
||
-1, -1, 54, 55, 3, -1, -1, 59, -1, 8,
|
||
9, -1, 11, -1, 79, 80, 44, 45, 46, 47,
|
||
48, 49, 50, 51, 52, 77, -1, 79, 80, -1,
|
||
29, 3, 31, -1, 33, 34, 8, 9, -1, 11,
|
||
-1, 40, -1, -1, 43, -1, -1, -1, -1, 48,
|
||
49, 50, -1, -1, -1, 54, 55, 29, 3, 31,
|
||
59, 33, 34, 8, 9, -1, 11, -1, 40, -1,
|
||
-1, 43, -1, -1, -1, -1, 48, 49, 50, -1,
|
||
79, 80, 54, 55, 29, 3, 31, 59, 33, 34,
|
||
8, 9, -1, 11, -1, 40, -1, -1, 43, -1,
|
||
-1, -1, -1, 48, 49, 50, -1, 79, 80, 54,
|
||
55, 29, -1, 31, 59, 33, 34, -1, -1, -1,
|
||
-1, -1, 40, -1, -1, 43, -1, -1, -1, -1,
|
||
48, 49, 50, -1, 79, 80, 54, 55, -1, -1,
|
||
1, 59, 3, 4, 5, 6, 7, -1, -1, -1,
|
||
-1, 12, 13, 14, -1, -1, -1, -1, -1, -1,
|
||
-1, 79, 80, -1, -1, -1, 27, 28, -1, 30,
|
||
31, 40, 41, 42, 43, 44, 45, 46, 47, 48,
|
||
49, 50, 51, 52, -1, -1, -1, -1, 10, 50,
|
||
-1, -1, -1, -1, -1, 35, 36, 37, 59, 39,
|
||
40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
|
||
50, 51, 52, 35, 36, 37, 77, 39, 40, 41,
|
||
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
|
||
52, -1, -1, -1, -1, 30, -1, 10, -1, -1,
|
||
35, 36, 37, 83, 39, 40, 41, 42, 43, 44,
|
||
45, 46, 47, 48, 49, 50, 51, 52, -1, -1,
|
||
-1, 83, 35, 36, 37, 38, 39, 40, 41, 42,
|
||
43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
|
||
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
|
||
45, 46, 47, 48, 49, 50, 51, 52, 35, 36,
|
||
37, -1, 39, 40, 41, 42, 43, 44, 45, 46,
|
||
47, 48, 49, 50, 51, 52, 41, 42, 43, 44,
|
||
45, 46, 47, 48, 49, 50, 51, 52
|
||
};
|
||
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
|
||
#line 3 "/usr/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 <alloca.h>
|
||
#else /* not sparc */
|
||
#if defined (MSDOS) && !defined (__TURBOC__)
|
||
#include <malloc.h>
|
||
#else /* not MSDOS, or __TURBOC__ */
|
||
#if defined(_AIX)
|
||
#include <malloc.h>
|
||
#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/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 1:
|
||
#line 240 "c-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids an empty source file");
|
||
finish_file ();
|
||
;
|
||
break;}
|
||
case 2:
|
||
#line 245 "c-parse.y"
|
||
{
|
||
/* In case there were missing closebraces,
|
||
get us back to the global binding level. */
|
||
while (! global_bindings_p ())
|
||
poplevel (0, 0, 0);
|
||
finish_file ();
|
||
;
|
||
break;}
|
||
case 3:
|
||
#line 259 "c-parse.y"
|
||
{yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 5:
|
||
#line 260 "c-parse.y"
|
||
{yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 9:
|
||
#line 267 "c-parse.y"
|
||
{ STRIP_NOPS (yyvsp[-2].ttype);
|
||
if ((TREE_CODE (yyvsp[-2].ttype) == ADDR_EXPR
|
||
&& TREE_CODE (TREE_OPERAND (yyvsp[-2].ttype, 0)) == STRING_CST)
|
||
|| TREE_CODE (yyvsp[-2].ttype) == STRING_CST)
|
||
assemble_asm (yyvsp[-2].ttype);
|
||
else
|
||
error ("argument of `asm' is not a constant string"); ;
|
||
break;}
|
||
case 10:
|
||
#line 275 "c-parse.y"
|
||
{ pedantic = yyvsp[-1].itype; ;
|
||
break;}
|
||
case 11:
|
||
#line 280 "c-parse.y"
|
||
{ if (pedantic)
|
||
error ("ANSI C forbids data definition with no type or storage class");
|
||
else if (!flag_traditional)
|
||
warning ("data definition has no type or storage class");
|
||
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 12:
|
||
#line 290 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 13:
|
||
#line 295 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 14:
|
||
#line 300 "c-parse.y"
|
||
{ pedwarn ("empty declaration"); ;
|
||
break;}
|
||
case 15:
|
||
#line 302 "c-parse.y"
|
||
{ shadow_tag (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 18:
|
||
#line 306 "c-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C does not allow extra `;' outside of a function"); ;
|
||
break;}
|
||
case 19:
|
||
#line 312 "c-parse.y"
|
||
{ if (! start_function (current_declspecs, yyvsp[0].ttype,
|
||
prefix_attributes, NULL_TREE, 0))
|
||
YYERROR1;
|
||
reinit_parse_for_function (); ;
|
||
break;}
|
||
case 20:
|
||
#line 317 "c-parse.y"
|
||
{ store_parm_decls (); ;
|
||
break;}
|
||
case 21:
|
||
#line 319 "c-parse.y"
|
||
{ finish_function (0);
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-5].itype); ;
|
||
break;}
|
||
case 22:
|
||
#line 325 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 23:
|
||
#line 330 "c-parse.y"
|
||
{ if (! start_function (current_declspecs, yyvsp[0].ttype,
|
||
prefix_attributes, NULL_TREE, 0))
|
||
YYERROR1;
|
||
reinit_parse_for_function (); ;
|
||
break;}
|
||
case 24:
|
||
#line 335 "c-parse.y"
|
||
{ store_parm_decls (); ;
|
||
break;}
|
||
case 25:
|
||
#line 337 "c-parse.y"
|
||
{ finish_function (0);
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-5].itype); ;
|
||
break;}
|
||
case 26:
|
||
#line 343 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 27:
|
||
#line 348 "c-parse.y"
|
||
{ if (! start_function (NULL_TREE, yyvsp[0].ttype,
|
||
prefix_attributes, NULL_TREE, 0))
|
||
YYERROR1;
|
||
reinit_parse_for_function (); ;
|
||
break;}
|
||
case 28:
|
||
#line 353 "c-parse.y"
|
||
{ store_parm_decls (); ;
|
||
break;}
|
||
case 29:
|
||
#line 355 "c-parse.y"
|
||
{ finish_function (0);
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-5].itype); ;
|
||
break;}
|
||
case 30:
|
||
#line 361 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 33:
|
||
#line 373 "c-parse.y"
|
||
{ yyval.code = ADDR_EXPR; ;
|
||
break;}
|
||
case 34:
|
||
#line 375 "c-parse.y"
|
||
{ yyval.code = NEGATE_EXPR; ;
|
||
break;}
|
||
case 35:
|
||
#line 377 "c-parse.y"
|
||
{ yyval.code = CONVERT_EXPR; ;
|
||
break;}
|
||
case 36:
|
||
#line 379 "c-parse.y"
|
||
{ yyval.code = PREINCREMENT_EXPR; ;
|
||
break;}
|
||
case 37:
|
||
#line 381 "c-parse.y"
|
||
{ yyval.code = PREDECREMENT_EXPR; ;
|
||
break;}
|
||
case 38:
|
||
#line 383 "c-parse.y"
|
||
{ yyval.code = BIT_NOT_EXPR; ;
|
||
break;}
|
||
case 39:
|
||
#line 385 "c-parse.y"
|
||
{ yyval.code = TRUTH_NOT_EXPR; ;
|
||
break;}
|
||
case 40:
|
||
#line 389 "c-parse.y"
|
||
{ yyval.ttype = build_compound_expr (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 41:
|
||
#line 394 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 43:
|
||
#line 400 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 44:
|
||
#line 402 "c-parse.y"
|
||
{ chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
|
||
break;}
|
||
case 46:
|
||
#line 408 "c-parse.y"
|
||
{ yyval.ttype = build_indirect_ref (yyvsp[0].ttype, "unary *"); ;
|
||
break;}
|
||
case 47:
|
||
#line 411 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
pedantic = yyvsp[-1].itype; ;
|
||
break;}
|
||
case 48:
|
||
#line 414 "c-parse.y"
|
||
{ yyval.ttype = build_unary_op (yyvsp[-1].code, yyvsp[0].ttype, 0);
|
||
overflow_warning (yyval.ttype); ;
|
||
break;}
|
||
case 49:
|
||
#line 418 "c-parse.y"
|
||
{ tree label = lookup_label (yyvsp[0].ttype);
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids `&&'");
|
||
if (label == 0)
|
||
yyval.ttype = null_pointer_node;
|
||
else
|
||
{
|
||
TREE_USED (label) = 1;
|
||
yyval.ttype = build1 (ADDR_EXPR, ptr_type_node, label);
|
||
TREE_CONSTANT (yyval.ttype) = 1;
|
||
}
|
||
;
|
||
break;}
|
||
case 50:
|
||
#line 446 "c-parse.y"
|
||
{ skip_evaluation--;
|
||
if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF
|
||
&& DECL_C_BIT_FIELD (TREE_OPERAND (yyvsp[0].ttype, 1)))
|
||
error ("`sizeof' applied to a bit-field");
|
||
yyval.ttype = c_sizeof (TREE_TYPE (yyvsp[0].ttype)); ;
|
||
break;}
|
||
case 51:
|
||
#line 452 "c-parse.y"
|
||
{ skip_evaluation--;
|
||
yyval.ttype = c_sizeof (groktypename (yyvsp[-1].ttype)); ;
|
||
break;}
|
||
case 52:
|
||
#line 455 "c-parse.y"
|
||
{ skip_evaluation--;
|
||
yyval.ttype = c_alignof_expr (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 53:
|
||
#line 458 "c-parse.y"
|
||
{ skip_evaluation--;
|
||
yyval.ttype = c_alignof (groktypename (yyvsp[-1].ttype)); ;
|
||
break;}
|
||
case 54:
|
||
#line 461 "c-parse.y"
|
||
{ yyval.ttype = build_unary_op (REALPART_EXPR, yyvsp[0].ttype, 0); ;
|
||
break;}
|
||
case 55:
|
||
#line 463 "c-parse.y"
|
||
{ yyval.ttype = build_unary_op (IMAGPART_EXPR, yyvsp[0].ttype, 0); ;
|
||
break;}
|
||
case 56:
|
||
#line 467 "c-parse.y"
|
||
{ skip_evaluation++; ;
|
||
break;}
|
||
case 57:
|
||
#line 471 "c-parse.y"
|
||
{ skip_evaluation++; ;
|
||
break;}
|
||
case 59:
|
||
#line 477 "c-parse.y"
|
||
{ tree type = groktypename (yyvsp[-2].ttype);
|
||
yyval.ttype = build_c_cast (type, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 60:
|
||
#line 480 "c-parse.y"
|
||
{ start_init (NULL_TREE, NULL, 0);
|
||
yyvsp[-2].ttype = groktypename (yyvsp[-2].ttype);
|
||
really_start_incremental_init (yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 61:
|
||
#line 484 "c-parse.y"
|
||
{ char *name;
|
||
tree result = pop_init_level (0);
|
||
tree type = yyvsp[-5].ttype;
|
||
finish_init ();
|
||
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids constructor expressions");
|
||
if (TYPE_NAME (type) != 0)
|
||
{
|
||
if (TREE_CODE (TYPE_NAME (type)) == IDENTIFIER_NODE)
|
||
name = IDENTIFIER_POINTER (TYPE_NAME (type));
|
||
else
|
||
name = IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (type)));
|
||
}
|
||
else
|
||
name = "";
|
||
yyval.ttype = result;
|
||
if (TREE_CODE (type) == ARRAY_TYPE && TYPE_SIZE (type) == 0)
|
||
{
|
||
int failure = complete_array_type (type, yyval.ttype, 1);
|
||
if (failure)
|
||
abort ();
|
||
}
|
||
;
|
||
break;}
|
||
case 63:
|
||
#line 513 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 64:
|
||
#line 515 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 65:
|
||
#line 517 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 66:
|
||
#line 519 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 67:
|
||
#line 521 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 68:
|
||
#line 523 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 69:
|
||
#line 525 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 70:
|
||
#line 527 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 71:
|
||
#line 529 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 72:
|
||
#line 531 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 73:
|
||
#line 533 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 74:
|
||
#line 535 "c-parse.y"
|
||
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 75:
|
||
#line 537 "c-parse.y"
|
||
{ yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[-1].ttype));
|
||
skip_evaluation += yyvsp[-1].ttype == boolean_false_node; ;
|
||
break;}
|
||
case 76:
|
||
#line 540 "c-parse.y"
|
||
{ skip_evaluation -= yyvsp[-3].ttype == boolean_false_node;
|
||
yyval.ttype = parser_build_binary_op (TRUTH_ANDIF_EXPR, yyvsp[-3].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 77:
|
||
#line 543 "c-parse.y"
|
||
{ yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[-1].ttype));
|
||
skip_evaluation += yyvsp[-1].ttype == boolean_true_node; ;
|
||
break;}
|
||
case 78:
|
||
#line 546 "c-parse.y"
|
||
{ skip_evaluation -= yyvsp[-3].ttype == boolean_true_node;
|
||
yyval.ttype = parser_build_binary_op (TRUTH_ORIF_EXPR, yyvsp[-3].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 79:
|
||
#line 549 "c-parse.y"
|
||
{ yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[-1].ttype));
|
||
skip_evaluation += yyvsp[-1].ttype == boolean_false_node; ;
|
||
break;}
|
||
case 80:
|
||
#line 552 "c-parse.y"
|
||
{ skip_evaluation += ((yyvsp[-4].ttype == boolean_true_node)
|
||
- (yyvsp[-4].ttype == boolean_false_node)); ;
|
||
break;}
|
||
case 81:
|
||
#line 555 "c-parse.y"
|
||
{ skip_evaluation -= yyvsp[-6].ttype == boolean_true_node;
|
||
yyval.ttype = build_conditional_expr (yyvsp[-6].ttype, yyvsp[-3].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 82:
|
||
#line 558 "c-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids omitting the middle term of a ?: expression");
|
||
/* Make sure first operand is calculated only once. */
|
||
yyvsp[0].ttype = save_expr (yyvsp[-1].ttype);
|
||
yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[0].ttype));
|
||
skip_evaluation += yyvsp[-1].ttype == boolean_true_node; ;
|
||
break;}
|
||
case 83:
|
||
#line 565 "c-parse.y"
|
||
{ skip_evaluation -= yyvsp[-4].ttype == boolean_true_node;
|
||
yyval.ttype = build_conditional_expr (yyvsp[-4].ttype, yyvsp[-3].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 84:
|
||
#line 568 "c-parse.y"
|
||
{ yyval.ttype = build_modify_expr (yyvsp[-2].ttype, NOP_EXPR, yyvsp[0].ttype);
|
||
C_SET_EXP_ORIGINAL_CODE (yyval.ttype, MODIFY_EXPR); ;
|
||
break;}
|
||
case 85:
|
||
#line 571 "c-parse.y"
|
||
{ yyval.ttype = build_modify_expr (yyvsp[-2].ttype, yyvsp[-1].code, yyvsp[0].ttype);
|
||
/* This inhibits warnings in truthvalue_conversion. */
|
||
C_SET_EXP_ORIGINAL_CODE (yyval.ttype, ERROR_MARK); ;
|
||
break;}
|
||
case 86:
|
||
#line 578 "c-parse.y"
|
||
{
|
||
yyval.ttype = lastiddecl;
|
||
if (!yyval.ttype || yyval.ttype == error_mark_node)
|
||
{
|
||
if (yychar == YYEMPTY)
|
||
yychar = YYLEX;
|
||
if (yychar == '(')
|
||
{
|
||
{
|
||
/* Ordinary implicit function declaration. */
|
||
yyval.ttype = implicitly_declare (yyvsp[0].ttype);
|
||
assemble_external (yyval.ttype);
|
||
TREE_USED (yyval.ttype) = 1;
|
||
}
|
||
}
|
||
else if (current_function_decl == 0)
|
||
{
|
||
error ("`%s' undeclared here (not in a function)",
|
||
IDENTIFIER_POINTER (yyvsp[0].ttype));
|
||
yyval.ttype = error_mark_node;
|
||
}
|
||
else
|
||
{
|
||
{
|
||
if (IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) != error_mark_node
|
||
|| IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) != current_function_decl)
|
||
{
|
||
error ("`%s' undeclared (first use in this function)",
|
||
IDENTIFIER_POINTER (yyvsp[0].ttype));
|
||
|
||
if (! undeclared_variable_notice)
|
||
{
|
||
error ("(Each undeclared identifier is reported only once");
|
||
error ("for each function it appears in.)");
|
||
undeclared_variable_notice = 1;
|
||
}
|
||
}
|
||
yyval.ttype = error_mark_node;
|
||
/* Prevent repeated error messages. */
|
||
IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) = error_mark_node;
|
||
IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) = current_function_decl;
|
||
}
|
||
}
|
||
}
|
||
else if (TREE_TYPE (yyval.ttype) == error_mark_node)
|
||
yyval.ttype = error_mark_node;
|
||
else if (C_DECL_ANTICIPATED (yyval.ttype))
|
||
{
|
||
/* The first time we see a build-in function used,
|
||
if it has not been declared. */
|
||
C_DECL_ANTICIPATED (yyval.ttype) = 0;
|
||
if (yychar == YYEMPTY)
|
||
yychar = YYLEX;
|
||
if (yychar == '(')
|
||
{
|
||
/* Omit the implicit declaration we
|
||
would ordinarily do, so we don't lose
|
||
the actual built in type.
|
||
But print a diagnostic for the mismatch. */
|
||
if (TREE_CODE (yyval.ttype) != FUNCTION_DECL)
|
||
error ("`%s' implicitly declared as function",
|
||
IDENTIFIER_POINTER (DECL_NAME (yyval.ttype)));
|
||
else if ((TYPE_MODE (TREE_TYPE (TREE_TYPE (yyval.ttype)))
|
||
!= TYPE_MODE (integer_type_node))
|
||
&& (TREE_TYPE (TREE_TYPE (yyval.ttype))
|
||
!= void_type_node))
|
||
pedwarn ("type mismatch in implicit declaration for built-in function `%s'",
|
||
IDENTIFIER_POINTER (DECL_NAME (yyval.ttype)));
|
||
/* If it really returns void, change that to int. */
|
||
if (TREE_TYPE (TREE_TYPE (yyval.ttype)) == void_type_node)
|
||
TREE_TYPE (yyval.ttype)
|
||
= build_function_type (integer_type_node,
|
||
TYPE_ARG_TYPES (TREE_TYPE (yyval.ttype)));
|
||
}
|
||
else
|
||
pedwarn ("built-in function `%s' used without declaration",
|
||
IDENTIFIER_POINTER (DECL_NAME (yyval.ttype)));
|
||
|
||
/* Do what we would ordinarily do when a fn is used. */
|
||
assemble_external (yyval.ttype);
|
||
TREE_USED (yyval.ttype) = 1;
|
||
}
|
||
else
|
||
{
|
||
assemble_external (yyval.ttype);
|
||
TREE_USED (yyval.ttype) = 1;
|
||
}
|
||
|
||
if (TREE_CODE (yyval.ttype) == CONST_DECL)
|
||
{
|
||
yyval.ttype = DECL_INITIAL (yyval.ttype);
|
||
/* This is to prevent an enum whose value is 0
|
||
from being considered a null pointer constant. */
|
||
yyval.ttype = build1 (NOP_EXPR, TREE_TYPE (yyval.ttype), yyval.ttype);
|
||
TREE_CONSTANT (yyval.ttype) = 1;
|
||
}
|
||
;
|
||
break;}
|
||
case 88:
|
||
#line 677 "c-parse.y"
|
||
{ yyval.ttype = combine_strings (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 89:
|
||
#line 679 "c-parse.y"
|
||
{ char class = TREE_CODE_CLASS (TREE_CODE (yyvsp[-1].ttype));
|
||
if (class == 'e' || class == '1'
|
||
|| class == '2' || class == '<')
|
||
C_SET_EXP_ORIGINAL_CODE (yyvsp[-1].ttype, ERROR_MARK);
|
||
yyval.ttype = yyvsp[-1].ttype; ;
|
||
break;}
|
||
case 90:
|
||
#line 685 "c-parse.y"
|
||
{ yyval.ttype = error_mark_node; ;
|
||
break;}
|
||
case 91:
|
||
#line 687 "c-parse.y"
|
||
{ if (current_function_decl == 0)
|
||
{
|
||
error ("braced-group within expression allowed only inside a function");
|
||
YYERROR;
|
||
}
|
||
/* We must force a BLOCK for this level
|
||
so that, if it is not expanded later,
|
||
there is a way to turn off the entire subtree of blocks
|
||
that are contained in it. */
|
||
keep_next_level ();
|
||
push_iterator_stack ();
|
||
push_label_level ();
|
||
yyval.ttype = expand_start_stmt_expr (); ;
|
||
break;}
|
||
case 92:
|
||
#line 701 "c-parse.y"
|
||
{ tree rtl_exp;
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids braced-groups within expressions");
|
||
pop_iterator_stack ();
|
||
pop_label_level ();
|
||
rtl_exp = expand_end_stmt_expr (yyvsp[-2].ttype);
|
||
/* The statements have side effects, so the group does. */
|
||
TREE_SIDE_EFFECTS (rtl_exp) = 1;
|
||
|
||
if (TREE_CODE (yyvsp[-1].ttype) == BLOCK)
|
||
{
|
||
/* Make a BIND_EXPR for the BLOCK already made. */
|
||
yyval.ttype = build (BIND_EXPR, TREE_TYPE (rtl_exp),
|
||
NULL_TREE, rtl_exp, yyvsp[-1].ttype);
|
||
/* Remove the block from the tree at this point.
|
||
It gets put back at the proper place
|
||
when the BIND_EXPR is expanded. */
|
||
delete_block (yyvsp[-1].ttype);
|
||
}
|
||
else
|
||
yyval.ttype = yyvsp[-1].ttype;
|
||
;
|
||
break;}
|
||
case 93:
|
||
#line 724 "c-parse.y"
|
||
{ yyval.ttype = build_function_call (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 94:
|
||
#line 726 "c-parse.y"
|
||
{ yyval.ttype = build_array_ref (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 95:
|
||
#line 728 "c-parse.y"
|
||
{
|
||
yyval.ttype = build_component_ref (yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 96:
|
||
#line 732 "c-parse.y"
|
||
{
|
||
tree expr = build_indirect_ref (yyvsp[-2].ttype, "->");
|
||
|
||
yyval.ttype = build_component_ref (expr, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 97:
|
||
#line 738 "c-parse.y"
|
||
{ yyval.ttype = build_unary_op (POSTINCREMENT_EXPR, yyvsp[-1].ttype, 0); ;
|
||
break;}
|
||
case 98:
|
||
#line 740 "c-parse.y"
|
||
{ yyval.ttype = build_unary_op (POSTDECREMENT_EXPR, yyvsp[-1].ttype, 0); ;
|
||
break;}
|
||
case 100:
|
||
#line 747 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 103:
|
||
#line 756 "c-parse.y"
|
||
{ c_mark_varargs ();
|
||
if (pedantic)
|
||
pedwarn ("ANSI C does not permit use of `varargs.h'"); ;
|
||
break;}
|
||
case 104:
|
||
#line 766 "c-parse.y"
|
||
{ ;
|
||
break;}
|
||
case 109:
|
||
#line 782 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 110:
|
||
#line 787 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 111:
|
||
#line 792 "c-parse.y"
|
||
{ shadow_tag_warned (yyvsp[-1].ttype, 1);
|
||
pedwarn ("empty declaration"); ;
|
||
break;}
|
||
case 112:
|
||
#line 795 "c-parse.y"
|
||
{ pedwarn ("empty declaration"); ;
|
||
break;}
|
||
case 113:
|
||
#line 804 "c-parse.y"
|
||
{ ;
|
||
break;}
|
||
case 118:
|
||
#line 819 "c-parse.y"
|
||
{ yyval.itype = suspend_momentary ();
|
||
pending_xref_error ();
|
||
declspec_stack = tree_cons (prefix_attributes,
|
||
current_declspecs,
|
||
declspec_stack);
|
||
split_specs_attrs (yyvsp[0].ttype,
|
||
¤t_declspecs, &prefix_attributes); ;
|
||
break;}
|
||
case 119:
|
||
#line 830 "c-parse.y"
|
||
{ prefix_attributes = chainon (prefix_attributes, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 120:
|
||
#line 835 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 121:
|
||
#line 840 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 122:
|
||
#line 845 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-1].itype); ;
|
||
break;}
|
||
case 123:
|
||
#line 850 "c-parse.y"
|
||
{ current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-1].itype); ;
|
||
break;}
|
||
case 124:
|
||
#line 855 "c-parse.y"
|
||
{ shadow_tag (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 125:
|
||
#line 857 "c-parse.y"
|
||
{ pedwarn ("empty declaration"); ;
|
||
break;}
|
||
case 126:
|
||
#line 859 "c-parse.y"
|
||
{ pedantic = yyvsp[-1].itype; ;
|
||
break;}
|
||
case 127:
|
||
#line 869 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 128:
|
||
#line 871 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
|
||
break;}
|
||
case 129:
|
||
#line 875 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 130:
|
||
#line 877 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 131:
|
||
#line 879 "c-parse.y"
|
||
{ if (extra_warnings)
|
||
warning ("`%s' is not at beginning of declaration",
|
||
IDENTIFIER_POINTER (yyvsp[0].ttype));
|
||
yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 132:
|
||
#line 884 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 133:
|
||
#line 889 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 134:
|
||
#line 891 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
|
||
break;}
|
||
case 135:
|
||
#line 896 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 136:
|
||
#line 898 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 137:
|
||
#line 900 "c-parse.y"
|
||
{ if (extra_warnings)
|
||
warning ("`%s' is not at beginning of declaration",
|
||
IDENTIFIER_POINTER (yyvsp[0].ttype));
|
||
yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 138:
|
||
#line 913 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 139:
|
||
#line 915 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, NULL_TREE); ;
|
||
break;}
|
||
case 140:
|
||
#line 917 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 141:
|
||
#line 919 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 142:
|
||
#line 924 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE);
|
||
TREE_STATIC (yyval.ttype) = 1; ;
|
||
break;}
|
||
case 143:
|
||
#line 927 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 144:
|
||
#line 929 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype);
|
||
TREE_STATIC (yyval.ttype) = 1; ;
|
||
break;}
|
||
case 145:
|
||
#line 932 "c-parse.y"
|
||
{ if (extra_warnings && TREE_STATIC (yyvsp[-1].ttype))
|
||
warning ("`%s' is not at beginning of declaration",
|
||
IDENTIFIER_POINTER (yyvsp[0].ttype));
|
||
yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype);
|
||
TREE_STATIC (yyval.ttype) = TREE_STATIC (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 146:
|
||
#line 946 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 147:
|
||
#line 948 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
|
||
break;}
|
||
case 148:
|
||
#line 952 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 149:
|
||
#line 954 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 152:
|
||
#line 964 "c-parse.y"
|
||
{ /* For a typedef name, record the meaning, not the name.
|
||
In case of `foo foo, bar;'. */
|
||
yyval.ttype = lookup_name (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 153:
|
||
#line 968 "c-parse.y"
|
||
{ yyval.ttype = TREE_TYPE (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 154:
|
||
#line 970 "c-parse.y"
|
||
{ yyval.ttype = groktypename (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 162:
|
||
#line 992 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 163:
|
||
#line 994 "c-parse.y"
|
||
{ if (TREE_CHAIN (yyvsp[-1].ttype)) yyvsp[-1].ttype = combine_strings (yyvsp[-1].ttype);
|
||
yyval.ttype = yyvsp[-1].ttype;
|
||
;
|
||
break;}
|
||
case 164:
|
||
#line 1001 "c-parse.y"
|
||
{ yyval.ttype = start_decl (yyvsp[-3].ttype, current_declspecs, 1,
|
||
yyvsp[-1].ttype, prefix_attributes);
|
||
start_init (yyval.ttype, yyvsp[-2].ttype, global_bindings_p ()); ;
|
||
break;}
|
||
case 165:
|
||
#line 1006 "c-parse.y"
|
||
{ finish_init ();
|
||
finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
|
||
break;}
|
||
case 166:
|
||
#line 1009 "c-parse.y"
|
||
{ tree d = start_decl (yyvsp[-2].ttype, current_declspecs, 0,
|
||
yyvsp[0].ttype, prefix_attributes);
|
||
finish_decl (d, NULL_TREE, yyvsp[-1].ttype);
|
||
;
|
||
break;}
|
||
case 167:
|
||
#line 1017 "c-parse.y"
|
||
{ yyval.ttype = start_decl (yyvsp[-3].ttype, current_declspecs, 1,
|
||
yyvsp[-1].ttype, prefix_attributes);
|
||
start_init (yyval.ttype, yyvsp[-2].ttype, global_bindings_p ()); ;
|
||
break;}
|
||
case 168:
|
||
#line 1022 "c-parse.y"
|
||
{ finish_init ();
|
||
decl_attributes (yyvsp[-1].ttype, yyvsp[-3].ttype, prefix_attributes);
|
||
finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
|
||
break;}
|
||
case 169:
|
||
#line 1026 "c-parse.y"
|
||
{ tree d = start_decl (yyvsp[-2].ttype, current_declspecs, 0,
|
||
yyvsp[0].ttype, prefix_attributes);
|
||
finish_decl (d, NULL_TREE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 170:
|
||
#line 1034 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 171:
|
||
#line 1036 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 172:
|
||
#line 1041 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 173:
|
||
#line 1043 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 174:
|
||
#line 1048 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[-2].ttype; ;
|
||
break;}
|
||
case 175:
|
||
#line 1053 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 176:
|
||
#line 1055 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 177:
|
||
#line 1060 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 178:
|
||
#line 1062 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 179:
|
||
#line 1064 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-3].ttype, build_tree_list (NULL_TREE, yyvsp[-1].ttype)); ;
|
||
break;}
|
||
case 180:
|
||
#line 1066 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-5].ttype, tree_cons (NULL_TREE, yyvsp[-3].ttype, yyvsp[-1].ttype)); ;
|
||
break;}
|
||
case 181:
|
||
#line 1068 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 187:
|
||
#line 1086 "c-parse.y"
|
||
{ really_start_incremental_init (NULL_TREE);
|
||
/* Note that the call to clear_momentary
|
||
is in process_init_element. */
|
||
push_momentary (); ;
|
||
break;}
|
||
case 188:
|
||
#line 1091 "c-parse.y"
|
||
{ yyval.ttype = pop_init_level (0);
|
||
if (yyval.ttype == error_mark_node
|
||
&& ! (yychar == STRING || yychar == CONSTANT))
|
||
pop_momentary ();
|
||
else
|
||
pop_momentary_nofree (); ;
|
||
break;}
|
||
case 189:
|
||
#line 1099 "c-parse.y"
|
||
{ yyval.ttype = error_mark_node; ;
|
||
break;}
|
||
case 190:
|
||
#line 1105 "c-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids empty initializer braces"); ;
|
||
break;}
|
||
case 194:
|
||
#line 1119 "c-parse.y"
|
||
{ process_init_element (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 195:
|
||
#line 1121 "c-parse.y"
|
||
{ push_init_level (0); ;
|
||
break;}
|
||
case 196:
|
||
#line 1123 "c-parse.y"
|
||
{ process_init_element (pop_init_level (0)); ;
|
||
break;}
|
||
case 198:
|
||
#line 1129 "c-parse.y"
|
||
{ set_init_index (yyvsp[-4].ttype, yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 200:
|
||
#line 1132 "c-parse.y"
|
||
{ set_init_index (yyvsp[-2].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 202:
|
||
#line 1135 "c-parse.y"
|
||
{ set_init_index (yyvsp[-1].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 204:
|
||
#line 1138 "c-parse.y"
|
||
{ set_init_label (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 206:
|
||
#line 1141 "c-parse.y"
|
||
{ set_init_label (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 208:
|
||
#line 1147 "c-parse.y"
|
||
{ push_c_function_context ();
|
||
if (! start_function (current_declspecs, yyvsp[0].ttype,
|
||
prefix_attributes, NULL_TREE, 1))
|
||
{
|
||
pop_c_function_context ();
|
||
YYERROR1;
|
||
}
|
||
reinit_parse_for_function (); ;
|
||
break;}
|
||
case 209:
|
||
#line 1156 "c-parse.y"
|
||
{ store_parm_decls (); ;
|
||
break;}
|
||
case 210:
|
||
#line 1164 "c-parse.y"
|
||
{ finish_function (1);
|
||
pop_c_function_context (); ;
|
||
break;}
|
||
case 211:
|
||
#line 1170 "c-parse.y"
|
||
{ push_c_function_context ();
|
||
if (! start_function (current_declspecs, yyvsp[0].ttype,
|
||
prefix_attributes, NULL_TREE, 1))
|
||
{
|
||
pop_c_function_context ();
|
||
YYERROR1;
|
||
}
|
||
reinit_parse_for_function (); ;
|
||
break;}
|
||
case 212:
|
||
#line 1179 "c-parse.y"
|
||
{ store_parm_decls (); ;
|
||
break;}
|
||
case 213:
|
||
#line 1187 "c-parse.y"
|
||
{ finish_function (1);
|
||
pop_c_function_context (); ;
|
||
break;}
|
||
case 216:
|
||
#line 1203 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[-1].ttype; ;
|
||
break;}
|
||
case 217:
|
||
#line 1205 "c-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 218:
|
||
#line 1210 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 219:
|
||
#line 1212 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 220:
|
||
#line 1214 "c-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 221:
|
||
#line 1221 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 223:
|
||
#line 1232 "c-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 224:
|
||
#line 1237 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 225:
|
||
#line 1239 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 226:
|
||
#line 1241 "c-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 227:
|
||
#line 1248 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 229:
|
||
#line 1257 "c-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 230:
|
||
#line 1262 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[-1].ttype; ;
|
||
break;}
|
||
case 231:
|
||
#line 1264 "c-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 232:
|
||
#line 1266 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 233:
|
||
#line 1268 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 234:
|
||
#line 1275 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 236:
|
||
#line 1281 "c-parse.y"
|
||
{ yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
|
||
/* Start scope of tag before parsing components. */
|
||
;
|
||
break;}
|
||
case 237:
|
||
#line 1285 "c-parse.y"
|
||
{ yyval.ttype = finish_struct (yyvsp[-3].ttype, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 238:
|
||
#line 1287 "c-parse.y"
|
||
{ yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
|
||
yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 239:
|
||
#line 1291 "c-parse.y"
|
||
{ yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 240:
|
||
#line 1293 "c-parse.y"
|
||
{ yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 241:
|
||
#line 1295 "c-parse.y"
|
||
{ yyval.ttype = finish_struct (yyvsp[-3].ttype, yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 242:
|
||
#line 1297 "c-parse.y"
|
||
{ yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
|
||
yyvsp[-2].ttype, yyvsp[0].ttype);
|
||
;
|
||
break;}
|
||
case 243:
|
||
#line 1301 "c-parse.y"
|
||
{ yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 244:
|
||
#line 1303 "c-parse.y"
|
||
{ yyvsp[0].itype = suspend_momentary ();
|
||
yyval.ttype = start_enum (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 245:
|
||
#line 1306 "c-parse.y"
|
||
{ yyval.ttype = finish_enum (yyvsp[-4].ttype, nreverse (yyvsp[-3].ttype), yyvsp[0].ttype);
|
||
resume_momentary (yyvsp[-5].itype); ;
|
||
break;}
|
||
case 246:
|
||
#line 1309 "c-parse.y"
|
||
{ yyvsp[0].itype = suspend_momentary ();
|
||
yyval.ttype = start_enum (NULL_TREE); ;
|
||
break;}
|
||
case 247:
|
||
#line 1312 "c-parse.y"
|
||
{ yyval.ttype = finish_enum (yyvsp[-4].ttype, nreverse (yyvsp[-3].ttype), yyvsp[0].ttype);
|
||
resume_momentary (yyvsp[-5].itype); ;
|
||
break;}
|
||
case 248:
|
||
#line 1315 "c-parse.y"
|
||
{ yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 252:
|
||
#line 1326 "c-parse.y"
|
||
{ if (pedantic) pedwarn ("comma at end of enumerator list"); ;
|
||
break;}
|
||
case 253:
|
||
#line 1331 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 254:
|
||
#line 1333 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
|
||
pedwarn ("no semicolon at end of struct or union"); ;
|
||
break;}
|
||
case 255:
|
||
#line 1338 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 256:
|
||
#line 1340 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 257:
|
||
#line 1342 "c-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("extra semicolon in struct or union specified"); ;
|
||
break;}
|
||
case 258:
|
||
#line 1357 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-1].itype); ;
|
||
break;}
|
||
case 259:
|
||
#line 1363 "c-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids member declarations with no members");
|
||
yyval.ttype = grokfield(yyvsp[-1].filename, yyvsp[0].lineno, NULL, current_declspecs, NULL_TREE); ;
|
||
break;}
|
||
case 260:
|
||
#line 1367 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-1].itype); ;
|
||
break;}
|
||
case 261:
|
||
#line 1373 "c-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids member declarations with no members");
|
||
shadow_tag(yyvsp[0].ttype);
|
||
yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 262:
|
||
#line 1378 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 263:
|
||
#line 1380 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
pedantic = yyvsp[-1].itype; ;
|
||
break;}
|
||
case 265:
|
||
#line 1387 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 266:
|
||
#line 1392 "c-parse.y"
|
||
{ yyval.ttype = grokfield (yyvsp[-3].filename, yyvsp[-2].lineno, yyvsp[-1].ttype, current_declspecs, NULL_TREE);
|
||
decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ;
|
||
break;}
|
||
case 267:
|
||
#line 1396 "c-parse.y"
|
||
{ yyval.ttype = grokfield (yyvsp[-5].filename, yyvsp[-4].lineno, yyvsp[-3].ttype, current_declspecs, yyvsp[-1].ttype);
|
||
decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ;
|
||
break;}
|
||
case 268:
|
||
#line 1399 "c-parse.y"
|
||
{ yyval.ttype = grokfield (yyvsp[-4].filename, yyvsp[-3].lineno, NULL_TREE, current_declspecs, yyvsp[-1].ttype);
|
||
decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ;
|
||
break;}
|
||
case 270:
|
||
#line 1411 "c-parse.y"
|
||
{ if (yyvsp[-2].ttype == error_mark_node)
|
||
yyval.ttype = yyvsp[-2].ttype;
|
||
else
|
||
yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 271:
|
||
#line 1416 "c-parse.y"
|
||
{ yyval.ttype = error_mark_node; ;
|
||
break;}
|
||
case 272:
|
||
#line 1422 "c-parse.y"
|
||
{ yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 273:
|
||
#line 1424 "c-parse.y"
|
||
{ yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 274:
|
||
#line 1429 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 275:
|
||
#line 1431 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 276:
|
||
#line 1436 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 278:
|
||
#line 1442 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 279:
|
||
#line 1444 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 280:
|
||
#line 1449 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 281:
|
||
#line 1451 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 282:
|
||
#line 1456 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[-1].ttype; ;
|
||
break;}
|
||
case 283:
|
||
#line 1459 "c-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 284:
|
||
#line 1461 "c-parse.y"
|
||
{ yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 285:
|
||
#line 1463 "c-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 286:
|
||
#line 1465 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 287:
|
||
#line 1467 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 288:
|
||
#line 1469 "c-parse.y"
|
||
{ yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
|
||
break;}
|
||
case 289:
|
||
#line 1471 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 290:
|
||
#line 1473 "c-parse.y"
|
||
{ yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
|
||
break;}
|
||
case 291:
|
||
#line 1484 "c-parse.y"
|
||
{
|
||
if (pedantic && yyvsp[0].ends_in_label)
|
||
pedwarn ("ANSI C forbids label at end of compound statement");
|
||
;
|
||
break;}
|
||
case 293:
|
||
#line 1493 "c-parse.y"
|
||
{ yyval.ends_in_label = yyvsp[0].ends_in_label; ;
|
||
break;}
|
||
case 294:
|
||
#line 1495 "c-parse.y"
|
||
{ yyval.ends_in_label = 0; ;
|
||
break;}
|
||
case 298:
|
||
#line 1507 "c-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
pushlevel (0);
|
||
clear_last_expr ();
|
||
push_momentary ();
|
||
expand_start_bindings (0);
|
||
;
|
||
break;}
|
||
case 300:
|
||
#line 1520 "c-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids label declarations"); ;
|
||
break;}
|
||
case 303:
|
||
#line 1531 "c-parse.y"
|
||
{ tree link;
|
||
for (link = yyvsp[-1].ttype; link; link = TREE_CHAIN (link))
|
||
{
|
||
tree label = shadow_label (TREE_VALUE (link));
|
||
C_DECLARED_LABEL_FLAG (label) = 1;
|
||
declare_nonlocal_label (label);
|
||
}
|
||
;
|
||
break;}
|
||
case 304:
|
||
#line 1545 "c-parse.y"
|
||
{;
|
||
break;}
|
||
case 306:
|
||
#line 1549 "c-parse.y"
|
||
{ compstmt_count++; ;
|
||
break;}
|
||
case 307:
|
||
#line 1552 "c-parse.y"
|
||
{ yyval.ttype = convert (void_type_node, integer_zero_node); ;
|
||
break;}
|
||
case 308:
|
||
#line 1554 "c-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
expand_end_bindings (getdecls (), 1, 0);
|
||
yyval.ttype = poplevel (1, 1, 0);
|
||
if (yychar == CONSTANT || yychar == STRING)
|
||
pop_momentary_nofree ();
|
||
else
|
||
pop_momentary (); ;
|
||
break;}
|
||
case 309:
|
||
#line 1562 "c-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
expand_end_bindings (getdecls (), kept_level_p (), 0);
|
||
yyval.ttype = poplevel (kept_level_p (), 0, 0);
|
||
if (yychar == CONSTANT || yychar == STRING)
|
||
pop_momentary_nofree ();
|
||
else
|
||
pop_momentary (); ;
|
||
break;}
|
||
case 310:
|
||
#line 1570 "c-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
expand_end_bindings (getdecls (), kept_level_p (), 0);
|
||
yyval.ttype = poplevel (kept_level_p (), 0, 0);
|
||
if (yychar == CONSTANT || yychar == STRING)
|
||
pop_momentary_nofree ();
|
||
else
|
||
pop_momentary (); ;
|
||
break;}
|
||
case 313:
|
||
#line 1590 "c-parse.y"
|
||
{ emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
|
||
c_expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0,
|
||
compstmt_count);
|
||
yyval.itype = stmt_count;
|
||
if_stmt_file = yyvsp[-5].filename;
|
||
if_stmt_line = yyvsp[-4].lineno;
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 314:
|
||
#line 1604 "c-parse.y"
|
||
{ stmt_count++;
|
||
compstmt_count++;
|
||
emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
|
||
/* See comment in `while' alternative, above. */
|
||
emit_nop ();
|
||
expand_start_loop_continue_elsewhere (1);
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 315:
|
||
#line 1612 "c-parse.y"
|
||
{ expand_loop_continue_here (); ;
|
||
break;}
|
||
case 316:
|
||
#line 1616 "c-parse.y"
|
||
{ yyval.filename = input_filename; ;
|
||
break;}
|
||
case 317:
|
||
#line 1620 "c-parse.y"
|
||
{ yyval.lineno = lineno; ;
|
||
break;}
|
||
case 318:
|
||
#line 1625 "c-parse.y"
|
||
{ ;
|
||
break;}
|
||
case 319:
|
||
#line 1630 "c-parse.y"
|
||
{ ;
|
||
break;}
|
||
case 320:
|
||
#line 1635 "c-parse.y"
|
||
{ yyval.ends_in_label = yyvsp[0].ends_in_label; ;
|
||
break;}
|
||
case 321:
|
||
#line 1640 "c-parse.y"
|
||
{ yyval.ends_in_label = 0; ;
|
||
break;}
|
||
case 322:
|
||
#line 1642 "c-parse.y"
|
||
{ yyval.ends_in_label = 1; ;
|
||
break;}
|
||
case 323:
|
||
#line 1648 "c-parse.y"
|
||
{ stmt_count++; ;
|
||
break;}
|
||
case 325:
|
||
#line 1651 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
|
||
/* It appears that this should not be done--that a non-lvalue array
|
||
shouldn't get an error if the value isn't used.
|
||
Section 3.2.2.1 says that an array lvalue gets converted to a pointer
|
||
if it appears as a top-level expression,
|
||
but says nothing about non-lvalue arrays. */
|
||
#if 0
|
||
/* Call default_conversion to get an error
|
||
on referring to a register array if pedantic. */
|
||
if (TREE_CODE (TREE_TYPE (yyvsp[-1].ttype)) == ARRAY_TYPE
|
||
|| TREE_CODE (TREE_TYPE (yyvsp[-1].ttype)) == FUNCTION_TYPE)
|
||
yyvsp[-1].ttype = default_conversion (yyvsp[-1].ttype);
|
||
#endif
|
||
iterator_expand (yyvsp[-1].ttype);
|
||
clear_momentary (); ;
|
||
break;}
|
||
case 326:
|
||
#line 1668 "c-parse.y"
|
||
{ c_expand_start_else ();
|
||
yyvsp[-1].itype = stmt_count;
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 327:
|
||
#line 1672 "c-parse.y"
|
||
{ c_expand_end_cond ();
|
||
if (extra_warnings && stmt_count == yyvsp[-3].itype)
|
||
warning ("empty body in an else-statement"); ;
|
||
break;}
|
||
case 328:
|
||
#line 1676 "c-parse.y"
|
||
{ c_expand_end_cond ();
|
||
/* This warning is here instead of in simple_if, because we
|
||
do not want a warning if an empty if is followed by an
|
||
else statement. Increment stmt_count so we don't
|
||
give a second error if this is a nested `if'. */
|
||
if (extra_warnings && stmt_count++ == yyvsp[0].itype)
|
||
warning_with_file_and_line (if_stmt_file, if_stmt_line,
|
||
"empty body in an if-statement"); ;
|
||
break;}
|
||
case 329:
|
||
#line 1688 "c-parse.y"
|
||
{ c_expand_end_cond (); ;
|
||
break;}
|
||
case 330:
|
||
#line 1690 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-2].filename, yyvsp[-1].lineno);
|
||
/* The emit_nop used to come before emit_line_note,
|
||
but that made the nop seem like part of the preceding line.
|
||
And that was confusing when the preceding line was
|
||
inside of an if statement and was not really executed.
|
||
I think it ought to work to put the nop after the line number.
|
||
We will see. --rms, July 15, 1991. */
|
||
emit_nop (); ;
|
||
break;}
|
||
case 331:
|
||
#line 1700 "c-parse.y"
|
||
{ /* Don't start the loop till we have succeeded
|
||
in parsing the end test. This is to make sure
|
||
that we end every loop we start. */
|
||
expand_start_loop (1);
|
||
emit_line_note (input_filename, lineno);
|
||
expand_exit_loop_if_false (NULL_PTR,
|
||
truthvalue_conversion (yyvsp[-1].ttype));
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 332:
|
||
#line 1709 "c-parse.y"
|
||
{ expand_end_loop (); ;
|
||
break;}
|
||
case 333:
|
||
#line 1712 "c-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
expand_exit_loop_if_false (NULL_PTR,
|
||
truthvalue_conversion (yyvsp[-2].ttype));
|
||
expand_end_loop ();
|
||
clear_momentary (); ;
|
||
break;}
|
||
case 334:
|
||
#line 1719 "c-parse.y"
|
||
{ expand_end_loop ();
|
||
clear_momentary (); ;
|
||
break;}
|
||
case 335:
|
||
#line 1723 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
|
||
/* See comment in `while' alternative, above. */
|
||
emit_nop ();
|
||
if (yyvsp[-1].ttype) c_expand_expr_stmt (yyvsp[-1].ttype);
|
||
/* Next step is to call expand_start_loop_continue_elsewhere,
|
||
but wait till after we parse the entire for (...).
|
||
Otherwise, invalid input might cause us to call that
|
||
fn without calling expand_end_loop. */
|
||
;
|
||
break;}
|
||
case 336:
|
||
#line 1735 "c-parse.y"
|
||
{ yyvsp[0].lineno = lineno;
|
||
yyval.filename = input_filename; ;
|
||
break;}
|
||
case 337:
|
||
#line 1738 "c-parse.y"
|
||
{
|
||
/* Start the loop. Doing this after parsing
|
||
all the expressions ensures we will end the loop. */
|
||
expand_start_loop_continue_elsewhere (1);
|
||
/* Emit the end-test, with a line number. */
|
||
emit_line_note (yyvsp[-2].filename, yyvsp[-3].lineno);
|
||
if (yyvsp[-4].ttype)
|
||
expand_exit_loop_if_false (NULL_PTR,
|
||
truthvalue_conversion (yyvsp[-4].ttype));
|
||
/* Don't let the tree nodes for $9 be discarded by
|
||
clear_momentary during the parsing of the next stmt. */
|
||
push_momentary ();
|
||
yyvsp[-3].lineno = lineno;
|
||
yyvsp[-2].filename = input_filename;
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 338:
|
||
#line 1754 "c-parse.y"
|
||
{ /* Emit the increment expression, with a line number. */
|
||
emit_line_note (yyvsp[-4].filename, yyvsp[-5].lineno);
|
||
expand_loop_continue_here ();
|
||
if (yyvsp[-3].ttype)
|
||
c_expand_expr_stmt (yyvsp[-3].ttype);
|
||
if (yychar == CONSTANT || yychar == STRING)
|
||
pop_momentary_nofree ();
|
||
else
|
||
pop_momentary ();
|
||
expand_end_loop (); ;
|
||
break;}
|
||
case 339:
|
||
#line 1765 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
|
||
c_expand_start_case (yyvsp[-1].ttype);
|
||
/* Don't let the tree nodes for $3 be discarded by
|
||
clear_momentary during the parsing of the next stmt. */
|
||
push_momentary ();
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 340:
|
||
#line 1773 "c-parse.y"
|
||
{ expand_end_case (yyvsp[-3].ttype);
|
||
if (yychar == CONSTANT || yychar == STRING)
|
||
pop_momentary_nofree ();
|
||
else
|
||
pop_momentary (); ;
|
||
break;}
|
||
case 341:
|
||
#line 1779 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
|
||
if ( ! expand_exit_something ())
|
||
error ("break statement not within loop or switch"); ;
|
||
break;}
|
||
case 342:
|
||
#line 1784 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
|
||
if (! expand_continue_loop (NULL_PTR))
|
||
error ("continue statement not within a loop"); ;
|
||
break;}
|
||
case 343:
|
||
#line 1789 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
|
||
c_expand_return (NULL_TREE); ;
|
||
break;}
|
||
case 344:
|
||
#line 1793 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
|
||
c_expand_return (yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 345:
|
||
#line 1797 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-7].filename, yyvsp[-6].lineno);
|
||
STRIP_NOPS (yyvsp[-2].ttype);
|
||
if ((TREE_CODE (yyvsp[-2].ttype) == ADDR_EXPR
|
||
&& TREE_CODE (TREE_OPERAND (yyvsp[-2].ttype, 0)) == STRING_CST)
|
||
|| TREE_CODE (yyvsp[-2].ttype) == STRING_CST)
|
||
expand_asm (yyvsp[-2].ttype);
|
||
else
|
||
error ("argument of `asm' is not a constant string"); ;
|
||
break;}
|
||
case 346:
|
||
#line 1808 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-9].filename, yyvsp[-8].lineno);
|
||
c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE,
|
||
yyvsp[-6].ttype == ridpointers[(int)RID_VOLATILE],
|
||
input_filename, lineno); ;
|
||
break;}
|
||
case 347:
|
||
#line 1815 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-11].filename, yyvsp[-10].lineno);
|
||
c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE,
|
||
yyvsp[-8].ttype == ridpointers[(int)RID_VOLATILE],
|
||
input_filename, lineno); ;
|
||
break;}
|
||
case 348:
|
||
#line 1823 "c-parse.y"
|
||
{ stmt_count++;
|
||
emit_line_note (yyvsp[-13].filename, yyvsp[-12].lineno);
|
||
c_expand_asm_operands (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype,
|
||
yyvsp[-10].ttype == ridpointers[(int)RID_VOLATILE],
|
||
input_filename, lineno); ;
|
||
break;}
|
||
case 349:
|
||
#line 1829 "c-parse.y"
|
||
{ tree decl;
|
||
stmt_count++;
|
||
emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
|
||
decl = lookup_label (yyvsp[-1].ttype);
|
||
if (decl != 0)
|
||
{
|
||
TREE_USED (decl) = 1;
|
||
expand_goto (decl);
|
||
}
|
||
;
|
||
break;}
|
||
case 350:
|
||
#line 1840 "c-parse.y"
|
||
{ if (pedantic)
|
||
pedwarn ("ANSI C forbids `goto *expr;'");
|
||
stmt_count++;
|
||
emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
|
||
expand_computed_goto (convert (ptr_type_node, yyvsp[-1].ttype)); ;
|
||
break;}
|
||
case 353:
|
||
#line 1855 "c-parse.y"
|
||
{
|
||
/* The value returned by this action is */
|
||
/* 1 if everything is OK */
|
||
/* 0 in case of error or already bound iterator */
|
||
|
||
yyval.itype = 0;
|
||
if (TREE_CODE (yyvsp[-1].ttype) != VAR_DECL)
|
||
error ("invalid `for (ITERATOR)' syntax");
|
||
else if (! ITERATOR_P (yyvsp[-1].ttype))
|
||
error ("`%s' is not an iterator",
|
||
IDENTIFIER_POINTER (DECL_NAME (yyvsp[-1].ttype)));
|
||
else if (ITERATOR_BOUND_P (yyvsp[-1].ttype))
|
||
error ("`for (%s)' inside expansion of same iterator",
|
||
IDENTIFIER_POINTER (DECL_NAME (yyvsp[-1].ttype)));
|
||
else
|
||
{
|
||
yyval.itype = 1;
|
||
iterator_for_loop_start (yyvsp[-1].ttype);
|
||
}
|
||
;
|
||
break;}
|
||
case 354:
|
||
#line 1876 "c-parse.y"
|
||
{
|
||
if (yyvsp[-1].itype)
|
||
iterator_for_loop_end (yyvsp[-3].ttype);
|
||
;
|
||
break;}
|
||
case 355:
|
||
#line 1911 "c-parse.y"
|
||
{ register tree value = check_case_value (yyvsp[-1].ttype);
|
||
register tree label
|
||
= build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
|
||
|
||
stmt_count++;
|
||
|
||
if (value != error_mark_node)
|
||
{
|
||
tree duplicate;
|
||
int success = pushcase (value, convert_and_check,
|
||
label, &duplicate);
|
||
if (success == 1)
|
||
error ("case label not within a switch statement");
|
||
else if (success == 2)
|
||
{
|
||
error ("duplicate case value");
|
||
error_with_decl (duplicate, "this is the first entry for that value");
|
||
}
|
||
else if (success == 3)
|
||
warning ("case value out of range");
|
||
else if (success == 5)
|
||
error ("case label within scope of cleanup or variable array");
|
||
}
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 356:
|
||
#line 1936 "c-parse.y"
|
||
{ register tree value1 = check_case_value (yyvsp[-3].ttype);
|
||
register tree value2 = check_case_value (yyvsp[-1].ttype);
|
||
register tree label
|
||
= build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
|
||
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids case ranges");
|
||
stmt_count++;
|
||
|
||
if (value1 != error_mark_node && value2 != error_mark_node)
|
||
{
|
||
tree duplicate;
|
||
int success = pushcase_range (value1, value2,
|
||
convert_and_check, label,
|
||
&duplicate);
|
||
if (success == 1)
|
||
error ("case label not within a switch statement");
|
||
else if (success == 2)
|
||
{
|
||
error ("duplicate case value");
|
||
error_with_decl (duplicate, "this is the first entry for that value");
|
||
}
|
||
else if (success == 3)
|
||
warning ("case value out of range");
|
||
else if (success == 4)
|
||
warning ("empty case range");
|
||
else if (success == 5)
|
||
error ("case label within scope of cleanup or variable array");
|
||
}
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 357:
|
||
#line 1967 "c-parse.y"
|
||
{
|
||
tree duplicate;
|
||
register tree label
|
||
= build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
|
||
int success = pushcase (NULL_TREE, 0, label, &duplicate);
|
||
stmt_count++;
|
||
if (success == 1)
|
||
error ("default label not within a switch statement");
|
||
else if (success == 2)
|
||
{
|
||
error ("multiple default labels in one switch");
|
||
error_with_decl (duplicate, "this is the first default label");
|
||
}
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 358:
|
||
#line 1982 "c-parse.y"
|
||
{ tree label = define_label (input_filename, lineno, yyvsp[-1].ttype);
|
||
stmt_count++;
|
||
emit_nop ();
|
||
if (label)
|
||
expand_label (label);
|
||
position_after_white_space (); ;
|
||
break;}
|
||
case 359:
|
||
#line 1994 "c-parse.y"
|
||
{ emit_line_note (input_filename, lineno);
|
||
yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 360:
|
||
#line 1997 "c-parse.y"
|
||
{ emit_line_note (input_filename, lineno); ;
|
||
break;}
|
||
case 361:
|
||
#line 2002 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 363:
|
||
#line 2009 "c-parse.y"
|
||
{ yyval.ttype = NULL_TREE; ;
|
||
break;}
|
||
case 366:
|
||
#line 2016 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 367:
|
||
#line 2021 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 368:
|
||
#line 2026 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ;
|
||
break;}
|
||
case 369:
|
||
#line 2028 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ;
|
||
break;}
|
||
case 370:
|
||
#line 2034 "c-parse.y"
|
||
{ pushlevel (0);
|
||
clear_parm_order ();
|
||
declare_parm_level (0); ;
|
||
break;}
|
||
case 371:
|
||
#line 2038 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
parmlist_tags_warning ();
|
||
poplevel (0, 0, 0); ;
|
||
break;}
|
||
case 373:
|
||
#line 2046 "c-parse.y"
|
||
{ tree parm;
|
||
if (pedantic)
|
||
pedwarn ("ANSI C forbids forward parameter declarations");
|
||
/* Mark the forward decls as such. */
|
||
for (parm = getdecls (); parm; parm = TREE_CHAIN (parm))
|
||
TREE_ASM_WRITTEN (parm) = 1;
|
||
clear_parm_order (); ;
|
||
break;}
|
||
case 374:
|
||
#line 2054 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype; ;
|
||
break;}
|
||
case 375:
|
||
#line 2056 "c-parse.y"
|
||
{ yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
|
||
break;}
|
||
case 376:
|
||
#line 2062 "c-parse.y"
|
||
{ yyval.ttype = get_parm_info (0); ;
|
||
break;}
|
||
case 377:
|
||
#line 2064 "c-parse.y"
|
||
{ yyval.ttype = get_parm_info (0);
|
||
/* Gcc used to allow this as an extension. However, it does
|
||
not work for all targets, and thus has been disabled.
|
||
Also, since func (...) and func () are indistinguishable,
|
||
it caused problems with the code in expand_builtin which
|
||
tries to verify that BUILT_IN_NEXT_ARG is being used
|
||
correctly. */
|
||
error ("ANSI C requires a named argument before `...'");
|
||
;
|
||
break;}
|
||
case 378:
|
||
#line 2074 "c-parse.y"
|
||
{ yyval.ttype = get_parm_info (1); ;
|
||
break;}
|
||
case 379:
|
||
#line 2076 "c-parse.y"
|
||
{ yyval.ttype = get_parm_info (0); ;
|
||
break;}
|
||
case 380:
|
||
#line 2081 "c-parse.y"
|
||
{ push_parm_decl (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 381:
|
||
#line 2083 "c-parse.y"
|
||
{ push_parm_decl (yyvsp[0].ttype); ;
|
||
break;}
|
||
case 382:
|
||
#line 2090 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (build_tree_list (current_declspecs,
|
||
yyvsp[-1].ttype),
|
||
build_tree_list (prefix_attributes,
|
||
yyvsp[0].ttype));
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 383:
|
||
#line 2099 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (build_tree_list (current_declspecs,
|
||
yyvsp[-1].ttype),
|
||
build_tree_list (prefix_attributes,
|
||
yyvsp[0].ttype));
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 384:
|
||
#line 2108 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (build_tree_list (current_declspecs,
|
||
yyvsp[-1].ttype),
|
||
build_tree_list (prefix_attributes,
|
||
yyvsp[0].ttype));
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 385:
|
||
#line 2117 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (build_tree_list (current_declspecs,
|
||
yyvsp[-1].ttype),
|
||
build_tree_list (prefix_attributes,
|
||
yyvsp[0].ttype));
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 386:
|
||
#line 2127 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (build_tree_list (current_declspecs,
|
||
yyvsp[-1].ttype),
|
||
build_tree_list (prefix_attributes,
|
||
yyvsp[0].ttype));
|
||
current_declspecs = TREE_VALUE (declspec_stack);
|
||
prefix_attributes = TREE_PURPOSE (declspec_stack);
|
||
declspec_stack = TREE_CHAIN (declspec_stack);
|
||
resume_momentary (yyvsp[-2].itype); ;
|
||
break;}
|
||
case 387:
|
||
#line 2141 "c-parse.y"
|
||
{ pushlevel (0);
|
||
clear_parm_order ();
|
||
declare_parm_level (1); ;
|
||
break;}
|
||
case 388:
|
||
#line 2145 "c-parse.y"
|
||
{ yyval.ttype = yyvsp[0].ttype;
|
||
parmlist_tags_warning ();
|
||
poplevel (0, 0, 0); ;
|
||
break;}
|
||
case 390:
|
||
#line 2153 "c-parse.y"
|
||
{ tree t;
|
||
for (t = yyvsp[-1].ttype; t; t = TREE_CHAIN (t))
|
||
if (TREE_VALUE (t) == NULL_TREE)
|
||
error ("`...' in old-style identifier list");
|
||
yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ;
|
||
break;}
|
||
case 391:
|
||
#line 2163 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 392:
|
||
#line 2165 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
|
||
break;}
|
||
case 393:
|
||
#line 2171 "c-parse.y"
|
||
{ yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
|
||
break;}
|
||
case 394:
|
||
#line 2173 "c-parse.y"
|
||
{ yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
|
||
break;}
|
||
case 395:
|
||
#line 2178 "c-parse.y"
|
||
{ yyval.itype = pedantic;
|
||
pedantic = 0; ;
|
||
break;}
|
||
}
|
||
/* the action file gets copied in in place of this dollarsign */
|
||
#line 487 "/usr/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 2182 "c-parse.y"
|
||
|