c-parse.c 154 KB
Newer Older
Jeff Law committed
1

2
/*  A Bison parser, made from c-parse.y
3 4
 by  GNU Bison version 1.27
  */
Jeff Law committed
5 6 7

#define YYBISON 1  /* Identify Bison output.  */

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 36 37 38 39 40
#define	IDENTIFIER	257
#define	TYPENAME	258
#define	SCSPEC	259
#define	TYPESPEC	260
#define	TYPE_QUAL	261
#define	CONSTANT	262
#define	STRING	263
#define	ELLIPSIS	264
#define	SIZEOF	265
#define	ENUM	266
#define	STRUCT	267
#define	UNION	268
#define	IF	269
#define	ELSE	270
#define	WHILE	271
#define	DO	272
#define	FOR	273
#define	SWITCH	274
#define	CASE	275
#define	DEFAULT	276
#define	BREAK	277
#define	CONTINUE	278
#define	RETURN	279
#define	GOTO	280
#define	ASM_KEYWORD	281
#define	TYPEOF	282
#define	ALIGNOF	283
#define	ATTRIBUTE	284
#define	EXTENSION	285
#define	LABEL	286
#define	REALPART	287
#define	IMAGPART	288
#define	VA_ARG	289
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
#define	PTR_VALUE	290
#define	PTR_BASE	291
#define	PTR_EXTENT	292
#define	END_OF_LINE	293
#define	ASSIGN	294
#define	OROR	295
#define	ANDAND	296
#define	EQCOMPARE	297
#define	ARITHCOMPARE	298
#define	LSHIFT	299
#define	RSHIFT	300
#define	UNARY	301
#define	PLUSPLUS	302
#define	MINUSMINUS	303
#define	HYPERUNARY	304
#define	POINTSAT	305
#define	INTERFACE	306
#define	IMPLEMENTATION	307
#define	END	308
#define	SELECTOR	309
#define	DEFS	310
#define	ENCODE	311
#define	CLASSNAME	312
#define	PUBLIC	313
#define	PRIVATE	314
#define	PROTECTED	315
#define	PROTOCOL	316
#define	OBJECTNAME	317
#define	CLASS	318
#define	ALIAS	319
#define	OBJC_STRING	320
72

Jason Merrill committed
73
#line 34 "c-parse.y"
Jeff Law committed
74

75
#include "config.h"
76
#include "system.h"
Jeff Law committed
77 78 79 80 81 82
#include <setjmp.h>
#include "tree.h"
#include "input.h"
#include "c-lex.h"
#include "c-tree.h"
#include "flags.h"
83
#include "output.h"
84
#include "toplev.h"
85 86
#include "ggc.h"
  
Jeff Law committed
87 88 89 90 91 92 93
#ifdef MULTIBYTE_CHARS
#include <locale.h>
#endif


/* Since parsers are distinct for each language, put the language string
   definition here.  */
94
const char * const language_string = "GNU C";
Jeff Law committed
95 96 97 98 99 100 101

/* Like YYERROR but do call yyerror.  */
#define YYERROR1 { yyerror ("syntax error"); YYERROR; }

/* Cause the `yydebug' variable to be defined.  */
#define YYDEBUG 1

Jason Merrill committed
102
#line 65 "c-parse.y"
Jeff Law committed
103 104
typedef union {long itype; tree ttype; enum tree_code code;
	char *filename; int lineno; int ends_in_label; } YYSTYPE;
105
#line 186 "c-parse.y"
Jeff Law committed
106

107 108
/* Number of statements (loosely speaking) and compound statements 
   seen so far.  */
Jeff Law committed
109
static int stmt_count;
110 111
static int compstmt_count;
  
Jeff Law committed
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
/* 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;

127 128
/* For __extension__, save/restore the warning flags which are
   controlled by __extension__.  */
129
#define SAVE_WARN_FLAGS()	\
130
	size_int (pedantic | (warn_pointer_arith << 1))
131
#define RESTORE_WARN_FLAGS(tval) \
132
  do {                                     \
133
    int val = tree_low_cst (tval, 0);      \
134 135 136 137
    pedantic = val & 1;                    \
    warn_pointer_arith = (val >> 1) & 1;   \
  } while (0)

Jeff Law committed
138 139 140 141

/* Tell yyparse how to print a token's value, if yydebug is set.  */

#define YYPRINT(FILE,YYCHAR,YYLVAL) yyprint(FILE,YYCHAR,YYLVAL)
142
extern void yyprint			PARAMS ((FILE *, int, YYSTYPE));
143 144 145 146 147 148 149 150 151 152

/* Add GC roots for variables local to this file.  */
void
c_parse_init ()
{
  ggc_add_tree_root (&declspec_stack, 1);
  ggc_add_tree_root (&current_declspecs, 1);
  ggc_add_tree_root (&prefix_attributes, 1);
}

Jeff Law committed
153 154 155 156 157 158 159 160 161 162
#include <stdio.h>

#ifndef __cplusplus
#ifndef __STDC__
#define const
#endif
#endif



163
#define	YYFINAL		706
Jeff Law committed
164
#define	YYFLAG		-32768
165
#define	YYNTBASE	89
Jeff Law committed
166

167
#define YYTRANSLATE(x) ((unsigned)(x) <= 320 ? yytranslate[x] : 247)
Jeff Law committed
168 169 170 171 172

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,
173 174 175 176
     2,     2,    85,     2,     2,     2,    57,    48,     2,    64,
    81,    55,    53,    86,    54,    63,    56,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,    43,    82,     2,
    41,     2,    42,     2,     2,     2,     2,     2,     2,     2,
Jeff Law committed
177 178
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
179
    65,     2,    88,    47,     2,     2,     2,     2,     2,     2,
Jeff Law committed
180 181
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
182
     2,     2,    87,    46,    83,    84,     2,     2,     2,     2,
Jeff Law committed
183 184 185 186 187 188 189 190 191 192 193 194
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
195 196 197 198
     2,     2,     2,     2,     2,     1,     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,    36,
199 200 201
    37,    38,    39,    40,    44,    45,    49,    50,    51,    52,
    58,    59,    60,    61,    62,    66,    67,    68,    69,    70,
    71,    72,    73,    74,    75,    76,    77,    78,    79,    80
Jeff Law committed
202 203 204 205 206 207 208 209 210
};

#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,
211 212 213 214
   142,   147,   150,   155,   158,   161,   168,   170,   172,   174,
   179,   180,   188,   190,   194,   198,   202,   206,   210,   214,
   218,   222,   226,   230,   234,   238,   239,   244,   245,   250,
   251,   252,   260,   261,   267,   271,   275,   277,   279,   281,
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
   285,   289,   293,   297,   302,   307,   311,   315,   318,   321,
   323,   326,   327,   329,   332,   336,   338,   340,   343,   346,
   351,   356,   359,   362,   366,   368,   370,   373,   376,   377,
   378,   383,   388,   392,   396,   399,   402,   405,   408,   412,
   413,   416,   419,   422,   425,   429,   430,   433,   436,   438,
   440,   443,   446,   448,   450,   453,   456,   459,   463,   464,
   467,   469,   471,   473,   478,   483,   485,   487,   489,   491,
   495,   497,   501,   502,   507,   508,   515,   519,   520,   527,
   531,   532,   534,   536,   539,   546,   548,   552,   553,   555,
   560,   567,   572,   574,   576,   578,   580,   582,   583,   588,
   590,   591,   594,   596,   600,   604,   607,   608,   613,   615,
   616,   621,   623,   625,   627,   630,   633,   639,   643,   644,
   645,   651,   652,   653,   659,   661,   663,   667,   671,   676,
   680,   684,   688,   690,   694,   699,   704,   708,   712,   716,
   718,   722,   726,   730,   735,   740,   744,   748,   750,   752,
   755,   757,   760,   762,   765,   766,   774,   780,   783,   784,
   792,   798,   801,   802,   811,   812,   820,   823,   824,   826,
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
   827,   829,   831,   834,   835,   839,   842,   846,   852,   856,
   858,   860,   863,   865,   869,   874,   881,   887,   889,   893,
   895,   897,   901,   904,   907,   908,   910,   912,   915,   916,
   919,   923,   927,   930,   934,   939,   943,   946,   950,   953,
   957,   959,   961,   964,   967,   968,   970,   973,   974,   975,
   977,   979,   982,   986,   988,   991,   993,   995,  1001,  1006,
  1011,  1014,  1017,  1020,  1023,  1028,  1029,  1034,  1035,  1036,
  1040,  1045,  1049,  1051,  1053,  1055,  1057,  1060,  1061,  1066,
  1068,  1072,  1073,  1074,  1082,  1088,  1091,  1092,  1093,  1094,
  1107,  1108,  1115,  1118,  1121,  1124,  1128,  1135,  1144,  1155,
  1168,  1172,  1177,  1179,  1181,  1182,  1189,  1193,  1199,  1202,
  1206,  1207,  1209,  1210,  1212,  1213,  1215,  1217,  1221,  1226,
  1228,  1232,  1233,  1236,  1239,  1240,  1245,  1248,  1249,  1251,
  1253,  1257,  1259,  1263,  1268,  1273,  1278,  1283,  1288,  1289,
  1292,  1294,  1297,  1299,  1303,  1305,  1309
Jeff Law committed
247 248 249
};

static const short yyrhs[] = {    -1,
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380
    90,     0,     0,    91,    93,     0,     0,    90,    92,    93,
     0,    95,     0,    94,     0,    27,    64,   104,    81,    82,
     0,   246,    93,     0,   126,   140,    82,     0,   133,   126,
   140,    82,     0,   129,   126,   139,    82,     0,   133,    82,
     0,   129,    82,     0,     1,    82,     0,     1,    83,     0,
    82,     0,     0,     0,   129,   126,   168,    96,   120,    97,
   202,     0,   129,   126,   168,     1,     0,     0,     0,   133,
   126,   171,    98,   120,    99,   202,     0,   133,   126,   171,
     1,     0,     0,     0,   126,   171,   100,   120,   101,   202,
     0,   126,   171,     1,     0,     3,     0,     4,     0,    48,
     0,    54,     0,    53,     0,    59,     0,    60,     0,    84,
     0,    85,     0,   106,     0,     0,   106,     0,   112,     0,
   106,    86,   112,     0,   118,     0,    55,   110,     0,   246,
   110,     0,   103,   110,     0,    45,   102,     0,   108,   107,
     0,   108,    64,   189,    81,     0,   109,   107,     0,   109,
    64,   189,    81,     0,    33,   110,     0,    34,   110,     0,
    35,    64,   112,    86,   189,    81,     0,    11,     0,    29,
     0,   107,     0,    64,   189,    81,   110,     0,     0,    64,
   189,    81,    87,   111,   154,    83,     0,   110,     0,   112,
    53,   112,     0,   112,    54,   112,     0,   112,    55,   112,
     0,   112,    56,   112,     0,   112,    57,   112,     0,   112,
    51,   112,     0,   112,    52,   112,     0,   112,    50,   112,
     0,   112,    49,   112,     0,   112,    48,   112,     0,   112,
    46,   112,     0,   112,    47,   112,     0,     0,   112,    45,
   113,   112,     0,     0,   112,    44,   114,   112,     0,     0,
     0,   112,    42,   115,   104,    43,   116,   112,     0,     0,
   112,    42,   117,    43,   112,     0,   112,    41,   112,     0,
   112,    40,   112,     0,     3,     0,     8,     0,   119,     0,
    64,   104,    81,     0,    64,     1,    81,     0,   205,   204,
    81,     0,   205,     1,    81,     0,   118,    64,   105,    81,
     0,   118,    65,   104,    88,     0,   118,    63,   102,     0,
   118,    62,   102,     0,   118,    59,     0,   118,    60,     0,
     9,     0,   119,     9,     0,     0,   122,     0,   122,    10,
     0,   211,   212,   123,     0,   121,     0,   197,     0,   122,
   121,     0,   121,   197,     0,   131,   126,   139,    82,     0,
   134,   126,   140,    82,     0,   131,    82,     0,   134,    82,
     0,   211,   212,   128,     0,   124,     0,   197,     0,   125,
   124,     0,   124,   197,     0,     0,     0,   129,   126,   139,
    82,     0,   133,   126,   140,    82,     0,   129,   126,   162,
     0,   133,   126,   165,     0,   129,    82,     0,   133,    82,
     0,   246,   128,     0,   137,   130,     0,   133,   137,   130,
     0,     0,   130,   138,     0,   130,     5,     0,   130,   147,
     0,   137,   132,     0,   134,   137,   132,     0,     0,   132,
   138,     0,   132,     5,     0,   134,     0,   147,     0,   133,
   134,     0,   133,   147,     0,     7,     0,     5,     0,   134,
     7,     0,   134,     5,     0,   137,   136,     0,   191,   137,
   136,     0,     0,   136,   138,     0,     6,     0,   175,     0,
     4,     0,    28,    64,   104,    81,     0,    28,    64,   189,
    81,     0,     6,     0,     7,     0,   175,     0,   142,     0,
   139,    86,   142,     0,   144,     0,   140,    86,   142,     0,
     0,    27,    64,   119,    81,     0,     0,   168,   141,   146,
    41,   143,   152,     0,   168,   141,   146,     0,     0,   171,
   141,   146,    41,   145,   152,     0,   171,   141,   146,     0,
     0,   147,     0,   148,     0,   147,   148,     0,    30,    64,
    64,   149,    81,    81,     0,   150,     0,   149,    86,   150,
     0,     0,   151,     0,   151,    64,     3,    81,     0,   151,
    64,     3,    86,   106,    81,     0,   151,    64,   105,    81,
     0,   102,     0,     5,     0,     6,     0,     7,     0,   112,
     0,     0,    87,   153,   154,    83,     0,     1,     0,     0,
   155,   180,     0,   156,     0,   155,    86,   156,     0,   160,
    41,   158,     0,   161,   158,     0,     0,   102,    43,   157,
   158,     0,   158,     0,     0,    87,   159,   154,    83,     0,
   112,     0,     1,     0,   161,     0,   160,   161,     0,    63,
   102,     0,    65,   112,    10,   112,    88,     0,    65,   112,
    88,     0,     0,     0,   168,   163,   120,   164,   206,     0,
     0,     0,   171,   166,   120,   167,   206,     0,   169,     0,
   171,     0,    64,   169,    81,     0,   169,    64,   241,     0,
   169,    65,   104,    88,     0,   169,    65,    88,     0,    55,
   192,   169,     0,   147,   127,   169,     0,     4,     0,   170,
    64,   241,     0,   170,    65,    55,    88,     0,   170,    65,
   104,    88,     0,   170,    65,    88,     0,    55,   192,   170,
     0,   147,   127,   170,     0,     4,     0,   171,    64,   241,
     0,    64,   171,    81,     0,    55,   192,   171,     0,   171,
    65,    55,    88,     0,   171,    65,   104,    88,     0,   171,
    65,    88,     0,   147,   127,   171,     0,     3,     0,    13,
     0,    13,   147,     0,    14,     0,    14,   147,     0,    12,
     0,    12,   147,     0,     0,   172,   102,    87,   176,   182,
    83,   146,     0,   172,    87,   182,    83,   146,     0,   172,
   102,     0,     0,   173,   102,    87,   177,   182,    83,   146,
     0,   173,    87,   182,    83,   146,     0,   173,   102,     0,
     0,   174,   102,    87,   178,   187,   181,    83,   146,     0,
     0,   174,    87,   179,   187,   181,    83,   146,     0,   174,
   102,     0,     0,    86,     0,     0,    86,     0,   183,     0,
   183,   184,     0,     0,   183,   184,    82,     0,   183,    82,
     0,   135,   126,   185,     0,   135,   126,   211,   212,   146,
     0,   191,   126,   185,     0,   191,     0,     1,     0,   246,
   184,     0,   186,     0,   185,    86,   186,     0,   211,   212,
   168,   146,     0,   211,   212,   168,    43,   112,   146,     0,
   211,   212,    43,   112,   146,     0,   188,     0,   187,    86,
   188,     0,     1,     0,   102,     0,   102,    41,   112,     0,
   135,   190,     0,   191,   190,     0,     0,   193,     0,     7,
     0,   191,     7,     0,     0,   192,     7,     0,    64,   193,
    81,     0,    55,   192,   193,     0,    55,   192,     0,   193,
    64,   234,     0,   193,    65,   104,    88,     0,   193,    65,
    88,     0,    64,   234,     0,    65,   104,    88,     0,    65,
    88,     0,   147,   127,   193,     0,   195,     0,   214,     0,
   195,   214,     0,   195,   197,     0,     0,   194,     0,     1,
    82,     0,     0,     0,   200,     0,   201,     0,   200,   201,
     0,    32,   245,    82,     0,   206,     0,     1,   206,     0,
    87,     0,    83,     0,   198,   199,   125,   196,    83,     0,
   198,   199,     1,    83,     0,   198,   199,   194,    83,     0,
    64,    87,     0,   203,   204,     0,   208,   213,     0,   208,
     1,     0,    15,    64,   104,    81,     0,     0,    18,   210,
   213,    17,     0,     0,     0,   211,   212,   216,     0,   211,
   212,   227,   213,     0,   211,   212,   215,     0,   216,     0,
   227,     0,   206,     0,   224,     0,   104,    82,     0,     0,
   207,    16,   217,   213,     0,   207,     0,   207,    16,     1,
     0,     0,     0,    17,   218,    64,   104,    81,   219,   213,
     0,   209,    64,   104,    81,    82,     0,   209,     1,     0,
     0,     0,     0,    19,    64,   229,    82,   220,   229,    82,
   221,   229,    81,   222,   213,     0,     0,    20,    64,   104,
    81,   223,   213,     0,    23,    82,     0,    24,    82,     0,
    25,    82,     0,    25,   104,    82,     0,    27,   228,    64,
   104,    81,    82,     0,    27,   228,    64,   104,    43,   230,
    81,    82,     0,    27,   228,    64,   104,    43,   230,    43,
   230,    81,    82,     0,    27,   228,    64,   104,    43,   230,
    43,   230,    43,   233,    81,    82,     0,    26,   102,    82,
     0,    26,    55,   104,    82,     0,    82,     0,   225,     0,
     0,    19,    64,   118,    81,   226,   213,     0,    21,   112,
    43,     0,    21,   112,    10,   112,    43,     0,    22,    43,
     0,   102,    43,   146,     0,     0,     7,     0,     0,   104,
     0,     0,   231,     0,   232,     0,   231,    86,   232,     0,
     9,    64,   104,    81,     0,   119,     0,   233,    86,   119,
     0,     0,   235,   236,     0,   238,    81,     0,     0,   239,
    82,   237,   236,     0,     1,    81,     0,     0,    10,     0,
   239,     0,   239,    86,    10,     0,   240,     0,   239,    86,
   240,     0,   129,   126,   170,   146,     0,   129,   126,   171,
   146,     0,   129,   126,   190,   146,     0,   133,   126,   171,
   146,     0,   133,   126,   190,   146,     0,     0,   242,   243,
     0,   236,     0,   244,    81,     0,     3,     0,   244,    86,
     3,     0,   102,     0,   245,    86,   102,     0,    31,     0
Jeff Law committed
381 382 383 384 385 386
};

#endif

#if YYDEBUG != 0
static const short yyrline[] = { 0,
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427
   236,   241,   255,   257,   257,   258,   260,   262,   263,   271,
   275,   285,   289,   293,   295,   297,   298,   299,   304,   311,
   313,   317,   321,   327,   329,   333,   337,   343,   345,   349,
   355,   357,   360,   362,   364,   366,   368,   370,   372,   376,
   380,   383,   386,   389,   393,   395,   398,   401,   405,   433,
   439,   442,   445,   448,   450,   452,   456,   460,   464,   466,
   469,   473,   500,   502,   504,   506,   508,   510,   512,   514,
   516,   518,   520,   522,   524,   526,   530,   532,   536,   538,
   541,   545,   547,   554,   557,   565,   576,   675,   676,   678,
   684,   686,   709,   718,   720,   722,   726,   732,   734,   739,
   741,   749,   751,   752,   762,   767,   769,   770,   771,   778,
   783,   787,   790,   798,   803,   805,   806,   807,   814,   824,
   828,   833,   837,   841,   845,   847,   849,   858,   861,   865,
   867,   869,   874,   878,   881,   885,   888,   890,   902,   905,
   907,   909,   913,   917,   919,   922,   935,   938,   942,   944,
   952,   953,   954,   958,   960,   966,   967,   968,   971,   973,
   976,   978,   981,   984,   990,   997,   999,  1006,  1013,  1016,
  1023,  1026,  1030,  1033,  1037,  1042,  1045,  1049,  1052,  1054,
  1056,  1058,  1065,  1067,  1068,  1069,  1074,  1076,  1078,  1080,
  1085,  1089,  1092,  1094,  1099,  1101,  1102,  1105,  1105,  1108,
  1111,  1113,  1115,  1118,  1120,  1123,  1129,  1131,  1135,  1149,
  1157,  1161,  1175,  1183,  1190,  1192,  1197,  1200,  1205,  1207,
  1209,  1216,  1218,  1226,  1232,  1237,  1239,  1241,  1248,  1250,
  1256,  1262,  1264,  1266,  1271,  1273,  1280,  1282,  1285,  1288,
  1292,  1295,  1299,  1302,  1306,  1311,  1313,  1317,  1319,  1321,
  1323,  1327,  1329,  1331,  1334,  1336,  1339,  1343,  1345,  1348,
  1350,  1355,  1358,  1363,  1365,  1367,  1381,  1387,  1400,  1405,
  1410,  1412,  1417,  1419,  1423,  1427,  1431,  1441,  1443,  1448,
  1453,  1456,  1460,  1463,  1467,  1470,  1473,  1476,  1480,  1483,
  1487,  1491,  1493,  1495,  1497,  1499,  1501,  1503,  1505,  1509,
  1517,  1525,  1527,  1529,  1533,  1535,  1538,  1541,  1551,  1553,
  1558,  1560,  1563,  1577,  1580,  1583,  1585,  1587,  1591,  1595,
  1601,  1619,  1624,  1629,  1632,  1646,  1655,  1659,  1663,  1667,
  1673,  1677,  1682,  1685,  1690,  1693,  1694,  1710,  1715,  1718,
  1730,  1732,  1742,  1752,  1753,  1760,  1762,  1774,  1778,  1792,
  1798,  1804,  1805,  1810,  1815,  1819,  1823,  1834,  1841,  1848,
  1855,  1866,  1872,  1875,  1880,  1903,  1933,  1964,  1995,  2010,
  2024,  2028,  2032,  2035,  2040,  2042,  2045,  2047,  2051,  2056,
  2059,  2065,  2070,  2075,  2077,  2086,  2087,  2093,  2095,  2105,
  2107,  2111,  2114,  2120,  2129,  2137,  2145,  2154,  2167,  2172,
  2177,  2179,  2188,  2191,  2196,  2199,  2203
Jeff Law committed
428
};
429 430 431
#endif


432
#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
Jeff Law committed
433 434 435 436 437

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",
438 439 440 441 442 443 444 445 446 447 448
"EXTENSION","LABEL","REALPART","IMAGPART","VA_ARG","PTR_VALUE","PTR_BASE","PTR_EXTENT",
"END_OF_LINE","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","string","old_style_parm_decls","lineno_datadecl",
"datadecls","datadecl","lineno_decl","decls","setspecs","setattrs","decl","typed_declspecs",
449 450 451
"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",
452 453 454 455
"initdcl","@15","notype_initdcl","@16","maybe_attribute","attributes","attribute",
"attribute_list","attrib","any_word","init","@17","initlist_maybe_comma","initlist1",
"initelt","@18","initval","@19","designator_list","designator","nested_function",
"@20","@21","notype_nested_function","@22","@23","declarator","after_type_declarator",
456
"parm_declarator","notype_declarator","struct_head","union_head","enum_head",
457
"structsp","@24","@25","@26","@27","maybecomma","maybecomma_warn","component_decl_list",
458 459 460
"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",
461 462 463 464 465 466 467 468
"label_decls","label_decl","compstmt_or_error","compstmt_start","compstmt_nostart",
"compstmt_primary_start","compstmt","simple_if","if_prefix","do_stmt_start",
"@28","save_filename","save_lineno","lineno_labeled_stmt","lineno_stmt_or_label",
"stmt_or_label","stmt","@29","@30","@31","@32","@33","@34","@35","all_iter_stmt",
"all_iter_stmt_simple","@36","label","maybe_type_qual","xexpr","asm_operands",
"nonnull_asm_operands","asm_operand","asm_clobbers","parmlist","@37","parmlist_1",
"@38","parmlist_2","parms","parm","parmlist_or_identifiers","@39","parmlist_or_identifiers_1",
"identifiers","identifiers_or_typenames","extension", NULL
Jeff Law committed
469 470 471 472
};
#endif

static const short yyr1[] = {     0,
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513
    89,    89,    91,    90,    92,    90,    93,    93,    93,    93,
    94,    94,    94,    94,    94,    94,    94,    94,    96,    97,
    95,    95,    98,    99,    95,    95,   100,   101,    95,    95,
   102,   102,   103,   103,   103,   103,   103,   103,   103,   104,
   105,   105,   106,   106,   107,   107,   107,   107,   107,   107,
   107,   107,   107,   107,   107,   107,   108,   109,   110,   110,
   111,   110,   112,   112,   112,   112,   112,   112,   112,   112,
   112,   112,   112,   112,   112,   113,   112,   114,   112,   115,
   116,   112,   117,   112,   112,   112,   118,   118,   118,   118,
   118,   118,   118,   118,   118,   118,   118,   118,   118,   119,
   119,   120,   120,   120,   121,   122,   122,   122,   122,   123,
   123,   123,   123,   124,   125,   125,   125,   125,   126,   127,
   128,   128,   128,   128,   128,   128,   128,   129,   129,   130,
   130,   130,   130,   131,   131,   132,   132,   132,   133,   133,
   133,   133,   134,   134,   134,   134,   135,   135,   136,   136,
   137,   137,   137,   137,   137,   138,   138,   138,   139,   139,
   140,   140,   141,   141,   143,   142,   142,   145,   144,   144,
   146,   146,   147,   147,   148,   149,   149,   150,   150,   150,
   150,   150,   151,   151,   151,   151,   152,   153,   152,   152,
   154,   154,   155,   155,   156,   156,   157,   156,   156,   159,
   158,   158,   158,   160,   160,   161,   161,   161,   163,   164,
   162,   166,   167,   165,   168,   168,   169,   169,   169,   169,
   169,   169,   169,   170,   170,   170,   170,   170,   170,   170,
   171,   171,   171,   171,   171,   171,   171,   171,   172,   172,
   173,   173,   174,   174,   176,   175,   175,   175,   177,   175,
   175,   175,   178,   175,   179,   175,   175,   180,   180,   181,
   181,   182,   182,   183,   183,   183,   184,   184,   184,   184,
   184,   184,   185,   185,   186,   186,   186,   187,   187,   187,
   188,   188,   189,   189,   190,   190,   191,   191,   192,   192,
   193,   193,   193,   193,   193,   193,   193,   193,   193,   193,
   194,   195,   195,   195,   196,   196,   197,   198,   199,   199,
   200,   200,   201,   202,   202,   203,   204,   204,   204,   204,
   205,   206,   207,   207,   208,   210,   209,   211,   212,   213,
   213,   214,   215,   215,   216,   216,   216,   217,   216,   216,
   216,   218,   219,   216,   216,   216,   220,   221,   222,   216,
   223,   216,   216,   216,   216,   216,   216,   216,   216,   216,
   216,   216,   216,   224,   226,   225,   227,   227,   227,   227,
   228,   228,   229,   229,   230,   230,   231,   231,   232,   233,
   233,   235,   234,   236,   237,   236,   236,   238,   238,   238,
   238,   239,   239,   240,   240,   240,   240,   240,   242,   241,
   243,   243,   244,   244,   245,   245,   246
Jeff Law committed
514 515 516 517 518 519 520 521
};

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,
522 523 524 525
     4,     2,     4,     2,     2,     6,     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,
526
     3,     3,     3,     4,     4,     3,     3,     2,     2,     1,
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542
     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,     3,     2,     0,     4,     1,     0,
     4,     1,     1,     1,     2,     2,     5,     3,     0,     0,
     5,     0,     0,     5,     1,     1,     3,     3,     4,     3,
     3,     3,     1,     3,     4,     4,     3,     3,     3,     1,
     3,     3,     3,     4,     4,     3,     3,     1,     1,     2,
     1,     2,     1,     2,     0,     7,     5,     2,     0,     7,
     5,     2,     0,     8,     0,     7,     2,     0,     1,     0,
543
     1,     1,     2,     0,     3,     2,     3,     5,     3,     1,
544 545 546 547
     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,     3,
     1,     1,     2,     2,     0,     1,     2,     0,     0,     1,
548 549 550 551 552 553 554 555 556 557
     1,     2,     3,     1,     2,     1,     1,     5,     4,     4,
     2,     2,     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,     3,
     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
Jeff Law committed
558 559 560
};

static const short yydefact[] = {     3,
561
     5,     0,     0,     0,   153,   144,   151,   143,   243,   239,
562
   241,     0,     0,     0,   407,    18,     4,     8,     7,     0,
563 564 565 566 567 568 569
   119,   119,   139,   130,   140,   173,     0,     0,     0,   152,
     0,     6,    16,    17,   244,   240,   242,     0,     0,     0,
   238,   289,     0,     0,   161,   120,     0,    15,     0,    14,
     0,   141,   130,   142,   146,   145,   128,   174,    31,    32,
   264,   248,   264,   252,   255,   257,    10,    87,    88,   100,
    57,    58,     0,     0,     0,     0,    33,    35,    34,     0,
    36,    37,     0,    38,    39,     0,     0,    40,    59,     0,
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600
     0,    63,    43,    45,    89,     0,     0,   287,     0,   285,
   149,     0,   285,   178,     0,     0,    11,     0,     0,    30,
     0,   399,     0,     0,   171,   223,   289,     0,     0,   159,
   120,     0,   215,   216,     0,     0,   129,   132,   156,   157,
   131,   133,   158,     0,     0,   245,     0,   249,     0,   253,
    54,    55,     0,    49,    46,     0,   321,     0,     0,    48,
     0,     0,     0,    50,     0,    52,     0,     0,    80,    78,
    76,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,    98,    99,     0,     0,    41,     0,   101,
     0,   317,   309,     0,    47,   154,   289,   382,     0,   120,
   283,   286,   147,   155,   288,   149,   284,   184,   185,   186,
   183,     0,   176,   179,   290,   233,   232,   162,   163,   237,
     0,   231,     0,     0,   236,     0,     0,    28,     0,   328,
   107,   329,   170,   172,     0,     0,    13,     0,     0,    22,
     0,   171,   399,     0,    12,    26,     0,   171,   271,   266,
   119,   263,   119,     0,   264,   171,   264,   280,   281,   260,
   278,     0,     0,    91,    90,     0,     9,    44,     0,     0,
    86,    85,     0,     0,     0,     0,    74,    75,    73,    72,
    71,    69,    70,    64,    65,    66,    67,    68,    97,    96,
     0,    42,     0,    93,     0,     0,   310,   311,    92,   293,
     0,   297,     0,   299,     0,     0,   382,     0,   150,   148,
     0,   178,    41,     0,     0,   403,   389,   119,   119,   401,
     0,   390,   392,   400,     0,   234,   235,   307,     0,   109,
   104,   108,     0,   168,   221,   217,   160,   222,    20,   167,
   218,   220,     0,    24,   247,   328,   265,   328,   272,     0,
   251,     0,     0,   261,     0,   260,     0,    61,    60,    51,
    53,     0,     0,    79,    77,    94,    95,   405,     0,     0,
     0,   328,     0,     0,   116,   329,   302,   312,   292,   291,
   383,   298,   300,   294,   296,     0,   175,   177,    87,     0,
   164,   387,   285,   285,   384,   385,     0,   402,     0,     0,
   316,    29,   308,   314,   105,   119,   119,   136,     0,     0,
601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631
   165,   219,     0,   267,   273,   329,   269,   329,   171,   171,
   282,   279,   171,     0,     0,     0,    81,    84,   313,     0,
   319,   118,   117,   306,     0,   320,   304,   329,   303,     0,
   295,   180,     0,   182,   230,   289,   382,   120,   171,   171,
   171,   289,   120,   171,   171,     0,   391,   393,   404,   315,
   322,   112,     0,   113,     0,   136,   134,   190,   188,   187,
   169,    21,     0,    25,   328,   171,     0,   246,   250,   256,
   171,    56,   203,    87,     0,     0,   200,     0,   202,     0,
   258,   193,   199,     0,     0,     0,   406,   318,     0,   153,
     0,   342,   326,     0,     0,     0,     0,     0,     0,     0,
     0,   371,   363,     0,     0,   114,   119,   119,   335,   340,
     0,     0,   332,   333,   336,   364,   334,     0,     0,   293,
     0,   399,     0,   394,   395,   396,   293,     0,   397,   398,
   386,     0,     0,   163,   135,   138,   137,     0,   166,   274,
     0,   268,   120,   171,   254,   206,     0,     0,   197,    62,
     0,   192,     0,   205,   196,    82,     0,     0,   328,   373,
     0,     0,   369,   353,   354,   355,     0,     0,     0,   372,
     0,   171,   337,   125,     0,   126,     0,     0,   324,   329,
   323,   346,     0,   127,   181,   228,   229,   224,     0,   227,
     0,   110,   111,     0,   171,     0,   275,     0,   208,     0,
     0,   194,   195,     0,     0,     0,   374,    45,     0,     0,
     0,   367,   356,     0,   361,     0,   370,     0,   123,   209,
     0,   124,   212,   341,   328,     0,     0,   225,   226,   189,
   277,   171,     0,   201,   198,   325,     0,   327,   365,   347,
   351,     0,   362,     0,   121,     0,   122,     0,   339,   330,
   328,     0,   276,   207,   343,   328,   373,   328,   368,   375,
     0,   210,   213,   331,   345,   328,   366,     0,   352,     0,
     0,   376,   377,   357,     0,     0,   344,   348,     0,   375,
     0,     0,   211,   214,   373,     0,     0,   358,   378,     0,
   379,     0,     0,   349,   380,     0,   359,   328,     0,     0,
   350,   360,   381,     0,     0,     0
Jeff Law committed
632 633
};

634
static const short yydefgoto[] = {   704,
635
     1,     2,     3,    17,    18,    19,   231,   400,   237,   403,
636 637 638 639 640 641 642 643 644 645 646 647 648 649
   114,   319,   478,    86,   148,   281,    88,    89,    90,    91,
    92,   416,    93,   266,   265,   263,   486,   264,    94,    95,
   218,   219,   220,   395,   361,   362,    20,   229,   506,   308,
    57,   396,   457,   309,    23,   100,   193,    24,   131,   119,
    44,   115,   120,   463,    45,   399,   223,   224,    26,   202,
   203,   204,   461,   538,   480,   481,   482,   601,   483,   548,
   484,   485,   619,   646,   675,   622,   648,   676,   209,   123,
   439,   124,    27,    28,    29,    30,   245,   247,   252,   139,
   552,   345,   134,   135,   242,   404,   405,   250,   251,   102,
   191,   103,   105,   192,   363,   364,   425,   221,   183,   286,
   287,   288,   392,   393,   184,    96,   394,   510,   511,   512,
   559,   580,   323,   581,   367,   513,   514,   625,   558,   666,
   657,   685,   698,   658,   515,   516,   656,   517,   571,   609,
   671,   672,   673,   696,   292,   293,   310,   446,   311,   312,
650
   313,   212,   213,   314,   315,   359,    97
Jeff Law committed
651 652
};

653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724
static const short yypact[] = {    60,
    74,  2478,  2478,   206,-32768,-32768,-32768,-32768,    53,    53,
    53,    56,    64,    70,-32768,-32768,-32768,-32768,-32768,    66,
    21,   483,   244,-32768,    53,-32768,    59,    73,    85,-32768,
  2478,-32768,-32768,-32768,    53,    53,    53,  2279,  2200,    81,
-32768,-32768,    66,   215,-32768,    53,   608,-32768,   461,-32768,
    66,   244,-32768,    53,-32768,-32768,  1057,-32768,-32768,-32768,
-32768,    27,-32768,    77,-32768,    95,-32768,-32768,-32768,-32768,
-32768,-32768,  2279,  2279,   127,   392,-32768,-32768,-32768,  2279,
-32768,-32768,  1222,-32768,-32768,  2279,   116,   120,-32768,  2337,
  2375,-32768,  2542,   827,   203,   713,  2279,-32768,   139,   238,
-32768,   193,  1137,   569,   403,   213,-32768,   461,    66,-32768,
   180,-32768,  1573,   321,    53,-32768,-32768,   461,   222,-32768,
    53,  1560,   339,   377,   271,  1530,  1057,-32768,-32768,-32768,
-32768,    53,-32768,   170,   387,-32768,   212,-32768,   410,-32768,
-32768,-32768,  2279,-32768,-32768,   195,-32768,   225,   228,-32768,
   247,  2279,  1222,-32768,  1222,-32768,  2279,  2279,   293,-32768,
-32768,  2279,  2279,  2279,  2279,  2279,  2279,  2279,  2279,  2279,
  2279,  2279,  2279,-32768,-32768,   392,   392,  2279,  2279,-32768,
   250,-32768,   319,   278,-32768,-32768,-32768,   238,  1640,    53,
-32768,   395,   544,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,   129,-32768,   297,-32768,   377,-32768,-32768,   337,   377,
   358,-32768,   778,  1678,-32768,   284,   303,-32768,   233,    57,
-32768,-32768,   349,    53,   891,   249,-32768,   461,   461,-32768,
   321,    53,-32768,  1736,-32768,-32768,   321,    53,-32768,-32768,
-32768,   305,   172,   857,-32768,    53,-32768,-32768,   379,   336,
-32768,   410,  2499,-32768,-32768,  2079,-32768,  2542,   369,   382,
  2542,  2542,  2279,   386,  2279,  2279,  2553,  2167,  1456,  1664,
  1392,   589,   589,   288,   288,-32768,-32768,-32768,-32768,-32768,
   390,   120,   398,-32768,   392,   905,   319,-32768,-32768,    72,
   259,-32768,   967,-32768,   406,   238,-32768,  1774,-32768,   544,
   419,   569,  2416,    50,   424,-32768,-32768,-32768,  1112,-32768,
   425,   316,-32768,-32768,   140,-32768,-32768,-32768,    46,-32768,
-32768,-32768,  1534,-32768,   339,-32768,-32768,   339,-32768,   457,
-32768,-32768,   426,-32768,-32768,-32768,-32768,-32768,-32768,   429,
-32768,   435,  2279,   392,   441,   336,  1585,-32768,-32768,-32768,
-32768,   464,  2279,  1799,  2303,-32768,-32768,-32768,   323,   374,
   820,   444,   448,   990,-32768,-32768,-32768,-32768,   395,-32768,
-32768,-32768,   395,-32768,-32768,   465,-32768,-32768,   155,   455,
-32768,-32768,   282,   158,-32768,-32768,  1027,-32768,   552,   473,
-32768,-32768,   478,-32768,-32768,   480,  1054,-32768,  1431,    46,
-32768,-32768,    46,   482,-32768,-32768,   482,-32768,    53,    53,
  2542,-32768,    53,   486,   496,  1260,-32768,  1704,-32768,   392,
-32768,-32768,-32768,-32768,   498,-32768,-32768,-32768,-32768,  1956,
-32768,-32768,  2279,-32768,-32768,-32768,   158,    53,   205,   235,
    53,-32768,    53,   235,    53,   967,-32768,-32768,-32768,-32768,
-32768,-32768,   461,-32768,    66,-32768,   698,-32768,-32768,  2542,
-32768,-32768,  1431,-32768,-32768,   536,   536,-32768,-32768,-32768,
    53,-32768,-32768,   542,   392,  2279,-32768,   549,  2542,   501,
   507,-32768,-32768,   167,  1366,  2279,-32768,-32768,  2041,   554,
   535,-32768,-32768,   537,   538,  2279,   564,   529,   534,  2238,
   104,   610,-32768,   575,   546,-32768,   550,   672,-32768,   615,
  1075,    84,-32768,-32768,-32768,-32768,-32768,  2141,   177,   277,
   282,-32768,  1832,-32768,-32768,-32768,   541,   158,-32768,-32768,
-32768,   346,   348,   163,   698,-32768,-32768,  1260,-32768,-32768,
  2279,-32768,    67,   175,-32768,-32768,   613,  1260,-32768,-32768,
  1325,-32768,  1469,-32768,-32768,  1704,  2279,   570,-32768,  2279,
  2279,  1896,-32768,-32768,-32768,-32768,   551,  2279,   558,-32768,
   584,    53,-32768,-32768,   461,-32768,    66,  1160,-32768,-32768,
-32768,-32768,  2279,-32768,-32768,   417,   417,-32768,  1870,-32768,
   562,-32768,-32768,   588,  1977,  2279,-32768,  2279,-32768,   592,
  1469,-32768,-32768,   571,  2279,   663,-32768,  1237,   599,   601,
  2279,-32768,-32768,   606,-32768,  2279,-32768,   357,-32768,   733,
   362,-32768,   522,-32768,-32768,  2041,   602,-32768,-32768,-32768,
-32768,  1977,  2470,-32768,-32768,-32768,   611,-32768,-32768,-32768,
-32768,  2521,-32768,    37,-32768,   321,-32768,   321,-32768,-32768,
-32768,   607,-32768,-32768,-32768,-32768,  2279,-32768,-32768,   682,
   616,-32768,-32768,-32768,-32768,-32768,-32768,   617,-32768,   629,
    43,   620,-32768,-32768,   473,   473,-32768,-32768,  2279,   682,
   626,   682,-32768,-32768,  2279,   628,    96,-32768,-32768,   632,
-32768,   358,   633,-32768,   203,   186,-32768,-32768,   641,   358,
-32768,-32768,   203,   750,   751,-32768
Jeff Law committed
725 726 727
};

static const short yypgoto[] = {-32768,
728 729 730 731 732
-32768,-32768,-32768,    63,-32768,-32768,-32768,-32768,-32768,-32768,
-32768,-32768,   -23,-32768,   -38,   450,  -137,   384,-32768,-32768,
   -57,-32768,   211,-32768,-32768,-32768,-32768,-32768,   196,  -199,
  -193,   545,-32768,-32768,   393,-32768,    30,    -3,   251,    17,
   717,-32768,   315,    24,    -4,   -89,   579,    39,  -165,  -417,
733
   -43,  -100,   -59,-32768,-32768,-32768,   185,    62,   -22,-32768,
734 735 736 737 738 739 740 741 742 743
   474,-32768,   324,-32768,  -345,-32768,   227,-32768,  -428,-32768,
-32768,   302,-32768,-32768,-32768,-32768,-32768,-32768,   -42,   -73,
   -37,   -18,-32768,-32768,-32768,    11,-32768,-32768,-32768,-32768,
-32768,   443,   -28,-32768,   555,   456,   328,   553,   458,   -49,
   -66,   -81,   -86,   -48,   439,-32768,-32768,  -163,-32768,-32768,
-32768,   516,  -305,-32768,   411,-32768,  -360,-32768,-32768,-32768,
-32768,  -105,  -316,  -442,   446,-32768,   187,-32768,-32768,-32768,
-32768,-32768,-32768,-32768,-32768,-32768,-32768,   188,-32768,  -510,
   131,-32768,   134,-32768,   521,-32768,  -251,-32768,-32768,-32768,
   433,  -212,-32768,-32768,-32768,-32768,     8
Jeff Law committed
744 745 746
};


747
#define	YYLAST		2610
748 749 750


static const short yytable[] = {    87,
751 752 753 754 755
    99,    47,    58,    62,    64,    66,   122,   125,   222,    31,
    31,   304,    58,    58,    58,   141,   142,    52,    21,    21,
   331,   232,   145,    58,   106,    22,    22,   299,   150,   450,
   225,    58,   126,   149,   137,   532,   197,   329,    31,   185,
   282,   371,   109,   334,   226,   241,   390,    21,   208,   430,
756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823
    49,    51,   144,   243,    22,   320,   555,  -103,   180,    -1,
    53,    59,    60,    25,    25,    32,   321,   133,    41,   509,
    35,    36,    37,    -2,   216,    59,    60,   101,   205,   660,
   201,    46,    14,    54,   582,   680,   206,    59,    60,   466,
   210,   467,    25,    67,   462,    14,    14,   464,    58,   106,
   290,    14,    48,   259,    46,   260,    59,    60,   232,    58,
   121,   489,    46,   136,   222,   249,   606,   661,   132,    38,
    42,   101,   365,   681,   603,   222,   187,    39,   509,    43,
   381,   222,   391,    40,   299,   188,   189,   133,   692,   291,
   283,   196,   244,  -103,   104,    61,   668,   583,  -172,  -172,
   295,   325,   279,   280,   241,   328,   145,   618,   568,    63,
    41,   190,   243,   138,   190,   282,    46,    58,   327,   121,
    46,    65,   635,   101,   690,     5,   693,     7,   195,   121,
   366,   140,   649,     9,    10,    11,   296,    14,   132,   111,
   143,   101,   594,   101,   531,   333,   151,   422,   349,    13,
   427,    58,   600,   133,    14,   152,   206,   553,   664,   301,
   210,   180,   442,   667,   302,   669,   340,   596,   342,   186,
   388,   437,   189,   677,   352,   389,   112,   113,   249,   475,
   406,   476,   408,   217,    14,   432,  -106,  -106,  -106,  -106,
   433,   369,  -106,   211,  -106,  -106,  -106,   373,    55,   190,
    56,   244,   238,  -270,  -270,   701,   366,   585,   428,   376,
  -106,   358,   152,   626,    14,   509,   699,    14,   522,   523,
   336,   700,   338,   194,    25,   254,   112,   113,   201,    41,
   435,   196,   101,   205,    41,   435,   121,    33,    34,   121,
   121,   537,   187,   207,   246,   519,   107,   415,   112,   113,
   108,   188,   189,   227,    52,   255,    14,   228,   256,   588,
   133,    14,   233,   234,   683,   684,   441,   445,   397,  -106,
   249,   217,   297,   298,  -328,  -328,  -328,  -328,   257,   326,
   284,   436,  -328,  -328,  -328,   -83,   436,   383,   384,   370,
   437,   189,   171,   172,   173,   437,   189,    53,  -328,   520,
   285,   190,   235,   253,    25,   527,   108,   190,   289,   408,
   303,   398,   258,   111,   440,   444,    70,   261,   262,   537,
    54,   317,   267,   268,   269,   270,   271,   272,   273,   274,
   275,   276,   277,   278,   318,   101,   337,   239,   291,   324,
     5,   505,     7,    98,    59,    60,   487,   386,     9,    10,
    11,   387,   233,   234,   419,    41,   504,  -102,   420,   205,
   248,   533,    59,    60,    13,    58,   330,    15,   106,   343,
    58,   344,   335,   544,   544,   453,   455,   592,   353,   593,
   341,   228,    14,   108,   521,   456,   534,   518,   645,   528,
   112,   113,   228,   647,   438,   443,   507,   108,    25,   350,
   505,   546,   662,   508,   663,   318,   421,    42,   297,   298,
   185,   567,   351,    41,   116,   504,    43,   133,   240,  -262,
   356,   369,   373,   154,   156,   354,   355,   569,   369,   373,
   522,   523,   586,   587,   591,   357,     5,     6,     7,     8,
    14,    25,   695,   372,     9,    10,    11,   401,   443,   377,
   703,   206,   210,    52,   382,   385,   417,    25,   206,   210,
    13,   409,    14,   402,   121,   117,    46,   410,   604,   232,
    58,   607,   610,   413,   118,   518,  -305,   543,   121,   614,
   426,   145,   620,   621,   507,   434,   575,   577,    41,   116,
   222,   508,   222,    41,   627,   133,    53,   205,   111,   129,
   130,  -163,   431,   411,   449,     9,    10,    11,   623,   391,
   182,   452,  -163,   418,    50,    14,   637,   465,   471,    54,
    14,    59,    60,   198,   199,   200,   472,   644,   541,    25,
   488,   438,   438,   550,   -31,   112,   113,   505,   443,   443,
   117,   549,   551,   468,   469,   442,   -32,   470,   557,   118,
   560,   561,   504,  -163,   437,   189,   563,  -163,   110,   460,
   564,   -27,   -27,   -27,   -27,   565,   570,   572,   607,   -27,
   -27,   -27,   598,   524,   525,   526,   479,   573,   529,   530,
   578,   574,   613,   605,   111,   -27,   121,  -163,    46,   615,
   686,   169,   170,   171,   172,   173,   607,   616,  -163,   629,
   542,   636,   157,   158,   159,   545,   160,   161,   162,   163,
   164,   165,   166,   167,   168,   169,   170,   171,   172,   173,
   630,   112,   113,   460,   634,     5,     6,     7,     8,   638,
   640,   641,   652,     9,    10,    11,   547,   643,   665,  -163,
   670,   655,   679,  -163,   -27,   479,   556,   674,   678,    13,
   599,    14,   536,   129,   130,   682,   562,   688,   691,     9,
    10,    11,   694,   181,   697,  -308,  -308,  -308,  -308,  -308,
  -308,  -308,   702,  -308,  -308,  -308,  -308,  -308,   597,  -308,
824
  -308,  -308,  -308,  -308,  -308,  -308,  -308,  -308,  -308,  -308,
825 826 827 828 829 830 831 832 833 834
  -308,  -308,  -308,  -308,  -308,  -308,  -308,  -308,   479,   705,
   706,   595,   380,   576,   423,   608,   617,  -308,   479,   111,
  -308,   479,  -163,   479,   322,  -308,  -308,  -308,   584,   127,
   535,  -308,  -308,  -163,   300,   378,  -308,   602,   305,   631,
   306,     5,     6,     7,     8,   554,   539,   307,   414,     9,
    10,    11,   540,   407,  -308,   182,  -308,  -308,   339,  -308,
   424,   412,   368,   451,   346,    13,   632,    14,   633,   429,
   687,   479,   650,   651,  -163,   689,   653,   374,  -163,   448,
   217,   642,  -115,  -115,  -115,  -115,  -115,  -115,  -115,     0,
  -115,  -115,  -115,  -115,  -115,     0,  -115,  -115,  -115,  -115,
835
  -115,  -115,  -115,  -115,  -115,  -115,  -115,  -115,  -115,  -115,
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867
  -115,     0,  -115,  -115,  -115,     0,     0,   239,  -388,     0,
     5,     0,     7,    98,  -115,     0,     0,  -115,     9,    10,
    11,     0,  -115,  -115,  -115,     0,     0,     0,  -115,  -115,
     0,     0,     0,  -115,    13,   174,   175,    15,   176,   177,
   178,   179,     0,    41,   116,     0,     0,   205,     0,     0,
     0,  -115,  -115,  -115,  -115,   360,  -115,  -328,  -328,  -328,
  -328,  -328,  -328,  -328,     0,  -328,  -328,  -328,  -328,  -328,
    14,  -328,  -328,  -328,  -328,  -328,  -328,  -328,  -328,  -328,
  -328,  -328,  -328,  -328,  -328,  -328,     0,  -328,  -328,  -328,
     0,     0,     0,     0,     0,   117,     0,     0,     0,  -328,
     0,     0,  -328,     0,   118,     0,     0,  -328,  -328,  -328,
     0,     0,     0,  -328,  -328,     0,     0,   305,  -328,     0,
     5,     6,     7,     8,     0,     0,   307,     0,     9,    10,
    11,     0,     0,     0,     0,     0,  -328,     0,  -328,  -328,
   217,  -328,  -328,  -328,    13,     0,    14,  -328,  -328,     0,
  -328,     0,     0,     0,  -328,     0,  -328,  -328,  -328,  -328,
  -328,  -328,  -328,  -328,  -328,  -328,  -328,     0,  -328,     0,
  -328,     0,  -328,  -328,  -328,     0,     0,     0,     0,     0,
     5,     6,     7,     8,  -328,     0,   447,  -328,     9,    10,
    11,     0,  -328,  -328,  -328,     0,     0,  -388,  -328,  -328,
     0,     0,     0,  -328,    13,     0,    14,     5,    55,     7,
    56,   128,   129,   130,     0,     9,    10,    11,     9,    10,
    11,  -328,  -301,  -328,  -328,   579,  -328,  -328,  -328,     0,
     0,    13,  -328,  -328,     0,  -328,    14,     0,     0,  -328,
     0,  -328,  -328,  -328,  -328,  -328,  -328,  -328,  -328,  -328,
  -328,  -328,     0,  -328,     0,  -328,     0,  -328,  -328,  -328,
     0,     0,     0,     0,     0,     5,     6,     7,     8,  -328,
     0,     0,  -328,     9,    10,    11,     0,  -328,  -328,  -328,
     0,     0,     0,  -328,  -328,   454,     0,     0,  -328,    13,
     5,    14,     7,   195,     0,     0,     0,     0,     9,    10,
    11,     0,     0,     0,     0,     0,  -328,     0,  -328,  -328,
   624,  -328,  -338,  -338,    13,     0,    14,  -338,  -338,     0,
868 869
  -338,     0,     0,     0,  -338,     0,  -338,  -338,  -338,  -338,
  -338,  -338,  -338,  -338,  -338,  -338,  -338,     0,  -338,     0,
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892
  -338,   187,  -338,  -338,  -338,     0,     0,     0,     0,     0,
   188,   189,     0,     0,  -338,     0,     0,  -338,     0,     0,
     0,     0,  -338,  -338,  -338,     0,     0,     0,  -338,  -338,
     0,     0,   146,  -338,    68,     5,     0,     7,    98,    69,
    70,     0,    71,     9,    10,    11,     0,     0,     0,     0,
     0,  -338,     0,  -338,  -338,     0,  -338,     0,     0,    13,
    72,     0,    15,     0,    73,    74,    75,     0,     0,     0,
   473,     0,   474,    60,     0,     0,    76,    69,    70,    77,
    71,     0,     0,     0,    78,    79,    80,     0,     0,     0,
    81,    82,     0,     0,     0,    83,     0,     0,    72,     0,
    15,     0,    73,    74,    75,   174,   175,     0,   176,   177,
   178,   179,     0,     0,    76,    84,    85,    77,   147,     0,
     0,     0,    78,    79,    80,     0,     0,   639,    81,    82,
     0,     0,   475,    83,   476,   473,     0,   474,    60,     0,
     0,     0,    69,    70,     0,    71,     0,     0,     0,     0,
     0,     0,  -191,    84,    85,     0,   477,     0,     0,     0,
     0,     0,     0,    72,     0,    15,     0,    73,    74,    75,
     0,     0,     0,     0,     0,     0,   473,     0,    68,    76,
     0,     0,    77,    69,    70,     0,    71,    78,    79,    80,
     0,     0,     0,    81,    82,     0,     0,   475,    83,   476,
     0,     0,     0,     0,    72,     0,    15,     0,    73,    74,
    75,     0,     0,     0,     0,     0,  -204,  -259,    84,    85,
    76,   477,     0,    77,     0,     0,     0,     0,    78,    79,
893
    80,     0,     0,     0,    81,    82,     0,     0,  -204,    83,
894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913
  -204,   458,     0,    68,     0,     0,     0,     0,    69,    70,
     0,    71,   167,   168,   169,   170,   171,   172,   173,    84,
    85,     0,   477,     0,     0,     0,     0,     0,     0,    72,
     0,    15,     0,    73,    74,    75,     0,     0,     0,   473,
     0,    68,     0,     0,     0,    76,    69,    70,    77,    71,
     0,     0,     0,    78,    79,    80,     0,     0,     0,    81,
    82,     0,     0,     0,    83,     0,     0,    72,     0,    15,
     0,    73,    74,    75,   165,   166,   167,   168,   169,   170,
   171,   172,   173,    76,    84,    85,    77,   459,     0,     0,
     0,    78,    79,    80,     0,     0,     0,    81,    82,     0,
   236,     0,    83,   -23,   -23,   -23,   -23,     5,     6,     7,
     8,   -23,   -23,   -23,     0,     9,    10,    11,     0,     0,
     0,     0,    84,    85,     0,   477,   111,   -23,     0,  -163,
   230,    13,     0,   -19,   -19,   -19,   -19,     0,     0,     0,
  -163,   -19,   -19,   -19,     0,    68,     0,     0,     0,     0,
    69,    70,     0,    71,     0,     0,   111,   -19,     5,  -163,
     7,    98,     0,   112,   113,     0,     9,    10,    11,     0,
  -163,    72,     0,    15,     0,    73,    74,    75,     0,     0,
     0,  -163,    13,     0,     0,  -163,   -23,    76,     0,     0,
    77,     0,     0,     0,     0,    78,    79,   214,     0,     0,
914
     0,    81,    82,     0,     0,     0,    83,     0,     0,     0,
915 916 917 918 919 920 921 922 923 924 925 926 927 928 929
     0,  -163,    68,     0,     0,  -163,   -19,    69,    70,     0,
    71,     0,     0,     0,     0,     0,    84,    85,     0,     0,
   215,     0,     0,     0,     0,     0,     0,     0,    72,     0,
    15,     0,    73,    74,    75,     0,     0,     0,     0,     0,
    68,     0,     0,     0,    76,    69,    70,    77,    71,     0,
     0,     0,    78,    79,    80,     0,     0,     0,    81,    82,
     0,     0,     0,    83,     0,     0,    72,     0,    15,     0,
    73,    74,    75,   166,   167,   168,   169,   170,   171,   172,
   173,     0,    76,    84,    85,    77,     0,   294,     0,     0,
    78,    79,    80,     0,     0,     0,    81,    82,    68,     0,
     0,    83,     0,    69,    70,   159,    71,   160,   161,   162,
   163,   164,   165,   166,   167,   168,   169,   170,   171,   172,
   173,    84,    85,     0,    72,   316,    15,     0,    73,    74,
    75,     0,     0,     0,     0,     0,    68,     0,     0,     0,
    76,    69,    70,    77,    71,     0,     0,     0,    78,    79,
930
    80,     0,     0,     0,    81,    82,     0,     0,     0,    83,
931 932 933
     0,     0,    72,     0,    15,     0,    73,    74,    75,     0,
     0,     0,     0,     0,     0,     0,     0,     0,    76,    84,
    85,    77,     0,   332,     0,     0,    78,    79,    80,     0,
934
     0,     0,    81,    82,    68,     0,     0,    83,     0,    69,
935 936 937
    70,     0,    71,   161,   162,   163,   164,   165,   166,   167,
   168,   169,   170,   171,   172,   173,     0,    84,    85,     0,
    72,   375,    15,     0,    73,    74,    75,     0,     0,     0,
938
     0,     0,    68,     0,     0,     0,    76,    69,    70,    77,
939
    71,     0,     0,     0,    78,    79,   589,     0,     0,     0,
940
    81,    82,     0,     0,     0,    83,     0,     0,    72,     0,
941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973
    15,     0,    73,    74,    75,   611,     0,     0,     0,     0,
     0,     0,     0,     0,    76,    84,    85,    77,     0,   590,
     0,     0,    78,    79,    80,     0,     0,     0,    81,    82,
     0,     0,     0,    83,     0,   157,   158,   159,   612,   160,
   161,   162,   163,   164,   165,   166,   167,   168,   169,   170,
   171,   172,   173,    84,    85,     0,     0,   628,   474,   490,
     6,     7,     8,    69,    70,     0,    71,     9,    10,    11,
   491,     0,   492,   493,   494,   495,   496,   497,   498,   499,
   500,   501,   502,    13,    72,    14,    15,     0,    73,    74,
    75,     0,     0,     0,     0,     0,     0,     0,     0,     0,
    76,     0,     0,    77,     0,     0,    14,     0,    78,    79,
    80,     0,     0,     0,    81,    82,   157,   158,   159,    83,
   160,   161,   162,   163,   164,   165,   166,   167,   168,   169,
   170,   171,   172,   173,     0,     0,     0,   503,     0,    84,
    85,     0,   391,   474,    60,     0,     0,     0,    69,    70,
     0,    71,     0,     0,     0,   491,     0,   492,   493,   494,
   495,   496,   497,   498,   499,   500,   501,   502,     0,    72,
     0,    15,     0,    73,    74,    75,     0,     0,     0,     0,
     0,    68,     0,     0,     0,    76,    69,    70,    77,    71,
     0,     0,     0,    78,    79,    80,     0,     0,     0,    81,
    82,     0,     0,     0,    83,     0,     0,    72,     0,    15,
     0,    73,    74,    75,     0,     0,     0,     0,     0,     0,
     0,     0,   503,    76,    84,    85,    77,   391,     0,     0,
     0,    78,    79,    80,     0,     0,     0,    81,    82,     0,
     0,     0,    83,    68,     5,     6,     7,     8,    69,    70,
     0,    71,     9,    10,    11,     0,     0,     0,     0,     0,
     0,     0,    84,    85,     0,   348,     0,     0,    13,    72,
    14,    15,     0,    73,    74,    75,     0,     0,     0,     0,
     0,     0,     0,     0,     0,    76,     0,     0,    77,     0,
     0,     0,     0,    78,    79,    80,     0,     0,     0,    81,
    82,     0,    68,     5,    83,     7,    98,    69,    70,     0,
    71,     9,    10,    11,   164,   165,   166,   167,   168,   169,
   170,   171,   172,   173,    84,    85,     0,    13,    72,     0,
974
    15,     0,    73,    74,    75,     0,     0,     0,     0,     0,
975 976 977 978 979 980 981 982 983 984 985 986 987 988 989
    68,     0,     0,     0,    76,    69,    70,    77,    71,     0,
     0,     0,    78,    79,    80,     0,     0,     0,    81,    82,
     0,     0,     0,    83,     0,     0,    72,     0,    15,     0,
    73,    74,    75,     0,     0,     0,     0,     0,     0,     0,
     0,    68,    76,    84,    85,    77,    69,    70,     0,    71,
    78,    79,    80,     0,     0,     0,    81,    82,     0,     0,
     0,    83,     0,     0,     0,     0,     0,    72,     0,    15,
     0,    73,    74,    75,     0,     0,     0,     0,     0,   566,
     0,    84,    85,    76,     0,     0,    77,     0,     0,     0,
     0,    78,    79,    80,     0,     0,     0,    81,    82,    68,
     0,     0,    83,     0,    69,    70,     0,    71,   162,   163,
   164,   165,   166,   167,   168,   169,   170,   171,   172,   173,
     0,     0,    84,    85,     0,    72,     0,    15,     0,    73,
    74,    75,     0,     0,     0,     0,     0,    68,     0,     0,
     0,    76,    69,    70,    77,    71,     0,     0,     0,    78,
990
    79,    80,     0,     0,     0,    81,    82,     0,     0,     0,
991 992 993 994 995 996
   153,     0,     0,    72,     0,    15,     0,    73,    74,    75,
     0,     0,     0,     0,     0,     0,     0,     0,   379,    76,
    84,    85,    77,    69,    70,     0,    71,    78,    79,    80,
     0,     0,     0,    81,    82,     0,     0,     0,   155,     0,
     0,     0,     0,     0,    72,     0,    15,     0,    73,    74,
    75,     0,     0,     0,     0,     0,     0,     0,    84,    85,
997
    76,     0,     0,    77,     0,     0,     0,     0,    78,    79,
998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011
    80,     0,     0,     0,    81,    82,     0,     0,     4,    83,
  -119,     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,   157,
   158,   159,     0,   160,   161,   162,   163,   164,   165,   166,
   167,   168,   169,   170,   171,   172,   173,     0,     0,     0,
     0,     0,  -119,     0,     0,     0,     0,     0,   157,   158,
   159,  -119,   160,   161,   162,   163,   164,   165,   166,   167,
   168,   169,   170,   171,   172,   173,     0,   654,     0,    16,
   157,   158,   159,   659,   160,   161,   162,   163,   164,   165,
   166,   167,   168,   169,   170,   171,   172,   173,     0,     0,
     0,   157,   158,   159,   347,   160,   161,   162,   163,   164,
   165,   166,   167,   168,   169,   170,   171,   172,   173,   163,
   164,   165,   166,   167,   168,   169,   170,   171,   172,   173
Jeff Law committed
1012 1013
};

1014
static const short yycheck[] = {    38,
1015 1016 1017 1018 1019
    39,    20,    25,    27,    28,    29,    49,    51,   114,     2,
     3,   211,    35,    36,    37,    73,    74,    22,     2,     3,
   233,   122,    80,    46,    43,     2,     3,   193,    86,   390,
   117,    54,    51,    83,    63,   453,   103,   231,    31,    97,
   178,   293,    46,   237,   118,   135,     1,    31,   108,   366,
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097
    21,    22,    76,   135,    31,   219,   485,     1,     9,     0,
    22,     3,     4,     2,     3,     3,    10,    57,     3,   430,
     9,    10,    11,     0,   113,     3,     4,    39,     7,    43,
   104,    20,    30,    22,     1,    43,   105,     3,     4,   406,
   109,   408,    31,    31,   400,    30,    30,   403,   121,   118,
   187,    30,    82,   153,    43,   155,     3,     4,   209,   132,
    49,   428,    51,    87,   220,   139,   559,    81,    57,    64,
    55,    83,   286,    81,   553,   231,    55,    64,   489,    64,
    81,   237,    87,    64,   300,    64,    65,   127,    43,   188,
   179,   103,   135,    87,    64,    87,   657,    64,    82,    83,
   189,   225,   176,   177,   244,   229,   214,   575,    55,    87,
     3,   100,   244,    87,   103,   303,   105,   190,   228,   108,
   109,    87,   601,   135,   685,     4,    81,     6,     7,   118,
   286,    87,   625,    12,    13,    14,   190,    30,   127,    27,
    64,   153,   538,   155,   446,   234,    81,   361,   256,    28,
   364,   224,   548,   193,    30,    86,   225,    41,   651,    81,
   229,     9,    55,   656,    86,   658,   245,    43,   247,    81,
    81,    64,    65,   666,   263,    86,    64,    65,   252,    63,
   336,    65,   338,     1,    30,    81,     4,     5,     6,     7,
    86,   290,    10,    64,    12,    13,    14,   296,     5,   188,
     7,   244,    83,    82,    83,   698,   362,    81,   364,   298,
    28,   285,    86,   580,    30,   626,    81,    30,    64,    65,
   241,    86,   243,    81,   213,    81,    64,    65,   302,     3,
     4,   243,   244,     7,     3,     4,   225,    82,    83,   228,
   229,   457,    55,    81,    83,   433,    82,   347,    64,    65,
    86,    64,    65,    82,   309,    81,    30,    86,    81,   522,
   300,    30,    64,    65,   675,   676,   383,   384,   323,    87,
   344,     1,    64,    65,     4,     5,     6,     7,    82,    81,
    81,    55,    12,    13,    14,    43,    55,   308,   309,    81,
    64,    65,    55,    56,    57,    64,    65,   309,    28,   436,
    32,   290,    82,   143,   293,   442,    86,   296,    81,   465,
    64,   323,   152,    27,   383,   384,     9,   157,   158,   535,
   309,    88,   162,   163,   164,   165,   166,   167,   168,   169,
   170,   171,   172,   173,    82,   347,    82,     1,   437,    41,
     4,   430,     6,     7,     3,     4,   420,    82,    12,    13,
    14,    86,    64,    65,    82,     3,   430,    87,    86,     7,
     1,   455,     3,     4,    28,   438,   232,    31,   437,    41,
   443,    86,   238,   466,   467,   396,   397,    82,    43,    82,
   246,    86,    30,    86,   438,   397,   455,   430,    82,   443,
    64,    65,    86,    82,   383,   384,   430,    86,   387,    81,
   489,   475,   646,   430,   648,    82,    83,    55,    64,    65,
   518,   500,    81,     3,     4,   489,    64,   457,    82,    83,
    81,   520,   521,    90,    91,   265,   266,   501,   527,   528,
    64,    65,   520,   521,   523,    88,     4,     5,     6,     7,
    30,   430,   692,    88,    12,    13,    14,    41,   437,    81,
   700,   520,   521,   508,    81,    81,    43,   446,   527,   528,
    28,    83,    30,    88,   453,    55,   455,    83,   557,   620,
   543,   560,   561,    83,    64,   518,    83,   466,   467,   568,
    83,   589,   575,   577,   518,    81,   507,   508,     3,     4,
   646,   518,   648,     3,   583,   535,   508,     7,    27,     6,
     7,    30,    88,   343,     3,    12,    13,    14,   577,    87,
    83,    82,    41,   353,    82,    30,   605,    86,    83,   508,
    30,     3,     4,     5,     6,     7,    81,   616,    43,   518,
    83,   520,   521,    83,    43,    64,    65,   626,   527,   528,
    55,    43,    86,   409,   410,    55,    43,   413,    64,    64,
    64,    64,   626,    82,    64,    65,    43,    86,     1,   399,
    82,     4,     5,     6,     7,    82,     7,    43,   657,    12,
    13,    14,    10,   439,   440,   441,   416,    82,   444,   445,
    16,    82,    82,    64,    27,    28,   575,    30,   577,    82,
   679,    53,    54,    55,    56,    57,   685,    64,    41,    88,
   466,    81,    40,    41,    42,   471,    44,    45,    46,    47,
    48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
    83,    64,    65,   463,    83,     4,     5,     6,     7,    17,
    82,    81,    81,    12,    13,    14,   476,    82,    82,    82,
     9,    81,    64,    86,    87,   485,   486,    82,    82,    28,
    88,    30,     5,     6,     7,    86,   496,    82,    81,    12,
    13,    14,    81,     1,    82,     3,     4,     5,     6,     7,
     8,     9,    82,    11,    12,    13,    14,    15,   544,    17,
    18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
    28,    29,    30,    31,    32,    33,    34,    35,   538,     0,
     0,   541,   303,    82,   362,   560,   572,    45,   548,    27,
    48,   551,    30,   553,   220,    53,    54,    55,   518,    53,
   456,    59,    60,    41,   196,   302,    64,   551,     1,   595,
     3,     4,     5,     6,     7,   484,   463,    10,   346,    12,
    13,    14,   465,   338,    82,    83,    84,    85,   244,    87,
   362,   344,   287,   393,   252,    28,   596,    30,   598,   364,
   680,   601,   626,   626,    82,   682,   632,   297,    86,   387,
     1,   611,     3,     4,     5,     6,     7,     8,     9,    -1,
1098 1099
    11,    12,    13,    14,    15,    -1,    17,    18,    19,    20,
    21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131
    31,    -1,    33,    34,    35,    -1,    -1,     1,    81,    -1,
     4,    -1,     6,     7,    45,    -1,    -1,    48,    12,    13,
    14,    -1,    53,    54,    55,    -1,    -1,    -1,    59,    60,
    -1,    -1,    -1,    64,    28,    59,    60,    31,    62,    63,
    64,    65,    -1,     3,     4,    -1,    -1,     7,    -1,    -1,
    -1,    82,    83,    84,    85,     1,    87,     3,     4,     5,
     6,     7,     8,     9,    -1,    11,    12,    13,    14,    15,
    30,    17,    18,    19,    20,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,    31,    -1,    33,    34,    35,
    -1,    -1,    -1,    -1,    -1,    55,    -1,    -1,    -1,    45,
    -1,    -1,    48,    -1,    64,    -1,    -1,    53,    54,    55,
    -1,    -1,    -1,    59,    60,    -1,    -1,     1,    64,    -1,
     4,     5,     6,     7,    -1,    -1,    10,    -1,    12,    13,
    14,    -1,    -1,    -1,    -1,    -1,    82,    -1,    84,    85,
     1,    87,     3,     4,    28,    -1,    30,     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,    35,    -1,    -1,    -1,    -1,    -1,
     4,     5,     6,     7,    45,    -1,    10,    48,    12,    13,
    14,    -1,    53,    54,    55,    -1,    -1,    81,    59,    60,
    -1,    -1,    -1,    64,    28,    -1,    30,     4,     5,     6,
     7,     5,     6,     7,    -1,    12,    13,    14,    12,    13,
    14,    82,    83,    84,    85,     1,    87,     3,     4,    -1,
    -1,    28,     8,     9,    -1,    11,    30,    -1,    -1,    15,
    -1,    17,    18,    19,    20,    21,    22,    23,    24,    25,
    26,    27,    -1,    29,    -1,    31,    -1,    33,    34,    35,
    -1,    -1,    -1,    -1,    -1,     4,     5,     6,     7,    45,
    -1,    -1,    48,    12,    13,    14,    -1,    53,    54,    55,
    -1,    -1,    -1,    59,    60,    82,    -1,    -1,    64,    28,
     4,    30,     6,     7,    -1,    -1,    -1,    -1,    12,    13,
    14,    -1,    -1,    -1,    -1,    -1,    82,    -1,    84,    85,
     1,    87,     3,     4,    28,    -1,    30,     8,     9,    -1,
1132 1133
    11,    -1,    -1,    -1,    15,    -1,    17,    18,    19,    20,
    21,    22,    23,    24,    25,    26,    27,    -1,    29,    -1,
1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194
    31,    55,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,
    64,    65,    -1,    -1,    45,    -1,    -1,    48,    -1,    -1,
    -1,    -1,    53,    54,    55,    -1,    -1,    -1,    59,    60,
    -1,    -1,     1,    64,     3,     4,    -1,     6,     7,     8,
     9,    -1,    11,    12,    13,    14,    -1,    -1,    -1,    -1,
    -1,    82,    -1,    84,    85,    -1,    87,    -1,    -1,    28,
    29,    -1,    31,    -1,    33,    34,    35,    -1,    -1,    -1,
     1,    -1,     3,     4,    -1,    -1,    45,     8,     9,    48,
    11,    -1,    -1,    -1,    53,    54,    55,    -1,    -1,    -1,
    59,    60,    -1,    -1,    -1,    64,    -1,    -1,    29,    -1,
    31,    -1,    33,    34,    35,    59,    60,    -1,    62,    63,
    64,    65,    -1,    -1,    45,    84,    85,    48,    87,    -1,
    -1,    -1,    53,    54,    55,    -1,    -1,    81,    59,    60,
    -1,    -1,    63,    64,    65,     1,    -1,     3,     4,    -1,
    -1,    -1,     8,     9,    -1,    11,    -1,    -1,    -1,    -1,
    -1,    -1,    83,    84,    85,    -1,    87,    -1,    -1,    -1,
    -1,    -1,    -1,    29,    -1,    31,    -1,    33,    34,    35,
    -1,    -1,    -1,    -1,    -1,    -1,     1,    -1,     3,    45,
    -1,    -1,    48,     8,     9,    -1,    11,    53,    54,    55,
    -1,    -1,    -1,    59,    60,    -1,    -1,    63,    64,    65,
    -1,    -1,    -1,    -1,    29,    -1,    31,    -1,    33,    34,
    35,    -1,    -1,    -1,    -1,    -1,    41,    83,    84,    85,
    45,    87,    -1,    48,    -1,    -1,    -1,    -1,    53,    54,
    55,    -1,    -1,    -1,    59,    60,    -1,    -1,    63,    64,
    65,     1,    -1,     3,    -1,    -1,    -1,    -1,     8,     9,
    -1,    11,    51,    52,    53,    54,    55,    56,    57,    84,
    85,    -1,    87,    -1,    -1,    -1,    -1,    -1,    -1,    29,
    -1,    31,    -1,    33,    34,    35,    -1,    -1,    -1,     1,
    -1,     3,    -1,    -1,    -1,    45,     8,     9,    48,    11,
    -1,    -1,    -1,    53,    54,    55,    -1,    -1,    -1,    59,
    60,    -1,    -1,    -1,    64,    -1,    -1,    29,    -1,    31,
    -1,    33,    34,    35,    49,    50,    51,    52,    53,    54,
    55,    56,    57,    45,    84,    85,    48,    87,    -1,    -1,
    -1,    53,    54,    55,    -1,    -1,    -1,    59,    60,    -1,
     1,    -1,    64,     4,     5,     6,     7,     4,     5,     6,
     7,    12,    13,    14,    -1,    12,    13,    14,    -1,    -1,
    -1,    -1,    84,    85,    -1,    87,    27,    28,    -1,    30,
     1,    28,    -1,     4,     5,     6,     7,    -1,    -1,    -1,
    41,    12,    13,    14,    -1,     3,    -1,    -1,    -1,    -1,
     8,     9,    -1,    11,    -1,    -1,    27,    28,     4,    30,
     6,     7,    -1,    64,    65,    -1,    12,    13,    14,    -1,
    41,    29,    -1,    31,    -1,    33,    34,    35,    -1,    -1,
    -1,    82,    28,    -1,    -1,    86,    87,    45,    -1,    -1,
    48,    -1,    -1,    -1,    -1,    53,    54,    55,    -1,    -1,
    -1,    59,    60,    -1,    -1,    -1,    64,    -1,    -1,    -1,
    -1,    82,     3,    -1,    -1,    86,    87,     8,     9,    -1,
    11,    -1,    -1,    -1,    -1,    -1,    84,    85,    -1,    -1,
    88,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    29,    -1,
    31,    -1,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,
     3,    -1,    -1,    -1,    45,     8,     9,    48,    11,    -1,
    -1,    -1,    53,    54,    55,    -1,    -1,    -1,    59,    60,
    -1,    -1,    -1,    64,    -1,    -1,    29,    -1,    31,    -1,
    33,    34,    35,    50,    51,    52,    53,    54,    55,    56,
    57,    -1,    45,    84,    85,    48,    -1,    88,    -1,    -1,
    53,    54,    55,    -1,    -1,    -1,    59,    60,     3,    -1,
    -1,    64,    -1,     8,     9,    42,    11,    44,    45,    46,
    47,    48,    49,    50,    51,    52,    53,    54,    55,    56,
    57,    84,    85,    -1,    29,    88,    31,    -1,    33,    34,
    35,    -1,    -1,    -1,    -1,    -1,     3,    -1,    -1,    -1,
    45,     8,     9,    48,    11,    -1,    -1,    -1,    53,    54,
    55,    -1,    -1,    -1,    59,    60,    -1,    -1,    -1,    64,
1195
    -1,    -1,    29,    -1,    31,    -1,    33,    34,    35,    -1,
1196 1197 1198 1199 1200 1201 1202 1203 1204
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    45,    84,
    85,    48,    -1,    88,    -1,    -1,    53,    54,    55,    -1,
    -1,    -1,    59,    60,     3,    -1,    -1,    64,    -1,     8,
     9,    -1,    11,    45,    46,    47,    48,    49,    50,    51,
    52,    53,    54,    55,    56,    57,    -1,    84,    85,    -1,
    29,    88,    31,    -1,    33,    34,    35,    -1,    -1,    -1,
    -1,    -1,     3,    -1,    -1,    -1,    45,     8,     9,    48,
    11,    -1,    -1,    -1,    53,    54,    55,    -1,    -1,    -1,
    59,    60,    -1,    -1,    -1,    64,    -1,    -1,    29,    -1,
1205
    31,    -1,    33,    34,    35,    10,    -1,    -1,    -1,    -1,
1206 1207 1208
    -1,    -1,    -1,    -1,    45,    84,    85,    48,    -1,    88,
    -1,    -1,    53,    54,    55,    -1,    -1,    -1,    59,    60,
    -1,    -1,    -1,    64,    -1,    40,    41,    42,    43,    44,
1209
    45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
1210 1211 1212 1213 1214 1215 1216
    55,    56,    57,    84,    85,    -1,    -1,    88,     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,
    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    45,    -1,    -1,    48,    -1,    -1,    30,    -1,    53,    54,
    55,    -1,    -1,    -1,    59,    60,    40,    41,    42,    64,
1217
    44,    45,    46,    47,    48,    49,    50,    51,    52,    53,
1218 1219 1220 1221 1222 1223 1224 1225
    54,    55,    56,    57,    -1,    -1,    -1,    82,    -1,    84,
    85,    -1,    87,     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,    35,    -1,    -1,    -1,    -1,
    -1,     3,    -1,    -1,    -1,    45,     8,     9,    48,    11,
    -1,    -1,    -1,    53,    54,    55,    -1,    -1,    -1,    59,
    60,    -1,    -1,    -1,    64,    -1,    -1,    29,    -1,    31,
1226
    -1,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,
1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237
    -1,    -1,    82,    45,    84,    85,    48,    87,    -1,    -1,
    -1,    53,    54,    55,    -1,    -1,    -1,    59,    60,    -1,
    -1,    -1,    64,     3,     4,     5,     6,     7,     8,     9,
    -1,    11,    12,    13,    14,    -1,    -1,    -1,    -1,    -1,
    -1,    -1,    84,    85,    -1,    87,    -1,    -1,    28,    29,
    30,    31,    -1,    33,    34,    35,    -1,    -1,    -1,    -1,
    -1,    -1,    -1,    -1,    -1,    45,    -1,    -1,    48,    -1,
    -1,    -1,    -1,    53,    54,    55,    -1,    -1,    -1,    59,
    60,    -1,     3,     4,    64,     6,     7,     8,     9,    -1,
    11,    12,    13,    14,    48,    49,    50,    51,    52,    53,
    54,    55,    56,    57,    84,    85,    -1,    28,    29,    -1,
1238
    31,    -1,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,
1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275
     3,    -1,    -1,    -1,    45,     8,     9,    48,    11,    -1,
    -1,    -1,    53,    54,    55,    -1,    -1,    -1,    59,    60,
    -1,    -1,    -1,    64,    -1,    -1,    29,    -1,    31,    -1,
    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
    -1,     3,    45,    84,    85,    48,     8,     9,    -1,    11,
    53,    54,    55,    -1,    -1,    -1,    59,    60,    -1,    -1,
    -1,    64,    -1,    -1,    -1,    -1,    -1,    29,    -1,    31,
    -1,    33,    34,    35,    -1,    -1,    -1,    -1,    -1,    82,
    -1,    84,    85,    45,    -1,    -1,    48,    -1,    -1,    -1,
    -1,    53,    54,    55,    -1,    -1,    -1,    59,    60,     3,
    -1,    -1,    64,    -1,     8,     9,    -1,    11,    46,    47,
    48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
    -1,    -1,    84,    85,    -1,    29,    -1,    31,    -1,    33,
    34,    35,    -1,    -1,    -1,    -1,    -1,     3,    -1,    -1,
    -1,    45,     8,     9,    48,    11,    -1,    -1,    -1,    53,
    54,    55,    -1,    -1,    -1,    59,    60,    -1,    -1,    -1,
    64,    -1,    -1,    29,    -1,    31,    -1,    33,    34,    35,
    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,     3,    45,
    84,    85,    48,     8,     9,    -1,    11,    53,    54,    55,
    -1,    -1,    -1,    59,    60,    -1,    -1,    -1,    64,    -1,
    -1,    -1,    -1,    -1,    29,    -1,    31,    -1,    33,    34,
    35,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    84,    85,
    45,    -1,    -1,    48,    -1,    -1,    -1,    -1,    53,    54,
    55,    -1,    -1,    -1,    59,    60,    -1,    -1,     1,    64,
     3,     4,     5,     6,     7,    -1,    -1,    -1,    -1,    12,
    13,    14,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    84,
    85,    -1,    -1,    -1,    27,    28,    -1,    30,    31,    40,
    41,    42,    -1,    44,    45,    46,    47,    48,    49,    50,
    51,    52,    53,    54,    55,    56,    57,    -1,    -1,    -1,
    -1,    -1,    55,    -1,    -1,    -1,    -1,    -1,    40,    41,
    42,    64,    44,    45,    46,    47,    48,    49,    50,    51,
    52,    53,    54,    55,    56,    57,    -1,    88,    -1,    82,
    40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
    50,    51,    52,    53,    54,    55,    56,    57,    -1,    -1,
    -1,    40,    41,    42,    86,    44,    45,    46,    47,    48,
    49,    50,    51,    52,    53,    54,    55,    56,    57,    47,
    48,    49,    50,    51,    52,    53,    54,    55,    56,    57
Jeff Law committed
1276 1277
};
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
1278
#line 3 "/usr/lib/bison.simple"
1279
/* This file comes from bison-1.27.  */
Jeff Law committed
1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295

/* 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
1296 1297
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */
Jeff Law committed
1298 1299 1300 1301 1302 1303

/* 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.  */

1304 1305 1306 1307 1308 1309 1310 1311 1312
/* 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.  */

#ifndef YYSTACK_USE_ALLOCA
#ifdef alloca
#define YYSTACK_USE_ALLOCA
#else /* alloca not defined */
Jeff Law committed
1313
#ifdef __GNUC__
1314
#define YYSTACK_USE_ALLOCA
Jeff Law committed
1315 1316
#define alloca __builtin_alloca
#else /* not GNU C.  */
1317 1318
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
#define YYSTACK_USE_ALLOCA
Jeff Law committed
1319 1320
#include <alloca.h>
#else /* not sparc */
1321 1322 1323 1324 1325 1326
/* We think this test detects Watcom and Microsoft C.  */
/* This used to test MSDOS, but that is a bad idea
   since that symbol is in the user namespace.  */
#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
#if 0 /* No need for malloc.h, which pollutes the namespace;
	 instead, just don't use alloca.  */
Jeff Law committed
1327
#include <malloc.h>
1328
#endif
Jeff Law committed
1329 1330
#else /* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
1331 1332 1333
/* I don't know what this was needed for, but it pollutes the namespace.
   So I turned it off.   rms, 2 May 1997.  */
/* #include <malloc.h>  */
Jeff Law committed
1334
 #pragma alloca
1335 1336 1337 1338 1339 1340 1341
#define YYSTACK_USE_ALLOCA
#else /* not MSDOS, or __TURBOC__, or _AIX */
#if 0
#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
		 and on HPUX 10.  Eventually we can turn this on.  */
#define YYSTACK_USE_ALLOCA
#define alloca __builtin_alloca
Jeff Law committed
1342
#endif /* __hpux */
1343
#endif
Jeff Law committed
1344 1345
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
1346 1347 1348 1349
#endif /* not sparc */
#endif /* not GNU C */
#endif /* alloca not defined */
#endif /* YYSTACK_USE_ALLOCA not defined */
Jeff Law committed
1350

1351 1352 1353 1354 1355
#ifdef YYSTACK_USE_ALLOCA
#define YYSTACK_ALLOC alloca
#else
#define YYSTACK_ALLOC malloc
#endif
Jeff Law committed
1356 1357 1358 1359 1360 1361 1362 1363 1364

/* 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
1365 1366
#define YYACCEPT	goto yyacceptlab
#define YYABORT 	goto yyabortlab
Jeff Law committed
1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446
#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
Jeff Law committed
1447

1448 1449 1450 1451 1452
/* Define __yy_memcpy.  Note that the size argument
   should be passed with type unsigned int, because that is what the non-GCC
   definitions require.  With GCC, __builtin_memcpy takes an arg
   of type size_t, but it can handle unsigned int.  */

Jeff Law committed
1453
#if __GNUC__ > 1		/* GNU C and GNU C++ define this.  */
1454
#define __yy_memcpy(TO,FROM,COUNT)	__builtin_memcpy(TO,FROM,COUNT)
Jeff Law committed
1455 1456 1457 1458 1459 1460
#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
1461
__yy_memcpy (to, from, count)
Jeff Law committed
1462
     char *to;
1463
     char *from;
1464
     unsigned int count;
Jeff Law committed
1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478
{
  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
1479
__yy_memcpy (char *to, char *from, unsigned int count)
Jeff Law committed
1480
{
Jeff Law committed
1481
  register char *t = to;
1482
  register char *f = from;
Jeff Law committed
1483 1484 1485 1486 1487 1488 1489 1490 1491
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}

#endif
#endif

1492
#line 216 "/usr/lib/bison.simple"
Jeff Law committed
1493 1494 1495 1496 1497 1498 1499 1500

/* 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
1501 1502 1503 1504 1505
#ifdef __cplusplus
#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
#define YYPARSE_PARAM_DECL
#else /* not __cplusplus */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
Jeff Law committed
1506
#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
1507 1508 1509
#endif /* not __cplusplus */
#else /* not YYPARSE_PARAM */
#define YYPARSE_PARAM_ARG
Jeff Law committed
1510
#define YYPARSE_PARAM_DECL
1511
#endif /* not YYPARSE_PARAM */
Jeff Law committed
1512

1513 1514 1515 1516 1517 1518 1519 1520 1521
/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
#ifdef YYPARSE_PARAM
int yyparse (void *);
#else
int yyparse (void);
#endif
#endif

Jeff Law committed
1522
int
1523
yyparse(YYPARSE_PARAM_ARG)
Jeff Law committed
1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549
     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;
1550
  int yyfree_stacks = 0;
Jeff Law committed
1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566

#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;

1567
#if YYDEBUG != 0
Jeff Law committed
1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634
  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");
1635 1636 1637 1638 1639 1640 1641 1642
	  if (yyfree_stacks)
	    {
	      free (yyss);
	      free (yyvs);
#ifdef YYLSP_NEEDED
	      free (yyls);
#endif
	    }
Jeff Law committed
1643 1644 1645 1646 1647
	  return 2;
	}
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
	yystacksize = YYMAXDEPTH;
1648 1649 1650 1651 1652 1653 1654 1655 1656
#ifndef YYSTACK_USE_ALLOCA
      yyfree_stacks = 1;
#endif
      yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
      __yy_memcpy ((char *)yyss, (char *)yyss1,
		   size * (unsigned int) sizeof (*yyssp));
      yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
      __yy_memcpy ((char *)yyvs, (char *)yyvs1,
		   size * (unsigned int) sizeof (*yyvsp));
Jeff Law committed
1657
#ifdef YYLSP_NEEDED
1658 1659 1660
      yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
      __yy_memcpy ((char *)yyls, (char *)yyls1,
		   size * (unsigned int) sizeof (*yylsp));
Jeff Law committed
1661 1662 1663 1664 1665 1666 1667 1668 1669
#endif
#endif /* no yyoverflow */

      yyssp = yyss + size - 1;
      yyvsp = yyvs + size - 1;
#ifdef YYLSP_NEEDED
      yylsp = yyls + size - 1;
#endif

1670
#if YYDEBUG != 0
Jeff Law committed
1671 1672 1673 1674 1675 1676 1677 1678
      if (yydebug)
	fprintf(stderr, "Stack size increased to %d\n", yystacksize);
#endif

      if (yyssp >= yyss + yystacksize - 1)
	YYABORT;
    }

1679
#if YYDEBUG != 0
Jeff Law committed
1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703
  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)
    {
1704
#if YYDEBUG != 0
Jeff Law committed
1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717
      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 */

1718
#if YYDEBUG != 0
Jeff Law committed
1719 1720 1721 1722 1723 1724 1725 1726
      if (yydebug)
	fprintf(stderr, "Now at end of input.\n");
#endif
    }
  else
    {
      yychar1 = YYTRANSLATE(yychar);

1727
#if YYDEBUG != 0
Jeff Law committed
1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768
      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.  */

1769
#if YYDEBUG != 0
Jeff Law committed
1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805
  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;
1806

Jeff Law committed
1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820
      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:
1821
#line 237 "c-parse.y"
Jeff Law committed
1822 1823 1824 1825 1826 1827
{ if (pedantic)
		    pedwarn ("ANSI C forbids an empty source file");
		  finish_file ();
		;
    break;}
case 2:
1828
#line 242 "c-parse.y"
Jeff Law committed
1829 1830 1831 1832 1833 1834 1835 1836 1837
{
		  /* 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:
1838
#line 256 "c-parse.y"
Jeff Law committed
1839 1840 1841
{yyval.ttype = NULL_TREE; ;
    break;}
case 5:
1842
#line 257 "c-parse.y"
Jeff Law committed
1843 1844 1845
{yyval.ttype = NULL_TREE; ;
    break;}
case 9:
1846
#line 264 "c-parse.y"
Jeff Law committed
1847 1848 1849 1850 1851 1852 1853 1854 1855
{ 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:
1856
#line 272 "c-parse.y"
1857
{ RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ;
Jeff Law committed
1858 1859
    break;}
case 11:
1860
#line 277 "c-parse.y"
Jeff Law committed
1861 1862 1863 1864 1865 1866 1867
{ 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);
1868
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
1869 1870
    break;}
case 12:
1871
#line 286 "c-parse.y"
Jeff Law committed
1872 1873
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
1874
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
1875 1876
    break;}
case 13:
1877
#line 290 "c-parse.y"
Jeff Law committed
1878 1879
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
1880
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
1881 1882
    break;}
case 14:
1883
#line 294 "c-parse.y"
Jeff Law committed
1884 1885 1886
{ pedwarn ("empty declaration"); ;
    break;}
case 15:
1887
#line 296 "c-parse.y"
Jeff Law committed
1888 1889 1890
{ shadow_tag (yyvsp[-1].ttype); ;
    break;}
case 18:
1891
#line 300 "c-parse.y"
Jeff Law committed
1892 1893 1894 1895
{ if (pedantic)
		    pedwarn ("ANSI C does not allow extra `;' outside of a function"); ;
    break;}
case 19:
1896
#line 306 "c-parse.y"
Jeff Law committed
1897
{ if (! start_function (current_declspecs, yyvsp[0].ttype,
1898
					prefix_attributes, NULL_TREE))
Jeff Law committed
1899 1900 1901 1902
		    YYERROR1;
		  reinit_parse_for_function (); ;
    break;}
case 20:
1903
#line 311 "c-parse.y"
Jeff Law committed
1904 1905 1906
{ store_parm_decls (); ;
    break;}
case 21:
1907
#line 313 "c-parse.y"
Jeff Law committed
1908 1909 1910
{ finish_function (0); 
		  current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
1911
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
1912 1913
    break;}
case 22:
1914
#line 318 "c-parse.y"
Jeff Law committed
1915 1916
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
1917
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
1918 1919
    break;}
case 23:
1920
#line 322 "c-parse.y"
Jeff Law committed
1921
{ if (! start_function (current_declspecs, yyvsp[0].ttype,
1922
					prefix_attributes, NULL_TREE))
Jeff Law committed
1923 1924 1925 1926
		    YYERROR1;
		  reinit_parse_for_function (); ;
    break;}
case 24:
1927
#line 327 "c-parse.y"
Jeff Law committed
1928 1929 1930
{ store_parm_decls (); ;
    break;}
case 25:
1931
#line 329 "c-parse.y"
Jeff Law committed
1932 1933 1934
{ finish_function (0); 
		  current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
1935
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
1936 1937
    break;}
case 26:
1938
#line 334 "c-parse.y"
Jeff Law committed
1939 1940
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
1941
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
1942 1943
    break;}
case 27:
1944
#line 338 "c-parse.y"
Jeff Law committed
1945
{ if (! start_function (NULL_TREE, yyvsp[0].ttype,
1946
					prefix_attributes, NULL_TREE))
Jeff Law committed
1947 1948 1949 1950
		    YYERROR1;
		  reinit_parse_for_function (); ;
    break;}
case 28:
1951
#line 343 "c-parse.y"
Jeff Law committed
1952 1953 1954
{ store_parm_decls (); ;
    break;}
case 29:
1955
#line 345 "c-parse.y"
Jeff Law committed
1956 1957 1958
{ finish_function (0); 
		  current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
1959
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
1960 1961
    break;}
case 30:
1962
#line 350 "c-parse.y"
Jeff Law committed
1963 1964
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
1965
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
1966 1967
    break;}
case 33:
1968
#line 361 "c-parse.y"
Jeff Law committed
1969 1970 1971
{ yyval.code = ADDR_EXPR; ;
    break;}
case 34:
1972
#line 363 "c-parse.y"
Jeff Law committed
1973 1974 1975
{ yyval.code = NEGATE_EXPR; ;
    break;}
case 35:
1976
#line 365 "c-parse.y"
Jeff Law committed
1977 1978 1979
{ yyval.code = CONVERT_EXPR; ;
    break;}
case 36:
1980
#line 367 "c-parse.y"
Jeff Law committed
1981 1982 1983
{ yyval.code = PREINCREMENT_EXPR; ;
    break;}
case 37:
1984
#line 369 "c-parse.y"
Jeff Law committed
1985 1986 1987
{ yyval.code = PREDECREMENT_EXPR; ;
    break;}
case 38:
1988
#line 371 "c-parse.y"
Jeff Law committed
1989 1990 1991
{ yyval.code = BIT_NOT_EXPR; ;
    break;}
case 39:
1992
#line 373 "c-parse.y"
Jeff Law committed
1993 1994 1995
{ yyval.code = TRUTH_NOT_EXPR; ;
    break;}
case 40:
1996
#line 377 "c-parse.y"
Jeff Law committed
1997 1998 1999
{ yyval.ttype = build_compound_expr (yyvsp[0].ttype); ;
    break;}
case 41:
2000
#line 382 "c-parse.y"
Jeff Law committed
2001 2002 2003
{ yyval.ttype = NULL_TREE; ;
    break;}
case 43:
2004
#line 388 "c-parse.y"
Jeff Law committed
2005 2006 2007
{ yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
    break;}
case 44:
2008
#line 390 "c-parse.y"
Jeff Law committed
2009 2010 2011
{ chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
    break;}
case 46:
2012
#line 396 "c-parse.y"
Jeff Law committed
2013 2014 2015
{ yyval.ttype = build_indirect_ref (yyvsp[0].ttype, "unary *"); ;
    break;}
case 47:
2016
#line 399 "c-parse.y"
Jeff Law committed
2017
{ yyval.ttype = yyvsp[0].ttype;
2018
		  RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ;
Jeff Law committed
2019 2020
    break;}
case 48:
2021
#line 402 "c-parse.y"
Jeff Law committed
2022 2023 2024 2025
{ yyval.ttype = build_unary_op (yyvsp[-1].code, yyvsp[0].ttype, 0);
		  overflow_warning (yyval.ttype); ;
    break;}
case 49:
2026
#line 406 "c-parse.y"
Jeff Law committed
2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040
{ 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:
2041
#line 434 "c-parse.y"
Jeff Law committed
2042 2043
{ skip_evaluation--;
		  if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF
2044
		      && DECL_C_BIT_FIELD (TREE_OPERAND (yyvsp[0].ttype, 1)))
Jeff Law committed
2045 2046 2047 2048
		    error ("`sizeof' applied to a bit-field");
		  yyval.ttype = c_sizeof (TREE_TYPE (yyvsp[0].ttype)); ;
    break;}
case 51:
2049
#line 440 "c-parse.y"
Jeff Law committed
2050 2051 2052 2053
{ skip_evaluation--;
		  yyval.ttype = c_sizeof (groktypename (yyvsp[-1].ttype)); ;
    break;}
case 52:
2054
#line 443 "c-parse.y"
Jeff Law committed
2055 2056 2057 2058
{ skip_evaluation--;
		  yyval.ttype = c_alignof_expr (yyvsp[0].ttype); ;
    break;}
case 53:
2059
#line 446 "c-parse.y"
Jeff Law committed
2060 2061 2062 2063
{ skip_evaluation--;
		  yyval.ttype = c_alignof (groktypename (yyvsp[-1].ttype)); ;
    break;}
case 54:
2064
#line 449 "c-parse.y"
Jeff Law committed
2065 2066 2067
{ yyval.ttype = build_unary_op (REALPART_EXPR, yyvsp[0].ttype, 0); ;
    break;}
case 55:
2068
#line 451 "c-parse.y"
Jeff Law committed
2069 2070 2071
{ yyval.ttype = build_unary_op (IMAGPART_EXPR, yyvsp[0].ttype, 0); ;
    break;}
case 56:
2072
#line 453 "c-parse.y"
2073
{ yyval.ttype = build_va_arg (yyvsp[-3].ttype, groktypename (yyvsp[-1].ttype)); ;
Jeff Law committed
2074 2075
    break;}
case 57:
2076
#line 457 "c-parse.y"
2077 2078 2079
{ skip_evaluation++; ;
    break;}
case 58:
2080
#line 461 "c-parse.y"
Jeff Law committed
2081 2082
{ skip_evaluation++; ;
    break;}
2083
case 60:
2084
#line 467 "c-parse.y"
Jeff Law committed
2085 2086 2087
{ tree type = groktypename (yyvsp[-2].ttype);
		  yyval.ttype = build_c_cast (type, yyvsp[0].ttype); ;
    break;}
2088
case 61:
2089
#line 470 "c-parse.y"
Jeff Law committed
2090 2091 2092 2093
{ start_init (NULL_TREE, NULL, 0);
		  yyvsp[-2].ttype = groktypename (yyvsp[-2].ttype);
		  really_start_incremental_init (yyvsp[-2].ttype); ;
    break;}
2094
case 62:
2095
#line 474 "c-parse.y"
2096
{ const char *name;
Jeff Law committed
2097 2098 2099 2100
		  tree result = pop_init_level (0);
		  tree type = yyvsp[-5].ttype;
		  finish_init ();

Ulrich Drepper committed
2101
		  if (pedantic && ! flag_isoc99)
Jeff Law committed
2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112
		    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;
2113
		  if (TREE_CODE (type) == ARRAY_TYPE && !COMPLETE_TYPE_P (type))
Jeff Law committed
2114 2115 2116 2117 2118 2119 2120 2121
		    {
		      int failure = complete_array_type (type, yyval.ttype, 1);
		      if (failure)
			abort ();
		    }
		;
    break;}
case 64:
2122
#line 503 "c-parse.y"
Jeff Law committed
2123 2124 2125
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 65:
2126
#line 505 "c-parse.y"
Jeff Law committed
2127 2128 2129
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 66:
2130
#line 507 "c-parse.y"
Jeff Law committed
2131 2132 2133
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 67:
2134
#line 509 "c-parse.y"
Jeff Law committed
2135 2136 2137
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 68:
2138
#line 511 "c-parse.y"
Jeff Law committed
2139 2140 2141
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 69:
2142
#line 513 "c-parse.y"
Jeff Law committed
2143 2144 2145
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 70:
2146
#line 515 "c-parse.y"
Jeff Law committed
2147 2148 2149
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 71:
2150
#line 517 "c-parse.y"
Jeff Law committed
2151 2152 2153
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 72:
2154
#line 519 "c-parse.y"
Jeff Law committed
2155 2156 2157
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 73:
2158
#line 521 "c-parse.y"
Jeff Law committed
2159 2160 2161
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 74:
2162
#line 523 "c-parse.y"
Jeff Law committed
2163 2164 2165
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 75:
2166
#line 525 "c-parse.y"
2167 2168 2169
{ yyval.ttype = parser_build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
case 76:
2170
#line 527 "c-parse.y"
Jeff Law committed
2171 2172 2173
{ yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[-1].ttype));
		  skip_evaluation += yyvsp[-1].ttype == boolean_false_node; ;
    break;}
2174
case 77:
2175
#line 530 "c-parse.y"
Jeff Law committed
2176 2177 2178
{ skip_evaluation -= yyvsp[-3].ttype == boolean_false_node;
		  yyval.ttype = parser_build_binary_op (TRUTH_ANDIF_EXPR, yyvsp[-3].ttype, yyvsp[0].ttype); ;
    break;}
2179
case 78:
2180
#line 533 "c-parse.y"
Jeff Law committed
2181 2182 2183
{ yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[-1].ttype));
		  skip_evaluation += yyvsp[-1].ttype == boolean_true_node; ;
    break;}
2184
case 79:
2185
#line 536 "c-parse.y"
Jeff Law committed
2186 2187 2188
{ skip_evaluation -= yyvsp[-3].ttype == boolean_true_node;
		  yyval.ttype = parser_build_binary_op (TRUTH_ORIF_EXPR, yyvsp[-3].ttype, yyvsp[0].ttype); ;
    break;}
2189
case 80:
2190
#line 539 "c-parse.y"
Jeff Law committed
2191 2192 2193
{ yyvsp[-1].ttype = truthvalue_conversion (default_conversion (yyvsp[-1].ttype));
		  skip_evaluation += yyvsp[-1].ttype == boolean_false_node; ;
    break;}
2194
case 81:
2195
#line 542 "c-parse.y"
Jeff Law committed
2196 2197 2198
{ skip_evaluation += ((yyvsp[-4].ttype == boolean_true_node)
				      - (yyvsp[-4].ttype == boolean_false_node)); ;
    break;}
2199
case 82:
2200
#line 545 "c-parse.y"
Jeff Law committed
2201 2202 2203
{ skip_evaluation -= yyvsp[-6].ttype == boolean_true_node;
		  yyval.ttype = build_conditional_expr (yyvsp[-6].ttype, yyvsp[-3].ttype, yyvsp[0].ttype); ;
    break;}
2204
case 83:
2205
#line 548 "c-parse.y"
Jeff Law committed
2206 2207 2208 2209 2210 2211 2212
{ 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;}
2213
case 84:
2214
#line 555 "c-parse.y"
Jeff Law committed
2215 2216 2217
{ skip_evaluation -= yyvsp[-4].ttype == boolean_true_node;
		  yyval.ttype = build_conditional_expr (yyvsp[-4].ttype, yyvsp[-3].ttype, yyvsp[0].ttype); ;
    break;}
2218
case 85:
2219
#line 558 "c-parse.y"
2220 2221 2222 2223 2224 2225 2226
{ char class;
		  yyval.ttype = build_modify_expr (yyvsp[-2].ttype, NOP_EXPR, yyvsp[0].ttype);
		  class = TREE_CODE_CLASS (TREE_CODE (yyval.ttype));
		  if (class == 'e' || class == '1'
		      || class == '2' || class == '<')
		    C_SET_EXP_ORIGINAL_CODE (yyval.ttype, MODIFY_EXPR);
		;
Jeff Law committed
2227
    break;}
2228
case 86:
2229
#line 566 "c-parse.y"
2230 2231
{ char class;
		  yyval.ttype = build_modify_expr (yyvsp[-2].ttype, yyvsp[-1].code, yyvsp[0].ttype);
Jeff Law committed
2232
		  /* This inhibits warnings in truthvalue_conversion.  */
2233 2234 2235 2236 2237
		  class = TREE_CODE_CLASS (TREE_CODE (yyval.ttype));
		  if (class == 'e' || class == '1'
		      || class == '2' || class == '<')
		    C_SET_EXP_ORIGINAL_CODE (yyval.ttype, ERROR_MARK);
		;
Jeff Law committed
2238
    break;}
2239
case 87:
2240
#line 578 "c-parse.y"
Jeff Law committed
2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267
{
		  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)
				{
2268
				  error ("`%s' undeclared (first use in this function)",
Jeff Law committed
2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339
					 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 89:
2340
#line 677 "c-parse.y"
2341 2342 2343
{ yyval.ttype = combine_strings (yyvsp[0].ttype); ;
    break;}
case 90:
2344
#line 679 "c-parse.y"
Jeff Law committed
2345 2346 2347 2348 2349 2350 2351
{ 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 91:
2352
#line 685 "c-parse.y"
2353 2354 2355
{ yyval.ttype = error_mark_node; ;
    break;}
case 92:
2356
#line 687 "c-parse.y"
Jeff Law committed
2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379
{ 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;}
2380
case 93:
2381
#line 710 "c-parse.y"
2382 2383 2384 2385 2386 2387 2388 2389 2390
{
		  /* Make sure we call expand_end_stmt_expr.  Otherwise
		     we are likely to lose sequences and crash later.  */
		  pop_iterator_stack ();
		  pop_label_level ();
		  expand_end_stmt_expr (yyvsp[-2].ttype);
		  yyval.ttype = error_mark_node;
		;
    break;}
Jeff Law committed
2391
case 94:
2392
#line 719 "c-parse.y"
2393
{ yyval.ttype = build_function_call (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
Jeff Law committed
2394 2395
    break;}
case 95:
2396
#line 721 "c-parse.y"
2397 2398 2399
{ yyval.ttype = build_array_ref (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
    break;}
case 96:
2400
#line 723 "c-parse.y"
Jeff Law committed
2401 2402 2403 2404
{
		    yyval.ttype = build_component_ref (yyvsp[-2].ttype, yyvsp[0].ttype);
		;
    break;}
2405
case 97:
2406
#line 727 "c-parse.y"
Jeff Law committed
2407 2408 2409 2410 2411 2412 2413
{
                  tree expr = build_indirect_ref (yyvsp[-2].ttype, "->");

                    yyval.ttype = build_component_ref (expr, yyvsp[0].ttype);
		;
    break;}
case 98:
2414
#line 733 "c-parse.y"
2415 2416 2417
{ yyval.ttype = build_unary_op (POSTINCREMENT_EXPR, yyvsp[-1].ttype, 0); ;
    break;}
case 99:
2418
#line 735 "c-parse.y"
Jeff Law committed
2419 2420
{ yyval.ttype = build_unary_op (POSTDECREMENT_EXPR, yyvsp[-1].ttype, 0); ;
    break;}
2421
case 101:
2422
#line 742 "c-parse.y"
2423
{ yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
2424
		  if (warn_traditional && !in_system_header)
2425 2426
		    warning ("Use of ANSI string concatenation");
		;
Jeff Law committed
2427
    break;}
2428
case 104:
2429
#line 754 "c-parse.y"
Jeff Law committed
2430 2431 2432 2433
{ c_mark_varargs ();
		  if (pedantic)
		    pedwarn ("ANSI C does not permit use of `varargs.h'"); ;
    break;}
2434
case 105:
2435
#line 764 "c-parse.y"
Jeff Law committed
2436 2437
{ ;
    break;}
2438
case 110:
2439
#line 780 "c-parse.y"
Jeff Law committed
2440 2441
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
2442
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
2443
    break;}
2444
case 111:
2445
#line 784 "c-parse.y"
Jeff Law committed
2446 2447
{ current_declspecs = TREE_VALUE (declspec_stack);	
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
2448
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
2449
    break;}
2450
case 112:
2451
#line 788 "c-parse.y"
Jeff Law committed
2452 2453 2454
{ shadow_tag_warned (yyvsp[-1].ttype, 1);
		  pedwarn ("empty declaration"); ;
    break;}
2455
case 113:
2456
#line 791 "c-parse.y"
Jeff Law committed
2457 2458
{ pedwarn ("empty declaration"); ;
    break;}
2459
case 114:
2460
#line 800 "c-parse.y"
Jeff Law committed
2461 2462
{ ;
    break;}
2463
case 119:
2464
#line 815 "c-parse.y"
2465
{ pending_xref_error ();
Jeff Law committed
2466 2467 2468 2469 2470 2471
		  declspec_stack = tree_cons (prefix_attributes,
					      current_declspecs,
					      declspec_stack);
		  split_specs_attrs (yyvsp[0].ttype,
				     &current_declspecs, &prefix_attributes); ;
    break;}
2472
case 120:
2473
#line 825 "c-parse.y"
Jeff Law committed
2474 2475
{ prefix_attributes = chainon (prefix_attributes, yyvsp[0].ttype); ;
    break;}
2476
case 121:
2477
#line 830 "c-parse.y"
Jeff Law committed
2478 2479
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
2480
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
2481
    break;}
2482
case 122:
2483
#line 834 "c-parse.y"
Jeff Law committed
2484 2485
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
2486
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
2487
    break;}
2488
case 123:
2489
#line 838 "c-parse.y"
Jeff Law committed
2490 2491
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
2492
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
2493
    break;}
2494
case 124:
2495
#line 842 "c-parse.y"
Jeff Law committed
2496 2497
{ current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
2498
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
2499 2500
    break;}
case 125:
2501
#line 846 "c-parse.y"
2502
{ shadow_tag (yyvsp[-1].ttype); ;
Jeff Law committed
2503 2504
    break;}
case 126:
2505
#line 848 "c-parse.y"
2506
{ pedwarn ("empty declaration"); ;
Jeff Law committed
2507 2508
    break;}
case 127:
2509
#line 850 "c-parse.y"
2510
{ RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ;
Jeff Law committed
2511 2512
    break;}
case 128:
2513
#line 860 "c-parse.y"
2514
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
Jeff Law committed
2515 2516
    break;}
case 129:
2517
#line 862 "c-parse.y"
2518
{ yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
Jeff Law committed
2519 2520
    break;}
case 130:
2521
#line 866 "c-parse.y"
2522
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
2523 2524
    break;}
case 131:
2525
#line 868 "c-parse.y"
2526 2527 2528
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
    break;}
case 132:
2529
#line 870 "c-parse.y"
Jeff Law committed
2530 2531 2532 2533 2534 2535
{ 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 133:
2536
#line 875 "c-parse.y"
2537
{ yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ttype); ;
Jeff Law committed
2538 2539
    break;}
case 134:
2540
#line 880 "c-parse.y"
2541
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
Jeff Law committed
2542 2543
    break;}
case 135:
2544
#line 882 "c-parse.y"
2545
{ yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
Jeff Law committed
2546 2547
    break;}
case 136:
2548
#line 887 "c-parse.y"
2549
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
2550 2551
    break;}
case 137:
2552
#line 889 "c-parse.y"
2553 2554 2555
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
    break;}
case 138:
2556
#line 891 "c-parse.y"
Jeff Law committed
2557 2558 2559 2560 2561 2562
{ 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 139:
2563
#line 904 "c-parse.y"
2564
{ yyval.ttype = yyvsp[0].ttype; ;
Jeff Law committed
2565 2566
    break;}
case 140:
2567
#line 906 "c-parse.y"
2568
{ yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, NULL_TREE); ;
Jeff Law committed
2569 2570
    break;}
case 141:
2571
#line 908 "c-parse.y"
2572
{ yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-1].ttype); ;
Jeff Law committed
2573 2574
    break;}
case 142:
2575
#line 910 "c-parse.y"
2576
{ yyval.ttype = tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ttype); ;
Jeff Law committed
2577 2578
    break;}
case 143:
2579
#line 915 "c-parse.y"
2580 2581
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE);
		  TREE_STATIC (yyval.ttype) = 1; ;
Jeff Law committed
2582 2583
    break;}
case 144:
2584
#line 918 "c-parse.y"
2585 2586 2587
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
    break;}
case 145:
2588
#line 920 "c-parse.y"
Jeff Law committed
2589 2590 2591
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype);
		  TREE_STATIC (yyval.ttype) = 1; ;
    break;}
2592
case 146:
2593
#line 923 "c-parse.y"
Jeff Law committed
2594 2595 2596 2597 2598 2599 2600
{ 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 147:
2601
#line 937 "c-parse.y"
2602
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
Jeff Law committed
2603 2604
    break;}
case 148:
2605
#line 939 "c-parse.y"
2606
{ yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
Jeff Law committed
2607 2608
    break;}
case 149:
2609
#line 943 "c-parse.y"
2610 2611 2612
{ yyval.ttype = NULL_TREE; ;
    break;}
case 150:
2613
#line 945 "c-parse.y"
Jeff Law committed
2614 2615
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
    break;}
2616
case 153:
2617
#line 955 "c-parse.y"
Jeff Law committed
2618 2619 2620 2621 2622
{ /* 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 154:
2623
#line 959 "c-parse.y"
2624
{ yyval.ttype = TREE_TYPE (yyvsp[-1].ttype); ;
Jeff Law committed
2625
    break;}
2626
case 155:
2627
#line 961 "c-parse.y"
2628
{ yyval.ttype = groktypename (yyvsp[-1].ttype); ;
Jeff Law committed
2629 2630
    break;}
case 163:
2631
#line 983 "c-parse.y"
2632 2633 2634
{ yyval.ttype = NULL_TREE; ;
    break;}
case 164:
2635
#line 985 "c-parse.y"
Jeff Law committed
2636 2637 2638 2639
{ if (TREE_CHAIN (yyvsp[-1].ttype)) yyvsp[-1].ttype = combine_strings (yyvsp[-1].ttype);
		  yyval.ttype = yyvsp[-1].ttype;
		;
    break;}
2640
case 165:
2641
#line 992 "c-parse.y"
Jeff Law committed
2642 2643 2644 2645
{ 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;}
2646
case 166:
2647
#line 997 "c-parse.y"
Jeff Law committed
2648 2649 2650
{ finish_init ();
		  finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
    break;}
2651
case 167:
2652
#line 1000 "c-parse.y"
Jeff Law committed
2653 2654 2655 2656 2657
{ tree d = start_decl (yyvsp[-2].ttype, current_declspecs, 0,
				       yyvsp[0].ttype, prefix_attributes);
		  finish_decl (d, NULL_TREE, yyvsp[-1].ttype); 
                ;
    break;}
2658
case 168:
2659
#line 1008 "c-parse.y"
Jeff Law committed
2660 2661 2662 2663
{ 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;}
2664
case 169:
2665
#line 1013 "c-parse.y"
Jeff Law committed
2666 2667 2668 2669
{ finish_init ();
		  decl_attributes (yyvsp[-1].ttype, yyvsp[-3].ttype, prefix_attributes);
		  finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype); ;
    break;}
2670
case 170:
2671
#line 1017 "c-parse.y"
Jeff Law committed
2672 2673 2674 2675 2676
{ 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 171:
2677
#line 1025 "c-parse.y"
2678
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
2679 2680
    break;}
case 172:
2681
#line 1027 "c-parse.y"
Jeff Law committed
2682 2683 2684
{ yyval.ttype = yyvsp[0].ttype; ;
    break;}
case 173:
2685
#line 1032 "c-parse.y"
2686
{ yyval.ttype = yyvsp[0].ttype; ;
Jeff Law committed
2687 2688
    break;}
case 174:
2689
#line 1034 "c-parse.y"
2690
{ yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ;
Jeff Law committed
2691 2692
    break;}
case 175:
2693
#line 1039 "c-parse.y"
2694
{ yyval.ttype = yyvsp[-2].ttype; ;
Jeff Law committed
2695 2696
    break;}
case 176:
2697
#line 1044 "c-parse.y"
2698
{ yyval.ttype = yyvsp[0].ttype; ;
Jeff Law committed
2699 2700
    break;}
case 177:
2701
#line 1046 "c-parse.y"
2702
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
Jeff Law committed
2703 2704
    break;}
case 178:
2705
#line 1051 "c-parse.y"
2706
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
2707 2708
    break;}
case 179:
2709
#line 1053 "c-parse.y"
2710
{ yyval.ttype = build_tree_list (yyvsp[0].ttype, NULL_TREE); ;
Jeff Law committed
2711 2712
    break;}
case 180:
2713
#line 1055 "c-parse.y"
2714
{ yyval.ttype = build_tree_list (yyvsp[-3].ttype, build_tree_list (NULL_TREE, yyvsp[-1].ttype)); ;
Jeff Law committed
2715 2716
    break;}
case 181:
2717
#line 1057 "c-parse.y"
2718 2719 2720
{ yyval.ttype = build_tree_list (yyvsp[-5].ttype, tree_cons (NULL_TREE, yyvsp[-3].ttype, yyvsp[-1].ttype)); ;
    break;}
case 182:
2721
#line 1059 "c-parse.y"
Jeff Law committed
2722 2723
{ yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
    break;}
2724
case 188:
2725
#line 1077 "c-parse.y"
2726
{ really_start_incremental_init (NULL_TREE); ;
Jeff Law committed
2727
    break;}
2728
case 189:
2729
#line 1079 "c-parse.y"
2730
{ yyval.ttype = pop_init_level (0); ;
Jeff Law committed
2731
    break;}
2732
case 190:
2733
#line 1081 "c-parse.y"
Jeff Law committed
2734 2735
{ yyval.ttype = error_mark_node; ;
    break;}
2736
case 191:
2737
#line 1087 "c-parse.y"
Jeff Law committed
2738 2739 2740
{ if (pedantic)
		    pedwarn ("ANSI C forbids empty initializer braces"); ;
    break;}
2741
case 197:
2742
#line 1103 "c-parse.y"
2743 2744 2745
{ set_init_label (yyvsp[-1].ttype); ;
    break;}
case 200:
2746
#line 1110 "c-parse.y"
2747
{ push_init_level (0); ;
Jeff Law committed
2748
    break;}
2749
case 201:
2750
#line 1112 "c-parse.y"
2751
{ process_init_element (pop_init_level (0)); ;
Jeff Law committed
2752
    break;}
2753
case 202:
2754
#line 1114 "c-parse.y"
2755
{ process_init_element (yyvsp[0].ttype); ;
Jeff Law committed
2756 2757
    break;}
case 206:
2758
#line 1125 "c-parse.y"
2759
{ set_init_label (yyvsp[0].ttype); ;
2760 2761
    break;}
case 207:
2762
#line 1130 "c-parse.y"
2763
{ set_init_index (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
Jeff Law committed
2764 2765
    break;}
case 208:
2766
#line 1132 "c-parse.y"
2767 2768 2769
{ set_init_index (yyvsp[-1].ttype, NULL_TREE); ;
    break;}
case 209:
2770
#line 1137 "c-parse.y"
2771 2772 2773 2774
{ if (pedantic)
		    pedwarn ("ANSI C forbids nested functions");

		  push_function_context ();
Jeff Law committed
2775
		  if (! start_function (current_declspecs, yyvsp[0].ttype,
2776
					prefix_attributes, NULL_TREE))
Jeff Law committed
2777
		    {
2778
		      pop_function_context ();
Jeff Law committed
2779 2780 2781 2782
		      YYERROR1;
		    }
		  reinit_parse_for_function (); ;
    break;}
2783
case 210:
2784
#line 1149 "c-parse.y"
Jeff Law committed
2785 2786
{ store_parm_decls (); ;
    break;}
2787
case 211:
2788
#line 1157 "c-parse.y"
Jeff Law committed
2789
{ finish_function (1);
2790
		  pop_function_context (); ;
Jeff Law committed
2791
    break;}
2792
case 212:
2793
#line 1163 "c-parse.y"
2794 2795 2796 2797
{ if (pedantic)
		    pedwarn ("ANSI C forbids nested functions");

		  push_function_context ();
Jeff Law committed
2798
		  if (! start_function (current_declspecs, yyvsp[0].ttype,
2799
					prefix_attributes, NULL_TREE))
Jeff Law committed
2800
		    {
2801
		      pop_function_context ();
Jeff Law committed
2802 2803 2804 2805
		      YYERROR1;
		    }
		  reinit_parse_for_function (); ;
    break;}
2806
case 213:
2807
#line 1175 "c-parse.y"
Jeff Law committed
2808 2809
{ store_parm_decls (); ;
    break;}
2810
case 214:
2811
#line 1183 "c-parse.y"
Jeff Law committed
2812
{ finish_function (1);
2813
		  pop_function_context (); ;
Jeff Law committed
2814 2815
    break;}
case 217:
2816
#line 1199 "c-parse.y"
2817
{ yyval.ttype = yyvsp[-1].ttype; ;
Jeff Law committed
2818 2819
    break;}
case 218:
2820
#line 1201 "c-parse.y"
2821
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
Jeff Law committed
2822 2823
    break;}
case 219:
2824
#line 1206 "c-parse.y"
2825
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
Jeff Law committed
2826 2827
    break;}
case 220:
2828
#line 1208 "c-parse.y"
2829
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
Jeff Law committed
2830 2831
    break;}
case 221:
2832
#line 1210 "c-parse.y"
2833 2834 2835
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
    break;}
case 222:
2836
#line 1217 "c-parse.y"
Jeff Law committed
2837 2838
{ yyval.ttype = yyvsp[0].ttype; ;
    break;}
2839
case 224:
2840
#line 1228 "c-parse.y"
Jeff Law committed
2841 2842
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
    break;}
2843
case 225:
2844
#line 1233 "c-parse.y"
2845
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, NULL_TREE);
Ulrich Drepper committed
2846 2847
		  if (! flag_isoc99)
		    error ("`[*]' in parameter declaration only allowed in ISO C 99");
2848
		;
Jeff Law committed
2849 2850
    break;}
case 226:
2851
#line 1238 "c-parse.y"
2852
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
Jeff Law committed
2853 2854
    break;}
case 227:
2855
#line 1240 "c-parse.y"
2856
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
Jeff Law committed
2857
    break;}
2858
case 228:
2859
#line 1242 "c-parse.y"
2860
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
Jeff Law committed
2861
    break;}
2862
case 229:
2863
#line 1249 "c-parse.y"
2864
{ yyval.ttype = yyvsp[0].ttype; ;
Jeff Law committed
2865 2866
    break;}
case 231:
2867
#line 1258 "c-parse.y"
2868
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
Jeff Law committed
2869 2870
    break;}
case 232:
2871
#line 1263 "c-parse.y"
2872
{ yyval.ttype = yyvsp[-1].ttype; ;
Jeff Law committed
2873 2874
    break;}
case 233:
2875
#line 1265 "c-parse.y"
2876 2877 2878
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
    break;}
case 234:
2879
#line 1267 "c-parse.y"
2880
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, NULL_TREE);
Ulrich Drepper committed
2881 2882
		  if (! flag_isoc99)
		    error ("`[*]' in parameter declaration only allowed in ISO C 99");
2883
		;
Jeff Law committed
2884
    break;}
2885
case 235:
2886
#line 1272 "c-parse.y"
2887
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
Jeff Law committed
2888
    break;}
2889
case 236:
2890
#line 1274 "c-parse.y"
2891
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
Jeff Law committed
2892
    break;}
2893
case 237:
2894
#line 1281 "c-parse.y"
2895
{ yyval.ttype = yyvsp[0].ttype; ;
Jeff Law committed
2896 2897
    break;}
case 239:
2898
#line 1287 "c-parse.y"
2899
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
2900 2901
    break;}
case 240:
2902
#line 1289 "c-parse.y"
2903
{ yyval.ttype = yyvsp[0].ttype; ;
Jeff Law committed
2904 2905
    break;}
case 241:
2906
#line 1294 "c-parse.y"
2907
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
2908 2909
    break;}
case 242:
2910
#line 1296 "c-parse.y"
2911
{ yyval.ttype = yyvsp[0].ttype; ;
2912 2913
    break;}
case 243:
2914
#line 1301 "c-parse.y"
2915
{ yyval.ttype = NULL_TREE; ;
2916 2917
    break;}
case 244:
2918
#line 1303 "c-parse.y"
2919 2920 2921
{ yyval.ttype = yyvsp[0].ttype; ;
    break;}
case 245:
2922
#line 1308 "c-parse.y"
2923 2924
{ yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
		  /* Start scope of tag before parsing components.  */
Jeff Law committed
2925 2926
		;
    break;}
2927
case 246:
2928
#line 1312 "c-parse.y"
2929 2930 2931
{ yyval.ttype = finish_struct (yyvsp[-3].ttype, yyvsp[-2].ttype, chainon (yyvsp[-6].ttype, yyvsp[0].ttype)); ;
    break;}
case 247:
2932
#line 1314 "c-parse.y"
2933 2934 2935 2936
{ yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
				      yyvsp[-2].ttype, chainon (yyvsp[-4].ttype, yyvsp[0].ttype));
		;
    break;}
2937
case 248:
2938
#line 1318 "c-parse.y"
2939
{ yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
2940
    break;}
2941
case 249:
2942
#line 1320 "c-parse.y"
2943
{ yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
2944
    break;}
2945
case 250:
2946
#line 1322 "c-parse.y"
2947 2948 2949
{ yyval.ttype = finish_struct (yyvsp[-3].ttype, yyvsp[-2].ttype, chainon (yyvsp[-6].ttype, yyvsp[0].ttype)); ;
    break;}
case 251:
2950
#line 1324 "c-parse.y"
2951 2952 2953 2954
{ yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
				      yyvsp[-2].ttype, chainon (yyvsp[-4].ttype, yyvsp[0].ttype));
		;
    break;}
2955
case 252:
2956
#line 1328 "c-parse.y"
2957 2958 2959
{ yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
    break;}
case 253:
2960
#line 1330 "c-parse.y"
2961
{ yyval.ttype = start_enum (yyvsp[-1].ttype); ;
Jeff Law committed
2962
    break;}
2963
case 254:
2964
#line 1332 "c-parse.y"
2965 2966
{ yyval.ttype = finish_enum (yyvsp[-4].ttype, nreverse (yyvsp[-3].ttype),
				    chainon (yyvsp[-7].ttype, yyvsp[0].ttype)); ;
Jeff Law committed
2967
    break;}
2968
case 255:
2969
#line 1335 "c-parse.y"
2970
{ yyval.ttype = start_enum (NULL_TREE); ;
Jeff Law committed
2971
    break;}
2972
case 256:
2973
#line 1337 "c-parse.y"
2974 2975
{ yyval.ttype = finish_enum (yyvsp[-4].ttype, nreverse (yyvsp[-3].ttype),
				    chainon (yyvsp[-6].ttype, yyvsp[0].ttype)); ;
Jeff Law committed
2976
    break;}
2977
case 257:
2978
#line 1340 "c-parse.y"
Jeff Law committed
2979 2980
{ yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
    break;}
2981
case 261:
2982
#line 1351 "c-parse.y"
Ulrich Drepper committed
2983
{ if (pedantic && ! flag_isoc99)
2984
		    pedwarn ("comma at end of enumerator list"); ;
Jeff Law committed
2985
    break;}
2986
case 262:
2987
#line 1357 "c-parse.y"
2988
{ yyval.ttype = yyvsp[0].ttype; ;
Jeff Law committed
2989
    break;}
2990
case 263:
2991
#line 1359 "c-parse.y"
2992 2993
{ yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype);
		  pedwarn ("no semicolon at end of struct or union"); ;
Jeff Law committed
2994
    break;}
2995
case 264:
2996
#line 1364 "c-parse.y"
2997
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
2998
    break;}
2999
case 265:
3000
#line 1366 "c-parse.y"
3001 3002 3003
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
    break;}
case 266:
3004
#line 1368 "c-parse.y"
Jeff Law committed
3005 3006 3007
{ if (pedantic)
		    pedwarn ("extra semicolon in struct or union specified"); ;
    break;}
3008
case 267:
3009
#line 1383 "c-parse.y"
Jeff Law committed
3010 3011 3012
{ yyval.ttype = yyvsp[0].ttype;
		  current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
3013
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
3014
    break;}
3015
case 268:
3016
#line 1388 "c-parse.y"
3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028
{
		  /* Support for unnamed structs or unions as members of 
		     structs or unions (which is [a] useful and [b] supports 
		     MS P-SDK).  */
		  if (pedantic)
		    pedwarn ("ANSI C doesn't support unnamed structs/unions");

		  yyval.ttype = grokfield(yyvsp[-2].filename, yyvsp[-1].lineno, NULL, current_declspecs, NULL_TREE);
		  current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
		  declspec_stack = TREE_CHAIN (declspec_stack);
		;
Jeff Law committed
3029
    break;}
3030
case 269:
3031
#line 1401 "c-parse.y"
Jeff Law committed
3032 3033 3034
{ yyval.ttype = yyvsp[0].ttype;
		  current_declspecs = TREE_VALUE (declspec_stack);
		  prefix_attributes = TREE_PURPOSE (declspec_stack);
3035
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
3036
    break;}
3037
case 270:
3038
#line 1406 "c-parse.y"
Jeff Law committed
3039 3040 3041 3042 3043
{ if (pedantic)
		    pedwarn ("ANSI C forbids member declarations with no members");
		  shadow_tag(yyvsp[0].ttype);
		  yyval.ttype = NULL_TREE; ;
    break;}
3044
case 271:
3045
#line 1411 "c-parse.y"
3046 3047 3048
{ yyval.ttype = NULL_TREE; ;
    break;}
case 272:
3049
#line 1413 "c-parse.y"
Jeff Law committed
3050
{ yyval.ttype = yyvsp[0].ttype;
3051
		  RESTORE_WARN_FLAGS (yyvsp[-1].ttype); ;
Jeff Law committed
3052
    break;}
3053
case 274:
3054
#line 1420 "c-parse.y"
Jeff Law committed
3055 3056
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
    break;}
3057
case 275:
3058
#line 1425 "c-parse.y"
Jeff Law committed
3059 3060 3061
{ 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;}
3062
case 276:
3063
#line 1429 "c-parse.y"
Jeff Law committed
3064 3065 3066
{ 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;}
3067
case 277:
3068
#line 1432 "c-parse.y"
Jeff Law committed
3069 3070 3071
{ 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;}
3072
case 279:
3073
#line 1444 "c-parse.y"
Jeff Law committed
3074 3075 3076 3077 3078
{ if (yyvsp[-2].ttype == error_mark_node)
		    yyval.ttype = yyvsp[-2].ttype;
		  else
		    yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
    break;}
3079
case 280:
3080
#line 1449 "c-parse.y"
3081
{ yyval.ttype = error_mark_node; ;
Jeff Law committed
3082
    break;}
3083
case 281:
3084
#line 1455 "c-parse.y"
3085
{ yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
Jeff Law committed
3086
    break;}
3087
case 282:
3088
#line 1457 "c-parse.y"
3089
{ yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
Jeff Law committed
3090
    break;}
3091
case 283:
3092
#line 1462 "c-parse.y"
Jeff Law committed
3093 3094
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
    break;}
3095
case 284:
3096
#line 1464 "c-parse.y"
3097
{ yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
Jeff Law committed
3098
    break;}
3099
case 285:
3100
#line 1469 "c-parse.y"
3101
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
3102
    break;}
3103
case 287:
3104
#line 1475 "c-parse.y"
3105
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
Jeff Law committed
3106
    break;}
3107
case 288:
3108
#line 1477 "c-parse.y"
3109
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
Jeff Law committed
3110
    break;}
3111
case 289:
3112
#line 1482 "c-parse.y"
3113
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
3114
    break;}
3115
case 290:
3116
#line 1484 "c-parse.y"
3117
{ yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
Jeff Law committed
3118
    break;}
3119
case 291:
3120
#line 1489 "c-parse.y"
3121
{ yyval.ttype = yyvsp[-1].ttype; ;
Jeff Law committed
3122
    break;}
3123
case 292:
3124
#line 1492 "c-parse.y"
3125
{ yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
Jeff Law committed
3126
    break;}
3127
case 293:
3128
#line 1494 "c-parse.y"
3129
{ yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
Jeff Law committed
3130
    break;}
3131
case 294:
3132
#line 1496 "c-parse.y"
3133
{ yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
Jeff Law committed
3134
    break;}
3135
case 295:
3136
#line 1498 "c-parse.y"
3137
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
Jeff Law committed
3138
    break;}
3139
case 296:
3140
#line 1500 "c-parse.y"
3141
{ yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
Jeff Law committed
3142
    break;}
3143
case 297:
3144
#line 1502 "c-parse.y"
3145
{ yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
Jeff Law committed
3146
    break;}
3147
case 298:
3148
#line 1504 "c-parse.y"
3149
{ yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
Jeff Law committed
3150
    break;}
3151
case 299:
3152
#line 1506 "c-parse.y"
3153
{ yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
3154 3155
    break;}
case 300:
3156
#line 1510 "c-parse.y"
3157 3158 3159
{ yyval.ttype = yyvsp[0].ttype; ;
    break;}
case 301:
3160
#line 1519 "c-parse.y"
Jeff Law committed
3161 3162 3163 3164 3165
{
		  if (pedantic && yyvsp[0].ends_in_label)
		    pedwarn ("ANSI C forbids label at end of compound statement");
		;
    break;}
3166
case 303:
3167
#line 1528 "c-parse.y"
3168 3169 3170
{ yyval.ends_in_label = yyvsp[0].ends_in_label; ;
    break;}
case 304:
3171
#line 1530 "c-parse.y"
Jeff Law committed
3172 3173
{ yyval.ends_in_label = 0; ;
    break;}
3174
case 308:
3175
#line 1542 "c-parse.y"
Jeff Law committed
3176 3177 3178 3179 3180 3181
{ emit_line_note (input_filename, lineno);
		  pushlevel (0);
		  clear_last_expr ();
		  expand_start_bindings (0);
		;
    break;}
3182
case 310:
3183
#line 1554 "c-parse.y"
Jeff Law committed
3184 3185 3186
{ if (pedantic)
		    pedwarn ("ANSI C forbids label declarations"); ;
    break;}
3187
case 313:
3188
#line 1565 "c-parse.y"
Jeff Law committed
3189 3190 3191 3192 3193 3194 3195 3196 3197
{ 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;}
3198
case 314:
3199
#line 1579 "c-parse.y"
Jeff Law committed
3200 3201
{;
    break;}
3202
case 316:
3203
#line 1583 "c-parse.y"
3204
{ compstmt_count++; ;
3205 3206
    break;}
case 317:
3207
#line 1586 "c-parse.y"
3208 3209 3210
{ yyval.ttype = convert (void_type_node, integer_zero_node); ;
    break;}
case 318:
3211
#line 1588 "c-parse.y"
Jeff Law committed
3212 3213
{ emit_line_note (input_filename, lineno);
		  expand_end_bindings (getdecls (), 1, 0);
3214
		  yyval.ttype = poplevel (1, 1, 0); ;
Jeff Law committed
3215
    break;}
3216
case 319:
3217
#line 1592 "c-parse.y"
Jeff Law committed
3218 3219
{ emit_line_note (input_filename, lineno);
		  expand_end_bindings (getdecls (), kept_level_p (), 0);
3220
		  yyval.ttype = poplevel (kept_level_p (), 0, 0); ;
Jeff Law committed
3221
    break;}
3222
case 320:
3223
#line 1596 "c-parse.y"
Jeff Law committed
3224 3225
{ emit_line_note (input_filename, lineno);
		  expand_end_bindings (getdecls (), kept_level_p (), 0);
3226
		  yyval.ttype = poplevel (kept_level_p (), 0, 0); ;
Jeff Law committed
3227
    break;}
3228
case 321:
3229
#line 1603 "c-parse.y"
3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246
{ 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 ();
		  compstmt_count++;
		;
    break;}
case 322:
3247
#line 1620 "c-parse.y"
3248 3249 3250
{ yyval.ttype = yyvsp[0].ttype; ;
    break;}
case 325:
3251
#line 1634 "c-parse.y"
Jeff Law committed
3252
{ emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
3253 3254
		  c_expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0, 
				       compstmt_count);
Jeff Law committed
3255 3256 3257 3258 3259
		  yyval.itype = stmt_count;
		  if_stmt_file = yyvsp[-5].filename;
		  if_stmt_line = yyvsp[-4].lineno;
		  position_after_white_space (); ;
    break;}
3260
case 326:
3261
#line 1648 "c-parse.y"
Jeff Law committed
3262
{ stmt_count++;
3263
		  compstmt_count++;
Jeff Law committed
3264 3265 3266 3267 3268 3269
		  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;}
3270
case 327:
3271
#line 1656 "c-parse.y"
3272
{ expand_loop_continue_here (); ;
Jeff Law committed
3273
    break;}
3274
case 328:
3275
#line 1660 "c-parse.y"
3276
{ yyval.filename = input_filename; ;
Jeff Law committed
3277
    break;}
3278
case 329:
3279
#line 1664 "c-parse.y"
3280
{ yyval.lineno = lineno; ;
Jeff Law committed
3281
    break;}
3282
case 330:
3283
#line 1669 "c-parse.y"
3284
{ ;
Jeff Law committed
3285
    break;}
3286
case 331:
3287
#line 1674 "c-parse.y"
3288
{ ;
Jeff Law committed
3289
    break;}
3290
case 332:
3291
#line 1679 "c-parse.y"
3292
{ yyval.ends_in_label = yyvsp[0].ends_in_label; ;
3293
    break;}
3294
case 333:
3295
#line 1684 "c-parse.y"
3296
{ yyval.ends_in_label = 0; ;
3297
    break;}
3298
case 334:
3299
#line 1686 "c-parse.y"
3300 3301
{ yyval.ends_in_label = 1; ;
    break;}
3302
case 335:
3303
#line 1692 "c-parse.y"
Jeff Law committed
3304 3305
{ stmt_count++; ;
    break;}
3306
case 337:
3307
#line 1695 "c-parse.y"
Jeff Law committed
3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321
{ 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
3322
		  iterator_expand (yyvsp[-1].ttype); ;
Jeff Law committed
3323
    break;}
3324
case 338:
3325
#line 1711 "c-parse.y"
3326
{ c_expand_start_else ();
Jeff Law committed
3327 3328 3329
		  yyvsp[-1].itype = stmt_count;
		  position_after_white_space (); ;
    break;}
3330
case 339:
3331
#line 1715 "c-parse.y"
3332
{ c_expand_end_cond ();
Jeff Law committed
3333 3334 3335
		  if (extra_warnings && stmt_count == yyvsp[-3].itype)
		    warning ("empty body in an else-statement"); ;
    break;}
3336
case 340:
3337
#line 1719 "c-parse.y"
3338
{ c_expand_end_cond ();
Jeff Law committed
3339 3340 3341 3342 3343 3344 3345 3346
		  /* 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;}
3347
case 341:
3348
#line 1731 "c-parse.y"
3349 3350
{ c_expand_end_cond (); ;
    break;}
3351
case 342:
3352
#line 1733 "c-parse.y"
Jeff Law committed
3353 3354 3355 3356 3357 3358 3359 3360 3361 3362
{ 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;}
3363
case 343:
3364
#line 1743 "c-parse.y"
Jeff Law committed
3365 3366 3367 3368 3369 3370 3371 3372 3373
{ /* 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;}
3374
case 344:
3375
#line 1752 "c-parse.y"
Jeff Law committed
3376 3377
{ expand_end_loop (); ;
    break;}
3378
case 345:
3379
#line 1755 "c-parse.y"
Jeff Law committed
3380 3381 3382
{ emit_line_note (input_filename, lineno);
		  expand_exit_loop_if_false (NULL_PTR,
					     truthvalue_conversion (yyvsp[-2].ttype));
3383
		  expand_end_loop (); ;
Jeff Law committed
3384
    break;}
3385
case 346:
3386
#line 1761 "c-parse.y"
3387
{ expand_end_loop (); ;
Jeff Law committed
3388
    break;}
3389
case 347:
3390
#line 1764 "c-parse.y"
Jeff Law committed
3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401
{ 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;}
3402
case 348:
3403
#line 1776 "c-parse.y"
Jeff Law committed
3404 3405 3406
{ yyvsp[0].lineno = lineno;
		  yyval.filename = input_filename; ;
    break;}
3407
case 349:
3408
#line 1779 "c-parse.y"
Jeff Law committed
3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421
{ 
		  /* 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));
		  yyvsp[-3].lineno = lineno;
		  yyvsp[-2].filename = input_filename;
		  position_after_white_space (); ;
    break;}
3422
case 350:
3423
#line 1792 "c-parse.y"
Jeff Law committed
3424 3425 3426 3427 3428 3429 3430
{ /* 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);
		  expand_end_loop (); ;
    break;}
3431
case 351:
3432
#line 1799 "c-parse.y"
Jeff Law committed
3433 3434 3435 3436 3437
{ stmt_count++;
		  emit_line_note (yyvsp[-5].filename, yyvsp[-4].lineno);
		  c_expand_start_case (yyvsp[-1].ttype);
		  position_after_white_space (); ;
    break;}
3438
case 352:
3439
#line 1804 "c-parse.y"
3440
{ expand_end_case (yyvsp[-3].ttype); ;
Jeff Law committed
3441
    break;}
3442
case 353:
3443
#line 1806 "c-parse.y"
Jeff Law committed
3444 3445 3446 3447 3448
{ stmt_count++;
		  emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
		  if ( ! expand_exit_something ())
		    error ("break statement not within loop or switch"); ;
    break;}
3449
case 354:
3450
#line 1811 "c-parse.y"
Jeff Law committed
3451 3452 3453 3454 3455
{ 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;}
3456
case 355:
3457
#line 1816 "c-parse.y"
Jeff Law committed
3458 3459 3460 3461
{ stmt_count++;
		  emit_line_note (yyvsp[-3].filename, yyvsp[-2].lineno);
		  c_expand_return (NULL_TREE); ;
    break;}
3462
case 356:
3463
#line 1820 "c-parse.y"
Jeff Law committed
3464 3465 3466 3467
{ stmt_count++;
		  emit_line_note (yyvsp[-4].filename, yyvsp[-3].lineno);
		  c_expand_return (yyvsp[-1].ttype); ;
    break;}
3468
case 357:
3469
#line 1824 "c-parse.y"
Jeff Law committed
3470 3471 3472 3473 3474 3475 3476 3477 3478 3479
{ 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;}
3480
case 358:
3481
#line 1835 "c-parse.y"
Jeff Law committed
3482 3483 3484 3485 3486 3487
{ 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;}
3488
case 359:
3489
#line 1842 "c-parse.y"
Jeff Law committed
3490 3491 3492 3493 3494 3495
{ 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;}
3496
case 360:
3497
#line 1850 "c-parse.y"
Jeff Law committed
3498 3499 3500 3501 3502 3503
{ 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;}
3504
case 361:
3505
#line 1856 "c-parse.y"
Jeff Law committed
3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516
{ 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;}
3517
case 362:
3518
#line 1867 "c-parse.y"
Jeff Law committed
3519 3520 3521 3522 3523 3524
{ 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;}
3525
case 365:
3526
#line 1882 "c-parse.y"
Jeff Law committed
3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547
{
	    /* 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;}
3548
case 366:
3549
#line 1903 "c-parse.y"
Jeff Law committed
3550 3551 3552 3553 3554
{
	    if (yyvsp[-1].itype)
	      iterator_for_loop_end (yyvsp[-3].ttype);
	  ;
    break;}
3555
case 367:
3556
#line 1934 "c-parse.y"
Jeff Law committed
3557 3558 3559 3560 3561 3562 3563 3564 3565
{ 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;
3566 3567 3568 3569 3570 3571 3572 3573
		      int success;

		      if (pedantic && ! INTEGRAL_TYPE_P (TREE_TYPE (value)))
			pedwarn ("label must have integral type in ANSI C");

		      success = pushcase (value, convert_and_check,
					  label, &duplicate);

Jeff Law committed
3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587
		      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;}
3588
case 368:
3589
#line 1965 "c-parse.y"
Jeff Law committed
3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620
{ 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;}
3621
case 369:
3622
#line 1996 "c-parse.y"
Jeff Law committed
3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637
{
		  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;}
3638
case 370:
3639
#line 2011 "c-parse.y"
3640
{ tree label = define_label (input_filename, lineno, yyvsp[-2].ttype);
Jeff Law committed
3641 3642 3643
		  stmt_count++;
		  emit_nop ();
		  if (label)
3644 3645 3646 3647
		    {
		      expand_label (label);
		      decl_attributes (label, yyvsp[0].ttype, NULL_TREE);
		    }
Jeff Law committed
3648 3649
		  position_after_white_space (); ;
    break;}
3650
case 371:
3651
#line 2026 "c-parse.y"
Jeff Law committed
3652 3653 3654
{ emit_line_note (input_filename, lineno);
		  yyval.ttype = NULL_TREE; ;
    break;}
3655
case 372:
3656
#line 2029 "c-parse.y"
3657
{ emit_line_note (input_filename, lineno); ;
Jeff Law committed
3658
    break;}
3659
case 373:
3660
#line 2034 "c-parse.y"
Jeff Law committed
3661 3662
{ yyval.ttype = NULL_TREE; ;
    break;}
3663
case 375:
3664
#line 2041 "c-parse.y"
3665
{ yyval.ttype = NULL_TREE; ;
Jeff Law committed
3666
    break;}
3667
case 378:
3668
#line 2048 "c-parse.y"
3669
{ yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
Jeff Law committed
3670
    break;}
3671
case 379:
3672
#line 2053 "c-parse.y"
3673
{ yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
3674
    break;}
3675
case 380:
3676
#line 2058 "c-parse.y"
3677
{ yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), NULL_TREE); ;
3678
    break;}
3679
case 381:
3680
#line 2060 "c-parse.y"
3681 3682
{ yyval.ttype = tree_cons (NULL_TREE, combine_strings (yyvsp[0].ttype), yyvsp[-2].ttype); ;
    break;}
3683
case 382:
3684
#line 2066 "c-parse.y"
Jeff Law committed
3685 3686 3687 3688
{ pushlevel (0);
		  clear_parm_order ();
		  declare_parm_level (0); ;
    break;}
3689
case 383:
3690
#line 2070 "c-parse.y"
Jeff Law committed
3691 3692 3693 3694
{ yyval.ttype = yyvsp[0].ttype;
		  parmlist_tags_warning ();
		  poplevel (0, 0, 0); ;
    break;}
3695
case 385:
3696
#line 2078 "c-parse.y"
Jeff Law committed
3697 3698 3699 3700 3701 3702 3703 3704
{ 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;}
3705
case 386:
3706
#line 2086 "c-parse.y"
3707
{ yyval.ttype = yyvsp[0].ttype; ;
Jeff Law committed
3708
    break;}
3709
case 387:
3710
#line 2088 "c-parse.y"
3711
{ yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
3712
    break;}
3713
case 388:
3714
#line 2094 "c-parse.y"
3715 3716
{ yyval.ttype = get_parm_info (0); ;
    break;}
3717
case 389:
3718
#line 2096 "c-parse.y"
Jeff Law committed
3719 3720 3721 3722 3723 3724 3725 3726 3727 3728
{ 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;}
3729
case 390:
3730
#line 2106 "c-parse.y"
3731
{ yyval.ttype = get_parm_info (1); ;
Jeff Law committed
3732
    break;}
3733
case 391:
3734
#line 2108 "c-parse.y"
3735
{ yyval.ttype = get_parm_info (0); ;
3736
    break;}
3737
case 392:
3738
#line 2113 "c-parse.y"
3739 3740
{ push_parm_decl (yyvsp[0].ttype); ;
    break;}
3741
case 393:
3742
#line 2115 "c-parse.y"
3743 3744
{ push_parm_decl (yyvsp[0].ttype); ;
    break;}
3745
case 394:
3746
#line 2122 "c-parse.y"
Jeff Law committed
3747 3748 3749 3750 3751 3752
{ 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);
3753
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
3754
    break;}
3755
case 395:
3756
#line 2130 "c-parse.y"
Jeff Law committed
3757 3758 3759 3760 3761 3762
{ 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);
3763
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
3764
    break;}
3765
case 396:
3766
#line 2138 "c-parse.y"
Jeff Law committed
3767 3768 3769 3770 3771 3772
{ 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);
3773
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
3774
    break;}
3775
case 397:
3776
#line 2146 "c-parse.y"
Jeff Law committed
3777 3778 3779 3780 3781 3782
{ 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);
3783
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
3784
    break;}
3785
case 398:
3786
#line 2155 "c-parse.y"
Jeff Law committed
3787 3788 3789 3790 3791 3792
{ 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);
3793
		  declspec_stack = TREE_CHAIN (declspec_stack); ;
Jeff Law committed
3794
    break;}
3795
case 399:
3796
#line 2168 "c-parse.y"
Jeff Law committed
3797 3798 3799 3800
{ pushlevel (0);
		  clear_parm_order ();
		  declare_parm_level (1); ;
    break;}
3801
case 400:
3802
#line 2172 "c-parse.y"
Jeff Law committed
3803 3804 3805 3806
{ yyval.ttype = yyvsp[0].ttype;
		  parmlist_tags_warning ();
		  poplevel (0, 0, 0); ;
    break;}
3807
case 402:
3808
#line 2180 "c-parse.y"
Jeff Law committed
3809 3810 3811 3812 3813 3814
{ 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;}
3815
case 403:
3816
#line 2190 "c-parse.y"
3817
{ yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
Jeff Law committed
3818
    break;}
3819
case 404:
3820
#line 2192 "c-parse.y"
3821
{ yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
Jeff Law committed
3822
    break;}
3823
case 405:
3824
#line 2198 "c-parse.y"
3825
{ yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
3826
    break;}
3827
case 406:
3828
#line 2200 "c-parse.y"
3829 3830
{ yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
    break;}
3831
case 407:
3832
#line 2205 "c-parse.y"
3833
{ yyval.ttype = SAVE_WARN_FLAGS();
3834 3835
		  pedantic = 0;
		  warn_pointer_arith = 0; ;
Jeff Law committed
3836 3837 3838
    break;}
}
   /* the action file gets copied in in place of this dollarsign */
3839
#line 542 "/usr/lib/bison.simple"
Jeff Law committed
3840 3841 3842 3843 3844 3845 3846

  yyvsp -= yylen;
  yyssp -= yylen;
#ifdef YYLSP_NEEDED
  yylsp -= yylen;
#endif

3847
#if YYDEBUG != 0
Jeff Law committed
3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953
  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;

3954
#if YYDEBUG != 0
Jeff Law committed
3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986
      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

3987
#if YYDEBUG != 0
Jeff Law committed
3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021
  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;

4022
#if YYDEBUG != 0
Jeff Law committed
4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033
  if (yydebug)
    fprintf(stderr, "Shifting error token, ");
#endif

  *++yyvsp = yylval;
#ifdef YYLSP_NEEDED
  *++yylsp = yylloc;
#endif

  yystate = yyn;
  goto yynewstate;
4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057

 yyacceptlab:
  /* YYACCEPT comes here.  */
  if (yyfree_stacks)
    {
      free (yyss);
      free (yyvs);
#ifdef YYLSP_NEEDED
      free (yyls);
#endif
    }
  return 0;

 yyabortlab:
  /* YYABORT comes here.  */
  if (yyfree_stacks)
    {
      free (yyss);
      free (yyvs);
#ifdef YYLSP_NEEDED
      free (yyls);
#endif
    }
  return 1;
Jeff Law committed
4058
}
4059
#line 2210 "c-parse.y"
Jeff Law committed
4060