0175-Revert-scripts-dtc-Add-overlay-support.patch 143 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390
  1. From 042eed4d005cd09ee1322285c0c1e92c93b07795 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Mon, 10 Aug 2015 09:44:59 +0100
  4. Subject: [PATCH] Revert "scripts/dtc: Add overlay support"
  5. This reverts commit fa6d1755c2fdd9451077d8248e3804f0619f19b9.
  6. ---
  7. scripts/dtc/checks.c | 119 +--
  8. scripts/dtc/dtc-lexer.l | 5 -
  9. scripts/dtc/dtc-lexer.lex.c_shipped | 490 +++++----
  10. scripts/dtc/dtc-parser.tab.c_shipped | 1896 +++++++++++++++-------------------
  11. scripts/dtc/dtc-parser.tab.h_shipped | 107 +-
  12. scripts/dtc/dtc-parser.y | 23 +-
  13. scripts/dtc/dtc.c | 9 +-
  14. scripts/dtc/dtc.h | 38 -
  15. scripts/dtc/flattree.c | 141 +--
  16. scripts/dtc/version_gen.h | 2 +-
  17. 10 files changed, 1145 insertions(+), 1685 deletions(-)
  18. --- a/scripts/dtc/checks.c
  19. +++ b/scripts/dtc/checks.c
  20. @@ -458,91 +458,21 @@ static void fixup_phandle_references(str
  21. struct node *node, struct property *prop)
  22. {
  23. struct marker *m = prop->val.markers;
  24. - struct fixup *f, **fp;
  25. - struct fixup_entry *fe, **fep;
  26. struct node *refnode;
  27. cell_t phandle;
  28. - int has_phandle_refs;
  29. -
  30. - has_phandle_refs = 0;
  31. - for_each_marker_of_type(m, REF_PHANDLE) {
  32. - has_phandle_refs = 1;
  33. - break;
  34. - }
  35. -
  36. - if (!has_phandle_refs)
  37. - return;
  38. for_each_marker_of_type(m, REF_PHANDLE) {
  39. assert(m->offset + sizeof(cell_t) <= prop->val.len);
  40. refnode = get_node_by_ref(dt, m->ref);
  41. - if (!refnode && !symbol_fixup_support) {
  42. + if (! refnode) {
  43. FAIL(c, "Reference to non-existent node or label \"%s\"\n",
  44. - m->ref);
  45. + m->ref);
  46. continue;
  47. }
  48. - if (!refnode) {
  49. - /* allocate fixup entry */
  50. - fe = xmalloc(sizeof(*fe));
  51. -
  52. - fe->node = node;
  53. - fe->prop = prop;
  54. - fe->offset = m->offset;
  55. - fe->next = NULL;
  56. -
  57. - /* search for an already existing fixup */
  58. - for_each_fixup(dt, f)
  59. - if (strcmp(f->ref, m->ref) == 0)
  60. - break;
  61. -
  62. - /* no fixup found, add new */
  63. - if (f == NULL) {
  64. - f = xmalloc(sizeof(*f));
  65. - f->ref = m->ref;
  66. - f->entries = NULL;
  67. - f->next = NULL;
  68. -
  69. - /* add it to the tree */
  70. - fp = &dt->fixups;
  71. - while (*fp)
  72. - fp = &(*fp)->next;
  73. - *fp = f;
  74. - }
  75. -
  76. - /* and now append fixup entry */
  77. - fep = &f->entries;
  78. - while (*fep)
  79. - fep = &(*fep)->next;
  80. - *fep = fe;
  81. -
  82. - /* mark the entry as unresolved */
  83. - phandle = 0xdeadbeef;
  84. - } else {
  85. - phandle = get_node_phandle(dt, refnode);
  86. -
  87. - /* if it's a plugin, we need to record it */
  88. - if (symbol_fixup_support && dt->is_plugin) {
  89. -
  90. - /* allocate a new local fixup entry */
  91. - fe = xmalloc(sizeof(*fe));
  92. -
  93. - fe->node = node;
  94. - fe->prop = prop;
  95. - fe->offset = m->offset;
  96. - fe->next = NULL;
  97. -
  98. - /* append it to the local fixups */
  99. - fep = &dt->local_fixups;
  100. - while (*fep)
  101. - fep = &(*fep)->next;
  102. - *fep = fe;
  103. - }
  104. - }
  105. -
  106. - *((cell_t *)(prop->val.val + m->offset)) =
  107. - cpu_to_fdt32(phandle);
  108. + phandle = get_node_phandle(dt, refnode);
  109. + *((cell_t *)(prop->val.val + m->offset)) = cpu_to_fdt32(phandle);
  110. }
  111. }
  112. ERROR(phandle_references, NULL, NULL, fixup_phandle_references, NULL,
  113. @@ -722,45 +652,6 @@ static void check_obsolete_chosen_interr
  114. }
  115. TREE_WARNING(obsolete_chosen_interrupt_controller, NULL);
  116. -static void check_auto_label_phandles(struct check *c, struct node *dt,
  117. - struct node *node)
  118. -{
  119. - struct label *l;
  120. - struct symbol *s, **sp;
  121. - int has_label;
  122. -
  123. - if (!symbol_fixup_support)
  124. - return;
  125. -
  126. - has_label = 0;
  127. - for_each_label(node->labels, l) {
  128. - has_label = 1;
  129. - break;
  130. - }
  131. -
  132. - if (!has_label)
  133. - return;
  134. -
  135. - /* force allocation of a phandle for this node */
  136. - (void)get_node_phandle(dt, node);
  137. -
  138. - /* add the symbol */
  139. - for_each_label(node->labels, l) {
  140. -
  141. - s = xmalloc(sizeof(*s));
  142. - s->label = l;
  143. - s->node = node;
  144. - s->next = NULL;
  145. -
  146. - /* add it to the symbols list */
  147. - sp = &dt->symbols;
  148. - while (*sp)
  149. - sp = &((*sp)->next);
  150. - *sp = s;
  151. - }
  152. -}
  153. -NODE_WARNING(auto_label_phandles, NULL);
  154. -
  155. static struct check *check_table[] = {
  156. &duplicate_node_names, &duplicate_property_names,
  157. &node_name_chars, &node_name_format, &property_name_chars,
  158. @@ -779,8 +670,6 @@ static struct check *check_table[] = {
  159. &avoid_default_addr_size,
  160. &obsolete_chosen_interrupt_controller,
  161. - &auto_label_phandles,
  162. -
  163. &always_fail,
  164. };
  165. --- a/scripts/dtc/dtc-lexer.l
  166. +++ b/scripts/dtc/dtc-lexer.l
  167. @@ -113,11 +113,6 @@ static void lexical_error(const char *fm
  168. return DT_V1;
  169. }
  170. -<*>"/plugin/" {
  171. - DPRINT("Keyword: /plugin/\n");
  172. - return DT_PLUGIN;
  173. - }
  174. -
  175. <*>"/memreserve/" {
  176. DPRINT("Keyword: /memreserve/\n");
  177. BEGIN_DEFAULT();
  178. --- a/scripts/dtc/dtc-lexer.lex.c_shipped
  179. +++ b/scripts/dtc/dtc-lexer.lex.c_shipped
  180. @@ -9,7 +9,7 @@
  181. #define FLEX_SCANNER
  182. #define YY_FLEX_MAJOR_VERSION 2
  183. #define YY_FLEX_MINOR_VERSION 5
  184. -#define YY_FLEX_SUBMINOR_VERSION 35
  185. +#define YY_FLEX_SUBMINOR_VERSION 39
  186. #if YY_FLEX_SUBMINOR_VERSION > 0
  187. #define FLEX_BETA
  188. #endif
  189. @@ -162,7 +162,12 @@ typedef unsigned int flex_uint32_t;
  190. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  191. #endif
  192. -extern int yyleng;
  193. +#ifndef YY_TYPEDEF_YY_SIZE_T
  194. +#define YY_TYPEDEF_YY_SIZE_T
  195. +typedef size_t yy_size_t;
  196. +#endif
  197. +
  198. +extern yy_size_t yyleng;
  199. extern FILE *yyin, *yyout;
  200. @@ -171,6 +176,7 @@ extern FILE *yyin, *yyout;
  201. #define EOB_ACT_LAST_MATCH 2
  202. #define YY_LESS_LINENO(n)
  203. + #define YY_LINENO_REWIND_TO(ptr)
  204. /* Return all but the first "n" matched characters back to the input stream. */
  205. #define yyless(n) \
  206. @@ -188,11 +194,6 @@ extern FILE *yyin, *yyout;
  207. #define unput(c) yyunput( c, (yytext_ptr) )
  208. -#ifndef YY_TYPEDEF_YY_SIZE_T
  209. -#define YY_TYPEDEF_YY_SIZE_T
  210. -typedef size_t yy_size_t;
  211. -#endif
  212. -
  213. #ifndef YY_STRUCT_YY_BUFFER_STATE
  214. #define YY_STRUCT_YY_BUFFER_STATE
  215. struct yy_buffer_state
  216. @@ -210,7 +211,7 @@ struct yy_buffer_state
  217. /* Number of characters read into yy_ch_buf, not including EOB
  218. * characters.
  219. */
  220. - int yy_n_chars;
  221. + yy_size_t yy_n_chars;
  222. /* Whether we "own" the buffer - i.e., we know we created it,
  223. * and can realloc() it to grow it, and should free() it to
  224. @@ -280,8 +281,8 @@ static YY_BUFFER_STATE * yy_buffer_stack
  225. /* yy_hold_char holds the character lost when yytext is formed. */
  226. static char yy_hold_char;
  227. -static int yy_n_chars; /* number of characters read into yy_ch_buf */
  228. -int yyleng;
  229. +static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
  230. +yy_size_t yyleng;
  231. /* Points to current character in buffer. */
  232. static char *yy_c_buf_p = (char *) 0;
  233. @@ -309,7 +310,7 @@ static void yy_init_buffer (YY_BUFFER_ST
  234. YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
  235. YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
  236. -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
  237. +YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
  238. void *yyalloc (yy_size_t );
  239. void *yyrealloc (void *,yy_size_t );
  240. @@ -341,7 +342,7 @@ void yyfree (void * );
  241. /* Begin user sect3 */
  242. -#define yywrap(n) 1
  243. +#define yywrap() 1
  244. #define YY_SKIP_YYWRAP
  245. typedef unsigned char YY_CHAR;
  246. @@ -372,8 +373,8 @@ static void yy_fatal_error (yyconst char
  247. *yy_cp = '\0'; \
  248. (yy_c_buf_p) = yy_cp;
  249. -#define YY_NUM_RULES 31
  250. -#define YY_END_OF_BUFFER 32
  251. +#define YY_NUM_RULES 30
  252. +#define YY_END_OF_BUFFER 31
  253. /* This struct is not used in this scanner,
  254. but its presence is necessary. */
  255. struct yy_trans_info
  256. @@ -381,26 +382,25 @@ struct yy_trans_info
  257. flex_int32_t yy_verify;
  258. flex_int32_t yy_nxt;
  259. };
  260. -static yyconst flex_int16_t yy_accept[166] =
  261. +static yyconst flex_int16_t yy_accept[159] =
  262. { 0,
  263. - 0, 0, 0, 0, 0, 0, 0, 0, 32, 30,
  264. - 19, 19, 30, 30, 30, 30, 30, 30, 30, 30,
  265. - 30, 30, 30, 30, 30, 30, 16, 17, 17, 30,
  266. - 17, 11, 11, 19, 27, 0, 3, 0, 28, 13,
  267. - 0, 0, 12, 0, 0, 0, 0, 0, 0, 0,
  268. - 0, 22, 24, 26, 25, 23, 0, 10, 29, 0,
  269. - 0, 0, 15, 15, 17, 17, 17, 11, 11, 11,
  270. - 0, 13, 0, 12, 0, 0, 0, 21, 0, 0,
  271. - 0, 0, 0, 0, 0, 0, 0, 17, 11, 11,
  272. - 11, 0, 14, 20, 0, 0, 0, 0, 0, 0,
  273. -
  274. - 0, 0, 0, 0, 17, 0, 0, 0, 0, 0,
  275. - 0, 0, 0, 0, 0, 17, 7, 0, 0, 0,
  276. - 0, 0, 0, 0, 2, 0, 0, 0, 0, 0,
  277. - 0, 0, 0, 0, 4, 18, 0, 0, 5, 2,
  278. - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  279. - 0, 0, 1, 0, 0, 0, 0, 6, 9, 0,
  280. - 0, 0, 0, 8, 0
  281. + 0, 0, 0, 0, 0, 0, 0, 0, 31, 29,
  282. + 18, 18, 29, 29, 29, 29, 29, 29, 29, 29,
  283. + 29, 29, 29, 29, 29, 29, 15, 16, 16, 29,
  284. + 16, 10, 10, 18, 26, 0, 3, 0, 27, 12,
  285. + 0, 0, 11, 0, 0, 0, 0, 0, 0, 0,
  286. + 21, 23, 25, 24, 22, 0, 9, 28, 0, 0,
  287. + 0, 14, 14, 16, 16, 16, 10, 10, 10, 0,
  288. + 12, 0, 11, 0, 0, 0, 20, 0, 0, 0,
  289. + 0, 0, 0, 0, 0, 16, 10, 10, 10, 0,
  290. + 13, 19, 0, 0, 0, 0, 0, 0, 0, 0,
  291. +
  292. + 0, 16, 0, 0, 0, 0, 0, 0, 0, 0,
  293. + 0, 16, 6, 0, 0, 0, 0, 0, 0, 2,
  294. + 0, 0, 0, 0, 0, 0, 0, 0, 4, 17,
  295. + 0, 0, 2, 0, 0, 0, 0, 0, 0, 0,
  296. + 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
  297. + 5, 8, 0, 0, 0, 0, 7, 0
  298. } ;
  299. static yyconst flex_int32_t yy_ec[256] =
  300. @@ -416,9 +416,9 @@ static yyconst flex_int32_t yy_ec[256] =
  301. 22, 22, 22, 22, 24, 22, 22, 25, 22, 22,
  302. 1, 26, 27, 1, 22, 1, 21, 28, 29, 30,
  303. - 31, 21, 32, 22, 33, 22, 22, 34, 35, 36,
  304. - 37, 38, 22, 39, 40, 41, 42, 43, 22, 25,
  305. - 44, 22, 45, 46, 47, 1, 1, 1, 1, 1,
  306. + 31, 21, 22, 22, 32, 22, 22, 33, 34, 35,
  307. + 36, 37, 22, 38, 39, 40, 41, 42, 22, 25,
  308. + 43, 22, 44, 45, 46, 1, 1, 1, 1, 1,
  309. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  310. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  311. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  312. @@ -435,165 +435,163 @@ static yyconst flex_int32_t yy_ec[256] =
  313. 1, 1, 1, 1, 1
  314. } ;
  315. -static yyconst flex_int32_t yy_meta[48] =
  316. +static yyconst flex_int32_t yy_meta[47] =
  317. { 0,
  318. 1, 1, 1, 1, 1, 1, 2, 3, 1, 2,
  319. 2, 2, 4, 5, 5, 5, 6, 1, 1, 1,
  320. 7, 8, 8, 8, 8, 1, 1, 7, 7, 7,
  321. 7, 8, 8, 8, 8, 8, 8, 8, 8, 8,
  322. - 8, 8, 8, 8, 3, 1, 4
  323. + 8, 8, 8, 3, 1, 4
  324. } ;
  325. -static yyconst flex_int16_t yy_base[180] =
  326. +static yyconst flex_int16_t yy_base[173] =
  327. { 0,
  328. - 0, 393, 35, 392, 66, 391, 38, 107, 397, 401,
  329. - 55, 113, 377, 112, 111, 111, 114, 42, 376, 106,
  330. - 377, 347, 126, 120, 0, 147, 401, 0, 124, 0,
  331. - 137, 158, 170, 163, 401, 153, 401, 389, 401, 0,
  332. - 378, 120, 401, 131, 380, 386, 355, 139, 351, 355,
  333. - 351, 401, 401, 401, 401, 401, 367, 401, 401, 185,
  334. - 350, 346, 401, 364, 0, 185, 347, 189, 356, 355,
  335. - 0, 0, 330, 180, 366, 141, 372, 361, 332, 338,
  336. - 331, 341, 334, 326, 205, 331, 337, 329, 401, 341,
  337. - 167, 316, 401, 349, 348, 320, 328, 346, 180, 318,
  338. -
  339. - 324, 209, 324, 320, 322, 342, 338, 309, 306, 315,
  340. - 305, 315, 312, 192, 342, 341, 401, 293, 306, 282,
  341. - 268, 252, 255, 203, 285, 282, 272, 268, 252, 233,
  342. - 232, 239, 208, 107, 401, 401, 238, 211, 401, 211,
  343. - 212, 208, 228, 203, 215, 207, 233, 222, 212, 211,
  344. - 203, 227, 401, 237, 225, 204, 185, 401, 401, 149,
  345. - 128, 88, 42, 401, 401, 253, 259, 267, 271, 275,
  346. - 281, 288, 292, 300, 308, 312, 318, 326, 334
  347. + 0, 383, 34, 382, 65, 381, 37, 105, 387, 391,
  348. + 54, 111, 367, 110, 109, 109, 112, 41, 366, 104,
  349. + 367, 338, 124, 117, 0, 144, 391, 0, 121, 0,
  350. + 135, 155, 140, 179, 391, 160, 391, 379, 391, 0,
  351. + 368, 141, 391, 167, 370, 376, 346, 103, 342, 345,
  352. + 391, 391, 391, 391, 391, 358, 391, 391, 175, 342,
  353. + 338, 391, 355, 0, 185, 339, 184, 347, 346, 0,
  354. + 0, 322, 175, 357, 175, 363, 352, 324, 330, 323,
  355. + 332, 326, 201, 324, 329, 322, 391, 333, 181, 309,
  356. + 391, 341, 340, 313, 320, 338, 178, 311, 146, 317,
  357. +
  358. + 314, 315, 335, 331, 303, 300, 309, 299, 308, 188,
  359. + 336, 335, 391, 305, 320, 281, 283, 271, 203, 288,
  360. + 281, 271, 266, 264, 245, 242, 208, 104, 391, 391,
  361. + 244, 218, 204, 219, 206, 224, 201, 212, 204, 229,
  362. + 215, 208, 207, 200, 219, 391, 233, 221, 200, 181,
  363. + 391, 391, 149, 122, 86, 41, 391, 391, 245, 251,
  364. + 259, 263, 267, 273, 280, 284, 292, 300, 304, 310,
  365. + 318, 326
  366. } ;
  367. -static yyconst flex_int16_t yy_def[180] =
  368. +static yyconst flex_int16_t yy_def[173] =
  369. { 0,
  370. - 165, 1, 1, 3, 165, 5, 1, 1, 165, 165,
  371. - 165, 165, 165, 166, 167, 168, 165, 165, 165, 165,
  372. - 169, 165, 165, 165, 170, 169, 165, 171, 172, 171,
  373. - 171, 165, 165, 165, 165, 166, 165, 166, 165, 173,
  374. - 165, 168, 165, 168, 174, 175, 165, 165, 165, 165,
  375. - 165, 165, 165, 165, 165, 165, 169, 165, 165, 165,
  376. - 165, 165, 165, 169, 171, 172, 171, 165, 165, 165,
  377. - 176, 173, 177, 168, 174, 174, 175, 165, 165, 165,
  378. - 165, 165, 165, 165, 165, 165, 165, 171, 165, 165,
  379. - 176, 177, 165, 165, 165, 165, 165, 165, 165, 165,
  380. -
  381. - 165, 165, 165, 165, 171, 165, 165, 165, 165, 165,
  382. - 165, 165, 165, 178, 165, 171, 165, 165, 165, 165,
  383. - 165, 165, 165, 178, 165, 178, 165, 165, 165, 165,
  384. - 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  385. - 165, 165, 165, 165, 165, 165, 165, 179, 165, 165,
  386. - 165, 179, 165, 179, 165, 165, 165, 165, 165, 165,
  387. - 165, 165, 165, 165, 0, 165, 165, 165, 165, 165,
  388. - 165, 165, 165, 165, 165, 165, 165, 165, 165
  389. + 158, 1, 1, 3, 158, 5, 1, 1, 158, 158,
  390. + 158, 158, 158, 159, 160, 161, 158, 158, 158, 158,
  391. + 162, 158, 158, 158, 163, 162, 158, 164, 165, 164,
  392. + 164, 158, 158, 158, 158, 159, 158, 159, 158, 166,
  393. + 158, 161, 158, 161, 167, 168, 158, 158, 158, 158,
  394. + 158, 158, 158, 158, 158, 162, 158, 158, 158, 158,
  395. + 158, 158, 162, 164, 165, 164, 158, 158, 158, 169,
  396. + 166, 170, 161, 167, 167, 168, 158, 158, 158, 158,
  397. + 158, 158, 158, 158, 158, 164, 158, 158, 169, 170,
  398. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  399. +
  400. + 158, 164, 158, 158, 158, 158, 158, 158, 158, 171,
  401. + 158, 164, 158, 158, 158, 158, 158, 158, 171, 158,
  402. + 171, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  403. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  404. + 172, 158, 158, 158, 172, 158, 172, 158, 158, 158,
  405. + 158, 158, 158, 158, 158, 158, 158, 0, 158, 158,
  406. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  407. + 158, 158
  408. } ;
  409. -static yyconst flex_int16_t yy_nxt[449] =
  410. +static yyconst flex_int16_t yy_nxt[438] =
  411. { 0,
  412. 10, 11, 12, 11, 13, 14, 10, 15, 16, 10,
  413. 10, 10, 17, 10, 10, 10, 10, 18, 19, 20,
  414. 21, 21, 21, 21, 21, 10, 10, 21, 21, 21,
  415. 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
  416. - 21, 21, 21, 21, 10, 22, 10, 24, 25, 25,
  417. - 25, 32, 33, 33, 164, 26, 34, 34, 34, 52,
  418. - 53, 27, 26, 26, 26, 26, 10, 11, 12, 11,
  419. - 13, 14, 28, 15, 16, 28, 28, 28, 24, 28,
  420. - 28, 28, 10, 18, 19, 20, 29, 29, 29, 29,
  421. - 29, 30, 10, 29, 29, 29, 29, 29, 29, 29,
  422. -
  423. - 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
  424. - 10, 22, 10, 23, 34, 34, 34, 37, 39, 43,
  425. - 32, 33, 33, 45, 55, 56, 46, 60, 43, 45,
  426. - 65, 163, 46, 65, 65, 65, 44, 38, 60, 74,
  427. - 58, 47, 141, 48, 142, 44, 49, 47, 50, 48,
  428. - 76, 51, 62, 94, 50, 41, 44, 51, 37, 61,
  429. - 64, 64, 64, 58, 34, 34, 34, 64, 162, 80,
  430. - 67, 68, 68, 68, 64, 64, 64, 64, 38, 81,
  431. - 69, 70, 71, 68, 68, 68, 60, 161, 43, 69,
  432. - 70, 65, 69, 70, 65, 65, 65, 125, 85, 85,
  433. -
  434. - 85, 58, 68, 68, 68, 44, 102, 110, 125, 133,
  435. - 102, 69, 70, 111, 114, 160, 159, 126, 85, 85,
  436. - 85, 140, 140, 140, 140, 140, 140, 153, 126, 147,
  437. - 147, 147, 153, 148, 147, 147, 147, 158, 148, 165,
  438. - 157, 156, 155, 151, 150, 149, 146, 154, 145, 144,
  439. - 143, 139, 154, 36, 36, 36, 36, 36, 36, 36,
  440. - 36, 40, 138, 137, 136, 40, 40, 42, 42, 42,
  441. - 42, 42, 42, 42, 42, 57, 57, 57, 57, 63,
  442. - 135, 63, 65, 134, 165, 65, 133, 65, 65, 66,
  443. - 132, 131, 66, 66, 66, 66, 72, 130, 72, 72,
  444. -
  445. - 75, 75, 75, 75, 75, 75, 75, 75, 77, 77,
  446. - 77, 77, 77, 77, 77, 77, 91, 129, 91, 92,
  447. - 128, 92, 92, 127, 92, 92, 124, 124, 124, 124,
  448. - 124, 124, 124, 124, 152, 152, 152, 152, 152, 152,
  449. - 152, 152, 60, 60, 123, 122, 121, 120, 119, 118,
  450. - 117, 45, 116, 111, 115, 113, 112, 109, 108, 107,
  451. - 46, 106, 93, 89, 105, 104, 103, 101, 100, 99,
  452. - 98, 97, 96, 95, 78, 76, 93, 90, 89, 88,
  453. - 58, 87, 86, 58, 84, 83, 82, 79, 78, 76,
  454. - 73, 165, 59, 58, 54, 35, 165, 31, 23, 23,
  455. -
  456. - 9, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  457. - 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  458. - 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  459. - 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  460. - 165, 165, 165, 165, 165, 165, 165, 165
  461. + 21, 21, 21, 10, 22, 10, 24, 25, 25, 25,
  462. + 32, 33, 33, 157, 26, 34, 34, 34, 51, 52,
  463. + 27, 26, 26, 26, 26, 10, 11, 12, 11, 13,
  464. + 14, 28, 15, 16, 28, 28, 28, 24, 28, 28,
  465. + 28, 10, 18, 19, 20, 29, 29, 29, 29, 29,
  466. + 30, 10, 29, 29, 29, 29, 29, 29, 29, 29,
  467. +
  468. + 29, 29, 29, 29, 29, 29, 29, 29, 10, 22,
  469. + 10, 23, 34, 34, 34, 37, 39, 43, 32, 33,
  470. + 33, 45, 54, 55, 46, 59, 45, 64, 156, 46,
  471. + 64, 64, 64, 79, 44, 38, 59, 57, 134, 47,
  472. + 135, 48, 80, 49, 47, 50, 48, 99, 61, 43,
  473. + 50, 110, 41, 67, 67, 67, 60, 63, 63, 63,
  474. + 57, 155, 68, 69, 63, 37, 44, 66, 67, 67,
  475. + 67, 63, 63, 63, 63, 73, 59, 68, 69, 70,
  476. + 34, 34, 34, 43, 75, 38, 154, 92, 83, 83,
  477. + 83, 64, 44, 120, 64, 64, 64, 67, 67, 67,
  478. +
  479. + 44, 57, 99, 68, 69, 107, 68, 69, 120, 127,
  480. + 108, 153, 152, 121, 83, 83, 83, 133, 133, 133,
  481. + 146, 133, 133, 133, 146, 140, 140, 140, 121, 141,
  482. + 140, 140, 140, 151, 141, 158, 150, 149, 148, 144,
  483. + 147, 143, 142, 139, 147, 36, 36, 36, 36, 36,
  484. + 36, 36, 36, 40, 138, 137, 136, 40, 40, 42,
  485. + 42, 42, 42, 42, 42, 42, 42, 56, 56, 56,
  486. + 56, 62, 132, 62, 64, 131, 130, 64, 129, 64,
  487. + 64, 65, 128, 158, 65, 65, 65, 65, 71, 127,
  488. + 71, 71, 74, 74, 74, 74, 74, 74, 74, 74,
  489. +
  490. + 76, 76, 76, 76, 76, 76, 76, 76, 89, 126,
  491. + 89, 90, 125, 90, 90, 124, 90, 90, 119, 119,
  492. + 119, 119, 119, 119, 119, 119, 145, 145, 145, 145,
  493. + 145, 145, 145, 145, 123, 122, 59, 59, 118, 117,
  494. + 116, 115, 114, 113, 45, 112, 108, 111, 109, 106,
  495. + 105, 104, 46, 103, 91, 87, 102, 101, 100, 98,
  496. + 97, 96, 95, 94, 93, 77, 75, 91, 88, 87,
  497. + 86, 57, 85, 84, 57, 82, 81, 78, 77, 75,
  498. + 72, 158, 58, 57, 53, 35, 158, 31, 23, 23,
  499. + 9, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  500. +
  501. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  502. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  503. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  504. + 158, 158, 158, 158, 158, 158, 158
  505. } ;
  506. -static yyconst flex_int16_t yy_chk[449] =
  507. +static yyconst flex_int16_t yy_chk[438] =
  508. { 0,
  509. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  510. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  511. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  512. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  513. - 1, 1, 1, 1, 1, 1, 1, 3, 3, 3,
  514. - 3, 7, 7, 7, 163, 3, 11, 11, 11, 18,
  515. - 18, 3, 3, 3, 3, 3, 5, 5, 5, 5,
  516. + 1, 1, 1, 1, 1, 1, 3, 3, 3, 3,
  517. + 7, 7, 7, 156, 3, 11, 11, 11, 18, 18,
  518. + 3, 3, 3, 3, 3, 5, 5, 5, 5, 5,
  519. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  520. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  521. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  522. 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
  523. - 5, 5, 5, 8, 12, 12, 12, 14, 15, 16,
  524. - 8, 8, 8, 17, 20, 20, 17, 23, 42, 24,
  525. - 29, 162, 24, 29, 29, 29, 16, 14, 31, 44,
  526. - 29, 17, 134, 17, 134, 42, 17, 24, 17, 24,
  527. - 76, 17, 24, 76, 24, 15, 44, 24, 36, 23,
  528. - 26, 26, 26, 26, 34, 34, 34, 26, 161, 48,
  529. - 31, 32, 32, 32, 26, 26, 26, 26, 36, 48,
  530. - 32, 32, 32, 33, 33, 33, 60, 160, 74, 91,
  531. - 91, 66, 33, 33, 66, 66, 66, 114, 60, 60,
  532. -
  533. - 60, 66, 68, 68, 68, 74, 85, 99, 124, 133,
  534. - 102, 68, 68, 99, 102, 157, 156, 114, 85, 85,
  535. - 85, 133, 133, 133, 140, 140, 140, 148, 124, 143,
  536. - 143, 143, 152, 143, 147, 147, 147, 155, 147, 154,
  537. - 151, 150, 149, 146, 145, 144, 142, 148, 141, 138,
  538. - 137, 132, 152, 166, 166, 166, 166, 166, 166, 166,
  539. - 166, 167, 131, 130, 129, 167, 167, 168, 168, 168,
  540. - 168, 168, 168, 168, 168, 169, 169, 169, 169, 170,
  541. - 128, 170, 171, 127, 126, 171, 125, 171, 171, 172,
  542. - 123, 122, 172, 172, 172, 172, 173, 121, 173, 173,
  543. -
  544. - 174, 174, 174, 174, 174, 174, 174, 174, 175, 175,
  545. - 175, 175, 175, 175, 175, 175, 176, 120, 176, 177,
  546. - 119, 177, 177, 118, 177, 177, 178, 178, 178, 178,
  547. - 178, 178, 178, 178, 179, 179, 179, 179, 179, 179,
  548. - 179, 179, 116, 115, 113, 112, 111, 110, 109, 108,
  549. - 107, 106, 105, 104, 103, 101, 100, 98, 97, 96,
  550. - 95, 94, 92, 90, 88, 87, 86, 84, 83, 82,
  551. - 81, 80, 79, 78, 77, 75, 73, 70, 69, 67,
  552. - 64, 62, 61, 57, 51, 50, 49, 47, 46, 45,
  553. + 5, 8, 12, 12, 12, 14, 15, 16, 8, 8,
  554. + 8, 17, 20, 20, 17, 23, 24, 29, 155, 24,
  555. + 29, 29, 29, 48, 16, 14, 31, 29, 128, 17,
  556. + 128, 17, 48, 17, 24, 17, 24, 99, 24, 42,
  557. + 24, 99, 15, 33, 33, 33, 23, 26, 26, 26,
  558. + 26, 154, 33, 33, 26, 36, 42, 31, 32, 32,
  559. + 32, 26, 26, 26, 26, 44, 59, 32, 32, 32,
  560. + 34, 34, 34, 73, 75, 36, 153, 75, 59, 59,
  561. + 59, 65, 44, 110, 65, 65, 65, 67, 67, 67,
  562. +
  563. + 73, 65, 83, 89, 89, 97, 67, 67, 119, 127,
  564. + 97, 150, 149, 110, 83, 83, 83, 133, 133, 133,
  565. + 141, 127, 127, 127, 145, 136, 136, 136, 119, 136,
  566. + 140, 140, 140, 148, 140, 147, 144, 143, 142, 139,
  567. + 141, 138, 137, 135, 145, 159, 159, 159, 159, 159,
  568. + 159, 159, 159, 160, 134, 132, 131, 160, 160, 161,
  569. + 161, 161, 161, 161, 161, 161, 161, 162, 162, 162,
  570. + 162, 163, 126, 163, 164, 125, 124, 164, 123, 164,
  571. + 164, 165, 122, 121, 165, 165, 165, 165, 166, 120,
  572. + 166, 166, 167, 167, 167, 167, 167, 167, 167, 167,
  573. +
  574. + 168, 168, 168, 168, 168, 168, 168, 168, 169, 118,
  575. + 169, 170, 117, 170, 170, 116, 170, 170, 171, 171,
  576. + 171, 171, 171, 171, 171, 171, 172, 172, 172, 172,
  577. + 172, 172, 172, 172, 115, 114, 112, 111, 109, 108,
  578. + 107, 106, 105, 104, 103, 102, 101, 100, 98, 96,
  579. + 95, 94, 93, 92, 90, 88, 86, 85, 84, 82,
  580. + 81, 80, 79, 78, 77, 76, 74, 72, 69, 68,
  581. + 66, 63, 61, 60, 56, 50, 49, 47, 46, 45,
  582. 41, 38, 22, 21, 19, 13, 9, 6, 4, 2,
  583. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  584. - 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  585. - 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  586. - 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  587. - 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
  588. - 165, 165, 165, 165, 165, 165, 165, 165
  589. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  590. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  591. + 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
  592. + 158, 158, 158, 158, 158, 158, 158
  593. } ;
  594. static yy_state_type yy_last_accepting_state;
  595. @@ -664,7 +662,7 @@ static int dts_version = 1;
  596. static void push_input_file(const char *filename);
  597. static bool pop_input_file(void);
  598. static void lexical_error(const char *fmt, ...);
  599. -#line 668 "dtc-lexer.lex.c"
  600. +#line 666 "dtc-lexer.lex.c"
  601. #define INITIAL 0
  602. #define BYTESTRING 1
  603. @@ -706,7 +704,7 @@ FILE *yyget_out (void );
  604. void yyset_out (FILE * out_str );
  605. -int yyget_leng (void );
  606. +yy_size_t yyget_leng (void );
  607. char *yyget_text (void );
  608. @@ -855,10 +853,6 @@ YY_DECL
  609. register char *yy_cp, *yy_bp;
  610. register int yy_act;
  611. -#line 68 "dtc-lexer.l"
  612. -
  613. -#line 861 "dtc-lexer.lex.c"
  614. -
  615. if ( !(yy_init) )
  616. {
  617. (yy_init) = 1;
  618. @@ -885,6 +879,11 @@ YY_DECL
  619. yy_load_buffer_state( );
  620. }
  621. + {
  622. +#line 68 "dtc-lexer.l"
  623. +
  624. +#line 886 "dtc-lexer.lex.c"
  625. +
  626. while ( 1 ) /* loops until end-of-file is reached */
  627. {
  628. yy_cp = (yy_c_buf_p);
  629. @@ -902,7 +901,7 @@ YY_DECL
  630. yy_match:
  631. do
  632. {
  633. - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  634. + register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
  635. if ( yy_accept[yy_current_state] )
  636. {
  637. (yy_last_accepting_state) = yy_current_state;
  638. @@ -911,13 +910,13 @@ yy_match:
  639. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  640. {
  641. yy_current_state = (int) yy_def[yy_current_state];
  642. - if ( yy_current_state >= 166 )
  643. + if ( yy_current_state >= 159 )
  644. yy_c = yy_meta[(unsigned int) yy_c];
  645. }
  646. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  647. ++yy_cp;
  648. }
  649. - while ( yy_current_state != 165 );
  650. + while ( yy_current_state != 158 );
  651. yy_cp = (yy_last_accepting_cpos);
  652. yy_current_state = (yy_last_accepting_state);
  653. @@ -1008,31 +1007,23 @@ case 5:
  654. YY_RULE_SETUP
  655. #line 116 "dtc-lexer.l"
  656. {
  657. - DPRINT("Keyword: /plugin/\n");
  658. - return DT_PLUGIN;
  659. - }
  660. - YY_BREAK
  661. -case 6:
  662. -YY_RULE_SETUP
  663. -#line 121 "dtc-lexer.l"
  664. -{
  665. DPRINT("Keyword: /memreserve/\n");
  666. BEGIN_DEFAULT();
  667. return DT_MEMRESERVE;
  668. }
  669. YY_BREAK
  670. -case 7:
  671. +case 6:
  672. YY_RULE_SETUP
  673. -#line 127 "dtc-lexer.l"
  674. +#line 122 "dtc-lexer.l"
  675. {
  676. DPRINT("Keyword: /bits/\n");
  677. BEGIN_DEFAULT();
  678. return DT_BITS;
  679. }
  680. YY_BREAK
  681. -case 8:
  682. +case 7:
  683. YY_RULE_SETUP
  684. -#line 133 "dtc-lexer.l"
  685. +#line 128 "dtc-lexer.l"
  686. {
  687. DPRINT("Keyword: /delete-property/\n");
  688. DPRINT("<PROPNODENAME>\n");
  689. @@ -1040,9 +1031,9 @@ YY_RULE_SETUP
  690. return DT_DEL_PROP;
  691. }
  692. YY_BREAK
  693. -case 9:
  694. +case 8:
  695. YY_RULE_SETUP
  696. -#line 140 "dtc-lexer.l"
  697. +#line 135 "dtc-lexer.l"
  698. {
  699. DPRINT("Keyword: /delete-node/\n");
  700. DPRINT("<PROPNODENAME>\n");
  701. @@ -1050,9 +1041,9 @@ YY_RULE_SETUP
  702. return DT_DEL_NODE;
  703. }
  704. YY_BREAK
  705. -case 10:
  706. +case 9:
  707. YY_RULE_SETUP
  708. -#line 147 "dtc-lexer.l"
  709. +#line 142 "dtc-lexer.l"
  710. {
  711. DPRINT("Label: %s\n", yytext);
  712. yylval.labelref = xstrdup(yytext);
  713. @@ -1060,9 +1051,9 @@ YY_RULE_SETUP
  714. return DT_LABEL;
  715. }
  716. YY_BREAK
  717. -case 11:
  718. +case 10:
  719. YY_RULE_SETUP
  720. -#line 154 "dtc-lexer.l"
  721. +#line 149 "dtc-lexer.l"
  722. {
  723. char *e;
  724. DPRINT("Integer Literal: '%s'\n", yytext);
  725. @@ -1082,10 +1073,10 @@ YY_RULE_SETUP
  726. return DT_LITERAL;
  727. }
  728. YY_BREAK
  729. -case 12:
  730. -/* rule 12 can match eol */
  731. +case 11:
  732. +/* rule 11 can match eol */
  733. YY_RULE_SETUP
  734. -#line 173 "dtc-lexer.l"
  735. +#line 168 "dtc-lexer.l"
  736. {
  737. struct data d;
  738. DPRINT("Character literal: %s\n", yytext);
  739. @@ -1107,18 +1098,18 @@ YY_RULE_SETUP
  740. return DT_CHAR_LITERAL;
  741. }
  742. YY_BREAK
  743. -case 13:
  744. +case 12:
  745. YY_RULE_SETUP
  746. -#line 194 "dtc-lexer.l"
  747. +#line 189 "dtc-lexer.l"
  748. { /* label reference */
  749. DPRINT("Ref: %s\n", yytext+1);
  750. yylval.labelref = xstrdup(yytext+1);
  751. return DT_REF;
  752. }
  753. YY_BREAK
  754. -case 14:
  755. +case 13:
  756. YY_RULE_SETUP
  757. -#line 200 "dtc-lexer.l"
  758. +#line 195 "dtc-lexer.l"
  759. { /* new-style path reference */
  760. yytext[yyleng-1] = '\0';
  761. DPRINT("Ref: %s\n", yytext+2);
  762. @@ -1126,27 +1117,27 @@ YY_RULE_SETUP
  763. return DT_REF;
  764. }
  765. YY_BREAK
  766. -case 15:
  767. +case 14:
  768. YY_RULE_SETUP
  769. -#line 207 "dtc-lexer.l"
  770. +#line 202 "dtc-lexer.l"
  771. {
  772. yylval.byte = strtol(yytext, NULL, 16);
  773. DPRINT("Byte: %02x\n", (int)yylval.byte);
  774. return DT_BYTE;
  775. }
  776. YY_BREAK
  777. -case 16:
  778. +case 15:
  779. YY_RULE_SETUP
  780. -#line 213 "dtc-lexer.l"
  781. +#line 208 "dtc-lexer.l"
  782. {
  783. DPRINT("/BYTESTRING\n");
  784. BEGIN_DEFAULT();
  785. return ']';
  786. }
  787. YY_BREAK
  788. -case 17:
  789. +case 16:
  790. YY_RULE_SETUP
  791. -#line 219 "dtc-lexer.l"
  792. +#line 214 "dtc-lexer.l"
  793. {
  794. DPRINT("PropNodeName: %s\n", yytext);
  795. yylval.propnodename = xstrdup((yytext[0] == '\\') ?
  796. @@ -1155,75 +1146,75 @@ YY_RULE_SETUP
  797. return DT_PROPNODENAME;
  798. }
  799. YY_BREAK
  800. -case 18:
  801. +case 17:
  802. YY_RULE_SETUP
  803. -#line 227 "dtc-lexer.l"
  804. +#line 222 "dtc-lexer.l"
  805. {
  806. DPRINT("Binary Include\n");
  807. return DT_INCBIN;
  808. }
  809. YY_BREAK
  810. -case 19:
  811. -/* rule 19 can match eol */
  812. +case 18:
  813. +/* rule 18 can match eol */
  814. YY_RULE_SETUP
  815. -#line 232 "dtc-lexer.l"
  816. +#line 227 "dtc-lexer.l"
  817. /* eat whitespace */
  818. YY_BREAK
  819. -case 20:
  820. -/* rule 20 can match eol */
  821. +case 19:
  822. +/* rule 19 can match eol */
  823. YY_RULE_SETUP
  824. -#line 233 "dtc-lexer.l"
  825. +#line 228 "dtc-lexer.l"
  826. /* eat C-style comments */
  827. YY_BREAK
  828. -case 21:
  829. -/* rule 21 can match eol */
  830. +case 20:
  831. +/* rule 20 can match eol */
  832. YY_RULE_SETUP
  833. -#line 234 "dtc-lexer.l"
  834. +#line 229 "dtc-lexer.l"
  835. /* eat C++-style comments */
  836. YY_BREAK
  837. -case 22:
  838. +case 21:
  839. YY_RULE_SETUP
  840. -#line 236 "dtc-lexer.l"
  841. +#line 231 "dtc-lexer.l"
  842. { return DT_LSHIFT; };
  843. YY_BREAK
  844. -case 23:
  845. +case 22:
  846. YY_RULE_SETUP
  847. -#line 237 "dtc-lexer.l"
  848. +#line 232 "dtc-lexer.l"
  849. { return DT_RSHIFT; };
  850. YY_BREAK
  851. -case 24:
  852. +case 23:
  853. YY_RULE_SETUP
  854. -#line 238 "dtc-lexer.l"
  855. +#line 233 "dtc-lexer.l"
  856. { return DT_LE; };
  857. YY_BREAK
  858. -case 25:
  859. +case 24:
  860. YY_RULE_SETUP
  861. -#line 239 "dtc-lexer.l"
  862. +#line 234 "dtc-lexer.l"
  863. { return DT_GE; };
  864. YY_BREAK
  865. -case 26:
  866. +case 25:
  867. YY_RULE_SETUP
  868. -#line 240 "dtc-lexer.l"
  869. +#line 235 "dtc-lexer.l"
  870. { return DT_EQ; };
  871. YY_BREAK
  872. -case 27:
  873. +case 26:
  874. YY_RULE_SETUP
  875. -#line 241 "dtc-lexer.l"
  876. +#line 236 "dtc-lexer.l"
  877. { return DT_NE; };
  878. YY_BREAK
  879. -case 28:
  880. +case 27:
  881. YY_RULE_SETUP
  882. -#line 242 "dtc-lexer.l"
  883. +#line 237 "dtc-lexer.l"
  884. { return DT_AND; };
  885. YY_BREAK
  886. -case 29:
  887. +case 28:
  888. YY_RULE_SETUP
  889. -#line 243 "dtc-lexer.l"
  890. +#line 238 "dtc-lexer.l"
  891. { return DT_OR; };
  892. YY_BREAK
  893. -case 30:
  894. +case 29:
  895. YY_RULE_SETUP
  896. -#line 245 "dtc-lexer.l"
  897. +#line 240 "dtc-lexer.l"
  898. {
  899. DPRINT("Char: %c (\\x%02x)\n", yytext[0],
  900. (unsigned)yytext[0]);
  901. @@ -1239,12 +1230,12 @@ YY_RULE_SETUP
  902. return yytext[0];
  903. }
  904. YY_BREAK
  905. -case 31:
  906. +case 30:
  907. YY_RULE_SETUP
  908. -#line 260 "dtc-lexer.l"
  909. +#line 255 "dtc-lexer.l"
  910. ECHO;
  911. YY_BREAK
  912. -#line 1248 "dtc-lexer.lex.c"
  913. +#line 1239 "dtc-lexer.lex.c"
  914. case YY_END_OF_BUFFER:
  915. {
  916. @@ -1374,6 +1365,7 @@ ECHO;
  917. "fatal flex scanner internal error--no action found" );
  918. } /* end of action switch */
  919. } /* end of scanning one token */
  920. + } /* end of user's declarations */
  921. } /* end of yylex */
  922. /* yy_get_next_buffer - try to read in a new buffer
  923. @@ -1429,21 +1421,21 @@ static int yy_get_next_buffer (void)
  924. else
  925. {
  926. - int num_to_read =
  927. + yy_size_t num_to_read =
  928. YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  929. while ( num_to_read <= 0 )
  930. { /* Not enough room in the buffer - grow it. */
  931. /* just a shorter name for the current buffer */
  932. - YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
  933. + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
  934. int yy_c_buf_p_offset =
  935. (int) ((yy_c_buf_p) - b->yy_ch_buf);
  936. if ( b->yy_is_our_buffer )
  937. {
  938. - int new_size = b->yy_buf_size * 2;
  939. + yy_size_t new_size = b->yy_buf_size * 2;
  940. if ( new_size <= 0 )
  941. b->yy_buf_size += b->yy_buf_size / 8;
  942. @@ -1474,7 +1466,7 @@ static int yy_get_next_buffer (void)
  943. /* Read in more data. */
  944. YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  945. - (yy_n_chars), (size_t) num_to_read );
  946. + (yy_n_chars), num_to_read );
  947. YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  948. }
  949. @@ -1536,7 +1528,7 @@ static int yy_get_next_buffer (void)
  950. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  951. {
  952. yy_current_state = (int) yy_def[yy_current_state];
  953. - if ( yy_current_state >= 166 )
  954. + if ( yy_current_state >= 159 )
  955. yy_c = yy_meta[(unsigned int) yy_c];
  956. }
  957. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  958. @@ -1564,13 +1556,13 @@ static int yy_get_next_buffer (void)
  959. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  960. {
  961. yy_current_state = (int) yy_def[yy_current_state];
  962. - if ( yy_current_state >= 166 )
  963. + if ( yy_current_state >= 159 )
  964. yy_c = yy_meta[(unsigned int) yy_c];
  965. }
  966. yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  967. - yy_is_jam = (yy_current_state == 165);
  968. + yy_is_jam = (yy_current_state == 158);
  969. - return yy_is_jam ? 0 : yy_current_state;
  970. + return yy_is_jam ? 0 : yy_current_state;
  971. }
  972. #ifndef YY_NO_INPUT
  973. @@ -1597,7 +1589,7 @@ static int yy_get_next_buffer (void)
  974. else
  975. { /* need more input */
  976. - int offset = (yy_c_buf_p) - (yytext_ptr);
  977. + yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
  978. ++(yy_c_buf_p);
  979. switch ( yy_get_next_buffer( ) )
  980. @@ -1871,7 +1863,7 @@ void yypop_buffer_state (void)
  981. */
  982. static void yyensure_buffer_stack (void)
  983. {
  984. - int num_to_alloc;
  985. + yy_size_t num_to_alloc;
  986. if (!(yy_buffer_stack)) {
  987. @@ -1968,12 +1960,12 @@ YY_BUFFER_STATE yy_scan_string (yyconst
  988. *
  989. * @return the newly allocated buffer state object.
  990. */
  991. -YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
  992. +YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
  993. {
  994. YY_BUFFER_STATE b;
  995. char *buf;
  996. yy_size_t n;
  997. - int i;
  998. + yy_size_t i;
  999. /* Get memory for full buffer, including space for trailing EOB's. */
  1000. n = _yybytes_len + 2;
  1001. @@ -2055,7 +2047,7 @@ FILE *yyget_out (void)
  1002. /** Get the length of the current token.
  1003. *
  1004. */
  1005. -int yyget_leng (void)
  1006. +yy_size_t yyget_leng (void)
  1007. {
  1008. return yyleng;
  1009. }
  1010. @@ -2203,7 +2195,7 @@ void yyfree (void * ptr )
  1011. #define YYTABLES_NAME "yytables"
  1012. -#line 260 "dtc-lexer.l"
  1013. +#line 254 "dtc-lexer.l"
  1014. --- a/scripts/dtc/dtc-parser.tab.c_shipped
  1015. +++ b/scripts/dtc/dtc-parser.tab.c_shipped
  1016. @@ -1,19 +1,19 @@
  1017. -/* A Bison parser, made by GNU Bison 2.5. */
  1018. +/* A Bison parser, made by GNU Bison 3.0.2. */
  1019. /* Bison implementation for Yacc-like parsers in C
  1020. -
  1021. - Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
  1022. -
  1023. +
  1024. + Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
  1025. +
  1026. This program is free software: you can redistribute it and/or modify
  1027. it under the terms of the GNU General Public License as published by
  1028. the Free Software Foundation, either version 3 of the License, or
  1029. (at your option) any later version.
  1030. -
  1031. +
  1032. This program is distributed in the hope that it will be useful,
  1033. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1034. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1035. GNU General Public License for more details.
  1036. -
  1037. +
  1038. You should have received a copy of the GNU General Public License
  1039. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  1040. @@ -26,7 +26,7 @@
  1041. special exception, which will cause the skeleton and the resulting
  1042. Bison output files to be licensed under the GNU General Public
  1043. License without this special exception.
  1044. -
  1045. +
  1046. This special exception was added by the Free Software Foundation in
  1047. version 2.2 of Bison. */
  1048. @@ -44,7 +44,7 @@
  1049. #define YYBISON 1
  1050. /* Bison version. */
  1051. -#define YYBISON_VERSION "2.5"
  1052. +#define YYBISON_VERSION "3.0.2"
  1053. /* Skeleton name. */
  1054. #define YYSKELETON_NAME "yacc.c"
  1055. @@ -58,18 +58,13 @@
  1056. /* Pull parsers. */
  1057. #define YYPULL 1
  1058. -/* Using locations. */
  1059. -#define YYLSP_NEEDED 1
  1060. /* Copy the first part of user declarations. */
  1061. -
  1062. -/* Line 268 of yacc.c */
  1063. -#line 20 "dtc-parser.y"
  1064. +#line 20 "dtc-parser.y" /* yacc.c:339 */
  1065. #include <stdio.h>
  1066. -#include <inttypes.h>
  1067. #include "dtc.h"
  1068. #include "srcpos.h"
  1069. @@ -85,14 +80,15 @@ extern void yyerror(char const *s);
  1070. extern struct boot_info *the_boot_info;
  1071. extern bool treesource_error;
  1072. +#line 84 "dtc-parser.tab.c" /* yacc.c:339 */
  1073. -/* Line 268 of yacc.c */
  1074. -#line 91 "dtc-parser.tab.c"
  1075. -
  1076. -/* Enabling traces. */
  1077. -#ifndef YYDEBUG
  1078. -# define YYDEBUG 0
  1079. -#endif
  1080. +# ifndef YY_NULLPTR
  1081. +# if defined __cplusplus && 201103L <= __cplusplus
  1082. +# define YY_NULLPTR nullptr
  1083. +# else
  1084. +# define YY_NULLPTR 0
  1085. +# endif
  1086. +# endif
  1087. /* Enabling verbose error messages. */
  1088. #ifdef YYERROR_VERBOSE
  1089. @@ -102,51 +98,53 @@ extern bool treesource_error;
  1090. # define YYERROR_VERBOSE 0
  1091. #endif
  1092. -/* Enabling the token table. */
  1093. -#ifndef YYTOKEN_TABLE
  1094. -# define YYTOKEN_TABLE 0
  1095. +/* In a future release of Bison, this section will be replaced
  1096. + by #include "dtc-parser.tab.h". */
  1097. +#ifndef YY_YY_DTC_PARSER_TAB_H_INCLUDED
  1098. +# define YY_YY_DTC_PARSER_TAB_H_INCLUDED
  1099. +/* Debug traces. */
  1100. +#ifndef YYDEBUG
  1101. +# define YYDEBUG 0
  1102. +#endif
  1103. +#if YYDEBUG
  1104. +extern int yydebug;
  1105. #endif
  1106. -
  1107. -/* Tokens. */
  1108. +/* Token type. */
  1109. #ifndef YYTOKENTYPE
  1110. # define YYTOKENTYPE
  1111. - /* Put the tokens into the symbol table, so that GDB and other debuggers
  1112. - know about them. */
  1113. - enum yytokentype {
  1114. - DT_V1 = 258,
  1115. - DT_PLUGIN = 259,
  1116. - DT_MEMRESERVE = 260,
  1117. - DT_LSHIFT = 261,
  1118. - DT_RSHIFT = 262,
  1119. - DT_LE = 263,
  1120. - DT_GE = 264,
  1121. - DT_EQ = 265,
  1122. - DT_NE = 266,
  1123. - DT_AND = 267,
  1124. - DT_OR = 268,
  1125. - DT_BITS = 269,
  1126. - DT_DEL_PROP = 270,
  1127. - DT_DEL_NODE = 271,
  1128. - DT_PROPNODENAME = 272,
  1129. - DT_LITERAL = 273,
  1130. - DT_CHAR_LITERAL = 274,
  1131. - DT_BYTE = 275,
  1132. - DT_STRING = 276,
  1133. - DT_LABEL = 277,
  1134. - DT_REF = 278,
  1135. - DT_INCBIN = 279
  1136. - };
  1137. + enum yytokentype
  1138. + {
  1139. + DT_V1 = 258,
  1140. + DT_MEMRESERVE = 259,
  1141. + DT_LSHIFT = 260,
  1142. + DT_RSHIFT = 261,
  1143. + DT_LE = 262,
  1144. + DT_GE = 263,
  1145. + DT_EQ = 264,
  1146. + DT_NE = 265,
  1147. + DT_AND = 266,
  1148. + DT_OR = 267,
  1149. + DT_BITS = 268,
  1150. + DT_DEL_PROP = 269,
  1151. + DT_DEL_NODE = 270,
  1152. + DT_PROPNODENAME = 271,
  1153. + DT_LITERAL = 272,
  1154. + DT_CHAR_LITERAL = 273,
  1155. + DT_BYTE = 274,
  1156. + DT_STRING = 275,
  1157. + DT_LABEL = 276,
  1158. + DT_REF = 277,
  1159. + DT_INCBIN = 278
  1160. + };
  1161. #endif
  1162. -
  1163. -
  1164. +/* Value type. */
  1165. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  1166. -typedef union YYSTYPE
  1167. +typedef union YYSTYPE YYSTYPE;
  1168. +union YYSTYPE
  1169. {
  1170. -
  1171. -/* Line 293 of yacc.c */
  1172. -#line 39 "dtc-parser.y"
  1173. +#line 38 "dtc-parser.y" /* yacc.c:355 */
  1174. char *propnodename;
  1175. char *labelref;
  1176. @@ -164,37 +162,37 @@ typedef union YYSTYPE
  1177. struct node *nodelist;
  1178. struct reserve_info *re;
  1179. uint64_t integer;
  1180. - int is_plugin;
  1181. -
  1182. -
  1183. -/* Line 293 of yacc.c */
  1184. -#line 173 "dtc-parser.tab.c"
  1185. -} YYSTYPE;
  1186. +#line 167 "dtc-parser.tab.c" /* yacc.c:355 */
  1187. +};
  1188. # define YYSTYPE_IS_TRIVIAL 1
  1189. -# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  1190. # define YYSTYPE_IS_DECLARED 1
  1191. #endif
  1192. +/* Location type. */
  1193. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  1194. -typedef struct YYLTYPE
  1195. +typedef struct YYLTYPE YYLTYPE;
  1196. +struct YYLTYPE
  1197. {
  1198. int first_line;
  1199. int first_column;
  1200. int last_line;
  1201. int last_column;
  1202. -} YYLTYPE;
  1203. -# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
  1204. +};
  1205. # define YYLTYPE_IS_DECLARED 1
  1206. # define YYLTYPE_IS_TRIVIAL 1
  1207. #endif
  1208. -/* Copy the second part of user declarations. */
  1209. +extern YYSTYPE yylval;
  1210. +extern YYLTYPE yylloc;
  1211. +int yyparse (void);
  1212. +
  1213. +#endif /* !YY_YY_DTC_PARSER_TAB_H_INCLUDED */
  1214. +/* Copy the second part of user declarations. */
  1215. -/* Line 343 of yacc.c */
  1216. -#line 198 "dtc-parser.tab.c"
  1217. +#line 196 "dtc-parser.tab.c" /* yacc.c:358 */
  1218. #ifdef short
  1219. # undef short
  1220. @@ -208,11 +206,8 @@ typedef unsigned char yytype_uint8;
  1221. #ifdef YYTYPE_INT8
  1222. typedef YYTYPE_INT8 yytype_int8;
  1223. -#elif (defined __STDC__ || defined __C99__FUNC__ \
  1224. - || defined __cplusplus || defined _MSC_VER)
  1225. -typedef signed char yytype_int8;
  1226. #else
  1227. -typedef short int yytype_int8;
  1228. +typedef signed char yytype_int8;
  1229. #endif
  1230. #ifdef YYTYPE_UINT16
  1231. @@ -232,8 +227,7 @@ typedef short int yytype_int16;
  1232. # define YYSIZE_T __SIZE_TYPE__
  1233. # elif defined size_t
  1234. # define YYSIZE_T size_t
  1235. -# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
  1236. - || defined __cplusplus || defined _MSC_VER)
  1237. +# elif ! defined YYSIZE_T
  1238. # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  1239. # define YYSIZE_T size_t
  1240. # else
  1241. @@ -247,39 +241,68 @@ typedef short int yytype_int16;
  1242. # if defined YYENABLE_NLS && YYENABLE_NLS
  1243. # if ENABLE_NLS
  1244. # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
  1245. -# define YY_(msgid) dgettext ("bison-runtime", msgid)
  1246. +# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
  1247. # endif
  1248. # endif
  1249. # ifndef YY_
  1250. -# define YY_(msgid) msgid
  1251. +# define YY_(Msgid) Msgid
  1252. +# endif
  1253. +#endif
  1254. +
  1255. +#ifndef YY_ATTRIBUTE
  1256. +# if (defined __GNUC__ \
  1257. + && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
  1258. + || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
  1259. +# define YY_ATTRIBUTE(Spec) __attribute__(Spec)
  1260. +# else
  1261. +# define YY_ATTRIBUTE(Spec) /* empty */
  1262. +# endif
  1263. +#endif
  1264. +
  1265. +#ifndef YY_ATTRIBUTE_PURE
  1266. +# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
  1267. +#endif
  1268. +
  1269. +#ifndef YY_ATTRIBUTE_UNUSED
  1270. +# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
  1271. +#endif
  1272. +
  1273. +#if !defined _Noreturn \
  1274. + && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
  1275. +# if defined _MSC_VER && 1200 <= _MSC_VER
  1276. +# define _Noreturn __declspec (noreturn)
  1277. +# else
  1278. +# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
  1279. # endif
  1280. #endif
  1281. /* Suppress unused-variable warnings by "using" E. */
  1282. #if ! defined lint || defined __GNUC__
  1283. -# define YYUSE(e) ((void) (e))
  1284. +# define YYUSE(E) ((void) (E))
  1285. #else
  1286. -# define YYUSE(e) /* empty */
  1287. +# define YYUSE(E) /* empty */
  1288. #endif
  1289. -/* Identity function, used to suppress warnings about constant conditions. */
  1290. -#ifndef lint
  1291. -# define YYID(n) (n)
  1292. -#else
  1293. -#if (defined __STDC__ || defined __C99__FUNC__ \
  1294. - || defined __cplusplus || defined _MSC_VER)
  1295. -static int
  1296. -YYID (int yyi)
  1297. +#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
  1298. +/* Suppress an incorrect diagnostic about yylval being uninitialized. */
  1299. +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
  1300. + _Pragma ("GCC diagnostic push") \
  1301. + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
  1302. + _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
  1303. +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
  1304. + _Pragma ("GCC diagnostic pop")
  1305. #else
  1306. -static int
  1307. -YYID (yyi)
  1308. - int yyi;
  1309. +# define YY_INITIAL_VALUE(Value) Value
  1310. #endif
  1311. -{
  1312. - return yyi;
  1313. -}
  1314. +#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  1315. +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  1316. +# define YY_IGNORE_MAYBE_UNINITIALIZED_END
  1317. +#endif
  1318. +#ifndef YY_INITIAL_VALUE
  1319. +# define YY_INITIAL_VALUE(Value) /* Nothing. */
  1320. #endif
  1321. +
  1322. #if ! defined yyoverflow || YYERROR_VERBOSE
  1323. /* The parser invokes alloca or malloc; define the necessary symbols. */
  1324. @@ -297,9 +320,9 @@ YYID (yyi)
  1325. # define alloca _alloca
  1326. # else
  1327. # define YYSTACK_ALLOC alloca
  1328. -# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
  1329. - || defined __cplusplus || defined _MSC_VER)
  1330. +# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
  1331. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  1332. + /* Use EXIT_SUCCESS as a witness for stdlib.h. */
  1333. # ifndef EXIT_SUCCESS
  1334. # define EXIT_SUCCESS 0
  1335. # endif
  1336. @@ -309,8 +332,8 @@ YYID (yyi)
  1337. # endif
  1338. # ifdef YYSTACK_ALLOC
  1339. - /* Pacify GCC's `empty if-body' warning. */
  1340. -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
  1341. + /* Pacify GCC's 'empty if-body' warning. */
  1342. +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  1343. # ifndef YYSTACK_ALLOC_MAXIMUM
  1344. /* The OS might guarantee only one guard page at the bottom of the stack,
  1345. and a page size can be as small as 4096 bytes. So we cannot safely
  1346. @@ -326,7 +349,7 @@ YYID (yyi)
  1347. # endif
  1348. # if (defined __cplusplus && ! defined EXIT_SUCCESS \
  1349. && ! ((defined YYMALLOC || defined malloc) \
  1350. - && (defined YYFREE || defined free)))
  1351. + && (defined YYFREE || defined free)))
  1352. # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  1353. # ifndef EXIT_SUCCESS
  1354. # define EXIT_SUCCESS 0
  1355. @@ -334,15 +357,13 @@ YYID (yyi)
  1356. # endif
  1357. # ifndef YYMALLOC
  1358. # define YYMALLOC malloc
  1359. -# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
  1360. - || defined __cplusplus || defined _MSC_VER)
  1361. +# if ! defined malloc && ! defined EXIT_SUCCESS
  1362. void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
  1363. # endif
  1364. # endif
  1365. # ifndef YYFREE
  1366. # define YYFREE free
  1367. -# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
  1368. - || defined __cplusplus || defined _MSC_VER)
  1369. +# if ! defined free && ! defined EXIT_SUCCESS
  1370. void free (void *); /* INFRINGES ON USER NAME SPACE */
  1371. # endif
  1372. # endif
  1373. @@ -352,8 +373,8 @@ void free (void *); /* INFRINGES ON USER
  1374. #if (! defined yyoverflow \
  1375. && (! defined __cplusplus \
  1376. - || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
  1377. - && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
  1378. + || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
  1379. + && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
  1380. /* A type that is properly aligned for any stack member. */
  1381. union yyalloc
  1382. @@ -379,35 +400,35 @@ union yyalloc
  1383. elements in the stack, and YYPTR gives the new location of the
  1384. stack. Advance YYPTR to a properly aligned location for the next
  1385. stack. */
  1386. -# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
  1387. - do \
  1388. - { \
  1389. - YYSIZE_T yynewbytes; \
  1390. - YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
  1391. - Stack = &yyptr->Stack_alloc; \
  1392. - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  1393. - yyptr += yynewbytes / sizeof (*yyptr); \
  1394. - } \
  1395. - while (YYID (0))
  1396. +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
  1397. + do \
  1398. + { \
  1399. + YYSIZE_T yynewbytes; \
  1400. + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
  1401. + Stack = &yyptr->Stack_alloc; \
  1402. + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  1403. + yyptr += yynewbytes / sizeof (*yyptr); \
  1404. + } \
  1405. + while (0)
  1406. #endif
  1407. #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
  1408. -/* Copy COUNT objects from FROM to TO. The source and destination do
  1409. +/* Copy COUNT objects from SRC to DST. The source and destination do
  1410. not overlap. */
  1411. # ifndef YYCOPY
  1412. # if defined __GNUC__ && 1 < __GNUC__
  1413. -# define YYCOPY(To, From, Count) \
  1414. - __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  1415. +# define YYCOPY(Dst, Src, Count) \
  1416. + __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
  1417. # else
  1418. -# define YYCOPY(To, From, Count) \
  1419. - do \
  1420. - { \
  1421. - YYSIZE_T yyi; \
  1422. - for (yyi = 0; yyi < (Count); yyi++) \
  1423. - (To)[yyi] = (From)[yyi]; \
  1424. - } \
  1425. - while (YYID (0))
  1426. +# define YYCOPY(Dst, Src, Count) \
  1427. + do \
  1428. + { \
  1429. + YYSIZE_T yyi; \
  1430. + for (yyi = 0; yyi < (Count); yyi++) \
  1431. + (Dst)[yyi] = (Src)[yyi]; \
  1432. + } \
  1433. + while (0)
  1434. # endif
  1435. # endif
  1436. #endif /* !YYCOPY_NEEDED */
  1437. @@ -418,37 +439,39 @@ union yyalloc
  1438. #define YYLAST 136
  1439. /* YYNTOKENS -- Number of terminals. */
  1440. -#define YYNTOKENS 48
  1441. +#define YYNTOKENS 47
  1442. /* YYNNTS -- Number of nonterminals. */
  1443. -#define YYNNTS 29
  1444. +#define YYNNTS 28
  1445. /* YYNRULES -- Number of rules. */
  1446. -#define YYNRULES 82
  1447. -/* YYNRULES -- Number of states. */
  1448. -#define YYNSTATES 147
  1449. +#define YYNRULES 80
  1450. +/* YYNSTATES -- Number of states. */
  1451. +#define YYNSTATES 144
  1452. -/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  1453. +/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
  1454. + by yylex, with out-of-bounds checking. */
  1455. #define YYUNDEFTOK 2
  1456. -#define YYMAXUTOK 279
  1457. +#define YYMAXUTOK 278
  1458. -#define YYTRANSLATE(YYX) \
  1459. +#define YYTRANSLATE(YYX) \
  1460. ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  1461. -/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  1462. +/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
  1463. + as returned by yylex, without out-of-bounds checking. */
  1464. static const yytype_uint8 yytranslate[] =
  1465. {
  1466. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1467. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1468. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1469. - 2, 2, 2, 47, 2, 2, 2, 45, 41, 2,
  1470. - 33, 35, 44, 42, 34, 43, 2, 26, 2, 2,
  1471. - 2, 2, 2, 2, 2, 2, 2, 2, 38, 25,
  1472. - 36, 29, 30, 37, 2, 2, 2, 2, 2, 2,
  1473. + 2, 2, 2, 46, 2, 2, 2, 44, 40, 2,
  1474. + 32, 34, 43, 41, 33, 42, 2, 25, 2, 2,
  1475. + 2, 2, 2, 2, 2, 2, 2, 2, 37, 24,
  1476. + 35, 28, 29, 36, 2, 2, 2, 2, 2, 2,
  1477. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1478. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1479. - 2, 31, 2, 32, 40, 2, 2, 2, 2, 2,
  1480. + 2, 30, 2, 31, 39, 2, 2, 2, 2, 2,
  1481. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1482. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1483. - 2, 2, 2, 27, 39, 28, 46, 2, 2, 2,
  1484. + 2, 2, 2, 26, 38, 27, 45, 2, 2, 2,
  1485. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1486. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1487. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1488. @@ -463,335 +486,292 @@ static const yytype_uint8 yytranslate[]
  1489. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1490. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  1491. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  1492. - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
  1493. + 15, 16, 17, 18, 19, 20, 21, 22, 23
  1494. };
  1495. #if YYDEBUG
  1496. -/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  1497. - YYRHS. */
  1498. -static const yytype_uint16 yyprhs[] =
  1499. -{
  1500. - 0, 0, 3, 9, 10, 13, 14, 17, 22, 25,
  1501. - 28, 32, 37, 41, 46, 52, 53, 56, 61, 64,
  1502. - 68, 71, 74, 78, 83, 86, 96, 102, 105, 106,
  1503. - 109, 112, 116, 118, 121, 124, 127, 129, 131, 135,
  1504. - 137, 139, 145, 147, 151, 153, 157, 159, 163, 165,
  1505. - 169, 171, 175, 177, 181, 185, 187, 191, 195, 199,
  1506. - 203, 207, 211, 213, 217, 221, 223, 227, 231, 235,
  1507. - 237, 239, 242, 245, 248, 249, 252, 255, 256, 259,
  1508. - 262, 265, 269
  1509. -};
  1510. -
  1511. -/* YYRHS -- A `-1'-separated list of the rules' RHS. */
  1512. -static const yytype_int8 yyrhs[] =
  1513. -{
  1514. - 49, 0, -1, 3, 25, 50, 51, 53, -1, -1,
  1515. - 4, 25, -1, -1, 52, 51, -1, 5, 60, 60,
  1516. - 25, -1, 22, 52, -1, 26, 54, -1, 53, 26,
  1517. - 54, -1, 53, 22, 23, 54, -1, 53, 23, 54,
  1518. - -1, 53, 16, 23, 25, -1, 27, 55, 75, 28,
  1519. - 25, -1, -1, 55, 56, -1, 17, 29, 57, 25,
  1520. - -1, 17, 25, -1, 15, 17, 25, -1, 22, 56,
  1521. - -1, 58, 21, -1, 58, 59, 30, -1, 58, 31,
  1522. - 74, 32, -1, 58, 23, -1, 58, 24, 33, 21,
  1523. - 34, 60, 34, 60, 35, -1, 58, 24, 33, 21,
  1524. - 35, -1, 57, 22, -1, -1, 57, 34, -1, 58,
  1525. - 22, -1, 14, 18, 36, -1, 36, -1, 59, 60,
  1526. - -1, 59, 23, -1, 59, 22, -1, 18, -1, 19,
  1527. - -1, 33, 61, 35, -1, 62, -1, 63, -1, 63,
  1528. - 37, 61, 38, 62, -1, 64, -1, 63, 13, 64,
  1529. - -1, 65, -1, 64, 12, 65, -1, 66, -1, 65,
  1530. - 39, 66, -1, 67, -1, 66, 40, 67, -1, 68,
  1531. - -1, 67, 41, 68, -1, 69, -1, 68, 10, 69,
  1532. - -1, 68, 11, 69, -1, 70, -1, 69, 36, 70,
  1533. - -1, 69, 30, 70, -1, 69, 8, 70, -1, 69,
  1534. - 9, 70, -1, 70, 6, 71, -1, 70, 7, 71,
  1535. - -1, 71, -1, 71, 42, 72, -1, 71, 43, 72,
  1536. - -1, 72, -1, 72, 44, 73, -1, 72, 26, 73,
  1537. - -1, 72, 45, 73, -1, 73, -1, 60, -1, 43,
  1538. - 73, -1, 46, 73, -1, 47, 73, -1, -1, 74,
  1539. - 20, -1, 74, 22, -1, -1, 76, 75, -1, 76,
  1540. - 56, -1, 17, 54, -1, 16, 17, 25, -1, 22,
  1541. - 76, -1
  1542. -};
  1543. -
  1544. -/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  1545. + /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
  1546. static const yytype_uint16 yyrline[] =
  1547. {
  1548. - 0, 108, 108, 119, 122, 130, 133, 140, 144, 152,
  1549. - 156, 161, 172, 182, 197, 205, 208, 215, 219, 223,
  1550. - 227, 235, 239, 243, 247, 251, 267, 277, 285, 288,
  1551. - 292, 299, 315, 320, 339, 353, 360, 361, 362, 369,
  1552. - 373, 374, 378, 379, 383, 384, 388, 389, 393, 394,
  1553. - 398, 399, 403, 404, 405, 409, 410, 411, 412, 413,
  1554. - 417, 418, 419, 423, 424, 425, 429, 430, 431, 432,
  1555. - 436, 437, 438, 439, 444, 447, 451, 459, 462, 466,
  1556. - 474, 478, 482
  1557. + 0, 104, 104, 113, 116, 123, 127, 135, 139, 144,
  1558. + 155, 165, 180, 188, 191, 198, 202, 206, 210, 218,
  1559. + 222, 226, 230, 234, 250, 260, 268, 271, 275, 282,
  1560. + 298, 303, 322, 336, 343, 344, 345, 352, 356, 357,
  1561. + 361, 362, 366, 367, 371, 372, 376, 377, 381, 382,
  1562. + 386, 387, 388, 392, 393, 394, 395, 396, 400, 401,
  1563. + 402, 406, 407, 408, 412, 413, 414, 415, 419, 420,
  1564. + 421, 422, 427, 430, 434, 442, 445, 449, 457, 461,
  1565. + 465
  1566. };
  1567. #endif
  1568. -#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
  1569. +#if YYDEBUG || YYERROR_VERBOSE || 0
  1570. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  1571. First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  1572. static const char *const yytname[] =
  1573. {
  1574. - "$end", "error", "$undefined", "DT_V1", "DT_PLUGIN", "DT_MEMRESERVE",
  1575. - "DT_LSHIFT", "DT_RSHIFT", "DT_LE", "DT_GE", "DT_EQ", "DT_NE", "DT_AND",
  1576. - "DT_OR", "DT_BITS", "DT_DEL_PROP", "DT_DEL_NODE", "DT_PROPNODENAME",
  1577. - "DT_LITERAL", "DT_CHAR_LITERAL", "DT_BYTE", "DT_STRING", "DT_LABEL",
  1578. - "DT_REF", "DT_INCBIN", "';'", "'/'", "'{'", "'}'", "'='", "'>'", "'['",
  1579. - "']'", "'('", "','", "')'", "'<'", "'?'", "':'", "'|'", "'^'", "'&'",
  1580. - "'+'", "'-'", "'*'", "'%'", "'~'", "'!'", "$accept", "sourcefile",
  1581. - "plugindecl", "memreserves", "memreserve", "devicetree", "nodedef",
  1582. - "proplist", "propdef", "propdata", "propdataprefix", "arrayprefix",
  1583. - "integer_prim", "integer_expr", "integer_trinary", "integer_or",
  1584. - "integer_and", "integer_bitor", "integer_bitxor", "integer_bitand",
  1585. - "integer_eq", "integer_rela", "integer_shift", "integer_add",
  1586. - "integer_mul", "integer_unary", "bytestring", "subnodes", "subnode", 0
  1587. + "$end", "error", "$undefined", "DT_V1", "DT_MEMRESERVE", "DT_LSHIFT",
  1588. + "DT_RSHIFT", "DT_LE", "DT_GE", "DT_EQ", "DT_NE", "DT_AND", "DT_OR",
  1589. + "DT_BITS", "DT_DEL_PROP", "DT_DEL_NODE", "DT_PROPNODENAME", "DT_LITERAL",
  1590. + "DT_CHAR_LITERAL", "DT_BYTE", "DT_STRING", "DT_LABEL", "DT_REF",
  1591. + "DT_INCBIN", "';'", "'/'", "'{'", "'}'", "'='", "'>'", "'['", "']'",
  1592. + "'('", "','", "')'", "'<'", "'?'", "':'", "'|'", "'^'", "'&'", "'+'",
  1593. + "'-'", "'*'", "'%'", "'~'", "'!'", "$accept", "sourcefile",
  1594. + "memreserves", "memreserve", "devicetree", "nodedef", "proplist",
  1595. + "propdef", "propdata", "propdataprefix", "arrayprefix", "integer_prim",
  1596. + "integer_expr", "integer_trinary", "integer_or", "integer_and",
  1597. + "integer_bitor", "integer_bitxor", "integer_bitand", "integer_eq",
  1598. + "integer_rela", "integer_shift", "integer_add", "integer_mul",
  1599. + "integer_unary", "bytestring", "subnodes", "subnode", YY_NULLPTR
  1600. };
  1601. #endif
  1602. # ifdef YYPRINT
  1603. -/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  1604. - token YYLEX-NUM. */
  1605. +/* YYTOKNUM[NUM] -- (External) token number corresponding to the
  1606. + (internal) symbol number NUM (which must be that of a token). */
  1607. static const yytype_uint16 yytoknum[] =
  1608. {
  1609. 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  1610. 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
  1611. - 275, 276, 277, 278, 279, 59, 47, 123, 125, 61,
  1612. - 62, 91, 93, 40, 44, 41, 60, 63, 58, 124,
  1613. - 94, 38, 43, 45, 42, 37, 126, 33
  1614. + 275, 276, 277, 278, 59, 47, 123, 125, 61, 62,
  1615. + 91, 93, 40, 44, 41, 60, 63, 58, 124, 94,
  1616. + 38, 43, 45, 42, 37, 126, 33
  1617. };
  1618. # endif
  1619. -/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  1620. -static const yytype_uint8 yyr1[] =
  1621. -{
  1622. - 0, 48, 49, 50, 50, 51, 51, 52, 52, 53,
  1623. - 53, 53, 53, 53, 54, 55, 55, 56, 56, 56,
  1624. - 56, 57, 57, 57, 57, 57, 57, 57, 58, 58,
  1625. - 58, 59, 59, 59, 59, 59, 60, 60, 60, 61,
  1626. - 62, 62, 63, 63, 64, 64, 65, 65, 66, 66,
  1627. - 67, 67, 68, 68, 68, 69, 69, 69, 69, 69,
  1628. - 70, 70, 70, 71, 71, 71, 72, 72, 72, 72,
  1629. - 73, 73, 73, 73, 74, 74, 74, 75, 75, 75,
  1630. - 76, 76, 76
  1631. -};
  1632. +#define YYPACT_NINF -81
  1633. -/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  1634. -static const yytype_uint8 yyr2[] =
  1635. +#define yypact_value_is_default(Yystate) \
  1636. + (!!((Yystate) == (-81)))
  1637. +
  1638. +#define YYTABLE_NINF -1
  1639. +
  1640. +#define yytable_value_is_error(Yytable_value) \
  1641. + 0
  1642. +
  1643. + /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  1644. + STATE-NUM. */
  1645. +static const yytype_int8 yypact[] =
  1646. {
  1647. - 0, 2, 5, 0, 2, 0, 2, 4, 2, 2,
  1648. - 3, 4, 3, 4, 5, 0, 2, 4, 2, 3,
  1649. - 2, 2, 3, 4, 2, 9, 5, 2, 0, 2,
  1650. - 2, 3, 1, 2, 2, 2, 1, 1, 3, 1,
  1651. - 1, 5, 1, 3, 1, 3, 1, 3, 1, 3,
  1652. - 1, 3, 1, 3, 3, 1, 3, 3, 3, 3,
  1653. - 3, 3, 1, 3, 3, 1, 3, 3, 3, 1,
  1654. - 1, 2, 2, 2, 0, 2, 2, 0, 2, 2,
  1655. - 2, 3, 2
  1656. + 16, -11, 21, 10, -81, 25, 10, 19, 10, -81,
  1657. + -81, -9, 25, -81, 2, 51, -81, -9, -9, -9,
  1658. + -81, 1, -81, -6, 50, 14, 28, 29, 36, 3,
  1659. + 58, 44, -3, -81, 47, -81, -81, 65, 68, 2,
  1660. + 2, -81, -81, -81, -81, -9, -9, -9, -9, -9,
  1661. + -9, -9, -9, -9, -9, -9, -9, -9, -9, -9,
  1662. + -9, -9, -9, -9, -81, 63, 69, 2, -81, -81,
  1663. + 50, 57, 14, 28, 29, 36, 3, 3, 58, 58,
  1664. + 58, 58, 44, 44, -3, -3, -81, -81, -81, 79,
  1665. + 80, -8, 63, -81, 72, 63, -81, -81, -9, 76,
  1666. + 77, -81, -81, -81, -81, -81, 78, -81, -81, -81,
  1667. + -81, -81, 35, 4, -81, -81, -81, -81, 86, -81,
  1668. + -81, -81, 73, -81, -81, 33, 71, 84, 39, -81,
  1669. + -81, -81, -81, -81, 41, -81, -81, -81, 25, -81,
  1670. + 74, 25, 75, -81
  1671. };
  1672. -/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
  1673. - Performed when YYTABLE doesn't specify something else to do. Zero
  1674. - means the default is an error. */
  1675. + /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
  1676. + Performed when YYTABLE does not specify something else to do. Zero
  1677. + means the default is an error. */
  1678. static const yytype_uint8 yydefact[] =
  1679. {
  1680. - 0, 0, 0, 3, 1, 0, 5, 4, 0, 0,
  1681. - 0, 5, 36, 37, 0, 0, 8, 0, 2, 6,
  1682. - 0, 0, 0, 70, 0, 39, 40, 42, 44, 46,
  1683. - 48, 50, 52, 55, 62, 65, 69, 0, 15, 9,
  1684. - 0, 0, 0, 0, 71, 72, 73, 38, 0, 0,
  1685. + 0, 0, 0, 3, 1, 0, 0, 0, 3, 34,
  1686. + 35, 0, 0, 6, 0, 2, 4, 0, 0, 0,
  1687. + 68, 0, 37, 38, 40, 42, 44, 46, 48, 50,
  1688. + 53, 60, 63, 67, 0, 13, 7, 0, 0, 0,
  1689. + 0, 69, 70, 71, 36, 0, 0, 0, 0, 0,
  1690. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1691. - 0, 0, 0, 0, 0, 0, 0, 7, 77, 0,
  1692. - 0, 12, 10, 43, 0, 45, 47, 49, 51, 53,
  1693. - 54, 58, 59, 57, 56, 60, 61, 63, 64, 67,
  1694. - 66, 68, 0, 0, 0, 0, 16, 0, 77, 13,
  1695. - 11, 0, 0, 0, 18, 28, 80, 20, 82, 0,
  1696. - 79, 78, 41, 19, 81, 0, 0, 14, 27, 17,
  1697. - 29, 0, 21, 30, 24, 0, 74, 32, 0, 0,
  1698. - 0, 0, 35, 34, 22, 33, 31, 0, 75, 76,
  1699. - 23, 0, 26, 0, 0, 0, 25
  1700. + 0, 0, 0, 0, 5, 75, 0, 0, 10, 8,
  1701. + 41, 0, 43, 45, 47, 49, 51, 52, 56, 57,
  1702. + 55, 54, 58, 59, 61, 62, 65, 64, 66, 0,
  1703. + 0, 0, 0, 14, 0, 75, 11, 9, 0, 0,
  1704. + 0, 16, 26, 78, 18, 80, 0, 77, 76, 39,
  1705. + 17, 79, 0, 0, 12, 25, 15, 27, 0, 19,
  1706. + 28, 22, 0, 72, 30, 0, 0, 0, 0, 33,
  1707. + 32, 20, 31, 29, 0, 73, 74, 21, 0, 24,
  1708. + 0, 0, 0, 23
  1709. };
  1710. -/* YYDEFGOTO[NTERM-NUM]. */
  1711. -static const yytype_int16 yydefgoto[] =
  1712. + /* YYPGOTO[NTERM-NUM]. */
  1713. +static const yytype_int8 yypgoto[] =
  1714. {
  1715. - -1, 2, 6, 10, 11, 18, 39, 68, 96, 115,
  1716. - 116, 128, 23, 24, 25, 26, 27, 28, 29, 30,
  1717. - 31, 32, 33, 34, 35, 36, 131, 97, 98
  1718. + -81, -81, 100, 104, -81, -38, -81, -80, -81, -81,
  1719. + -81, -5, 66, 13, -81, 70, 67, 81, 64, 82,
  1720. + 37, 27, 34, 38, -14, -81, 22, 24
  1721. };
  1722. -/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  1723. - STATE-NUM. */
  1724. -#define YYPACT_NINF -84
  1725. -static const yytype_int8 yypact[] =
  1726. + /* YYDEFGOTO[NTERM-NUM]. */
  1727. +static const yytype_int16 yydefgoto[] =
  1728. {
  1729. - 15, -12, 35, 42, -84, 27, 9, -84, 24, 9,
  1730. - 43, 9, -84, -84, -10, 24, -84, 60, 44, -84,
  1731. - -10, -10, -10, -84, 55, -84, -7, 52, 53, 51,
  1732. - 54, 10, 2, 38, 37, -4, -84, 68, -84, -84,
  1733. - 71, 73, 60, 60, -84, -84, -84, -84, -10, -10,
  1734. - -10, -10, -10, -10, -10, -10, -10, -10, -10, -10,
  1735. - -10, -10, -10, -10, -10, -10, -10, -84, 56, 72,
  1736. - 60, -84, -84, 52, 61, 53, 51, 54, 10, 2,
  1737. - 2, 38, 38, 38, 38, 37, 37, -4, -4, -84,
  1738. - -84, -84, 81, 83, 34, 56, -84, 74, 56, -84,
  1739. - -84, -10, 76, 78, -84, -84, -84, -84, -84, 79,
  1740. - -84, -84, -84, -84, -84, -6, 3, -84, -84, -84,
  1741. - -84, 87, -84, -84, -84, 75, -84, -84, 32, 70,
  1742. - 86, 36, -84, -84, -84, -84, -84, 47, -84, -84,
  1743. - -84, 24, -84, 77, 24, 80, -84
  1744. + -1, 2, 7, 8, 15, 36, 65, 93, 112, 113,
  1745. + 125, 20, 21, 22, 23, 24, 25, 26, 27, 28,
  1746. + 29, 30, 31, 32, 33, 128, 94, 95
  1747. };
  1748. -/* YYPGOTO[NTERM-NUM]. */
  1749. -static const yytype_int8 yypgoto[] =
  1750. + /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
  1751. + positive, shift that token. If negative, reduce the rule whose
  1752. + number is the opposite. If YYTABLE_NINF, syntax error. */
  1753. +static const yytype_uint8 yytable[] =
  1754. {
  1755. - -84, -84, -84, 98, 101, -84, -41, -84, -83, -84,
  1756. - -84, -84, -8, 63, 12, -84, 66, 67, 65, 69,
  1757. - 82, 29, 18, 25, 26, -17, -84, 20, 28
  1758. + 12, 68, 69, 41, 42, 43, 45, 34, 9, 10,
  1759. + 53, 54, 104, 3, 5, 107, 101, 118, 35, 1,
  1760. + 102, 4, 61, 11, 119, 120, 121, 122, 35, 97,
  1761. + 46, 6, 55, 17, 123, 44, 18, 19, 56, 124,
  1762. + 62, 63, 9, 10, 14, 51, 52, 86, 87, 88,
  1763. + 9, 10, 48, 103, 129, 130, 115, 11, 135, 116,
  1764. + 136, 47, 131, 57, 58, 11, 37, 49, 117, 50,
  1765. + 137, 64, 38, 39, 138, 139, 40, 89, 90, 91,
  1766. + 78, 79, 80, 81, 92, 59, 60, 66, 76, 77,
  1767. + 67, 82, 83, 96, 98, 99, 100, 84, 85, 106,
  1768. + 110, 111, 114, 126, 134, 127, 133, 141, 16, 143,
  1769. + 13, 109, 71, 74, 72, 70, 105, 108, 0, 0,
  1770. + 132, 0, 0, 0, 0, 0, 0, 0, 0, 73,
  1771. + 0, 0, 75, 140, 0, 0, 142
  1772. };
  1773. -/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  1774. - positive, shift that token. If negative, reduce the rule which
  1775. - number is the opposite. If YYTABLE_NINF, syntax error. */
  1776. -#define YYTABLE_NINF -1
  1777. -static const yytype_uint8 yytable[] =
  1778. +static const yytype_int16 yycheck[] =
  1779. {
  1780. - 15, 71, 72, 44, 45, 46, 48, 37, 12, 13,
  1781. - 56, 57, 107, 3, 8, 110, 118, 121, 1, 119,
  1782. - 54, 55, 64, 14, 122, 123, 124, 125, 120, 100,
  1783. - 49, 9, 58, 20, 126, 4, 21, 22, 59, 127,
  1784. - 65, 66, 12, 13, 60, 61, 5, 89, 90, 91,
  1785. - 12, 13, 7, 106, 132, 133, 138, 14, 139, 104,
  1786. - 40, 38, 134, 105, 50, 14, 41, 42, 140, 17,
  1787. - 43, 92, 93, 94, 81, 82, 83, 84, 95, 62,
  1788. - 63, 141, 142, 79, 80, 85, 86, 38, 87, 88,
  1789. - 47, 52, 51, 67, 69, 53, 70, 99, 102, 101,
  1790. - 103, 113, 109, 114, 117, 129, 136, 137, 130, 19,
  1791. - 16, 144, 74, 112, 73, 146, 76, 75, 111, 0,
  1792. - 135, 77, 0, 108, 0, 0, 0, 0, 0, 0,
  1793. - 0, 0, 0, 143, 0, 78, 145
  1794. + 5, 39, 40, 17, 18, 19, 12, 12, 17, 18,
  1795. + 7, 8, 92, 24, 4, 95, 24, 13, 26, 3,
  1796. + 28, 0, 25, 32, 20, 21, 22, 23, 26, 67,
  1797. + 36, 21, 29, 42, 30, 34, 45, 46, 35, 35,
  1798. + 43, 44, 17, 18, 25, 9, 10, 61, 62, 63,
  1799. + 17, 18, 38, 91, 21, 22, 21, 32, 19, 24,
  1800. + 21, 11, 29, 5, 6, 32, 15, 39, 33, 40,
  1801. + 31, 24, 21, 22, 33, 34, 25, 14, 15, 16,
  1802. + 53, 54, 55, 56, 21, 41, 42, 22, 51, 52,
  1803. + 22, 57, 58, 24, 37, 16, 16, 59, 60, 27,
  1804. + 24, 24, 24, 17, 20, 32, 35, 33, 8, 34,
  1805. + 6, 98, 46, 49, 47, 45, 92, 95, -1, -1,
  1806. + 125, -1, -1, -1, -1, -1, -1, -1, -1, 48,
  1807. + -1, -1, 50, 138, -1, -1, 141
  1808. };
  1809. -#define yypact_value_is_default(yystate) \
  1810. - ((yystate) == (-84))
  1811. -
  1812. -#define yytable_value_is_error(yytable_value) \
  1813. - YYID (0)
  1814. + /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  1815. + symbol of state STATE-NUM. */
  1816. +static const yytype_uint8 yystos[] =
  1817. +{
  1818. + 0, 3, 48, 24, 0, 4, 21, 49, 50, 17,
  1819. + 18, 32, 58, 50, 25, 51, 49, 42, 45, 46,
  1820. + 58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
  1821. + 68, 69, 70, 71, 58, 26, 52, 15, 21, 22,
  1822. + 25, 71, 71, 71, 34, 12, 36, 11, 38, 39,
  1823. + 40, 9, 10, 7, 8, 29, 35, 5, 6, 41,
  1824. + 42, 25, 43, 44, 24, 53, 22, 22, 52, 52,
  1825. + 62, 59, 63, 64, 65, 66, 67, 67, 68, 68,
  1826. + 68, 68, 69, 69, 70, 70, 71, 71, 71, 14,
  1827. + 15, 16, 21, 54, 73, 74, 24, 52, 37, 16,
  1828. + 16, 24, 28, 52, 54, 74, 27, 54, 73, 60,
  1829. + 24, 24, 55, 56, 24, 21, 24, 33, 13, 20,
  1830. + 21, 22, 23, 30, 35, 57, 17, 32, 72, 21,
  1831. + 22, 29, 58, 35, 20, 19, 21, 31, 33, 34,
  1832. + 58, 33, 58, 34
  1833. +};
  1834. -static const yytype_int16 yycheck[] =
  1835. + /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  1836. +static const yytype_uint8 yyr1[] =
  1837. {
  1838. - 8, 42, 43, 20, 21, 22, 13, 15, 18, 19,
  1839. - 8, 9, 95, 25, 5, 98, 22, 14, 3, 25,
  1840. - 10, 11, 26, 33, 21, 22, 23, 24, 34, 70,
  1841. - 37, 22, 30, 43, 31, 0, 46, 47, 36, 36,
  1842. - 44, 45, 18, 19, 6, 7, 4, 64, 65, 66,
  1843. - 18, 19, 25, 94, 22, 23, 20, 33, 22, 25,
  1844. - 16, 27, 30, 29, 12, 33, 22, 23, 32, 26,
  1845. - 26, 15, 16, 17, 56, 57, 58, 59, 22, 42,
  1846. - 43, 34, 35, 54, 55, 60, 61, 27, 62, 63,
  1847. - 35, 40, 39, 25, 23, 41, 23, 25, 17, 38,
  1848. - 17, 25, 28, 25, 25, 18, 36, 21, 33, 11,
  1849. - 9, 34, 49, 101, 48, 35, 51, 50, 98, -1,
  1850. - 128, 52, -1, 95, -1, -1, -1, -1, -1, -1,
  1851. - -1, -1, -1, 141, -1, 53, 144
  1852. + 0, 47, 48, 49, 49, 50, 50, 51, 51, 51,
  1853. + 51, 51, 52, 53, 53, 54, 54, 54, 54, 55,
  1854. + 55, 55, 55, 55, 55, 55, 56, 56, 56, 57,
  1855. + 57, 57, 57, 57, 58, 58, 58, 59, 60, 60,
  1856. + 61, 61, 62, 62, 63, 63, 64, 64, 65, 65,
  1857. + 66, 66, 66, 67, 67, 67, 67, 67, 68, 68,
  1858. + 68, 69, 69, 69, 70, 70, 70, 70, 71, 71,
  1859. + 71, 71, 72, 72, 72, 73, 73, 73, 74, 74,
  1860. + 74
  1861. };
  1862. -/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  1863. - symbol of state STATE-NUM. */
  1864. -static const yytype_uint8 yystos[] =
  1865. + /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
  1866. +static const yytype_uint8 yyr2[] =
  1867. {
  1868. - 0, 3, 49, 25, 0, 4, 50, 25, 5, 22,
  1869. - 51, 52, 18, 19, 33, 60, 52, 26, 53, 51,
  1870. - 43, 46, 47, 60, 61, 62, 63, 64, 65, 66,
  1871. - 67, 68, 69, 70, 71, 72, 73, 60, 27, 54,
  1872. - 16, 22, 23, 26, 73, 73, 73, 35, 13, 37,
  1873. - 12, 39, 40, 41, 10, 11, 8, 9, 30, 36,
  1874. - 6, 7, 42, 43, 26, 44, 45, 25, 55, 23,
  1875. - 23, 54, 54, 64, 61, 65, 66, 67, 68, 69,
  1876. - 69, 70, 70, 70, 70, 71, 71, 72, 72, 73,
  1877. - 73, 73, 15, 16, 17, 22, 56, 75, 76, 25,
  1878. - 54, 38, 17, 17, 25, 29, 54, 56, 76, 28,
  1879. - 56, 75, 62, 25, 25, 57, 58, 25, 22, 25,
  1880. - 34, 14, 21, 22, 23, 24, 31, 36, 59, 18,
  1881. - 33, 74, 22, 23, 30, 60, 36, 21, 20, 22,
  1882. - 32, 34, 35, 60, 34, 60, 35
  1883. + 0, 2, 4, 0, 2, 4, 2, 2, 3, 4,
  1884. + 3, 4, 5, 0, 2, 4, 2, 3, 2, 2,
  1885. + 3, 4, 2, 9, 5, 2, 0, 2, 2, 3,
  1886. + 1, 2, 2, 2, 1, 1, 3, 1, 1, 5,
  1887. + 1, 3, 1, 3, 1, 3, 1, 3, 1, 3,
  1888. + 1, 3, 3, 1, 3, 3, 3, 3, 3, 3,
  1889. + 1, 3, 3, 1, 3, 3, 3, 1, 1, 2,
  1890. + 2, 2, 0, 2, 2, 0, 2, 2, 2, 3,
  1891. + 2
  1892. };
  1893. -#define yyerrok (yyerrstatus = 0)
  1894. -#define yyclearin (yychar = YYEMPTY)
  1895. -#define YYEMPTY (-2)
  1896. -#define YYEOF 0
  1897. -
  1898. -#define YYACCEPT goto yyacceptlab
  1899. -#define YYABORT goto yyabortlab
  1900. -#define YYERROR goto yyerrorlab
  1901. -
  1902. -
  1903. -/* Like YYERROR except do call yyerror. This remains here temporarily
  1904. - to ease the transition to the new meaning of YYERROR, for GCC.
  1905. - Once GCC version 2 has supplanted version 1, this can go. However,
  1906. - YYFAIL appears to be in use. Nevertheless, it is formally deprecated
  1907. - in Bison 2.4.2's NEWS entry, where a plan to phase it out is
  1908. - discussed. */
  1909. -
  1910. -#define YYFAIL goto yyerrlab
  1911. -#if defined YYFAIL
  1912. - /* This is here to suppress warnings from the GCC cpp's
  1913. - -Wunused-macros. Normally we don't worry about that warning, but
  1914. - some users do, and we want to make it easy for users to remove
  1915. - YYFAIL uses, which will produce warnings from Bison 2.5. */
  1916. -#endif
  1917. -#define YYRECOVERING() (!!yyerrstatus)
  1918. +#define yyerrok (yyerrstatus = 0)
  1919. +#define yyclearin (yychar = YYEMPTY)
  1920. +#define YYEMPTY (-2)
  1921. +#define YYEOF 0
  1922. +
  1923. +#define YYACCEPT goto yyacceptlab
  1924. +#define YYABORT goto yyabortlab
  1925. +#define YYERROR goto yyerrorlab
  1926. -#define YYBACKUP(Token, Value) \
  1927. -do \
  1928. - if (yychar == YYEMPTY && yylen == 1) \
  1929. - { \
  1930. - yychar = (Token); \
  1931. - yylval = (Value); \
  1932. - YYPOPSTACK (1); \
  1933. - goto yybackup; \
  1934. - } \
  1935. - else \
  1936. - { \
  1937. - yyerror (YY_("syntax error: cannot back up")); \
  1938. - YYERROR; \
  1939. - } \
  1940. -while (YYID (0))
  1941. +#define YYRECOVERING() (!!yyerrstatus)
  1942. -#define YYTERROR 1
  1943. -#define YYERRCODE 256
  1944. +#define YYBACKUP(Token, Value) \
  1945. +do \
  1946. + if (yychar == YYEMPTY) \
  1947. + { \
  1948. + yychar = (Token); \
  1949. + yylval = (Value); \
  1950. + YYPOPSTACK (yylen); \
  1951. + yystate = *yyssp; \
  1952. + goto yybackup; \
  1953. + } \
  1954. + else \
  1955. + { \
  1956. + yyerror (YY_("syntax error: cannot back up")); \
  1957. + YYERROR; \
  1958. + } \
  1959. +while (0)
  1960. +
  1961. +/* Error token number */
  1962. +#define YYTERROR 1
  1963. +#define YYERRCODE 256
  1964. /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
  1965. If N is 0, then set CURRENT to the empty location which ends
  1966. the previous symbol: RHS[0] (always defined). */
  1967. -#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  1968. #ifndef YYLLOC_DEFAULT
  1969. -# define YYLLOC_DEFAULT(Current, Rhs, N) \
  1970. - do \
  1971. - if (YYID (N)) \
  1972. - { \
  1973. - (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
  1974. - (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
  1975. - (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
  1976. - (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
  1977. - } \
  1978. - else \
  1979. - { \
  1980. - (Current).first_line = (Current).last_line = \
  1981. - YYRHSLOC (Rhs, 0).last_line; \
  1982. - (Current).first_column = (Current).last_column = \
  1983. - YYRHSLOC (Rhs, 0).last_column; \
  1984. - } \
  1985. - while (YYID (0))
  1986. +# define YYLLOC_DEFAULT(Current, Rhs, N) \
  1987. + do \
  1988. + if (N) \
  1989. + { \
  1990. + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
  1991. + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
  1992. + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
  1993. + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
  1994. + } \
  1995. + else \
  1996. + { \
  1997. + (Current).first_line = (Current).last_line = \
  1998. + YYRHSLOC (Rhs, 0).last_line; \
  1999. + (Current).first_column = (Current).last_column = \
  2000. + YYRHSLOC (Rhs, 0).last_column; \
  2001. + } \
  2002. + while (0)
  2003. #endif
  2004. +#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  2005. +
  2006. +
  2007. +/* Enable debugging if requested. */
  2008. +#if YYDEBUG
  2009. +
  2010. +# ifndef YYFPRINTF
  2011. +# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  2012. +# define YYFPRINTF fprintf
  2013. +# endif
  2014. +
  2015. +# define YYDPRINTF(Args) \
  2016. +do { \
  2017. + if (yydebug) \
  2018. + YYFPRINTF Args; \
  2019. +} while (0)
  2020. +
  2021. /* YY_LOCATION_PRINT -- Print the location on the stream.
  2022. This macro was not mandated originally: define only if we know
  2023. @@ -799,82 +779,73 @@ while (YYID (0))
  2024. #ifndef YY_LOCATION_PRINT
  2025. # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
  2026. -# define YY_LOCATION_PRINT(File, Loc) \
  2027. - fprintf (File, "%d.%d-%d.%d", \
  2028. - (Loc).first_line, (Loc).first_column, \
  2029. - (Loc).last_line, (Loc).last_column)
  2030. -# else
  2031. -# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
  2032. -# endif
  2033. -#endif
  2034. -
  2035. -/* YYLEX -- calling `yylex' with the right arguments. */
  2036. +/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
  2037. -#ifdef YYLEX_PARAM
  2038. -# define YYLEX yylex (YYLEX_PARAM)
  2039. -#else
  2040. -# define YYLEX yylex ()
  2041. -#endif
  2042. +YY_ATTRIBUTE_UNUSED
  2043. +static unsigned
  2044. +yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
  2045. +{
  2046. + unsigned res = 0;
  2047. + int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
  2048. + if (0 <= yylocp->first_line)
  2049. + {
  2050. + res += YYFPRINTF (yyo, "%d", yylocp->first_line);
  2051. + if (0 <= yylocp->first_column)
  2052. + res += YYFPRINTF (yyo, ".%d", yylocp->first_column);
  2053. + }
  2054. + if (0 <= yylocp->last_line)
  2055. + {
  2056. + if (yylocp->first_line < yylocp->last_line)
  2057. + {
  2058. + res += YYFPRINTF (yyo, "-%d", yylocp->last_line);
  2059. + if (0 <= end_col)
  2060. + res += YYFPRINTF (yyo, ".%d", end_col);
  2061. + }
  2062. + else if (0 <= end_col && yylocp->first_column < end_col)
  2063. + res += YYFPRINTF (yyo, "-%d", end_col);
  2064. + }
  2065. + return res;
  2066. + }
  2067. -/* Enable debugging if requested. */
  2068. -#if YYDEBUG
  2069. +# define YY_LOCATION_PRINT(File, Loc) \
  2070. + yy_location_print_ (File, &(Loc))
  2071. -# ifndef YYFPRINTF
  2072. -# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  2073. -# define YYFPRINTF fprintf
  2074. +# else
  2075. +# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
  2076. # endif
  2077. +#endif
  2078. -# define YYDPRINTF(Args) \
  2079. -do { \
  2080. - if (yydebug) \
  2081. - YYFPRINTF Args; \
  2082. -} while (YYID (0))
  2083. -
  2084. -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
  2085. -do { \
  2086. - if (yydebug) \
  2087. - { \
  2088. - YYFPRINTF (stderr, "%s ", Title); \
  2089. - yy_symbol_print (stderr, \
  2090. - Type, Value, Location); \
  2091. - YYFPRINTF (stderr, "\n"); \
  2092. - } \
  2093. -} while (YYID (0))
  2094. +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
  2095. +do { \
  2096. + if (yydebug) \
  2097. + { \
  2098. + YYFPRINTF (stderr, "%s ", Title); \
  2099. + yy_symbol_print (stderr, \
  2100. + Type, Value, Location); \
  2101. + YYFPRINTF (stderr, "\n"); \
  2102. + } \
  2103. +} while (0)
  2104. -/*--------------------------------.
  2105. -| Print this symbol on YYOUTPUT. |
  2106. -`--------------------------------*/
  2107. -/*ARGSUSED*/
  2108. -#if (defined __STDC__ || defined __C99__FUNC__ \
  2109. - || defined __cplusplus || defined _MSC_VER)
  2110. +/*----------------------------------------.
  2111. +| Print this symbol's value on YYOUTPUT. |
  2112. +`----------------------------------------*/
  2113. +
  2114. static void
  2115. yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
  2116. -#else
  2117. -static void
  2118. -yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp)
  2119. - FILE *yyoutput;
  2120. - int yytype;
  2121. - YYSTYPE const * const yyvaluep;
  2122. - YYLTYPE const * const yylocationp;
  2123. -#endif
  2124. {
  2125. + FILE *yyo = yyoutput;
  2126. + YYUSE (yyo);
  2127. + YYUSE (yylocationp);
  2128. if (!yyvaluep)
  2129. return;
  2130. - YYUSE (yylocationp);
  2131. # ifdef YYPRINT
  2132. if (yytype < YYNTOKENS)
  2133. YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  2134. -# else
  2135. - YYUSE (yyoutput);
  2136. # endif
  2137. - switch (yytype)
  2138. - {
  2139. - default:
  2140. - break;
  2141. - }
  2142. + YYUSE (yytype);
  2143. }
  2144. @@ -882,23 +853,11 @@ yy_symbol_value_print (yyoutput, yytype,
  2145. | Print this symbol on YYOUTPUT. |
  2146. `--------------------------------*/
  2147. -#if (defined __STDC__ || defined __C99__FUNC__ \
  2148. - || defined __cplusplus || defined _MSC_VER)
  2149. static void
  2150. yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
  2151. -#else
  2152. -static void
  2153. -yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp)
  2154. - FILE *yyoutput;
  2155. - int yytype;
  2156. - YYSTYPE const * const yyvaluep;
  2157. - YYLTYPE const * const yylocationp;
  2158. -#endif
  2159. {
  2160. - if (yytype < YYNTOKENS)
  2161. - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  2162. - else
  2163. - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  2164. + YYFPRINTF (yyoutput, "%s %s (",
  2165. + yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
  2166. YY_LOCATION_PRINT (yyoutput, *yylocationp);
  2167. YYFPRINTF (yyoutput, ": ");
  2168. @@ -911,16 +870,8 @@ yy_symbol_print (yyoutput, yytype, yyval
  2169. | TOP (included). |
  2170. `------------------------------------------------------------------*/
  2171. -#if (defined __STDC__ || defined __C99__FUNC__ \
  2172. - || defined __cplusplus || defined _MSC_VER)
  2173. static void
  2174. yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
  2175. -#else
  2176. -static void
  2177. -yy_stack_print (yybottom, yytop)
  2178. - yytype_int16 *yybottom;
  2179. - yytype_int16 *yytop;
  2180. -#endif
  2181. {
  2182. YYFPRINTF (stderr, "Stack now");
  2183. for (; yybottom <= yytop; yybottom++)
  2184. @@ -931,50 +882,42 @@ yy_stack_print (yybottom, yytop)
  2185. YYFPRINTF (stderr, "\n");
  2186. }
  2187. -# define YY_STACK_PRINT(Bottom, Top) \
  2188. -do { \
  2189. - if (yydebug) \
  2190. - yy_stack_print ((Bottom), (Top)); \
  2191. -} while (YYID (0))
  2192. +# define YY_STACK_PRINT(Bottom, Top) \
  2193. +do { \
  2194. + if (yydebug) \
  2195. + yy_stack_print ((Bottom), (Top)); \
  2196. +} while (0)
  2197. /*------------------------------------------------.
  2198. | Report that the YYRULE is going to be reduced. |
  2199. `------------------------------------------------*/
  2200. -#if (defined __STDC__ || defined __C99__FUNC__ \
  2201. - || defined __cplusplus || defined _MSC_VER)
  2202. -static void
  2203. -yy_reduce_print (YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule)
  2204. -#else
  2205. static void
  2206. -yy_reduce_print (yyvsp, yylsp, yyrule)
  2207. - YYSTYPE *yyvsp;
  2208. - YYLTYPE *yylsp;
  2209. - int yyrule;
  2210. -#endif
  2211. +yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule)
  2212. {
  2213. + unsigned long int yylno = yyrline[yyrule];
  2214. int yynrhs = yyr2[yyrule];
  2215. int yyi;
  2216. - unsigned long int yylno = yyrline[yyrule];
  2217. YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
  2218. - yyrule - 1, yylno);
  2219. + yyrule - 1, yylno);
  2220. /* The symbols being reduced. */
  2221. for (yyi = 0; yyi < yynrhs; yyi++)
  2222. {
  2223. YYFPRINTF (stderr, " $%d = ", yyi + 1);
  2224. - yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
  2225. - &(yyvsp[(yyi + 1) - (yynrhs)])
  2226. - , &(yylsp[(yyi + 1) - (yynrhs)]) );
  2227. + yy_symbol_print (stderr,
  2228. + yystos[yyssp[yyi + 1 - yynrhs]],
  2229. + &(yyvsp[(yyi + 1) - (yynrhs)])
  2230. + , &(yylsp[(yyi + 1) - (yynrhs)]) );
  2231. YYFPRINTF (stderr, "\n");
  2232. }
  2233. }
  2234. -# define YY_REDUCE_PRINT(Rule) \
  2235. -do { \
  2236. - if (yydebug) \
  2237. - yy_reduce_print (yyvsp, yylsp, Rule); \
  2238. -} while (YYID (0))
  2239. +# define YY_REDUCE_PRINT(Rule) \
  2240. +do { \
  2241. + if (yydebug) \
  2242. + yy_reduce_print (yyssp, yyvsp, yylsp, Rule); \
  2243. +} while (0)
  2244. /* Nonzero means print parse trace. It is left uninitialized so that
  2245. multiple parsers can coexist. */
  2246. @@ -988,7 +931,7 @@ int yydebug;
  2247. /* YYINITDEPTH -- initial size of the parser's stacks. */
  2248. -#ifndef YYINITDEPTH
  2249. +#ifndef YYINITDEPTH
  2250. # define YYINITDEPTH 200
  2251. #endif
  2252. @@ -1011,15 +954,8 @@ int yydebug;
  2253. # define yystrlen strlen
  2254. # else
  2255. /* Return the length of YYSTR. */
  2256. -#if (defined __STDC__ || defined __C99__FUNC__ \
  2257. - || defined __cplusplus || defined _MSC_VER)
  2258. static YYSIZE_T
  2259. yystrlen (const char *yystr)
  2260. -#else
  2261. -static YYSIZE_T
  2262. -yystrlen (yystr)
  2263. - const char *yystr;
  2264. -#endif
  2265. {
  2266. YYSIZE_T yylen;
  2267. for (yylen = 0; yystr[yylen]; yylen++)
  2268. @@ -1035,16 +971,8 @@ yystrlen (yystr)
  2269. # else
  2270. /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  2271. YYDEST. */
  2272. -#if (defined __STDC__ || defined __C99__FUNC__ \
  2273. - || defined __cplusplus || defined _MSC_VER)
  2274. static char *
  2275. yystpcpy (char *yydest, const char *yysrc)
  2276. -#else
  2277. -static char *
  2278. -yystpcpy (yydest, yysrc)
  2279. - char *yydest;
  2280. - const char *yysrc;
  2281. -#endif
  2282. {
  2283. char *yyd = yydest;
  2284. const char *yys = yysrc;
  2285. @@ -1074,27 +1002,27 @@ yytnamerr (char *yyres, const char *yyst
  2286. char const *yyp = yystr;
  2287. for (;;)
  2288. - switch (*++yyp)
  2289. - {
  2290. - case '\'':
  2291. - case ',':
  2292. - goto do_not_strip_quotes;
  2293. -
  2294. - case '\\':
  2295. - if (*++yyp != '\\')
  2296. - goto do_not_strip_quotes;
  2297. - /* Fall through. */
  2298. - default:
  2299. - if (yyres)
  2300. - yyres[yyn] = *yyp;
  2301. - yyn++;
  2302. - break;
  2303. -
  2304. - case '"':
  2305. - if (yyres)
  2306. - yyres[yyn] = '\0';
  2307. - return yyn;
  2308. - }
  2309. + switch (*++yyp)
  2310. + {
  2311. + case '\'':
  2312. + case ',':
  2313. + goto do_not_strip_quotes;
  2314. +
  2315. + case '\\':
  2316. + if (*++yyp != '\\')
  2317. + goto do_not_strip_quotes;
  2318. + /* Fall through. */
  2319. + default:
  2320. + if (yyres)
  2321. + yyres[yyn] = *yyp;
  2322. + yyn++;
  2323. + break;
  2324. +
  2325. + case '"':
  2326. + if (yyres)
  2327. + yyres[yyn] = '\0';
  2328. + return yyn;
  2329. + }
  2330. do_not_strip_quotes: ;
  2331. }
  2332. @@ -1117,12 +1045,11 @@ static int
  2333. yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
  2334. yytype_int16 *yyssp, int yytoken)
  2335. {
  2336. - YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]);
  2337. + YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
  2338. YYSIZE_T yysize = yysize0;
  2339. - YYSIZE_T yysize1;
  2340. enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  2341. /* Internationalized format string. */
  2342. - const char *yyformat = 0;
  2343. + const char *yyformat = YY_NULLPTR;
  2344. /* Arguments of yyformat. */
  2345. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  2346. /* Number of reported tokens (one for the "unexpected", one per
  2347. @@ -1130,10 +1057,6 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, c
  2348. int yycount = 0;
  2349. /* There are many possibilities here to consider:
  2350. - - Assume YYFAIL is not used. It's too flawed to consider. See
  2351. - <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
  2352. - for details. YYERROR is fine as it does not invoke this
  2353. - function.
  2354. - If this state is a consistent state with a default action, then
  2355. the only way this function was invoked is if the default action
  2356. is an error action. In that case, don't check for expected
  2357. @@ -1182,11 +1105,13 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, c
  2358. break;
  2359. }
  2360. yyarg[yycount++] = yytname[yyx];
  2361. - yysize1 = yysize + yytnamerr (0, yytname[yyx]);
  2362. - if (! (yysize <= yysize1
  2363. - && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
  2364. - return 2;
  2365. - yysize = yysize1;
  2366. + {
  2367. + YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
  2368. + if (! (yysize <= yysize1
  2369. + && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
  2370. + return 2;
  2371. + yysize = yysize1;
  2372. + }
  2373. }
  2374. }
  2375. }
  2376. @@ -1206,10 +1131,12 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, c
  2377. # undef YYCASE_
  2378. }
  2379. - yysize1 = yysize + yystrlen (yyformat);
  2380. - if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
  2381. - return 2;
  2382. - yysize = yysize1;
  2383. + {
  2384. + YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
  2385. + if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
  2386. + return 2;
  2387. + yysize = yysize1;
  2388. + }
  2389. if (*yymsg_alloc < yysize)
  2390. {
  2391. @@ -1246,50 +1173,21 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, c
  2392. | Release the memory associated to this symbol. |
  2393. `-----------------------------------------------*/
  2394. -/*ARGSUSED*/
  2395. -#if (defined __STDC__ || defined __C99__FUNC__ \
  2396. - || defined __cplusplus || defined _MSC_VER)
  2397. static void
  2398. yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
  2399. -#else
  2400. -static void
  2401. -yydestruct (yymsg, yytype, yyvaluep, yylocationp)
  2402. - const char *yymsg;
  2403. - int yytype;
  2404. - YYSTYPE *yyvaluep;
  2405. - YYLTYPE *yylocationp;
  2406. -#endif
  2407. {
  2408. YYUSE (yyvaluep);
  2409. YYUSE (yylocationp);
  2410. -
  2411. if (!yymsg)
  2412. yymsg = "Deleting";
  2413. YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
  2414. - switch (yytype)
  2415. - {
  2416. -
  2417. - default:
  2418. - break;
  2419. - }
  2420. + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  2421. + YYUSE (yytype);
  2422. + YY_IGNORE_MAYBE_UNINITIALIZED_END
  2423. }
  2424. -/* Prevent warnings from -Wmissing-prototypes. */
  2425. -#ifdef YYPARSE_PARAM
  2426. -#if defined __STDC__ || defined __cplusplus
  2427. -int yyparse (void *YYPARSE_PARAM);
  2428. -#else
  2429. -int yyparse ();
  2430. -#endif
  2431. -#else /* ! YYPARSE_PARAM */
  2432. -#if defined __STDC__ || defined __cplusplus
  2433. -int yyparse (void);
  2434. -#else
  2435. -int yyparse ();
  2436. -#endif
  2437. -#endif /* ! YYPARSE_PARAM */
  2438. /* The lookahead symbol. */
  2439. @@ -1297,10 +1195,12 @@ int yychar;
  2440. /* The semantic value of the lookahead symbol. */
  2441. YYSTYPE yylval;
  2442. -
  2443. /* Location data for the lookahead symbol. */
  2444. -YYLTYPE yylloc;
  2445. -
  2446. +YYLTYPE yylloc
  2447. +# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
  2448. + = { 1, 1, 1, 1 }
  2449. +# endif
  2450. +;
  2451. /* Number of syntax errors so far. */
  2452. int yynerrs;
  2453. @@ -1309,38 +1209,19 @@ int yynerrs;
  2454. | yyparse. |
  2455. `----------*/
  2456. -#ifdef YYPARSE_PARAM
  2457. -#if (defined __STDC__ || defined __C99__FUNC__ \
  2458. - || defined __cplusplus || defined _MSC_VER)
  2459. -int
  2460. -yyparse (void *YYPARSE_PARAM)
  2461. -#else
  2462. -int
  2463. -yyparse (YYPARSE_PARAM)
  2464. - void *YYPARSE_PARAM;
  2465. -#endif
  2466. -#else /* ! YYPARSE_PARAM */
  2467. -#if (defined __STDC__ || defined __C99__FUNC__ \
  2468. - || defined __cplusplus || defined _MSC_VER)
  2469. int
  2470. yyparse (void)
  2471. -#else
  2472. -int
  2473. -yyparse ()
  2474. -
  2475. -#endif
  2476. -#endif
  2477. {
  2478. int yystate;
  2479. /* Number of tokens to shift before error messages enabled. */
  2480. int yyerrstatus;
  2481. /* The stacks and their tools:
  2482. - `yyss': related to states.
  2483. - `yyvs': related to semantic values.
  2484. - `yyls': related to locations.
  2485. + 'yyss': related to states.
  2486. + 'yyvs': related to semantic values.
  2487. + 'yyls': related to locations.
  2488. - Refer to the stacks thru separate pointers, to allow yyoverflow
  2489. + Refer to the stacks through separate pointers, to allow yyoverflow
  2490. to reallocate them elsewhere. */
  2491. /* The state stack. */
  2492. @@ -1366,7 +1247,7 @@ yyparse ()
  2493. int yyn;
  2494. int yyresult;
  2495. /* Lookahead token as an internal (translated) token number. */
  2496. - int yytoken;
  2497. + int yytoken = 0;
  2498. /* The variables used to return semantic value and location from the
  2499. action routines. */
  2500. YYSTYPE yyval;
  2501. @@ -1385,10 +1266,9 @@ yyparse ()
  2502. Keep to zero when no symbol should be popped. */
  2503. int yylen = 0;
  2504. - yytoken = 0;
  2505. - yyss = yyssa;
  2506. - yyvs = yyvsa;
  2507. - yyls = yylsa;
  2508. + yyssp = yyss = yyssa;
  2509. + yyvsp = yyvs = yyvsa;
  2510. + yylsp = yyls = yylsa;
  2511. yystacksize = YYINITDEPTH;
  2512. YYDPRINTF ((stderr, "Starting parse\n"));
  2513. @@ -1397,21 +1277,7 @@ yyparse ()
  2514. yyerrstatus = 0;
  2515. yynerrs = 0;
  2516. yychar = YYEMPTY; /* Cause a token to be read. */
  2517. -
  2518. - /* Initialize stack pointers.
  2519. - Waste one element of value and location stack
  2520. - so that they stay on the same level as the state stack.
  2521. - The wasted elements are never initialized. */
  2522. - yyssp = yyss;
  2523. - yyvsp = yyvs;
  2524. - yylsp = yyls;
  2525. -
  2526. -#if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
  2527. - /* Initialize the default location before parsing starts. */
  2528. - yylloc.first_line = yylloc.last_line = 1;
  2529. - yylloc.first_column = yylloc.last_column = 1;
  2530. -#endif
  2531. -
  2532. + yylsp[0] = yylloc;
  2533. goto yysetstate;
  2534. /*------------------------------------------------------------.
  2535. @@ -1432,26 +1298,26 @@ yyparse ()
  2536. #ifdef yyoverflow
  2537. {
  2538. - /* Give user a chance to reallocate the stack. Use copies of
  2539. - these so that the &'s don't force the real ones into
  2540. - memory. */
  2541. - YYSTYPE *yyvs1 = yyvs;
  2542. - yytype_int16 *yyss1 = yyss;
  2543. - YYLTYPE *yyls1 = yyls;
  2544. -
  2545. - /* Each stack pointer address is followed by the size of the
  2546. - data in use in that stack, in bytes. This used to be a
  2547. - conditional around just the two extra args, but that might
  2548. - be undefined if yyoverflow is a macro. */
  2549. - yyoverflow (YY_("memory exhausted"),
  2550. - &yyss1, yysize * sizeof (*yyssp),
  2551. - &yyvs1, yysize * sizeof (*yyvsp),
  2552. - &yyls1, yysize * sizeof (*yylsp),
  2553. - &yystacksize);
  2554. -
  2555. - yyls = yyls1;
  2556. - yyss = yyss1;
  2557. - yyvs = yyvs1;
  2558. + /* Give user a chance to reallocate the stack. Use copies of
  2559. + these so that the &'s don't force the real ones into
  2560. + memory. */
  2561. + YYSTYPE *yyvs1 = yyvs;
  2562. + yytype_int16 *yyss1 = yyss;
  2563. + YYLTYPE *yyls1 = yyls;
  2564. +
  2565. + /* Each stack pointer address is followed by the size of the
  2566. + data in use in that stack, in bytes. This used to be a
  2567. + conditional around just the two extra args, but that might
  2568. + be undefined if yyoverflow is a macro. */
  2569. + yyoverflow (YY_("memory exhausted"),
  2570. + &yyss1, yysize * sizeof (*yyssp),
  2571. + &yyvs1, yysize * sizeof (*yyvsp),
  2572. + &yyls1, yysize * sizeof (*yylsp),
  2573. + &yystacksize);
  2574. +
  2575. + yyls = yyls1;
  2576. + yyss = yyss1;
  2577. + yyvs = yyvs1;
  2578. }
  2579. #else /* no yyoverflow */
  2580. # ifndef YYSTACK_RELOCATE
  2581. @@ -1459,23 +1325,23 @@ yyparse ()
  2582. # else
  2583. /* Extend the stack our own way. */
  2584. if (YYMAXDEPTH <= yystacksize)
  2585. - goto yyexhaustedlab;
  2586. + goto yyexhaustedlab;
  2587. yystacksize *= 2;
  2588. if (YYMAXDEPTH < yystacksize)
  2589. - yystacksize = YYMAXDEPTH;
  2590. + yystacksize = YYMAXDEPTH;
  2591. {
  2592. - yytype_int16 *yyss1 = yyss;
  2593. - union yyalloc *yyptr =
  2594. - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  2595. - if (! yyptr)
  2596. - goto yyexhaustedlab;
  2597. - YYSTACK_RELOCATE (yyss_alloc, yyss);
  2598. - YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  2599. - YYSTACK_RELOCATE (yyls_alloc, yyls);
  2600. + yytype_int16 *yyss1 = yyss;
  2601. + union yyalloc *yyptr =
  2602. + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  2603. + if (! yyptr)
  2604. + goto yyexhaustedlab;
  2605. + YYSTACK_RELOCATE (yyss_alloc, yyss);
  2606. + YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  2607. + YYSTACK_RELOCATE (yyls_alloc, yyls);
  2608. # undef YYSTACK_RELOCATE
  2609. - if (yyss1 != yyssa)
  2610. - YYSTACK_FREE (yyss1);
  2611. + if (yyss1 != yyssa)
  2612. + YYSTACK_FREE (yyss1);
  2613. }
  2614. # endif
  2615. #endif /* no yyoverflow */
  2616. @@ -1485,10 +1351,10 @@ yyparse ()
  2617. yylsp = yyls + yysize - 1;
  2618. YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  2619. - (unsigned long int) yystacksize));
  2620. + (unsigned long int) yystacksize));
  2621. if (yyss + yystacksize - 1 <= yyssp)
  2622. - YYABORT;
  2623. + YYABORT;
  2624. }
  2625. YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  2626. @@ -1517,7 +1383,7 @@ yybackup:
  2627. if (yychar == YYEMPTY)
  2628. {
  2629. YYDPRINTF ((stderr, "Reading a token: "));
  2630. - yychar = YYLEX;
  2631. + yychar = yylex ();
  2632. }
  2633. if (yychar <= YYEOF)
  2634. @@ -1557,7 +1423,9 @@ yybackup:
  2635. yychar = YYEMPTY;
  2636. yystate = yyn;
  2637. + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  2638. *++yyvsp = yylval;
  2639. + YY_IGNORE_MAYBE_UNINITIALIZED_END
  2640. *++yylsp = yylloc;
  2641. goto yynewstate;
  2642. @@ -1580,7 +1448,7 @@ yyreduce:
  2643. yylen = yyr2[yyn];
  2644. /* If YYLEN is nonzero, implement the default value of the action:
  2645. - `$$ = $1'.
  2646. + '$$ = $1'.
  2647. Otherwise, the following line sets YYVAL to garbage.
  2648. This behavior is undocumented and Bison
  2649. @@ -1595,322 +1463,273 @@ yyreduce:
  2650. switch (yyn)
  2651. {
  2652. case 2:
  2653. -
  2654. -/* Line 1806 of yacc.c */
  2655. -#line 109 "dtc-parser.y"
  2656. +#line 105 "dtc-parser.y" /* yacc.c:1646 */
  2657. {
  2658. - (yyvsp[(5) - (5)].node)->is_plugin = (yyvsp[(3) - (5)].is_plugin);
  2659. - (yyvsp[(5) - (5)].node)->is_root = 1;
  2660. - the_boot_info = build_boot_info((yyvsp[(4) - (5)].re), (yyvsp[(5) - (5)].node),
  2661. - guess_boot_cpuid((yyvsp[(5) - (5)].node)));
  2662. + the_boot_info = build_boot_info((yyvsp[-1].re), (yyvsp[0].node),
  2663. + guess_boot_cpuid((yyvsp[0].node)));
  2664. }
  2665. +#line 1472 "dtc-parser.tab.c" /* yacc.c:1646 */
  2666. break;
  2667. case 3:
  2668. -
  2669. -/* Line 1806 of yacc.c */
  2670. -#line 119 "dtc-parser.y"
  2671. +#line 113 "dtc-parser.y" /* yacc.c:1646 */
  2672. {
  2673. - (yyval.is_plugin) = 0;
  2674. + (yyval.re) = NULL;
  2675. }
  2676. +#line 1480 "dtc-parser.tab.c" /* yacc.c:1646 */
  2677. break;
  2678. case 4:
  2679. -
  2680. -/* Line 1806 of yacc.c */
  2681. -#line 123 "dtc-parser.y"
  2682. +#line 117 "dtc-parser.y" /* yacc.c:1646 */
  2683. {
  2684. - (yyval.is_plugin) = 1;
  2685. + (yyval.re) = chain_reserve_entry((yyvsp[-1].re), (yyvsp[0].re));
  2686. }
  2687. +#line 1488 "dtc-parser.tab.c" /* yacc.c:1646 */
  2688. break;
  2689. case 5:
  2690. -
  2691. -/* Line 1806 of yacc.c */
  2692. -#line 130 "dtc-parser.y"
  2693. +#line 124 "dtc-parser.y" /* yacc.c:1646 */
  2694. {
  2695. - (yyval.re) = NULL;
  2696. + (yyval.re) = build_reserve_entry((yyvsp[-2].integer), (yyvsp[-1].integer));
  2697. }
  2698. +#line 1496 "dtc-parser.tab.c" /* yacc.c:1646 */
  2699. break;
  2700. case 6:
  2701. -
  2702. -/* Line 1806 of yacc.c */
  2703. -#line 134 "dtc-parser.y"
  2704. +#line 128 "dtc-parser.y" /* yacc.c:1646 */
  2705. {
  2706. - (yyval.re) = chain_reserve_entry((yyvsp[(1) - (2)].re), (yyvsp[(2) - (2)].re));
  2707. + add_label(&(yyvsp[0].re)->labels, (yyvsp[-1].labelref));
  2708. + (yyval.re) = (yyvsp[0].re);
  2709. }
  2710. +#line 1505 "dtc-parser.tab.c" /* yacc.c:1646 */
  2711. break;
  2712. case 7:
  2713. -
  2714. -/* Line 1806 of yacc.c */
  2715. -#line 141 "dtc-parser.y"
  2716. +#line 136 "dtc-parser.y" /* yacc.c:1646 */
  2717. {
  2718. - (yyval.re) = build_reserve_entry((yyvsp[(2) - (4)].integer), (yyvsp[(3) - (4)].integer));
  2719. + (yyval.node) = name_node((yyvsp[0].node), "");
  2720. }
  2721. +#line 1513 "dtc-parser.tab.c" /* yacc.c:1646 */
  2722. break;
  2723. case 8:
  2724. -
  2725. -/* Line 1806 of yacc.c */
  2726. -#line 145 "dtc-parser.y"
  2727. +#line 140 "dtc-parser.y" /* yacc.c:1646 */
  2728. {
  2729. - add_label(&(yyvsp[(2) - (2)].re)->labels, (yyvsp[(1) - (2)].labelref));
  2730. - (yyval.re) = (yyvsp[(2) - (2)].re);
  2731. + (yyval.node) = merge_nodes((yyvsp[-2].node), (yyvsp[0].node));
  2732. }
  2733. +#line 1521 "dtc-parser.tab.c" /* yacc.c:1646 */
  2734. break;
  2735. case 9:
  2736. -
  2737. -/* Line 1806 of yacc.c */
  2738. -#line 153 "dtc-parser.y"
  2739. +#line 145 "dtc-parser.y" /* yacc.c:1646 */
  2740. {
  2741. - (yyval.node) = name_node((yyvsp[(2) - (2)].node), "");
  2742. + struct node *target = get_node_by_ref((yyvsp[-3].node), (yyvsp[-1].labelref));
  2743. +
  2744. + add_label(&target->labels, (yyvsp[-2].labelref));
  2745. + if (target)
  2746. + merge_nodes(target, (yyvsp[0].node));
  2747. + else
  2748. + ERROR(&(yylsp[-1]), "Label or path %s not found", (yyvsp[-1].labelref));
  2749. + (yyval.node) = (yyvsp[-3].node);
  2750. }
  2751. +#line 1536 "dtc-parser.tab.c" /* yacc.c:1646 */
  2752. break;
  2753. case 10:
  2754. -
  2755. -/* Line 1806 of yacc.c */
  2756. -#line 157 "dtc-parser.y"
  2757. +#line 156 "dtc-parser.y" /* yacc.c:1646 */
  2758. {
  2759. - (yyval.node) = merge_nodes((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node));
  2760. + struct node *target = get_node_by_ref((yyvsp[-2].node), (yyvsp[-1].labelref));
  2761. +
  2762. + if (target)
  2763. + merge_nodes(target, (yyvsp[0].node));
  2764. + else
  2765. + ERROR(&(yylsp[-1]), "Label or path %s not found", (yyvsp[-1].labelref));
  2766. + (yyval.node) = (yyvsp[-2].node);
  2767. }
  2768. +#line 1550 "dtc-parser.tab.c" /* yacc.c:1646 */
  2769. break;
  2770. case 11:
  2771. -
  2772. -/* Line 1806 of yacc.c */
  2773. -#line 162 "dtc-parser.y"
  2774. +#line 166 "dtc-parser.y" /* yacc.c:1646 */
  2775. {
  2776. - struct node *target = get_node_by_ref((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].labelref));
  2777. + struct node *target = get_node_by_ref((yyvsp[-3].node), (yyvsp[-1].labelref));
  2778. - add_label(&target->labels, (yyvsp[(2) - (4)].labelref));
  2779. if (target)
  2780. - merge_nodes(target, (yyvsp[(4) - (4)].node));
  2781. + delete_node(target);
  2782. else
  2783. - ERROR(&(yylsp[(3) - (4)]), "Label or path %s not found", (yyvsp[(3) - (4)].labelref));
  2784. - (yyval.node) = (yyvsp[(1) - (4)].node);
  2785. + ERROR(&(yylsp[-1]), "Label or path %s not found", (yyvsp[-1].labelref));
  2786. +
  2787. +
  2788. + (yyval.node) = (yyvsp[-3].node);
  2789. }
  2790. +#line 1566 "dtc-parser.tab.c" /* yacc.c:1646 */
  2791. break;
  2792. case 12:
  2793. -
  2794. -/* Line 1806 of yacc.c */
  2795. -#line 173 "dtc-parser.y"
  2796. +#line 181 "dtc-parser.y" /* yacc.c:1646 */
  2797. {
  2798. - struct node *target = get_node_by_ref((yyvsp[(1) - (3)].node), (yyvsp[(2) - (3)].labelref));
  2799. -
  2800. - if (target)
  2801. - merge_nodes(target, (yyvsp[(3) - (3)].node));
  2802. - else
  2803. - ERROR(&(yylsp[(2) - (3)]), "Label or path %s not found", (yyvsp[(2) - (3)].labelref));
  2804. - (yyval.node) = (yyvsp[(1) - (3)].node);
  2805. + (yyval.node) = build_node((yyvsp[-3].proplist), (yyvsp[-2].nodelist));
  2806. }
  2807. +#line 1574 "dtc-parser.tab.c" /* yacc.c:1646 */
  2808. break;
  2809. case 13:
  2810. -
  2811. -/* Line 1806 of yacc.c */
  2812. -#line 183 "dtc-parser.y"
  2813. +#line 188 "dtc-parser.y" /* yacc.c:1646 */
  2814. {
  2815. - struct node *target = get_node_by_ref((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].labelref));
  2816. -
  2817. - if (target)
  2818. - delete_node(target);
  2819. - else
  2820. - ERROR(&(yylsp[(3) - (4)]), "Label or path %s not found", (yyvsp[(3) - (4)].labelref));
  2821. -
  2822. -
  2823. - (yyval.node) = (yyvsp[(1) - (4)].node);
  2824. + (yyval.proplist) = NULL;
  2825. }
  2826. +#line 1582 "dtc-parser.tab.c" /* yacc.c:1646 */
  2827. break;
  2828. case 14:
  2829. -
  2830. -/* Line 1806 of yacc.c */
  2831. -#line 198 "dtc-parser.y"
  2832. +#line 192 "dtc-parser.y" /* yacc.c:1646 */
  2833. {
  2834. - (yyval.node) = build_node((yyvsp[(2) - (5)].proplist), (yyvsp[(3) - (5)].nodelist));
  2835. + (yyval.proplist) = chain_property((yyvsp[0].prop), (yyvsp[-1].proplist));
  2836. }
  2837. +#line 1590 "dtc-parser.tab.c" /* yacc.c:1646 */
  2838. break;
  2839. case 15:
  2840. -
  2841. -/* Line 1806 of yacc.c */
  2842. -#line 205 "dtc-parser.y"
  2843. +#line 199 "dtc-parser.y" /* yacc.c:1646 */
  2844. {
  2845. - (yyval.proplist) = NULL;
  2846. + (yyval.prop) = build_property((yyvsp[-3].propnodename), (yyvsp[-1].data));
  2847. }
  2848. +#line 1598 "dtc-parser.tab.c" /* yacc.c:1646 */
  2849. break;
  2850. case 16:
  2851. -
  2852. -/* Line 1806 of yacc.c */
  2853. -#line 209 "dtc-parser.y"
  2854. +#line 203 "dtc-parser.y" /* yacc.c:1646 */
  2855. {
  2856. - (yyval.proplist) = chain_property((yyvsp[(2) - (2)].prop), (yyvsp[(1) - (2)].proplist));
  2857. + (yyval.prop) = build_property((yyvsp[-1].propnodename), empty_data);
  2858. }
  2859. +#line 1606 "dtc-parser.tab.c" /* yacc.c:1646 */
  2860. break;
  2861. case 17:
  2862. -
  2863. -/* Line 1806 of yacc.c */
  2864. -#line 216 "dtc-parser.y"
  2865. +#line 207 "dtc-parser.y" /* yacc.c:1646 */
  2866. {
  2867. - (yyval.prop) = build_property((yyvsp[(1) - (4)].propnodename), (yyvsp[(3) - (4)].data));
  2868. + (yyval.prop) = build_property_delete((yyvsp[-1].propnodename));
  2869. }
  2870. +#line 1614 "dtc-parser.tab.c" /* yacc.c:1646 */
  2871. break;
  2872. case 18:
  2873. -
  2874. -/* Line 1806 of yacc.c */
  2875. -#line 220 "dtc-parser.y"
  2876. +#line 211 "dtc-parser.y" /* yacc.c:1646 */
  2877. {
  2878. - (yyval.prop) = build_property((yyvsp[(1) - (2)].propnodename), empty_data);
  2879. + add_label(&(yyvsp[0].prop)->labels, (yyvsp[-1].labelref));
  2880. + (yyval.prop) = (yyvsp[0].prop);
  2881. }
  2882. +#line 1623 "dtc-parser.tab.c" /* yacc.c:1646 */
  2883. break;
  2884. case 19:
  2885. -
  2886. -/* Line 1806 of yacc.c */
  2887. -#line 224 "dtc-parser.y"
  2888. +#line 219 "dtc-parser.y" /* yacc.c:1646 */
  2889. {
  2890. - (yyval.prop) = build_property_delete((yyvsp[(2) - (3)].propnodename));
  2891. + (yyval.data) = data_merge((yyvsp[-1].data), (yyvsp[0].data));
  2892. }
  2893. +#line 1631 "dtc-parser.tab.c" /* yacc.c:1646 */
  2894. break;
  2895. case 20:
  2896. -
  2897. -/* Line 1806 of yacc.c */
  2898. -#line 228 "dtc-parser.y"
  2899. +#line 223 "dtc-parser.y" /* yacc.c:1646 */
  2900. {
  2901. - add_label(&(yyvsp[(2) - (2)].prop)->labels, (yyvsp[(1) - (2)].labelref));
  2902. - (yyval.prop) = (yyvsp[(2) - (2)].prop);
  2903. + (yyval.data) = data_merge((yyvsp[-2].data), (yyvsp[-1].array).data);
  2904. }
  2905. +#line 1639 "dtc-parser.tab.c" /* yacc.c:1646 */
  2906. break;
  2907. case 21:
  2908. -
  2909. -/* Line 1806 of yacc.c */
  2910. -#line 236 "dtc-parser.y"
  2911. +#line 227 "dtc-parser.y" /* yacc.c:1646 */
  2912. {
  2913. - (yyval.data) = data_merge((yyvsp[(1) - (2)].data), (yyvsp[(2) - (2)].data));
  2914. + (yyval.data) = data_merge((yyvsp[-3].data), (yyvsp[-1].data));
  2915. }
  2916. +#line 1647 "dtc-parser.tab.c" /* yacc.c:1646 */
  2917. break;
  2918. case 22:
  2919. -
  2920. -/* Line 1806 of yacc.c */
  2921. -#line 240 "dtc-parser.y"
  2922. +#line 231 "dtc-parser.y" /* yacc.c:1646 */
  2923. {
  2924. - (yyval.data) = data_merge((yyvsp[(1) - (3)].data), (yyvsp[(2) - (3)].array).data);
  2925. + (yyval.data) = data_add_marker((yyvsp[-1].data), REF_PATH, (yyvsp[0].labelref));
  2926. }
  2927. +#line 1655 "dtc-parser.tab.c" /* yacc.c:1646 */
  2928. break;
  2929. case 23:
  2930. -
  2931. -/* Line 1806 of yacc.c */
  2932. -#line 244 "dtc-parser.y"
  2933. - {
  2934. - (yyval.data) = data_merge((yyvsp[(1) - (4)].data), (yyvsp[(3) - (4)].data));
  2935. - }
  2936. - break;
  2937. -
  2938. - case 24:
  2939. -
  2940. -/* Line 1806 of yacc.c */
  2941. -#line 248 "dtc-parser.y"
  2942. - {
  2943. - (yyval.data) = data_add_marker((yyvsp[(1) - (2)].data), REF_PATH, (yyvsp[(2) - (2)].labelref));
  2944. - }
  2945. - break;
  2946. -
  2947. - case 25:
  2948. -
  2949. -/* Line 1806 of yacc.c */
  2950. -#line 252 "dtc-parser.y"
  2951. +#line 235 "dtc-parser.y" /* yacc.c:1646 */
  2952. {
  2953. - FILE *f = srcfile_relative_open((yyvsp[(4) - (9)].data).val, NULL);
  2954. + FILE *f = srcfile_relative_open((yyvsp[-5].data).val, NULL);
  2955. struct data d;
  2956. - if ((yyvsp[(6) - (9)].integer) != 0)
  2957. - if (fseek(f, (yyvsp[(6) - (9)].integer), SEEK_SET) != 0)
  2958. + if ((yyvsp[-3].integer) != 0)
  2959. + if (fseek(f, (yyvsp[-3].integer), SEEK_SET) != 0)
  2960. die("Couldn't seek to offset %llu in \"%s\": %s",
  2961. - (unsigned long long)(yyvsp[(6) - (9)].integer), (yyvsp[(4) - (9)].data).val,
  2962. + (unsigned long long)(yyvsp[-3].integer), (yyvsp[-5].data).val,
  2963. strerror(errno));
  2964. - d = data_copy_file(f, (yyvsp[(8) - (9)].integer));
  2965. + d = data_copy_file(f, (yyvsp[-1].integer));
  2966. - (yyval.data) = data_merge((yyvsp[(1) - (9)].data), d);
  2967. + (yyval.data) = data_merge((yyvsp[-8].data), d);
  2968. fclose(f);
  2969. }
  2970. +#line 1675 "dtc-parser.tab.c" /* yacc.c:1646 */
  2971. break;
  2972. - case 26:
  2973. -
  2974. -/* Line 1806 of yacc.c */
  2975. -#line 268 "dtc-parser.y"
  2976. + case 24:
  2977. +#line 251 "dtc-parser.y" /* yacc.c:1646 */
  2978. {
  2979. - FILE *f = srcfile_relative_open((yyvsp[(4) - (5)].data).val, NULL);
  2980. + FILE *f = srcfile_relative_open((yyvsp[-1].data).val, NULL);
  2981. struct data d = empty_data;
  2982. d = data_copy_file(f, -1);
  2983. - (yyval.data) = data_merge((yyvsp[(1) - (5)].data), d);
  2984. + (yyval.data) = data_merge((yyvsp[-4].data), d);
  2985. fclose(f);
  2986. }
  2987. +#line 1689 "dtc-parser.tab.c" /* yacc.c:1646 */
  2988. break;
  2989. - case 27:
  2990. -
  2991. -/* Line 1806 of yacc.c */
  2992. -#line 278 "dtc-parser.y"
  2993. + case 25:
  2994. +#line 261 "dtc-parser.y" /* yacc.c:1646 */
  2995. {
  2996. - (yyval.data) = data_add_marker((yyvsp[(1) - (2)].data), LABEL, (yyvsp[(2) - (2)].labelref));
  2997. + (yyval.data) = data_add_marker((yyvsp[-1].data), LABEL, (yyvsp[0].labelref));
  2998. }
  2999. +#line 1697 "dtc-parser.tab.c" /* yacc.c:1646 */
  3000. break;
  3001. - case 28:
  3002. -
  3003. -/* Line 1806 of yacc.c */
  3004. -#line 285 "dtc-parser.y"
  3005. + case 26:
  3006. +#line 268 "dtc-parser.y" /* yacc.c:1646 */
  3007. {
  3008. (yyval.data) = empty_data;
  3009. }
  3010. +#line 1705 "dtc-parser.tab.c" /* yacc.c:1646 */
  3011. break;
  3012. - case 29:
  3013. -
  3014. -/* Line 1806 of yacc.c */
  3015. -#line 289 "dtc-parser.y"
  3016. + case 27:
  3017. +#line 272 "dtc-parser.y" /* yacc.c:1646 */
  3018. {
  3019. - (yyval.data) = (yyvsp[(1) - (2)].data);
  3020. + (yyval.data) = (yyvsp[-1].data);
  3021. }
  3022. +#line 1713 "dtc-parser.tab.c" /* yacc.c:1646 */
  3023. break;
  3024. - case 30:
  3025. -
  3026. -/* Line 1806 of yacc.c */
  3027. -#line 293 "dtc-parser.y"
  3028. + case 28:
  3029. +#line 276 "dtc-parser.y" /* yacc.c:1646 */
  3030. {
  3031. - (yyval.data) = data_add_marker((yyvsp[(1) - (2)].data), LABEL, (yyvsp[(2) - (2)].labelref));
  3032. + (yyval.data) = data_add_marker((yyvsp[-1].data), LABEL, (yyvsp[0].labelref));
  3033. }
  3034. +#line 1721 "dtc-parser.tab.c" /* yacc.c:1646 */
  3035. break;
  3036. - case 31:
  3037. -
  3038. -/* Line 1806 of yacc.c */
  3039. -#line 300 "dtc-parser.y"
  3040. + case 29:
  3041. +#line 283 "dtc-parser.y" /* yacc.c:1646 */
  3042. {
  3043. unsigned long long bits;
  3044. - bits = (yyvsp[(2) - (3)].integer);
  3045. + bits = (yyvsp[-1].integer);
  3046. if ((bits != 8) && (bits != 16) &&
  3047. (bits != 32) && (bits != 64)) {
  3048. - ERROR(&(yylsp[(2) - (3)]), "Array elements must be"
  3049. + ERROR(&(yylsp[-1]), "Array elements must be"
  3050. " 8, 16, 32 or 64-bits");
  3051. bits = 32;
  3052. }
  3053. @@ -1918,25 +1737,23 @@ yyreduce:
  3054. (yyval.array).data = empty_data;
  3055. (yyval.array).bits = bits;
  3056. }
  3057. +#line 1741 "dtc-parser.tab.c" /* yacc.c:1646 */
  3058. break;
  3059. - case 32:
  3060. -
  3061. -/* Line 1806 of yacc.c */
  3062. -#line 316 "dtc-parser.y"
  3063. + case 30:
  3064. +#line 299 "dtc-parser.y" /* yacc.c:1646 */
  3065. {
  3066. (yyval.array).data = empty_data;
  3067. (yyval.array).bits = 32;
  3068. }
  3069. +#line 1750 "dtc-parser.tab.c" /* yacc.c:1646 */
  3070. break;
  3071. - case 33:
  3072. -
  3073. -/* Line 1806 of yacc.c */
  3074. -#line 321 "dtc-parser.y"
  3075. + case 31:
  3076. +#line 304 "dtc-parser.y" /* yacc.c:1646 */
  3077. {
  3078. - if ((yyvsp[(1) - (2)].array).bits < 64) {
  3079. - uint64_t mask = (1ULL << (yyvsp[(1) - (2)].array).bits) - 1;
  3080. + if ((yyvsp[-1].array).bits < 64) {
  3081. + uint64_t mask = (1ULL << (yyvsp[-1].array).bits) - 1;
  3082. /*
  3083. * Bits above mask must either be all zero
  3084. * (positive within range of mask) or all one
  3085. @@ -1945,293 +1762,258 @@ yyreduce:
  3086. * within the mask to one (i.e. | in the
  3087. * mask), all bits are one.
  3088. */
  3089. - if (((yyvsp[(2) - (2)].integer) > mask) && (((yyvsp[(2) - (2)].integer) | mask) != -1ULL))
  3090. - ERROR(&(yylsp[(2) - (2)]), "Value out of range for"
  3091. - " %d-bit array element", (yyvsp[(1) - (2)].array).bits);
  3092. + if (((yyvsp[0].integer) > mask) && (((yyvsp[0].integer) | mask) != -1ULL))
  3093. + ERROR(&(yylsp[0]), "Value out of range for"
  3094. + " %d-bit array element", (yyvsp[-1].array).bits);
  3095. }
  3096. - (yyval.array).data = data_append_integer((yyvsp[(1) - (2)].array).data, (yyvsp[(2) - (2)].integer), (yyvsp[(1) - (2)].array).bits);
  3097. + (yyval.array).data = data_append_integer((yyvsp[-1].array).data, (yyvsp[0].integer), (yyvsp[-1].array).bits);
  3098. }
  3099. +#line 1773 "dtc-parser.tab.c" /* yacc.c:1646 */
  3100. break;
  3101. - case 34:
  3102. -
  3103. -/* Line 1806 of yacc.c */
  3104. -#line 340 "dtc-parser.y"
  3105. + case 32:
  3106. +#line 323 "dtc-parser.y" /* yacc.c:1646 */
  3107. {
  3108. - uint64_t val = ~0ULL >> (64 - (yyvsp[(1) - (2)].array).bits);
  3109. + uint64_t val = ~0ULL >> (64 - (yyvsp[-1].array).bits);
  3110. - if ((yyvsp[(1) - (2)].array).bits == 32)
  3111. - (yyvsp[(1) - (2)].array).data = data_add_marker((yyvsp[(1) - (2)].array).data,
  3112. + if ((yyvsp[-1].array).bits == 32)
  3113. + (yyvsp[-1].array).data = data_add_marker((yyvsp[-1].array).data,
  3114. REF_PHANDLE,
  3115. - (yyvsp[(2) - (2)].labelref));
  3116. + (yyvsp[0].labelref));
  3117. else
  3118. - ERROR(&(yylsp[(2) - (2)]), "References are only allowed in "
  3119. + ERROR(&(yylsp[0]), "References are only allowed in "
  3120. "arrays with 32-bit elements.");
  3121. - (yyval.array).data = data_append_integer((yyvsp[(1) - (2)].array).data, val, (yyvsp[(1) - (2)].array).bits);
  3122. + (yyval.array).data = data_append_integer((yyvsp[-1].array).data, val, (yyvsp[-1].array).bits);
  3123. }
  3124. +#line 1791 "dtc-parser.tab.c" /* yacc.c:1646 */
  3125. break;
  3126. - case 35:
  3127. -
  3128. -/* Line 1806 of yacc.c */
  3129. -#line 354 "dtc-parser.y"
  3130. + case 33:
  3131. +#line 337 "dtc-parser.y" /* yacc.c:1646 */
  3132. {
  3133. - (yyval.array).data = data_add_marker((yyvsp[(1) - (2)].array).data, LABEL, (yyvsp[(2) - (2)].labelref));
  3134. + (yyval.array).data = data_add_marker((yyvsp[-1].array).data, LABEL, (yyvsp[0].labelref));
  3135. }
  3136. +#line 1799 "dtc-parser.tab.c" /* yacc.c:1646 */
  3137. break;
  3138. - case 38:
  3139. -
  3140. -/* Line 1806 of yacc.c */
  3141. -#line 363 "dtc-parser.y"
  3142. + case 36:
  3143. +#line 346 "dtc-parser.y" /* yacc.c:1646 */
  3144. {
  3145. - (yyval.integer) = (yyvsp[(2) - (3)].integer);
  3146. + (yyval.integer) = (yyvsp[-1].integer);
  3147. }
  3148. +#line 1807 "dtc-parser.tab.c" /* yacc.c:1646 */
  3149. break;
  3150. - case 41:
  3151. + case 39:
  3152. +#line 357 "dtc-parser.y" /* yacc.c:1646 */
  3153. + { (yyval.integer) = (yyvsp[-4].integer) ? (yyvsp[-2].integer) : (yyvsp[0].integer); }
  3154. +#line 1813 "dtc-parser.tab.c" /* yacc.c:1646 */
  3155. + break;
  3156. -/* Line 1806 of yacc.c */
  3157. -#line 374 "dtc-parser.y"
  3158. - { (yyval.integer) = (yyvsp[(1) - (5)].integer) ? (yyvsp[(3) - (5)].integer) : (yyvsp[(5) - (5)].integer); }
  3159. + case 41:
  3160. +#line 362 "dtc-parser.y" /* yacc.c:1646 */
  3161. + { (yyval.integer) = (yyvsp[-2].integer) || (yyvsp[0].integer); }
  3162. +#line 1819 "dtc-parser.tab.c" /* yacc.c:1646 */
  3163. break;
  3164. case 43:
  3165. -
  3166. -/* Line 1806 of yacc.c */
  3167. -#line 379 "dtc-parser.y"
  3168. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) || (yyvsp[(3) - (3)].integer); }
  3169. +#line 367 "dtc-parser.y" /* yacc.c:1646 */
  3170. + { (yyval.integer) = (yyvsp[-2].integer) && (yyvsp[0].integer); }
  3171. +#line 1825 "dtc-parser.tab.c" /* yacc.c:1646 */
  3172. break;
  3173. case 45:
  3174. -
  3175. -/* Line 1806 of yacc.c */
  3176. -#line 384 "dtc-parser.y"
  3177. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) && (yyvsp[(3) - (3)].integer); }
  3178. +#line 372 "dtc-parser.y" /* yacc.c:1646 */
  3179. + { (yyval.integer) = (yyvsp[-2].integer) | (yyvsp[0].integer); }
  3180. +#line 1831 "dtc-parser.tab.c" /* yacc.c:1646 */
  3181. break;
  3182. case 47:
  3183. -
  3184. -/* Line 1806 of yacc.c */
  3185. -#line 389 "dtc-parser.y"
  3186. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) | (yyvsp[(3) - (3)].integer); }
  3187. +#line 377 "dtc-parser.y" /* yacc.c:1646 */
  3188. + { (yyval.integer) = (yyvsp[-2].integer) ^ (yyvsp[0].integer); }
  3189. +#line 1837 "dtc-parser.tab.c" /* yacc.c:1646 */
  3190. break;
  3191. case 49:
  3192. -
  3193. -/* Line 1806 of yacc.c */
  3194. -#line 394 "dtc-parser.y"
  3195. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) ^ (yyvsp[(3) - (3)].integer); }
  3196. +#line 382 "dtc-parser.y" /* yacc.c:1646 */
  3197. + { (yyval.integer) = (yyvsp[-2].integer) & (yyvsp[0].integer); }
  3198. +#line 1843 "dtc-parser.tab.c" /* yacc.c:1646 */
  3199. break;
  3200. case 51:
  3201. -
  3202. -/* Line 1806 of yacc.c */
  3203. -#line 399 "dtc-parser.y"
  3204. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) & (yyvsp[(3) - (3)].integer); }
  3205. +#line 387 "dtc-parser.y" /* yacc.c:1646 */
  3206. + { (yyval.integer) = (yyvsp[-2].integer) == (yyvsp[0].integer); }
  3207. +#line 1849 "dtc-parser.tab.c" /* yacc.c:1646 */
  3208. break;
  3209. - case 53:
  3210. -
  3211. -/* Line 1806 of yacc.c */
  3212. -#line 404 "dtc-parser.y"
  3213. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) == (yyvsp[(3) - (3)].integer); }
  3214. + case 52:
  3215. +#line 388 "dtc-parser.y" /* yacc.c:1646 */
  3216. + { (yyval.integer) = (yyvsp[-2].integer) != (yyvsp[0].integer); }
  3217. +#line 1855 "dtc-parser.tab.c" /* yacc.c:1646 */
  3218. break;
  3219. case 54:
  3220. +#line 393 "dtc-parser.y" /* yacc.c:1646 */
  3221. + { (yyval.integer) = (yyvsp[-2].integer) < (yyvsp[0].integer); }
  3222. +#line 1861 "dtc-parser.tab.c" /* yacc.c:1646 */
  3223. + break;
  3224. -/* Line 1806 of yacc.c */
  3225. -#line 405 "dtc-parser.y"
  3226. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) != (yyvsp[(3) - (3)].integer); }
  3227. + case 55:
  3228. +#line 394 "dtc-parser.y" /* yacc.c:1646 */
  3229. + { (yyval.integer) = (yyvsp[-2].integer) > (yyvsp[0].integer); }
  3230. +#line 1867 "dtc-parser.tab.c" /* yacc.c:1646 */
  3231. break;
  3232. case 56:
  3233. -
  3234. -/* Line 1806 of yacc.c */
  3235. -#line 410 "dtc-parser.y"
  3236. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) < (yyvsp[(3) - (3)].integer); }
  3237. +#line 395 "dtc-parser.y" /* yacc.c:1646 */
  3238. + { (yyval.integer) = (yyvsp[-2].integer) <= (yyvsp[0].integer); }
  3239. +#line 1873 "dtc-parser.tab.c" /* yacc.c:1646 */
  3240. break;
  3241. case 57:
  3242. -
  3243. -/* Line 1806 of yacc.c */
  3244. -#line 411 "dtc-parser.y"
  3245. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) > (yyvsp[(3) - (3)].integer); }
  3246. +#line 396 "dtc-parser.y" /* yacc.c:1646 */
  3247. + { (yyval.integer) = (yyvsp[-2].integer) >= (yyvsp[0].integer); }
  3248. +#line 1879 "dtc-parser.tab.c" /* yacc.c:1646 */
  3249. break;
  3250. case 58:
  3251. -
  3252. -/* Line 1806 of yacc.c */
  3253. -#line 412 "dtc-parser.y"
  3254. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) <= (yyvsp[(3) - (3)].integer); }
  3255. +#line 400 "dtc-parser.y" /* yacc.c:1646 */
  3256. + { (yyval.integer) = (yyvsp[-2].integer) << (yyvsp[0].integer); }
  3257. +#line 1885 "dtc-parser.tab.c" /* yacc.c:1646 */
  3258. break;
  3259. case 59:
  3260. -
  3261. -/* Line 1806 of yacc.c */
  3262. -#line 413 "dtc-parser.y"
  3263. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) >= (yyvsp[(3) - (3)].integer); }
  3264. - break;
  3265. -
  3266. - case 60:
  3267. -
  3268. -/* Line 1806 of yacc.c */
  3269. -#line 417 "dtc-parser.y"
  3270. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) << (yyvsp[(3) - (3)].integer); }
  3271. +#line 401 "dtc-parser.y" /* yacc.c:1646 */
  3272. + { (yyval.integer) = (yyvsp[-2].integer) >> (yyvsp[0].integer); }
  3273. +#line 1891 "dtc-parser.tab.c" /* yacc.c:1646 */
  3274. break;
  3275. case 61:
  3276. -
  3277. -/* Line 1806 of yacc.c */
  3278. -#line 418 "dtc-parser.y"
  3279. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) >> (yyvsp[(3) - (3)].integer); }
  3280. +#line 406 "dtc-parser.y" /* yacc.c:1646 */
  3281. + { (yyval.integer) = (yyvsp[-2].integer) + (yyvsp[0].integer); }
  3282. +#line 1897 "dtc-parser.tab.c" /* yacc.c:1646 */
  3283. break;
  3284. - case 63:
  3285. -
  3286. -/* Line 1806 of yacc.c */
  3287. -#line 423 "dtc-parser.y"
  3288. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) + (yyvsp[(3) - (3)].integer); }
  3289. + case 62:
  3290. +#line 407 "dtc-parser.y" /* yacc.c:1646 */
  3291. + { (yyval.integer) = (yyvsp[-2].integer) - (yyvsp[0].integer); }
  3292. +#line 1903 "dtc-parser.tab.c" /* yacc.c:1646 */
  3293. break;
  3294. case 64:
  3295. +#line 412 "dtc-parser.y" /* yacc.c:1646 */
  3296. + { (yyval.integer) = (yyvsp[-2].integer) * (yyvsp[0].integer); }
  3297. +#line 1909 "dtc-parser.tab.c" /* yacc.c:1646 */
  3298. + break;
  3299. -/* Line 1806 of yacc.c */
  3300. -#line 424 "dtc-parser.y"
  3301. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) - (yyvsp[(3) - (3)].integer); }
  3302. + case 65:
  3303. +#line 413 "dtc-parser.y" /* yacc.c:1646 */
  3304. + { (yyval.integer) = (yyvsp[-2].integer) / (yyvsp[0].integer); }
  3305. +#line 1915 "dtc-parser.tab.c" /* yacc.c:1646 */
  3306. break;
  3307. case 66:
  3308. -
  3309. -/* Line 1806 of yacc.c */
  3310. -#line 429 "dtc-parser.y"
  3311. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) * (yyvsp[(3) - (3)].integer); }
  3312. +#line 414 "dtc-parser.y" /* yacc.c:1646 */
  3313. + { (yyval.integer) = (yyvsp[-2].integer) % (yyvsp[0].integer); }
  3314. +#line 1921 "dtc-parser.tab.c" /* yacc.c:1646 */
  3315. break;
  3316. - case 67:
  3317. -
  3318. -/* Line 1806 of yacc.c */
  3319. -#line 430 "dtc-parser.y"
  3320. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) / (yyvsp[(3) - (3)].integer); }
  3321. + case 69:
  3322. +#line 420 "dtc-parser.y" /* yacc.c:1646 */
  3323. + { (yyval.integer) = -(yyvsp[0].integer); }
  3324. +#line 1927 "dtc-parser.tab.c" /* yacc.c:1646 */
  3325. break;
  3326. - case 68:
  3327. -
  3328. -/* Line 1806 of yacc.c */
  3329. -#line 431 "dtc-parser.y"
  3330. - { (yyval.integer) = (yyvsp[(1) - (3)].integer) % (yyvsp[(3) - (3)].integer); }
  3331. + case 70:
  3332. +#line 421 "dtc-parser.y" /* yacc.c:1646 */
  3333. + { (yyval.integer) = ~(yyvsp[0].integer); }
  3334. +#line 1933 "dtc-parser.tab.c" /* yacc.c:1646 */
  3335. break;
  3336. case 71:
  3337. -
  3338. -/* Line 1806 of yacc.c */
  3339. -#line 437 "dtc-parser.y"
  3340. - { (yyval.integer) = -(yyvsp[(2) - (2)].integer); }
  3341. +#line 422 "dtc-parser.y" /* yacc.c:1646 */
  3342. + { (yyval.integer) = !(yyvsp[0].integer); }
  3343. +#line 1939 "dtc-parser.tab.c" /* yacc.c:1646 */
  3344. break;
  3345. case 72:
  3346. -
  3347. -/* Line 1806 of yacc.c */
  3348. -#line 438 "dtc-parser.y"
  3349. - { (yyval.integer) = ~(yyvsp[(2) - (2)].integer); }
  3350. +#line 427 "dtc-parser.y" /* yacc.c:1646 */
  3351. + {
  3352. + (yyval.data) = empty_data;
  3353. + }
  3354. +#line 1947 "dtc-parser.tab.c" /* yacc.c:1646 */
  3355. break;
  3356. case 73:
  3357. -
  3358. -/* Line 1806 of yacc.c */
  3359. -#line 439 "dtc-parser.y"
  3360. - { (yyval.integer) = !(yyvsp[(2) - (2)].integer); }
  3361. +#line 431 "dtc-parser.y" /* yacc.c:1646 */
  3362. + {
  3363. + (yyval.data) = data_append_byte((yyvsp[-1].data), (yyvsp[0].byte));
  3364. + }
  3365. +#line 1955 "dtc-parser.tab.c" /* yacc.c:1646 */
  3366. break;
  3367. case 74:
  3368. -
  3369. -/* Line 1806 of yacc.c */
  3370. -#line 444 "dtc-parser.y"
  3371. +#line 435 "dtc-parser.y" /* yacc.c:1646 */
  3372. {
  3373. - (yyval.data) = empty_data;
  3374. + (yyval.data) = data_add_marker((yyvsp[-1].data), LABEL, (yyvsp[0].labelref));
  3375. }
  3376. +#line 1963 "dtc-parser.tab.c" /* yacc.c:1646 */
  3377. break;
  3378. case 75:
  3379. -
  3380. -/* Line 1806 of yacc.c */
  3381. -#line 448 "dtc-parser.y"
  3382. +#line 442 "dtc-parser.y" /* yacc.c:1646 */
  3383. {
  3384. - (yyval.data) = data_append_byte((yyvsp[(1) - (2)].data), (yyvsp[(2) - (2)].byte));
  3385. + (yyval.nodelist) = NULL;
  3386. }
  3387. +#line 1971 "dtc-parser.tab.c" /* yacc.c:1646 */
  3388. break;
  3389. case 76:
  3390. -
  3391. -/* Line 1806 of yacc.c */
  3392. -#line 452 "dtc-parser.y"
  3393. +#line 446 "dtc-parser.y" /* yacc.c:1646 */
  3394. {
  3395. - (yyval.data) = data_add_marker((yyvsp[(1) - (2)].data), LABEL, (yyvsp[(2) - (2)].labelref));
  3396. + (yyval.nodelist) = chain_node((yyvsp[-1].node), (yyvsp[0].nodelist));
  3397. }
  3398. +#line 1979 "dtc-parser.tab.c" /* yacc.c:1646 */
  3399. break;
  3400. case 77:
  3401. -
  3402. -/* Line 1806 of yacc.c */
  3403. -#line 459 "dtc-parser.y"
  3404. +#line 450 "dtc-parser.y" /* yacc.c:1646 */
  3405. {
  3406. - (yyval.nodelist) = NULL;
  3407. + ERROR(&(yylsp[0]), "Properties must precede subnodes");
  3408. + YYERROR;
  3409. }
  3410. +#line 1988 "dtc-parser.tab.c" /* yacc.c:1646 */
  3411. break;
  3412. case 78:
  3413. -
  3414. -/* Line 1806 of yacc.c */
  3415. -#line 463 "dtc-parser.y"
  3416. +#line 458 "dtc-parser.y" /* yacc.c:1646 */
  3417. {
  3418. - (yyval.nodelist) = chain_node((yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].nodelist));
  3419. + (yyval.node) = name_node((yyvsp[0].node), (yyvsp[-1].propnodename));
  3420. }
  3421. +#line 1996 "dtc-parser.tab.c" /* yacc.c:1646 */
  3422. break;
  3423. case 79:
  3424. -
  3425. -/* Line 1806 of yacc.c */
  3426. -#line 467 "dtc-parser.y"
  3427. +#line 462 "dtc-parser.y" /* yacc.c:1646 */
  3428. {
  3429. - ERROR(&(yylsp[(2) - (2)]), "Properties must precede subnodes");
  3430. - YYERROR;
  3431. + (yyval.node) = name_node(build_node_delete(), (yyvsp[-1].propnodename));
  3432. }
  3433. +#line 2004 "dtc-parser.tab.c" /* yacc.c:1646 */
  3434. break;
  3435. case 80:
  3436. -
  3437. -/* Line 1806 of yacc.c */
  3438. -#line 475 "dtc-parser.y"
  3439. +#line 466 "dtc-parser.y" /* yacc.c:1646 */
  3440. {
  3441. - (yyval.node) = name_node((yyvsp[(2) - (2)].node), (yyvsp[(1) - (2)].propnodename));
  3442. + add_label(&(yyvsp[0].node)->labels, (yyvsp[-1].labelref));
  3443. + (yyval.node) = (yyvsp[0].node);
  3444. }
  3445. +#line 2013 "dtc-parser.tab.c" /* yacc.c:1646 */
  3446. break;
  3447. - case 81:
  3448. -/* Line 1806 of yacc.c */
  3449. -#line 479 "dtc-parser.y"
  3450. - {
  3451. - (yyval.node) = name_node(build_node_delete(), (yyvsp[(2) - (3)].propnodename));
  3452. - }
  3453. - break;
  3454. -
  3455. - case 82:
  3456. -
  3457. -/* Line 1806 of yacc.c */
  3458. -#line 483 "dtc-parser.y"
  3459. - {
  3460. - add_label(&(yyvsp[(2) - (2)].node)->labels, (yyvsp[(1) - (2)].labelref));
  3461. - (yyval.node) = (yyvsp[(2) - (2)].node);
  3462. - }
  3463. - break;
  3464. -
  3465. -
  3466. -
  3467. -/* Line 1806 of yacc.c */
  3468. -#line 2235 "dtc-parser.tab.c"
  3469. +#line 2017 "dtc-parser.tab.c" /* yacc.c:1646 */
  3470. default: break;
  3471. }
  3472. /* User semantic actions sometimes alter yychar, and that requires
  3473. @@ -2254,7 +2036,7 @@ yyreduce:
  3474. *++yyvsp = yyval;
  3475. *++yylsp = yyloc;
  3476. - /* Now `shift' the result of the reduction. Determine what state
  3477. + /* Now 'shift' the result of the reduction. Determine what state
  3478. that goes to, based on the state we popped back to and the rule
  3479. number reduced by. */
  3480. @@ -2269,9 +2051,9 @@ yyreduce:
  3481. goto yynewstate;
  3482. -/*------------------------------------.
  3483. -| yyerrlab -- here on detecting error |
  3484. -`------------------------------------*/
  3485. +/*--------------------------------------.
  3486. +| yyerrlab -- here on detecting error. |
  3487. +`--------------------------------------*/
  3488. yyerrlab:
  3489. /* Make sure we have latest lookahead translation. See comments at
  3490. user semantic actions for why this is necessary. */
  3491. @@ -2322,20 +2104,20 @@ yyerrlab:
  3492. if (yyerrstatus == 3)
  3493. {
  3494. /* If just tried and failed to reuse lookahead token after an
  3495. - error, discard it. */
  3496. + error, discard it. */
  3497. if (yychar <= YYEOF)
  3498. - {
  3499. - /* Return failure if at end of input. */
  3500. - if (yychar == YYEOF)
  3501. - YYABORT;
  3502. - }
  3503. + {
  3504. + /* Return failure if at end of input. */
  3505. + if (yychar == YYEOF)
  3506. + YYABORT;
  3507. + }
  3508. else
  3509. - {
  3510. - yydestruct ("Error: discarding",
  3511. - yytoken, &yylval, &yylloc);
  3512. - yychar = YYEMPTY;
  3513. - }
  3514. + {
  3515. + yydestruct ("Error: discarding",
  3516. + yytoken, &yylval, &yylloc);
  3517. + yychar = YYEMPTY;
  3518. + }
  3519. }
  3520. /* Else will try to reuse lookahead token after shifting the error
  3521. @@ -2355,7 +2137,7 @@ yyerrorlab:
  3522. goto yyerrorlab;
  3523. yyerror_range[1] = yylsp[1-yylen];
  3524. - /* Do not reclaim the symbols of the rule which action triggered
  3525. + /* Do not reclaim the symbols of the rule whose action triggered
  3526. this YYERROR. */
  3527. YYPOPSTACK (yylen);
  3528. yylen = 0;
  3529. @@ -2368,35 +2150,37 @@ yyerrorlab:
  3530. | yyerrlab1 -- common code for both syntax error and YYERROR. |
  3531. `-------------------------------------------------------------*/
  3532. yyerrlab1:
  3533. - yyerrstatus = 3; /* Each real token shifted decrements this. */
  3534. + yyerrstatus = 3; /* Each real token shifted decrements this. */
  3535. for (;;)
  3536. {
  3537. yyn = yypact[yystate];
  3538. if (!yypact_value_is_default (yyn))
  3539. - {
  3540. - yyn += YYTERROR;
  3541. - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  3542. - {
  3543. - yyn = yytable[yyn];
  3544. - if (0 < yyn)
  3545. - break;
  3546. - }
  3547. - }
  3548. + {
  3549. + yyn += YYTERROR;
  3550. + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  3551. + {
  3552. + yyn = yytable[yyn];
  3553. + if (0 < yyn)
  3554. + break;
  3555. + }
  3556. + }
  3557. /* Pop the current state because it cannot handle the error token. */
  3558. if (yyssp == yyss)
  3559. - YYABORT;
  3560. + YYABORT;
  3561. yyerror_range[1] = *yylsp;
  3562. yydestruct ("Error: popping",
  3563. - yystos[yystate], yyvsp, yylsp);
  3564. + yystos[yystate], yyvsp, yylsp);
  3565. YYPOPSTACK (1);
  3566. yystate = *yyssp;
  3567. YY_STACK_PRINT (yyss, yyssp);
  3568. }
  3569. + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  3570. *++yyvsp = yylval;
  3571. + YY_IGNORE_MAYBE_UNINITIALIZED_END
  3572. yyerror_range[2] = yylloc;
  3573. /* Using YYLLOC is tempting, but would change the location of
  3574. @@ -2425,7 +2209,7 @@ yyabortlab:
  3575. yyresult = 1;
  3576. goto yyreturn;
  3577. -#if !defined(yyoverflow) || YYERROR_VERBOSE
  3578. +#if !defined yyoverflow || YYERROR_VERBOSE
  3579. /*-------------------------------------------------.
  3580. | yyexhaustedlab -- memory exhaustion comes here. |
  3581. `-------------------------------------------------*/
  3582. @@ -2444,14 +2228,14 @@ yyreturn:
  3583. yydestruct ("Cleanup: discarding lookahead",
  3584. yytoken, &yylval, &yylloc);
  3585. }
  3586. - /* Do not reclaim the symbols of the rule which action triggered
  3587. + /* Do not reclaim the symbols of the rule whose action triggered
  3588. this YYABORT or YYACCEPT. */
  3589. YYPOPSTACK (yylen);
  3590. YY_STACK_PRINT (yyss, yyssp);
  3591. while (yyssp != yyss)
  3592. {
  3593. yydestruct ("Cleanup: popping",
  3594. - yystos[*yyssp], yyvsp, yylsp);
  3595. + yystos[*yyssp], yyvsp, yylsp);
  3596. YYPOPSTACK (1);
  3597. }
  3598. #ifndef yyoverflow
  3599. @@ -2462,18 +2246,12 @@ yyreturn:
  3600. if (yymsg != yymsgbuf)
  3601. YYSTACK_FREE (yymsg);
  3602. #endif
  3603. - /* Make sure YYID is used. */
  3604. - return YYID (yyresult);
  3605. + return yyresult;
  3606. }
  3607. -
  3608. -
  3609. -
  3610. -/* Line 2067 of yacc.c */
  3611. -#line 489 "dtc-parser.y"
  3612. +#line 472 "dtc-parser.y" /* yacc.c:1906 */
  3613. void yyerror(char const *s)
  3614. {
  3615. ERROR(&yylloc, "%s", s);
  3616. }
  3617. -
  3618. --- a/scripts/dtc/dtc-parser.tab.h_shipped
  3619. +++ b/scripts/dtc/dtc-parser.tab.h_shipped
  3620. @@ -1,19 +1,19 @@
  3621. -/* A Bison parser, made by GNU Bison 2.5. */
  3622. +/* A Bison parser, made by GNU Bison 3.0.2. */
  3623. /* Bison interface for Yacc-like parsers in C
  3624. -
  3625. - Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
  3626. -
  3627. +
  3628. + Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
  3629. +
  3630. This program is free software: you can redistribute it and/or modify
  3631. it under the terms of the GNU General Public License as published by
  3632. the Free Software Foundation, either version 3 of the License, or
  3633. (at your option) any later version.
  3634. -
  3635. +
  3636. This program is distributed in the hope that it will be useful,
  3637. but WITHOUT ANY WARRANTY; without even the implied warranty of
  3638. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3639. GNU General Public License for more details.
  3640. -
  3641. +
  3642. You should have received a copy of the GNU General Public License
  3643. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  3644. @@ -26,50 +26,55 @@
  3645. special exception, which will cause the skeleton and the resulting
  3646. Bison output files to be licensed under the GNU General Public
  3647. License without this special exception.
  3648. -
  3649. +
  3650. This special exception was added by the Free Software Foundation in
  3651. version 2.2 of Bison. */
  3652. +#ifndef YY_YY_DTC_PARSER_TAB_H_INCLUDED
  3653. +# define YY_YY_DTC_PARSER_TAB_H_INCLUDED
  3654. +/* Debug traces. */
  3655. +#ifndef YYDEBUG
  3656. +# define YYDEBUG 0
  3657. +#endif
  3658. +#if YYDEBUG
  3659. +extern int yydebug;
  3660. +#endif
  3661. -/* Tokens. */
  3662. +/* Token type. */
  3663. #ifndef YYTOKENTYPE
  3664. # define YYTOKENTYPE
  3665. - /* Put the tokens into the symbol table, so that GDB and other debuggers
  3666. - know about them. */
  3667. - enum yytokentype {
  3668. - DT_V1 = 258,
  3669. - DT_PLUGIN = 259,
  3670. - DT_MEMRESERVE = 260,
  3671. - DT_LSHIFT = 261,
  3672. - DT_RSHIFT = 262,
  3673. - DT_LE = 263,
  3674. - DT_GE = 264,
  3675. - DT_EQ = 265,
  3676. - DT_NE = 266,
  3677. - DT_AND = 267,
  3678. - DT_OR = 268,
  3679. - DT_BITS = 269,
  3680. - DT_DEL_PROP = 270,
  3681. - DT_DEL_NODE = 271,
  3682. - DT_PROPNODENAME = 272,
  3683. - DT_LITERAL = 273,
  3684. - DT_CHAR_LITERAL = 274,
  3685. - DT_BYTE = 275,
  3686. - DT_STRING = 276,
  3687. - DT_LABEL = 277,
  3688. - DT_REF = 278,
  3689. - DT_INCBIN = 279
  3690. - };
  3691. + enum yytokentype
  3692. + {
  3693. + DT_V1 = 258,
  3694. + DT_MEMRESERVE = 259,
  3695. + DT_LSHIFT = 260,
  3696. + DT_RSHIFT = 261,
  3697. + DT_LE = 262,
  3698. + DT_GE = 263,
  3699. + DT_EQ = 264,
  3700. + DT_NE = 265,
  3701. + DT_AND = 266,
  3702. + DT_OR = 267,
  3703. + DT_BITS = 268,
  3704. + DT_DEL_PROP = 269,
  3705. + DT_DEL_NODE = 270,
  3706. + DT_PROPNODENAME = 271,
  3707. + DT_LITERAL = 272,
  3708. + DT_CHAR_LITERAL = 273,
  3709. + DT_BYTE = 274,
  3710. + DT_STRING = 275,
  3711. + DT_LABEL = 276,
  3712. + DT_REF = 277,
  3713. + DT_INCBIN = 278
  3714. + };
  3715. #endif
  3716. -
  3717. -
  3718. +/* Value type. */
  3719. #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
  3720. -typedef union YYSTYPE
  3721. +typedef union YYSTYPE YYSTYPE;
  3722. +union YYSTYPE
  3723. {
  3724. -
  3725. -/* Line 2068 of yacc.c */
  3726. -#line 39 "dtc-parser.y"
  3727. +#line 38 "dtc-parser.y" /* yacc.c:1909 */
  3728. char *propnodename;
  3729. char *labelref;
  3730. @@ -87,32 +92,30 @@ typedef union YYSTYPE
  3731. struct node *nodelist;
  3732. struct reserve_info *re;
  3733. uint64_t integer;
  3734. - int is_plugin;
  3735. -
  3736. -
  3737. -/* Line 2068 of yacc.c */
  3738. -#line 96 "dtc-parser.tab.h"
  3739. -} YYSTYPE;
  3740. +#line 97 "dtc-parser.tab.h" /* yacc.c:1909 */
  3741. +};
  3742. # define YYSTYPE_IS_TRIVIAL 1
  3743. -# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  3744. # define YYSTYPE_IS_DECLARED 1
  3745. #endif
  3746. -extern YYSTYPE yylval;
  3747. -
  3748. +/* Location type. */
  3749. #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
  3750. -typedef struct YYLTYPE
  3751. +typedef struct YYLTYPE YYLTYPE;
  3752. +struct YYLTYPE
  3753. {
  3754. int first_line;
  3755. int first_column;
  3756. int last_line;
  3757. int last_column;
  3758. -} YYLTYPE;
  3759. -# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
  3760. +};
  3761. # define YYLTYPE_IS_DECLARED 1
  3762. # define YYLTYPE_IS_TRIVIAL 1
  3763. #endif
  3764. +
  3765. +extern YYSTYPE yylval;
  3766. extern YYLTYPE yylloc;
  3767. +int yyparse (void);
  3768. +#endif /* !YY_YY_DTC_PARSER_TAB_H_INCLUDED */
  3769. --- a/scripts/dtc/dtc-parser.y
  3770. +++ b/scripts/dtc/dtc-parser.y
  3771. @@ -19,7 +19,6 @@
  3772. */
  3773. %{
  3774. #include <stdio.h>
  3775. -#include <inttypes.h>
  3776. #include "dtc.h"
  3777. #include "srcpos.h"
  3778. @@ -53,11 +52,9 @@ extern bool treesource_error;
  3779. struct node *nodelist;
  3780. struct reserve_info *re;
  3781. uint64_t integer;
  3782. - int is_plugin;
  3783. }
  3784. %token DT_V1
  3785. -%token DT_PLUGIN
  3786. %token DT_MEMRESERVE
  3787. %token DT_LSHIFT DT_RSHIFT DT_LE DT_GE DT_EQ DT_NE DT_AND DT_OR
  3788. %token DT_BITS
  3789. @@ -74,7 +71,6 @@ extern bool treesource_error;
  3790. %type <data> propdata
  3791. %type <data> propdataprefix
  3792. -%type <is_plugin> plugindecl
  3793. %type <re> memreserve
  3794. %type <re> memreserves
  3795. %type <array> arrayprefix
  3796. @@ -105,23 +101,10 @@ extern bool treesource_error;
  3797. %%
  3798. sourcefile:
  3799. - DT_V1 ';' plugindecl memreserves devicetree
  3800. + DT_V1 ';' memreserves devicetree
  3801. {
  3802. - $5->is_plugin = $3;
  3803. - $5->is_root = 1;
  3804. - the_boot_info = build_boot_info($4, $5,
  3805. - guess_boot_cpuid($5));
  3806. - }
  3807. - ;
  3808. -
  3809. -plugindecl:
  3810. - /* empty */
  3811. - {
  3812. - $$ = 0;
  3813. - }
  3814. - | DT_PLUGIN ';'
  3815. - {
  3816. - $$ = 1;
  3817. + the_boot_info = build_boot_info($3, $4,
  3818. + guess_boot_cpuid($4));
  3819. }
  3820. ;
  3821. --- a/scripts/dtc/dtc.c
  3822. +++ b/scripts/dtc/dtc.c
  3823. @@ -29,7 +29,6 @@ int reservenum; /* Number of memory res
  3824. int minsize; /* Minimum blob size */
  3825. int padsize; /* Additional padding to blob */
  3826. int phandle_format = PHANDLE_BOTH; /* Use linux,phandle or phandle properties */
  3827. -int symbol_fixup_support = 0;
  3828. static void fill_fullpaths(struct node *tree, const char *prefix)
  3829. {
  3830. @@ -52,7 +51,7 @@ static void fill_fullpaths(struct node *
  3831. #define FDT_VERSION(version) _FDT_VERSION(version)
  3832. #define _FDT_VERSION(version) #version
  3833. static const char usage_synopsis[] = "dtc [options] <input file>";
  3834. -static const char usage_short_opts[] = "qI:O:o:V:d:R:S:p:fb:i:H:sW:E:hv@";
  3835. +static const char usage_short_opts[] = "qI:O:o:V:d:R:S:p:fb:i:H:sW:E:hv";
  3836. static struct option const usage_long_opts[] = {
  3837. {"quiet", no_argument, NULL, 'q'},
  3838. {"in-format", a_argument, NULL, 'I'},
  3839. @@ -70,7 +69,6 @@ static struct option const usage_long_op
  3840. {"phandle", a_argument, NULL, 'H'},
  3841. {"warning", a_argument, NULL, 'W'},
  3842. {"error", a_argument, NULL, 'E'},
  3843. - {"symbols", a_argument, NULL, '@'},
  3844. {"help", no_argument, NULL, 'h'},
  3845. {"version", no_argument, NULL, 'v'},
  3846. {NULL, no_argument, NULL, 0x0},
  3847. @@ -101,7 +99,6 @@ static const char * const usage_opts_hel
  3848. "\t\tboth - Both \"linux,phandle\" and \"phandle\" properties",
  3849. "\n\tEnable/disable warnings (prefix with \"no-\")",
  3850. "\n\tEnable/disable errors (prefix with \"no-\")",
  3851. - "\n\tSymbols and Fixups support",
  3852. "\n\tPrint this help and exit",
  3853. "\n\tPrint version and exit",
  3854. NULL,
  3855. @@ -189,9 +186,7 @@ int main(int argc, char *argv[])
  3856. case 'E':
  3857. parse_checks_option(false, true, optarg);
  3858. break;
  3859. - case '@':
  3860. - symbol_fixup_support = 1;
  3861. - break;
  3862. +
  3863. case 'h':
  3864. usage(NULL);
  3865. default:
  3866. --- a/scripts/dtc/dtc.h
  3867. +++ b/scripts/dtc/dtc.h
  3868. @@ -54,7 +54,6 @@ extern int reservenum; /* Number of mem
  3869. extern int minsize; /* Minimum blob size */
  3870. extern int padsize; /* Additional padding to blob */
  3871. extern int phandle_format; /* Use linux,phandle or phandle properties */
  3872. -extern int symbol_fixup_support;/* enable symbols & fixup support */
  3873. #define PHANDLE_LEGACY 0x1
  3874. #define PHANDLE_EPAPR 0x2
  3875. @@ -133,25 +132,6 @@ struct label {
  3876. struct label *next;
  3877. };
  3878. -struct fixup_entry {
  3879. - int offset;
  3880. - struct node *node;
  3881. - struct property *prop;
  3882. - struct fixup_entry *next;
  3883. -};
  3884. -
  3885. -struct fixup {
  3886. - char *ref;
  3887. - struct fixup_entry *entries;
  3888. - struct fixup *next;
  3889. -};
  3890. -
  3891. -struct symbol {
  3892. - struct label *label;
  3893. - struct node *node;
  3894. - struct symbol *next;
  3895. -};
  3896. -
  3897. struct property {
  3898. bool deleted;
  3899. char *name;
  3900. @@ -178,12 +158,6 @@ struct node {
  3901. int addr_cells, size_cells;
  3902. struct label *labels;
  3903. -
  3904. - int is_root;
  3905. - int is_plugin;
  3906. - struct fixup *fixups;
  3907. - struct symbol *symbols;
  3908. - struct fixup_entry *local_fixups;
  3909. };
  3910. #define for_each_label_withdel(l0, l) \
  3911. @@ -207,18 +181,6 @@ struct node {
  3912. for_each_child_withdel(n, c) \
  3913. if (!(c)->deleted)
  3914. -#define for_each_fixup(n, f) \
  3915. - for ((f) = (n)->fixups; (f); (f) = (f)->next)
  3916. -
  3917. -#define for_each_fixup_entry(f, fe) \
  3918. - for ((fe) = (f)->entries; (fe); (fe) = (fe)->next)
  3919. -
  3920. -#define for_each_symbol(n, s) \
  3921. - for ((s) = (n)->symbols; (s); (s) = (s)->next)
  3922. -
  3923. -#define for_each_local_fixup_entry(n, fe) \
  3924. - for ((fe) = (n)->local_fixups; (fe); (fe) = (fe)->next)
  3925. -
  3926. void add_label(struct label **labels, char *label);
  3927. void delete_labels(struct label **labels);
  3928. --- a/scripts/dtc/flattree.c
  3929. +++ b/scripts/dtc/flattree.c
  3930. @@ -262,12 +262,6 @@ static void flatten_tree(struct node *tr
  3931. struct property *prop;
  3932. struct node *child;
  3933. bool seen_name_prop = false;
  3934. - struct symbol *sym;
  3935. - struct fixup *f;
  3936. - struct fixup_entry *fe;
  3937. - char *name, *s;
  3938. - const char *fullpath;
  3939. - int namesz, nameoff, vallen;
  3940. if (tree->deleted)
  3941. return;
  3942. @@ -282,6 +276,8 @@ static void flatten_tree(struct node *tr
  3943. emit->align(etarget, sizeof(cell_t));
  3944. for_each_property(tree, prop) {
  3945. + int nameoff;
  3946. +
  3947. if (streq(prop->name, "name"))
  3948. seen_name_prop = true;
  3949. @@ -314,139 +310,6 @@ static void flatten_tree(struct node *tr
  3950. flatten_tree(child, emit, etarget, strbuf, vi);
  3951. }
  3952. - if (!symbol_fixup_support)
  3953. - goto no_symbols;
  3954. -
  3955. - /* add the symbol nodes (if any) */
  3956. - if (tree->symbols) {
  3957. -
  3958. - emit->beginnode(etarget, NULL);
  3959. - emit->string(etarget, "__symbols__", 0);
  3960. - emit->align(etarget, sizeof(cell_t));
  3961. -
  3962. - for_each_symbol(tree, sym) {
  3963. -
  3964. - vallen = strlen(sym->node->fullpath);
  3965. -
  3966. - nameoff = stringtable_insert(strbuf, sym->label->label);
  3967. -
  3968. - emit->property(etarget, NULL);
  3969. - emit->cell(etarget, vallen + 1);
  3970. - emit->cell(etarget, nameoff);
  3971. -
  3972. - if ((vi->flags & FTF_VARALIGN) && vallen >= 8)
  3973. - emit->align(etarget, 8);
  3974. -
  3975. - emit->string(etarget, sym->node->fullpath,
  3976. - strlen(sym->node->fullpath));
  3977. - emit->align(etarget, sizeof(cell_t));
  3978. - }
  3979. -
  3980. - emit->endnode(etarget, NULL);
  3981. - }
  3982. -
  3983. - /* add the fixup nodes */
  3984. - if (tree->fixups) {
  3985. -
  3986. - /* emit the external fixups */
  3987. - emit->beginnode(etarget, NULL);
  3988. - emit->string(etarget, "__fixups__", 0);
  3989. - emit->align(etarget, sizeof(cell_t));
  3990. -
  3991. - for_each_fixup(tree, f) {
  3992. -
  3993. - namesz = 0;
  3994. - for_each_fixup_entry(f, fe) {
  3995. - fullpath = fe->node->fullpath;
  3996. - if (fullpath[0] == '\0')
  3997. - fullpath = "/";
  3998. - namesz += strlen(fullpath) + 1;
  3999. - namesz += strlen(fe->prop->name) + 1;
  4000. - namesz += 32; /* space for :<number> + '\0' */
  4001. - }
  4002. -
  4003. - name = xmalloc(namesz);
  4004. -
  4005. - s = name;
  4006. - for_each_fixup_entry(f, fe) {
  4007. - fullpath = fe->node->fullpath;
  4008. - if (fullpath[0] == '\0')
  4009. - fullpath = "/";
  4010. - snprintf(s, name + namesz - s, "%s:%s:%d",
  4011. - fullpath,
  4012. - fe->prop->name, fe->offset);
  4013. - s += strlen(s) + 1;
  4014. - }
  4015. -
  4016. - nameoff = stringtable_insert(strbuf, f->ref);
  4017. - vallen = s - name - 1;
  4018. -
  4019. - emit->property(etarget, NULL);
  4020. - emit->cell(etarget, vallen + 1);
  4021. - emit->cell(etarget, nameoff);
  4022. -
  4023. - if ((vi->flags & FTF_VARALIGN) && vallen >= 8)
  4024. - emit->align(etarget, 8);
  4025. -
  4026. - emit->string(etarget, name, vallen);
  4027. - emit->align(etarget, sizeof(cell_t));
  4028. -
  4029. - free(name);
  4030. - }
  4031. -
  4032. - emit->endnode(etarget, tree->labels);
  4033. - }
  4034. -
  4035. - /* add the local fixup property */
  4036. - if (tree->local_fixups) {
  4037. -
  4038. - /* emit the external fixups */
  4039. - emit->beginnode(etarget, NULL);
  4040. - emit->string(etarget, "__local_fixups__", 0);
  4041. - emit->align(etarget, sizeof(cell_t));
  4042. -
  4043. - namesz = 0;
  4044. - for_each_local_fixup_entry(tree, fe) {
  4045. - fullpath = fe->node->fullpath;
  4046. - if (fullpath[0] == '\0')
  4047. - fullpath = "/";
  4048. - namesz += strlen(fullpath) + 1;
  4049. - namesz += strlen(fe->prop->name) + 1;
  4050. - namesz += 32; /* space for :<number> + '\0' */
  4051. - }
  4052. -
  4053. - name = xmalloc(namesz);
  4054. -
  4055. - s = name;
  4056. - for_each_local_fixup_entry(tree, fe) {
  4057. - fullpath = fe->node->fullpath;
  4058. - if (fullpath[0] == '\0')
  4059. - fullpath = "/";
  4060. - snprintf(s, name + namesz - s, "%s:%s:%d",
  4061. - fullpath, fe->prop->name,
  4062. - fe->offset);
  4063. - s += strlen(s) + 1;
  4064. - }
  4065. -
  4066. - nameoff = stringtable_insert(strbuf, "fixup");
  4067. - vallen = s - name - 1;
  4068. -
  4069. - emit->property(etarget, NULL);
  4070. - emit->cell(etarget, vallen + 1);
  4071. - emit->cell(etarget, nameoff);
  4072. -
  4073. - if ((vi->flags & FTF_VARALIGN) && vallen >= 8)
  4074. - emit->align(etarget, 8);
  4075. -
  4076. - emit->string(etarget, name, vallen);
  4077. - emit->align(etarget, sizeof(cell_t));
  4078. -
  4079. - free(name);
  4080. -
  4081. - emit->endnode(etarget, tree->labels);
  4082. - }
  4083. -
  4084. -no_symbols:
  4085. emit->endnode(etarget, tree->labels);
  4086. }
  4087. --- a/scripts/dtc/version_gen.h
  4088. +++ b/scripts/dtc/version_gen.h
  4089. @@ -1 +1 @@
  4090. -#define DTC_VERSION "DTC 1.4.1-g9d3649bd-dirty"
  4091. +#define DTC_VERSION "DTC 1.4.1-g9d3649bd"