parse.tab.c 107 KB

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