home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 321 / compsrc3 / parsetab.c next >
Encoding:
C/C++ Source or Header  |  1988-10-20  |  111.8 KB  |  3,474 lines

  1.  
  2. /*  A Bison parser, made from parse.y  */
  3.  
  4. #define    IDENTIFIER    258
  5. #define    TYPENAME    259
  6. #define    SCSPEC    260
  7. #define    TYPESPEC    261
  8. #define    TYPE_QUAL    262
  9. #define    CONSTANT    263
  10. #define    STRING    264
  11. #define    ELLIPSIS    265
  12. #define    SIZEOF    266
  13. #define    ENUM    267
  14. #define    STRUCT    268
  15. #define    UNION    269
  16. #define    IF    270
  17. #define    ELSE    271
  18. #define    WHILE    272
  19. #define    DO    273
  20. #define    FOR    274
  21. #define    SWITCH    275
  22. #define    CASE    276
  23. #define    DEFAULT    277
  24. #define    BREAK    278
  25. #define    CONTINUE    279
  26. #define    RETURN    280
  27. #define    GOTO    281
  28. #define    ASM    282
  29. #define    TYPEOF    283
  30. #define    ALIGNOF    284
  31. #define    ASSIGN    285
  32. #define    OROR    286
  33. #define    ANDAND    287
  34. #define    EQCOMPARE    288
  35. #define    ARITHCOMPARE    289
  36. #define    LSHIFT    290
  37. #define    RSHIFT    291
  38. #define    UNARY    292
  39. #define    PLUSPLUS    293
  40. #define    MINUSMINUS    294
  41. #define    HYPERUNARY    295
  42. #define    POINTSAT    296
  43.  
  44. #line 48 "parse.y"
  45.  
  46. #include "config.h"
  47. #include "tree.h"
  48. #include "parse.h"
  49. #include "c-tree.h"
  50. #include "flags.h"
  51.  
  52. #include <stdio.h>
  53. #include <errno.h>
  54.  
  55. extern int errno;
  56.  
  57. /* Cause the `yydebug' variable to be defined.  */
  58. #define YYDEBUG
  59.  
  60. #line 66 "parse.y"
  61. typedef union {long itype; tree ttype; enum tree_code code; char *cptr; } YYSTYPE;
  62. #line 150 "parse.y"
  63.  
  64. /* the declaration found for the last IDENTIFIER token read in.
  65.    yylex must look this up to detect typedefs, which get token type TYPENAME,
  66.    so it is left around in case the identifier is not a typedef but is
  67.    used in a context which makes it a reference to a variable.  */
  68. static tree lastiddecl;
  69.  
  70. static tree make_pointer_declarator ();
  71. static tree combine_strings ();
  72. static void reinit_parse_for_function ();
  73.  
  74. extern double atof ();
  75.  
  76. /* List of types and structure classes of the current declaration */
  77. tree current_declspecs;
  78.  
  79. char *input_filename;        /* source file current line is coming from */
  80. char *main_input_filename;    /* top-level source file */
  81.  
  82. static int yylex ();
  83.  
  84. #ifndef YYLTYPE
  85. typedef
  86.   struct yyltype
  87.     {
  88.       int timestamp;
  89.       int first_line;
  90.       int first_column;
  91.       int last_line;
  92.       int last_column;
  93.       char *text;
  94.    }
  95.   yyltype;
  96.  
  97. #define YYLTYPE yyltype
  98. #endif
  99.  
  100. #define    YYACCEPT    return(0)
  101. #define    YYABORT    return(1)
  102. #define    YYERROR    return(1)
  103. #include <stdio.h>
  104.  
  105. #ifndef __STDC__
  106. #define const
  107. #endif
  108.  
  109.  
  110.  
  111. #define    YYFINAL        485
  112. #define    YYFLAG        -32768
  113. #define    YYNTBASE    64
  114.  
  115. #define YYTRANSLATE(x) ((unsigned)(x) <= 296 ? yytranslate[x] : 163)
  116.  
  117. static const char yytranslate[] = {     0,
  118.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  119.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  120.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  121.      2,     2,    59,     2,     2,     2,    47,    38,     2,    54,
  122.     55,    45,    43,    60,    44,    53,    46,     2,     2,     2,
  123.      2,     2,     2,     2,     2,     2,     2,    33,    56,     2,
  124.     31,     2,    32,     2,     2,     2,     2,     2,     2,     2,
  125.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  126.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  127.     62,     2,    63,    37,     2,     2,     2,     2,     2,     2,
  128.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  129.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  130.      2,     2,    61,    36,    57,    58,     2,     2,     2,     2,
  131.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  132.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  133.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  134.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  135.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  136.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  137.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  138.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  139.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  140.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  141.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  142.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  143.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  144.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  145.     16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  146.     26,    27,    28,    29,    30,    34,    35,    39,    40,    41,
  147.     42,    48,    49,    50,    51,    52
  148. };
  149.  
  150. static const short yyrline[] = {     0,
  151.    173,   174,   181,   183,   183,   184,   186,   188,   189,   196,
  152.    202,   204,   206,   208,   210,   211,   212,   215,   221,   223,
  153.    224,   226,   231,   233,   234,   236,   241,   243,   244,   248,
  154.    250,   253,   255,   257,   259,   261,   263,   265,   269,   273,
  155.    276,   279,   282,   286,   288,   290,   292,   295,   307,   312,
  156.    314,   319,   321,   323,   325,   327,   329,   331,   333,   335,
  157.    337,   339,   341,   343,   345,   347,   349,   351,   353,   357,
  158.    379,   380,   382,   384,   386,   393,   398,   400,   402,   404,
  159.    406,   408,   413,   415,   419,   421,   424,   426,   427,   428,
  160.    433,   438,   441,   443,   445,   453,   456,   460,   462,   464,
  161.    472,   475,   477,   479,   488,   491,   495,   497,   505,   506,
  162.    507,   508,   512,   520,   521,   522,   525,   527,   530,   532,
  163.    535,   538,   546,   551,   552,   557,   562,   563,   568,   570,
  164.    572,   574,   580,   583,   590,   592,   597,   600,   605,   607,
  165.    609,   611,   619,   625,   627,   629,   631,   637,   643,   645,
  166.    647,   649,   651,   654,   659,   663,   666,   668,   670,   672,
  167.    675,   677,   680,   683,   686,   689,   693,   695,   698,   700,
  168.    702,   716,   720,   723,   727,   730,   731,   735,   738,   740,
  169.    749,   751,   756,   759,   763,   766,   770,   773,   776,   779,
  170.    783,   786,   790,   794,   796,   798,   800,   802,   804,   806,
  171.    808,   816,   818,   819,   822,   824,   827,   830,   839,   841,
  172.    844,   845,   849,   853,   859,   864,   866,   868,   872,   875,
  173.    876,   878,   881,   885,   886,   889,   891,   896,   901,   905,
  174.    911,   917,   924,   926,   952,   952,   963,   963,   967,   971,
  175.    974,   977,   983,   990,   996,  1001,  1006,  1006,  1009,  1012,
  176.   1016,  1019,  1024,  1026,  1029,  1031,  1035,  1042,  1045,  1050,
  177.   1053,  1056,  1058,  1060,  1064,  1066,  1072,  1074,  1076,  1080,
  178.   1083,  1089,  1092,  1094,  1096,  1098,  1103,  1106
  179. };
  180.  
  181. static const char * const yytname[] = {     0,
  182. "error","$illegal.","IDENTIFIER","TYPENAME","SCSPEC","TYPESPEC","TYPE_QUAL","CONSTANT","STRING","ELLIPSIS",
  183. "SIZEOF","ENUM","STRUCT","UNION","IF","ELSE","WHILE","DO","FOR","SWITCH",
  184. "CASE","DEFAULT","BREAK","CONTINUE","RETURN","GOTO","ASM","TYPEOF","ALIGNOF","ASSIGN",
  185. "'='","'?'","':'","OROR","ANDAND","'|'","'^'","'&'","EQCOMPARE","ARITHCOMPARE",
  186. "LSHIFT","RSHIFT","'+'","'-'","'*'","'/'","'%'","UNARY","PLUSPLUS","MINUSMINUS",
  187. "HYPERUNARY","POINTSAT","'.'","'('","')'","';'","'}'","'~'","'!'","','",
  188. "'{'","'['","']'","program"
  189. };
  190.  
  191. static const short yyr1[] = {     0,
  192.     64,    64,    66,    65,    67,    65,    68,    68,    68,    69,
  193.     69,    69,    69,    69,    69,    69,    69,    71,    72,    70,
  194.     70,    73,    74,    70,    70,    75,    76,    70,    70,    77,
  195.     77,    78,    78,    78,    78,    78,    78,    78,    79,    80,
  196.     80,    81,    81,    82,    82,    82,    82,    82,    82,    82,
  197.     82,    82,    82,    82,    82,    82,    82,    82,    82,    82,
  198.     82,    82,    82,    82,    82,    82,    82,    82,    82,    83,
  199.     83,    83,    83,    83,    84,    83,    83,    83,    83,    83,
  200.     83,    83,    85,    85,    86,    86,    87,    87,    87,    87,
  201.     88,    89,    89,    89,    89,    90,    90,    91,    91,    91,
  202.     92,    92,    92,    92,    93,    93,    94,    94,    95,    95,
  203.     95,    95,    95,    96,    96,    96,    97,    97,    98,    98,
  204.     99,    99,   101,   100,   100,   103,   102,   102,   104,   104,
  205.    104,   104,   105,   105,   106,   106,   107,   107,   107,   107,
  206.    107,   107,   108,   108,   108,   108,   108,   109,   109,   109,
  207.    109,   109,   109,   111,   110,   110,   110,   112,   110,   110,
  208.    110,   113,   110,   114,   110,   110,   115,   115,   116,   116,
  209.    116,   117,   117,   117,   118,   118,   118,   119,   119,   119,
  210.    120,   120,   121,   121,   122,   122,   123,   123,   124,   124,
  211.    125,   125,   126,   126,   126,   126,   126,   126,   126,   126,
  212.    126,   127,   127,   127,   128,   128,   129,   130,   131,   131,
  213.    132,   132,   132,   132,   134,   133,   135,   135,   136,   135,
  214.    135,   137,   138,   135,   139,   140,   135,   141,   142,   143,
  215.    135,   144,   135,   145,   135,   146,   135,   135,   135,   135,
  216.    135,   135,   135,   135,   135,   147,   135,   135,   148,   148,
  217.    149,   149,   150,   150,   151,   151,   152,   154,   153,   156,
  218.    155,   157,   157,   157,   158,   158,   159,   159,   159,   160,
  219.    160,   161,   161,   161,   161,   161,   162,   162
  220. };
  221.  
  222. static const short yyr2[] = {     0,
  223.      0,     1,     0,     2,     0,     3,     1,     1,     5,     3,
  224.      4,     4,     2,     2,     2,     2,     1,     0,     0,     7,
  225.      4,     0,     0,     7,     4,     0,     0,     6,     3,     1,
  226.      1,     1,     1,     1,     1,     1,     1,     1,     1,     0,
  227.      1,     1,     3,     1,     2,     2,     4,     7,     2,     4,
  228.      2,     4,     3,     3,     3,     3,     3,     3,     3,     3,
  229.      3,     3,     3,     3,     3,     3,     5,     3,     3,     1,
  230.      1,     1,     3,     3,     0,     4,     4,     4,     3,     3,
  231.      2,     2,     1,     2,     0,     1,     1,     1,     2,     2,
  232.      0,     4,     4,     2,     2,     2,     3,     0,     2,     2,
  233.      1,     1,     2,     2,     2,     3,     0,     2,     1,     1,
  234.      1,     4,     4,     1,     1,     1,     1,     3,     1,     3,
  235.      0,     4,     0,     5,     2,     0,     5,     2,     1,     3,
  236.      4,     1,     1,     3,     1,     1,     3,     3,     4,     3,
  237.      3,     1,     3,     4,     3,     3,     1,     3,     3,     3,
  238.      4,     3,     1,     0,     6,     4,     2,     0,     6,     4,
  239.      2,     0,     7,     0,     6,     2,     0,     1,     0,     3,
  240.      2,     3,     3,     1,     0,     1,     3,     1,     3,     2,
  241.      1,     3,     1,     3,     2,     2,     0,     1,     1,     2,
  242.      0,     2,     3,     3,     2,     3,     4,     3,     2,     3,
  243.      2,     1,     2,     2,     0,     1,     2,     0,     1,     2,
  244.      2,     5,     4,     4,     0,     6,     1,     2,     0,     4,
  245.      1,     0,     0,     7,     0,     0,     9,     0,     0,     0,
  246.     12,     0,     6,     0,     5,     0,     4,     2,     2,     2,
  247.      3,     6,     8,    10,     3,     0,     4,     1,     0,     1,
  248.      0,     1,     0,     1,     1,     3,     4,     0,     2,     0,
  249.      2,     2,     2,     2,     2,     2,     0,     1,     3,     1,
  250.      3,     2,     2,     2,     2,     2,     1,     3
  251. };
  252.  
  253. static const short yydefact[] = {     3,
  254.      5,     0,     0,     0,   111,   102,   109,   101,     0,     0,
  255.      0,     0,     0,    17,     4,     8,     7,     0,    91,    91,
  256.     98,   110,     6,    15,    16,    30,    31,   164,   166,   169,
  257.    157,   169,   161,     0,     0,   153,   191,     0,     0,   119,
  258.      0,    14,     0,   104,   103,    13,     0,    98,    96,     0,
  259.    162,     0,   154,     0,   158,    83,     0,    70,   189,    71,
  260.      0,     0,    32,    34,    33,     0,    35,    36,     0,    37,
  261.     38,     0,     0,    39,    42,    44,    72,   187,   107,     0,
  262.    187,     0,     0,    10,     0,    29,     0,   260,     0,     0,
  263.    128,   142,   191,     0,     0,   117,     0,   135,   136,     0,
  264.      0,    97,   100,   114,   115,    99,   116,   183,   167,   181,
  265.      0,   174,   171,   156,    91,     0,    91,   169,   160,   169,
  266.     84,     0,     0,    49,     0,    51,    45,     0,     0,     0,
  267.      0,    46,   112,     0,     0,     0,   251,     0,     0,     0,
  268.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  269.      0,    81,    82,     0,     0,    40,     0,   191,   258,     0,
  270.    185,   188,   105,   113,   190,   107,   186,   192,   150,   149,
  271.    120,   121,     0,   148,     0,   152,     0,     0,    27,    86,
  272.      0,    91,    91,    88,   126,     0,     0,    12,     0,    21,
  273.      0,   125,   260,     0,    11,    25,     0,     0,   168,     0,
  274.    167,   175,   170,   175,     0,     0,     9,     0,     0,    74,
  275.     73,   208,     0,     0,    43,    69,    68,   252,     0,    66,
  276.     65,    63,    64,    62,    61,    60,    58,    59,    53,    54,
  277.     55,    56,    57,    80,    79,     0,    41,     0,   195,     0,
  278.    199,     0,   201,     0,   258,     0,   108,   106,     0,     0,
  279.    277,   187,   187,   261,     0,   268,   270,     0,   151,   207,
  280.      0,    89,    90,    94,     0,    95,     0,     0,   141,   137,
  281.    118,    19,   123,   138,   140,     0,    23,   184,   182,   165,
  282.      0,     0,   178,   172,   176,   173,   155,   159,    50,    52,
  283.    211,     0,    76,     0,    47,     0,    77,    78,   194,   193,
  284.      0,   259,     0,   200,   196,   198,     0,   122,   264,   147,
  285.    191,   258,   272,   273,   274,   191,   275,   276,   262,     0,
  286.    263,     0,     0,    28,   209,     0,     0,   121,   132,     0,
  287.    129,   127,     0,     0,   139,     0,   163,   180,     0,     0,
  288.      0,    70,   111,     0,   222,   225,     0,     0,     0,     0,
  289.      0,     0,     0,     0,   249,   248,     0,     0,   205,     0,
  290.    217,   221,   202,   133,   167,    67,   266,   265,   197,   195,
  291.    260,     0,   195,   269,   271,   278,   210,    92,    93,     0,
  292.     20,   124,    24,   179,   177,   213,     0,     0,     0,   251,
  293.      0,     0,   236,   238,   239,   240,     0,     0,   250,     0,
  294.    246,   218,     0,     0,   214,   204,   203,   219,     0,     0,
  295.    146,   143,   145,     0,   130,     0,     0,     0,     0,     0,
  296.      0,   234,     0,   241,   245,     0,     0,   212,     0,   134,
  297.     48,   144,   131,   215,     0,   226,   228,   232,     0,   237,
  298.      0,   247,   220,     0,   223,     0,   251,     0,   235,   253,
  299.      0,   216,     0,     0,     0,   233,     0,     0,   254,   255,
  300.    242,   224,     0,   229,     0,   253,     0,     0,     0,   251,
  301.      0,     0,   243,   256,   227,     0,   257,     0,   230,   244,
  302.      0,   231,     0,     0,     0
  303. };
  304.  
  305. static const short yydefgoto[] = {   483,
  306.      1,     2,     3,    15,    16,    17,   191,   333,   197,   336,
  307.     90,   261,   357,    72,   358,   236,    74,    75,    76,   130,
  308.     77,   179,   180,    18,   181,   182,    49,   183,    78,   163,
  309.     21,   106,    95,    39,    91,    96,   334,    40,   268,   364,
  310.    365,   172,    98,   313,    99,    22,   118,   120,   111,    50,
  311.    200,    52,   116,   284,   285,   109,   110,    80,   161,    81,
  312.     82,   162,   360,   404,   184,   292,   324,   361,   362,   444,
  313.    363,   429,   388,   453,   389,   446,   447,   470,   481,   448,
  314.    439,   423,   427,   400,   219,   458,   459,   460,   241,   242,
  315.    174,   175,   254,   302,   255,   256,   257,   258
  316. };
  317.  
  318. static const short yypact[] = {    29,
  319.     42,  1365,  1365,    20,-32768,-32768,-32768,-32768,    65,    76,
  320.     78,    40,   106,-32768,-32768,-32768,-32768,   225,    -7,   637,
  321. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    90,-32768,
  322.    102,-32768,   108,   173,  1181,-32768,-32768,   225,   132,-32768,
  323.    315,-32768,   154,-32768,-32768,-32768,   225,-32768,   419,   138,
  324. -32768,   756,-32768,  1325,-32768,-32768,    23,-32768,-32768,-32768,
  325.   1225,  1247,-32768,-32768,-32768,  1269,-32768,-32768,   669,-32768,
  326. -32768,  1269,   166,   158,  1445,   282,   231,   111,-32768,   179,
  327.    946,    44,   250,-32768,   154,-32768,   196,-32768,   794,   971,
  328.    224,-32768,-32768,   154,   146,-32768,   942,    -1,     3,   163,
  329.    360,   419,-32768,-32768,-32768,-32768,-32768,   241,   206,-32768,
  330.    138,-32768,-32768,-32768,-32768,   239,   519,-32768,-32768,-32768,
  331. -32768,   242,   669,-32768,   669,-32768,-32768,   226,   236,   219,
  332.    251,-32768,-32768,  1269,  1269,  1269,  1269,  1269,  1269,  1269,
  333.   1269,  1269,  1269,  1269,  1269,  1269,  1269,  1269,  1269,  1269,
  334.   1269,-32768,-32768,   138,   138,  1269,  1269,-32768,   111,   816,
  335. -32768,    37,   262,-32768,-32768,-32768,-32768,-32768,     3,-32768,
  336. -32768,   260,   173,-32768,  1394,-32768,   244,   259,-32768,   460,
  337.    433,   267,  1422,-32768,-32768,   232,   255,-32768,   154,-32768,
  338.    971,   293,-32768,   838,-32768,-32768,   971,  1269,   138,   256,
  339.    206,   257,-32768,   257,  1329,  1348,-32768,   278,   283,-32768,
  340. -32768,   284,   290,  1122,  1445,  1445,  1445,-32768,   317,  1416,
  341.   1457,  1468,  1158,  1401,   541,   364,   641,   641,   334,   334,
  342. -32768,-32768,-32768,-32768,-32768,   296,   158,   291,   200,   285,
  343. -32768,  1411,-32768,   294,-32768,   860,-32768,   262,    46,   298,
  344. -32768,   168,   983,-32768,   303,   288,-32768,   124,-32768,-32768,
  345.     25,-32768,-32768,-32768,   154,-32768,   225,   772,    -1,-32768,
  346. -32768,-32768,-32768,-32768,-32768,   297,-32768,  1445,-32768,-32768,
  347.    306,  1269,   335,   310,-32768,   310,-32768,-32768,   235,   235,
  348. -32768,   492,-32768,   772,-32768,  1269,-32768,-32768,    37,-32768,
  349.    327,-32768,   329,-32768,-32768,-32768,   323,-32768,-32768,-32768,
  350. -32768,    30,   112,     3,-32768,-32768,     3,-32768,-32768,   390,
  351. -32768,   386,   219,-32768,-32768,   193,   222,   116,-32768,   772,
  352.   1445,-32768,    25,   772,-32768,    25,-32768,  1445,  1269,   257,
  353.     97,   357,   359,   344,-32768,-32768,   345,   347,  1269,   380,
  354.    361,   367,  1203,   138,   408,-32768,   394,   372,  1035,   551,
  355. -32768,   413,-32768,-32768,   383,   978,-32768,-32768,-32768,   141,
  356. -32768,   882,    93,-32768,-32768,-32768,-32768,-32768,-32768,     2,
  357. -32768,-32768,-32768,  1445,-32768,-32768,  1269,   395,  1094,  1269,
  358.   1269,   430,-32768,-32768,-32768,-32768,   412,   414,-32768,   415,
  359. -32768,-32768,   610,   418,-32768,-32768,-32768,-32768,   691,   422,
  360.    112,-32768,-32768,   417,-32768,   750,   426,  1269,   467,   429,
  361.    431,-32768,  1094,-32768,-32768,   173,  1094,-32768,  1094,-32768,
  362. -32768,-32768,-32768,-32768,   447,-32768,-32768,-32768,  1094,-32768,
  363.     19,-32768,-32768,  1094,-32768,   454,  1269,  1094,-32768,   513,
  364.    468,-32768,  1094,  1269,   471,-32768,   474,    17,   469,-32768,
  365. -32768,-32768,   479,-32768,  1269,   513,   482,   513,   483,  1269,
  366.    485,   488,-32768,-32768,-32768,   489,-32768,   493,-32768,-32768,
  367.   1094,-32768,   545,   556,-32768
  368. };
  369.  
  370. static const short yypgoto[] = {-32768,
  371. -32768,-32768,-32768,   554,-32768,-32768,-32768,-32768,-32768,-32768,
  372. -32768,-32768,    -5,-32768,   -35,-32768,   402,   -31,-32768,-32768,
  373.    -33,  -104,   269,    18,  -166,     6,   515,    10,   -29,   398,
  374.      4,  -120,   300,   -36,   -75,   -65,-32768,-32768,-32768,  -204,
  375.    237,   -40,   -54,   209,   -11,   -32,-32768,-32768,-32768,-32768,
  376.   -185,    16,-32768,   387,   252,   486,   391,    92,   -62,    -8,
  377.    -91,  -144,   234,-32768,  -171,-32768,  -273,  -109,-32768,-32768,
  378.   -156,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  379. -32768,-32768,-32768,-32768,  -324,   133,-32768,   130,   358,-32768,
  380.   -175,-32768,-32768,-32768,   362,-32768,   286,-32768
  381. };
  382.  
  383.  
  384. #define    YYLAST        1515
  385.  
  386.  
  387. static const short yytable[] = {    73,
  388.     57,   186,    97,    29,    31,    33,    41,    19,    19,   263,
  389.    100,    20,    20,   262,   240,   281,   107,   274,   167,   171,
  390.    213,   192,   115,    48,   115,   323,    83,   121,    -1,   124,
  391.    126,   121,    36,   129,   127,   101,    43,    47,    79,   187,
  392.    132,    -2,   247,   117,   108,   117,    36,    54,    42,   466,
  393.    168,   450,   193,   177,   121,    79,    88,    79,   415,   381,
  394.    194,   416,   383,   332,    89,   420,   239,    26,    27,   107,
  395.    169,   467,    79,   451,   316,    24,    25,   122,    26,    27,
  396.     26,    27,    83,   312,   166,   212,   272,   129,    37,   129,
  397.    245,   160,   277,    34,   299,    36,   192,    38,   246,   168,
  398.    308,   218,   215,   216,   217,   108,   220,   221,   222,   223,
  399.    224,   225,   226,   227,   228,   229,   230,   231,   232,   233,
  400.    166,   238,   455,   271,   244,    28,    79,   247,    79,   382,
  401.    107,   269,   202,   205,   204,   206,    30,   316,    32,   249,
  402.     26,    27,    87,    36,   310,   476,   312,   168,   234,   235,
  403.     51,   325,   260,   386,   160,   158,    36,    92,   276,    35,
  404.    131,   283,    53,   283,   159,   371,   278,   240,    55,    88,
  405.     36,   310,   160,   372,   169,   115,   115,    89,   321,   410,
  406.    252,    56,   295,   322,   253,   311,    48,    84,   406,   315,
  407.    318,    85,   262,   108,   312,   412,   117,   117,    93,   265,
  408.    267,   188,   160,   407,   430,   189,   168,    94,    79,    79,
  409.    307,   430,   311,   377,   208,   107,   209,   134,   195,   370,
  410.    133,   312,    85,   325,   373,   299,   325,    36,   299,   160,
  411.    327,   406,   419,   164,    36,    92,   331,    58,   168,   121,
  412.    314,   317,    60,    56,   158,    61,   407,   252,   378,   173,
  413.    338,   253,   189,   159,   185,   328,    48,   295,   295,    36,
  414.     92,   160,   331,    62,   366,   199,   440,   104,   105,    37,
  415.    442,   198,   443,     9,    10,    11,    93,   379,    38,   212,
  416.    210,    85,   449,    67,    68,    94,    87,   452,    69,   282,
  417.    211,   456,    70,    71,   203,   294,   462,   207,   331,   283,
  418.     83,    93,   331,    88,   170,   214,   259,   384,   193,   270,
  419.     94,    89,   280,   392,   260,    86,   194,   397,   -26,   -26,
  420.    -26,   -26,   264,   273,   482,   252,   -26,   -26,   -26,   253,
  421.    152,   153,   289,   154,   155,   156,   414,   290,   245,   300,
  422.    291,    87,   -26,   157,   293,  -121,   246,   320,   398,   296,
  423.    297,   417,   309,   298,   218,   421,   304,   319,   169,   335,
  424.    196,   169,   337,   -22,   -22,   -22,   -22,   339,    88,   340,
  425.   -121,   -22,   -22,   -22,  -121,   -26,    89,   331,   149,   150,
  426.    151,   367,   435,   368,   331,   369,    87,   -22,   376,   -30,
  427.   -121,   -31,   441,     5,     6,     7,     8,   387,   390,   374,
  428.    391,     9,    10,    11,   145,   146,   147,   148,   149,   150,
  429.    151,   218,   393,    88,   399,  -121,   394,    13,   463,  -121,
  430.    -22,    89,   395,   103,   104,   105,   401,   402,   408,   471,
  431.      9,    10,    11,   178,   218,   -87,   -87,   -87,   -87,   -87,
  432.    -87,   -87,   409,   -87,   -87,   -87,   -87,   -87,   418,   -87,
  433.    -87,   -87,   -87,   -87,   -87,   -87,   -87,   -87,   -87,   -87,
  434.    -87,   -87,   422,     5,     6,     7,     8,   424,   426,   425,
  435.    -87,     9,    10,    11,   428,   -87,   -87,   -87,   431,   432,
  436.    434,   -87,   -87,   436,   437,   438,   -87,    13,   -87,   -87,
  437.    -87,   -87,   341,   -87,   342,   343,     6,     7,     8,    60,
  438.     56,   445,    61,     9,    10,    11,   344,   454,   345,   346,
  439.    347,   348,   349,   350,   351,   352,   353,   354,   355,    13,
  440.     62,   457,     5,   461,     7,   165,   464,   465,   468,    63,
  441.      9,    10,    11,   469,    64,    65,    66,   473,   475,   477,
  442.     67,    68,   478,   479,   484,    69,    13,   356,   480,    70,
  443.     71,   178,   212,   342,    27,   485,    23,   237,    60,    56,
  444.    359,    61,   102,   248,   326,   344,   380,   345,   346,   347,
  445.    348,   349,   350,   351,   352,   353,   354,   355,   411,    62,
  446.    144,   145,   146,   147,   148,   149,   150,   151,    63,   279,
  447.    286,   385,   403,    64,    65,    66,   201,   474,   472,    67,
  448.     68,     0,   305,   303,    69,   375,   356,   405,    70,    71,
  449.    178,   212,   342,    27,     0,     0,     0,    60,    56,     0,
  450.     61,     0,     0,     0,   344,     0,   345,   346,   347,   348,
  451.    349,   350,   351,   352,   353,   354,   355,     0,    62,     0,
  452.      5,    44,     7,    45,     0,     0,     0,    63,     9,    10,
  453.     11,     0,    64,    65,    66,     0,     0,     0,    67,    68,
  454.      0,     0,     0,    69,    13,   356,  -206,    70,    71,   128,
  455.    212,    58,     5,     0,     7,    59,    60,    56,     0,    61,
  456.      9,    10,    11,   147,   148,   149,   150,   151,     0,     0,
  457.      0,   329,    46,    58,     0,     0,    13,    62,    60,    56,
  458.      0,    61,     0,     0,     0,     0,    63,     0,     0,     0,
  459.      0,    64,    65,    66,     0,     0,     0,    67,    68,    62,
  460.      0,     0,    69,     0,     0,     0,    70,    71,    63,   -75,
  461.      0,     0,     0,    64,    65,    66,     0,     0,     0,    67,
  462.     68,     0,     0,     0,    69,     0,     0,  -168,    70,    71,
  463.    329,   330,    58,     0,     0,     0,   112,    60,    56,     5,
  464.     61,     7,    59,     0,     0,     0,     0,     9,    10,    11,
  465.      0,     0,   329,     0,    58,     0,     0,     0,    62,    60,
  466.     56,     0,    61,    13,     0,     0,     0,    63,     0,     0,
  467.      0,     0,    64,    65,    66,     0,    58,     0,    67,    68,
  468.     62,    60,    56,    69,    61,     0,   433,    70,    71,    63,
  469.    330,   113,   114,     0,    64,    65,    66,     0,    58,     0,
  470.     67,    68,    62,    60,    56,    69,    61,     0,     0,    70,
  471.     71,    63,   330,     0,     0,     0,    64,    65,    66,     0,
  472.     58,     0,    67,    68,    62,    60,    56,    69,    61,     0,
  473.      0,    70,    71,    63,     0,     0,   176,     0,    64,    65,
  474.     66,     0,    58,     0,    67,    68,    62,    60,    56,    69,
  475.     61,     0,     0,    70,    71,    63,     0,     0,   243,     0,
  476.     64,    65,    66,     0,    58,     0,    67,    68,    62,    60,
  477.     56,    69,    61,     0,     0,    70,    71,    63,     0,     0,
  478.    275,     0,    64,    65,    66,     0,     0,     0,    67,    68,
  479.     62,     0,     0,    69,     0,     0,     0,    70,    71,    63,
  480.      0,     0,   306,     0,    64,    65,    66,     0,     0,     0,
  481.     67,    68,     0,     0,     0,    69,     0,     0,     0,    70,
  482.     71,     0,   190,     0,   413,   -18,   -18,   -18,   -18,     5,
  483.      0,     7,   165,   -18,   -18,   -18,     0,     9,    10,    11,
  484.      0,     0,     0,     0,     0,     0,     0,     0,    87,   -18,
  485.      0,   178,  -121,    13,     5,     6,     7,     8,     0,     0,
  486.      0,     0,     9,    10,    11,    36,     5,    44,     7,    45,
  487.    158,     0,     0,     0,     9,    10,    11,  -121,    13,   159,
  488.      0,  -121,   -18,     0,     0,     0,     0,   160,     0,   137,
  489.     13,   138,   139,   140,   141,   142,   143,   144,   145,   146,
  490.    147,   148,   149,   150,   151,     0,     0,   316,     0,     0,
  491.      0,   -85,     0,     0,     0,     0,   312,   342,   343,     6,
  492.      7,     8,    60,    56,   160,    61,     9,    10,    11,   344,
  493.      0,   345,   346,   347,   348,   349,   350,   351,   352,   353,
  494.    354,   355,    13,    62,     0,     0,     0,     0,     0,     0,
  495.      0,     0,    63,     0,     0,     0,     0,    64,    65,    66,
  496.      0,     0,     0,    67,    68,     0,     0,     0,    69,     0,
  497.    356,     0,    70,    71,     0,   212,   342,    27,     0,     0,
  498.      0,    60,    56,     0,    61,     0,     0,     0,   344,     0,
  499.    345,   346,   347,   348,   349,   350,   351,   352,   353,   354,
  500.    355,     0,    62,     0,    58,     0,     0,     0,     0,    60,
  501.     56,    63,    61,     0,     0,     0,    64,    65,    66,     0,
  502.      0,     0,    67,    68,     0,     0,     0,    69,     0,   356,
  503.     62,    70,    71,     0,   212,     0,     0,     0,     0,    63,
  504.      0,     0,     0,     0,    64,    65,    66,     0,     0,     0,
  505.     67,    68,     0,     0,     0,    69,     0,     0,     0,    70,
  506.     71,     0,   294,    58,     5,     0,     7,    59,    60,    56,
  507.      0,    61,     9,    10,    11,   142,   143,   144,   145,   146,
  508.    147,   148,   149,   150,   151,    58,     0,     0,    13,    62,
  509.     60,    56,     0,    61,     0,     0,     0,     0,    63,     0,
  510.      0,     0,     0,    64,    65,    66,     0,    58,     0,    67,
  511.     68,    62,    60,    56,    69,    61,     0,     0,    70,    71,
  512.     63,     0,     0,     0,     0,    64,    65,    66,     0,    58,
  513.      0,    67,    68,    62,    60,    56,    69,    61,   396,     0,
  514.     70,    71,    63,     0,     0,     0,     0,    64,    65,    66,
  515.      0,    58,     0,    67,    68,    62,    60,    56,   123,    61,
  516.      0,     0,    70,    71,    63,     0,     0,     0,     0,    64,
  517.     65,    66,     0,     0,     0,    67,    68,    62,     0,     0,
  518.    125,     0,     0,     0,    70,    71,    63,     0,     0,     0,
  519.      0,    64,    65,    66,     0,     0,     0,    67,    68,     0,
  520.      0,     0,    69,     0,     0,   112,    70,    71,     5,   112,
  521.      7,    59,     5,     0,     7,    59,     9,    10,    11,     0,
  522.      9,    10,    11,     0,     0,     0,     0,     0,   112,     0,
  523.      0,     5,    13,     7,    59,     0,    13,     0,     0,     9,
  524.     10,    11,     0,     0,     0,     4,     0,   -91,     5,     6,
  525.      7,     8,     0,     0,     0,    13,     9,    10,    11,     0,
  526.    113,   119,     0,     0,   113,   287,     0,     0,     0,     0,
  527.      0,    12,    13,     0,   250,     0,   251,     5,     6,     7,
  528.      8,     0,     0,   113,   288,     9,    10,    11,     0,   -91,
  529.      0,   301,     0,     0,     5,     6,     7,     8,   -91,     0,
  530.     14,    13,     9,    10,    11,     5,    44,     7,    45,     0,
  531.      0,     0,     0,     9,    10,    11,     0,     0,    13,   143,
  532.    144,   145,   146,   147,   148,   149,   150,   151,  -267,    13,
  533.    139,   140,   141,   142,   143,   144,   145,   146,   147,   148,
  534.    149,   150,   151,     0,     0,  -267,     0,     0,     0,     0,
  535.      0,     0,     0,     0,   135,   136,   137,   266,   138,   139,
  536.    140,   141,   142,   143,   144,   145,   146,   147,   148,   149,
  537.    150,   151,   140,   141,   142,   143,   144,   145,   146,   147,
  538.    148,   149,   150,   151,   141,   142,   143,   144,   145,   146,
  539.    147,   148,   149,   150,   151
  540. };
  541.  
  542. static const short yycheck[] = {    35,
  543.     34,    93,    43,     9,    10,    11,    18,     2,     3,   181,
  544.     47,     2,     3,   180,   159,   201,    49,   193,    81,    85,
  545.    130,    97,    52,    20,    54,     1,    38,     9,     0,    61,
  546.     62,     9,     3,    69,    66,    47,    19,    20,    35,    94,
  547.     72,     0,   163,    52,    50,    54,     3,    32,    56,    33,
  548.      7,    33,    54,    89,     9,    52,    54,    54,    57,   333,
  549.     62,    60,   336,   268,    62,   390,   158,     3,     4,   102,
  550.     82,    55,    69,    55,    45,    56,    57,    55,     3,     4,
  551.      3,     4,    94,    54,    81,    61,   191,   123,    45,   125,
  552.     54,    62,   197,    54,   239,     3,   172,    54,    62,     7,
  553.     55,   137,   134,   135,   136,   111,   138,   139,   140,   141,
  554.    142,   143,   144,   145,   146,   147,   148,   149,   150,   151,
  555.    117,   157,   447,   189,   160,    61,   123,   248,   125,   334,
  556.    163,   186,   115,   118,   117,   120,    61,    45,    61,   173,
  557.      3,     4,    27,     3,     4,   470,    54,     7,   154,   155,
  558.     61,   261,    56,    57,    62,    45,     3,     4,   194,    54,
  559.     69,   202,    61,   204,    54,    54,   198,   312,    61,    54,
  560.      3,     4,    62,    62,   186,   205,   206,    62,    55,   365,
  561.    175,     9,   214,    60,   175,    45,   183,    56,   360,   252,
  562.    253,    60,   359,   199,    54,   371,   205,   206,    45,   182,
  563.    183,    56,    62,   360,   409,    60,     7,    54,   205,   206,
  564.    246,   416,    45,   323,   123,   248,   125,    60,    56,   311,
  565.     55,    54,    60,   333,   316,   370,   336,     3,   373,    62,
  566.    267,   403,   389,    55,     3,     4,   268,     3,     7,     9,
  567.    252,   253,     8,     9,    45,    11,   403,   242,    56,    54,
  568.    282,   242,    60,    54,    31,   267,   253,   289,   290,     3,
  569.      4,    62,   294,    29,   296,    60,   423,     6,     7,    45,
  570.    427,    31,   429,    12,    13,    14,    45,    56,    54,    61,
  571.     55,    60,   439,    49,    50,    54,    27,   444,    54,    33,
  572.     55,   448,    58,    59,    56,    61,   453,    56,   330,   340,
  573.    312,    45,   334,    54,    55,    55,    63,   339,    54,    55,
  574.     54,    62,    57,   349,    56,     1,    62,   353,     4,     5,
  575.      6,     7,    56,    31,   481,   320,    12,    13,    14,   320,
  576.     49,    50,    55,    52,    53,    54,   372,    55,    54,    55,
  577.     57,    27,    28,    62,    55,    31,    62,    60,   354,    33,
  578.     55,   387,    55,    63,   390,   391,    63,    55,   370,    63,
  579.      1,   373,    57,     4,     5,     6,     7,    33,    54,    60,
  580.     56,    12,    13,    14,    60,    61,    62,   409,    45,    46,
  581.     47,    55,   418,    55,   416,    63,    27,    28,     3,    33,
  582.     31,    33,   426,     4,     5,     6,     7,    54,    54,    10,
  583.     54,    12,    13,    14,    41,    42,    43,    44,    45,    46,
  584.     47,   447,    33,    54,     7,    56,    56,    28,   454,    60,
  585.     61,    62,    56,     5,     6,     7,    33,    56,    16,   465,
  586.     12,    13,    14,     1,   470,     3,     4,     5,     6,     7,
  587.      8,     9,    60,    11,    12,    13,    14,    15,    54,    17,
  588.     18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
  589.     28,    29,    33,     4,     5,     6,     7,    56,    54,    56,
  590.     38,    12,    13,    14,    57,    43,    44,    45,    57,    63,
  591.     55,    49,    50,    17,    56,    55,    54,    28,    56,    57,
  592.     58,    59,     1,    61,     3,     4,     5,     6,     7,     8,
  593.      9,    55,    11,    12,    13,    14,    15,    54,    17,    18,
  594.     19,    20,    21,    22,    23,    24,    25,    26,    27,    28,
  595.     29,     9,     4,    56,     6,     7,    56,    54,    60,    38,
  596.     12,    13,    14,    55,    43,    44,    45,    56,    56,    55,
  597.     49,    50,    55,    55,     0,    54,    28,    56,    56,    58,
  598.     59,     1,    61,     3,     4,     0,     3,   156,     8,     9,
  599.    292,    11,    48,   166,   265,    15,   330,    17,    18,    19,
  600.     20,    21,    22,    23,    24,    25,    26,    27,   370,    29,
  601.     40,    41,    42,    43,    44,    45,    46,    47,    38,   199,
  602.    204,   340,   359,    43,    44,    45,   111,   468,   466,    49,
  603.     50,    -1,   245,   242,    54,   320,    56,    57,    58,    59,
  604.      1,    61,     3,     4,    -1,    -1,    -1,     8,     9,    -1,
  605.     11,    -1,    -1,    -1,    15,    -1,    17,    18,    19,    20,
  606.     21,    22,    23,    24,    25,    26,    27,    -1,    29,    -1,
  607.      4,     5,     6,     7,    -1,    -1,    -1,    38,    12,    13,
  608.     14,    -1,    43,    44,    45,    -1,    -1,    -1,    49,    50,
  609.     -1,    -1,    -1,    54,    28,    56,    57,    58,    59,     1,
  610.     61,     3,     4,    -1,     6,     7,     8,     9,    -1,    11,
  611.     12,    13,    14,    43,    44,    45,    46,    47,    -1,    -1,
  612.     -1,     1,    56,     3,    -1,    -1,    28,    29,     8,     9,
  613.     -1,    11,    -1,    -1,    -1,    -1,    38,    -1,    -1,    -1,
  614.     -1,    43,    44,    45,    -1,    -1,    -1,    49,    50,    29,
  615.     -1,    -1,    54,    -1,    -1,    -1,    58,    59,    38,    61,
  616.     -1,    -1,    -1,    43,    44,    45,    -1,    -1,    -1,    49,
  617.     50,    -1,    -1,    -1,    54,    -1,    -1,    57,    58,    59,
  618.      1,    61,     3,    -1,    -1,    -1,     1,     8,     9,     4,
  619.     11,     6,     7,    -1,    -1,    -1,    -1,    12,    13,    14,
  620.     -1,    -1,     1,    -1,     3,    -1,    -1,    -1,    29,     8,
  621.      9,    -1,    11,    28,    -1,    -1,    -1,    38,    -1,    -1,
  622.     -1,    -1,    43,    44,    45,    -1,     3,    -1,    49,    50,
  623.     29,     8,     9,    54,    11,    -1,    57,    58,    59,    38,
  624.     61,    56,    57,    -1,    43,    44,    45,    -1,     3,    -1,
  625.     49,    50,    29,     8,     9,    54,    11,    -1,    -1,    58,
  626.     59,    38,    61,    -1,    -1,    -1,    43,    44,    45,    -1,
  627.      3,    -1,    49,    50,    29,     8,     9,    54,    11,    -1,
  628.     -1,    58,    59,    38,    -1,    -1,    63,    -1,    43,    44,
  629.     45,    -1,     3,    -1,    49,    50,    29,     8,     9,    54,
  630.     11,    -1,    -1,    58,    59,    38,    -1,    -1,    63,    -1,
  631.     43,    44,    45,    -1,     3,    -1,    49,    50,    29,     8,
  632.      9,    54,    11,    -1,    -1,    58,    59,    38,    -1,    -1,
  633.     63,    -1,    43,    44,    45,    -1,    -1,    -1,    49,    50,
  634.     29,    -1,    -1,    54,    -1,    -1,    -1,    58,    59,    38,
  635.     -1,    -1,    63,    -1,    43,    44,    45,    -1,    -1,    -1,
  636.     49,    50,    -1,    -1,    -1,    54,    -1,    -1,    -1,    58,
  637.     59,    -1,     1,    -1,    63,     4,     5,     6,     7,     4,
  638.     -1,     6,     7,    12,    13,    14,    -1,    12,    13,    14,
  639.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    27,    28,
  640.     -1,     1,    31,    28,     4,     5,     6,     7,    -1,    -1,
  641.     -1,    -1,    12,    13,    14,     3,     4,     5,     6,     7,
  642.     45,    -1,    -1,    -1,    12,    13,    14,    56,    28,    54,
  643.     -1,    60,    61,    -1,    -1,    -1,    -1,    62,    -1,    32,
  644.     28,    34,    35,    36,    37,    38,    39,    40,    41,    42,
  645.     43,    44,    45,    46,    47,    -1,    -1,    45,    -1,    -1,
  646.     -1,    61,    -1,    -1,    -1,    -1,    54,     3,     4,     5,
  647.      6,     7,     8,     9,    62,    11,    12,    13,    14,    15,
  648.     -1,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  649.     26,    27,    28,    29,    -1,    -1,    -1,    -1,    -1,    -1,
  650.     -1,    -1,    38,    -1,    -1,    -1,    -1,    43,    44,    45,
  651.     -1,    -1,    -1,    49,    50,    -1,    -1,    -1,    54,    -1,
  652.     56,    -1,    58,    59,    -1,    61,     3,     4,    -1,    -1,
  653.     -1,     8,     9,    -1,    11,    -1,    -1,    -1,    15,    -1,
  654.     17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
  655.     27,    -1,    29,    -1,     3,    -1,    -1,    -1,    -1,     8,
  656.      9,    38,    11,    -1,    -1,    -1,    43,    44,    45,    -1,
  657.     -1,    -1,    49,    50,    -1,    -1,    -1,    54,    -1,    56,
  658.     29,    58,    59,    -1,    61,    -1,    -1,    -1,    -1,    38,
  659.     -1,    -1,    -1,    -1,    43,    44,    45,    -1,    -1,    -1,
  660.     49,    50,    -1,    -1,    -1,    54,    -1,    -1,    -1,    58,
  661.     59,    -1,    61,     3,     4,    -1,     6,     7,     8,     9,
  662.     -1,    11,    12,    13,    14,    38,    39,    40,    41,    42,
  663.     43,    44,    45,    46,    47,     3,    -1,    -1,    28,    29,
  664.      8,     9,    -1,    11,    -1,    -1,    -1,    -1,    38,    -1,
  665.     -1,    -1,    -1,    43,    44,    45,    -1,     3,    -1,    49,
  666.     50,    29,     8,     9,    54,    11,    -1,    -1,    58,    59,
  667.     38,    -1,    -1,    -1,    -1,    43,    44,    45,    -1,     3,
  668.     -1,    49,    50,    29,     8,     9,    54,    11,    56,    -1,
  669.     58,    59,    38,    -1,    -1,    -1,    -1,    43,    44,    45,
  670.     -1,     3,    -1,    49,    50,    29,     8,     9,    54,    11,
  671.     -1,    -1,    58,    59,    38,    -1,    -1,    -1,    -1,    43,
  672.     44,    45,    -1,    -1,    -1,    49,    50,    29,    -1,    -1,
  673.     54,    -1,    -1,    -1,    58,    59,    38,    -1,    -1,    -1,
  674.     -1,    43,    44,    45,    -1,    -1,    -1,    49,    50,    -1,
  675.     -1,    -1,    54,    -1,    -1,     1,    58,    59,     4,     1,
  676.      6,     7,     4,    -1,     6,     7,    12,    13,    14,    -1,
  677.     12,    13,    14,    -1,    -1,    -1,    -1,    -1,     1,    -1,
  678.     -1,     4,    28,     6,     7,    -1,    28,    -1,    -1,    12,
  679.     13,    14,    -1,    -1,    -1,     1,    -1,     3,     4,     5,
  680.      6,     7,    -1,    -1,    -1,    28,    12,    13,    14,    -1,
  681.     56,    57,    -1,    -1,    56,    57,    -1,    -1,    -1,    -1,
  682.     -1,    27,    28,    -1,     1,    -1,     3,     4,     5,     6,
  683.      7,    -1,    -1,    56,    57,    12,    13,    14,    -1,    45,
  684.     -1,     1,    -1,    -1,     4,     5,     6,     7,    54,    -1,
  685.     56,    28,    12,    13,    14,     4,     5,     6,     7,    -1,
  686.     -1,    -1,    -1,    12,    13,    14,    -1,    -1,    28,    39,
  687.     40,    41,    42,    43,    44,    45,    46,    47,    55,    28,
  688.     35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
  689.     45,    46,    47,    -1,    -1,    55,    -1,    -1,    -1,    -1,
  690.     -1,    -1,    -1,    -1,    30,    31,    32,    56,    34,    35,
  691.     36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
  692.     46,    47,    36,    37,    38,    39,    40,    41,    42,    43,
  693.     44,    45,    46,    47,    37,    38,    39,    40,    41,    42,
  694.     43,    44,    45,    46,    47
  695. };
  696. #define YYPURE 1
  697.  
  698. #line 2 "bison.simple"
  699.  
  700. /* Skeleton output parser for bison,
  701.    copyright (C) 1984 Bob Corbett and Richard Stallman
  702.  
  703.                NO WARRANTY
  704.  
  705.   BECAUSE THIS PROGRAM IS LICENSED FREE OF CHARGE, WE PROVIDE ABSOLUTELY
  706. NO WARRANTY, TO THE EXTENT PERMITTED BY APPLICABLE STATE LAW.  EXCEPT
  707. WHEN OTHERWISE STATED IN WRITING, FREE SOFTWARE FOUNDATION, INC,
  708. RICHARD M. STALLMAN AND/OR OTHER PARTIES PROVIDE THIS PROGRAM "AS IS"
  709. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
  710. BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  711. FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY
  712. AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE
  713. DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
  714. CORRECTION.
  715.  
  716.  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL RICHARD M.
  717. STALLMAN, THE FREE SOFTWARE FOUNDATION, INC., AND/OR ANY OTHER PARTY
  718. WHO MAY MODIFY AND REDISTRIBUTE THIS PROGRAM AS PERMITTED BELOW, BE
  719. LIABLE TO YOU FOR DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR
  720. OTHER SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
  721. USE OR INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
  722. DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR
  723. A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) THIS
  724. PROGRAM, EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH
  725. DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
  726.  
  727.         GENERAL PUBLIC LICENSE TO COPY
  728.  
  729.   1. You may copy and distribute verbatim copies of this source file
  730. as you receive it, in any medium, provided that you conspicuously and
  731. appropriately publish on each copy a valid copyright notice "Copyright
  732. (C) 1985 Free Software Foundation, Inc."; and include following the
  733. copyright notice a verbatim copy of the above disclaimer of warranty
  734. and of this License.  You may charge a distribution fee for the
  735. physical act of transferring a copy.
  736.  
  737.   2. You may modify your copy or copies of this source file or
  738. any portion of it, and copy and distribute such modifications under
  739. the terms of Paragraph 1 above, provided that you also do the following:
  740.  
  741.     a) cause the modified files to carry prominent notices stating
  742.     that you changed the files and the date of any change; and
  743.  
  744.     b) cause the whole of any work that you distribute or publish,
  745.     that in whole or in part contains or is a derivative of this
  746.     program or any part thereof, to be licensed at no charge to all
  747.     third parties on terms identical to those contained in this
  748.     License Agreement (except that you may choose to grant more extensive
  749.     warranty protection to some or all third parties, at your option).
  750.  
  751.     c) You may charge a distribution fee for the physical act of
  752.     transferring a copy, and you may at your option offer warranty
  753.     protection in exchange for a fee.
  754.  
  755. Mere aggregation of another unrelated program with this program (or its
  756. derivative) on a volume of a storage or distribution medium does not bring
  757. the other program under the scope of these terms.
  758.  
  759.   3. You may copy and distribute this program (or a portion or derivative
  760. of it, under Paragraph 2) in object code or executable form under the terms
  761. of Paragraphs 1 and 2 above provided that you also do one of the following:
  762.  
  763.     a) accompany it with the complete corresponding machine-readable
  764.     source code, which must be distributed under the terms of
  765.     Paragraphs 1 and 2 above; or,
  766.  
  767.     b) accompany it with a written offer, valid for at least three
  768.     years, to give any third party free (except for a nominal
  769.     shipping charge) a complete machine-readable copy of the
  770.     corresponding source code, to be distributed under the terms of
  771.     Paragraphs 1 and 2 above; or,
  772.  
  773.     c) accompany it with the information you received as to where the
  774.     corresponding source code may be obtained.  (This alternative is
  775.     allowed only for noncommercial distribution and only if you
  776.     received the program in object code or executable form alone.)
  777.  
  778. For an executable file, complete source code means all the source code for
  779. all modules it contains; but, as a special exception, it need not include
  780. source code for modules which are standard libraries that accompany the
  781. operating system on which the executable file runs.
  782.  
  783.   4. You may not copy, sublicense, distribute or transfer this program
  784. except as expressly provided under this License Agreement.  Any attempt
  785. otherwise to copy, sublicense, distribute or transfer this program is void and
  786. your rights to use the program under this License agreement shall be
  787. automatically terminated.  However, parties who have received computer
  788. software programs from you with this License Agreement will not have
  789. their licenses terminated so long as such parties remain in full compliance.
  790.  
  791.   5. If you wish to incorporate parts of this program into other free
  792. programs whose distribution conditions are different, write to the Free
  793. Software Foundation at 675 Mass Ave, Cambridge, MA 02139.  We have not yet
  794. worked out a simple rule that can be stated here, but we will often permit
  795. this.  We will be guided by the two goals of preserving the free status of
  796. all derivatives of our free software and of promoting the sharing and reuse of
  797. software.
  798.  
  799.  
  800. In other words, you are welcome to use, share and improve this program.
  801. You are forbidden to forbid anyone else to use, share and improve
  802. what you give them.   Help stamp out software-hoarding!  */
  803.  
  804. /* This is the parser code that is written into each bison parser
  805.   when the %semantic_parser declaration is not specified in the grammar.
  806.   It was written by Richard Stallman by simplifying the hairy parser
  807.   used when %semantic_parser is specified.  */
  808.  
  809. /* Note: there must be only one dollar sign in this file.
  810.    It is replaced by the list of actions, each action
  811.    as one case of the switch.  */
  812.  
  813. #define yyerrok        (yyerrstatus = 0)
  814. #define yyclearin    (yychar = YYEMPTY)
  815. #define YYEMPTY        -2
  816. #define YYEOF        0
  817. #define YYFAIL        goto yyerrlab;
  818.  
  819. #define YYTERROR    1
  820.  
  821. #ifndef YYIMPURE
  822. #define YYLEX        yylex()
  823. #endif
  824.  
  825. #ifndef YYPURE
  826. #define YYLEX        yylex(&yylval, &yylloc)
  827. #endif
  828.  
  829. /* If nonreentrant, generate the variables here */
  830.  
  831. #ifndef YYIMPURE
  832.  
  833. int    yychar;            /*  the lookahead symbol        */
  834. YYSTYPE    yylval;            /*  the semantic value of the        */
  835.                 /*  lookahead symbol            */
  836.  
  837. YYLTYPE yylloc;            /*  location data for the lookahead    */
  838.                 /*  symbol                */
  839.  
  840. int yynerr;            /*  number of parse errors so far       */
  841.  
  842. #ifdef YYDEBUG
  843. int yydebug = 0;        /*  nonzero means print parse trace    */
  844. #endif
  845.  
  846. #endif  /* YYIMPURE */
  847.  
  848.  
  849. /*  YYMAXDEPTH indicates the initial size of the parser's stacks    */
  850.  
  851. #ifndef    YYMAXDEPTH
  852. #define YYMAXDEPTH 200
  853. #endif
  854.  
  855. /*  YYMAXLIMIT is the maximum size the stacks can grow to
  856.     (effective only if the built-in stack extension method is used).  */
  857.  
  858. #ifndef YYMAXLIMIT
  859. #define YYMAXLIMIT 10000
  860. #endif
  861.  
  862.  
  863. #line 165 "bison.simple"
  864. int
  865. yyparse()
  866. {
  867.   register int yystate;
  868.   register int yyn;
  869.   register short *yyssp;
  870.   register YYSTYPE *yyvsp;
  871.   YYLTYPE *yylsp;
  872.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  873.   int yychar1;        /*  lookahead token as an internal (translated) token number */
  874.  
  875.   short    yyssa[YYMAXDEPTH];    /*  the state stack            */
  876.   YYSTYPE yyvsa[YYMAXDEPTH];    /*  the semantic value stack        */
  877.   YYLTYPE yylsa[YYMAXDEPTH];    /*  the location stack            */
  878.  
  879.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  880.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  881.   YYLTYPE *yyls = yylsa;
  882.  
  883.   int yymaxdepth = YYMAXDEPTH;
  884.  
  885. #ifndef YYPURE
  886.   int yychar;
  887.   YYSTYPE yylval;
  888.   YYLTYPE yylloc;
  889. #endif
  890.  
  891. #ifdef YYDEBUG
  892.   extern int yydebug;
  893. #endif
  894.  
  895.  
  896.   YYSTYPE yyval;        /*  the variable used to return        */
  897.                 /*  semantic values from the action    */
  898.                 /*  routines                */
  899.  
  900.   int yylen;
  901.  
  902. #ifdef YYDEBUG
  903.   if (yydebug)
  904.     fprintf(stderr, "Starting parse\n");
  905. #endif
  906.  
  907.   yystate = 0;
  908.   yyerrstatus = 0;
  909.   yynerr = 0;
  910.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  911.  
  912.   /* Initialize stack pointers.
  913.      Waste one element of value and location stack
  914.      so that they stay on the same level as the state stack.  */
  915.  
  916.   yyssp = yyss - 1;
  917.   yyvsp = yyvs;
  918.   yylsp = yyls;
  919.  
  920. /* Push a new state, which is found in  yystate  .  */
  921. /* In all cases, when you get here, the value and location stacks
  922.    have just been pushed. so pushing a state here evens the stacks.  */
  923. yynewstate:
  924.  
  925.   *++yyssp = yystate;
  926.  
  927.   if (yyssp >= yyss + yymaxdepth - 1)
  928.     {
  929.       /* Give user a chance to reallocate the stack */
  930.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  931.       YYSTYPE *yyvs1 = yyvs;
  932.       YYLTYPE *yyls1 = yyls;
  933.       short *yyss1 = yyss;
  934.  
  935.       /* Get the current used size of the three stacks, in elements.  */
  936.       int size = yyssp - yyss + 1;
  937.  
  938. #ifdef yyoverflow
  939.       /* Each stack pointer address is followed by the size of
  940.      the data in use in that stack, in bytes.  */
  941.       yyoverflow("parser stack overflow",
  942.          &yyss1, size * sizeof (*yyssp),
  943.          &yyvs1, size * sizeof (*yyvsp),
  944.          &yyls1, size * sizeof (*yylsp),
  945.          &yymaxdepth);
  946.  
  947.       yyss = yyss1; yyvs = yyvs1; yyls = yyls1;
  948. #else /* no yyoverflow */
  949.       /* Extend the stack our own way.  */
  950.       if (yymaxdepth >= YYMAXLIMIT)
  951.     yyerror("parser stack overflow");
  952.       yymaxdepth *= 2;
  953.       if (yymaxdepth > YYMAXLIMIT)
  954.     yymaxdepth = YYMAXLIMIT;
  955.       yyss = (short *) alloca (yymaxdepth * sizeof (*yyssp));
  956.       bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  957.       yyvs = (YYSTYPE *) alloca (yymaxdepth * sizeof (*yyvsp));
  958.       bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  959. #ifdef YYLSP_NEEDED
  960.       yyls = (YYLTYPE *) alloca (yymaxdepth * sizeof (*yylsp));
  961.       bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  962. #endif
  963. #endif /* no yyoverflow */
  964.  
  965.       yyssp = yyss + size - 1;
  966.       yyvsp = yyvs + size - 1;
  967. #ifdef YYLSP_NEEDED
  968.       yylsp = yyls + size - 1;
  969. #endif
  970.  
  971. #ifdef YYDEBUG
  972.       if (yydebug)
  973.     fprintf(stderr, "Stack size increased to %d\n", yymaxdepth);
  974. #endif
  975.  
  976.       if (yyssp >= yyss + yymaxdepth - 1)
  977.     YYERROR;
  978.     }
  979.  
  980. #ifdef YYDEBUG
  981.   if (yydebug)
  982.     fprintf(stderr, "Entering state %d\n", yystate);
  983. #endif
  984.  
  985. /* Do appropriate processing given the current state.  */
  986. /* Read a lookahead token if we need one and don't already have one.  */
  987. yyresume:
  988.  
  989.   /* First try to decide what to do without reference to lookahead token.  */
  990.  
  991.   yyn = yypact[yystate];
  992.   if (yyn == YYFLAG)
  993.     goto yydefault;
  994.  
  995.   /* Not known => get a lookahead token if don't already have one.  */
  996.  
  997.   /* yychar is either YYEMPTY or YYEOF
  998.      or a valid token in external form.  */
  999.  
  1000.   if (yychar == YYEMPTY)
  1001.     {
  1002. #ifdef YYDEBUG
  1003.       if (yydebug)
  1004.     fprintf(stderr, "Reading a token: ");
  1005. #endif
  1006.       yychar = YYLEX;
  1007.     }
  1008.  
  1009.   /* Convert token to internal form (in yychar1) for indexing tables with */
  1010.  
  1011.   if (yychar <= 0)        /* This means end of input. */
  1012.     {
  1013.       yychar1 = 0;
  1014.       yychar = YYEOF;        /* Don't call YYLEX any more */
  1015.  
  1016. #ifdef YYDEBUG
  1017.       if (yydebug)
  1018.     fprintf(stderr, "Now at end of input.\n");
  1019. #endif
  1020.     }
  1021.   else
  1022.     {
  1023.       yychar1 = YYTRANSLATE(yychar);
  1024.  
  1025. #ifdef YYDEBUG
  1026.       if (yydebug)
  1027.     fprintf(stderr, "Next token is %d (%s)\n", yychar, yytname[yychar1]);
  1028. #endif
  1029.     }
  1030.  
  1031.   yyn += yychar1;
  1032.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  1033.     goto yydefault;
  1034.  
  1035.   yyn = yytable[yyn];
  1036.  
  1037.   /* yyn is what to do for this token type in this state.
  1038.      Negative => reduce, -yyn is rule number.
  1039.      Positive => shift, yyn is new state.
  1040.        New state is final state => don't bother to shift,
  1041.        just return success.
  1042.      0, or most negative number => error.  */
  1043.  
  1044.   if (yyn < 0)
  1045.     {
  1046.       if (yyn == YYFLAG)
  1047.     goto yyerrlab;
  1048.       yyn = -yyn;
  1049.       goto yyreduce;
  1050.     }
  1051.   else if (yyn == 0)
  1052.     goto yyerrlab;
  1053.  
  1054.   if (yyn == YYFINAL)
  1055.     YYACCEPT;
  1056.  
  1057.   /* Shift the lookahead token.  */
  1058.  
  1059. #ifdef YYDEBUG
  1060.   if (yydebug)
  1061.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  1062. #endif
  1063.  
  1064.   /* Discard the token being shifted unless it is eof.  */
  1065.   if (yychar != YYEOF)
  1066.     yychar = YYEMPTY;
  1067.  
  1068.   *++yyvsp = yylval;
  1069. #ifdef YYLSP_NEEDED
  1070.   *++yylsp = yylloc;
  1071. #endif
  1072.  
  1073.   /* count tokens shifted since error; after three, turn off error status.  */
  1074.   if (yyerrstatus) yyerrstatus--;
  1075.  
  1076.   yystate = yyn;
  1077.   goto yynewstate;
  1078.  
  1079. /* Do the default action for the current state.  */
  1080. yydefault:
  1081.  
  1082.   yyn = yydefact[yystate];
  1083.   if (yyn == 0)
  1084.     goto yyerrlab;
  1085.  
  1086. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  1087. yyreduce:
  1088.   yylen = yyr2[yyn];
  1089.   yyval = yyvsp[1-yylen]; /* implement default value of the action */
  1090.  
  1091. #ifdef YYDEBUG
  1092.   if (yydebug)
  1093.     {
  1094.       if (yylen == 1)
  1095.     fprintf (stderr, "Reducing 1 value via line %d, ",
  1096.          yyrline[yyn]);
  1097.       else
  1098.     fprintf (stderr, "Reducing %d values via line %d, ",
  1099.          yylen, yyrline[yyn]);
  1100.     }
  1101. #endif
  1102.  
  1103.  
  1104.   switch (yyn) {
  1105.  
  1106. case 3:
  1107. #line 182 "parse.y"
  1108. {yyval.ttype = NULL_TREE; ;
  1109.     break;}
  1110. case 5:
  1111. #line 183 "parse.y"
  1112. {yyval.ttype = NULL_TREE; ;
  1113.     break;}
  1114. case 9:
  1115. #line 190 "parse.y"
  1116. { if (pedantic)
  1117.             warning ("ANSI C forbids use of `asm' keyword");
  1118.           if (TREE_CHAIN (yyvsp[-2].ttype)) yyvsp[-2].ttype = combine_strings (yyvsp[-2].ttype);
  1119.           assemble_asm (yyvsp[-2].ttype); ;
  1120.     break;}
  1121. case 10:
  1122. #line 198 "parse.y"
  1123. { if (pedantic)
  1124.             error ("ANSI C forbids data definition lacking type or storage class");
  1125.           else
  1126.             warning ("data definition lacks type or storage class"); ;
  1127.     break;}
  1128. case 11:
  1129. #line 203 "parse.y"
  1130. {;
  1131.     break;}
  1132. case 12:
  1133. #line 205 "parse.y"
  1134. {;
  1135.     break;}
  1136. case 13:
  1137. #line 207 "parse.y"
  1138. { error ("empty declaration"); ;
  1139.     break;}
  1140. case 14:
  1141. #line 209 "parse.y"
  1142. { shadow_tag (yyvsp[-1].ttype); ;
  1143.     break;}
  1144. case 18:
  1145. #line 217 "parse.y"
  1146. { if (! start_function (yyvsp[-2].ttype, yyvsp[0].ttype))
  1147.             YYFAIL;
  1148.           reinit_parse_for_function (); ;
  1149.     break;}
  1150. case 19:
  1151. #line 221 "parse.y"
  1152. { store_parm_decls (); ;
  1153.     break;}
  1154. case 20:
  1155. #line 223 "parse.y"
  1156. { finish_function (); ;
  1157.     break;}
  1158. case 21:
  1159. #line 225 "parse.y"
  1160. { ;
  1161.     break;}
  1162. case 22:
  1163. #line 227 "parse.y"
  1164. { if (! start_function (yyvsp[-2].ttype, yyvsp[0].ttype))
  1165.             YYFAIL;
  1166.           reinit_parse_for_function (); ;
  1167.     break;}
  1168. case 23:
  1169. #line 231 "parse.y"
  1170. { store_parm_decls (); ;
  1171.     break;}
  1172. case 24:
  1173. #line 233 "parse.y"
  1174. { finish_function (); ;
  1175.     break;}
  1176. case 25:
  1177. #line 235 "parse.y"
  1178. { ;
  1179.     break;}
  1180. case 26:
  1181. #line 237 "parse.y"
  1182. { if (! start_function (0, yyvsp[0].ttype))
  1183.             YYFAIL;
  1184.           reinit_parse_for_function (); ;
  1185.     break;}
  1186. case 27:
  1187. #line 241 "parse.y"
  1188. { store_parm_decls (); ;
  1189.     break;}
  1190. case 28:
  1191. #line 243 "parse.y"
  1192. { finish_function (); ;
  1193.     break;}
  1194. case 29:
  1195. #line 245 "parse.y"
  1196. { ;
  1197.     break;}
  1198. case 32:
  1199. #line 254 "parse.y"
  1200. { yyval.code = ADDR_EXPR; ;
  1201.     break;}
  1202. case 33:
  1203. #line 256 "parse.y"
  1204. { yyval.code = NEGATE_EXPR; ;
  1205.     break;}
  1206. case 34:
  1207. #line 258 "parse.y"
  1208. { yyval.code = CONVERT_EXPR; ;
  1209.     break;}
  1210. case 35:
  1211. #line 260 "parse.y"
  1212. { yyval.code = PREINCREMENT_EXPR; ;
  1213.     break;}
  1214. case 36:
  1215. #line 262 "parse.y"
  1216. { yyval.code = PREDECREMENT_EXPR; ;
  1217.     break;}
  1218. case 37:
  1219. #line 264 "parse.y"
  1220. { yyval.code = BIT_NOT_EXPR; ;
  1221.     break;}
  1222. case 38:
  1223. #line 266 "parse.y"
  1224. { yyval.code = TRUTH_NOT_EXPR; ;
  1225.     break;}
  1226. case 39:
  1227. #line 270 "parse.y"
  1228. { yyval.ttype = build_compound_expr (yyvsp[0].ttype); ;
  1229.     break;}
  1230. case 40:
  1231. #line 275 "parse.y"
  1232. { yyval.ttype = NULL_TREE; ;
  1233.     break;}
  1234. case 42:
  1235. #line 281 "parse.y"
  1236. { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  1237.     break;}
  1238. case 43:
  1239. #line 283 "parse.y"
  1240. { chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  1241.     break;}
  1242. case 45:
  1243. #line 289 "parse.y"
  1244. { yyval.ttype = build_indirect_ref (yyvsp[0].ttype, "unary *"); ;
  1245.     break;}
  1246. case 46:
  1247. #line 291 "parse.y"
  1248. { yyval.ttype = build_unary_op (yyvsp[-1].code, yyvsp[0].ttype, 0); ;
  1249.     break;}
  1250. case 47:
  1251. #line 293 "parse.y"
  1252. { tree type = groktypename (yyvsp[-2].ttype);
  1253.           yyval.ttype = build_c_cast (type, yyvsp[0].ttype); ;
  1254.     break;}
  1255. case 48:
  1256. #line 296 "parse.y"
  1257. { tree type = groktypename (yyvsp[-5].ttype);
  1258.           if (pedantic)
  1259.             warning ("ANSI C forbids constructor-expressions");
  1260.           yyval.ttype = digest_init (type, build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)), 0);
  1261.           if (TREE_CODE (type) == ARRAY_TYPE && TYPE_SIZE (type) == 0)
  1262.             {
  1263.               int failure = complete_array_type (type, yyval.ttype, 1);
  1264.               if (failure)
  1265.             abort ();
  1266.             }
  1267.         ;
  1268.     break;}
  1269. case 49:
  1270. #line 308 "parse.y"
  1271. { if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF
  1272.               && TREE_PACKED (TREE_OPERAND (yyvsp[0].ttype, 1)))
  1273.             error ("sizeof applied to a bit-field");
  1274.           yyval.ttype = c_sizeof (TREE_TYPE (yyvsp[0].ttype)); ;
  1275.     break;}
  1276. case 50:
  1277. #line 313 "parse.y"
  1278. { yyval.ttype = c_sizeof (groktypename (yyvsp[-1].ttype)); ;
  1279.     break;}
  1280. case 51:
  1281. #line 315 "parse.y"
  1282. { if (TREE_CODE (yyvsp[0].ttype) == COMPONENT_REF
  1283.               && TREE_PACKED (TREE_OPERAND (yyvsp[0].ttype, 1)))
  1284.             error ("__alignof applied to a bit-field");
  1285.           yyval.ttype = c_alignof (TREE_TYPE (yyvsp[0].ttype)); ;
  1286.     break;}
  1287. case 52:
  1288. #line 320 "parse.y"
  1289. { yyval.ttype = c_alignof (groktypename (yyvsp[-1].ttype)); ;
  1290.     break;}
  1291. case 53:
  1292. #line 322 "parse.y"
  1293. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1294.     break;}
  1295. case 54:
  1296. #line 324 "parse.y"
  1297. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1298.     break;}
  1299. case 55:
  1300. #line 326 "parse.y"
  1301. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1302.     break;}
  1303. case 56:
  1304. #line 328 "parse.y"
  1305. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1306.     break;}
  1307. case 57:
  1308. #line 330 "parse.y"
  1309. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1310.     break;}
  1311. case 58:
  1312. #line 332 "parse.y"
  1313. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1314.     break;}
  1315. case 59:
  1316. #line 334 "parse.y"
  1317. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1318.     break;}
  1319. case 60:
  1320. #line 336 "parse.y"
  1321. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1322.     break;}
  1323. case 61:
  1324. #line 338 "parse.y"
  1325. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1326.     break;}
  1327. case 62:
  1328. #line 340 "parse.y"
  1329. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1330.     break;}
  1331. case 63:
  1332. #line 342 "parse.y"
  1333. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1334.     break;}
  1335. case 64:
  1336. #line 344 "parse.y"
  1337. { yyval.ttype = build_binary_op (yyvsp[-1].code, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1338.     break;}
  1339. case 65:
  1340. #line 346 "parse.y"
  1341. { yyval.ttype = build_binary_op (TRUTH_ANDIF_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1342.     break;}
  1343. case 66:
  1344. #line 348 "parse.y"
  1345. { yyval.ttype = build_binary_op (TRUTH_ORIF_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1346.     break;}
  1347. case 67:
  1348. #line 350 "parse.y"
  1349. { yyval.ttype = build_conditional_expr (yyvsp[-4].ttype, yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1350.     break;}
  1351. case 68:
  1352. #line 352 "parse.y"
  1353. { yyval.ttype = build_modify_expr (yyvsp[-2].ttype, NOP_EXPR, yyvsp[0].ttype); ;
  1354.     break;}
  1355. case 69:
  1356. #line 354 "parse.y"
  1357. { yyval.ttype = build_modify_expr (yyvsp[-2].ttype, yyvsp[-1].code, yyvsp[0].ttype); ;
  1358.     break;}
  1359. case 70:
  1360. #line 359 "parse.y"
  1361. { yyval.ttype = lastiddecl;
  1362.           if (!yyval.ttype)
  1363.             {
  1364.               if (yychar == YYEMPTY)
  1365.             yychar = YYLEX;
  1366.               if (yychar == '(')
  1367.             yyval.ttype = implicitly_declare (yyvsp[0].ttype);
  1368.               else
  1369.             {
  1370.               if (IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) != error_mark_node)
  1371.                 error ("undeclared variable `%s' (first use here)",
  1372.                    IDENTIFIER_POINTER (yyvsp[0].ttype));
  1373.               yyval.ttype = error_mark_node;
  1374.               /* Prevent repeated error messages.  */
  1375.               IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) = error_mark_node;
  1376.             }
  1377.             }
  1378.           if (TREE_CODE (yyval.ttype) == CONST_DECL)
  1379.             yyval.ttype = DECL_INITIAL (yyval.ttype);
  1380.         ;
  1381.     break;}
  1382. case 72:
  1383. #line 381 "parse.y"
  1384. { yyval.ttype = combine_strings (yyvsp[0].ttype); ;
  1385.     break;}
  1386. case 73:
  1387. #line 383 "parse.y"
  1388. { yyval.ttype = yyvsp[-1].ttype; ;
  1389.     break;}
  1390. case 74:
  1391. #line 385 "parse.y"
  1392. { yyval.ttype = error_mark_node; ;
  1393.     break;}
  1394. case 75:
  1395. #line 387 "parse.y"
  1396. { if (current_function_decl == 0)
  1397.             {
  1398.               error ("braced-group within expression allowed only inside a function");
  1399.               YYFAIL;
  1400.             }
  1401.           expand_start_stmt_expr (); ;
  1402.     break;}
  1403. case 76:
  1404. #line 394 "parse.y"
  1405. { if (pedantic)
  1406.             warning ("ANSI C forbids braced-groups within expressions");
  1407.           yyval.ttype = get_last_expr ();
  1408.           expand_end_stmt_expr (); ;
  1409.     break;}
  1410. case 77:
  1411. #line 399 "parse.y"
  1412. { yyval.ttype = build_function_call (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1413.     break;}
  1414. case 78:
  1415. #line 401 "parse.y"
  1416. { yyval.ttype = build_array_ref (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1417.     break;}
  1418. case 79:
  1419. #line 403 "parse.y"
  1420. { yyval.ttype = build_component_ref (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1421.     break;}
  1422. case 80:
  1423. #line 405 "parse.y"
  1424. { yyval.ttype = build_component_ref (build_indirect_ref (yyvsp[-2].ttype, "->"), yyvsp[0].ttype); ;
  1425.     break;}
  1426. case 81:
  1427. #line 407 "parse.y"
  1428. { yyval.ttype = build_unary_op (POSTINCREMENT_EXPR, yyvsp[-1].ttype, 0); ;
  1429.     break;}
  1430. case 82:
  1431. #line 409 "parse.y"
  1432. { yyval.ttype = build_unary_op (POSTDECREMENT_EXPR, yyvsp[-1].ttype, 0); ;
  1433.     break;}
  1434. case 84:
  1435. #line 416 "parse.y"
  1436. { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1437.     break;}
  1438. case 91:
  1439. #line 434 "parse.y"
  1440. { current_declspecs = yyvsp[0].ttype;
  1441.           yyval.itype = suspend_momentary (); ;
  1442.     break;}
  1443. case 92:
  1444. #line 440 "parse.y"
  1445. { resume_momentary (yyvsp[-2].itype); ;
  1446.     break;}
  1447. case 93:
  1448. #line 442 "parse.y"
  1449. { resume_momentary (yyvsp[-2].itype); ;
  1450.     break;}
  1451. case 94:
  1452. #line 444 "parse.y"
  1453. { shadow_tag (yyvsp[-1].ttype); ;
  1454.     break;}
  1455. case 95:
  1456. #line 446 "parse.y"
  1457. { warning ("empty declaration"); ;
  1458.     break;}
  1459. case 96:
  1460. #line 455 "parse.y"
  1461. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1462.     break;}
  1463. case 97:
  1464. #line 457 "parse.y"
  1465. { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
  1466.     break;}
  1467. case 98:
  1468. #line 461 "parse.y"
  1469. { yyval.ttype = NULL_TREE; ;
  1470.     break;}
  1471. case 99:
  1472. #line 463 "parse.y"
  1473. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1474.     break;}
  1475. case 100:
  1476. #line 465 "parse.y"
  1477. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1478.     break;}
  1479. case 101:
  1480. #line 474 "parse.y"
  1481. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1482.     break;}
  1483. case 102:
  1484. #line 476 "parse.y"
  1485. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1486.     break;}
  1487. case 103:
  1488. #line 478 "parse.y"
  1489. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1490.     break;}
  1491. case 104:
  1492. #line 480 "parse.y"
  1493. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1494.     break;}
  1495. case 105:
  1496. #line 490 "parse.y"
  1497. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1498.     break;}
  1499. case 106:
  1500. #line 492 "parse.y"
  1501. { yyval.ttype = chainon (yyvsp[0].ttype, tree_cons (NULL_TREE, yyvsp[-1].ttype, yyvsp[-2].ttype)); ;
  1502.     break;}
  1503. case 107:
  1504. #line 496 "parse.y"
  1505. { yyval.ttype = NULL_TREE; ;
  1506.     break;}
  1507. case 108:
  1508. #line 498 "parse.y"
  1509. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1510.     break;}
  1511. case 112:
  1512. #line 509 "parse.y"
  1513. { yyval.ttype = TREE_TYPE (yyvsp[-1].ttype);
  1514.           if (pedantic)
  1515.             warning ("ANSI C forbids `typeof'"); ;
  1516.     break;}
  1517. case 113:
  1518. #line 513 "parse.y"
  1519. { yyval.ttype = groktypename (yyvsp[-1].ttype);
  1520.           if (pedantic)
  1521.             warning ("ANSI C forbids `typeof'"); ;
  1522.     break;}
  1523. case 121:
  1524. #line 537 "parse.y"
  1525. { yyval.ttype = NULL_TREE; ;
  1526.     break;}
  1527. case 122:
  1528. #line 539 "parse.y"
  1529. { if (TREE_CHAIN (yyvsp[-1].ttype)) yyvsp[-1].ttype = combine_strings (yyvsp[-1].ttype);
  1530.           yyval.ttype = yyvsp[-1].ttype;
  1531.           if (pedantic)
  1532.             warning ("ANSI C forbids use of `asm' keyword");
  1533.         ;
  1534.     break;}
  1535. case 123:
  1536. #line 548 "parse.y"
  1537. { yyval.ttype = start_decl (yyvsp[-2].ttype, current_declspecs, 1); ;
  1538.     break;}
  1539. case 124:
  1540. #line 551 "parse.y"
  1541. { finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-3].ttype); ;
  1542.     break;}
  1543. case 125:
  1544. #line 553 "parse.y"
  1545. { tree d = start_decl (yyvsp[-1].ttype, current_declspecs, 0);
  1546.           finish_decl (d, NULL_TREE, yyvsp[0].ttype); ;
  1547.     break;}
  1548. case 126:
  1549. #line 559 "parse.y"
  1550. { yyval.ttype = start_decl (yyvsp[-2].ttype, current_declspecs, 1); ;
  1551.     break;}
  1552. case 127:
  1553. #line 562 "parse.y"
  1554. { finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-3].ttype); ;
  1555.     break;}
  1556. case 128:
  1557. #line 564 "parse.y"
  1558. { tree d = start_decl (yyvsp[-1].ttype, current_declspecs, 0);
  1559.           finish_decl (d, NULL_TREE, yyvsp[0].ttype); ;
  1560.     break;}
  1561. case 130:
  1562. #line 571 "parse.y"
  1563. { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-1].ttype)); ;
  1564.     break;}
  1565. case 131:
  1566. #line 573 "parse.y"
  1567. { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); ;
  1568.     break;}
  1569. case 132:
  1570. #line 575 "parse.y"
  1571. { yyval.ttype = NULL_TREE; ;
  1572.     break;}
  1573. case 133:
  1574. #line 582 "parse.y"
  1575. { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  1576.     break;}
  1577. case 134:
  1578. #line 584 "parse.y"
  1579. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype); ;
  1580.     break;}
  1581. case 137:
  1582. #line 599 "parse.y"
  1583. { yyval.ttype = yyvsp[-1].ttype; ;
  1584.     break;}
  1585. case 138:
  1586. #line 601 "parse.y"
  1587. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1588.     break;}
  1589. case 139:
  1590. #line 606 "parse.y"
  1591. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1592.     break;}
  1593. case 140:
  1594. #line 608 "parse.y"
  1595. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1596.     break;}
  1597. case 141:
  1598. #line 610 "parse.y"
  1599. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1600.     break;}
  1601. case 143:
  1602. #line 621 "parse.y"
  1603. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1604.     break;}
  1605. case 144:
  1606. #line 626 "parse.y"
  1607. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1608.     break;}
  1609. case 145:
  1610. #line 628 "parse.y"
  1611. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1612.     break;}
  1613. case 146:
  1614. #line 630 "parse.y"
  1615. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1616.     break;}
  1617. case 148:
  1618. #line 639 "parse.y"
  1619. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1620.     break;}
  1621. case 149:
  1622. #line 644 "parse.y"
  1623. { yyval.ttype = yyvsp[-1].ttype; ;
  1624.     break;}
  1625. case 150:
  1626. #line 646 "parse.y"
  1627. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1628.     break;}
  1629. case 151:
  1630. #line 648 "parse.y"
  1631. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1632.     break;}
  1633. case 152:
  1634. #line 650 "parse.y"
  1635. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1636.     break;}
  1637. case 154:
  1638. #line 656 "parse.y"
  1639. { yyval.ttype = start_struct (RECORD_TYPE, yyvsp[-1].ttype);
  1640.           /* Start scope of tag before parsing components.  */
  1641.         ;
  1642.     break;}
  1643. case 155:
  1644. #line 660 "parse.y"
  1645. { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype);
  1646.           /* Really define the structure.  */
  1647.         ;
  1648.     break;}
  1649. case 156:
  1650. #line 664 "parse.y"
  1651. { yyval.ttype = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
  1652.                       yyvsp[-1].ttype); ;
  1653.     break;}
  1654. case 157:
  1655. #line 667 "parse.y"
  1656. { yyval.ttype = xref_tag (RECORD_TYPE, yyvsp[0].ttype); ;
  1657.     break;}
  1658. case 158:
  1659. #line 669 "parse.y"
  1660. { yyval.ttype = start_struct (UNION_TYPE, yyvsp[-1].ttype); ;
  1661.     break;}
  1662. case 159:
  1663. #line 671 "parse.y"
  1664. { yyval.ttype = finish_struct (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  1665.     break;}
  1666. case 160:
  1667. #line 673 "parse.y"
  1668. { yyval.ttype = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
  1669.                       yyvsp[-1].ttype); ;
  1670.     break;}
  1671. case 161:
  1672. #line 676 "parse.y"
  1673. { yyval.ttype = xref_tag (UNION_TYPE, yyvsp[0].ttype); ;
  1674.     break;}
  1675. case 162:
  1676. #line 678 "parse.y"
  1677. { yyvsp[0].itype = suspend_momentary ();
  1678.           yyval.ttype = start_enum (yyvsp[-1].ttype); ;
  1679.     break;}
  1680. case 163:
  1681. #line 681 "parse.y"
  1682. { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1683.           resume_momentary (yyvsp[-4].itype); ;
  1684.     break;}
  1685. case 164:
  1686. #line 684 "parse.y"
  1687. { yyvsp[0].itype = suspend_momentary ();
  1688.           yyval.ttype = start_enum (NULL_TREE); ;
  1689.     break;}
  1690. case 165:
  1691. #line 687 "parse.y"
  1692. { yyval.ttype = finish_enum (yyvsp[-3].ttype, nreverse (yyvsp[-2].ttype));
  1693.           resume_momentary (yyvsp[-4].itype); ;
  1694.     break;}
  1695. case 166:
  1696. #line 690 "parse.y"
  1697. { yyval.ttype = xref_tag (ENUMERAL_TYPE, yyvsp[0].ttype); ;
  1698.     break;}
  1699. case 169:
  1700. #line 699 "parse.y"
  1701. { yyval.ttype = NULL_TREE; ;
  1702.     break;}
  1703. case 170:
  1704. #line 701 "parse.y"
  1705. { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[-1].ttype); ;
  1706.     break;}
  1707. case 171:
  1708. #line 703 "parse.y"
  1709. { if (pedantic) 
  1710.             warning ("extra semicolon in struct or union specified"); ;
  1711.     break;}
  1712. case 172:
  1713. #line 718 "parse.y"
  1714. { yyval.ttype = yyvsp[0].ttype;
  1715.           resume_momentary (yyvsp[-1].itype); ;
  1716.     break;}
  1717. case 173:
  1718. #line 721 "parse.y"
  1719. { yyval.ttype = yyvsp[0].ttype;
  1720.           resume_momentary (yyvsp[-1].itype); ;
  1721.     break;}
  1722. case 174:
  1723. #line 724 "parse.y"
  1724. { yyval.ttype = NULL_TREE; ;
  1725.     break;}
  1726. case 175:
  1727. #line 729 "parse.y"
  1728. { yyval.ttype = NULL_TREE; ;
  1729.     break;}
  1730. case 177:
  1731. #line 732 "parse.y"
  1732. { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1733.     break;}
  1734. case 178:
  1735. #line 737 "parse.y"
  1736. { yyval.ttype = grokfield (input_filename, lineno, yyvsp[0].ttype, current_declspecs, NULL_TREE); ;
  1737.     break;}
  1738. case 179:
  1739. #line 739 "parse.y"
  1740. { yyval.ttype = grokfield (input_filename, lineno, yyvsp[-2].ttype, current_declspecs, yyvsp[0].ttype); ;
  1741.     break;}
  1742. case 180:
  1743. #line 741 "parse.y"
  1744. { yyval.ttype = grokfield (input_filename, lineno, NULL_TREE, current_declspecs, yyvsp[0].ttype); ;
  1745.     break;}
  1746. case 182:
  1747. #line 752 "parse.y"
  1748. { yyval.ttype = chainon (yyvsp[0].ttype, yyvsp[-2].ttype); ;
  1749.     break;}
  1750. case 183:
  1751. #line 758 "parse.y"
  1752. { yyval.ttype = build_enumerator (yyvsp[0].ttype, NULL_TREE); ;
  1753.     break;}
  1754. case 184:
  1755. #line 760 "parse.y"
  1756. { yyval.ttype = build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  1757.     break;}
  1758. case 185:
  1759. #line 765 "parse.y"
  1760. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1761.     break;}
  1762. case 186:
  1763. #line 767 "parse.y"
  1764. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1765.     break;}
  1766. case 187:
  1767. #line 772 "parse.y"
  1768. { yyval.ttype = NULL_TREE; ;
  1769.     break;}
  1770. case 189:
  1771. #line 778 "parse.y"
  1772. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1773.     break;}
  1774. case 190:
  1775. #line 780 "parse.y"
  1776. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1777.     break;}
  1778. case 191:
  1779. #line 785 "parse.y"
  1780. { yyval.ttype = NULL_TREE; ;
  1781.     break;}
  1782. case 192:
  1783. #line 787 "parse.y"
  1784. { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ttype); ;
  1785.     break;}
  1786. case 193:
  1787. #line 792 "parse.y"
  1788. { yyval.ttype = yyvsp[-1].ttype; ;
  1789.     break;}
  1790. case 194:
  1791. #line 795 "parse.y"
  1792. { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  1793.     break;}
  1794. case 195:
  1795. #line 797 "parse.y"
  1796. { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ;
  1797.     break;}
  1798. case 196:
  1799. #line 799 "parse.y"
  1800. { yyval.ttype = build_nt (CALL_EXPR, yyvsp[-2].ttype, yyvsp[0].ttype, NULL_TREE); ;
  1801.     break;}
  1802. case 197:
  1803. #line 801 "parse.y"
  1804. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  1805.     break;}
  1806. case 198:
  1807. #line 803 "parse.y"
  1808. { yyval.ttype = build_nt (ARRAY_REF, yyvsp[-2].ttype, NULL_TREE); ;
  1809.     break;}
  1810. case 199:
  1811. #line 805 "parse.y"
  1812. { yyval.ttype = build_nt (CALL_EXPR, NULL_TREE, yyvsp[0].ttype, NULL_TREE); ;
  1813.     break;}
  1814. case 200:
  1815. #line 807 "parse.y"
  1816. { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ;
  1817.     break;}
  1818. case 201:
  1819. #line 809 "parse.y"
  1820. { yyval.ttype = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); ;
  1821.     break;}
  1822. case 208:
  1823. #line 831 "parse.y"
  1824. { pushlevel (0);
  1825.           clear_last_expr ();
  1826.           push_momentary ();
  1827.           expand_start_bindings (0); ;
  1828.     break;}
  1829. case 212:
  1830. #line 846 "parse.y"
  1831. { expand_end_bindings (getdecls (), 1);
  1832.           poplevel (1, 1, 0);
  1833.           pop_momentary (); ;
  1834.     break;}
  1835. case 213:
  1836. #line 850 "parse.y"
  1837. { expand_end_bindings (getdecls (), 0);
  1838.           poplevel (0, 0, 0);
  1839.           pop_momentary (); ;
  1840.     break;}
  1841. case 214:
  1842. #line 854 "parse.y"
  1843. { expand_end_bindings (getdecls (), 0);
  1844.           poplevel (0, 0, 0);
  1845.           pop_momentary (); ;
  1846.     break;}
  1847. case 215:
  1848. #line 861 "parse.y"
  1849. { emit_note (input_filename, lineno);
  1850.           expand_start_cond (truthvalue_conversion (yyvsp[-1].ttype), 0); ;
  1851.     break;}
  1852. case 218:
  1853. #line 869 "parse.y"
  1854. { emit_note (input_filename, lineno);
  1855.           expand_expr_stmt (yyvsp[-1].ttype);
  1856.           clear_momentary (); ;
  1857.     break;}
  1858. case 219:
  1859. #line 873 "parse.y"
  1860. { expand_start_else (); ;
  1861.     break;}
  1862. case 220:
  1863. #line 875 "parse.y"
  1864. { expand_end_else (); ;
  1865.     break;}
  1866. case 221:
  1867. #line 877 "parse.y"
  1868. { expand_end_cond (); ;
  1869.     break;}
  1870. case 222:
  1871. #line 879 "parse.y"
  1872. { emit_note (input_filename, lineno);
  1873.           expand_start_loop (1); ;
  1874.     break;}
  1875. case 223:
  1876. #line 882 "parse.y"
  1877. { emit_note (input_filename, lineno);
  1878.           expand_exit_loop_if_false (truthvalue_conversion (yyvsp[-1].ttype)); ;
  1879.     break;}
  1880. case 224:
  1881. #line 885 "parse.y"
  1882. { expand_end_loop (); ;
  1883.     break;}
  1884. case 225:
  1885. #line 887 "parse.y"
  1886. { emit_note (input_filename, lineno);
  1887.           expand_start_loop_continue_elsewhere (1); ;
  1888.     break;}
  1889. case 226:
  1890. #line 890 "parse.y"
  1891. { expand_loop_continue_here (); ;
  1892.     break;}
  1893. case 227:
  1894. #line 892 "parse.y"
  1895. { emit_note (input_filename, lineno);
  1896.           expand_exit_loop_if_false (truthvalue_conversion (yyvsp[-2].ttype));
  1897.           expand_end_loop ();
  1898.           clear_momentary (); ;
  1899.     break;}
  1900. case 228:
  1901. #line 898 "parse.y"
  1902. { emit_note (input_filename, lineno);
  1903.           if (yyvsp[-1].ttype) expand_expr_stmt (yyvsp[-1].ttype);
  1904.           expand_start_loop_continue_elsewhere (1); ;
  1905.     break;}
  1906. case 229:
  1907. #line 902 "parse.y"
  1908. { emit_note (input_filename, lineno);
  1909.           if (yyvsp[-1].ttype)
  1910.             expand_exit_loop_if_false (truthvalue_conversion (yyvsp[-1].ttype)); ;
  1911.     break;}
  1912. case 230:
  1913. #line 908 "parse.y"
  1914. { push_momentary ();
  1915.           yyvsp[0].itype = lineno; ;
  1916.     break;}
  1917. case 231:
  1918. #line 911 "parse.y"
  1919. { emit_note (input_filename, yyvsp[-2].itype);
  1920.           expand_loop_continue_here ();
  1921.           if (yyvsp[-3].ttype)
  1922.             expand_expr_stmt (yyvsp[-3].ttype);
  1923.           pop_momentary ();
  1924.           expand_end_loop (); ;
  1925.     break;}
  1926. case 232:
  1927. #line 918 "parse.y"
  1928. { emit_note (input_filename, lineno);
  1929.           c_expand_start_case (yyvsp[-1].ttype);
  1930.           /* Don't let the tree nodes for $3 be discarded by
  1931.              clear_momentary during the parsing of the next stmt.  */
  1932.           push_momentary (); ;
  1933.     break;}
  1934. case 233:
  1935. #line 924 "parse.y"
  1936. { expand_end_case ();
  1937.           pop_momentary (); ;
  1938.     break;}
  1939. case 234:
  1940. #line 927 "parse.y"
  1941. { register tree value = fold (yyvsp[-1].ttype);
  1942.           register tree label
  1943.             = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
  1944.  
  1945.           if (TREE_CODE (value) != INTEGER_CST
  1946.               && value != error_mark_node)
  1947.             {
  1948.               error ("case label does not reduce to an integer constant");
  1949.               value = error_mark_node;
  1950.             }
  1951.           else
  1952.             /* Promote char or short to int.  */
  1953.             value = default_conversion (value);
  1954.           if (value != error_mark_node)
  1955.             {
  1956.               int success = pushcase (value, label);
  1957.               if (success == 1)
  1958.             error ("case label not within a switch statement");
  1959.               else if (success == 2)
  1960.             error ("duplicate case value");
  1961.               else if (success == 3)
  1962.             warning ("case value out of range");
  1963.             }
  1964.         ;
  1965.     break;}
  1966. case 236:
  1967. #line 953 "parse.y"
  1968. {
  1969.           register tree label
  1970.             = build_decl (LABEL_DECL, NULL_TREE, NULL_TREE);
  1971.           int success = pushcase (NULL_TREE, label);
  1972.           if (success == 1)
  1973.             error ("default label not within a switch statement");
  1974.           else if (success == 2)
  1975.             error ("multiple default labels in one switch");
  1976.         ;
  1977.     break;}
  1978. case 238:
  1979. #line 964 "parse.y"
  1980. { emit_note (input_filename, lineno);
  1981.           if ( ! expand_exit_something ())
  1982.             error ("break statement not within loop or switch"); ;
  1983.     break;}
  1984. case 239:
  1985. #line 968 "parse.y"
  1986. { emit_note (input_filename, lineno);
  1987.           if (! expand_continue_loop ())
  1988.             error ("continue statement not within a loop"); ;
  1989.     break;}
  1990. case 240:
  1991. #line 972 "parse.y"
  1992. { emit_note (input_filename, lineno);
  1993.           c_expand_return (NULL_TREE); ;
  1994.     break;}
  1995. case 241:
  1996. #line 975 "parse.y"
  1997. { emit_note (input_filename, lineno);
  1998.           c_expand_return (yyvsp[-1].ttype); ;
  1999.     break;}
  2000. case 242:
  2001. #line 978 "parse.y"
  2002. { if (pedantic)
  2003.             warning ("ANSI C forbids use of `asm' keyword");
  2004.           if (TREE_CHAIN (yyvsp[-2].ttype)) yyvsp[-2].ttype = combine_strings (yyvsp[-2].ttype);
  2005.           expand_asm (yyvsp[-2].ttype); ;
  2006.     break;}
  2007. case 243:
  2008. #line 984 "parse.y"
  2009. { if (pedantic)
  2010.             warning ("ANSI C forbids use of `asm' keyword");
  2011.           if (TREE_CHAIN (yyvsp[-4].ttype)) yyvsp[-4].ttype = combine_strings (yyvsp[-4].ttype);
  2012.           c_expand_asm_operands (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE,
  2013.                      yyvsp[-6].ttype == ridpointers[(int)RID_VOLATILE]); ;
  2014.     break;}
  2015. case 244:
  2016. #line 991 "parse.y"
  2017. { if (pedantic)
  2018.             warning ("ANSI C forbids use of `asm' keyword");
  2019.           if (TREE_CHAIN (yyvsp[-6].ttype)) yyvsp[-6].ttype = combine_strings (yyvsp[-6].ttype);
  2020.           c_expand_asm_operands (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype,
  2021.                      yyvsp[-8].ttype == ridpointers[(int)RID_VOLATILE]); ;
  2022.     break;}
  2023. case 245:
  2024. #line 997 "parse.y"
  2025. { tree decl;
  2026.           emit_note (input_filename, lineno);
  2027.           decl = lookup_label (yyvsp[-1].ttype);
  2028.           expand_goto (decl); ;
  2029.     break;}
  2030. case 246:
  2031. #line 1002 "parse.y"
  2032. { tree label = define_label (input_filename, lineno, yyvsp[-1].ttype);
  2033.           if (label)
  2034.             expand_label (label); ;
  2035.     break;}
  2036. case 249:
  2037. #line 1011 "parse.y"
  2038. { emit_note (input_filename, lineno); ;
  2039.     break;}
  2040. case 250:
  2041. #line 1013 "parse.y"
  2042. { emit_note (input_filename, lineno); ;
  2043.     break;}
  2044. case 251:
  2045. #line 1018 "parse.y"
  2046. { yyval.ttype = NULL_TREE; ;
  2047.     break;}
  2048. case 253:
  2049. #line 1025 "parse.y"
  2050. { yyval.ttype = NULL_TREE; ;
  2051.     break;}
  2052. case 256:
  2053. #line 1032 "parse.y"
  2054. { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ;
  2055.     break;}
  2056. case 257:
  2057. #line 1037 "parse.y"
  2058. { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ;
  2059.     break;}
  2060. case 258:
  2061. #line 1043 "parse.y"
  2062. { pushlevel (0); ;
  2063.     break;}
  2064. case 259:
  2065. #line 1045 "parse.y"
  2066. { yyval.ttype = yyvsp[0].ttype; poplevel (0, 0, 0); ;
  2067.     break;}
  2068. case 260:
  2069. #line 1051 "parse.y"
  2070. { pushlevel (0); ;
  2071.     break;}
  2072. case 261:
  2073. #line 1053 "parse.y"
  2074. { yyval.ttype = yyvsp[0].ttype; poplevel (0, 0, 0); ;
  2075.     break;}
  2076. case 263:
  2077. #line 1059 "parse.y"
  2078. { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, yyvsp[-1].ttype); ;
  2079.     break;}
  2080. case 264:
  2081. #line 1061 "parse.y"
  2082. { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
  2083.     break;}
  2084. case 266:
  2085. #line 1067 "parse.y"
  2086. { yyval.ttype = tree_cons (NULL_TREE, NULL_TREE, NULL_TREE); ;
  2087.     break;}
  2088. case 267:
  2089. #line 1073 "parse.y"
  2090. { yyval.ttype = get_parm_info (0); ;
  2091.     break;}
  2092. case 268:
  2093. #line 1075 "parse.y"
  2094. { yyval.ttype = get_parm_info (1); ;
  2095.     break;}
  2096. case 269:
  2097. #line 1077 "parse.y"
  2098. { yyval.ttype = get_parm_info (0); ;
  2099.     break;}
  2100. case 270:
  2101. #line 1082 "parse.y"
  2102. { push_parm_decl (yyvsp[0].ttype); ;
  2103.     break;}
  2104. case 271:
  2105. #line 1084 "parse.y"
  2106. { push_parm_decl (yyvsp[0].ttype); ;
  2107.     break;}
  2108. case 272:
  2109. #line 1091 "parse.y"
  2110. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2111.     break;}
  2112. case 273:
  2113. #line 1093 "parse.y"
  2114. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2115.     break;}
  2116. case 274:
  2117. #line 1095 "parse.y"
  2118. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2119.     break;}
  2120. case 275:
  2121. #line 1097 "parse.y"
  2122. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype)    ; ;
  2123.     break;}
  2124. case 276:
  2125. #line 1099 "parse.y"
  2126. { yyval.ttype = build_tree_list (yyvsp[-1].ttype, yyvsp[0].ttype); ;
  2127.     break;}
  2128. case 277:
  2129. #line 1105 "parse.y"
  2130. { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ;
  2131.     break;}
  2132. case 278:
  2133. #line 1107 "parse.y"
  2134. { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ;
  2135.     break;}
  2136. }
  2137.    /* the action file gets copied in in place of this dollarsign */
  2138. #line 303 "bison.simple"
  2139.  
  2140.   yyvsp -= yylen;
  2141.   yyssp -= yylen;
  2142. #ifdef YYLSP_NEEDED
  2143.   yylsp -= yylen;
  2144. #endif
  2145.  
  2146. #ifdef YYDEBUG
  2147.   if (yydebug)
  2148.     {
  2149.       short *ssp1 = yyss - 1;
  2150.       fprintf (stderr, "state stack now", yyssp-yyss);
  2151.       while (ssp1 != yyssp)
  2152.     fprintf (stderr, " %d", *++ssp1);
  2153.       fprintf (stderr, "\n");
  2154.     }
  2155. #endif
  2156.  
  2157.   *++yyvsp = yyval;
  2158.  
  2159. #ifdef YYLSP_NEEDED
  2160.   yylsp++;
  2161.   if (yylen == 0)
  2162.     {
  2163.       yylsp->first_line = yylloc.first_line;
  2164.       yylsp->first_column = yylloc.first_column;
  2165.       yylsp->last_line = (yylsp-1)->last_line;
  2166.       yylsp->last_column = (yylsp-1)->last_column;
  2167.       yylsp->text = 0;
  2168.     }
  2169.   else
  2170.     {
  2171.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  2172.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  2173.     }
  2174. #endif
  2175.  
  2176.   /* Now "shift" the result of the reduction.
  2177.      Determine what state that goes to,
  2178.      based on the state we popped back to
  2179.      and the rule number reduced by.  */
  2180.  
  2181.   yyn = yyr1[yyn];
  2182.  
  2183.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  2184.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  2185.     yystate = yytable[yystate];
  2186.   else
  2187.     yystate = yydefgoto[yyn - YYNTBASE];
  2188.  
  2189.   goto yynewstate;
  2190.  
  2191. yyerrlab:   /* here on detecting error */
  2192.  
  2193.   if (! yyerrstatus)
  2194.     /* If not already recovering from an error, report this error.  */
  2195.     {
  2196.       ++yynerr;
  2197.       yyerror("parse error");
  2198.     }
  2199.  
  2200.   if (yyerrstatus == 3)
  2201.     {
  2202.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  2203.  
  2204.       /* return failure if at end of input */
  2205.       if (yychar == YYEOF)
  2206.     YYERROR;
  2207.  
  2208. #ifdef YYDEBUG
  2209.       if (yydebug)
  2210.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  2211. #endif
  2212.  
  2213.       yychar = YYEMPTY;
  2214.     }
  2215.  
  2216.   /* Else will try to reuse lookahead token
  2217.      after shifting the error token.  */
  2218.  
  2219.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  2220.  
  2221.   goto yyerrhandle;
  2222.  
  2223. yyerrdefault:  /* current state does not do anything special for the error token. */
  2224.  
  2225. #if 0
  2226.   /* This is wrong; only states that explicitly want error tokens
  2227.      should shift them.  */
  2228.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  2229.   if (yyn) goto yydefault;
  2230. #endif
  2231.  
  2232. yyerrpop:   /* pop the current state because it cannot handle the error token */
  2233.  
  2234.   if (yyssp == yyss) YYERROR;
  2235.   yyvsp--;
  2236.   yystate = *--yyssp;
  2237. #ifdef YYLSP_NEEDED
  2238.   yylsp--;
  2239. #endif
  2240.  
  2241. #ifdef YYDEBUG
  2242.   if (yydebug)
  2243.     {
  2244.       short *ssp1 = yyss - 1;
  2245.       fprintf (stderr, "Error: state stack now", yyssp-yyss);
  2246.       while (ssp1 != yyssp)
  2247.     fprintf (stderr, " %d", *++ssp1);
  2248.       fprintf (stderr, "\n");
  2249.     }
  2250. #endif
  2251.  
  2252. yyerrhandle:
  2253.  
  2254.   yyn = yypact[yystate];
  2255.   if (yyn == YYFLAG)
  2256.     goto yyerrdefault;
  2257.  
  2258.   yyn += YYTERROR;
  2259.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  2260.     goto yyerrdefault;
  2261.  
  2262.   yyn = yytable[yyn];
  2263.   if (yyn < 0)
  2264.     {
  2265.       if (yyn == YYFLAG)
  2266.     goto yyerrpop;
  2267.       yyn = -yyn;
  2268.       goto yyreduce;
  2269.     }
  2270.   else if (yyn == 0)
  2271.     goto yyerrpop;
  2272.  
  2273.   if (yyn == YYFINAL)
  2274.     YYACCEPT;
  2275.  
  2276. #ifdef YYDEBUG
  2277.   if (yydebug)
  2278.     fprintf(stderr, "Shifting error token, ");
  2279. #endif
  2280.  
  2281.   *++yyvsp = yylval;
  2282. #ifdef YYLSP_NEEDED
  2283.   *++yylsp = yylloc;
  2284. #endif
  2285.  
  2286.   yystate = yyn;
  2287.   goto yynewstate;
  2288. }
  2289. #line 1109 "parse.y"
  2290.  
  2291.  
  2292. /* Return something to represent absolute declarators containing a *.
  2293.    TARGET is the absolute declarator that the * contains.
  2294.    TYPE_QUALS is a list of modifiers such as const or volatile
  2295.    to apply to the pointer type, represented as identifiers.
  2296.  
  2297.    We return an INDIRECT_REF whose "contents" are TARGET
  2298.    and whose type is the modifier list.  */
  2299.    
  2300. static tree
  2301. make_pointer_declarator (type_quals, target)
  2302.      tree type_quals, target;
  2303. {
  2304.   return build (INDIRECT_REF, type_quals, target);
  2305. }
  2306.  
  2307. /* Given a chain of STRING_CST nodes,
  2308.    concatenate them into one STRING_CST
  2309.    and give it a suitable array-of-chars data type.  */
  2310.  
  2311. static tree
  2312. combine_strings (strings)
  2313.      tree strings;
  2314. {
  2315.   register tree value, t;
  2316.   register int length = 1;
  2317.   int wide_length = 0;
  2318.   int wide_flag = 0;
  2319.  
  2320.   if (TREE_CHAIN (strings))
  2321.     {
  2322.       /* More than one in the chain, so concatenate.  */
  2323.       register char *p, *q;
  2324.  
  2325.       /* Don't include the \0 at the end of each substring,
  2326.      except for the last one.
  2327.      Count wide strings and ordinary strings separately.  */
  2328.       for (t = strings; t; t = TREE_CHAIN (t))
  2329.     {
  2330.       if (TREE_TYPE (t) == int_array_type_node)
  2331.         {
  2332.           wide_length += (TREE_STRING_LENGTH (t) - 1);
  2333.           wide_flag = 1;
  2334.         }
  2335.       else
  2336.         length += (TREE_STRING_LENGTH (t) - 1);
  2337.     }
  2338.  
  2339.       /* If anything is wide, the non-wides will be converted,
  2340.      which makes them take more space.  */
  2341.       if (wide_flag)
  2342.     length = length * UNITS_PER_WORD + wide_length;
  2343.  
  2344.       p = (char *) oballoc (length);
  2345.  
  2346.       /* Copy the individual strings into the new combined string.
  2347.      If the combined string is wide, convert the chars to ints
  2348.      for any individual strings that are not wide.  */
  2349.  
  2350.       q = p;
  2351.       for (t = strings; t; t = TREE_CHAIN (t))
  2352.     {
  2353.       int len = TREE_STRING_LENGTH (t) - 1;
  2354.       if ((TREE_TYPE (t) == int_array_type_node) == wide_flag)
  2355.         {
  2356.           bcopy (TREE_STRING_POINTER (t), q, len);
  2357.           q += len;
  2358.         }
  2359.       else
  2360.         {
  2361.           int i;
  2362.           for (i = 0; i < len; i++)
  2363.         ((int *) q)[i] = TREE_STRING_POINTER (t)[i];
  2364.           q += len * UNITS_PER_WORD;
  2365.         }
  2366.     }
  2367.       *q = 0;
  2368.  
  2369.       value = make_node (STRING_CST);
  2370.       TREE_STRING_POINTER (value) = p;
  2371.       TREE_STRING_LENGTH (value) = length;
  2372.       TREE_LITERAL (value) = 1;
  2373.     }
  2374.   else
  2375.     {
  2376.       value = strings;
  2377.       length = TREE_STRING_LENGTH (value);
  2378.       if (TREE_TYPE (value) == int_array_type_node)
  2379.     wide_flag = 1;
  2380.     }
  2381.  
  2382.   TREE_TYPE (value)
  2383.     = build_array_type (wide_flag ? integer_type_node : char_type_node,
  2384.             make_index_type (build_int_2 (length - 1, 0)));
  2385.   TREE_LITERAL (value) = 1;
  2386.   TREE_STATIC (value) = 1;
  2387.   return value;
  2388. }
  2389.  
  2390. int lineno;            /* current line number in file being read */
  2391.  
  2392. FILE *finput;            /* input file.
  2393.                    Normally a pipe from the preprocessor.  */
  2394.  
  2395. /* lexical analyzer */
  2396.  
  2397. static int maxtoken;        /* Current nominal length of token buffer */
  2398. static char *token_buffer;    /* Pointer to token buffer.
  2399.                    Actual allocated length is maxtoken + 2.  */
  2400.  
  2401. #define MAXRESERVED 9
  2402.  
  2403. /* frw[I] is index in `reswords' of the first word whose length is I;
  2404.    frw[I+1] is one plus the index of the last word whose length is I.
  2405.    The length of frw must be MAXRESERVED + 2 so there is an element
  2406.    at MAXRESERVED+1 for the case I == MAXRESERVED.  */
  2407.  
  2408. static char frw[MAXRESERVED+2] =
  2409.   { 0, 0, 0, 2, 5, 13, 19, 29, 31, 35, 36 };
  2410.  
  2411. /* Table of reserved words.  */
  2412.  
  2413. struct resword { char *name; short token; enum rid rid;};
  2414.  
  2415. #define NORID RID_UNUSED
  2416.  
  2417. static struct resword reswords[]
  2418.   = {{"if", IF, NORID},
  2419.      {"do", DO, NORID},
  2420.      {"int", TYPESPEC, RID_INT},
  2421.      {"for", FOR, NORID},
  2422.      {"asm", ASM, NORID},
  2423.      {"case", CASE, NORID},
  2424.      {"char", TYPESPEC, RID_CHAR},
  2425.      {"auto", SCSPEC, RID_AUTO},
  2426.      {"goto", GOTO, NORID},
  2427.      {"else", ELSE, NORID},
  2428.      {"long", TYPESPEC, RID_LONG},
  2429.      {"void", TYPESPEC, RID_VOID},
  2430.      {"enum", ENUM, NORID},
  2431.      {"float", TYPESPEC, RID_FLOAT},
  2432.      {"short", TYPESPEC, RID_SHORT},
  2433.      {"union", UNION, NORID},
  2434.      {"break", BREAK, NORID},
  2435.      {"while", WHILE, NORID},
  2436.      {"const", TYPE_QUAL, RID_CONST},
  2437.      {"double", TYPESPEC, RID_DOUBLE},
  2438.      {"static", SCSPEC, RID_STATIC},
  2439.      {"extern", SCSPEC, RID_EXTERN},
  2440.      {"struct", STRUCT, NORID},
  2441.      {"return", RETURN, NORID},
  2442.      {"sizeof", SIZEOF, NORID},
  2443.      {"typeof", TYPEOF, NORID},
  2444.      {"switch", SWITCH, NORID},
  2445.      {"signed", TYPESPEC, RID_SIGNED},
  2446.      {"inline", SCSPEC, RID_INLINE},
  2447.      {"typedef", SCSPEC, RID_TYPEDEF},
  2448.      {"default", DEFAULT, NORID},
  2449.      {"unsigned", TYPESPEC, RID_UNSIGNED},
  2450.      {"continue", CONTINUE, NORID},
  2451.      {"register", SCSPEC, RID_REGISTER},
  2452.      {"volatile", TYPE_QUAL, RID_VOLATILE},
  2453.      {"__alignof", ALIGNOF, NORID}};
  2454.  
  2455. /* The elements of `ridpointers' are identifier nodes
  2456.    for the reserved type names and storage classes.
  2457.    It is indexed by a RID_... value.  */
  2458.  
  2459. tree ridpointers[(int) RID_MAX];
  2460.  
  2461. int check_newline ();
  2462.  
  2463. void
  2464. init_lex ()
  2465. {
  2466.   extern char *malloc ();
  2467.  
  2468.   /* Start it at 0, because check_newline is called at the very beginning
  2469.      and will increment it to 1.  */
  2470.   lineno = 0;
  2471.  
  2472.   maxtoken = 40;
  2473.   token_buffer = malloc (maxtoken + 2);
  2474.   ridpointers[(int) RID_INT] = get_identifier ("int");
  2475.   ridpointers[(int) RID_CHAR] = get_identifier ("char");
  2476.   ridpointers[(int) RID_VOID] = get_identifier ("void");
  2477.   ridpointers[(int) RID_FLOAT] = get_identifier ("float");
  2478.   ridpointers[(int) RID_DOUBLE] = get_identifier ("double");
  2479.   ridpointers[(int) RID_SHORT] = get_identifier ("short");
  2480.   ridpointers[(int) RID_LONG] = get_identifier ("long");
  2481.   ridpointers[(int) RID_UNSIGNED] = get_identifier ("unsigned");
  2482.   ridpointers[(int) RID_SIGNED] = get_identifier ("signed");
  2483.   ridpointers[(int) RID_INLINE] = get_identifier ("inline");
  2484.   ridpointers[(int) RID_CONST] = get_identifier ("const");
  2485.   ridpointers[(int) RID_VOLATILE] = get_identifier ("volatile");
  2486.   ridpointers[(int) RID_AUTO] = get_identifier ("auto");
  2487.   ridpointers[(int) RID_STATIC] = get_identifier ("static");
  2488.   ridpointers[(int) RID_EXTERN] = get_identifier ("extern");
  2489.   ridpointers[(int) RID_TYPEDEF] = get_identifier ("typedef");
  2490.   ridpointers[(int) RID_REGISTER] = get_identifier ("register");
  2491. }
  2492.  
  2493. static void
  2494. reinit_parse_for_function ()
  2495. {
  2496. }
  2497.  
  2498. /* If C is not whitespace, return C.
  2499.    Otherwise skip whitespace and return first nonwhite char read.  */
  2500.  
  2501. static int
  2502. skip_white_space (c)
  2503.      register int c;
  2504. {
  2505.   register int inside;
  2506.  
  2507.   for (;;)
  2508.     {
  2509.       switch (c)
  2510.     {
  2511.     case '/':
  2512.       c = getc (finput);
  2513.       if (c != '*')
  2514.         {
  2515.           ungetc (c, finput);
  2516.           return '/';
  2517.         }
  2518.  
  2519.       c = getc (finput);
  2520.  
  2521.       inside = 1;
  2522.       while (inside)
  2523.         {
  2524.           if (c == '*')
  2525.         {
  2526.           while (c == '*')
  2527.             c = getc (finput);
  2528.  
  2529.           if (c == '/')
  2530.             {
  2531.               inside = 0;
  2532.               c = getc (finput);
  2533.             }
  2534.         }
  2535.           else if (c == '\n')
  2536.         {
  2537.           lineno++;
  2538.           c = getc (finput);
  2539.         }
  2540.           else if (c == EOF)
  2541.         {
  2542.           error ("unterminated comment");
  2543.           break;
  2544.         }
  2545.           else
  2546.         c = getc (finput);
  2547.         }
  2548.  
  2549.       break;
  2550.  
  2551.     case '\n':
  2552.       c = check_newline ();
  2553.       break;
  2554.  
  2555.     case ' ':
  2556.     case '\t':
  2557.     case '\f':
  2558.     case '\r':
  2559.     case '\b':
  2560.       c = getc (finput);
  2561.       break;
  2562.  
  2563.     case '\\':
  2564.       c = getc (finput);
  2565.       if (c == '\n')
  2566.         lineno++;
  2567.       else
  2568.         error ("stray '\\' in program");
  2569.       c = getc (finput);
  2570.       break;
  2571.  
  2572.     default:
  2573.       return (c);
  2574.     }
  2575.     }
  2576. }
  2577.  
  2578.  
  2579.  
  2580. /* Make the token buffer longer, preserving the data in it.
  2581.    P should point to just beyond the last valid character in the old buffer.
  2582.    The value we return is a pointer to the new buffer
  2583.    at a place corresponding to P.  */
  2584.  
  2585. static char *
  2586. extend_token_buffer (p)
  2587.      char *p;
  2588. {
  2589.   int offset = p - token_buffer;
  2590.  
  2591.   maxtoken = maxtoken * 2 + 10;
  2592.   token_buffer = (char *) realloc (token_buffer, maxtoken + 2);
  2593.   if (token_buffer == 0)
  2594.     fatal ("virtual memory exceeded");
  2595.  
  2596.   return token_buffer + offset;
  2597. }
  2598.  
  2599. /* At the beginning of a line, increment the line number
  2600.    and handle a #line directive immediately following.
  2601.    Return first nonwhite char of first non-# line following.  */
  2602.  
  2603. int
  2604. check_newline ()
  2605. {
  2606.   register int c;
  2607.   register int token;
  2608.  
  2609.   while (1)
  2610.     {
  2611.       lineno++;
  2612.  
  2613.       /* Read first nonwhite char on the line.  */
  2614.  
  2615.       c = getc (finput);
  2616.       while (c == ' ' || c == '\t')
  2617.     c = getc (finput);
  2618.  
  2619.       if (c != '#')
  2620.     {
  2621.       /* If not #, return it so caller will use it.  */
  2622.       return c;
  2623.     }
  2624.  
  2625.       /* Read first nonwhite char after the `#'.  */
  2626.  
  2627.       c = getc (finput);
  2628.       while (c == ' ' || c == '\t')
  2629.     c = getc (finput);
  2630.  
  2631.       /* If a letter follows, then if the word here is `line', skip
  2632.      it and ignore it; otherwise, ignore the line, with an error
  2633.      if the word isn't `pragma'.  */
  2634.  
  2635.       if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
  2636.     {
  2637.       if (c == 'p')
  2638.         {
  2639.           if (getc (finput) == 'r'
  2640.           && getc (finput) == 'a'
  2641.           && getc (finput) == 'g'
  2642.           && getc (finput) == 'm'
  2643.           && getc (finput) == 'a'
  2644.           && ((c = getc (finput)) == ' ' || c == '\t'))
  2645.         goto noerror;
  2646.         }
  2647.  
  2648.       else if (c == 'l')
  2649.         {
  2650.           if (getc (finput) == 'i'
  2651.           && getc (finput) == 'n'
  2652.           && getc (finput) == 'e'
  2653.           && ((c = getc (finput)) == ' ' || c == '\t'))
  2654.         goto linenum;
  2655.         }
  2656.  
  2657.       error ("undefined or invalid # directive");
  2658.     noerror:
  2659.  
  2660.       while ((c = getc (finput)) && c != '\n');
  2661.  
  2662.       continue;
  2663.     }
  2664.  
  2665.     linenum:
  2666.       /* Here we have either `#line' or `# <nonletter>'.
  2667.      In either case, it should be a line number; a digit should follow.  */
  2668.  
  2669.       while (c == ' ' || c == '\t')
  2670.     c = getc (finput);
  2671.  
  2672.       /* If the # is the only nonwhite char on the line,
  2673.      just ignore it.  Check the new newline.  */
  2674.       if (c == '\n')
  2675.     continue;
  2676.  
  2677.       /* Something follows the #; read a token.  */
  2678.  
  2679.       ungetc (c, finput);
  2680.       token = yylex ();
  2681.  
  2682.       if (token == CONSTANT
  2683.       && TREE_CODE (yylval.ttype) == INTEGER_CST)
  2684.     {
  2685.       /* subtract one, because it is the following line that
  2686.          gets the specified number */
  2687.  
  2688.       int l = TREE_INT_CST_LOW (yylval.ttype) - 1;
  2689.  
  2690.       /* Is this the last nonwhite stuff on the line?  */
  2691.       c = getc (finput);
  2692.       while (c == ' ' || c == '\t')
  2693.         c = getc (finput);
  2694.       if (c == '\n')
  2695.         {
  2696.           /* No more: store the line number and check following line.  */
  2697.           lineno = l;
  2698.           continue;
  2699.         }
  2700.       ungetc (c, finput);
  2701.  
  2702.       /* More follows: it must be a string constant (filename).  */
  2703.  
  2704.       token = yylex ();
  2705.       if (token != STRING || TREE_CODE (yylval.ttype) != STRING_CST)
  2706.         {
  2707.           error ("invalid #line");
  2708.           return getc (finput);
  2709.         }
  2710.  
  2711.       input_filename
  2712.         = (char *) permalloc (TREE_STRING_LENGTH (yylval.ttype) + 1);
  2713.       strcpy (input_filename, TREE_STRING_POINTER (yylval.ttype));
  2714.       lineno = l;
  2715.  
  2716.       if (main_input_filename == 0)
  2717.         main_input_filename = input_filename;
  2718.     }
  2719.       else
  2720.     error ("invalid #line");
  2721.  
  2722.       /* skip the rest of this line.  */
  2723.       while ((c = getc (finput)) != '\n');
  2724.     }
  2725. }
  2726.  
  2727. #define isalnum(char) ((char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || (char >= '0' && char <= '9'))
  2728. #define isdigit(char) (char >= '0' && char <= '9')
  2729. #define ENDFILE -1  /* token that represents end-of-file */
  2730.  
  2731.  
  2732. static int
  2733. readescape ()
  2734. {
  2735.   register int c = getc (finput);
  2736.   register int count, code;
  2737.  
  2738.   switch (c)
  2739.     {
  2740.     case 'x':
  2741.       code = 0;
  2742.       count = 0;
  2743.       while (1)
  2744.     {
  2745.       c = getc (finput);
  2746.       if (!(c >= 'a' && c <= 'f')
  2747.           && !(c >= 'A' && c <= 'F')
  2748.           && !(c >= '0' && c <= '9'))
  2749.         {
  2750.           ungetc (c, finput);
  2751.           break;
  2752.         }
  2753.       code *= 16;
  2754.       if (c >= 'a' && c <= 'f')
  2755.         code += c - 'a' + 10;
  2756.       if (c >= 'A' && c <= 'F')
  2757.         code += c - 'A' + 10;
  2758.       if (c >= '0' && c <= '9')
  2759.         code += c - '0';
  2760.       count++;
  2761.     }
  2762.       if (count == 0)
  2763.     error ("\\x used with no following hex digits");
  2764.       return code;
  2765.  
  2766.     case '0':  case '1':  case '2':  case '3':  case '4':
  2767.     case '5':  case '6':  case '7':
  2768.       code = 0;
  2769.       count = 0;
  2770.       while ((c <= '7') && (c >= '0') && (count++ < 3))
  2771.     {
  2772.       code = (code * 8) + (c - '0');
  2773.       c = getc (finput);
  2774.     }
  2775.       ungetc (c, finput);
  2776.       return code;
  2777.  
  2778.     case '\\': case '\'': case '"':
  2779.       return c;
  2780.  
  2781.     case '\n':
  2782.       lineno++;
  2783.       return -1;
  2784.  
  2785.     case 'n':
  2786.       return TARGET_NEWLINE;
  2787.  
  2788.     case 't':
  2789.       return TARGET_TAB;
  2790.  
  2791.     case 'r':
  2792.       return TARGET_CR;
  2793.  
  2794.     case 'f':
  2795.       return TARGET_FF;
  2796.  
  2797.     case 'b':
  2798.       return TARGET_BS;
  2799.  
  2800.     case 'a':
  2801.       return TARGET_BELL;
  2802.  
  2803.     case 'v':
  2804.       return TARGET_VT;
  2805.  
  2806.     case 'E':
  2807.       return 033;
  2808.  
  2809.     case '?':
  2810.       return c;
  2811.     }
  2812.   if (c >= 040 && c <= 0177)
  2813.     warning ("unknown escape sequence `\\%c'", c);
  2814.   else
  2815.     warning ("unknown escape sequence: `\\' followed by char code 0x%x", c);
  2816.   return c;
  2817. }
  2818.  
  2819. void
  2820. yyerror (string)
  2821.      char *string;
  2822. {
  2823.   char buf[200];
  2824.  
  2825.   strcpy (buf, string);
  2826.  
  2827.   /* We can't print string and character constants well
  2828.      because the token_buffer contains the result of processing escapes.  */
  2829.   if (token_buffer[0] == 0)
  2830.     strcat (buf, " at end of input");
  2831.   else if (token_buffer[0] == '"')
  2832.     strcat (buf, " before string constant");
  2833.   else if (token_buffer[0] == '\'')
  2834.     strcat (buf, " before character constant");
  2835.   else
  2836.     strcat (buf, " before `%s'");
  2837.  
  2838.   error (buf, token_buffer);
  2839. }
  2840.  
  2841. static int nextchar = -1;
  2842.  
  2843. static int
  2844. yylex ()
  2845. {
  2846.   register int c;
  2847.   register char *p;
  2848.   register int value;
  2849.   int wide_flag = 0;
  2850.  
  2851.   if (nextchar >= 0)
  2852.     c = nextchar, nextchar = -1;
  2853.   else
  2854.     c = getc (finput);
  2855.  
  2856.   /* Effectively do c = skip_white_space (c)
  2857.      but do it faster in the usual cases.  */
  2858.   while (1)
  2859.     switch (c)
  2860.       {
  2861.       case ' ':
  2862.       case '\t':
  2863.       case '\f':
  2864.       case '\r':
  2865.       case '\b':
  2866.     c = getc (finput);
  2867.     break;
  2868.  
  2869.       case '\n':
  2870.       case '/':
  2871.       case '\\':
  2872.     c = skip_white_space (c);
  2873.       default:
  2874.     goto found_nonwhite;
  2875.       }
  2876.  found_nonwhite:
  2877.  
  2878.   token_buffer[0] = c;
  2879.   token_buffer[1] = 0;
  2880.  
  2881. /*  yylloc.first_line = lineno; */
  2882.  
  2883.   switch (c)
  2884.     {
  2885.     case EOF:
  2886.       token_buffer[0] = 0;
  2887.       value = ENDFILE;
  2888.       break;
  2889.  
  2890.     case '$':
  2891.       if (dollars_in_ident)
  2892.     goto letter;
  2893.       return '$';
  2894.  
  2895.     case 'L':
  2896.       /* Capital L may start a wide-string or wide-character constant.  */
  2897.       {
  2898.     register int c = getc (finput);
  2899.     if (c == '\'')
  2900.       {
  2901.         wide_flag = 1;
  2902.         goto char_constant;
  2903.       }
  2904.     if (c == '"')
  2905.       {
  2906.         wide_flag = 1;
  2907.         goto string_constant;
  2908.       }
  2909.     ungetc (c, finput);
  2910.       }
  2911.  
  2912.     case 'A':  case 'B':  case 'C':  case 'D':  case 'E':
  2913.     case 'F':  case 'G':  case 'H':  case 'I':  case 'J':
  2914.     case 'K':          case 'M':  case 'N':  case 'O':
  2915.     case 'P':  case 'Q':  case 'R':  case 'S':  case 'T':
  2916.     case 'U':  case 'V':  case 'W':  case 'X':  case 'Y':
  2917.     case 'Z':
  2918.     case 'a':  case 'b':  case 'c':  case 'd':  case 'e':
  2919.     case 'f':  case 'g':  case 'h':  case 'i':  case 'j':
  2920.     case 'k':  case 'l':  case 'm':  case 'n':  case 'o':
  2921.     case 'p':  case 'q':  case 'r':  case 's':  case 't':
  2922.     case 'u':  case 'v':  case 'w':  case 'x':  case 'y':
  2923.     case 'z':
  2924.     case '_':
  2925.     letter:
  2926.       p = token_buffer;
  2927.       while (isalnum (c) || c == '_' || c == '$')
  2928.     {
  2929.       if (p >= token_buffer + maxtoken)
  2930.         p = extend_token_buffer (p);
  2931.       if (c == '$' && ! dollars_in_ident)
  2932.         break;
  2933.  
  2934.       *p++ = c;
  2935.       c = getc (finput);
  2936.     }
  2937.  
  2938.       *p = 0;
  2939.       nextchar = c;
  2940.  
  2941.       value = IDENTIFIER;
  2942.       yylval.itype = 0;
  2943.  
  2944.       /* Try to recognize a keyword.  */
  2945.  
  2946.       if (p - token_buffer <= MAXRESERVED)
  2947.     {
  2948.       register int lim = frw [p - token_buffer + 1];
  2949.       register int i = frw[p - token_buffer];
  2950.       register struct resword *p = &reswords[i];
  2951.  
  2952.       for (; i < lim; i++, p++)
  2953.         if (p->name[0] == token_buffer[0]
  2954.         && !strcmp (p->name, token_buffer))
  2955.           {
  2956.         if (p->rid)
  2957.           yylval.ttype = ridpointers[(int) p->rid];
  2958.         if ((! flag_no_asm
  2959.              || ((int) p->token != ASM
  2960.              && (int) p->token != TYPEOF
  2961.              && strcmp (p->name, "inline")))
  2962.             /* -ftraditional means don't recognize
  2963.                typeof, const, volatile, signed or inline.  */
  2964.             && (! flag_traditional
  2965.             || ((int) p->token != TYPE_QUAL
  2966.                 && (int) p->token != TYPEOF
  2967.                 && strcmp (p->name, "signed")
  2968.                 && strcmp (p->name, "inline"))))
  2969.           value = (int) p->token;
  2970.         break;
  2971.           }
  2972.     }
  2973.  
  2974.       /* If we did not find a keyword, look for an identifier
  2975.      (or a typename).  */
  2976.  
  2977.       if (value == IDENTIFIER)
  2978.     {
  2979.           yylval.ttype = get_identifier (token_buffer);
  2980.       lastiddecl = lookup_name (yylval.ttype);
  2981.  
  2982.       if (lastiddecl != 0 && TREE_CODE (lastiddecl) == TYPE_DECL)
  2983.         value = TYPENAME;
  2984.     }
  2985.  
  2986.       break;
  2987.  
  2988.     case '0':  case '1':  case '2':  case '3':  case '4':
  2989.     case '5':  case '6':  case '7':  case '8':  case '9':
  2990.     case '.':
  2991.       {
  2992.     int base = 10;
  2993.     int count = 0;
  2994.     int largest_digit = 0;
  2995.     int numdigits = 0;
  2996.     /* for multi-precision arithmetic,
  2997.        we store only 8 live bits in each short,
  2998.        giving us 64 bits of reliable precision */
  2999.     short shorts[8];
  3000.     int floatflag = 0;  /* Set 1 if we learn this is a floating constant */
  3001.  
  3002.     for (count = 0; count < 8; count++)
  3003.       shorts[count] = 0;
  3004.  
  3005.     p = token_buffer;
  3006.     *p++ = c;
  3007.  
  3008.     if (c == '0')
  3009.       {
  3010.         *p++ = (c = getc (finput));
  3011.         if ((c == 'x') || (c == 'X'))
  3012.           {
  3013.         base = 16;
  3014.         *p++ = (c = getc (finput));
  3015.           }
  3016.         else
  3017.           {
  3018.         base = 8;
  3019.         numdigits++;
  3020.           }
  3021.       }
  3022.  
  3023.     /* Read all the digits-and-decimal-points.  */
  3024.  
  3025.     while (c == '.'
  3026.            || (isalnum (c) && (c != 'l') && (c != 'L')
  3027.            && (c != 'u') && (c != 'U')
  3028.            && (!floatflag || ((c != 'f') && (c != 'F')))))
  3029.       {
  3030.         if (c == '.')
  3031.           {
  3032.         if (base == 16)
  3033.           error ("floating constant may not be in radix 16");
  3034.         floatflag = 1;
  3035.         base = 10;
  3036.         *p++ = c = getc (finput);
  3037.         /* Accept '.' as the start of a floating-point number
  3038.            only when it is followed by a digit.
  3039.            Otherwise, unread the following non-digit
  3040.            and use the '.' as a structural token.  */
  3041.         if (p == token_buffer + 2 && !isdigit (c))
  3042.           {
  3043.             if (c == '.')
  3044.               {
  3045.             c = getc (finput);
  3046.             if (c == '.')
  3047.               {
  3048.                 *p++ = c;
  3049.                 *p = 0;
  3050.                 return ELLIPSIS;
  3051.               }
  3052.             error ("parse error at `..'");
  3053.               }
  3054.             ungetc (c, finput);
  3055.             token_buffer[1] = 0;
  3056.             value = '.';
  3057.             goto done;
  3058.           }
  3059.           }
  3060.         else
  3061.           {
  3062.         /* It is not a decimal point.
  3063.            It should be a digit (perhaps a hex digit).  */
  3064.  
  3065.         if (isdigit (c))
  3066.           {
  3067.             c = c - '0';
  3068.           }
  3069.         else if (base <= 10)
  3070.           {
  3071.             if ((c&~040) == 'E')
  3072.               {
  3073.             base = 10;
  3074.             floatflag = 1;
  3075.             break;   /* start of exponent */
  3076.               }
  3077.             error ("nondigits in number and not hexadecimal");
  3078.             c = 0;
  3079.           }
  3080.         else if (c >= 'a')
  3081.           {
  3082.             c = c - 'a' + 10;
  3083.           }
  3084.         else
  3085.           {
  3086.             c = c - 'A' + 10;
  3087.           }
  3088.         if (c >= largest_digit)
  3089.           largest_digit = c;
  3090.         numdigits++;
  3091.         
  3092.         for (count = 0; count < 8; count++)
  3093.           {
  3094.             (shorts[count] *= base);
  3095.             if (count)
  3096.               {
  3097.             shorts[count] += (shorts[count-1] >> 8);
  3098.             shorts[count-1] &= (1<<8)-1;
  3099.               }
  3100.             else shorts[0] += c;
  3101.           }
  3102.     
  3103.         if (p >= token_buffer + maxtoken - 3)
  3104.           p = extend_token_buffer (p);
  3105.         *p++ = (c = getc (finput));
  3106.           }
  3107.       }
  3108.  
  3109.     if (numdigits == 0)
  3110.       error ("numeric constant with no digits");
  3111.  
  3112.     if (largest_digit >= base)
  3113.       error ("numeric constant contains digits beyond the radix");
  3114.  
  3115.     /* Remove terminating char from the token buffer and delimit the string */
  3116.     *--p = 0;
  3117.  
  3118.     if (floatflag)
  3119.       {
  3120.         tree type = double_type_node;
  3121.         char f_seen = 0;
  3122.         char l_seen = 0;
  3123.         double value;
  3124.  
  3125.         /* Read explicit exponent if any, and put it in tokenbuf.  */
  3126.  
  3127.         if ((c == 'e') || (c == 'E'))
  3128.           {
  3129.         if (p >= token_buffer + maxtoken - 3)
  3130.           p = extend_token_buffer (p);
  3131.         *p++ = c;
  3132.         c = getc (finput);
  3133.         if ((c == '+') || (c == '-'))
  3134.           {
  3135.             *p++ = c;
  3136.             c = getc (finput);
  3137.           }
  3138.         if (! isdigit (c))
  3139.           error ("floating constant exponent has no digits");
  3140.             while (isdigit (c))
  3141.           {
  3142.             if (p >= token_buffer + maxtoken - 3)
  3143.               p = extend_token_buffer (p);
  3144.             *p++ = c;
  3145.             c = getc (finput);
  3146.           }
  3147.           }
  3148.  
  3149.         *p = 0;
  3150.         errno = 0;
  3151.         value = atof (token_buffer);
  3152. #ifdef ERANGE
  3153.         if (errno == ERANGE)
  3154.           error ("floating point number exceeds range of `double'");
  3155. #endif
  3156.  
  3157.         /* Read the suffixes to choose a data type.  */
  3158.         while (1)
  3159.           {
  3160.         if (c == 'f' || c == 'F')
  3161.           {
  3162.             if (f_seen)
  3163.               error ("two `f's in floating constant");
  3164.             f_seen = 1;
  3165.             type = float_type_node;
  3166.           }
  3167.         else if (c == 'l' || c == 'L')
  3168.           {
  3169.             if (l_seen)
  3170.               error ("two `l's in floating constant");
  3171.             l_seen = 1;
  3172.             type = long_double_type_node;
  3173.           }
  3174.         else
  3175.           {
  3176.             if (isalnum (c))
  3177.               {
  3178.             error ("garbage at end of number");
  3179.             while (isalnum (c))
  3180.               {
  3181.                 if (p >= token_buffer + maxtoken - 3)
  3182.                   p = extend_token_buffer (p);
  3183.                 *p++ = c;
  3184.                 c = getc (finput);
  3185.               }
  3186.               }
  3187.             break;
  3188.           }
  3189.         if (p >= token_buffer + maxtoken - 3)
  3190.           p = extend_token_buffer (p);
  3191.         *p++ = c;
  3192.         c = getc (finput);
  3193.           }
  3194.  
  3195.         /* Create a node with determined type and value.  */
  3196.         yylval.ttype = build_real (type, value);
  3197.  
  3198.         ungetc (c, finput);
  3199.         *p = 0;
  3200.       }
  3201.     else
  3202.       {
  3203.         tree type;
  3204.         int spec_unsigned = 0;
  3205.         int spec_long = 0;
  3206.  
  3207.         while (1)
  3208.           {
  3209.         if (c == 'u' || c == 'U')
  3210.           {
  3211.             if (spec_unsigned)
  3212.               error ("two `u's in integer constant");
  3213.             spec_unsigned = 1;
  3214.           }
  3215.         else if (c == 'l' || c == 'L')
  3216.           {
  3217.             if (spec_long)
  3218.               error ("two `l's in integer constant");
  3219.             spec_long = 1;
  3220.           }
  3221.         else
  3222.           {
  3223.             if (isalnum (c))
  3224.               {
  3225.             error ("garbage at end of number");
  3226.             while (isalnum (c))
  3227.               {
  3228.                 if (p >= token_buffer + maxtoken - 3)
  3229.                   p = extend_token_buffer (p);
  3230.                 *p++ = c;
  3231.                 c = getc (finput);
  3232.               }
  3233.               }
  3234.             break;
  3235.           }
  3236.         if (p >= token_buffer + maxtoken - 3)
  3237.           p = extend_token_buffer (p);
  3238.         *p++ = c;
  3239.         c = getc (finput);
  3240.           }
  3241.  
  3242.         ungetc (c, finput);
  3243.  
  3244.         if (shorts[7] | shorts[6] | shorts[5] | shorts[4])
  3245.           warning ("integer constant out of range");
  3246.  
  3247.         /* This is simplified by the fact that our constant
  3248.            is always positive.  */
  3249.         yylval.ttype
  3250.           = build_int_2 ((shorts[3]<<24) + (shorts[2]<<16) + (shorts[1]<<8) + shorts[0],
  3251.                  0);
  3252.     
  3253.         if (!spec_long && !spec_unsigned
  3254.         && int_fits_type_p (yylval.ttype, integer_type_node))
  3255.           type = integer_type_node;
  3256.  
  3257.         else if (!spec_long && base != 10
  3258.         && int_fits_type_p (yylval.ttype, unsigned_type_node))
  3259.           type = unsigned_type_node;
  3260.  
  3261.         else if (!spec_unsigned
  3262.         && int_fits_type_p (yylval.ttype, long_integer_type_node))
  3263.           type = long_integer_type_node;
  3264.  
  3265.         else
  3266.           {
  3267.         type = long_unsigned_type_node;
  3268.         if (! int_fits_type_p (yylval.ttype, long_unsigned_type_node))
  3269.           warning ("integer constant out of range");
  3270.           }
  3271.         TREE_TYPE (yylval.ttype) = type;
  3272.       }
  3273.  
  3274.     value = CONSTANT; break;
  3275.       }
  3276.  
  3277.     case '\'':
  3278.     char_constant:
  3279.       c = getc (finput);
  3280.       {
  3281.     register int code = 0;
  3282.  
  3283.       tryagain:
  3284.  
  3285.     if (c == '\\')
  3286.       {
  3287.         c = readescape ();
  3288.         if (c < 0)
  3289.           goto tryagain;
  3290.       }
  3291.     else if (c == '\n')
  3292.       {
  3293.         if (pedantic)
  3294.           warning ("ANSI C forbids newline in character constant");
  3295.         lineno++;
  3296.       }
  3297.  
  3298.     code = c;
  3299.     token_buffer[1] = c;
  3300.     token_buffer[2] = '\'';
  3301.     token_buffer[3] = 0;
  3302.  
  3303.     c = getc (finput);
  3304.     if (c != '\'')
  3305.       error ("malformatted character constant");
  3306.  
  3307.     /* If char type is signed, sign-extend the constant.  */
  3308.     if (TREE_UNSIGNED (char_type_node)
  3309.         || ((code >> (BITS_PER_UNIT - 1)) & 1) == 0)
  3310.       yylval.ttype = build_int_2 (code & ((1 << BITS_PER_UNIT) - 1), 0);
  3311.     else
  3312.       yylval.ttype = build_int_2 (code | ((-1) << BITS_PER_UNIT), -1);
  3313.  
  3314.     TREE_TYPE (yylval.ttype) = integer_type_node;
  3315.     value = CONSTANT; break;
  3316.       }
  3317.  
  3318.     case '"':
  3319.     string_constant:
  3320.       {
  3321.     c = getc (finput);
  3322.     p = token_buffer + 1;
  3323.  
  3324.     while (c != '"')
  3325.       {
  3326.         if (c == '\\')
  3327.           {
  3328.         c = readescape ();
  3329.         if (c < 0)
  3330.           goto skipnewline;
  3331.           }
  3332.         else if (c == '\n')
  3333.           {
  3334.         if (pedantic)
  3335.           warning ("ANSI C forbids newline in string constant");
  3336.         lineno++;
  3337.           }
  3338.  
  3339.         if (p == token_buffer + maxtoken)
  3340.           p = extend_token_buffer (p);
  3341.         *p++ = c;
  3342.  
  3343.       skipnewline:
  3344.         c = getc (finput);
  3345.       }
  3346.  
  3347.     *p = 0;
  3348.  
  3349.     if (wide_flag)
  3350.       {
  3351.         /* If this is a L"..." wide-string, convert each char
  3352.            to an int, making a vector of ints.  */
  3353.         int *widebuf = (int *) alloca (p - token_buffer);
  3354.         char *p1 = token_buffer + 1;
  3355.         for (; p1 == p; p1++)
  3356.           widebuf[p1 - token_buffer - 1] = *p1;
  3357.         yylval.ttype = build_string ((p - token_buffer) * sizeof (int),
  3358.                      widebuf);
  3359.         TREE_TYPE (yylval.ttype) = int_array_type_node;
  3360.       }
  3361.     else
  3362.       {
  3363.         yylval.ttype = build_string (p - token_buffer, token_buffer + 1);
  3364.         TREE_TYPE (yylval.ttype) = char_array_type_node;
  3365.       }
  3366.  
  3367.     *p++ = '"';
  3368.     *p = 0;
  3369.  
  3370.     value = STRING; break;
  3371.       }
  3372.       
  3373.     case '+':
  3374.     case '-':
  3375.     case '&':
  3376.     case '|':
  3377.     case '<':
  3378.     case '>':
  3379.     case '*':
  3380.     case '/':
  3381.     case '%':
  3382.     case '^':
  3383.     case '!':
  3384.     case '=':
  3385.       {
  3386.     register int c1;
  3387.  
  3388.       combine:
  3389.  
  3390.     switch (c)
  3391.       {
  3392.       case '+':
  3393.         yylval.code = PLUS_EXPR; break;
  3394.       case '-':
  3395.         yylval.code = MINUS_EXPR; break;
  3396.       case '&':
  3397.         yylval.code = BIT_AND_EXPR; break;
  3398.       case '|':
  3399.         yylval.code = BIT_IOR_EXPR; break;
  3400.       case '*':
  3401.         yylval.code = MULT_EXPR; break;
  3402.       case '/':
  3403.         yylval.code = TRUNC_DIV_EXPR; break;
  3404.       case '%':
  3405.         yylval.code = TRUNC_MOD_EXPR; break;
  3406.       case '^':
  3407.         yylval.code = BIT_XOR_EXPR; break;
  3408.       case LSHIFT:
  3409.         yylval.code = LSHIFT_EXPR; break;
  3410.       case RSHIFT:
  3411.         yylval.code = RSHIFT_EXPR; break;
  3412.       case '<':
  3413.         yylval.code = LT_EXPR; break;
  3414.       case '>':
  3415.         yylval.code = GT_EXPR; break;
  3416.       }    
  3417.  
  3418.     token_buffer[1] = c1 = getc (finput);
  3419.     token_buffer[2] = 0;
  3420.  
  3421.     if (c1 == '=')
  3422.       {
  3423.         switch (c)
  3424.           {
  3425.           case '<':
  3426.         value = ARITHCOMPARE; yylval.code = LE_EXPR; goto done;
  3427.           case '>':
  3428.         value = ARITHCOMPARE; yylval.code = GE_EXPR; goto done;
  3429.           case '!':
  3430.         value = EQCOMPARE; yylval.code = NE_EXPR; goto done;
  3431.           case '=':
  3432.         value = EQCOMPARE; yylval.code = EQ_EXPR; goto done;
  3433.           }    
  3434.         value = ASSIGN; goto done;
  3435.       }
  3436.     else if (c == c1)
  3437.       switch (c)
  3438.         {
  3439.         case '+':
  3440.           value = PLUSPLUS; goto done;
  3441.         case '-':
  3442.           value = MINUSMINUS; goto done;
  3443.         case '&':
  3444.           value = ANDAND; goto done;
  3445.         case '|':
  3446.           value = OROR; goto done;
  3447.         case '<':
  3448.           c = LSHIFT;
  3449.           goto combine;
  3450.         case '>':
  3451.           c = RSHIFT;
  3452.           goto combine;
  3453.         }
  3454.     else if ((c == '-') && (c1 == '>'))
  3455.       { value = POINTSAT; goto done; }
  3456.     ungetc (c1, finput);
  3457.     token_buffer[1] = 0;
  3458.  
  3459.     if ((c == '<') || (c == '>'))
  3460.       value = ARITHCOMPARE;
  3461.     else value = c;
  3462.     goto done;
  3463.       }
  3464.  
  3465.     default:
  3466.       value = c;
  3467.     }
  3468.  
  3469. done:
  3470. /*  yylloc.last_line = lineno; */
  3471.  
  3472.   return value;
  3473. }
  3474.