gccint.info 2.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306
  1. This is gccint.info, produced by makeinfo version 6.8 from gccint.texi.
  2. Copyright (C) 1988-2021 Free Software Foundation, Inc.
  3. Permission is granted to copy, distribute and/or modify this document
  4. under the terms of the GNU Free Documentation License, Version 1.3 or
  5. any later version published by the Free Software Foundation; with the
  6. Invariant Sections being "Funding Free Software", the Front-Cover Texts
  7. being (a) (see below), and with the Back-Cover Texts being (b) (see
  8. below). A copy of the license is included in the section entitled "GNU
  9. Free Documentation License".
  10. (a) The FSF's Front-Cover Text is:
  11. A GNU Manual
  12. (b) The FSF's Back-Cover Text is:
  13. You have freedom to copy and modify this GNU Manual, like GNU software.
  14. Copies published by the Free Software Foundation raise funds for GNU
  15. development.
  16. INFO-DIR-SECTION Software development
  17. START-INFO-DIR-ENTRY
  18. * gccint: (gccint). Internals of the GNU Compiler Collection.
  19. END-INFO-DIR-ENTRY
  20. This file documents the internals of the GNU compilers.
  21. Copyright (C) 1988-2021 Free Software Foundation, Inc.
  22. Permission is granted to copy, distribute and/or modify this document
  23. under the terms of the GNU Free Documentation License, Version 1.3 or
  24. any later version published by the Free Software Foundation; with the
  25. Invariant Sections being "Funding Free Software", the Front-Cover Texts
  26. being (a) (see below), and with the Back-Cover Texts being (b) (see
  27. below). A copy of the license is included in the section entitled "GNU
  28. Free Documentation License".
  29. (a) The FSF's Front-Cover Text is:
  30. A GNU Manual
  31. (b) The FSF's Back-Cover Text is:
  32. You have freedom to copy and modify this GNU Manual, like GNU software.
  33. Copies published by the Free Software Foundation raise funds for GNU
  34. development.
  35. 
  36. File: gccint.info, Node: Top, Next: Contributing, Up: (dir)
  37. Introduction
  38. ************
  39. This manual documents the internals of the GNU compilers, including how
  40. to port them to new targets and some information about how to write
  41. front ends for new languages. It corresponds to the compilers (g)
  42. version 11.1.0. The use of the GNU compilers is documented in a
  43. separate manual. *Note Introduction: (gcc)Top.
  44. This manual is mainly a reference manual rather than a tutorial. It
  45. discusses how to contribute to GCC (*note Contributing::), the
  46. characteristics of the machines supported by GCC as hosts and targets
  47. (*note Portability::), how GCC relates to the ABIs on such systems
  48. (*note Interface::), and the characteristics of the languages for which
  49. GCC front ends are written (*note Languages::). It then describes the
  50. GCC source tree structure and build system, some of the interfaces to
  51. GCC front ends, and how support for a target system is implemented in
  52. GCC.
  53. Additional tutorial information is linked to from
  54. <http://gcc.gnu.org/readings.html>.
  55. * Menu:
  56. * Contributing:: How to contribute to testing and developing GCC.
  57. * Portability:: Goals of GCC's portability features.
  58. * Interface:: Function-call interface of GCC output.
  59. * Libgcc:: Low-level runtime library used by GCC.
  60. * Languages:: Languages for which GCC front ends are written.
  61. * Source Tree:: GCC source tree structure and build system.
  62. * Testsuites:: GCC testsuites.
  63. * Options:: Option specification files.
  64. * Passes:: Order of passes, what they do, and what each file is for.
  65. * poly_int:: Representation of runtime sizes and offsets.
  66. * GENERIC:: Language-independent representation generated by Front Ends
  67. * GIMPLE:: Tuple representation used by Tree SSA optimizers
  68. * Tree SSA:: Analysis and optimization of GIMPLE
  69. * RTL:: Machine-dependent low-level intermediate representation.
  70. * Control Flow:: Maintaining and manipulating the control flow graph.
  71. * Loop Analysis and Representation:: Analysis and representation of loops
  72. * Machine Desc:: How to write machine description instruction patterns.
  73. * Target Macros:: How to write the machine description C macros and functions.
  74. * Host Config:: Writing the 'xm-MACHINE.h' file.
  75. * Fragments:: Writing the 't-TARGET' and 'x-HOST' files.
  76. * Collect2:: How 'collect2' works; how it finds 'ld'.
  77. * Header Dirs:: Understanding the standard header file directories.
  78. * Type Information:: GCC's memory management; generating type information.
  79. * Plugins:: Extending the compiler with plugins.
  80. * LTO:: Using Link-Time Optimization.
  81. * Match and Simplify:: How to write expression simplification patterns for GIMPLE and GENERIC
  82. * Static Analyzer:: Working with the static analyzer.
  83. * User Experience Guidelines:: Guidelines for implementing diagnostics and options.
  84. * Funding:: How to help assure funding for free software.
  85. * GNU Project:: The GNU Project and GNU/Linux.
  86. * Copying:: GNU General Public License says
  87. how you can copy and share GCC.
  88. * GNU Free Documentation License:: How you can copy and share this manual.
  89. * Contributors:: People who have contributed to GCC.
  90. * Option Index:: Index to command line options.
  91. * Concept Index:: Index of concepts and symbol names.
  92. 
  93. File: gccint.info, Node: Contributing, Next: Portability, Up: Top
  94. 1 Contributing to GCC Development
  95. *********************************
  96. If you would like to help pretest GCC releases to assure they work well,
  97. current development sources are available via Git (see
  98. <http://gcc.gnu.org/git.html>). Source and binary snapshots are also
  99. available for FTP; see <http://gcc.gnu.org/snapshots.html>.
  100. If you would like to work on improvements to GCC, please read the
  101. advice at these URLs:
  102. <http://gcc.gnu.org/contribute.html>
  103. <http://gcc.gnu.org/contributewhy.html>
  104. for information on how to make useful contributions and avoid
  105. duplication of effort. Suggested projects are listed at
  106. <http://gcc.gnu.org/projects/>.
  107. 
  108. File: gccint.info, Node: Portability, Next: Interface, Prev: Contributing, Up: Top
  109. 2 GCC and Portability
  110. *********************
  111. GCC itself aims to be portable to any machine where 'int' is at least a
  112. 32-bit type. It aims to target machines with a flat (non-segmented)
  113. byte addressed data address space (the code address space can be
  114. separate). Target ABIs may have 8, 16, 32 or 64-bit 'int' type. 'char'
  115. can be wider than 8 bits.
  116. GCC gets most of the information about the target machine from a
  117. machine description which gives an algebraic formula for each of the
  118. machine's instructions. This is a very clean way to describe the
  119. target. But when the compiler needs information that is difficult to
  120. express in this fashion, ad-hoc parameters have been defined for machine
  121. descriptions. The purpose of portability is to reduce the total work
  122. needed on the compiler; it was not of interest for its own sake.
  123. GCC does not contain machine dependent code, but it does contain code
  124. that depends on machine parameters such as endianness (whether the most
  125. significant byte has the highest or lowest address of the bytes in a
  126. word) and the availability of autoincrement addressing. In the
  127. RTL-generation pass, it is often necessary to have multiple strategies
  128. for generating code for a particular kind of syntax tree, strategies
  129. that are usable for different combinations of parameters. Often, not
  130. all possible cases have been addressed, but only the common ones or only
  131. the ones that have been encountered. As a result, a new target may
  132. require additional strategies. You will know if this happens because
  133. the compiler will call 'abort'. Fortunately, the new strategies can be
  134. added in a machine-independent fashion, and will affect only the target
  135. machines that need them.
  136. 
  137. File: gccint.info, Node: Interface, Next: Libgcc, Prev: Portability, Up: Top
  138. 3 Interfacing to GCC Output
  139. ***************************
  140. GCC is normally configured to use the same function calling convention
  141. normally in use on the target system. This is done with the
  142. machine-description macros described (*note Target Macros::).
  143. However, returning of structure and union values is done differently on
  144. some target machines. As a result, functions compiled with PCC
  145. returning such types cannot be called from code compiled with GCC, and
  146. vice versa. This does not cause trouble often because few Unix library
  147. routines return structures or unions.
  148. GCC code returns structures and unions that are 1, 2, 4 or 8 bytes long
  149. in the same registers used for 'int' or 'double' return values. (GCC
  150. typically allocates variables of such types in registers also.)
  151. Structures and unions of other sizes are returned by storing them into
  152. an address passed by the caller (usually in a register). The target
  153. hook 'TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  154. By contrast, PCC on most target machines returns structures and unions
  155. of any size by copying the data into an area of static storage, and then
  156. returning the address of that storage as if it were a pointer value.
  157. The caller must copy the data from that memory area to the place where
  158. the value is wanted. This is slower than the method used by GCC, and
  159. fails to be reentrant.
  160. On some target machines, such as RISC machines and the 80386, the
  161. standard system convention is to pass to the subroutine the address of
  162. where to return the value. On these machines, GCC has been configured
  163. to be compatible with the standard compiler, when this method is used.
  164. It may not be compatible for structures of 1, 2, 4 or 8 bytes.
  165. GCC uses the system's standard convention for passing arguments. On
  166. some machines, the first few arguments are passed in registers; in
  167. others, all are passed on the stack. It would be possible to use
  168. registers for argument passing on any machine, and this would probably
  169. result in a significant speedup. But the result would be complete
  170. incompatibility with code that follows the standard convention. So this
  171. change is practical only if you are switching to GCC as the sole C
  172. compiler for the system. We may implement register argument passing on
  173. certain machines once we have a complete GNU system so that we can
  174. compile the libraries with GCC.
  175. On some machines (particularly the SPARC), certain types of arguments
  176. are passed "by invisible reference". This means that the value is
  177. stored in memory, and the address of the memory location is passed to
  178. the subroutine.
  179. If you use 'longjmp', beware of automatic variables. ISO C says that
  180. automatic variables that are not declared 'volatile' have undefined
  181. values after a 'longjmp'. And this is all GCC promises to do, because
  182. it is very difficult to restore register variables correctly, and one of
  183. GCC's features is that it can put variables in registers without your
  184. asking it to.
  185. 
  186. File: gccint.info, Node: Libgcc, Next: Languages, Prev: Interface, Up: Top
  187. 4 The GCC low-level runtime library
  188. ***********************************
  189. GCC provides a low-level runtime library, 'libgcc.a' or 'libgcc_s.so.1'
  190. on some platforms. GCC generates calls to routines in this library
  191. automatically, whenever it needs to perform some operation that is too
  192. complicated to emit inline code for.
  193. Most of the routines in 'libgcc' handle arithmetic operations that the
  194. target processor cannot perform directly. This includes integer
  195. multiply and divide on some machines, and all floating-point and
  196. fixed-point operations on other machines. 'libgcc' also includes
  197. routines for exception handling, and a handful of miscellaneous
  198. operations.
  199. Some of these routines can be defined in mostly machine-independent C.
  200. Others must be hand-written in assembly language for each processor that
  201. needs them.
  202. GCC will also generate calls to C library routines, such as 'memcpy'
  203. and 'memset', in some cases. The set of routines that GCC may possibly
  204. use is documented in *note (gcc)Other Builtins::.
  205. These routines take arguments and return values of a specific machine
  206. mode, not a specific C type. *Note Machine Modes::, for an explanation
  207. of this concept. For illustrative purposes, in this chapter the
  208. floating point type 'float' is assumed to correspond to 'SFmode';
  209. 'double' to 'DFmode'; and 'long double' to both 'TFmode' and 'XFmode'.
  210. Similarly, the integer types 'int' and 'unsigned int' correspond to
  211. 'SImode'; 'long' and 'unsigned long' to 'DImode'; and 'long long' and
  212. 'unsigned long long' to 'TImode'.
  213. * Menu:
  214. * Integer library routines::
  215. * Soft float library routines::
  216. * Decimal float library routines::
  217. * Fixed-point fractional library routines::
  218. * Exception handling routines::
  219. * Miscellaneous routines::
  220. 
  221. File: gccint.info, Node: Integer library routines, Next: Soft float library routines, Up: Libgcc
  222. 4.1 Routines for integer arithmetic
  223. ===================================
  224. The integer arithmetic routines are used on platforms that don't provide
  225. hardware support for arithmetic operations on some modes.
  226. 4.1.1 Arithmetic functions
  227. --------------------------
  228. -- Runtime Function: int __ashlsi3 (int A, int B)
  229. -- Runtime Function: long __ashldi3 (long A, int B)
  230. -- Runtime Function: long long __ashlti3 (long long A, int B)
  231. These functions return the result of shifting A left by B bits.
  232. -- Runtime Function: int __ashrsi3 (int A, int B)
  233. -- Runtime Function: long __ashrdi3 (long A, int B)
  234. -- Runtime Function: long long __ashrti3 (long long A, int B)
  235. These functions return the result of arithmetically shifting A
  236. right by B bits.
  237. -- Runtime Function: int __divsi3 (int A, int B)
  238. -- Runtime Function: long __divdi3 (long A, long B)
  239. -- Runtime Function: long long __divti3 (long long A, long long B)
  240. These functions return the quotient of the signed division of A and
  241. B.
  242. -- Runtime Function: int __lshrsi3 (int A, int B)
  243. -- Runtime Function: long __lshrdi3 (long A, int B)
  244. -- Runtime Function: long long __lshrti3 (long long A, int B)
  245. These functions return the result of logically shifting A right by
  246. B bits.
  247. -- Runtime Function: int __modsi3 (int A, int B)
  248. -- Runtime Function: long __moddi3 (long A, long B)
  249. -- Runtime Function: long long __modti3 (long long A, long long B)
  250. These functions return the remainder of the signed division of A
  251. and B.
  252. -- Runtime Function: int __mulsi3 (int A, int B)
  253. -- Runtime Function: long __muldi3 (long A, long B)
  254. -- Runtime Function: long long __multi3 (long long A, long long B)
  255. These functions return the product of A and B.
  256. -- Runtime Function: long __negdi2 (long A)
  257. -- Runtime Function: long long __negti2 (long long A)
  258. These functions return the negation of A.
  259. -- Runtime Function: unsigned int __udivsi3 (unsigned int A, unsigned
  260. int B)
  261. -- Runtime Function: unsigned long __udivdi3 (unsigned long A, unsigned
  262. long B)
  263. -- Runtime Function: unsigned long long __udivti3 (unsigned long long
  264. A, unsigned long long B)
  265. These functions return the quotient of the unsigned division of A
  266. and B.
  267. -- Runtime Function: unsigned long __udivmoddi4 (unsigned long A,
  268. unsigned long B, unsigned long *C)
  269. -- Runtime Function: unsigned long long __udivmodti4 (unsigned long
  270. long A, unsigned long long B, unsigned long long *C)
  271. These functions calculate both the quotient and remainder of the
  272. unsigned division of A and B. The return value is the quotient,
  273. and the remainder is placed in variable pointed to by C.
  274. -- Runtime Function: unsigned int __umodsi3 (unsigned int A, unsigned
  275. int B)
  276. -- Runtime Function: unsigned long __umoddi3 (unsigned long A, unsigned
  277. long B)
  278. -- Runtime Function: unsigned long long __umodti3 (unsigned long long
  279. A, unsigned long long B)
  280. These functions return the remainder of the unsigned division of A
  281. and B.
  282. 4.1.2 Comparison functions
  283. --------------------------
  284. The following functions implement integral comparisons. These functions
  285. implement a low-level compare, upon which the higher level comparison
  286. operators (such as less than and greater than or equal to) can be
  287. constructed. The returned values lie in the range zero to two, to allow
  288. the high-level operators to be implemented by testing the returned
  289. result using either signed or unsigned comparison.
  290. -- Runtime Function: int __cmpdi2 (long A, long B)
  291. -- Runtime Function: int __cmpti2 (long long A, long long B)
  292. These functions perform a signed comparison of A and B. If A is
  293. less than B, they return 0; if A is greater than B, they return 2;
  294. and if A and B are equal they return 1.
  295. -- Runtime Function: int __ucmpdi2 (unsigned long A, unsigned long B)
  296. -- Runtime Function: int __ucmpti2 (unsigned long long A, unsigned long
  297. long B)
  298. These functions perform an unsigned comparison of A and B. If A is
  299. less than B, they return 0; if A is greater than B, they return 2;
  300. and if A and B are equal they return 1.
  301. 4.1.3 Trapping arithmetic functions
  302. -----------------------------------
  303. The following functions implement trapping arithmetic. These functions
  304. call the libc function 'abort' upon signed arithmetic overflow.
  305. -- Runtime Function: int __absvsi2 (int A)
  306. -- Runtime Function: long __absvdi2 (long A)
  307. These functions return the absolute value of A.
  308. -- Runtime Function: int __addvsi3 (int A, int B)
  309. -- Runtime Function: long __addvdi3 (long A, long B)
  310. These functions return the sum of A and B; that is 'A + B'.
  311. -- Runtime Function: int __mulvsi3 (int A, int B)
  312. -- Runtime Function: long __mulvdi3 (long A, long B)
  313. The functions return the product of A and B; that is 'A * B'.
  314. -- Runtime Function: int __negvsi2 (int A)
  315. -- Runtime Function: long __negvdi2 (long A)
  316. These functions return the negation of A; that is '-A'.
  317. -- Runtime Function: int __subvsi3 (int A, int B)
  318. -- Runtime Function: long __subvdi3 (long A, long B)
  319. These functions return the difference between B and A; that is 'A -
  320. B'.
  321. 4.1.4 Bit operations
  322. --------------------
  323. -- Runtime Function: int __clzsi2 (unsigned int A)
  324. -- Runtime Function: int __clzdi2 (unsigned long A)
  325. -- Runtime Function: int __clzti2 (unsigned long long A)
  326. These functions return the number of leading 0-bits in A, starting
  327. at the most significant bit position. If A is zero, the result is
  328. undefined.
  329. -- Runtime Function: int __ctzsi2 (unsigned int A)
  330. -- Runtime Function: int __ctzdi2 (unsigned long A)
  331. -- Runtime Function: int __ctzti2 (unsigned long long A)
  332. These functions return the number of trailing 0-bits in A, starting
  333. at the least significant bit position. If A is zero, the result is
  334. undefined.
  335. -- Runtime Function: int __ffsdi2 (unsigned long A)
  336. -- Runtime Function: int __ffsti2 (unsigned long long A)
  337. These functions return the index of the least significant 1-bit in
  338. A, or the value zero if A is zero. The least significant bit is
  339. index one.
  340. -- Runtime Function: int __paritysi2 (unsigned int A)
  341. -- Runtime Function: int __paritydi2 (unsigned long A)
  342. -- Runtime Function: int __parityti2 (unsigned long long A)
  343. These functions return the value zero if the number of bits set in
  344. A is even, and the value one otherwise.
  345. -- Runtime Function: int __popcountsi2 (unsigned int A)
  346. -- Runtime Function: int __popcountdi2 (unsigned long A)
  347. -- Runtime Function: int __popcountti2 (unsigned long long A)
  348. These functions return the number of bits set in A.
  349. -- Runtime Function: int32_t __bswapsi2 (int32_t A)
  350. -- Runtime Function: int64_t __bswapdi2 (int64_t A)
  351. These functions return the A byteswapped.
  352. 
  353. File: gccint.info, Node: Soft float library routines, Next: Decimal float library routines, Prev: Integer library routines, Up: Libgcc
  354. 4.2 Routines for floating point emulation
  355. =========================================
  356. The software floating point library is used on machines which do not
  357. have hardware support for floating point. It is also used whenever
  358. '-msoft-float' is used to disable generation of floating point
  359. instructions. (Not all targets support this switch.)
  360. For compatibility with other compilers, the floating point emulation
  361. routines can be renamed with the 'DECLARE_LIBRARY_RENAMES' macro (*note
  362. Library Calls::). In this section, the default names are used.
  363. Presently the library does not support 'XFmode', which is used for
  364. 'long double' on some architectures.
  365. 4.2.1 Arithmetic functions
  366. --------------------------
  367. -- Runtime Function: float __addsf3 (float A, float B)
  368. -- Runtime Function: double __adddf3 (double A, double B)
  369. -- Runtime Function: long double __addtf3 (long double A, long double
  370. B)
  371. -- Runtime Function: long double __addxf3 (long double A, long double
  372. B)
  373. These functions return the sum of A and B.
  374. -- Runtime Function: float __subsf3 (float A, float B)
  375. -- Runtime Function: double __subdf3 (double A, double B)
  376. -- Runtime Function: long double __subtf3 (long double A, long double
  377. B)
  378. -- Runtime Function: long double __subxf3 (long double A, long double
  379. B)
  380. These functions return the difference between B and A; that is,
  381. A - B.
  382. -- Runtime Function: float __mulsf3 (float A, float B)
  383. -- Runtime Function: double __muldf3 (double A, double B)
  384. -- Runtime Function: long double __multf3 (long double A, long double
  385. B)
  386. -- Runtime Function: long double __mulxf3 (long double A, long double
  387. B)
  388. These functions return the product of A and B.
  389. -- Runtime Function: float __divsf3 (float A, float B)
  390. -- Runtime Function: double __divdf3 (double A, double B)
  391. -- Runtime Function: long double __divtf3 (long double A, long double
  392. B)
  393. -- Runtime Function: long double __divxf3 (long double A, long double
  394. B)
  395. These functions return the quotient of A and B; that is, A / B.
  396. -- Runtime Function: float __negsf2 (float A)
  397. -- Runtime Function: double __negdf2 (double A)
  398. -- Runtime Function: long double __negtf2 (long double A)
  399. -- Runtime Function: long double __negxf2 (long double A)
  400. These functions return the negation of A. They simply flip the
  401. sign bit, so they can produce negative zero and negative NaN.
  402. 4.2.2 Conversion functions
  403. --------------------------
  404. -- Runtime Function: double __extendsfdf2 (float A)
  405. -- Runtime Function: long double __extendsftf2 (float A)
  406. -- Runtime Function: long double __extendsfxf2 (float A)
  407. -- Runtime Function: long double __extenddftf2 (double A)
  408. -- Runtime Function: long double __extenddfxf2 (double A)
  409. These functions extend A to the wider mode of their return type.
  410. -- Runtime Function: double __truncxfdf2 (long double A)
  411. -- Runtime Function: double __trunctfdf2 (long double A)
  412. -- Runtime Function: float __truncxfsf2 (long double A)
  413. -- Runtime Function: float __trunctfsf2 (long double A)
  414. -- Runtime Function: float __truncdfsf2 (double A)
  415. These functions truncate A to the narrower mode of their return
  416. type, rounding toward zero.
  417. -- Runtime Function: int __fixsfsi (float A)
  418. -- Runtime Function: int __fixdfsi (double A)
  419. -- Runtime Function: int __fixtfsi (long double A)
  420. -- Runtime Function: int __fixxfsi (long double A)
  421. These functions convert A to a signed integer, rounding toward
  422. zero.
  423. -- Runtime Function: long __fixsfdi (float A)
  424. -- Runtime Function: long __fixdfdi (double A)
  425. -- Runtime Function: long __fixtfdi (long double A)
  426. -- Runtime Function: long __fixxfdi (long double A)
  427. These functions convert A to a signed long, rounding toward zero.
  428. -- Runtime Function: long long __fixsfti (float A)
  429. -- Runtime Function: long long __fixdfti (double A)
  430. -- Runtime Function: long long __fixtfti (long double A)
  431. -- Runtime Function: long long __fixxfti (long double A)
  432. These functions convert A to a signed long long, rounding toward
  433. zero.
  434. -- Runtime Function: unsigned int __fixunssfsi (float A)
  435. -- Runtime Function: unsigned int __fixunsdfsi (double A)
  436. -- Runtime Function: unsigned int __fixunstfsi (long double A)
  437. -- Runtime Function: unsigned int __fixunsxfsi (long double A)
  438. These functions convert A to an unsigned integer, rounding toward
  439. zero. Negative values all become zero.
  440. -- Runtime Function: unsigned long __fixunssfdi (float A)
  441. -- Runtime Function: unsigned long __fixunsdfdi (double A)
  442. -- Runtime Function: unsigned long __fixunstfdi (long double A)
  443. -- Runtime Function: unsigned long __fixunsxfdi (long double A)
  444. These functions convert A to an unsigned long, rounding toward
  445. zero. Negative values all become zero.
  446. -- Runtime Function: unsigned long long __fixunssfti (float A)
  447. -- Runtime Function: unsigned long long __fixunsdfti (double A)
  448. -- Runtime Function: unsigned long long __fixunstfti (long double A)
  449. -- Runtime Function: unsigned long long __fixunsxfti (long double A)
  450. These functions convert A to an unsigned long long, rounding toward
  451. zero. Negative values all become zero.
  452. -- Runtime Function: float __floatsisf (int I)
  453. -- Runtime Function: double __floatsidf (int I)
  454. -- Runtime Function: long double __floatsitf (int I)
  455. -- Runtime Function: long double __floatsixf (int I)
  456. These functions convert I, a signed integer, to floating point.
  457. -- Runtime Function: float __floatdisf (long I)
  458. -- Runtime Function: double __floatdidf (long I)
  459. -- Runtime Function: long double __floatditf (long I)
  460. -- Runtime Function: long double __floatdixf (long I)
  461. These functions convert I, a signed long, to floating point.
  462. -- Runtime Function: float __floattisf (long long I)
  463. -- Runtime Function: double __floattidf (long long I)
  464. -- Runtime Function: long double __floattitf (long long I)
  465. -- Runtime Function: long double __floattixf (long long I)
  466. These functions convert I, a signed long long, to floating point.
  467. -- Runtime Function: float __floatunsisf (unsigned int I)
  468. -- Runtime Function: double __floatunsidf (unsigned int I)
  469. -- Runtime Function: long double __floatunsitf (unsigned int I)
  470. -- Runtime Function: long double __floatunsixf (unsigned int I)
  471. These functions convert I, an unsigned integer, to floating point.
  472. -- Runtime Function: float __floatundisf (unsigned long I)
  473. -- Runtime Function: double __floatundidf (unsigned long I)
  474. -- Runtime Function: long double __floatunditf (unsigned long I)
  475. -- Runtime Function: long double __floatundixf (unsigned long I)
  476. These functions convert I, an unsigned long, to floating point.
  477. -- Runtime Function: float __floatuntisf (unsigned long long I)
  478. -- Runtime Function: double __floatuntidf (unsigned long long I)
  479. -- Runtime Function: long double __floatuntitf (unsigned long long I)
  480. -- Runtime Function: long double __floatuntixf (unsigned long long I)
  481. These functions convert I, an unsigned long long, to floating
  482. point.
  483. 4.2.3 Comparison functions
  484. --------------------------
  485. There are two sets of basic comparison functions.
  486. -- Runtime Function: int __cmpsf2 (float A, float B)
  487. -- Runtime Function: int __cmpdf2 (double A, double B)
  488. -- Runtime Function: int __cmptf2 (long double A, long double B)
  489. These functions calculate a <=> b. That is, if A is less than B,
  490. they return -1; if A is greater than B, they return 1; and if A and
  491. B are equal they return 0. If either argument is NaN they return
  492. 1, but you should not rely on this; if NaN is a possibility, use
  493. one of the higher-level comparison functions.
  494. -- Runtime Function: int __unordsf2 (float A, float B)
  495. -- Runtime Function: int __unorddf2 (double A, double B)
  496. -- Runtime Function: int __unordtf2 (long double A, long double B)
  497. These functions return a nonzero value if either argument is NaN,
  498. otherwise 0.
  499. There is also a complete group of higher level functions which
  500. correspond directly to comparison operators. They implement the ISO C
  501. semantics for floating-point comparisons, taking NaN into account. Pay
  502. careful attention to the return values defined for each set. Under the
  503. hood, all of these routines are implemented as
  504. if (__unordXf2 (a, b))
  505. return E;
  506. return __cmpXf2 (a, b);
  507. where E is a constant chosen to give the proper behavior for NaN. Thus,
  508. the meaning of the return value is different for each set. Do not rely
  509. on this implementation; only the semantics documented below are
  510. guaranteed.
  511. -- Runtime Function: int __eqsf2 (float A, float B)
  512. -- Runtime Function: int __eqdf2 (double A, double B)
  513. -- Runtime Function: int __eqtf2 (long double A, long double B)
  514. These functions return zero if neither argument is NaN, and A and B
  515. are equal.
  516. -- Runtime Function: int __nesf2 (float A, float B)
  517. -- Runtime Function: int __nedf2 (double A, double B)
  518. -- Runtime Function: int __netf2 (long double A, long double B)
  519. These functions return a nonzero value if either argument is NaN,
  520. or if A and B are unequal.
  521. -- Runtime Function: int __gesf2 (float A, float B)
  522. -- Runtime Function: int __gedf2 (double A, double B)
  523. -- Runtime Function: int __getf2 (long double A, long double B)
  524. These functions return a value greater than or equal to zero if
  525. neither argument is NaN, and A is greater than or equal to B.
  526. -- Runtime Function: int __ltsf2 (float A, float B)
  527. -- Runtime Function: int __ltdf2 (double A, double B)
  528. -- Runtime Function: int __lttf2 (long double A, long double B)
  529. These functions return a value less than zero if neither argument
  530. is NaN, and A is strictly less than B.
  531. -- Runtime Function: int __lesf2 (float A, float B)
  532. -- Runtime Function: int __ledf2 (double A, double B)
  533. -- Runtime Function: int __letf2 (long double A, long double B)
  534. These functions return a value less than or equal to zero if
  535. neither argument is NaN, and A is less than or equal to B.
  536. -- Runtime Function: int __gtsf2 (float A, float B)
  537. -- Runtime Function: int __gtdf2 (double A, double B)
  538. -- Runtime Function: int __gttf2 (long double A, long double B)
  539. These functions return a value greater than zero if neither
  540. argument is NaN, and A is strictly greater than B.
  541. 4.2.4 Other floating-point functions
  542. ------------------------------------
  543. -- Runtime Function: float __powisf2 (float A, int B)
  544. -- Runtime Function: double __powidf2 (double A, int B)
  545. -- Runtime Function: long double __powitf2 (long double A, int B)
  546. -- Runtime Function: long double __powixf2 (long double A, int B)
  547. These functions convert raise A to the power B.
  548. -- Runtime Function: complex float __mulsc3 (float A, float B, float C,
  549. float D)
  550. -- Runtime Function: complex double __muldc3 (double A, double B,
  551. double C, double D)
  552. -- Runtime Function: complex long double __multc3 (long double A, long
  553. double B, long double C, long double D)
  554. -- Runtime Function: complex long double __mulxc3 (long double A, long
  555. double B, long double C, long double D)
  556. These functions return the product of A + iB and C + iD, following
  557. the rules of C99 Annex G.
  558. -- Runtime Function: complex float __divsc3 (float A, float B, float C,
  559. float D)
  560. -- Runtime Function: complex double __divdc3 (double A, double B,
  561. double C, double D)
  562. -- Runtime Function: complex long double __divtc3 (long double A, long
  563. double B, long double C, long double D)
  564. -- Runtime Function: complex long double __divxc3 (long double A, long
  565. double B, long double C, long double D)
  566. These functions return the quotient of A + iB and C + iD (i.e., (A
  567. + iB) / (C + iD)), following the rules of C99 Annex G.
  568. 
  569. File: gccint.info, Node: Decimal float library routines, Next: Fixed-point fractional library routines, Prev: Soft float library routines, Up: Libgcc
  570. 4.3 Routines for decimal floating point emulation
  571. =================================================
  572. The software decimal floating point library implements IEEE 754-2008
  573. decimal floating point arithmetic and is only activated on selected
  574. targets.
  575. The software decimal floating point library supports either DPD
  576. (Densely Packed Decimal) or BID (Binary Integer Decimal) encoding as
  577. selected at configure time.
  578. 4.3.1 Arithmetic functions
  579. --------------------------
  580. -- Runtime Function: _Decimal32 __dpd_addsd3 (_Decimal32 A, _Decimal32
  581. B)
  582. -- Runtime Function: _Decimal32 __bid_addsd3 (_Decimal32 A, _Decimal32
  583. B)
  584. -- Runtime Function: _Decimal64 __dpd_adddd3 (_Decimal64 A, _Decimal64
  585. B)
  586. -- Runtime Function: _Decimal64 __bid_adddd3 (_Decimal64 A, _Decimal64
  587. B)
  588. -- Runtime Function: _Decimal128 __dpd_addtd3 (_Decimal128 A,
  589. _Decimal128 B)
  590. -- Runtime Function: _Decimal128 __bid_addtd3 (_Decimal128 A,
  591. _Decimal128 B)
  592. These functions return the sum of A and B.
  593. -- Runtime Function: _Decimal32 __dpd_subsd3 (_Decimal32 A, _Decimal32
  594. B)
  595. -- Runtime Function: _Decimal32 __bid_subsd3 (_Decimal32 A, _Decimal32
  596. B)
  597. -- Runtime Function: _Decimal64 __dpd_subdd3 (_Decimal64 A, _Decimal64
  598. B)
  599. -- Runtime Function: _Decimal64 __bid_subdd3 (_Decimal64 A, _Decimal64
  600. B)
  601. -- Runtime Function: _Decimal128 __dpd_subtd3 (_Decimal128 A,
  602. _Decimal128 B)
  603. -- Runtime Function: _Decimal128 __bid_subtd3 (_Decimal128 A,
  604. _Decimal128 B)
  605. These functions return the difference between B and A; that is,
  606. A - B.
  607. -- Runtime Function: _Decimal32 __dpd_mulsd3 (_Decimal32 A, _Decimal32
  608. B)
  609. -- Runtime Function: _Decimal32 __bid_mulsd3 (_Decimal32 A, _Decimal32
  610. B)
  611. -- Runtime Function: _Decimal64 __dpd_muldd3 (_Decimal64 A, _Decimal64
  612. B)
  613. -- Runtime Function: _Decimal64 __bid_muldd3 (_Decimal64 A, _Decimal64
  614. B)
  615. -- Runtime Function: _Decimal128 __dpd_multd3 (_Decimal128 A,
  616. _Decimal128 B)
  617. -- Runtime Function: _Decimal128 __bid_multd3 (_Decimal128 A,
  618. _Decimal128 B)
  619. These functions return the product of A and B.
  620. -- Runtime Function: _Decimal32 __dpd_divsd3 (_Decimal32 A, _Decimal32
  621. B)
  622. -- Runtime Function: _Decimal32 __bid_divsd3 (_Decimal32 A, _Decimal32
  623. B)
  624. -- Runtime Function: _Decimal64 __dpd_divdd3 (_Decimal64 A, _Decimal64
  625. B)
  626. -- Runtime Function: _Decimal64 __bid_divdd3 (_Decimal64 A, _Decimal64
  627. B)
  628. -- Runtime Function: _Decimal128 __dpd_divtd3 (_Decimal128 A,
  629. _Decimal128 B)
  630. -- Runtime Function: _Decimal128 __bid_divtd3 (_Decimal128 A,
  631. _Decimal128 B)
  632. These functions return the quotient of A and B; that is, A / B.
  633. -- Runtime Function: _Decimal32 __dpd_negsd2 (_Decimal32 A)
  634. -- Runtime Function: _Decimal32 __bid_negsd2 (_Decimal32 A)
  635. -- Runtime Function: _Decimal64 __dpd_negdd2 (_Decimal64 A)
  636. -- Runtime Function: _Decimal64 __bid_negdd2 (_Decimal64 A)
  637. -- Runtime Function: _Decimal128 __dpd_negtd2 (_Decimal128 A)
  638. -- Runtime Function: _Decimal128 __bid_negtd2 (_Decimal128 A)
  639. These functions return the negation of A. They simply flip the
  640. sign bit, so they can produce negative zero and negative NaN.
  641. 4.3.2 Conversion functions
  642. --------------------------
  643. -- Runtime Function: _Decimal64 __dpd_extendsddd2 (_Decimal32 A)
  644. -- Runtime Function: _Decimal64 __bid_extendsddd2 (_Decimal32 A)
  645. -- Runtime Function: _Decimal128 __dpd_extendsdtd2 (_Decimal32 A)
  646. -- Runtime Function: _Decimal128 __bid_extendsdtd2 (_Decimal32 A)
  647. -- Runtime Function: _Decimal128 __dpd_extendddtd2 (_Decimal64 A)
  648. -- Runtime Function: _Decimal128 __bid_extendddtd2 (_Decimal64 A)
  649. -- Runtime Function: _Decimal32 __dpd_truncddsd2 (_Decimal64 A)
  650. -- Runtime Function: _Decimal32 __bid_truncddsd2 (_Decimal64 A)
  651. -- Runtime Function: _Decimal32 __dpd_trunctdsd2 (_Decimal128 A)
  652. -- Runtime Function: _Decimal32 __bid_trunctdsd2 (_Decimal128 A)
  653. -- Runtime Function: _Decimal64 __dpd_trunctddd2 (_Decimal128 A)
  654. -- Runtime Function: _Decimal64 __bid_trunctddd2 (_Decimal128 A)
  655. These functions convert the value A from one decimal floating type
  656. to another.
  657. -- Runtime Function: _Decimal64 __dpd_extendsfdd (float A)
  658. -- Runtime Function: _Decimal64 __bid_extendsfdd (float A)
  659. -- Runtime Function: _Decimal128 __dpd_extendsftd (float A)
  660. -- Runtime Function: _Decimal128 __bid_extendsftd (float A)
  661. -- Runtime Function: _Decimal128 __dpd_extenddftd (double A)
  662. -- Runtime Function: _Decimal128 __bid_extenddftd (double A)
  663. -- Runtime Function: _Decimal128 __dpd_extendxftd (long double A)
  664. -- Runtime Function: _Decimal128 __bid_extendxftd (long double A)
  665. -- Runtime Function: _Decimal32 __dpd_truncdfsd (double A)
  666. -- Runtime Function: _Decimal32 __bid_truncdfsd (double A)
  667. -- Runtime Function: _Decimal32 __dpd_truncxfsd (long double A)
  668. -- Runtime Function: _Decimal32 __bid_truncxfsd (long double A)
  669. -- Runtime Function: _Decimal32 __dpd_trunctfsd (long double A)
  670. -- Runtime Function: _Decimal32 __bid_trunctfsd (long double A)
  671. -- Runtime Function: _Decimal64 __dpd_truncxfdd (long double A)
  672. -- Runtime Function: _Decimal64 __bid_truncxfdd (long double A)
  673. -- Runtime Function: _Decimal64 __dpd_trunctfdd (long double A)
  674. -- Runtime Function: _Decimal64 __bid_trunctfdd (long double A)
  675. These functions convert the value of A from a binary floating type
  676. to a decimal floating type of a different size.
  677. -- Runtime Function: float __dpd_truncddsf (_Decimal64 A)
  678. -- Runtime Function: float __bid_truncddsf (_Decimal64 A)
  679. -- Runtime Function: float __dpd_trunctdsf (_Decimal128 A)
  680. -- Runtime Function: float __bid_trunctdsf (_Decimal128 A)
  681. -- Runtime Function: double __dpd_extendsddf (_Decimal32 A)
  682. -- Runtime Function: double __bid_extendsddf (_Decimal32 A)
  683. -- Runtime Function: double __dpd_trunctddf (_Decimal128 A)
  684. -- Runtime Function: double __bid_trunctddf (_Decimal128 A)
  685. -- Runtime Function: long double __dpd_extendsdxf (_Decimal32 A)
  686. -- Runtime Function: long double __bid_extendsdxf (_Decimal32 A)
  687. -- Runtime Function: long double __dpd_extendddxf (_Decimal64 A)
  688. -- Runtime Function: long double __bid_extendddxf (_Decimal64 A)
  689. -- Runtime Function: long double __dpd_trunctdxf (_Decimal128 A)
  690. -- Runtime Function: long double __bid_trunctdxf (_Decimal128 A)
  691. -- Runtime Function: long double __dpd_extendsdtf (_Decimal32 A)
  692. -- Runtime Function: long double __bid_extendsdtf (_Decimal32 A)
  693. -- Runtime Function: long double __dpd_extendddtf (_Decimal64 A)
  694. -- Runtime Function: long double __bid_extendddtf (_Decimal64 A)
  695. These functions convert the value of A from a decimal floating type
  696. to a binary floating type of a different size.
  697. -- Runtime Function: _Decimal32 __dpd_extendsfsd (float A)
  698. -- Runtime Function: _Decimal32 __bid_extendsfsd (float A)
  699. -- Runtime Function: _Decimal64 __dpd_extenddfdd (double A)
  700. -- Runtime Function: _Decimal64 __bid_extenddfdd (double A)
  701. -- Runtime Function: _Decimal128 __dpd_extendtftd (long double A)
  702. -- Runtime Function: _Decimal128 __bid_extendtftd (long double A)
  703. -- Runtime Function: float __dpd_truncsdsf (_Decimal32 A)
  704. -- Runtime Function: float __bid_truncsdsf (_Decimal32 A)
  705. -- Runtime Function: double __dpd_truncdddf (_Decimal64 A)
  706. -- Runtime Function: double __bid_truncdddf (_Decimal64 A)
  707. -- Runtime Function: long double __dpd_trunctdtf (_Decimal128 A)
  708. -- Runtime Function: long double __bid_trunctdtf (_Decimal128 A)
  709. These functions convert the value of A between decimal and binary
  710. floating types of the same size.
  711. -- Runtime Function: int __dpd_fixsdsi (_Decimal32 A)
  712. -- Runtime Function: int __bid_fixsdsi (_Decimal32 A)
  713. -- Runtime Function: int __dpd_fixddsi (_Decimal64 A)
  714. -- Runtime Function: int __bid_fixddsi (_Decimal64 A)
  715. -- Runtime Function: int __dpd_fixtdsi (_Decimal128 A)
  716. -- Runtime Function: int __bid_fixtdsi (_Decimal128 A)
  717. These functions convert A to a signed integer.
  718. -- Runtime Function: long __dpd_fixsddi (_Decimal32 A)
  719. -- Runtime Function: long __bid_fixsddi (_Decimal32 A)
  720. -- Runtime Function: long __dpd_fixdddi (_Decimal64 A)
  721. -- Runtime Function: long __bid_fixdddi (_Decimal64 A)
  722. -- Runtime Function: long __dpd_fixtddi (_Decimal128 A)
  723. -- Runtime Function: long __bid_fixtddi (_Decimal128 A)
  724. These functions convert A to a signed long.
  725. -- Runtime Function: unsigned int __dpd_fixunssdsi (_Decimal32 A)
  726. -- Runtime Function: unsigned int __bid_fixunssdsi (_Decimal32 A)
  727. -- Runtime Function: unsigned int __dpd_fixunsddsi (_Decimal64 A)
  728. -- Runtime Function: unsigned int __bid_fixunsddsi (_Decimal64 A)
  729. -- Runtime Function: unsigned int __dpd_fixunstdsi (_Decimal128 A)
  730. -- Runtime Function: unsigned int __bid_fixunstdsi (_Decimal128 A)
  731. These functions convert A to an unsigned integer. Negative values
  732. all become zero.
  733. -- Runtime Function: unsigned long __dpd_fixunssddi (_Decimal32 A)
  734. -- Runtime Function: unsigned long __bid_fixunssddi (_Decimal32 A)
  735. -- Runtime Function: unsigned long __dpd_fixunsdddi (_Decimal64 A)
  736. -- Runtime Function: unsigned long __bid_fixunsdddi (_Decimal64 A)
  737. -- Runtime Function: unsigned long __dpd_fixunstddi (_Decimal128 A)
  738. -- Runtime Function: unsigned long __bid_fixunstddi (_Decimal128 A)
  739. These functions convert A to an unsigned long. Negative values all
  740. become zero.
  741. -- Runtime Function: _Decimal32 __dpd_floatsisd (int I)
  742. -- Runtime Function: _Decimal32 __bid_floatsisd (int I)
  743. -- Runtime Function: _Decimal64 __dpd_floatsidd (int I)
  744. -- Runtime Function: _Decimal64 __bid_floatsidd (int I)
  745. -- Runtime Function: _Decimal128 __dpd_floatsitd (int I)
  746. -- Runtime Function: _Decimal128 __bid_floatsitd (int I)
  747. These functions convert I, a signed integer, to decimal floating
  748. point.
  749. -- Runtime Function: _Decimal32 __dpd_floatdisd (long I)
  750. -- Runtime Function: _Decimal32 __bid_floatdisd (long I)
  751. -- Runtime Function: _Decimal64 __dpd_floatdidd (long I)
  752. -- Runtime Function: _Decimal64 __bid_floatdidd (long I)
  753. -- Runtime Function: _Decimal128 __dpd_floatditd (long I)
  754. -- Runtime Function: _Decimal128 __bid_floatditd (long I)
  755. These functions convert I, a signed long, to decimal floating
  756. point.
  757. -- Runtime Function: _Decimal32 __dpd_floatunssisd (unsigned int I)
  758. -- Runtime Function: _Decimal32 __bid_floatunssisd (unsigned int I)
  759. -- Runtime Function: _Decimal64 __dpd_floatunssidd (unsigned int I)
  760. -- Runtime Function: _Decimal64 __bid_floatunssidd (unsigned int I)
  761. -- Runtime Function: _Decimal128 __dpd_floatunssitd (unsigned int I)
  762. -- Runtime Function: _Decimal128 __bid_floatunssitd (unsigned int I)
  763. These functions convert I, an unsigned integer, to decimal floating
  764. point.
  765. -- Runtime Function: _Decimal32 __dpd_floatunsdisd (unsigned long I)
  766. -- Runtime Function: _Decimal32 __bid_floatunsdisd (unsigned long I)
  767. -- Runtime Function: _Decimal64 __dpd_floatunsdidd (unsigned long I)
  768. -- Runtime Function: _Decimal64 __bid_floatunsdidd (unsigned long I)
  769. -- Runtime Function: _Decimal128 __dpd_floatunsditd (unsigned long I)
  770. -- Runtime Function: _Decimal128 __bid_floatunsditd (unsigned long I)
  771. These functions convert I, an unsigned long, to decimal floating
  772. point.
  773. 4.3.3 Comparison functions
  774. --------------------------
  775. -- Runtime Function: int __dpd_unordsd2 (_Decimal32 A, _Decimal32 B)
  776. -- Runtime Function: int __bid_unordsd2 (_Decimal32 A, _Decimal32 B)
  777. -- Runtime Function: int __dpd_unorddd2 (_Decimal64 A, _Decimal64 B)
  778. -- Runtime Function: int __bid_unorddd2 (_Decimal64 A, _Decimal64 B)
  779. -- Runtime Function: int __dpd_unordtd2 (_Decimal128 A, _Decimal128 B)
  780. -- Runtime Function: int __bid_unordtd2 (_Decimal128 A, _Decimal128 B)
  781. These functions return a nonzero value if either argument is NaN,
  782. otherwise 0.
  783. There is also a complete group of higher level functions which
  784. correspond directly to comparison operators. They implement the ISO C
  785. semantics for floating-point comparisons, taking NaN into account. Pay
  786. careful attention to the return values defined for each set. Under the
  787. hood, all of these routines are implemented as
  788. if (__bid_unordXd2 (a, b))
  789. return E;
  790. return __bid_cmpXd2 (a, b);
  791. where E is a constant chosen to give the proper behavior for NaN. Thus,
  792. the meaning of the return value is different for each set. Do not rely
  793. on this implementation; only the semantics documented below are
  794. guaranteed.
  795. -- Runtime Function: int __dpd_eqsd2 (_Decimal32 A, _Decimal32 B)
  796. -- Runtime Function: int __bid_eqsd2 (_Decimal32 A, _Decimal32 B)
  797. -- Runtime Function: int __dpd_eqdd2 (_Decimal64 A, _Decimal64 B)
  798. -- Runtime Function: int __bid_eqdd2 (_Decimal64 A, _Decimal64 B)
  799. -- Runtime Function: int __dpd_eqtd2 (_Decimal128 A, _Decimal128 B)
  800. -- Runtime Function: int __bid_eqtd2 (_Decimal128 A, _Decimal128 B)
  801. These functions return zero if neither argument is NaN, and A and B
  802. are equal.
  803. -- Runtime Function: int __dpd_nesd2 (_Decimal32 A, _Decimal32 B)
  804. -- Runtime Function: int __bid_nesd2 (_Decimal32 A, _Decimal32 B)
  805. -- Runtime Function: int __dpd_nedd2 (_Decimal64 A, _Decimal64 B)
  806. -- Runtime Function: int __bid_nedd2 (_Decimal64 A, _Decimal64 B)
  807. -- Runtime Function: int __dpd_netd2 (_Decimal128 A, _Decimal128 B)
  808. -- Runtime Function: int __bid_netd2 (_Decimal128 A, _Decimal128 B)
  809. These functions return a nonzero value if either argument is NaN,
  810. or if A and B are unequal.
  811. -- Runtime Function: int __dpd_gesd2 (_Decimal32 A, _Decimal32 B)
  812. -- Runtime Function: int __bid_gesd2 (_Decimal32 A, _Decimal32 B)
  813. -- Runtime Function: int __dpd_gedd2 (_Decimal64 A, _Decimal64 B)
  814. -- Runtime Function: int __bid_gedd2 (_Decimal64 A, _Decimal64 B)
  815. -- Runtime Function: int __dpd_getd2 (_Decimal128 A, _Decimal128 B)
  816. -- Runtime Function: int __bid_getd2 (_Decimal128 A, _Decimal128 B)
  817. These functions return a value greater than or equal to zero if
  818. neither argument is NaN, and A is greater than or equal to B.
  819. -- Runtime Function: int __dpd_ltsd2 (_Decimal32 A, _Decimal32 B)
  820. -- Runtime Function: int __bid_ltsd2 (_Decimal32 A, _Decimal32 B)
  821. -- Runtime Function: int __dpd_ltdd2 (_Decimal64 A, _Decimal64 B)
  822. -- Runtime Function: int __bid_ltdd2 (_Decimal64 A, _Decimal64 B)
  823. -- Runtime Function: int __dpd_lttd2 (_Decimal128 A, _Decimal128 B)
  824. -- Runtime Function: int __bid_lttd2 (_Decimal128 A, _Decimal128 B)
  825. These functions return a value less than zero if neither argument
  826. is NaN, and A is strictly less than B.
  827. -- Runtime Function: int __dpd_lesd2 (_Decimal32 A, _Decimal32 B)
  828. -- Runtime Function: int __bid_lesd2 (_Decimal32 A, _Decimal32 B)
  829. -- Runtime Function: int __dpd_ledd2 (_Decimal64 A, _Decimal64 B)
  830. -- Runtime Function: int __bid_ledd2 (_Decimal64 A, _Decimal64 B)
  831. -- Runtime Function: int __dpd_letd2 (_Decimal128 A, _Decimal128 B)
  832. -- Runtime Function: int __bid_letd2 (_Decimal128 A, _Decimal128 B)
  833. These functions return a value less than or equal to zero if
  834. neither argument is NaN, and A is less than or equal to B.
  835. -- Runtime Function: int __dpd_gtsd2 (_Decimal32 A, _Decimal32 B)
  836. -- Runtime Function: int __bid_gtsd2 (_Decimal32 A, _Decimal32 B)
  837. -- Runtime Function: int __dpd_gtdd2 (_Decimal64 A, _Decimal64 B)
  838. -- Runtime Function: int __bid_gtdd2 (_Decimal64 A, _Decimal64 B)
  839. -- Runtime Function: int __dpd_gttd2 (_Decimal128 A, _Decimal128 B)
  840. -- Runtime Function: int __bid_gttd2 (_Decimal128 A, _Decimal128 B)
  841. These functions return a value greater than zero if neither
  842. argument is NaN, and A is strictly greater than B.
  843. 
  844. File: gccint.info, Node: Fixed-point fractional library routines, Next: Exception handling routines, Prev: Decimal float library routines, Up: Libgcc
  845. 4.4 Routines for fixed-point fractional emulation
  846. =================================================
  847. The software fixed-point library implements fixed-point fractional
  848. arithmetic, and is only activated on selected targets.
  849. For ease of comprehension 'fract' is an alias for the '_Fract' type,
  850. 'accum' an alias for '_Accum', and 'sat' an alias for '_Sat'.
  851. For illustrative purposes, in this section the fixed-point fractional
  852. type 'short fract' is assumed to correspond to machine mode 'QQmode';
  853. 'unsigned short fract' to 'UQQmode'; 'fract' to 'HQmode';
  854. 'unsigned fract' to 'UHQmode'; 'long fract' to 'SQmode';
  855. 'unsigned long fract' to 'USQmode'; 'long long fract' to 'DQmode'; and
  856. 'unsigned long long fract' to 'UDQmode'. Similarly the fixed-point
  857. accumulator type 'short accum' corresponds to 'HAmode';
  858. 'unsigned short accum' to 'UHAmode'; 'accum' to 'SAmode';
  859. 'unsigned accum' to 'USAmode'; 'long accum' to 'DAmode';
  860. 'unsigned long accum' to 'UDAmode'; 'long long accum' to 'TAmode'; and
  861. 'unsigned long long accum' to 'UTAmode'.
  862. 4.4.1 Arithmetic functions
  863. --------------------------
  864. -- Runtime Function: short fract __addqq3 (short fract A, short fract
  865. B)
  866. -- Runtime Function: fract __addhq3 (fract A, fract B)
  867. -- Runtime Function: long fract __addsq3 (long fract A, long fract B)
  868. -- Runtime Function: long long fract __adddq3 (long long fract A, long
  869. long fract B)
  870. -- Runtime Function: unsigned short fract __adduqq3 (unsigned short
  871. fract A, unsigned short fract B)
  872. -- Runtime Function: unsigned fract __adduhq3 (unsigned fract A,
  873. unsigned fract B)
  874. -- Runtime Function: unsigned long fract __addusq3 (unsigned long fract
  875. A, unsigned long fract B)
  876. -- Runtime Function: unsigned long long fract __addudq3 (unsigned long
  877. long fract A, unsigned long long fract B)
  878. -- Runtime Function: short accum __addha3 (short accum A, short accum
  879. B)
  880. -- Runtime Function: accum __addsa3 (accum A, accum B)
  881. -- Runtime Function: long accum __addda3 (long accum A, long accum B)
  882. -- Runtime Function: long long accum __addta3 (long long accum A, long
  883. long accum B)
  884. -- Runtime Function: unsigned short accum __adduha3 (unsigned short
  885. accum A, unsigned short accum B)
  886. -- Runtime Function: unsigned accum __addusa3 (unsigned accum A,
  887. unsigned accum B)
  888. -- Runtime Function: unsigned long accum __adduda3 (unsigned long accum
  889. A, unsigned long accum B)
  890. -- Runtime Function: unsigned long long accum __adduta3 (unsigned long
  891. long accum A, unsigned long long accum B)
  892. These functions return the sum of A and B.
  893. -- Runtime Function: short fract __ssaddqq3 (short fract A, short fract
  894. B)
  895. -- Runtime Function: fract __ssaddhq3 (fract A, fract B)
  896. -- Runtime Function: long fract __ssaddsq3 (long fract A, long fract B)
  897. -- Runtime Function: long long fract __ssadddq3 (long long fract A,
  898. long long fract B)
  899. -- Runtime Function: short accum __ssaddha3 (short accum A, short accum
  900. B)
  901. -- Runtime Function: accum __ssaddsa3 (accum A, accum B)
  902. -- Runtime Function: long accum __ssaddda3 (long accum A, long accum B)
  903. -- Runtime Function: long long accum __ssaddta3 (long long accum A,
  904. long long accum B)
  905. These functions return the sum of A and B with signed saturation.
  906. -- Runtime Function: unsigned short fract __usadduqq3 (unsigned short
  907. fract A, unsigned short fract B)
  908. -- Runtime Function: unsigned fract __usadduhq3 (unsigned fract A,
  909. unsigned fract B)
  910. -- Runtime Function: unsigned long fract __usaddusq3 (unsigned long
  911. fract A, unsigned long fract B)
  912. -- Runtime Function: unsigned long long fract __usaddudq3 (unsigned
  913. long long fract A, unsigned long long fract B)
  914. -- Runtime Function: unsigned short accum __usadduha3 (unsigned short
  915. accum A, unsigned short accum B)
  916. -- Runtime Function: unsigned accum __usaddusa3 (unsigned accum A,
  917. unsigned accum B)
  918. -- Runtime Function: unsigned long accum __usadduda3 (unsigned long
  919. accum A, unsigned long accum B)
  920. -- Runtime Function: unsigned long long accum __usadduta3 (unsigned
  921. long long accum A, unsigned long long accum B)
  922. These functions return the sum of A and B with unsigned saturation.
  923. -- Runtime Function: short fract __subqq3 (short fract A, short fract
  924. B)
  925. -- Runtime Function: fract __subhq3 (fract A, fract B)
  926. -- Runtime Function: long fract __subsq3 (long fract A, long fract B)
  927. -- Runtime Function: long long fract __subdq3 (long long fract A, long
  928. long fract B)
  929. -- Runtime Function: unsigned short fract __subuqq3 (unsigned short
  930. fract A, unsigned short fract B)
  931. -- Runtime Function: unsigned fract __subuhq3 (unsigned fract A,
  932. unsigned fract B)
  933. -- Runtime Function: unsigned long fract __subusq3 (unsigned long fract
  934. A, unsigned long fract B)
  935. -- Runtime Function: unsigned long long fract __subudq3 (unsigned long
  936. long fract A, unsigned long long fract B)
  937. -- Runtime Function: short accum __subha3 (short accum A, short accum
  938. B)
  939. -- Runtime Function: accum __subsa3 (accum A, accum B)
  940. -- Runtime Function: long accum __subda3 (long accum A, long accum B)
  941. -- Runtime Function: long long accum __subta3 (long long accum A, long
  942. long accum B)
  943. -- Runtime Function: unsigned short accum __subuha3 (unsigned short
  944. accum A, unsigned short accum B)
  945. -- Runtime Function: unsigned accum __subusa3 (unsigned accum A,
  946. unsigned accum B)
  947. -- Runtime Function: unsigned long accum __subuda3 (unsigned long accum
  948. A, unsigned long accum B)
  949. -- Runtime Function: unsigned long long accum __subuta3 (unsigned long
  950. long accum A, unsigned long long accum B)
  951. These functions return the difference of A and B; that is, 'A - B'.
  952. -- Runtime Function: short fract __sssubqq3 (short fract A, short fract
  953. B)
  954. -- Runtime Function: fract __sssubhq3 (fract A, fract B)
  955. -- Runtime Function: long fract __sssubsq3 (long fract A, long fract B)
  956. -- Runtime Function: long long fract __sssubdq3 (long long fract A,
  957. long long fract B)
  958. -- Runtime Function: short accum __sssubha3 (short accum A, short accum
  959. B)
  960. -- Runtime Function: accum __sssubsa3 (accum A, accum B)
  961. -- Runtime Function: long accum __sssubda3 (long accum A, long accum B)
  962. -- Runtime Function: long long accum __sssubta3 (long long accum A,
  963. long long accum B)
  964. These functions return the difference of A and B with signed
  965. saturation; that is, 'A - B'.
  966. -- Runtime Function: unsigned short fract __ussubuqq3 (unsigned short
  967. fract A, unsigned short fract B)
  968. -- Runtime Function: unsigned fract __ussubuhq3 (unsigned fract A,
  969. unsigned fract B)
  970. -- Runtime Function: unsigned long fract __ussubusq3 (unsigned long
  971. fract A, unsigned long fract B)
  972. -- Runtime Function: unsigned long long fract __ussubudq3 (unsigned
  973. long long fract A, unsigned long long fract B)
  974. -- Runtime Function: unsigned short accum __ussubuha3 (unsigned short
  975. accum A, unsigned short accum B)
  976. -- Runtime Function: unsigned accum __ussubusa3 (unsigned accum A,
  977. unsigned accum B)
  978. -- Runtime Function: unsigned long accum __ussubuda3 (unsigned long
  979. accum A, unsigned long accum B)
  980. -- Runtime Function: unsigned long long accum __ussubuta3 (unsigned
  981. long long accum A, unsigned long long accum B)
  982. These functions return the difference of A and B with unsigned
  983. saturation; that is, 'A - B'.
  984. -- Runtime Function: short fract __mulqq3 (short fract A, short fract
  985. B)
  986. -- Runtime Function: fract __mulhq3 (fract A, fract B)
  987. -- Runtime Function: long fract __mulsq3 (long fract A, long fract B)
  988. -- Runtime Function: long long fract __muldq3 (long long fract A, long
  989. long fract B)
  990. -- Runtime Function: unsigned short fract __muluqq3 (unsigned short
  991. fract A, unsigned short fract B)
  992. -- Runtime Function: unsigned fract __muluhq3 (unsigned fract A,
  993. unsigned fract B)
  994. -- Runtime Function: unsigned long fract __mulusq3 (unsigned long fract
  995. A, unsigned long fract B)
  996. -- Runtime Function: unsigned long long fract __muludq3 (unsigned long
  997. long fract A, unsigned long long fract B)
  998. -- Runtime Function: short accum __mulha3 (short accum A, short accum
  999. B)
  1000. -- Runtime Function: accum __mulsa3 (accum A, accum B)
  1001. -- Runtime Function: long accum __mulda3 (long accum A, long accum B)
  1002. -- Runtime Function: long long accum __multa3 (long long accum A, long
  1003. long accum B)
  1004. -- Runtime Function: unsigned short accum __muluha3 (unsigned short
  1005. accum A, unsigned short accum B)
  1006. -- Runtime Function: unsigned accum __mulusa3 (unsigned accum A,
  1007. unsigned accum B)
  1008. -- Runtime Function: unsigned long accum __muluda3 (unsigned long accum
  1009. A, unsigned long accum B)
  1010. -- Runtime Function: unsigned long long accum __muluta3 (unsigned long
  1011. long accum A, unsigned long long accum B)
  1012. These functions return the product of A and B.
  1013. -- Runtime Function: short fract __ssmulqq3 (short fract A, short fract
  1014. B)
  1015. -- Runtime Function: fract __ssmulhq3 (fract A, fract B)
  1016. -- Runtime Function: long fract __ssmulsq3 (long fract A, long fract B)
  1017. -- Runtime Function: long long fract __ssmuldq3 (long long fract A,
  1018. long long fract B)
  1019. -- Runtime Function: short accum __ssmulha3 (short accum A, short accum
  1020. B)
  1021. -- Runtime Function: accum __ssmulsa3 (accum A, accum B)
  1022. -- Runtime Function: long accum __ssmulda3 (long accum A, long accum B)
  1023. -- Runtime Function: long long accum __ssmulta3 (long long accum A,
  1024. long long accum B)
  1025. These functions return the product of A and B with signed
  1026. saturation.
  1027. -- Runtime Function: unsigned short fract __usmuluqq3 (unsigned short
  1028. fract A, unsigned short fract B)
  1029. -- Runtime Function: unsigned fract __usmuluhq3 (unsigned fract A,
  1030. unsigned fract B)
  1031. -- Runtime Function: unsigned long fract __usmulusq3 (unsigned long
  1032. fract A, unsigned long fract B)
  1033. -- Runtime Function: unsigned long long fract __usmuludq3 (unsigned
  1034. long long fract A, unsigned long long fract B)
  1035. -- Runtime Function: unsigned short accum __usmuluha3 (unsigned short
  1036. accum A, unsigned short accum B)
  1037. -- Runtime Function: unsigned accum __usmulusa3 (unsigned accum A,
  1038. unsigned accum B)
  1039. -- Runtime Function: unsigned long accum __usmuluda3 (unsigned long
  1040. accum A, unsigned long accum B)
  1041. -- Runtime Function: unsigned long long accum __usmuluta3 (unsigned
  1042. long long accum A, unsigned long long accum B)
  1043. These functions return the product of A and B with unsigned
  1044. saturation.
  1045. -- Runtime Function: short fract __divqq3 (short fract A, short fract
  1046. B)
  1047. -- Runtime Function: fract __divhq3 (fract A, fract B)
  1048. -- Runtime Function: long fract __divsq3 (long fract A, long fract B)
  1049. -- Runtime Function: long long fract __divdq3 (long long fract A, long
  1050. long fract B)
  1051. -- Runtime Function: short accum __divha3 (short accum A, short accum
  1052. B)
  1053. -- Runtime Function: accum __divsa3 (accum A, accum B)
  1054. -- Runtime Function: long accum __divda3 (long accum A, long accum B)
  1055. -- Runtime Function: long long accum __divta3 (long long accum A, long
  1056. long accum B)
  1057. These functions return the quotient of the signed division of A and
  1058. B.
  1059. -- Runtime Function: unsigned short fract __udivuqq3 (unsigned short
  1060. fract A, unsigned short fract B)
  1061. -- Runtime Function: unsigned fract __udivuhq3 (unsigned fract A,
  1062. unsigned fract B)
  1063. -- Runtime Function: unsigned long fract __udivusq3 (unsigned long
  1064. fract A, unsigned long fract B)
  1065. -- Runtime Function: unsigned long long fract __udivudq3 (unsigned long
  1066. long fract A, unsigned long long fract B)
  1067. -- Runtime Function: unsigned short accum __udivuha3 (unsigned short
  1068. accum A, unsigned short accum B)
  1069. -- Runtime Function: unsigned accum __udivusa3 (unsigned accum A,
  1070. unsigned accum B)
  1071. -- Runtime Function: unsigned long accum __udivuda3 (unsigned long
  1072. accum A, unsigned long accum B)
  1073. -- Runtime Function: unsigned long long accum __udivuta3 (unsigned long
  1074. long accum A, unsigned long long accum B)
  1075. These functions return the quotient of the unsigned division of A
  1076. and B.
  1077. -- Runtime Function: short fract __ssdivqq3 (short fract A, short fract
  1078. B)
  1079. -- Runtime Function: fract __ssdivhq3 (fract A, fract B)
  1080. -- Runtime Function: long fract __ssdivsq3 (long fract A, long fract B)
  1081. -- Runtime Function: long long fract __ssdivdq3 (long long fract A,
  1082. long long fract B)
  1083. -- Runtime Function: short accum __ssdivha3 (short accum A, short accum
  1084. B)
  1085. -- Runtime Function: accum __ssdivsa3 (accum A, accum B)
  1086. -- Runtime Function: long accum __ssdivda3 (long accum A, long accum B)
  1087. -- Runtime Function: long long accum __ssdivta3 (long long accum A,
  1088. long long accum B)
  1089. These functions return the quotient of the signed division of A and
  1090. B with signed saturation.
  1091. -- Runtime Function: unsigned short fract __usdivuqq3 (unsigned short
  1092. fract A, unsigned short fract B)
  1093. -- Runtime Function: unsigned fract __usdivuhq3 (unsigned fract A,
  1094. unsigned fract B)
  1095. -- Runtime Function: unsigned long fract __usdivusq3 (unsigned long
  1096. fract A, unsigned long fract B)
  1097. -- Runtime Function: unsigned long long fract __usdivudq3 (unsigned
  1098. long long fract A, unsigned long long fract B)
  1099. -- Runtime Function: unsigned short accum __usdivuha3 (unsigned short
  1100. accum A, unsigned short accum B)
  1101. -- Runtime Function: unsigned accum __usdivusa3 (unsigned accum A,
  1102. unsigned accum B)
  1103. -- Runtime Function: unsigned long accum __usdivuda3 (unsigned long
  1104. accum A, unsigned long accum B)
  1105. -- Runtime Function: unsigned long long accum __usdivuta3 (unsigned
  1106. long long accum A, unsigned long long accum B)
  1107. These functions return the quotient of the unsigned division of A
  1108. and B with unsigned saturation.
  1109. -- Runtime Function: short fract __negqq2 (short fract A)
  1110. -- Runtime Function: fract __neghq2 (fract A)
  1111. -- Runtime Function: long fract __negsq2 (long fract A)
  1112. -- Runtime Function: long long fract __negdq2 (long long fract A)
  1113. -- Runtime Function: unsigned short fract __neguqq2 (unsigned short
  1114. fract A)
  1115. -- Runtime Function: unsigned fract __neguhq2 (unsigned fract A)
  1116. -- Runtime Function: unsigned long fract __negusq2 (unsigned long fract
  1117. A)
  1118. -- Runtime Function: unsigned long long fract __negudq2 (unsigned long
  1119. long fract A)
  1120. -- Runtime Function: short accum __negha2 (short accum A)
  1121. -- Runtime Function: accum __negsa2 (accum A)
  1122. -- Runtime Function: long accum __negda2 (long accum A)
  1123. -- Runtime Function: long long accum __negta2 (long long accum A)
  1124. -- Runtime Function: unsigned short accum __neguha2 (unsigned short
  1125. accum A)
  1126. -- Runtime Function: unsigned accum __negusa2 (unsigned accum A)
  1127. -- Runtime Function: unsigned long accum __neguda2 (unsigned long accum
  1128. A)
  1129. -- Runtime Function: unsigned long long accum __neguta2 (unsigned long
  1130. long accum A)
  1131. These functions return the negation of A.
  1132. -- Runtime Function: short fract __ssnegqq2 (short fract A)
  1133. -- Runtime Function: fract __ssneghq2 (fract A)
  1134. -- Runtime Function: long fract __ssnegsq2 (long fract A)
  1135. -- Runtime Function: long long fract __ssnegdq2 (long long fract A)
  1136. -- Runtime Function: short accum __ssnegha2 (short accum A)
  1137. -- Runtime Function: accum __ssnegsa2 (accum A)
  1138. -- Runtime Function: long accum __ssnegda2 (long accum A)
  1139. -- Runtime Function: long long accum __ssnegta2 (long long accum A)
  1140. These functions return the negation of A with signed saturation.
  1141. -- Runtime Function: unsigned short fract __usneguqq2 (unsigned short
  1142. fract A)
  1143. -- Runtime Function: unsigned fract __usneguhq2 (unsigned fract A)
  1144. -- Runtime Function: unsigned long fract __usnegusq2 (unsigned long
  1145. fract A)
  1146. -- Runtime Function: unsigned long long fract __usnegudq2 (unsigned
  1147. long long fract A)
  1148. -- Runtime Function: unsigned short accum __usneguha2 (unsigned short
  1149. accum A)
  1150. -- Runtime Function: unsigned accum __usnegusa2 (unsigned accum A)
  1151. -- Runtime Function: unsigned long accum __usneguda2 (unsigned long
  1152. accum A)
  1153. -- Runtime Function: unsigned long long accum __usneguta2 (unsigned
  1154. long long accum A)
  1155. These functions return the negation of A with unsigned saturation.
  1156. -- Runtime Function: short fract __ashlqq3 (short fract A, int B)
  1157. -- Runtime Function: fract __ashlhq3 (fract A, int B)
  1158. -- Runtime Function: long fract __ashlsq3 (long fract A, int B)
  1159. -- Runtime Function: long long fract __ashldq3 (long long fract A, int
  1160. B)
  1161. -- Runtime Function: unsigned short fract __ashluqq3 (unsigned short
  1162. fract A, int B)
  1163. -- Runtime Function: unsigned fract __ashluhq3 (unsigned fract A, int
  1164. B)
  1165. -- Runtime Function: unsigned long fract __ashlusq3 (unsigned long
  1166. fract A, int B)
  1167. -- Runtime Function: unsigned long long fract __ashludq3 (unsigned long
  1168. long fract A, int B)
  1169. -- Runtime Function: short accum __ashlha3 (short accum A, int B)
  1170. -- Runtime Function: accum __ashlsa3 (accum A, int B)
  1171. -- Runtime Function: long accum __ashlda3 (long accum A, int B)
  1172. -- Runtime Function: long long accum __ashlta3 (long long accum A, int
  1173. B)
  1174. -- Runtime Function: unsigned short accum __ashluha3 (unsigned short
  1175. accum A, int B)
  1176. -- Runtime Function: unsigned accum __ashlusa3 (unsigned accum A, int
  1177. B)
  1178. -- Runtime Function: unsigned long accum __ashluda3 (unsigned long
  1179. accum A, int B)
  1180. -- Runtime Function: unsigned long long accum __ashluta3 (unsigned long
  1181. long accum A, int B)
  1182. These functions return the result of shifting A left by B bits.
  1183. -- Runtime Function: short fract __ashrqq3 (short fract A, int B)
  1184. -- Runtime Function: fract __ashrhq3 (fract A, int B)
  1185. -- Runtime Function: long fract __ashrsq3 (long fract A, int B)
  1186. -- Runtime Function: long long fract __ashrdq3 (long long fract A, int
  1187. B)
  1188. -- Runtime Function: short accum __ashrha3 (short accum A, int B)
  1189. -- Runtime Function: accum __ashrsa3 (accum A, int B)
  1190. -- Runtime Function: long accum __ashrda3 (long accum A, int B)
  1191. -- Runtime Function: long long accum __ashrta3 (long long accum A, int
  1192. B)
  1193. These functions return the result of arithmetically shifting A
  1194. right by B bits.
  1195. -- Runtime Function: unsigned short fract __lshruqq3 (unsigned short
  1196. fract A, int B)
  1197. -- Runtime Function: unsigned fract __lshruhq3 (unsigned fract A, int
  1198. B)
  1199. -- Runtime Function: unsigned long fract __lshrusq3 (unsigned long
  1200. fract A, int B)
  1201. -- Runtime Function: unsigned long long fract __lshrudq3 (unsigned long
  1202. long fract A, int B)
  1203. -- Runtime Function: unsigned short accum __lshruha3 (unsigned short
  1204. accum A, int B)
  1205. -- Runtime Function: unsigned accum __lshrusa3 (unsigned accum A, int
  1206. B)
  1207. -- Runtime Function: unsigned long accum __lshruda3 (unsigned long
  1208. accum A, int B)
  1209. -- Runtime Function: unsigned long long accum __lshruta3 (unsigned long
  1210. long accum A, int B)
  1211. These functions return the result of logically shifting A right by
  1212. B bits.
  1213. -- Runtime Function: fract __ssashlhq3 (fract A, int B)
  1214. -- Runtime Function: long fract __ssashlsq3 (long fract A, int B)
  1215. -- Runtime Function: long long fract __ssashldq3 (long long fract A,
  1216. int B)
  1217. -- Runtime Function: short accum __ssashlha3 (short accum A, int B)
  1218. -- Runtime Function: accum __ssashlsa3 (accum A, int B)
  1219. -- Runtime Function: long accum __ssashlda3 (long accum A, int B)
  1220. -- Runtime Function: long long accum __ssashlta3 (long long accum A,
  1221. int B)
  1222. These functions return the result of shifting A left by B bits with
  1223. signed saturation.
  1224. -- Runtime Function: unsigned short fract __usashluqq3 (unsigned short
  1225. fract A, int B)
  1226. -- Runtime Function: unsigned fract __usashluhq3 (unsigned fract A, int
  1227. B)
  1228. -- Runtime Function: unsigned long fract __usashlusq3 (unsigned long
  1229. fract A, int B)
  1230. -- Runtime Function: unsigned long long fract __usashludq3 (unsigned
  1231. long long fract A, int B)
  1232. -- Runtime Function: unsigned short accum __usashluha3 (unsigned short
  1233. accum A, int B)
  1234. -- Runtime Function: unsigned accum __usashlusa3 (unsigned accum A, int
  1235. B)
  1236. -- Runtime Function: unsigned long accum __usashluda3 (unsigned long
  1237. accum A, int B)
  1238. -- Runtime Function: unsigned long long accum __usashluta3 (unsigned
  1239. long long accum A, int B)
  1240. These functions return the result of shifting A left by B bits with
  1241. unsigned saturation.
  1242. 4.4.2 Comparison functions
  1243. --------------------------
  1244. The following functions implement fixed-point comparisons. These
  1245. functions implement a low-level compare, upon which the higher level
  1246. comparison operators (such as less than and greater than or equal to)
  1247. can be constructed. The returned values lie in the range zero to two,
  1248. to allow the high-level operators to be implemented by testing the
  1249. returned result using either signed or unsigned comparison.
  1250. -- Runtime Function: int __cmpqq2 (short fract A, short fract B)
  1251. -- Runtime Function: int __cmphq2 (fract A, fract B)
  1252. -- Runtime Function: int __cmpsq2 (long fract A, long fract B)
  1253. -- Runtime Function: int __cmpdq2 (long long fract A, long long fract
  1254. B)
  1255. -- Runtime Function: int __cmpuqq2 (unsigned short fract A, unsigned
  1256. short fract B)
  1257. -- Runtime Function: int __cmpuhq2 (unsigned fract A, unsigned fract B)
  1258. -- Runtime Function: int __cmpusq2 (unsigned long fract A, unsigned
  1259. long fract B)
  1260. -- Runtime Function: int __cmpudq2 (unsigned long long fract A,
  1261. unsigned long long fract B)
  1262. -- Runtime Function: int __cmpha2 (short accum A, short accum B)
  1263. -- Runtime Function: int __cmpsa2 (accum A, accum B)
  1264. -- Runtime Function: int __cmpda2 (long accum A, long accum B)
  1265. -- Runtime Function: int __cmpta2 (long long accum A, long long accum
  1266. B)
  1267. -- Runtime Function: int __cmpuha2 (unsigned short accum A, unsigned
  1268. short accum B)
  1269. -- Runtime Function: int __cmpusa2 (unsigned accum A, unsigned accum B)
  1270. -- Runtime Function: int __cmpuda2 (unsigned long accum A, unsigned
  1271. long accum B)
  1272. -- Runtime Function: int __cmputa2 (unsigned long long accum A,
  1273. unsigned long long accum B)
  1274. These functions perform a signed or unsigned comparison of A and B
  1275. (depending on the selected machine mode). If A is less than B,
  1276. they return 0; if A is greater than B, they return 2; and if A and
  1277. B are equal they return 1.
  1278. 4.4.3 Conversion functions
  1279. --------------------------
  1280. -- Runtime Function: fract __fractqqhq2 (short fract A)
  1281. -- Runtime Function: long fract __fractqqsq2 (short fract A)
  1282. -- Runtime Function: long long fract __fractqqdq2 (short fract A)
  1283. -- Runtime Function: short accum __fractqqha (short fract A)
  1284. -- Runtime Function: accum __fractqqsa (short fract A)
  1285. -- Runtime Function: long accum __fractqqda (short fract A)
  1286. -- Runtime Function: long long accum __fractqqta (short fract A)
  1287. -- Runtime Function: unsigned short fract __fractqquqq (short fract A)
  1288. -- Runtime Function: unsigned fract __fractqquhq (short fract A)
  1289. -- Runtime Function: unsigned long fract __fractqqusq (short fract A)
  1290. -- Runtime Function: unsigned long long fract __fractqqudq (short fract
  1291. A)
  1292. -- Runtime Function: unsigned short accum __fractqquha (short fract A)
  1293. -- Runtime Function: unsigned accum __fractqqusa (short fract A)
  1294. -- Runtime Function: unsigned long accum __fractqquda (short fract A)
  1295. -- Runtime Function: unsigned long long accum __fractqquta (short fract
  1296. A)
  1297. -- Runtime Function: signed char __fractqqqi (short fract A)
  1298. -- Runtime Function: short __fractqqhi (short fract A)
  1299. -- Runtime Function: int __fractqqsi (short fract A)
  1300. -- Runtime Function: long __fractqqdi (short fract A)
  1301. -- Runtime Function: long long __fractqqti (short fract A)
  1302. -- Runtime Function: float __fractqqsf (short fract A)
  1303. -- Runtime Function: double __fractqqdf (short fract A)
  1304. -- Runtime Function: short fract __fracthqqq2 (fract A)
  1305. -- Runtime Function: long fract __fracthqsq2 (fract A)
  1306. -- Runtime Function: long long fract __fracthqdq2 (fract A)
  1307. -- Runtime Function: short accum __fracthqha (fract A)
  1308. -- Runtime Function: accum __fracthqsa (fract A)
  1309. -- Runtime Function: long accum __fracthqda (fract A)
  1310. -- Runtime Function: long long accum __fracthqta (fract A)
  1311. -- Runtime Function: unsigned short fract __fracthquqq (fract A)
  1312. -- Runtime Function: unsigned fract __fracthquhq (fract A)
  1313. -- Runtime Function: unsigned long fract __fracthqusq (fract A)
  1314. -- Runtime Function: unsigned long long fract __fracthqudq (fract A)
  1315. -- Runtime Function: unsigned short accum __fracthquha (fract A)
  1316. -- Runtime Function: unsigned accum __fracthqusa (fract A)
  1317. -- Runtime Function: unsigned long accum __fracthquda (fract A)
  1318. -- Runtime Function: unsigned long long accum __fracthquta (fract A)
  1319. -- Runtime Function: signed char __fracthqqi (fract A)
  1320. -- Runtime Function: short __fracthqhi (fract A)
  1321. -- Runtime Function: int __fracthqsi (fract A)
  1322. -- Runtime Function: long __fracthqdi (fract A)
  1323. -- Runtime Function: long long __fracthqti (fract A)
  1324. -- Runtime Function: float __fracthqsf (fract A)
  1325. -- Runtime Function: double __fracthqdf (fract A)
  1326. -- Runtime Function: short fract __fractsqqq2 (long fract A)
  1327. -- Runtime Function: fract __fractsqhq2 (long fract A)
  1328. -- Runtime Function: long long fract __fractsqdq2 (long fract A)
  1329. -- Runtime Function: short accum __fractsqha (long fract A)
  1330. -- Runtime Function: accum __fractsqsa (long fract A)
  1331. -- Runtime Function: long accum __fractsqda (long fract A)
  1332. -- Runtime Function: long long accum __fractsqta (long fract A)
  1333. -- Runtime Function: unsigned short fract __fractsquqq (long fract A)
  1334. -- Runtime Function: unsigned fract __fractsquhq (long fract A)
  1335. -- Runtime Function: unsigned long fract __fractsqusq (long fract A)
  1336. -- Runtime Function: unsigned long long fract __fractsqudq (long fract
  1337. A)
  1338. -- Runtime Function: unsigned short accum __fractsquha (long fract A)
  1339. -- Runtime Function: unsigned accum __fractsqusa (long fract A)
  1340. -- Runtime Function: unsigned long accum __fractsquda (long fract A)
  1341. -- Runtime Function: unsigned long long accum __fractsquta (long fract
  1342. A)
  1343. -- Runtime Function: signed char __fractsqqi (long fract A)
  1344. -- Runtime Function: short __fractsqhi (long fract A)
  1345. -- Runtime Function: int __fractsqsi (long fract A)
  1346. -- Runtime Function: long __fractsqdi (long fract A)
  1347. -- Runtime Function: long long __fractsqti (long fract A)
  1348. -- Runtime Function: float __fractsqsf (long fract A)
  1349. -- Runtime Function: double __fractsqdf (long fract A)
  1350. -- Runtime Function: short fract __fractdqqq2 (long long fract A)
  1351. -- Runtime Function: fract __fractdqhq2 (long long fract A)
  1352. -- Runtime Function: long fract __fractdqsq2 (long long fract A)
  1353. -- Runtime Function: short accum __fractdqha (long long fract A)
  1354. -- Runtime Function: accum __fractdqsa (long long fract A)
  1355. -- Runtime Function: long accum __fractdqda (long long fract A)
  1356. -- Runtime Function: long long accum __fractdqta (long long fract A)
  1357. -- Runtime Function: unsigned short fract __fractdquqq (long long fract
  1358. A)
  1359. -- Runtime Function: unsigned fract __fractdquhq (long long fract A)
  1360. -- Runtime Function: unsigned long fract __fractdqusq (long long fract
  1361. A)
  1362. -- Runtime Function: unsigned long long fract __fractdqudq (long long
  1363. fract A)
  1364. -- Runtime Function: unsigned short accum __fractdquha (long long fract
  1365. A)
  1366. -- Runtime Function: unsigned accum __fractdqusa (long long fract A)
  1367. -- Runtime Function: unsigned long accum __fractdquda (long long fract
  1368. A)
  1369. -- Runtime Function: unsigned long long accum __fractdquta (long long
  1370. fract A)
  1371. -- Runtime Function: signed char __fractdqqi (long long fract A)
  1372. -- Runtime Function: short __fractdqhi (long long fract A)
  1373. -- Runtime Function: int __fractdqsi (long long fract A)
  1374. -- Runtime Function: long __fractdqdi (long long fract A)
  1375. -- Runtime Function: long long __fractdqti (long long fract A)
  1376. -- Runtime Function: float __fractdqsf (long long fract A)
  1377. -- Runtime Function: double __fractdqdf (long long fract A)
  1378. -- Runtime Function: short fract __fracthaqq (short accum A)
  1379. -- Runtime Function: fract __fracthahq (short accum A)
  1380. -- Runtime Function: long fract __fracthasq (short accum A)
  1381. -- Runtime Function: long long fract __fracthadq (short accum A)
  1382. -- Runtime Function: accum __fracthasa2 (short accum A)
  1383. -- Runtime Function: long accum __fracthada2 (short accum A)
  1384. -- Runtime Function: long long accum __fracthata2 (short accum A)
  1385. -- Runtime Function: unsigned short fract __fracthauqq (short accum A)
  1386. -- Runtime Function: unsigned fract __fracthauhq (short accum A)
  1387. -- Runtime Function: unsigned long fract __fracthausq (short accum A)
  1388. -- Runtime Function: unsigned long long fract __fracthaudq (short accum
  1389. A)
  1390. -- Runtime Function: unsigned short accum __fracthauha (short accum A)
  1391. -- Runtime Function: unsigned accum __fracthausa (short accum A)
  1392. -- Runtime Function: unsigned long accum __fracthauda (short accum A)
  1393. -- Runtime Function: unsigned long long accum __fracthauta (short accum
  1394. A)
  1395. -- Runtime Function: signed char __fracthaqi (short accum A)
  1396. -- Runtime Function: short __fracthahi (short accum A)
  1397. -- Runtime Function: int __fracthasi (short accum A)
  1398. -- Runtime Function: long __fracthadi (short accum A)
  1399. -- Runtime Function: long long __fracthati (short accum A)
  1400. -- Runtime Function: float __fracthasf (short accum A)
  1401. -- Runtime Function: double __fracthadf (short accum A)
  1402. -- Runtime Function: short fract __fractsaqq (accum A)
  1403. -- Runtime Function: fract __fractsahq (accum A)
  1404. -- Runtime Function: long fract __fractsasq (accum A)
  1405. -- Runtime Function: long long fract __fractsadq (accum A)
  1406. -- Runtime Function: short accum __fractsaha2 (accum A)
  1407. -- Runtime Function: long accum __fractsada2 (accum A)
  1408. -- Runtime Function: long long accum __fractsata2 (accum A)
  1409. -- Runtime Function: unsigned short fract __fractsauqq (accum A)
  1410. -- Runtime Function: unsigned fract __fractsauhq (accum A)
  1411. -- Runtime Function: unsigned long fract __fractsausq (accum A)
  1412. -- Runtime Function: unsigned long long fract __fractsaudq (accum A)
  1413. -- Runtime Function: unsigned short accum __fractsauha (accum A)
  1414. -- Runtime Function: unsigned accum __fractsausa (accum A)
  1415. -- Runtime Function: unsigned long accum __fractsauda (accum A)
  1416. -- Runtime Function: unsigned long long accum __fractsauta (accum A)
  1417. -- Runtime Function: signed char __fractsaqi (accum A)
  1418. -- Runtime Function: short __fractsahi (accum A)
  1419. -- Runtime Function: int __fractsasi (accum A)
  1420. -- Runtime Function: long __fractsadi (accum A)
  1421. -- Runtime Function: long long __fractsati (accum A)
  1422. -- Runtime Function: float __fractsasf (accum A)
  1423. -- Runtime Function: double __fractsadf (accum A)
  1424. -- Runtime Function: short fract __fractdaqq (long accum A)
  1425. -- Runtime Function: fract __fractdahq (long accum A)
  1426. -- Runtime Function: long fract __fractdasq (long accum A)
  1427. -- Runtime Function: long long fract __fractdadq (long accum A)
  1428. -- Runtime Function: short accum __fractdaha2 (long accum A)
  1429. -- Runtime Function: accum __fractdasa2 (long accum A)
  1430. -- Runtime Function: long long accum __fractdata2 (long accum A)
  1431. -- Runtime Function: unsigned short fract __fractdauqq (long accum A)
  1432. -- Runtime Function: unsigned fract __fractdauhq (long accum A)
  1433. -- Runtime Function: unsigned long fract __fractdausq (long accum A)
  1434. -- Runtime Function: unsigned long long fract __fractdaudq (long accum
  1435. A)
  1436. -- Runtime Function: unsigned short accum __fractdauha (long accum A)
  1437. -- Runtime Function: unsigned accum __fractdausa (long accum A)
  1438. -- Runtime Function: unsigned long accum __fractdauda (long accum A)
  1439. -- Runtime Function: unsigned long long accum __fractdauta (long accum
  1440. A)
  1441. -- Runtime Function: signed char __fractdaqi (long accum A)
  1442. -- Runtime Function: short __fractdahi (long accum A)
  1443. -- Runtime Function: int __fractdasi (long accum A)
  1444. -- Runtime Function: long __fractdadi (long accum A)
  1445. -- Runtime Function: long long __fractdati (long accum A)
  1446. -- Runtime Function: float __fractdasf (long accum A)
  1447. -- Runtime Function: double __fractdadf (long accum A)
  1448. -- Runtime Function: short fract __fracttaqq (long long accum A)
  1449. -- Runtime Function: fract __fracttahq (long long accum A)
  1450. -- Runtime Function: long fract __fracttasq (long long accum A)
  1451. -- Runtime Function: long long fract __fracttadq (long long accum A)
  1452. -- Runtime Function: short accum __fracttaha2 (long long accum A)
  1453. -- Runtime Function: accum __fracttasa2 (long long accum A)
  1454. -- Runtime Function: long accum __fracttada2 (long long accum A)
  1455. -- Runtime Function: unsigned short fract __fracttauqq (long long accum
  1456. A)
  1457. -- Runtime Function: unsigned fract __fracttauhq (long long accum A)
  1458. -- Runtime Function: unsigned long fract __fracttausq (long long accum
  1459. A)
  1460. -- Runtime Function: unsigned long long fract __fracttaudq (long long
  1461. accum A)
  1462. -- Runtime Function: unsigned short accum __fracttauha (long long accum
  1463. A)
  1464. -- Runtime Function: unsigned accum __fracttausa (long long accum A)
  1465. -- Runtime Function: unsigned long accum __fracttauda (long long accum
  1466. A)
  1467. -- Runtime Function: unsigned long long accum __fracttauta (long long
  1468. accum A)
  1469. -- Runtime Function: signed char __fracttaqi (long long accum A)
  1470. -- Runtime Function: short __fracttahi (long long accum A)
  1471. -- Runtime Function: int __fracttasi (long long accum A)
  1472. -- Runtime Function: long __fracttadi (long long accum A)
  1473. -- Runtime Function: long long __fracttati (long long accum A)
  1474. -- Runtime Function: float __fracttasf (long long accum A)
  1475. -- Runtime Function: double __fracttadf (long long accum A)
  1476. -- Runtime Function: short fract __fractuqqqq (unsigned short fract A)
  1477. -- Runtime Function: fract __fractuqqhq (unsigned short fract A)
  1478. -- Runtime Function: long fract __fractuqqsq (unsigned short fract A)
  1479. -- Runtime Function: long long fract __fractuqqdq (unsigned short fract
  1480. A)
  1481. -- Runtime Function: short accum __fractuqqha (unsigned short fract A)
  1482. -- Runtime Function: accum __fractuqqsa (unsigned short fract A)
  1483. -- Runtime Function: long accum __fractuqqda (unsigned short fract A)
  1484. -- Runtime Function: long long accum __fractuqqta (unsigned short fract
  1485. A)
  1486. -- Runtime Function: unsigned fract __fractuqquhq2 (unsigned short
  1487. fract A)
  1488. -- Runtime Function: unsigned long fract __fractuqqusq2 (unsigned short
  1489. fract A)
  1490. -- Runtime Function: unsigned long long fract __fractuqqudq2 (unsigned
  1491. short fract A)
  1492. -- Runtime Function: unsigned short accum __fractuqquha (unsigned short
  1493. fract A)
  1494. -- Runtime Function: unsigned accum __fractuqqusa (unsigned short fract
  1495. A)
  1496. -- Runtime Function: unsigned long accum __fractuqquda (unsigned short
  1497. fract A)
  1498. -- Runtime Function: unsigned long long accum __fractuqquta (unsigned
  1499. short fract A)
  1500. -- Runtime Function: signed char __fractuqqqi (unsigned short fract A)
  1501. -- Runtime Function: short __fractuqqhi (unsigned short fract A)
  1502. -- Runtime Function: int __fractuqqsi (unsigned short fract A)
  1503. -- Runtime Function: long __fractuqqdi (unsigned short fract A)
  1504. -- Runtime Function: long long __fractuqqti (unsigned short fract A)
  1505. -- Runtime Function: float __fractuqqsf (unsigned short fract A)
  1506. -- Runtime Function: double __fractuqqdf (unsigned short fract A)
  1507. -- Runtime Function: short fract __fractuhqqq (unsigned fract A)
  1508. -- Runtime Function: fract __fractuhqhq (unsigned fract A)
  1509. -- Runtime Function: long fract __fractuhqsq (unsigned fract A)
  1510. -- Runtime Function: long long fract __fractuhqdq (unsigned fract A)
  1511. -- Runtime Function: short accum __fractuhqha (unsigned fract A)
  1512. -- Runtime Function: accum __fractuhqsa (unsigned fract A)
  1513. -- Runtime Function: long accum __fractuhqda (unsigned fract A)
  1514. -- Runtime Function: long long accum __fractuhqta (unsigned fract A)
  1515. -- Runtime Function: unsigned short fract __fractuhquqq2 (unsigned
  1516. fract A)
  1517. -- Runtime Function: unsigned long fract __fractuhqusq2 (unsigned fract
  1518. A)
  1519. -- Runtime Function: unsigned long long fract __fractuhqudq2 (unsigned
  1520. fract A)
  1521. -- Runtime Function: unsigned short accum __fractuhquha (unsigned fract
  1522. A)
  1523. -- Runtime Function: unsigned accum __fractuhqusa (unsigned fract A)
  1524. -- Runtime Function: unsigned long accum __fractuhquda (unsigned fract
  1525. A)
  1526. -- Runtime Function: unsigned long long accum __fractuhquta (unsigned
  1527. fract A)
  1528. -- Runtime Function: signed char __fractuhqqi (unsigned fract A)
  1529. -- Runtime Function: short __fractuhqhi (unsigned fract A)
  1530. -- Runtime Function: int __fractuhqsi (unsigned fract A)
  1531. -- Runtime Function: long __fractuhqdi (unsigned fract A)
  1532. -- Runtime Function: long long __fractuhqti (unsigned fract A)
  1533. -- Runtime Function: float __fractuhqsf (unsigned fract A)
  1534. -- Runtime Function: double __fractuhqdf (unsigned fract A)
  1535. -- Runtime Function: short fract __fractusqqq (unsigned long fract A)
  1536. -- Runtime Function: fract __fractusqhq (unsigned long fract A)
  1537. -- Runtime Function: long fract __fractusqsq (unsigned long fract A)
  1538. -- Runtime Function: long long fract __fractusqdq (unsigned long fract
  1539. A)
  1540. -- Runtime Function: short accum __fractusqha (unsigned long fract A)
  1541. -- Runtime Function: accum __fractusqsa (unsigned long fract A)
  1542. -- Runtime Function: long accum __fractusqda (unsigned long fract A)
  1543. -- Runtime Function: long long accum __fractusqta (unsigned long fract
  1544. A)
  1545. -- Runtime Function: unsigned short fract __fractusquqq2 (unsigned long
  1546. fract A)
  1547. -- Runtime Function: unsigned fract __fractusquhq2 (unsigned long fract
  1548. A)
  1549. -- Runtime Function: unsigned long long fract __fractusqudq2 (unsigned
  1550. long fract A)
  1551. -- Runtime Function: unsigned short accum __fractusquha (unsigned long
  1552. fract A)
  1553. -- Runtime Function: unsigned accum __fractusqusa (unsigned long fract
  1554. A)
  1555. -- Runtime Function: unsigned long accum __fractusquda (unsigned long
  1556. fract A)
  1557. -- Runtime Function: unsigned long long accum __fractusquta (unsigned
  1558. long fract A)
  1559. -- Runtime Function: signed char __fractusqqi (unsigned long fract A)
  1560. -- Runtime Function: short __fractusqhi (unsigned long fract A)
  1561. -- Runtime Function: int __fractusqsi (unsigned long fract A)
  1562. -- Runtime Function: long __fractusqdi (unsigned long fract A)
  1563. -- Runtime Function: long long __fractusqti (unsigned long fract A)
  1564. -- Runtime Function: float __fractusqsf (unsigned long fract A)
  1565. -- Runtime Function: double __fractusqdf (unsigned long fract A)
  1566. -- Runtime Function: short fract __fractudqqq (unsigned long long fract
  1567. A)
  1568. -- Runtime Function: fract __fractudqhq (unsigned long long fract A)
  1569. -- Runtime Function: long fract __fractudqsq (unsigned long long fract
  1570. A)
  1571. -- Runtime Function: long long fract __fractudqdq (unsigned long long
  1572. fract A)
  1573. -- Runtime Function: short accum __fractudqha (unsigned long long fract
  1574. A)
  1575. -- Runtime Function: accum __fractudqsa (unsigned long long fract A)
  1576. -- Runtime Function: long accum __fractudqda (unsigned long long fract
  1577. A)
  1578. -- Runtime Function: long long accum __fractudqta (unsigned long long
  1579. fract A)
  1580. -- Runtime Function: unsigned short fract __fractudquqq2 (unsigned long
  1581. long fract A)
  1582. -- Runtime Function: unsigned fract __fractudquhq2 (unsigned long long
  1583. fract A)
  1584. -- Runtime Function: unsigned long fract __fractudqusq2 (unsigned long
  1585. long fract A)
  1586. -- Runtime Function: unsigned short accum __fractudquha (unsigned long
  1587. long fract A)
  1588. -- Runtime Function: unsigned accum __fractudqusa (unsigned long long
  1589. fract A)
  1590. -- Runtime Function: unsigned long accum __fractudquda (unsigned long
  1591. long fract A)
  1592. -- Runtime Function: unsigned long long accum __fractudquta (unsigned
  1593. long long fract A)
  1594. -- Runtime Function: signed char __fractudqqi (unsigned long long fract
  1595. A)
  1596. -- Runtime Function: short __fractudqhi (unsigned long long fract A)
  1597. -- Runtime Function: int __fractudqsi (unsigned long long fract A)
  1598. -- Runtime Function: long __fractudqdi (unsigned long long fract A)
  1599. -- Runtime Function: long long __fractudqti (unsigned long long fract
  1600. A)
  1601. -- Runtime Function: float __fractudqsf (unsigned long long fract A)
  1602. -- Runtime Function: double __fractudqdf (unsigned long long fract A)
  1603. -- Runtime Function: short fract __fractuhaqq (unsigned short accum A)
  1604. -- Runtime Function: fract __fractuhahq (unsigned short accum A)
  1605. -- Runtime Function: long fract __fractuhasq (unsigned short accum A)
  1606. -- Runtime Function: long long fract __fractuhadq (unsigned short accum
  1607. A)
  1608. -- Runtime Function: short accum __fractuhaha (unsigned short accum A)
  1609. -- Runtime Function: accum __fractuhasa (unsigned short accum A)
  1610. -- Runtime Function: long accum __fractuhada (unsigned short accum A)
  1611. -- Runtime Function: long long accum __fractuhata (unsigned short accum
  1612. A)
  1613. -- Runtime Function: unsigned short fract __fractuhauqq (unsigned short
  1614. accum A)
  1615. -- Runtime Function: unsigned fract __fractuhauhq (unsigned short accum
  1616. A)
  1617. -- Runtime Function: unsigned long fract __fractuhausq (unsigned short
  1618. accum A)
  1619. -- Runtime Function: unsigned long long fract __fractuhaudq (unsigned
  1620. short accum A)
  1621. -- Runtime Function: unsigned accum __fractuhausa2 (unsigned short
  1622. accum A)
  1623. -- Runtime Function: unsigned long accum __fractuhauda2 (unsigned short
  1624. accum A)
  1625. -- Runtime Function: unsigned long long accum __fractuhauta2 (unsigned
  1626. short accum A)
  1627. -- Runtime Function: signed char __fractuhaqi (unsigned short accum A)
  1628. -- Runtime Function: short __fractuhahi (unsigned short accum A)
  1629. -- Runtime Function: int __fractuhasi (unsigned short accum A)
  1630. -- Runtime Function: long __fractuhadi (unsigned short accum A)
  1631. -- Runtime Function: long long __fractuhati (unsigned short accum A)
  1632. -- Runtime Function: float __fractuhasf (unsigned short accum A)
  1633. -- Runtime Function: double __fractuhadf (unsigned short accum A)
  1634. -- Runtime Function: short fract __fractusaqq (unsigned accum A)
  1635. -- Runtime Function: fract __fractusahq (unsigned accum A)
  1636. -- Runtime Function: long fract __fractusasq (unsigned accum A)
  1637. -- Runtime Function: long long fract __fractusadq (unsigned accum A)
  1638. -- Runtime Function: short accum __fractusaha (unsigned accum A)
  1639. -- Runtime Function: accum __fractusasa (unsigned accum A)
  1640. -- Runtime Function: long accum __fractusada (unsigned accum A)
  1641. -- Runtime Function: long long accum __fractusata (unsigned accum A)
  1642. -- Runtime Function: unsigned short fract __fractusauqq (unsigned accum
  1643. A)
  1644. -- Runtime Function: unsigned fract __fractusauhq (unsigned accum A)
  1645. -- Runtime Function: unsigned long fract __fractusausq (unsigned accum
  1646. A)
  1647. -- Runtime Function: unsigned long long fract __fractusaudq (unsigned
  1648. accum A)
  1649. -- Runtime Function: unsigned short accum __fractusauha2 (unsigned
  1650. accum A)
  1651. -- Runtime Function: unsigned long accum __fractusauda2 (unsigned accum
  1652. A)
  1653. -- Runtime Function: unsigned long long accum __fractusauta2 (unsigned
  1654. accum A)
  1655. -- Runtime Function: signed char __fractusaqi (unsigned accum A)
  1656. -- Runtime Function: short __fractusahi (unsigned accum A)
  1657. -- Runtime Function: int __fractusasi (unsigned accum A)
  1658. -- Runtime Function: long __fractusadi (unsigned accum A)
  1659. -- Runtime Function: long long __fractusati (unsigned accum A)
  1660. -- Runtime Function: float __fractusasf (unsigned accum A)
  1661. -- Runtime Function: double __fractusadf (unsigned accum A)
  1662. -- Runtime Function: short fract __fractudaqq (unsigned long accum A)
  1663. -- Runtime Function: fract __fractudahq (unsigned long accum A)
  1664. -- Runtime Function: long fract __fractudasq (unsigned long accum A)
  1665. -- Runtime Function: long long fract __fractudadq (unsigned long accum
  1666. A)
  1667. -- Runtime Function: short accum __fractudaha (unsigned long accum A)
  1668. -- Runtime Function: accum __fractudasa (unsigned long accum A)
  1669. -- Runtime Function: long accum __fractudada (unsigned long accum A)
  1670. -- Runtime Function: long long accum __fractudata (unsigned long accum
  1671. A)
  1672. -- Runtime Function: unsigned short fract __fractudauqq (unsigned long
  1673. accum A)
  1674. -- Runtime Function: unsigned fract __fractudauhq (unsigned long accum
  1675. A)
  1676. -- Runtime Function: unsigned long fract __fractudausq (unsigned long
  1677. accum A)
  1678. -- Runtime Function: unsigned long long fract __fractudaudq (unsigned
  1679. long accum A)
  1680. -- Runtime Function: unsigned short accum __fractudauha2 (unsigned long
  1681. accum A)
  1682. -- Runtime Function: unsigned accum __fractudausa2 (unsigned long accum
  1683. A)
  1684. -- Runtime Function: unsigned long long accum __fractudauta2 (unsigned
  1685. long accum A)
  1686. -- Runtime Function: signed char __fractudaqi (unsigned long accum A)
  1687. -- Runtime Function: short __fractudahi (unsigned long accum A)
  1688. -- Runtime Function: int __fractudasi (unsigned long accum A)
  1689. -- Runtime Function: long __fractudadi (unsigned long accum A)
  1690. -- Runtime Function: long long __fractudati (unsigned long accum A)
  1691. -- Runtime Function: float __fractudasf (unsigned long accum A)
  1692. -- Runtime Function: double __fractudadf (unsigned long accum A)
  1693. -- Runtime Function: short fract __fractutaqq (unsigned long long accum
  1694. A)
  1695. -- Runtime Function: fract __fractutahq (unsigned long long accum A)
  1696. -- Runtime Function: long fract __fractutasq (unsigned long long accum
  1697. A)
  1698. -- Runtime Function: long long fract __fractutadq (unsigned long long
  1699. accum A)
  1700. -- Runtime Function: short accum __fractutaha (unsigned long long accum
  1701. A)
  1702. -- Runtime Function: accum __fractutasa (unsigned long long accum A)
  1703. -- Runtime Function: long accum __fractutada (unsigned long long accum
  1704. A)
  1705. -- Runtime Function: long long accum __fractutata (unsigned long long
  1706. accum A)
  1707. -- Runtime Function: unsigned short fract __fractutauqq (unsigned long
  1708. long accum A)
  1709. -- Runtime Function: unsigned fract __fractutauhq (unsigned long long
  1710. accum A)
  1711. -- Runtime Function: unsigned long fract __fractutausq (unsigned long
  1712. long accum A)
  1713. -- Runtime Function: unsigned long long fract __fractutaudq (unsigned
  1714. long long accum A)
  1715. -- Runtime Function: unsigned short accum __fractutauha2 (unsigned long
  1716. long accum A)
  1717. -- Runtime Function: unsigned accum __fractutausa2 (unsigned long long
  1718. accum A)
  1719. -- Runtime Function: unsigned long accum __fractutauda2 (unsigned long
  1720. long accum A)
  1721. -- Runtime Function: signed char __fractutaqi (unsigned long long accum
  1722. A)
  1723. -- Runtime Function: short __fractutahi (unsigned long long accum A)
  1724. -- Runtime Function: int __fractutasi (unsigned long long accum A)
  1725. -- Runtime Function: long __fractutadi (unsigned long long accum A)
  1726. -- Runtime Function: long long __fractutati (unsigned long long accum
  1727. A)
  1728. -- Runtime Function: float __fractutasf (unsigned long long accum A)
  1729. -- Runtime Function: double __fractutadf (unsigned long long accum A)
  1730. -- Runtime Function: short fract __fractqiqq (signed char A)
  1731. -- Runtime Function: fract __fractqihq (signed char A)
  1732. -- Runtime Function: long fract __fractqisq (signed char A)
  1733. -- Runtime Function: long long fract __fractqidq (signed char A)
  1734. -- Runtime Function: short accum __fractqiha (signed char A)
  1735. -- Runtime Function: accum __fractqisa (signed char A)
  1736. -- Runtime Function: long accum __fractqida (signed char A)
  1737. -- Runtime Function: long long accum __fractqita (signed char A)
  1738. -- Runtime Function: unsigned short fract __fractqiuqq (signed char A)
  1739. -- Runtime Function: unsigned fract __fractqiuhq (signed char A)
  1740. -- Runtime Function: unsigned long fract __fractqiusq (signed char A)
  1741. -- Runtime Function: unsigned long long fract __fractqiudq (signed char
  1742. A)
  1743. -- Runtime Function: unsigned short accum __fractqiuha (signed char A)
  1744. -- Runtime Function: unsigned accum __fractqiusa (signed char A)
  1745. -- Runtime Function: unsigned long accum __fractqiuda (signed char A)
  1746. -- Runtime Function: unsigned long long accum __fractqiuta (signed char
  1747. A)
  1748. -- Runtime Function: short fract __fracthiqq (short A)
  1749. -- Runtime Function: fract __fracthihq (short A)
  1750. -- Runtime Function: long fract __fracthisq (short A)
  1751. -- Runtime Function: long long fract __fracthidq (short A)
  1752. -- Runtime Function: short accum __fracthiha (short A)
  1753. -- Runtime Function: accum __fracthisa (short A)
  1754. -- Runtime Function: long accum __fracthida (short A)
  1755. -- Runtime Function: long long accum __fracthita (short A)
  1756. -- Runtime Function: unsigned short fract __fracthiuqq (short A)
  1757. -- Runtime Function: unsigned fract __fracthiuhq (short A)
  1758. -- Runtime Function: unsigned long fract __fracthiusq (short A)
  1759. -- Runtime Function: unsigned long long fract __fracthiudq (short A)
  1760. -- Runtime Function: unsigned short accum __fracthiuha (short A)
  1761. -- Runtime Function: unsigned accum __fracthiusa (short A)
  1762. -- Runtime Function: unsigned long accum __fracthiuda (short A)
  1763. -- Runtime Function: unsigned long long accum __fracthiuta (short A)
  1764. -- Runtime Function: short fract __fractsiqq (int A)
  1765. -- Runtime Function: fract __fractsihq (int A)
  1766. -- Runtime Function: long fract __fractsisq (int A)
  1767. -- Runtime Function: long long fract __fractsidq (int A)
  1768. -- Runtime Function: short accum __fractsiha (int A)
  1769. -- Runtime Function: accum __fractsisa (int A)
  1770. -- Runtime Function: long accum __fractsida (int A)
  1771. -- Runtime Function: long long accum __fractsita (int A)
  1772. -- Runtime Function: unsigned short fract __fractsiuqq (int A)
  1773. -- Runtime Function: unsigned fract __fractsiuhq (int A)
  1774. -- Runtime Function: unsigned long fract __fractsiusq (int A)
  1775. -- Runtime Function: unsigned long long fract __fractsiudq (int A)
  1776. -- Runtime Function: unsigned short accum __fractsiuha (int A)
  1777. -- Runtime Function: unsigned accum __fractsiusa (int A)
  1778. -- Runtime Function: unsigned long accum __fractsiuda (int A)
  1779. -- Runtime Function: unsigned long long accum __fractsiuta (int A)
  1780. -- Runtime Function: short fract __fractdiqq (long A)
  1781. -- Runtime Function: fract __fractdihq (long A)
  1782. -- Runtime Function: long fract __fractdisq (long A)
  1783. -- Runtime Function: long long fract __fractdidq (long A)
  1784. -- Runtime Function: short accum __fractdiha (long A)
  1785. -- Runtime Function: accum __fractdisa (long A)
  1786. -- Runtime Function: long accum __fractdida (long A)
  1787. -- Runtime Function: long long accum __fractdita (long A)
  1788. -- Runtime Function: unsigned short fract __fractdiuqq (long A)
  1789. -- Runtime Function: unsigned fract __fractdiuhq (long A)
  1790. -- Runtime Function: unsigned long fract __fractdiusq (long A)
  1791. -- Runtime Function: unsigned long long fract __fractdiudq (long A)
  1792. -- Runtime Function: unsigned short accum __fractdiuha (long A)
  1793. -- Runtime Function: unsigned accum __fractdiusa (long A)
  1794. -- Runtime Function: unsigned long accum __fractdiuda (long A)
  1795. -- Runtime Function: unsigned long long accum __fractdiuta (long A)
  1796. -- Runtime Function: short fract __fracttiqq (long long A)
  1797. -- Runtime Function: fract __fracttihq (long long A)
  1798. -- Runtime Function: long fract __fracttisq (long long A)
  1799. -- Runtime Function: long long fract __fracttidq (long long A)
  1800. -- Runtime Function: short accum __fracttiha (long long A)
  1801. -- Runtime Function: accum __fracttisa (long long A)
  1802. -- Runtime Function: long accum __fracttida (long long A)
  1803. -- Runtime Function: long long accum __fracttita (long long A)
  1804. -- Runtime Function: unsigned short fract __fracttiuqq (long long A)
  1805. -- Runtime Function: unsigned fract __fracttiuhq (long long A)
  1806. -- Runtime Function: unsigned long fract __fracttiusq (long long A)
  1807. -- Runtime Function: unsigned long long fract __fracttiudq (long long
  1808. A)
  1809. -- Runtime Function: unsigned short accum __fracttiuha (long long A)
  1810. -- Runtime Function: unsigned accum __fracttiusa (long long A)
  1811. -- Runtime Function: unsigned long accum __fracttiuda (long long A)
  1812. -- Runtime Function: unsigned long long accum __fracttiuta (long long
  1813. A)
  1814. -- Runtime Function: short fract __fractsfqq (float A)
  1815. -- Runtime Function: fract __fractsfhq (float A)
  1816. -- Runtime Function: long fract __fractsfsq (float A)
  1817. -- Runtime Function: long long fract __fractsfdq (float A)
  1818. -- Runtime Function: short accum __fractsfha (float A)
  1819. -- Runtime Function: accum __fractsfsa (float A)
  1820. -- Runtime Function: long accum __fractsfda (float A)
  1821. -- Runtime Function: long long accum __fractsfta (float A)
  1822. -- Runtime Function: unsigned short fract __fractsfuqq (float A)
  1823. -- Runtime Function: unsigned fract __fractsfuhq (float A)
  1824. -- Runtime Function: unsigned long fract __fractsfusq (float A)
  1825. -- Runtime Function: unsigned long long fract __fractsfudq (float A)
  1826. -- Runtime Function: unsigned short accum __fractsfuha (float A)
  1827. -- Runtime Function: unsigned accum __fractsfusa (float A)
  1828. -- Runtime Function: unsigned long accum __fractsfuda (float A)
  1829. -- Runtime Function: unsigned long long accum __fractsfuta (float A)
  1830. -- Runtime Function: short fract __fractdfqq (double A)
  1831. -- Runtime Function: fract __fractdfhq (double A)
  1832. -- Runtime Function: long fract __fractdfsq (double A)
  1833. -- Runtime Function: long long fract __fractdfdq (double A)
  1834. -- Runtime Function: short accum __fractdfha (double A)
  1835. -- Runtime Function: accum __fractdfsa (double A)
  1836. -- Runtime Function: long accum __fractdfda (double A)
  1837. -- Runtime Function: long long accum __fractdfta (double A)
  1838. -- Runtime Function: unsigned short fract __fractdfuqq (double A)
  1839. -- Runtime Function: unsigned fract __fractdfuhq (double A)
  1840. -- Runtime Function: unsigned long fract __fractdfusq (double A)
  1841. -- Runtime Function: unsigned long long fract __fractdfudq (double A)
  1842. -- Runtime Function: unsigned short accum __fractdfuha (double A)
  1843. -- Runtime Function: unsigned accum __fractdfusa (double A)
  1844. -- Runtime Function: unsigned long accum __fractdfuda (double A)
  1845. -- Runtime Function: unsigned long long accum __fractdfuta (double A)
  1846. These functions convert from fractional and signed non-fractionals
  1847. to fractionals and signed non-fractionals, without saturation.
  1848. -- Runtime Function: fract __satfractqqhq2 (short fract A)
  1849. -- Runtime Function: long fract __satfractqqsq2 (short fract A)
  1850. -- Runtime Function: long long fract __satfractqqdq2 (short fract A)
  1851. -- Runtime Function: short accum __satfractqqha (short fract A)
  1852. -- Runtime Function: accum __satfractqqsa (short fract A)
  1853. -- Runtime Function: long accum __satfractqqda (short fract A)
  1854. -- Runtime Function: long long accum __satfractqqta (short fract A)
  1855. -- Runtime Function: unsigned short fract __satfractqquqq (short fract
  1856. A)
  1857. -- Runtime Function: unsigned fract __satfractqquhq (short fract A)
  1858. -- Runtime Function: unsigned long fract __satfractqqusq (short fract
  1859. A)
  1860. -- Runtime Function: unsigned long long fract __satfractqqudq (short
  1861. fract A)
  1862. -- Runtime Function: unsigned short accum __satfractqquha (short fract
  1863. A)
  1864. -- Runtime Function: unsigned accum __satfractqqusa (short fract A)
  1865. -- Runtime Function: unsigned long accum __satfractqquda (short fract
  1866. A)
  1867. -- Runtime Function: unsigned long long accum __satfractqquta (short
  1868. fract A)
  1869. -- Runtime Function: short fract __satfracthqqq2 (fract A)
  1870. -- Runtime Function: long fract __satfracthqsq2 (fract A)
  1871. -- Runtime Function: long long fract __satfracthqdq2 (fract A)
  1872. -- Runtime Function: short accum __satfracthqha (fract A)
  1873. -- Runtime Function: accum __satfracthqsa (fract A)
  1874. -- Runtime Function: long accum __satfracthqda (fract A)
  1875. -- Runtime Function: long long accum __satfracthqta (fract A)
  1876. -- Runtime Function: unsigned short fract __satfracthquqq (fract A)
  1877. -- Runtime Function: unsigned fract __satfracthquhq (fract A)
  1878. -- Runtime Function: unsigned long fract __satfracthqusq (fract A)
  1879. -- Runtime Function: unsigned long long fract __satfracthqudq (fract A)
  1880. -- Runtime Function: unsigned short accum __satfracthquha (fract A)
  1881. -- Runtime Function: unsigned accum __satfracthqusa (fract A)
  1882. -- Runtime Function: unsigned long accum __satfracthquda (fract A)
  1883. -- Runtime Function: unsigned long long accum __satfracthquta (fract A)
  1884. -- Runtime Function: short fract __satfractsqqq2 (long fract A)
  1885. -- Runtime Function: fract __satfractsqhq2 (long fract A)
  1886. -- Runtime Function: long long fract __satfractsqdq2 (long fract A)
  1887. -- Runtime Function: short accum __satfractsqha (long fract A)
  1888. -- Runtime Function: accum __satfractsqsa (long fract A)
  1889. -- Runtime Function: long accum __satfractsqda (long fract A)
  1890. -- Runtime Function: long long accum __satfractsqta (long fract A)
  1891. -- Runtime Function: unsigned short fract __satfractsquqq (long fract
  1892. A)
  1893. -- Runtime Function: unsigned fract __satfractsquhq (long fract A)
  1894. -- Runtime Function: unsigned long fract __satfractsqusq (long fract A)
  1895. -- Runtime Function: unsigned long long fract __satfractsqudq (long
  1896. fract A)
  1897. -- Runtime Function: unsigned short accum __satfractsquha (long fract
  1898. A)
  1899. -- Runtime Function: unsigned accum __satfractsqusa (long fract A)
  1900. -- Runtime Function: unsigned long accum __satfractsquda (long fract A)
  1901. -- Runtime Function: unsigned long long accum __satfractsquta (long
  1902. fract A)
  1903. -- Runtime Function: short fract __satfractdqqq2 (long long fract A)
  1904. -- Runtime Function: fract __satfractdqhq2 (long long fract A)
  1905. -- Runtime Function: long fract __satfractdqsq2 (long long fract A)
  1906. -- Runtime Function: short accum __satfractdqha (long long fract A)
  1907. -- Runtime Function: accum __satfractdqsa (long long fract A)
  1908. -- Runtime Function: long accum __satfractdqda (long long fract A)
  1909. -- Runtime Function: long long accum __satfractdqta (long long fract A)
  1910. -- Runtime Function: unsigned short fract __satfractdquqq (long long
  1911. fract A)
  1912. -- Runtime Function: unsigned fract __satfractdquhq (long long fract A)
  1913. -- Runtime Function: unsigned long fract __satfractdqusq (long long
  1914. fract A)
  1915. -- Runtime Function: unsigned long long fract __satfractdqudq (long
  1916. long fract A)
  1917. -- Runtime Function: unsigned short accum __satfractdquha (long long
  1918. fract A)
  1919. -- Runtime Function: unsigned accum __satfractdqusa (long long fract A)
  1920. -- Runtime Function: unsigned long accum __satfractdquda (long long
  1921. fract A)
  1922. -- Runtime Function: unsigned long long accum __satfractdquta (long
  1923. long fract A)
  1924. -- Runtime Function: short fract __satfracthaqq (short accum A)
  1925. -- Runtime Function: fract __satfracthahq (short accum A)
  1926. -- Runtime Function: long fract __satfracthasq (short accum A)
  1927. -- Runtime Function: long long fract __satfracthadq (short accum A)
  1928. -- Runtime Function: accum __satfracthasa2 (short accum A)
  1929. -- Runtime Function: long accum __satfracthada2 (short accum A)
  1930. -- Runtime Function: long long accum __satfracthata2 (short accum A)
  1931. -- Runtime Function: unsigned short fract __satfracthauqq (short accum
  1932. A)
  1933. -- Runtime Function: unsigned fract __satfracthauhq (short accum A)
  1934. -- Runtime Function: unsigned long fract __satfracthausq (short accum
  1935. A)
  1936. -- Runtime Function: unsigned long long fract __satfracthaudq (short
  1937. accum A)
  1938. -- Runtime Function: unsigned short accum __satfracthauha (short accum
  1939. A)
  1940. -- Runtime Function: unsigned accum __satfracthausa (short accum A)
  1941. -- Runtime Function: unsigned long accum __satfracthauda (short accum
  1942. A)
  1943. -- Runtime Function: unsigned long long accum __satfracthauta (short
  1944. accum A)
  1945. -- Runtime Function: short fract __satfractsaqq (accum A)
  1946. -- Runtime Function: fract __satfractsahq (accum A)
  1947. -- Runtime Function: long fract __satfractsasq (accum A)
  1948. -- Runtime Function: long long fract __satfractsadq (accum A)
  1949. -- Runtime Function: short accum __satfractsaha2 (accum A)
  1950. -- Runtime Function: long accum __satfractsada2 (accum A)
  1951. -- Runtime Function: long long accum __satfractsata2 (accum A)
  1952. -- Runtime Function: unsigned short fract __satfractsauqq (accum A)
  1953. -- Runtime Function: unsigned fract __satfractsauhq (accum A)
  1954. -- Runtime Function: unsigned long fract __satfractsausq (accum A)
  1955. -- Runtime Function: unsigned long long fract __satfractsaudq (accum A)
  1956. -- Runtime Function: unsigned short accum __satfractsauha (accum A)
  1957. -- Runtime Function: unsigned accum __satfractsausa (accum A)
  1958. -- Runtime Function: unsigned long accum __satfractsauda (accum A)
  1959. -- Runtime Function: unsigned long long accum __satfractsauta (accum A)
  1960. -- Runtime Function: short fract __satfractdaqq (long accum A)
  1961. -- Runtime Function: fract __satfractdahq (long accum A)
  1962. -- Runtime Function: long fract __satfractdasq (long accum A)
  1963. -- Runtime Function: long long fract __satfractdadq (long accum A)
  1964. -- Runtime Function: short accum __satfractdaha2 (long accum A)
  1965. -- Runtime Function: accum __satfractdasa2 (long accum A)
  1966. -- Runtime Function: long long accum __satfractdata2 (long accum A)
  1967. -- Runtime Function: unsigned short fract __satfractdauqq (long accum
  1968. A)
  1969. -- Runtime Function: unsigned fract __satfractdauhq (long accum A)
  1970. -- Runtime Function: unsigned long fract __satfractdausq (long accum A)
  1971. -- Runtime Function: unsigned long long fract __satfractdaudq (long
  1972. accum A)
  1973. -- Runtime Function: unsigned short accum __satfractdauha (long accum
  1974. A)
  1975. -- Runtime Function: unsigned accum __satfractdausa (long accum A)
  1976. -- Runtime Function: unsigned long accum __satfractdauda (long accum A)
  1977. -- Runtime Function: unsigned long long accum __satfractdauta (long
  1978. accum A)
  1979. -- Runtime Function: short fract __satfracttaqq (long long accum A)
  1980. -- Runtime Function: fract __satfracttahq (long long accum A)
  1981. -- Runtime Function: long fract __satfracttasq (long long accum A)
  1982. -- Runtime Function: long long fract __satfracttadq (long long accum A)
  1983. -- Runtime Function: short accum __satfracttaha2 (long long accum A)
  1984. -- Runtime Function: accum __satfracttasa2 (long long accum A)
  1985. -- Runtime Function: long accum __satfracttada2 (long long accum A)
  1986. -- Runtime Function: unsigned short fract __satfracttauqq (long long
  1987. accum A)
  1988. -- Runtime Function: unsigned fract __satfracttauhq (long long accum A)
  1989. -- Runtime Function: unsigned long fract __satfracttausq (long long
  1990. accum A)
  1991. -- Runtime Function: unsigned long long fract __satfracttaudq (long
  1992. long accum A)
  1993. -- Runtime Function: unsigned short accum __satfracttauha (long long
  1994. accum A)
  1995. -- Runtime Function: unsigned accum __satfracttausa (long long accum A)
  1996. -- Runtime Function: unsigned long accum __satfracttauda (long long
  1997. accum A)
  1998. -- Runtime Function: unsigned long long accum __satfracttauta (long
  1999. long accum A)
  2000. -- Runtime Function: short fract __satfractuqqqq (unsigned short fract
  2001. A)
  2002. -- Runtime Function: fract __satfractuqqhq (unsigned short fract A)
  2003. -- Runtime Function: long fract __satfractuqqsq (unsigned short fract
  2004. A)
  2005. -- Runtime Function: long long fract __satfractuqqdq (unsigned short
  2006. fract A)
  2007. -- Runtime Function: short accum __satfractuqqha (unsigned short fract
  2008. A)
  2009. -- Runtime Function: accum __satfractuqqsa (unsigned short fract A)
  2010. -- Runtime Function: long accum __satfractuqqda (unsigned short fract
  2011. A)
  2012. -- Runtime Function: long long accum __satfractuqqta (unsigned short
  2013. fract A)
  2014. -- Runtime Function: unsigned fract __satfractuqquhq2 (unsigned short
  2015. fract A)
  2016. -- Runtime Function: unsigned long fract __satfractuqqusq2 (unsigned
  2017. short fract A)
  2018. -- Runtime Function: unsigned long long fract __satfractuqqudq2
  2019. (unsigned short fract A)
  2020. -- Runtime Function: unsigned short accum __satfractuqquha (unsigned
  2021. short fract A)
  2022. -- Runtime Function: unsigned accum __satfractuqqusa (unsigned short
  2023. fract A)
  2024. -- Runtime Function: unsigned long accum __satfractuqquda (unsigned
  2025. short fract A)
  2026. -- Runtime Function: unsigned long long accum __satfractuqquta
  2027. (unsigned short fract A)
  2028. -- Runtime Function: short fract __satfractuhqqq (unsigned fract A)
  2029. -- Runtime Function: fract __satfractuhqhq (unsigned fract A)
  2030. -- Runtime Function: long fract __satfractuhqsq (unsigned fract A)
  2031. -- Runtime Function: long long fract __satfractuhqdq (unsigned fract A)
  2032. -- Runtime Function: short accum __satfractuhqha (unsigned fract A)
  2033. -- Runtime Function: accum __satfractuhqsa (unsigned fract A)
  2034. -- Runtime Function: long accum __satfractuhqda (unsigned fract A)
  2035. -- Runtime Function: long long accum __satfractuhqta (unsigned fract A)
  2036. -- Runtime Function: unsigned short fract __satfractuhquqq2 (unsigned
  2037. fract A)
  2038. -- Runtime Function: unsigned long fract __satfractuhqusq2 (unsigned
  2039. fract A)
  2040. -- Runtime Function: unsigned long long fract __satfractuhqudq2
  2041. (unsigned fract A)
  2042. -- Runtime Function: unsigned short accum __satfractuhquha (unsigned
  2043. fract A)
  2044. -- Runtime Function: unsigned accum __satfractuhqusa (unsigned fract A)
  2045. -- Runtime Function: unsigned long accum __satfractuhquda (unsigned
  2046. fract A)
  2047. -- Runtime Function: unsigned long long accum __satfractuhquta
  2048. (unsigned fract A)
  2049. -- Runtime Function: short fract __satfractusqqq (unsigned long fract
  2050. A)
  2051. -- Runtime Function: fract __satfractusqhq (unsigned long fract A)
  2052. -- Runtime Function: long fract __satfractusqsq (unsigned long fract A)
  2053. -- Runtime Function: long long fract __satfractusqdq (unsigned long
  2054. fract A)
  2055. -- Runtime Function: short accum __satfractusqha (unsigned long fract
  2056. A)
  2057. -- Runtime Function: accum __satfractusqsa (unsigned long fract A)
  2058. -- Runtime Function: long accum __satfractusqda (unsigned long fract A)
  2059. -- Runtime Function: long long accum __satfractusqta (unsigned long
  2060. fract A)
  2061. -- Runtime Function: unsigned short fract __satfractusquqq2 (unsigned
  2062. long fract A)
  2063. -- Runtime Function: unsigned fract __satfractusquhq2 (unsigned long
  2064. fract A)
  2065. -- Runtime Function: unsigned long long fract __satfractusqudq2
  2066. (unsigned long fract A)
  2067. -- Runtime Function: unsigned short accum __satfractusquha (unsigned
  2068. long fract A)
  2069. -- Runtime Function: unsigned accum __satfractusqusa (unsigned long
  2070. fract A)
  2071. -- Runtime Function: unsigned long accum __satfractusquda (unsigned
  2072. long fract A)
  2073. -- Runtime Function: unsigned long long accum __satfractusquta
  2074. (unsigned long fract A)
  2075. -- Runtime Function: short fract __satfractudqqq (unsigned long long
  2076. fract A)
  2077. -- Runtime Function: fract __satfractudqhq (unsigned long long fract A)
  2078. -- Runtime Function: long fract __satfractudqsq (unsigned long long
  2079. fract A)
  2080. -- Runtime Function: long long fract __satfractudqdq (unsigned long
  2081. long fract A)
  2082. -- Runtime Function: short accum __satfractudqha (unsigned long long
  2083. fract A)
  2084. -- Runtime Function: accum __satfractudqsa (unsigned long long fract A)
  2085. -- Runtime Function: long accum __satfractudqda (unsigned long long
  2086. fract A)
  2087. -- Runtime Function: long long accum __satfractudqta (unsigned long
  2088. long fract A)
  2089. -- Runtime Function: unsigned short fract __satfractudquqq2 (unsigned
  2090. long long fract A)
  2091. -- Runtime Function: unsigned fract __satfractudquhq2 (unsigned long
  2092. long fract A)
  2093. -- Runtime Function: unsigned long fract __satfractudqusq2 (unsigned
  2094. long long fract A)
  2095. -- Runtime Function: unsigned short accum __satfractudquha (unsigned
  2096. long long fract A)
  2097. -- Runtime Function: unsigned accum __satfractudqusa (unsigned long
  2098. long fract A)
  2099. -- Runtime Function: unsigned long accum __satfractudquda (unsigned
  2100. long long fract A)
  2101. -- Runtime Function: unsigned long long accum __satfractudquta
  2102. (unsigned long long fract A)
  2103. -- Runtime Function: short fract __satfractuhaqq (unsigned short accum
  2104. A)
  2105. -- Runtime Function: fract __satfractuhahq (unsigned short accum A)
  2106. -- Runtime Function: long fract __satfractuhasq (unsigned short accum
  2107. A)
  2108. -- Runtime Function: long long fract __satfractuhadq (unsigned short
  2109. accum A)
  2110. -- Runtime Function: short accum __satfractuhaha (unsigned short accum
  2111. A)
  2112. -- Runtime Function: accum __satfractuhasa (unsigned short accum A)
  2113. -- Runtime Function: long accum __satfractuhada (unsigned short accum
  2114. A)
  2115. -- Runtime Function: long long accum __satfractuhata (unsigned short
  2116. accum A)
  2117. -- Runtime Function: unsigned short fract __satfractuhauqq (unsigned
  2118. short accum A)
  2119. -- Runtime Function: unsigned fract __satfractuhauhq (unsigned short
  2120. accum A)
  2121. -- Runtime Function: unsigned long fract __satfractuhausq (unsigned
  2122. short accum A)
  2123. -- Runtime Function: unsigned long long fract __satfractuhaudq
  2124. (unsigned short accum A)
  2125. -- Runtime Function: unsigned accum __satfractuhausa2 (unsigned short
  2126. accum A)
  2127. -- Runtime Function: unsigned long accum __satfractuhauda2 (unsigned
  2128. short accum A)
  2129. -- Runtime Function: unsigned long long accum __satfractuhauta2
  2130. (unsigned short accum A)
  2131. -- Runtime Function: short fract __satfractusaqq (unsigned accum A)
  2132. -- Runtime Function: fract __satfractusahq (unsigned accum A)
  2133. -- Runtime Function: long fract __satfractusasq (unsigned accum A)
  2134. -- Runtime Function: long long fract __satfractusadq (unsigned accum A)
  2135. -- Runtime Function: short accum __satfractusaha (unsigned accum A)
  2136. -- Runtime Function: accum __satfractusasa (unsigned accum A)
  2137. -- Runtime Function: long accum __satfractusada (unsigned accum A)
  2138. -- Runtime Function: long long accum __satfractusata (unsigned accum A)
  2139. -- Runtime Function: unsigned short fract __satfractusauqq (unsigned
  2140. accum A)
  2141. -- Runtime Function: unsigned fract __satfractusauhq (unsigned accum A)
  2142. -- Runtime Function: unsigned long fract __satfractusausq (unsigned
  2143. accum A)
  2144. -- Runtime Function: unsigned long long fract __satfractusaudq
  2145. (unsigned accum A)
  2146. -- Runtime Function: unsigned short accum __satfractusauha2 (unsigned
  2147. accum A)
  2148. -- Runtime Function: unsigned long accum __satfractusauda2 (unsigned
  2149. accum A)
  2150. -- Runtime Function: unsigned long long accum __satfractusauta2
  2151. (unsigned accum A)
  2152. -- Runtime Function: short fract __satfractudaqq (unsigned long accum
  2153. A)
  2154. -- Runtime Function: fract __satfractudahq (unsigned long accum A)
  2155. -- Runtime Function: long fract __satfractudasq (unsigned long accum A)
  2156. -- Runtime Function: long long fract __satfractudadq (unsigned long
  2157. accum A)
  2158. -- Runtime Function: short accum __satfractudaha (unsigned long accum
  2159. A)
  2160. -- Runtime Function: accum __satfractudasa (unsigned long accum A)
  2161. -- Runtime Function: long accum __satfractudada (unsigned long accum A)
  2162. -- Runtime Function: long long accum __satfractudata (unsigned long
  2163. accum A)
  2164. -- Runtime Function: unsigned short fract __satfractudauqq (unsigned
  2165. long accum A)
  2166. -- Runtime Function: unsigned fract __satfractudauhq (unsigned long
  2167. accum A)
  2168. -- Runtime Function: unsigned long fract __satfractudausq (unsigned
  2169. long accum A)
  2170. -- Runtime Function: unsigned long long fract __satfractudaudq
  2171. (unsigned long accum A)
  2172. -- Runtime Function: unsigned short accum __satfractudauha2 (unsigned
  2173. long accum A)
  2174. -- Runtime Function: unsigned accum __satfractudausa2 (unsigned long
  2175. accum A)
  2176. -- Runtime Function: unsigned long long accum __satfractudauta2
  2177. (unsigned long accum A)
  2178. -- Runtime Function: short fract __satfractutaqq (unsigned long long
  2179. accum A)
  2180. -- Runtime Function: fract __satfractutahq (unsigned long long accum A)
  2181. -- Runtime Function: long fract __satfractutasq (unsigned long long
  2182. accum A)
  2183. -- Runtime Function: long long fract __satfractutadq (unsigned long
  2184. long accum A)
  2185. -- Runtime Function: short accum __satfractutaha (unsigned long long
  2186. accum A)
  2187. -- Runtime Function: accum __satfractutasa (unsigned long long accum A)
  2188. -- Runtime Function: long accum __satfractutada (unsigned long long
  2189. accum A)
  2190. -- Runtime Function: long long accum __satfractutata (unsigned long
  2191. long accum A)
  2192. -- Runtime Function: unsigned short fract __satfractutauqq (unsigned
  2193. long long accum A)
  2194. -- Runtime Function: unsigned fract __satfractutauhq (unsigned long
  2195. long accum A)
  2196. -- Runtime Function: unsigned long fract __satfractutausq (unsigned
  2197. long long accum A)
  2198. -- Runtime Function: unsigned long long fract __satfractutaudq
  2199. (unsigned long long accum A)
  2200. -- Runtime Function: unsigned short accum __satfractutauha2 (unsigned
  2201. long long accum A)
  2202. -- Runtime Function: unsigned accum __satfractutausa2 (unsigned long
  2203. long accum A)
  2204. -- Runtime Function: unsigned long accum __satfractutauda2 (unsigned
  2205. long long accum A)
  2206. -- Runtime Function: short fract __satfractqiqq (signed char A)
  2207. -- Runtime Function: fract __satfractqihq (signed char A)
  2208. -- Runtime Function: long fract __satfractqisq (signed char A)
  2209. -- Runtime Function: long long fract __satfractqidq (signed char A)
  2210. -- Runtime Function: short accum __satfractqiha (signed char A)
  2211. -- Runtime Function: accum __satfractqisa (signed char A)
  2212. -- Runtime Function: long accum __satfractqida (signed char A)
  2213. -- Runtime Function: long long accum __satfractqita (signed char A)
  2214. -- Runtime Function: unsigned short fract __satfractqiuqq (signed char
  2215. A)
  2216. -- Runtime Function: unsigned fract __satfractqiuhq (signed char A)
  2217. -- Runtime Function: unsigned long fract __satfractqiusq (signed char
  2218. A)
  2219. -- Runtime Function: unsigned long long fract __satfractqiudq (signed
  2220. char A)
  2221. -- Runtime Function: unsigned short accum __satfractqiuha (signed char
  2222. A)
  2223. -- Runtime Function: unsigned accum __satfractqiusa (signed char A)
  2224. -- Runtime Function: unsigned long accum __satfractqiuda (signed char
  2225. A)
  2226. -- Runtime Function: unsigned long long accum __satfractqiuta (signed
  2227. char A)
  2228. -- Runtime Function: short fract __satfracthiqq (short A)
  2229. -- Runtime Function: fract __satfracthihq (short A)
  2230. -- Runtime Function: long fract __satfracthisq (short A)
  2231. -- Runtime Function: long long fract __satfracthidq (short A)
  2232. -- Runtime Function: short accum __satfracthiha (short A)
  2233. -- Runtime Function: accum __satfracthisa (short A)
  2234. -- Runtime Function: long accum __satfracthida (short A)
  2235. -- Runtime Function: long long accum __satfracthita (short A)
  2236. -- Runtime Function: unsigned short fract __satfracthiuqq (short A)
  2237. -- Runtime Function: unsigned fract __satfracthiuhq (short A)
  2238. -- Runtime Function: unsigned long fract __satfracthiusq (short A)
  2239. -- Runtime Function: unsigned long long fract __satfracthiudq (short A)
  2240. -- Runtime Function: unsigned short accum __satfracthiuha (short A)
  2241. -- Runtime Function: unsigned accum __satfracthiusa (short A)
  2242. -- Runtime Function: unsigned long accum __satfracthiuda (short A)
  2243. -- Runtime Function: unsigned long long accum __satfracthiuta (short A)
  2244. -- Runtime Function: short fract __satfractsiqq (int A)
  2245. -- Runtime Function: fract __satfractsihq (int A)
  2246. -- Runtime Function: long fract __satfractsisq (int A)
  2247. -- Runtime Function: long long fract __satfractsidq (int A)
  2248. -- Runtime Function: short accum __satfractsiha (int A)
  2249. -- Runtime Function: accum __satfractsisa (int A)
  2250. -- Runtime Function: long accum __satfractsida (int A)
  2251. -- Runtime Function: long long accum __satfractsita (int A)
  2252. -- Runtime Function: unsigned short fract __satfractsiuqq (int A)
  2253. -- Runtime Function: unsigned fract __satfractsiuhq (int A)
  2254. -- Runtime Function: unsigned long fract __satfractsiusq (int A)
  2255. -- Runtime Function: unsigned long long fract __satfractsiudq (int A)
  2256. -- Runtime Function: unsigned short accum __satfractsiuha (int A)
  2257. -- Runtime Function: unsigned accum __satfractsiusa (int A)
  2258. -- Runtime Function: unsigned long accum __satfractsiuda (int A)
  2259. -- Runtime Function: unsigned long long accum __satfractsiuta (int A)
  2260. -- Runtime Function: short fract __satfractdiqq (long A)
  2261. -- Runtime Function: fract __satfractdihq (long A)
  2262. -- Runtime Function: long fract __satfractdisq (long A)
  2263. -- Runtime Function: long long fract __satfractdidq (long A)
  2264. -- Runtime Function: short accum __satfractdiha (long A)
  2265. -- Runtime Function: accum __satfractdisa (long A)
  2266. -- Runtime Function: long accum __satfractdida (long A)
  2267. -- Runtime Function: long long accum __satfractdita (long A)
  2268. -- Runtime Function: unsigned short fract __satfractdiuqq (long A)
  2269. -- Runtime Function: unsigned fract __satfractdiuhq (long A)
  2270. -- Runtime Function: unsigned long fract __satfractdiusq (long A)
  2271. -- Runtime Function: unsigned long long fract __satfractdiudq (long A)
  2272. -- Runtime Function: unsigned short accum __satfractdiuha (long A)
  2273. -- Runtime Function: unsigned accum __satfractdiusa (long A)
  2274. -- Runtime Function: unsigned long accum __satfractdiuda (long A)
  2275. -- Runtime Function: unsigned long long accum __satfractdiuta (long A)
  2276. -- Runtime Function: short fract __satfracttiqq (long long A)
  2277. -- Runtime Function: fract __satfracttihq (long long A)
  2278. -- Runtime Function: long fract __satfracttisq (long long A)
  2279. -- Runtime Function: long long fract __satfracttidq (long long A)
  2280. -- Runtime Function: short accum __satfracttiha (long long A)
  2281. -- Runtime Function: accum __satfracttisa (long long A)
  2282. -- Runtime Function: long accum __satfracttida (long long A)
  2283. -- Runtime Function: long long accum __satfracttita (long long A)
  2284. -- Runtime Function: unsigned short fract __satfracttiuqq (long long A)
  2285. -- Runtime Function: unsigned fract __satfracttiuhq (long long A)
  2286. -- Runtime Function: unsigned long fract __satfracttiusq (long long A)
  2287. -- Runtime Function: unsigned long long fract __satfracttiudq (long
  2288. long A)
  2289. -- Runtime Function: unsigned short accum __satfracttiuha (long long A)
  2290. -- Runtime Function: unsigned accum __satfracttiusa (long long A)
  2291. -- Runtime Function: unsigned long accum __satfracttiuda (long long A)
  2292. -- Runtime Function: unsigned long long accum __satfracttiuta (long
  2293. long A)
  2294. -- Runtime Function: short fract __satfractsfqq (float A)
  2295. -- Runtime Function: fract __satfractsfhq (float A)
  2296. -- Runtime Function: long fract __satfractsfsq (float A)
  2297. -- Runtime Function: long long fract __satfractsfdq (float A)
  2298. -- Runtime Function: short accum __satfractsfha (float A)
  2299. -- Runtime Function: accum __satfractsfsa (float A)
  2300. -- Runtime Function: long accum __satfractsfda (float A)
  2301. -- Runtime Function: long long accum __satfractsfta (float A)
  2302. -- Runtime Function: unsigned short fract __satfractsfuqq (float A)
  2303. -- Runtime Function: unsigned fract __satfractsfuhq (float A)
  2304. -- Runtime Function: unsigned long fract __satfractsfusq (float A)
  2305. -- Runtime Function: unsigned long long fract __satfractsfudq (float A)
  2306. -- Runtime Function: unsigned short accum __satfractsfuha (float A)
  2307. -- Runtime Function: unsigned accum __satfractsfusa (float A)
  2308. -- Runtime Function: unsigned long accum __satfractsfuda (float A)
  2309. -- Runtime Function: unsigned long long accum __satfractsfuta (float A)
  2310. -- Runtime Function: short fract __satfractdfqq (double A)
  2311. -- Runtime Function: fract __satfractdfhq (double A)
  2312. -- Runtime Function: long fract __satfractdfsq (double A)
  2313. -- Runtime Function: long long fract __satfractdfdq (double A)
  2314. -- Runtime Function: short accum __satfractdfha (double A)
  2315. -- Runtime Function: accum __satfractdfsa (double A)
  2316. -- Runtime Function: long accum __satfractdfda (double A)
  2317. -- Runtime Function: long long accum __satfractdfta (double A)
  2318. -- Runtime Function: unsigned short fract __satfractdfuqq (double A)
  2319. -- Runtime Function: unsigned fract __satfractdfuhq (double A)
  2320. -- Runtime Function: unsigned long fract __satfractdfusq (double A)
  2321. -- Runtime Function: unsigned long long fract __satfractdfudq (double
  2322. A)
  2323. -- Runtime Function: unsigned short accum __satfractdfuha (double A)
  2324. -- Runtime Function: unsigned accum __satfractdfusa (double A)
  2325. -- Runtime Function: unsigned long accum __satfractdfuda (double A)
  2326. -- Runtime Function: unsigned long long accum __satfractdfuta (double
  2327. A)
  2328. The functions convert from fractional and signed non-fractionals to
  2329. fractionals, with saturation.
  2330. -- Runtime Function: unsigned char __fractunsqqqi (short fract A)
  2331. -- Runtime Function: unsigned short __fractunsqqhi (short fract A)
  2332. -- Runtime Function: unsigned int __fractunsqqsi (short fract A)
  2333. -- Runtime Function: unsigned long __fractunsqqdi (short fract A)
  2334. -- Runtime Function: unsigned long long __fractunsqqti (short fract A)
  2335. -- Runtime Function: unsigned char __fractunshqqi (fract A)
  2336. -- Runtime Function: unsigned short __fractunshqhi (fract A)
  2337. -- Runtime Function: unsigned int __fractunshqsi (fract A)
  2338. -- Runtime Function: unsigned long __fractunshqdi (fract A)
  2339. -- Runtime Function: unsigned long long __fractunshqti (fract A)
  2340. -- Runtime Function: unsigned char __fractunssqqi (long fract A)
  2341. -- Runtime Function: unsigned short __fractunssqhi (long fract A)
  2342. -- Runtime Function: unsigned int __fractunssqsi (long fract A)
  2343. -- Runtime Function: unsigned long __fractunssqdi (long fract A)
  2344. -- Runtime Function: unsigned long long __fractunssqti (long fract A)
  2345. -- Runtime Function: unsigned char __fractunsdqqi (long long fract A)
  2346. -- Runtime Function: unsigned short __fractunsdqhi (long long fract A)
  2347. -- Runtime Function: unsigned int __fractunsdqsi (long long fract A)
  2348. -- Runtime Function: unsigned long __fractunsdqdi (long long fract A)
  2349. -- Runtime Function: unsigned long long __fractunsdqti (long long fract
  2350. A)
  2351. -- Runtime Function: unsigned char __fractunshaqi (short accum A)
  2352. -- Runtime Function: unsigned short __fractunshahi (short accum A)
  2353. -- Runtime Function: unsigned int __fractunshasi (short accum A)
  2354. -- Runtime Function: unsigned long __fractunshadi (short accum A)
  2355. -- Runtime Function: unsigned long long __fractunshati (short accum A)
  2356. -- Runtime Function: unsigned char __fractunssaqi (accum A)
  2357. -- Runtime Function: unsigned short __fractunssahi (accum A)
  2358. -- Runtime Function: unsigned int __fractunssasi (accum A)
  2359. -- Runtime Function: unsigned long __fractunssadi (accum A)
  2360. -- Runtime Function: unsigned long long __fractunssati (accum A)
  2361. -- Runtime Function: unsigned char __fractunsdaqi (long accum A)
  2362. -- Runtime Function: unsigned short __fractunsdahi (long accum A)
  2363. -- Runtime Function: unsigned int __fractunsdasi (long accum A)
  2364. -- Runtime Function: unsigned long __fractunsdadi (long accum A)
  2365. -- Runtime Function: unsigned long long __fractunsdati (long accum A)
  2366. -- Runtime Function: unsigned char __fractunstaqi (long long accum A)
  2367. -- Runtime Function: unsigned short __fractunstahi (long long accum A)
  2368. -- Runtime Function: unsigned int __fractunstasi (long long accum A)
  2369. -- Runtime Function: unsigned long __fractunstadi (long long accum A)
  2370. -- Runtime Function: unsigned long long __fractunstati (long long accum
  2371. A)
  2372. -- Runtime Function: unsigned char __fractunsuqqqi (unsigned short
  2373. fract A)
  2374. -- Runtime Function: unsigned short __fractunsuqqhi (unsigned short
  2375. fract A)
  2376. -- Runtime Function: unsigned int __fractunsuqqsi (unsigned short fract
  2377. A)
  2378. -- Runtime Function: unsigned long __fractunsuqqdi (unsigned short
  2379. fract A)
  2380. -- Runtime Function: unsigned long long __fractunsuqqti (unsigned short
  2381. fract A)
  2382. -- Runtime Function: unsigned char __fractunsuhqqi (unsigned fract A)
  2383. -- Runtime Function: unsigned short __fractunsuhqhi (unsigned fract A)
  2384. -- Runtime Function: unsigned int __fractunsuhqsi (unsigned fract A)
  2385. -- Runtime Function: unsigned long __fractunsuhqdi (unsigned fract A)
  2386. -- Runtime Function: unsigned long long __fractunsuhqti (unsigned fract
  2387. A)
  2388. -- Runtime Function: unsigned char __fractunsusqqi (unsigned long fract
  2389. A)
  2390. -- Runtime Function: unsigned short __fractunsusqhi (unsigned long
  2391. fract A)
  2392. -- Runtime Function: unsigned int __fractunsusqsi (unsigned long fract
  2393. A)
  2394. -- Runtime Function: unsigned long __fractunsusqdi (unsigned long fract
  2395. A)
  2396. -- Runtime Function: unsigned long long __fractunsusqti (unsigned long
  2397. fract A)
  2398. -- Runtime Function: unsigned char __fractunsudqqi (unsigned long long
  2399. fract A)
  2400. -- Runtime Function: unsigned short __fractunsudqhi (unsigned long long
  2401. fract A)
  2402. -- Runtime Function: unsigned int __fractunsudqsi (unsigned long long
  2403. fract A)
  2404. -- Runtime Function: unsigned long __fractunsudqdi (unsigned long long
  2405. fract A)
  2406. -- Runtime Function: unsigned long long __fractunsudqti (unsigned long
  2407. long fract A)
  2408. -- Runtime Function: unsigned char __fractunsuhaqi (unsigned short
  2409. accum A)
  2410. -- Runtime Function: unsigned short __fractunsuhahi (unsigned short
  2411. accum A)
  2412. -- Runtime Function: unsigned int __fractunsuhasi (unsigned short accum
  2413. A)
  2414. -- Runtime Function: unsigned long __fractunsuhadi (unsigned short
  2415. accum A)
  2416. -- Runtime Function: unsigned long long __fractunsuhati (unsigned short
  2417. accum A)
  2418. -- Runtime Function: unsigned char __fractunsusaqi (unsigned accum A)
  2419. -- Runtime Function: unsigned short __fractunsusahi (unsigned accum A)
  2420. -- Runtime Function: unsigned int __fractunsusasi (unsigned accum A)
  2421. -- Runtime Function: unsigned long __fractunsusadi (unsigned accum A)
  2422. -- Runtime Function: unsigned long long __fractunsusati (unsigned accum
  2423. A)
  2424. -- Runtime Function: unsigned char __fractunsudaqi (unsigned long accum
  2425. A)
  2426. -- Runtime Function: unsigned short __fractunsudahi (unsigned long
  2427. accum A)
  2428. -- Runtime Function: unsigned int __fractunsudasi (unsigned long accum
  2429. A)
  2430. -- Runtime Function: unsigned long __fractunsudadi (unsigned long accum
  2431. A)
  2432. -- Runtime Function: unsigned long long __fractunsudati (unsigned long
  2433. accum A)
  2434. -- Runtime Function: unsigned char __fractunsutaqi (unsigned long long
  2435. accum A)
  2436. -- Runtime Function: unsigned short __fractunsutahi (unsigned long long
  2437. accum A)
  2438. -- Runtime Function: unsigned int __fractunsutasi (unsigned long long
  2439. accum A)
  2440. -- Runtime Function: unsigned long __fractunsutadi (unsigned long long
  2441. accum A)
  2442. -- Runtime Function: unsigned long long __fractunsutati (unsigned long
  2443. long accum A)
  2444. -- Runtime Function: short fract __fractunsqiqq (unsigned char A)
  2445. -- Runtime Function: fract __fractunsqihq (unsigned char A)
  2446. -- Runtime Function: long fract __fractunsqisq (unsigned char A)
  2447. -- Runtime Function: long long fract __fractunsqidq (unsigned char A)
  2448. -- Runtime Function: short accum __fractunsqiha (unsigned char A)
  2449. -- Runtime Function: accum __fractunsqisa (unsigned char A)
  2450. -- Runtime Function: long accum __fractunsqida (unsigned char A)
  2451. -- Runtime Function: long long accum __fractunsqita (unsigned char A)
  2452. -- Runtime Function: unsigned short fract __fractunsqiuqq (unsigned
  2453. char A)
  2454. -- Runtime Function: unsigned fract __fractunsqiuhq (unsigned char A)
  2455. -- Runtime Function: unsigned long fract __fractunsqiusq (unsigned char
  2456. A)
  2457. -- Runtime Function: unsigned long long fract __fractunsqiudq (unsigned
  2458. char A)
  2459. -- Runtime Function: unsigned short accum __fractunsqiuha (unsigned
  2460. char A)
  2461. -- Runtime Function: unsigned accum __fractunsqiusa (unsigned char A)
  2462. -- Runtime Function: unsigned long accum __fractunsqiuda (unsigned char
  2463. A)
  2464. -- Runtime Function: unsigned long long accum __fractunsqiuta (unsigned
  2465. char A)
  2466. -- Runtime Function: short fract __fractunshiqq (unsigned short A)
  2467. -- Runtime Function: fract __fractunshihq (unsigned short A)
  2468. -- Runtime Function: long fract __fractunshisq (unsigned short A)
  2469. -- Runtime Function: long long fract __fractunshidq (unsigned short A)
  2470. -- Runtime Function: short accum __fractunshiha (unsigned short A)
  2471. -- Runtime Function: accum __fractunshisa (unsigned short A)
  2472. -- Runtime Function: long accum __fractunshida (unsigned short A)
  2473. -- Runtime Function: long long accum __fractunshita (unsigned short A)
  2474. -- Runtime Function: unsigned short fract __fractunshiuqq (unsigned
  2475. short A)
  2476. -- Runtime Function: unsigned fract __fractunshiuhq (unsigned short A)
  2477. -- Runtime Function: unsigned long fract __fractunshiusq (unsigned
  2478. short A)
  2479. -- Runtime Function: unsigned long long fract __fractunshiudq (unsigned
  2480. short A)
  2481. -- Runtime Function: unsigned short accum __fractunshiuha (unsigned
  2482. short A)
  2483. -- Runtime Function: unsigned accum __fractunshiusa (unsigned short A)
  2484. -- Runtime Function: unsigned long accum __fractunshiuda (unsigned
  2485. short A)
  2486. -- Runtime Function: unsigned long long accum __fractunshiuta (unsigned
  2487. short A)
  2488. -- Runtime Function: short fract __fractunssiqq (unsigned int A)
  2489. -- Runtime Function: fract __fractunssihq (unsigned int A)
  2490. -- Runtime Function: long fract __fractunssisq (unsigned int A)
  2491. -- Runtime Function: long long fract __fractunssidq (unsigned int A)
  2492. -- Runtime Function: short accum __fractunssiha (unsigned int A)
  2493. -- Runtime Function: accum __fractunssisa (unsigned int A)
  2494. -- Runtime Function: long accum __fractunssida (unsigned int A)
  2495. -- Runtime Function: long long accum __fractunssita (unsigned int A)
  2496. -- Runtime Function: unsigned short fract __fractunssiuqq (unsigned int
  2497. A)
  2498. -- Runtime Function: unsigned fract __fractunssiuhq (unsigned int A)
  2499. -- Runtime Function: unsigned long fract __fractunssiusq (unsigned int
  2500. A)
  2501. -- Runtime Function: unsigned long long fract __fractunssiudq (unsigned
  2502. int A)
  2503. -- Runtime Function: unsigned short accum __fractunssiuha (unsigned int
  2504. A)
  2505. -- Runtime Function: unsigned accum __fractunssiusa (unsigned int A)
  2506. -- Runtime Function: unsigned long accum __fractunssiuda (unsigned int
  2507. A)
  2508. -- Runtime Function: unsigned long long accum __fractunssiuta (unsigned
  2509. int A)
  2510. -- Runtime Function: short fract __fractunsdiqq (unsigned long A)
  2511. -- Runtime Function: fract __fractunsdihq (unsigned long A)
  2512. -- Runtime Function: long fract __fractunsdisq (unsigned long A)
  2513. -- Runtime Function: long long fract __fractunsdidq (unsigned long A)
  2514. -- Runtime Function: short accum __fractunsdiha (unsigned long A)
  2515. -- Runtime Function: accum __fractunsdisa (unsigned long A)
  2516. -- Runtime Function: long accum __fractunsdida (unsigned long A)
  2517. -- Runtime Function: long long accum __fractunsdita (unsigned long A)
  2518. -- Runtime Function: unsigned short fract __fractunsdiuqq (unsigned
  2519. long A)
  2520. -- Runtime Function: unsigned fract __fractunsdiuhq (unsigned long A)
  2521. -- Runtime Function: unsigned long fract __fractunsdiusq (unsigned long
  2522. A)
  2523. -- Runtime Function: unsigned long long fract __fractunsdiudq (unsigned
  2524. long A)
  2525. -- Runtime Function: unsigned short accum __fractunsdiuha (unsigned
  2526. long A)
  2527. -- Runtime Function: unsigned accum __fractunsdiusa (unsigned long A)
  2528. -- Runtime Function: unsigned long accum __fractunsdiuda (unsigned long
  2529. A)
  2530. -- Runtime Function: unsigned long long accum __fractunsdiuta (unsigned
  2531. long A)
  2532. -- Runtime Function: short fract __fractunstiqq (unsigned long long A)
  2533. -- Runtime Function: fract __fractunstihq (unsigned long long A)
  2534. -- Runtime Function: long fract __fractunstisq (unsigned long long A)
  2535. -- Runtime Function: long long fract __fractunstidq (unsigned long long
  2536. A)
  2537. -- Runtime Function: short accum __fractunstiha (unsigned long long A)
  2538. -- Runtime Function: accum __fractunstisa (unsigned long long A)
  2539. -- Runtime Function: long accum __fractunstida (unsigned long long A)
  2540. -- Runtime Function: long long accum __fractunstita (unsigned long long
  2541. A)
  2542. -- Runtime Function: unsigned short fract __fractunstiuqq (unsigned
  2543. long long A)
  2544. -- Runtime Function: unsigned fract __fractunstiuhq (unsigned long long
  2545. A)
  2546. -- Runtime Function: unsigned long fract __fractunstiusq (unsigned long
  2547. long A)
  2548. -- Runtime Function: unsigned long long fract __fractunstiudq (unsigned
  2549. long long A)
  2550. -- Runtime Function: unsigned short accum __fractunstiuha (unsigned
  2551. long long A)
  2552. -- Runtime Function: unsigned accum __fractunstiusa (unsigned long long
  2553. A)
  2554. -- Runtime Function: unsigned long accum __fractunstiuda (unsigned long
  2555. long A)
  2556. -- Runtime Function: unsigned long long accum __fractunstiuta (unsigned
  2557. long long A)
  2558. These functions convert from fractionals to unsigned
  2559. non-fractionals; and from unsigned non-fractionals to fractionals,
  2560. without saturation.
  2561. -- Runtime Function: short fract __satfractunsqiqq (unsigned char A)
  2562. -- Runtime Function: fract __satfractunsqihq (unsigned char A)
  2563. -- Runtime Function: long fract __satfractunsqisq (unsigned char A)
  2564. -- Runtime Function: long long fract __satfractunsqidq (unsigned char
  2565. A)
  2566. -- Runtime Function: short accum __satfractunsqiha (unsigned char A)
  2567. -- Runtime Function: accum __satfractunsqisa (unsigned char A)
  2568. -- Runtime Function: long accum __satfractunsqida (unsigned char A)
  2569. -- Runtime Function: long long accum __satfractunsqita (unsigned char
  2570. A)
  2571. -- Runtime Function: unsigned short fract __satfractunsqiuqq (unsigned
  2572. char A)
  2573. -- Runtime Function: unsigned fract __satfractunsqiuhq (unsigned char
  2574. A)
  2575. -- Runtime Function: unsigned long fract __satfractunsqiusq (unsigned
  2576. char A)
  2577. -- Runtime Function: unsigned long long fract __satfractunsqiudq
  2578. (unsigned char A)
  2579. -- Runtime Function: unsigned short accum __satfractunsqiuha (unsigned
  2580. char A)
  2581. -- Runtime Function: unsigned accum __satfractunsqiusa (unsigned char
  2582. A)
  2583. -- Runtime Function: unsigned long accum __satfractunsqiuda (unsigned
  2584. char A)
  2585. -- Runtime Function: unsigned long long accum __satfractunsqiuta
  2586. (unsigned char A)
  2587. -- Runtime Function: short fract __satfractunshiqq (unsigned short A)
  2588. -- Runtime Function: fract __satfractunshihq (unsigned short A)
  2589. -- Runtime Function: long fract __satfractunshisq (unsigned short A)
  2590. -- Runtime Function: long long fract __satfractunshidq (unsigned short
  2591. A)
  2592. -- Runtime Function: short accum __satfractunshiha (unsigned short A)
  2593. -- Runtime Function: accum __satfractunshisa (unsigned short A)
  2594. -- Runtime Function: long accum __satfractunshida (unsigned short A)
  2595. -- Runtime Function: long long accum __satfractunshita (unsigned short
  2596. A)
  2597. -- Runtime Function: unsigned short fract __satfractunshiuqq (unsigned
  2598. short A)
  2599. -- Runtime Function: unsigned fract __satfractunshiuhq (unsigned short
  2600. A)
  2601. -- Runtime Function: unsigned long fract __satfractunshiusq (unsigned
  2602. short A)
  2603. -- Runtime Function: unsigned long long fract __satfractunshiudq
  2604. (unsigned short A)
  2605. -- Runtime Function: unsigned short accum __satfractunshiuha (unsigned
  2606. short A)
  2607. -- Runtime Function: unsigned accum __satfractunshiusa (unsigned short
  2608. A)
  2609. -- Runtime Function: unsigned long accum __satfractunshiuda (unsigned
  2610. short A)
  2611. -- Runtime Function: unsigned long long accum __satfractunshiuta
  2612. (unsigned short A)
  2613. -- Runtime Function: short fract __satfractunssiqq (unsigned int A)
  2614. -- Runtime Function: fract __satfractunssihq (unsigned int A)
  2615. -- Runtime Function: long fract __satfractunssisq (unsigned int A)
  2616. -- Runtime Function: long long fract __satfractunssidq (unsigned int A)
  2617. -- Runtime Function: short accum __satfractunssiha (unsigned int A)
  2618. -- Runtime Function: accum __satfractunssisa (unsigned int A)
  2619. -- Runtime Function: long accum __satfractunssida (unsigned int A)
  2620. -- Runtime Function: long long accum __satfractunssita (unsigned int A)
  2621. -- Runtime Function: unsigned short fract __satfractunssiuqq (unsigned
  2622. int A)
  2623. -- Runtime Function: unsigned fract __satfractunssiuhq (unsigned int A)
  2624. -- Runtime Function: unsigned long fract __satfractunssiusq (unsigned
  2625. int A)
  2626. -- Runtime Function: unsigned long long fract __satfractunssiudq
  2627. (unsigned int A)
  2628. -- Runtime Function: unsigned short accum __satfractunssiuha (unsigned
  2629. int A)
  2630. -- Runtime Function: unsigned accum __satfractunssiusa (unsigned int A)
  2631. -- Runtime Function: unsigned long accum __satfractunssiuda (unsigned
  2632. int A)
  2633. -- Runtime Function: unsigned long long accum __satfractunssiuta
  2634. (unsigned int A)
  2635. -- Runtime Function: short fract __satfractunsdiqq (unsigned long A)
  2636. -- Runtime Function: fract __satfractunsdihq (unsigned long A)
  2637. -- Runtime Function: long fract __satfractunsdisq (unsigned long A)
  2638. -- Runtime Function: long long fract __satfractunsdidq (unsigned long
  2639. A)
  2640. -- Runtime Function: short accum __satfractunsdiha (unsigned long A)
  2641. -- Runtime Function: accum __satfractunsdisa (unsigned long A)
  2642. -- Runtime Function: long accum __satfractunsdida (unsigned long A)
  2643. -- Runtime Function: long long accum __satfractunsdita (unsigned long
  2644. A)
  2645. -- Runtime Function: unsigned short fract __satfractunsdiuqq (unsigned
  2646. long A)
  2647. -- Runtime Function: unsigned fract __satfractunsdiuhq (unsigned long
  2648. A)
  2649. -- Runtime Function: unsigned long fract __satfractunsdiusq (unsigned
  2650. long A)
  2651. -- Runtime Function: unsigned long long fract __satfractunsdiudq
  2652. (unsigned long A)
  2653. -- Runtime Function: unsigned short accum __satfractunsdiuha (unsigned
  2654. long A)
  2655. -- Runtime Function: unsigned accum __satfractunsdiusa (unsigned long
  2656. A)
  2657. -- Runtime Function: unsigned long accum __satfractunsdiuda (unsigned
  2658. long A)
  2659. -- Runtime Function: unsigned long long accum __satfractunsdiuta
  2660. (unsigned long A)
  2661. -- Runtime Function: short fract __satfractunstiqq (unsigned long long
  2662. A)
  2663. -- Runtime Function: fract __satfractunstihq (unsigned long long A)
  2664. -- Runtime Function: long fract __satfractunstisq (unsigned long long
  2665. A)
  2666. -- Runtime Function: long long fract __satfractunstidq (unsigned long
  2667. long A)
  2668. -- Runtime Function: short accum __satfractunstiha (unsigned long long
  2669. A)
  2670. -- Runtime Function: accum __satfractunstisa (unsigned long long A)
  2671. -- Runtime Function: long accum __satfractunstida (unsigned long long
  2672. A)
  2673. -- Runtime Function: long long accum __satfractunstita (unsigned long
  2674. long A)
  2675. -- Runtime Function: unsigned short fract __satfractunstiuqq (unsigned
  2676. long long A)
  2677. -- Runtime Function: unsigned fract __satfractunstiuhq (unsigned long
  2678. long A)
  2679. -- Runtime Function: unsigned long fract __satfractunstiusq (unsigned
  2680. long long A)
  2681. -- Runtime Function: unsigned long long fract __satfractunstiudq
  2682. (unsigned long long A)
  2683. -- Runtime Function: unsigned short accum __satfractunstiuha (unsigned
  2684. long long A)
  2685. -- Runtime Function: unsigned accum __satfractunstiusa (unsigned long
  2686. long A)
  2687. -- Runtime Function: unsigned long accum __satfractunstiuda (unsigned
  2688. long long A)
  2689. -- Runtime Function: unsigned long long accum __satfractunstiuta
  2690. (unsigned long long A)
  2691. These functions convert from unsigned non-fractionals to
  2692. fractionals, with saturation.
  2693. 
  2694. File: gccint.info, Node: Exception handling routines, Next: Miscellaneous routines, Prev: Fixed-point fractional library routines, Up: Libgcc
  2695. 4.5 Language-independent routines for exception handling
  2696. ========================================================
  2697. document me!
  2698. _Unwind_DeleteException
  2699. _Unwind_Find_FDE
  2700. _Unwind_ForcedUnwind
  2701. _Unwind_GetGR
  2702. _Unwind_GetIP
  2703. _Unwind_GetLanguageSpecificData
  2704. _Unwind_GetRegionStart
  2705. _Unwind_GetTextRelBase
  2706. _Unwind_GetDataRelBase
  2707. _Unwind_RaiseException
  2708. _Unwind_Resume
  2709. _Unwind_SetGR
  2710. _Unwind_SetIP
  2711. _Unwind_FindEnclosingFunction
  2712. _Unwind_SjLj_Register
  2713. _Unwind_SjLj_Unregister
  2714. _Unwind_SjLj_RaiseException
  2715. _Unwind_SjLj_ForcedUnwind
  2716. _Unwind_SjLj_Resume
  2717. __deregister_frame
  2718. __deregister_frame_info
  2719. __deregister_frame_info_bases
  2720. __register_frame
  2721. __register_frame_info
  2722. __register_frame_info_bases
  2723. __register_frame_info_table
  2724. __register_frame_info_table_bases
  2725. __register_frame_table
  2726. 
  2727. File: gccint.info, Node: Miscellaneous routines, Prev: Exception handling routines, Up: Libgcc
  2728. 4.6 Miscellaneous runtime library routines
  2729. ==========================================
  2730. 4.6.1 Cache control functions
  2731. -----------------------------
  2732. -- Runtime Function: void __clear_cache (char *BEG, char *END)
  2733. This function clears the instruction cache between BEG and END.
  2734. 4.6.2 Split stack functions and variables
  2735. -----------------------------------------
  2736. -- Runtime Function: void * __splitstack_find (void *SEGMENT_ARG, void
  2737. *SP, size_t LEN, void **NEXT_SEGMENT, void **NEXT_SP, void
  2738. **INITIAL_SP)
  2739. When using '-fsplit-stack', this call may be used to iterate over
  2740. the stack segments. It may be called like this:
  2741. void *next_segment = NULL;
  2742. void *next_sp = NULL;
  2743. void *initial_sp = NULL;
  2744. void *stack;
  2745. size_t stack_size;
  2746. while ((stack = __splitstack_find (next_segment, next_sp,
  2747. &stack_size, &next_segment,
  2748. &next_sp, &initial_sp))
  2749. != NULL)
  2750. {
  2751. /* Stack segment starts at stack and is
  2752. stack_size bytes long. */
  2753. }
  2754. There is no way to iterate over the stack segments of a different
  2755. thread. However, what is permitted is for one thread to call this
  2756. with the SEGMENT_ARG and SP arguments NULL, to pass NEXT_SEGMENT,
  2757. NEXT_SP, and INITIAL_SP to a different thread, and then to suspend
  2758. one way or another. A different thread may run the subsequent
  2759. '__splitstack_find' iterations. Of course, this will only work if
  2760. the first thread is suspended while the second thread is calling
  2761. '__splitstack_find'. If not, the second thread could be looking at
  2762. the stack while it is changing, and anything could happen.
  2763. -- Variable: __morestack_segments
  2764. -- Variable: __morestack_current_segment
  2765. -- Variable: __morestack_initial_sp
  2766. Internal variables used by the '-fsplit-stack' implementation.
  2767. 
  2768. File: gccint.info, Node: Languages, Next: Source Tree, Prev: Libgcc, Up: Top
  2769. 5 Language Front Ends in GCC
  2770. ****************************
  2771. The interface to front ends for languages in GCC, and in particular the
  2772. 'tree' structure (*note GENERIC::), was initially designed for C, and
  2773. many aspects of it are still somewhat biased towards C and C-like
  2774. languages. It is, however, reasonably well suited to other procedural
  2775. languages, and front ends for many such languages have been written for
  2776. GCC.
  2777. Writing a compiler as a front end for GCC, rather than compiling
  2778. directly to assembler or generating C code which is then compiled by
  2779. GCC, has several advantages:
  2780. * GCC front ends benefit from the support for many different target
  2781. machines already present in GCC.
  2782. * GCC front ends benefit from all the optimizations in GCC. Some of
  2783. these, such as alias analysis, may work better when GCC is
  2784. compiling directly from source code than when it is compiling from
  2785. generated C code.
  2786. * Better debugging information is generated when compiling directly
  2787. from source code than when going via intermediate generated C code.
  2788. Because of the advantages of writing a compiler as a GCC front end, GCC
  2789. front ends have also been created for languages very different from
  2790. those for which GCC was designed, such as the declarative
  2791. logic/functional language Mercury. For these reasons, it may also be
  2792. useful to implement compilers created for specialized purposes (for
  2793. example, as part of a research project) as GCC front ends.
  2794. 
  2795. File: gccint.info, Node: Source Tree, Next: Testsuites, Prev: Languages, Up: Top
  2796. 6 Source Tree Structure and Build System
  2797. ****************************************
  2798. This chapter describes the structure of the GCC source tree, and how GCC
  2799. is built. The user documentation for building and installing GCC is in
  2800. a separate manual (<http://gcc.gnu.org/install/>), with which it is
  2801. presumed that you are familiar.
  2802. * Menu:
  2803. * Configure Terms:: Configuration terminology and history.
  2804. * Top Level:: The top level source directory.
  2805. * gcc Directory:: The 'gcc' subdirectory.
  2806. 
  2807. File: gccint.info, Node: Configure Terms, Next: Top Level, Up: Source Tree
  2808. 6.1 Configure Terms and History
  2809. ===============================
  2810. The configure and build process has a long and colorful history, and can
  2811. be confusing to anyone who doesn't know why things are the way they are.
  2812. While there are other documents which describe the configuration process
  2813. in detail, here are a few things that everyone working on GCC should
  2814. know.
  2815. There are three system names that the build knows about: the machine
  2816. you are building on ("build"), the machine that you are building for
  2817. ("host"), and the machine that GCC will produce code for ("target").
  2818. When you configure GCC, you specify these with '--build=', '--host=',
  2819. and '--target='.
  2820. Specifying the host without specifying the build should be avoided, as
  2821. 'configure' may (and once did) assume that the host you specify is also
  2822. the build, which may not be true.
  2823. If build, host, and target are all the same, this is called a "native".
  2824. If build and host are the same but target is different, this is called a
  2825. "cross". If build, host, and target are all different this is called a
  2826. "canadian" (for obscure reasons dealing with Canada's political party
  2827. and the background of the person working on the build at that time). If
  2828. host and target are the same, but build is different, you are using a
  2829. cross-compiler to build a native for a different system. Some people
  2830. call this a "host-x-host", "crossed native", or "cross-built native".
  2831. If build and target are the same, but host is different, you are using a
  2832. cross compiler to build a cross compiler that produces code for the
  2833. machine you're building on. This is rare, so there is no common way of
  2834. describing it. There is a proposal to call this a "crossback".
  2835. If build and host are the same, the GCC you are building will also be
  2836. used to build the target libraries (like 'libstdc++'). If build and
  2837. host are different, you must have already built and installed a cross
  2838. compiler that will be used to build the target libraries (if you
  2839. configured with '--target=foo-bar', this compiler will be called
  2840. 'foo-bar-gcc').
  2841. In the case of target libraries, the machine you're building for is the
  2842. machine you specified with '--target'. So, build is the machine you're
  2843. building on (no change there), host is the machine you're building for
  2844. (the target libraries are built for the target, so host is the target
  2845. you specified), and target doesn't apply (because you're not building a
  2846. compiler, you're building libraries). The configure/make process will
  2847. adjust these variables as needed. It also sets '$with_cross_host' to
  2848. the original '--host' value in case you need it.
  2849. The 'libiberty' support library is built up to three times: once for
  2850. the host, once for the target (even if they are the same), and once for
  2851. the build if build and host are different. This allows it to be used by
  2852. all programs which are generated in the course of the build process.
  2853. 
  2854. File: gccint.info, Node: Top Level, Next: gcc Directory, Prev: Configure Terms, Up: Source Tree
  2855. 6.2 Top Level Source Directory
  2856. ==============================
  2857. The top level source directory in a GCC distribution contains several
  2858. files and directories that are shared with other software distributions
  2859. such as that of GNU Binutils. It also contains several subdirectories
  2860. that contain parts of GCC and its runtime libraries:
  2861. 'boehm-gc'
  2862. The Boehm conservative garbage collector, optionally used as part
  2863. of the ObjC runtime library when configured with
  2864. '--enable-objc-gc'.
  2865. 'config'
  2866. Autoconf macros and Makefile fragments used throughout the tree.
  2867. 'contrib'
  2868. Contributed scripts that may be found useful in conjunction with
  2869. GCC. One of these, 'contrib/texi2pod.pl', is used to generate man
  2870. pages from Texinfo manuals as part of the GCC build process.
  2871. 'fixincludes'
  2872. The support for fixing system headers to work with GCC. See
  2873. 'fixincludes/README' for more information. The headers fixed by
  2874. this mechanism are installed in 'LIBSUBDIR/include-fixed'. Along
  2875. with those headers, 'README-fixinc' is also installed, as
  2876. 'LIBSUBDIR/include-fixed/README'.
  2877. 'gcc'
  2878. The main sources of GCC itself (except for runtime libraries),
  2879. including optimizers, support for different target architectures,
  2880. language front ends, and testsuites. *Note The 'gcc' Subdirectory:
  2881. gcc Directory, for details.
  2882. 'gnattools'
  2883. Support tools for GNAT.
  2884. 'include'
  2885. Headers for the 'libiberty' library.
  2886. 'intl'
  2887. GNU 'libintl', from GNU 'gettext', for systems which do not include
  2888. it in 'libc'.
  2889. 'libada'
  2890. The Ada runtime library.
  2891. 'libatomic'
  2892. The runtime support library for atomic operations (e.g. for
  2893. '__sync' and '__atomic').
  2894. 'libcpp'
  2895. The C preprocessor library.
  2896. 'libdecnumber'
  2897. The Decimal Float support library.
  2898. 'libffi'
  2899. The 'libffi' library, used as part of the Go runtime library.
  2900. 'libgcc'
  2901. The GCC runtime library.
  2902. 'libgfortran'
  2903. The Fortran runtime library.
  2904. 'libgo'
  2905. The Go runtime library. The bulk of this library is mirrored from
  2906. the master Go repository (https://github.com/golang/go).
  2907. 'libgomp'
  2908. The GNU Offloading and Multi Processing Runtime Library.
  2909. 'libiberty'
  2910. The 'libiberty' library, used for portability and for some
  2911. generally useful data structures and algorithms. *Note
  2912. Introduction: (libiberty)Top, for more information about this
  2913. library.
  2914. 'libitm'
  2915. The runtime support library for transactional memory.
  2916. 'libobjc'
  2917. The Objective-C and Objective-C++ runtime library.
  2918. 'libquadmath'
  2919. The runtime support library for quad-precision math operations.
  2920. 'libphobos'
  2921. The D standard and runtime library. The bulk of this library is
  2922. mirrored from the master D repositories (https://github.com/dlang).
  2923. 'libssp'
  2924. The Stack protector runtime library.
  2925. 'libstdc++-v3'
  2926. The C++ runtime library.
  2927. 'lto-plugin'
  2928. Plugin used by the linker if link-time optimizations are enabled.
  2929. 'maintainer-scripts'
  2930. Scripts used by the 'gccadmin' account on 'gcc.gnu.org'.
  2931. 'zlib'
  2932. The 'zlib' compression library, used for compressing and
  2933. uncompressing GCC's intermediate language in LTO object files.
  2934. The build system in the top level directory, including how recursion
  2935. into subdirectories works and how building runtime libraries for
  2936. multilibs is handled, is documented in a separate manual, included with
  2937. GNU Binutils. *Note GNU configure and build system: (configure)Top, for
  2938. details.
  2939. 
  2940. File: gccint.info, Node: gcc Directory, Prev: Top Level, Up: Source Tree
  2941. 6.3 The 'gcc' Subdirectory
  2942. ==========================
  2943. The 'gcc' directory contains many files that are part of the C sources
  2944. of GCC, other files used as part of the configuration and build process,
  2945. and subdirectories including documentation and a testsuite. The files
  2946. that are sources of GCC are documented in a separate chapter. *Note
  2947. Passes and Files of the Compiler: Passes.
  2948. * Menu:
  2949. * Subdirectories:: Subdirectories of 'gcc'.
  2950. * Configuration:: The configuration process, and the files it uses.
  2951. * Build:: The build system in the 'gcc' directory.
  2952. * Makefile:: Targets in 'gcc/Makefile'.
  2953. * Library Files:: Library source files and headers under 'gcc/'.
  2954. * Headers:: Headers installed by GCC.
  2955. * Documentation:: Building documentation in GCC.
  2956. * Front End:: Anatomy of a language front end.
  2957. * Back End:: Anatomy of a target back end.
  2958. 
  2959. File: gccint.info, Node: Subdirectories, Next: Configuration, Up: gcc Directory
  2960. 6.3.1 Subdirectories of 'gcc'
  2961. -----------------------------
  2962. The 'gcc' directory contains the following subdirectories:
  2963. 'LANGUAGE'
  2964. Subdirectories for various languages. Directories containing a
  2965. file 'config-lang.in' are language subdirectories. The contents of
  2966. the subdirectories 'c' (for C), 'cp' (for C++), 'objc' (for
  2967. Objective-C), 'objcp' (for Objective-C++), and 'lto' (for LTO) are
  2968. documented in this manual (*note Passes and Files of the Compiler:
  2969. Passes.); those for other languages are not. *Note Anatomy of a
  2970. Language Front End: Front End, for details of the files in these
  2971. directories.
  2972. 'common'
  2973. Source files shared between the compiler drivers (such as 'gcc')
  2974. and the compilers proper (such as 'cc1'). If an architecture
  2975. defines target hooks shared between those places, it also has a
  2976. subdirectory in 'common/config'. *Note Target Structure::.
  2977. 'config'
  2978. Configuration files for supported architectures and operating
  2979. systems. *Note Anatomy of a Target Back End: Back End, for details
  2980. of the files in this directory.
  2981. 'doc'
  2982. Texinfo documentation for GCC, together with automatically
  2983. generated man pages and support for converting the installation
  2984. manual to HTML. *Note Documentation::.
  2985. 'ginclude'
  2986. System headers installed by GCC, mainly those required by the C
  2987. standard of freestanding implementations. *Note Headers Installed
  2988. by GCC: Headers, for details of when these and other headers are
  2989. installed.
  2990. 'po'
  2991. Message catalogs with translations of messages produced by GCC into
  2992. various languages, 'LANGUAGE.po'. This directory also contains
  2993. 'gcc.pot', the template for these message catalogues, 'exgettext',
  2994. a wrapper around 'gettext' to extract the messages from the GCC
  2995. sources and create 'gcc.pot', which is run by 'make gcc.pot', and
  2996. 'EXCLUDES', a list of files from which messages should not be
  2997. extracted.
  2998. 'testsuite'
  2999. The GCC testsuites (except for those for runtime libraries). *Note
  3000. Testsuites::.
  3001. 
  3002. File: gccint.info, Node: Configuration, Next: Build, Prev: Subdirectories, Up: gcc Directory
  3003. 6.3.2 Configuration in the 'gcc' Directory
  3004. ------------------------------------------
  3005. The 'gcc' directory is configured with an Autoconf-generated script
  3006. 'configure'. The 'configure' script is generated from 'configure.ac'
  3007. and 'aclocal.m4'. From the files 'configure.ac' and 'acconfig.h',
  3008. Autoheader generates the file 'config.in'. The file 'cstamp-h.in' is
  3009. used as a timestamp.
  3010. * Menu:
  3011. * Config Fragments:: Scripts used by 'configure'.
  3012. * System Config:: The 'config.build', 'config.host', and
  3013. 'config.gcc' files.
  3014. * Configuration Files:: Files created by running 'configure'.
  3015. 
  3016. File: gccint.info, Node: Config Fragments, Next: System Config, Up: Configuration
  3017. 6.3.2.1 Scripts Used by 'configure'
  3018. ...................................
  3019. 'configure' uses some other scripts to help in its work:
  3020. * The standard GNU 'config.sub' and 'config.guess' files, kept in the
  3021. top level directory, are used.
  3022. * The file 'config.gcc' is used to handle configuration specific to
  3023. the particular target machine. The file 'config.build' is used to
  3024. handle configuration specific to the particular build machine. The
  3025. file 'config.host' is used to handle configuration specific to the
  3026. particular host machine. (In general, these should only be used
  3027. for features that cannot reasonably be tested in Autoconf feature
  3028. tests.) *Note The 'config.build'; 'config.host'; and 'config.gcc'
  3029. Files: System Config, for details of the contents of these files.
  3030. * Each language subdirectory has a file 'LANGUAGE/config-lang.in'
  3031. that is used for front-end-specific configuration. *Note The Front
  3032. End 'config-lang.in' File: Front End Config, for details of this
  3033. file.
  3034. * A helper script 'configure.frag' is used as part of creating the
  3035. output of 'configure'.
  3036. 
  3037. File: gccint.info, Node: System Config, Next: Configuration Files, Prev: Config Fragments, Up: Configuration
  3038. 6.3.2.2 The 'config.build'; 'config.host'; and 'config.gcc' Files
  3039. .................................................................
  3040. The 'config.build' file contains specific rules for particular systems
  3041. which GCC is built on. This should be used as rarely as possible, as
  3042. the behavior of the build system can always be detected by autoconf.
  3043. The 'config.host' file contains specific rules for particular systems
  3044. which GCC will run on. This is rarely needed.
  3045. The 'config.gcc' file contains specific rules for particular systems
  3046. which GCC will generate code for. This is usually needed.
  3047. Each file has a list of the shell variables it sets, with descriptions,
  3048. at the top of the file.
  3049. FIXME: document the contents of these files, and what variables should
  3050. be set to control build, host and target configuration.
  3051. 
  3052. File: gccint.info, Node: Configuration Files, Prev: System Config, Up: Configuration
  3053. 6.3.2.3 Files Created by 'configure'
  3054. ....................................
  3055. Here we spell out what files will be set up by 'configure' in the 'gcc'
  3056. directory. Some other files are created as temporary files in the
  3057. configuration process, and are not used in the subsequent build; these
  3058. are not documented.
  3059. * 'Makefile' is constructed from 'Makefile.in', together with the
  3060. host and target fragments (*note Makefile Fragments: Fragments.)
  3061. 't-TARGET' and 'x-HOST' from 'config', if any, and language
  3062. Makefile fragments 'LANGUAGE/Make-lang.in'.
  3063. * 'auto-host.h' contains information about the host machine
  3064. determined by 'configure'. If the host machine is different from
  3065. the build machine, then 'auto-build.h' is also created, containing
  3066. such information about the build machine.
  3067. * 'config.status' is a script that may be run to recreate the current
  3068. configuration.
  3069. * 'configargs.h' is a header containing details of the arguments
  3070. passed to 'configure' to configure GCC, and of the thread model
  3071. used.
  3072. * 'cstamp-h' is used as a timestamp.
  3073. * If a language 'config-lang.in' file (*note The Front End
  3074. 'config-lang.in' File: Front End Config.) sets 'outputs', then the
  3075. files listed in 'outputs' there are also generated.
  3076. The following configuration headers are created from the Makefile,
  3077. using 'mkconfig.sh', rather than directly by 'configure'. 'config.h',
  3078. 'bconfig.h' and 'tconfig.h' all contain the 'xm-MACHINE.h' header, if
  3079. any, appropriate to the host, build and target machines respectively,
  3080. the configuration headers for the target, and some definitions; for the
  3081. host and build machines, these include the autoconfigured headers
  3082. generated by 'configure'. The other configuration headers are
  3083. determined by 'config.gcc'. They also contain the typedefs for 'rtx',
  3084. 'rtvec' and 'tree'.
  3085. * 'config.h', for use in programs that run on the host machine.
  3086. * 'bconfig.h', for use in programs that run on the build machine.
  3087. * 'tconfig.h', for use in programs and libraries for the target
  3088. machine.
  3089. * 'tm_p.h', which includes the header 'MACHINE-protos.h' that
  3090. contains prototypes for functions in the target 'MACHINE.c' file.
  3091. The 'MACHINE-protos.h' header is included after the 'rtl.h' and/or
  3092. 'tree.h' would have been included. The 'tm_p.h' also includes the
  3093. header 'tm-preds.h' which is generated by 'genpreds' program during
  3094. the build to define the declarations and inline functions for the
  3095. predicate functions.
  3096. 
  3097. File: gccint.info, Node: Build, Next: Makefile, Prev: Configuration, Up: gcc Directory
  3098. 6.3.3 Build System in the 'gcc' Directory
  3099. -----------------------------------------
  3100. FIXME: describe the build system, including what is built in what
  3101. stages. Also list the various source files that are used in the build
  3102. process but aren't source files of GCC itself and so aren't documented
  3103. below (*note Passes::).
  3104. 
  3105. File: gccint.info, Node: Makefile, Next: Library Files, Prev: Build, Up: gcc Directory
  3106. 6.3.4 Makefile Targets
  3107. ----------------------
  3108. These targets are available from the 'gcc' directory:
  3109. 'all'
  3110. This is the default target. Depending on what your
  3111. build/host/target configuration is, it coordinates all the things
  3112. that need to be built.
  3113. 'doc'
  3114. Produce info-formatted documentation and man pages. Essentially it
  3115. calls 'make man' and 'make info'.
  3116. 'dvi'
  3117. Produce DVI-formatted documentation.
  3118. 'pdf'
  3119. Produce PDF-formatted documentation.
  3120. 'html'
  3121. Produce HTML-formatted documentation.
  3122. 'man'
  3123. Generate man pages.
  3124. 'info'
  3125. Generate info-formatted pages.
  3126. 'mostlyclean'
  3127. Delete the files made while building the compiler.
  3128. 'clean'
  3129. That, and all the other files built by 'make all'.
  3130. 'distclean'
  3131. That, and all the files created by 'configure'.
  3132. 'maintainer-clean'
  3133. Distclean plus any file that can be generated from other files.
  3134. Note that additional tools may be required beyond what is normally
  3135. needed to build GCC.
  3136. 'srcextra'
  3137. Generates files in the source directory that are not
  3138. version-controlled but should go into a release tarball.
  3139. 'srcinfo'
  3140. 'srcman'
  3141. Copies the info-formatted and manpage documentation into the source
  3142. directory usually for the purpose of generating a release tarball.
  3143. 'install'
  3144. Installs GCC.
  3145. 'uninstall'
  3146. Deletes installed files, though this is not supported.
  3147. 'check'
  3148. Run the testsuite. This creates a 'testsuite' subdirectory that
  3149. has various '.sum' and '.log' files containing the results of the
  3150. testing. You can run subsets with, for example, 'make check-gcc'.
  3151. You can specify specific tests by setting 'RUNTESTFLAGS' to be the
  3152. name of the '.exp' file, optionally followed by (for some tests) an
  3153. equals and a file wildcard, like:
  3154. make check-gcc RUNTESTFLAGS="execute.exp=19980413-*"
  3155. Note that running the testsuite may require additional tools be
  3156. installed, such as Tcl or DejaGnu.
  3157. The toplevel tree from which you start GCC compilation is not the GCC
  3158. directory, but rather a complex Makefile that coordinates the various
  3159. steps of the build, including bootstrapping the compiler and using the
  3160. new compiler to build target libraries.
  3161. When GCC is configured for a native configuration, the default action
  3162. for 'make' is to do a full three-stage bootstrap. This means that GCC
  3163. is built three times--once with the native compiler, once with the
  3164. native-built compiler it just built, and once with the compiler it built
  3165. the second time. In theory, the last two should produce the same
  3166. results, which 'make compare' can check. Each stage is configured
  3167. separately and compiled into a separate directory, to minimize problems
  3168. due to ABI incompatibilities between the native compiler and GCC.
  3169. If you do a change, rebuilding will also start from the first stage and
  3170. "bubble" up the change through the three stages. Each stage is taken
  3171. from its build directory (if it had been built previously), rebuilt, and
  3172. copied to its subdirectory. This will allow you to, for example,
  3173. continue a bootstrap after fixing a bug which causes the stage2 build to
  3174. crash. It does not provide as good coverage of the compiler as
  3175. bootstrapping from scratch, but it ensures that the new code is
  3176. syntactically correct (e.g., that you did not use GCC extensions by
  3177. mistake), and avoids spurious bootstrap comparison failures(1).
  3178. Other targets available from the top level include:
  3179. 'bootstrap-lean'
  3180. Like 'bootstrap', except that the various stages are removed once
  3181. they're no longer needed. This saves disk space.
  3182. 'bootstrap2'
  3183. 'bootstrap2-lean'
  3184. Performs only the first two stages of bootstrap. Unlike a
  3185. three-stage bootstrap, this does not perform a comparison to test
  3186. that the compiler is running properly. Note that the disk space
  3187. required by a "lean" bootstrap is approximately independent of the
  3188. number of stages.
  3189. 'stageN-bubble (N = 1...4, profile, feedback)'
  3190. Rebuild all the stages up to N, with the appropriate flags,
  3191. "bubbling" the changes as described above.
  3192. 'all-stageN (N = 1...4, profile, feedback)'
  3193. Assuming that stage N has already been built, rebuild it with the
  3194. appropriate flags. This is rarely needed.
  3195. 'cleanstrap'
  3196. Remove everything ('make clean') and rebuilds ('make bootstrap').
  3197. 'compare'
  3198. Compares the results of stages 2 and 3. This ensures that the
  3199. compiler is running properly, since it should produce the same
  3200. object files regardless of how it itself was compiled.
  3201. 'profiledbootstrap'
  3202. Builds a compiler with profiling feedback information. In this
  3203. case, the second and third stages are named 'profile' and
  3204. 'feedback', respectively. For more information, see the
  3205. installation instructions.
  3206. 'restrap'
  3207. Restart a bootstrap, so that everything that was not built with the
  3208. system compiler is rebuilt.
  3209. 'stageN-start (N = 1...4, profile, feedback)'
  3210. For each package that is bootstrapped, rename directories so that,
  3211. for example, 'gcc' points to the stageN GCC, compiled with the
  3212. stageN-1 GCC(2).
  3213. You will invoke this target if you need to test or debug the stageN
  3214. GCC. If you only need to execute GCC (but you need not run 'make'
  3215. either to rebuild it or to run test suites), you should be able to
  3216. work directly in the 'stageN-gcc' directory. This makes it easier
  3217. to debug multiple stages in parallel.
  3218. 'stage'
  3219. For each package that is bootstrapped, relocate its build directory
  3220. to indicate its stage. For example, if the 'gcc' directory points
  3221. to the stage2 GCC, after invoking this target it will be renamed to
  3222. 'stage2-gcc'.
  3223. If you wish to use non-default GCC flags when compiling the stage2 and
  3224. stage3 compilers, set 'BOOT_CFLAGS' on the command line when doing
  3225. 'make'.
  3226. Usually, the first stage only builds the languages that the compiler is
  3227. written in: typically, C and maybe Ada. If you are debugging a
  3228. miscompilation of a different stage2 front-end (for example, of the
  3229. Fortran front-end), you may want to have front-ends for other languages
  3230. in the first stage as well. To do so, set 'STAGE1_LANGUAGES' on the
  3231. command line when doing 'make'.
  3232. For example, in the aforementioned scenario of debugging a Fortran
  3233. front-end miscompilation caused by the stage1 compiler, you may need a
  3234. command like
  3235. make stage2-bubble STAGE1_LANGUAGES=c,fortran
  3236. Alternatively, you can use per-language targets to build and test
  3237. languages that are not enabled by default in stage1. For example, 'make
  3238. f951' will build a Fortran compiler even in the stage1 build directory.
  3239. ---------- Footnotes ----------
  3240. (1) Except if the compiler was buggy and miscompiled some of the
  3241. files that were not modified. In this case, it's best to use 'make
  3242. restrap'.
  3243. (2) Customarily, the system compiler is also termed the 'stage0' GCC.
  3244. 
  3245. File: gccint.info, Node: Library Files, Next: Headers, Prev: Makefile, Up: gcc Directory
  3246. 6.3.5 Library Source Files and Headers under the 'gcc' Directory
  3247. ----------------------------------------------------------------
  3248. FIXME: list here, with explanation, all the C source files and headers
  3249. under the 'gcc' directory that aren't built into the GCC executable but
  3250. rather are part of runtime libraries and object files, such as
  3251. 'crtstuff.c' and 'unwind-dw2.c'. *Note Headers Installed by GCC:
  3252. Headers, for more information about the 'ginclude' directory.
  3253. 
  3254. File: gccint.info, Node: Headers, Next: Documentation, Prev: Library Files, Up: gcc Directory
  3255. 6.3.6 Headers Installed by GCC
  3256. ------------------------------
  3257. In general, GCC expects the system C library to provide most of the
  3258. headers to be used with it. However, GCC will fix those headers if
  3259. necessary to make them work with GCC, and will install some headers
  3260. required of freestanding implementations. These headers are installed
  3261. in 'LIBSUBDIR/include'. Headers for non-C runtime libraries are also
  3262. installed by GCC; these are not documented here. (FIXME: document them
  3263. somewhere.)
  3264. Several of the headers GCC installs are in the 'ginclude' directory.
  3265. These headers, 'iso646.h', 'stdarg.h', 'stdbool.h', and 'stddef.h', are
  3266. installed in 'LIBSUBDIR/include', unless the target Makefile fragment
  3267. (*note Target Fragment::) overrides this by setting 'USER_H'.
  3268. In addition to these headers and those generated by fixing system
  3269. headers to work with GCC, some other headers may also be installed in
  3270. 'LIBSUBDIR/include'. 'config.gcc' may set 'extra_headers'; this
  3271. specifies additional headers under 'config' to be installed on some
  3272. systems.
  3273. GCC installs its own version of '<float.h>', from 'ginclude/float.h'.
  3274. This is done to cope with command-line options that change the
  3275. representation of floating point numbers.
  3276. GCC also installs its own version of '<limits.h>'; this is generated
  3277. from 'glimits.h', together with 'limitx.h' and 'limity.h' if the system
  3278. also has its own version of '<limits.h>'. (GCC provides its own header
  3279. because it is required of ISO C freestanding implementations, but needs
  3280. to include the system header from its own header as well because other
  3281. standards such as POSIX specify additional values to be defined in
  3282. '<limits.h>'.) The system's '<limits.h>' header is used via
  3283. 'LIBSUBDIR/include/syslimits.h', which is copied from 'gsyslimits.h' if
  3284. it does not need fixing to work with GCC; if it needs fixing,
  3285. 'syslimits.h' is the fixed copy.
  3286. GCC can also install '<tgmath.h>'. It will do this when 'config.gcc'
  3287. sets 'use_gcc_tgmath' to 'yes'.
  3288. 
  3289. File: gccint.info, Node: Documentation, Next: Front End, Prev: Headers, Up: gcc Directory
  3290. 6.3.7 Building Documentation
  3291. ----------------------------
  3292. The main GCC documentation is in the form of manuals in Texinfo format.
  3293. These are installed in Info format; DVI versions may be generated by
  3294. 'make dvi', PDF versions by 'make pdf', and HTML versions by 'make
  3295. html'. In addition, some man pages are generated from the Texinfo
  3296. manuals, there are some other text files with miscellaneous
  3297. documentation, and runtime libraries have their own documentation
  3298. outside the 'gcc' directory. FIXME: document the documentation for
  3299. runtime libraries somewhere.
  3300. * Menu:
  3301. * Texinfo Manuals:: GCC manuals in Texinfo format.
  3302. * Man Page Generation:: Generating man pages from Texinfo manuals.
  3303. * Miscellaneous Docs:: Miscellaneous text files with documentation.
  3304. 
  3305. File: gccint.info, Node: Texinfo Manuals, Next: Man Page Generation, Up: Documentation
  3306. 6.3.7.1 Texinfo Manuals
  3307. .......................
  3308. The manuals for GCC as a whole, and the C and C++ front ends, are in
  3309. files 'doc/*.texi'. Other front ends have their own manuals in files
  3310. 'LANGUAGE/*.texi'. Common files 'doc/include/*.texi' are provided which
  3311. may be included in multiple manuals; the following files are in
  3312. 'doc/include':
  3313. 'fdl.texi'
  3314. The GNU Free Documentation License.
  3315. 'funding.texi'
  3316. The section "Funding Free Software".
  3317. 'gcc-common.texi'
  3318. Common definitions for manuals.
  3319. 'gpl_v3.texi'
  3320. The GNU General Public License.
  3321. 'texinfo.tex'
  3322. A copy of 'texinfo.tex' known to work with the GCC manuals.
  3323. DVI-formatted manuals are generated by 'make dvi', which uses
  3324. 'texi2dvi' (via the Makefile macro '$(TEXI2DVI)'). PDF-formatted
  3325. manuals are generated by 'make pdf', which uses 'texi2pdf' (via the
  3326. Makefile macro '$(TEXI2PDF)'). HTML formatted manuals are generated by
  3327. 'make html'. Info manuals are generated by 'make info' (which is run as
  3328. part of a bootstrap); this generates the manuals in the source
  3329. directory, using 'makeinfo' via the Makefile macro '$(MAKEINFO)', and
  3330. they are included in release distributions.
  3331. Manuals are also provided on the GCC web site, in both HTML and
  3332. PostScript forms. This is done via the script
  3333. 'maintainer-scripts/update_web_docs_git'. Each manual to be provided
  3334. online must be listed in the definition of 'MANUALS' in that file; a
  3335. file 'NAME.texi' must only appear once in the source tree, and the
  3336. output manual must have the same name as the source file. (However,
  3337. other Texinfo files, included in manuals but not themselves the root
  3338. files of manuals, may have names that appear more than once in the
  3339. source tree.) The manual file 'NAME.texi' should only include other
  3340. files in its own directory or in 'doc/include'. HTML manuals will be
  3341. generated by 'makeinfo --html', PostScript manuals by 'texi2dvi' and
  3342. 'dvips', and PDF manuals by 'texi2pdf'. All Texinfo files that are
  3343. parts of manuals must be version-controlled, even if they are generated
  3344. files, for the generation of online manuals to work.
  3345. The installation manual, 'doc/install.texi', is also provided on the
  3346. GCC web site. The HTML version is generated by the script
  3347. 'doc/install.texi2html'.
  3348. 
  3349. File: gccint.info, Node: Man Page Generation, Next: Miscellaneous Docs, Prev: Texinfo Manuals, Up: Documentation
  3350. 6.3.7.2 Man Page Generation
  3351. ...........................
  3352. Because of user demand, in addition to full Texinfo manuals, man pages
  3353. are provided which contain extracts from those manuals. These man pages
  3354. are generated from the Texinfo manuals using 'contrib/texi2pod.pl' and
  3355. 'pod2man'. (The man page for 'g++', 'cp/g++.1', just contains a '.so'
  3356. reference to 'gcc.1', but all the other man pages are generated from
  3357. Texinfo manuals.)
  3358. Because many systems may not have the necessary tools installed to
  3359. generate the man pages, they are only generated if the 'configure'
  3360. script detects that recent enough tools are installed, and the Makefiles
  3361. allow generating man pages to fail without aborting the build. Man
  3362. pages are also included in release distributions. They are generated in
  3363. the source directory.
  3364. Magic comments in Texinfo files starting '@c man' control what parts of
  3365. a Texinfo file go into a man page. Only a subset of Texinfo is
  3366. supported by 'texi2pod.pl', and it may be necessary to add support for
  3367. more Texinfo features to this script when generating new man pages. To
  3368. improve the man page output, some special Texinfo macros are provided in
  3369. 'doc/include/gcc-common.texi' which 'texi2pod.pl' understands:
  3370. '@gcctabopt'
  3371. Use in the form '@table @gcctabopt' for tables of options, where
  3372. for printed output the effect of '@code' is better than that of
  3373. '@option' but for man page output a different effect is wanted.
  3374. '@gccoptlist'
  3375. Use for summary lists of options in manuals.
  3376. '@gol'
  3377. Use at the end of each line inside '@gccoptlist'. This is
  3378. necessary to avoid problems with differences in how the
  3379. '@gccoptlist' macro is handled by different Texinfo formatters.
  3380. FIXME: describe the 'texi2pod.pl' input language and magic comments in
  3381. more detail.
  3382. 
  3383. File: gccint.info, Node: Miscellaneous Docs, Prev: Man Page Generation, Up: Documentation
  3384. 6.3.7.3 Miscellaneous Documentation
  3385. ...................................
  3386. In addition to the formal documentation that is installed by GCC, there
  3387. are several other text files in the 'gcc' subdirectory with
  3388. miscellaneous documentation:
  3389. 'ABOUT-GCC-NLS'
  3390. Notes on GCC's Native Language Support. FIXME: this should be part
  3391. of this manual rather than a separate file.
  3392. 'ABOUT-NLS'
  3393. Notes on the Free Translation Project.
  3394. 'COPYING'
  3395. 'COPYING3'
  3396. The GNU General Public License, Versions 2 and 3.
  3397. 'COPYING.LIB'
  3398. 'COPYING3.LIB'
  3399. The GNU Lesser General Public License, Versions 2.1 and 3.
  3400. '*ChangeLog*'
  3401. '*/ChangeLog*'
  3402. Change log files for various parts of GCC.
  3403. 'LANGUAGES'
  3404. Details of a few changes to the GCC front-end interface. FIXME:
  3405. the information in this file should be part of general
  3406. documentation of the front-end interface in this manual.
  3407. 'ONEWS'
  3408. Information about new features in old versions of GCC. (For recent
  3409. versions, the information is on the GCC web site.)
  3410. 'README.Portability'
  3411. Information about portability issues when writing code in GCC.
  3412. FIXME: why isn't this part of this manual or of the GCC Coding
  3413. Conventions?
  3414. FIXME: document such files in subdirectories, at least 'config', 'c',
  3415. 'cp', 'objc', 'testsuite'.
  3416. 
  3417. File: gccint.info, Node: Front End, Next: Back End, Prev: Documentation, Up: gcc Directory
  3418. 6.3.8 Anatomy of a Language Front End
  3419. -------------------------------------
  3420. A front end for a language in GCC has the following parts:
  3421. * A directory 'LANGUAGE' under 'gcc' containing source files for that
  3422. front end. *Note The Front End 'LANGUAGE' Directory: Front End
  3423. Directory, for details.
  3424. * A mention of the language in the list of supported languages in
  3425. 'gcc/doc/install.texi'.
  3426. * A mention of the name under which the language's runtime library is
  3427. recognized by '--enable-shared=PACKAGE' in the documentation of
  3428. that option in 'gcc/doc/install.texi'.
  3429. * A mention of any special prerequisites for building the front end
  3430. in the documentation of prerequisites in 'gcc/doc/install.texi'.
  3431. * Details of contributors to that front end in
  3432. 'gcc/doc/contrib.texi'. If the details are in that front end's own
  3433. manual then there should be a link to that manual's list in
  3434. 'contrib.texi'.
  3435. * Information about support for that language in
  3436. 'gcc/doc/frontends.texi'.
  3437. * Information about standards for that language, and the front end's
  3438. support for them, in 'gcc/doc/standards.texi'. This may be a link
  3439. to such information in the front end's own manual.
  3440. * Details of source file suffixes for that language and '-x LANG'
  3441. options supported, in 'gcc/doc/invoke.texi'.
  3442. * Entries in 'default_compilers' in 'gcc.c' for source file suffixes
  3443. for that language.
  3444. * Preferably testsuites, which may be under 'gcc/testsuite' or
  3445. runtime library directories. FIXME: document somewhere how to
  3446. write testsuite harnesses.
  3447. * Probably a runtime library for the language, outside the 'gcc'
  3448. directory. FIXME: document this further.
  3449. * Details of the directories of any runtime libraries in
  3450. 'gcc/doc/sourcebuild.texi'.
  3451. * Check targets in 'Makefile.def' for the top-level 'Makefile' to
  3452. check just the compiler or the compiler and runtime library for the
  3453. language.
  3454. If the front end is added to the official GCC source repository, the
  3455. following are also necessary:
  3456. * At least one Bugzilla component for bugs in that front end and
  3457. runtime libraries. This category needs to be added to the Bugzilla
  3458. database.
  3459. * Normally, one or more maintainers of that front end listed in
  3460. 'MAINTAINERS'.
  3461. * Mentions on the GCC web site in 'index.html' and 'frontends.html',
  3462. with any relevant links on 'readings.html'. (Front ends that are
  3463. not an official part of GCC may also be listed on 'frontends.html',
  3464. with relevant links.)
  3465. * A news item on 'index.html', and possibly an announcement on the
  3466. <gcc-announce@gcc.gnu.org> mailing list.
  3467. * The front end's manuals should be mentioned in
  3468. 'maintainer-scripts/update_web_docs_git' (*note Texinfo Manuals::)
  3469. and the online manuals should be linked to from
  3470. 'onlinedocs/index.html'.
  3471. * Any old releases or CVS repositories of the front end, before its
  3472. inclusion in GCC, should be made available on the GCC web site at
  3473. <https://gcc.gnu.org/pub/gcc/old-releases/>.
  3474. * The release and snapshot script 'maintainer-scripts/gcc_release'
  3475. should be updated to generate appropriate tarballs for this front
  3476. end.
  3477. * If this front end includes its own version files that include the
  3478. current date, 'maintainer-scripts/update_version' should be updated
  3479. accordingly.
  3480. * Menu:
  3481. * Front End Directory:: The front end 'LANGUAGE' directory.
  3482. * Front End Config:: The front end 'config-lang.in' file.
  3483. * Front End Makefile:: The front end 'Make-lang.in' file.
  3484. 
  3485. File: gccint.info, Node: Front End Directory, Next: Front End Config, Up: Front End
  3486. 6.3.8.1 The Front End 'LANGUAGE' Directory
  3487. ..........................................
  3488. A front end 'LANGUAGE' directory contains the source files of that front
  3489. end (but not of any runtime libraries, which should be outside the 'gcc'
  3490. directory). This includes documentation, and possibly some subsidiary
  3491. programs built alongside the front end. Certain files are special and
  3492. other parts of the compiler depend on their names:
  3493. 'config-lang.in'
  3494. This file is required in all language subdirectories. *Note The
  3495. Front End 'config-lang.in' File: Front End Config, for details of
  3496. its contents
  3497. 'Make-lang.in'
  3498. This file is required in all language subdirectories. *Note The
  3499. Front End 'Make-lang.in' File: Front End Makefile, for details of
  3500. its contents.
  3501. 'lang.opt'
  3502. This file registers the set of switches that the front end accepts
  3503. on the command line, and their '--help' text. *Note Options::.
  3504. 'lang-specs.h'
  3505. This file provides entries for 'default_compilers' in 'gcc.c' which
  3506. override the default of giving an error that a compiler for that
  3507. language is not installed.
  3508. 'LANGUAGE-tree.def'
  3509. This file, which need not exist, defines any language-specific tree
  3510. codes.
  3511. 
  3512. File: gccint.info, Node: Front End Config, Next: Front End Makefile, Prev: Front End Directory, Up: Front End
  3513. 6.3.8.2 The Front End 'config-lang.in' File
  3514. ...........................................
  3515. Each language subdirectory contains a 'config-lang.in' file. This file
  3516. is a shell script that may define some variables describing the
  3517. language:
  3518. 'language'
  3519. This definition must be present, and gives the name of the language
  3520. for some purposes such as arguments to '--enable-languages'.
  3521. 'lang_requires'
  3522. If defined, this variable lists (space-separated) language front
  3523. ends other than C that this front end requires to be enabled (with
  3524. the names given being their 'language' settings). For example, the
  3525. Obj-C++ front end depends on the C++ and ObjC front ends, so sets
  3526. 'lang_requires="objc c++"'.
  3527. 'subdir_requires'
  3528. If defined, this variable lists (space-separated) front end
  3529. directories other than C that this front end requires to be
  3530. present. For example, the Objective-C++ front end uses source
  3531. files from the C++ and Objective-C front ends, so sets
  3532. 'subdir_requires="cp objc"'.
  3533. 'target_libs'
  3534. If defined, this variable lists (space-separated) targets in the
  3535. top level 'Makefile' to build the runtime libraries for this
  3536. language, such as 'target-libobjc'.
  3537. 'lang_dirs'
  3538. If defined, this variable lists (space-separated) top level
  3539. directories (parallel to 'gcc'), apart from the runtime libraries,
  3540. that should not be configured if this front end is not built.
  3541. 'build_by_default'
  3542. If defined to 'no', this language front end is not built unless
  3543. enabled in a '--enable-languages' argument. Otherwise, front ends
  3544. are built by default, subject to any special logic in
  3545. 'configure.ac' (as is present to disable the Ada front end if the
  3546. Ada compiler is not already installed).
  3547. 'boot_language'
  3548. If defined to 'yes', this front end is built in stage1 of the
  3549. bootstrap. This is only relevant to front ends written in their
  3550. own languages.
  3551. 'compilers'
  3552. If defined, a space-separated list of compiler executables that
  3553. will be run by the driver. The names here will each end with
  3554. '\$(exeext)'.
  3555. 'outputs'
  3556. If defined, a space-separated list of files that should be
  3557. generated by 'configure' substituting values in them. This
  3558. mechanism can be used to create a file 'LANGUAGE/Makefile' from
  3559. 'LANGUAGE/Makefile.in', but this is deprecated, building everything
  3560. from the single 'gcc/Makefile' is preferred.
  3561. 'gtfiles'
  3562. If defined, a space-separated list of files that should be scanned
  3563. by 'gengtype.c' to generate the garbage collection tables and
  3564. routines for this language. This excludes the files that are
  3565. common to all front ends. *Note Type Information::.
  3566. 
  3567. File: gccint.info, Node: Front End Makefile, Prev: Front End Config, Up: Front End
  3568. 6.3.8.3 The Front End 'Make-lang.in' File
  3569. .........................................
  3570. Each language subdirectory contains a 'Make-lang.in' file. It contains
  3571. targets 'LANG.HOOK' (where 'LANG' is the setting of 'language' in
  3572. 'config-lang.in') for the following values of 'HOOK', and any other
  3573. Makefile rules required to build those targets (which may if necessary
  3574. use other Makefiles specified in 'outputs' in 'config-lang.in', although
  3575. this is deprecated). It also adds any testsuite targets that can use
  3576. the standard rule in 'gcc/Makefile.in' to the variable 'lang_checks'.
  3577. 'all.cross'
  3578. 'start.encap'
  3579. 'rest.encap'
  3580. FIXME: exactly what goes in each of these targets?
  3581. 'tags'
  3582. Build an 'etags' 'TAGS' file in the language subdirectory in the
  3583. source tree.
  3584. 'info'
  3585. Build info documentation for the front end, in the build directory.
  3586. This target is only called by 'make bootstrap' if a suitable
  3587. version of 'makeinfo' is available, so does not need to check for
  3588. this, and should fail if an error occurs.
  3589. 'dvi'
  3590. Build DVI documentation for the front end, in the build directory.
  3591. This should be done using '$(TEXI2DVI)', with appropriate '-I'
  3592. arguments pointing to directories of included files.
  3593. 'pdf'
  3594. Build PDF documentation for the front end, in the build directory.
  3595. This should be done using '$(TEXI2PDF)', with appropriate '-I'
  3596. arguments pointing to directories of included files.
  3597. 'html'
  3598. Build HTML documentation for the front end, in the build directory.
  3599. 'man'
  3600. Build generated man pages for the front end from Texinfo manuals
  3601. (*note Man Page Generation::), in the build directory. This target
  3602. is only called if the necessary tools are available, but should
  3603. ignore errors so as not to stop the build if errors occur; man
  3604. pages are optional and the tools involved may be installed in a
  3605. broken way.
  3606. 'install-common'
  3607. Install everything that is part of the front end, apart from the
  3608. compiler executables listed in 'compilers' in 'config-lang.in'.
  3609. 'install-info'
  3610. Install info documentation for the front end, if it is present in
  3611. the source directory. This target should have dependencies on info
  3612. files that should be installed.
  3613. 'install-man'
  3614. Install man pages for the front end. This target should ignore
  3615. errors.
  3616. 'install-plugin'
  3617. Install headers needed for plugins.
  3618. 'srcextra'
  3619. Copies its dependencies into the source directory. This generally
  3620. should be used for generated files such as Bison output files which
  3621. are not version-controlled, but should be included in any release
  3622. tarballs. This target will be executed during a bootstrap if
  3623. '--enable-generated-files-in-srcdir' was specified as a 'configure'
  3624. option.
  3625. 'srcinfo'
  3626. 'srcman'
  3627. Copies its dependencies into the source directory. These targets
  3628. will be executed during a bootstrap if
  3629. '--enable-generated-files-in-srcdir' was specified as a 'configure'
  3630. option.
  3631. 'uninstall'
  3632. Uninstall files installed by installing the compiler. This is
  3633. currently documented not to be supported, so the hook need not do
  3634. anything.
  3635. 'mostlyclean'
  3636. 'clean'
  3637. 'distclean'
  3638. 'maintainer-clean'
  3639. The language parts of the standard GNU '*clean' targets. *Note
  3640. Standard Targets for Users: (standards)Standard Targets, for
  3641. details of the standard targets. For GCC, 'maintainer-clean'
  3642. should delete all generated files in the source directory that are
  3643. not version-controlled, but should not delete anything that is.
  3644. 'Make-lang.in' must also define a variable 'LANG_OBJS' to a list of
  3645. host object files that are used by that language.
  3646. 
  3647. File: gccint.info, Node: Back End, Prev: Front End, Up: gcc Directory
  3648. 6.3.9 Anatomy of a Target Back End
  3649. ----------------------------------
  3650. A back end for a target architecture in GCC has the following parts:
  3651. * A directory 'MACHINE' under 'gcc/config', containing a machine
  3652. description 'MACHINE.md' file (*note Machine Descriptions: Machine
  3653. Desc.), header files 'MACHINE.h' and 'MACHINE-protos.h' and a
  3654. source file 'MACHINE.c' (*note Target Description Macros and
  3655. Functions: Target Macros.), possibly a target Makefile fragment
  3656. 't-MACHINE' (*note The Target Makefile Fragment: Target Fragment.),
  3657. and maybe some other files. The names of these files may be
  3658. changed from the defaults given by explicit specifications in
  3659. 'config.gcc'.
  3660. * If necessary, a file 'MACHINE-modes.def' in the 'MACHINE'
  3661. directory, containing additional machine modes to represent
  3662. condition codes. *Note Condition Code::, for further details.
  3663. * An optional 'MACHINE.opt' file in the 'MACHINE' directory,
  3664. containing a list of target-specific options. You can also add
  3665. other option files using the 'extra_options' variable in
  3666. 'config.gcc'. *Note Options::.
  3667. * Entries in 'config.gcc' (*note The 'config.gcc' File: System
  3668. Config.) for the systems with this target architecture.
  3669. * Documentation in 'gcc/doc/invoke.texi' for any command-line options
  3670. supported by this target (*note Run-time Target Specification:
  3671. Run-time Target.). This means both entries in the summary table of
  3672. options and details of the individual options.
  3673. * Documentation in 'gcc/doc/extend.texi' for any target-specific
  3674. attributes supported (*note Defining target-specific uses of
  3675. '__attribute__': Target Attributes.), including where the same
  3676. attribute is already supported on some targets, which are
  3677. enumerated in the manual.
  3678. * Documentation in 'gcc/doc/extend.texi' for any target-specific
  3679. pragmas supported.
  3680. * Documentation in 'gcc/doc/extend.texi' of any target-specific
  3681. built-in functions supported.
  3682. * Documentation in 'gcc/doc/extend.texi' of any target-specific
  3683. format checking styles supported.
  3684. * Documentation in 'gcc/doc/md.texi' of any target-specific
  3685. constraint letters (*note Constraints for Particular Machines:
  3686. Machine Constraints.).
  3687. * A note in 'gcc/doc/contrib.texi' under the person or people who
  3688. contributed the target support.
  3689. * Entries in 'gcc/doc/install.texi' for all target triplets supported
  3690. with this target architecture, giving details of any special notes
  3691. about installation for this target, or saying that there are no
  3692. special notes if there are none.
  3693. * Possibly other support outside the 'gcc' directory for runtime
  3694. libraries. FIXME: reference docs for this. The 'libstdc++'
  3695. porting manual needs to be installed as info for this to work, or
  3696. to be a chapter of this manual.
  3697. The 'MACHINE.h' header is included very early in GCC's standard
  3698. sequence of header files, while 'MACHINE-protos.h' is included late in
  3699. the sequence. Thus 'MACHINE-protos.h' can include declarations
  3700. referencing types that are not defined when 'MACHINE.h' is included,
  3701. specifically including those from 'rtl.h' and 'tree.h'. Since both RTL
  3702. and tree types may not be available in every context where
  3703. 'MACHINE-protos.h' is included, in this file you should guard
  3704. declarations using these types inside appropriate '#ifdef RTX_CODE' or
  3705. '#ifdef TREE_CODE' conditional code segments.
  3706. If the backend uses shared data structures that require 'GTY' markers
  3707. for garbage collection (*note Type Information::), you must declare
  3708. those in 'MACHINE.h' rather than 'MACHINE-protos.h'. Any definitions
  3709. required for building libgcc must also go in 'MACHINE.h'.
  3710. GCC uses the macro 'IN_TARGET_CODE' to distinguish between
  3711. machine-specific '.c' and '.cc' files and machine-independent '.c' and
  3712. '.cc' files. Machine-specific files should use the directive:
  3713. #define IN_TARGET_CODE 1
  3714. before including 'config.h'.
  3715. If the back end is added to the official GCC source repository, the
  3716. following are also necessary:
  3717. * An entry for the target architecture in 'readings.html' on the GCC
  3718. web site, with any relevant links.
  3719. * Details of the properties of the back end and target architecture
  3720. in 'backends.html' on the GCC web site.
  3721. * A news item about the contribution of support for that target
  3722. architecture, in 'index.html' on the GCC web site.
  3723. * Normally, one or more maintainers of that target listed in
  3724. 'MAINTAINERS'. Some existing architectures may be unmaintained,
  3725. but it would be unusual to add support for a target that does not
  3726. have a maintainer when support is added.
  3727. * Target triplets covering all 'config.gcc' stanzas for the target,
  3728. in the list in 'contrib/config-list.mk'.
  3729. 
  3730. File: gccint.info, Node: Testsuites, Next: Options, Prev: Source Tree, Up: Top
  3731. 7 Testsuites
  3732. ************
  3733. GCC contains several testsuites to help maintain compiler quality. Most
  3734. of the runtime libraries and language front ends in GCC have testsuites.
  3735. Currently only the C language testsuites are documented here; FIXME:
  3736. document the others.
  3737. * Menu:
  3738. * Test Idioms:: Idioms used in testsuite code.
  3739. * Test Directives:: Directives used within DejaGnu tests.
  3740. * Ada Tests:: The Ada language testsuites.
  3741. * C Tests:: The C language testsuites.
  3742. * LTO Testing:: Support for testing link-time optimizations.
  3743. * gcov Testing:: Support for testing gcov.
  3744. * profopt Testing:: Support for testing profile-directed optimizations.
  3745. * compat Testing:: Support for testing binary compatibility.
  3746. * Torture Tests:: Support for torture testing using multiple options.
  3747. * GIMPLE Tests:: Support for testing GIMPLE passes.
  3748. * RTL Tests:: Support for testing RTL passes.
  3749. 
  3750. File: gccint.info, Node: Test Idioms, Next: Test Directives, Up: Testsuites
  3751. 7.1 Idioms Used in Testsuite Code
  3752. =================================
  3753. In general, C testcases have a trailing '-N.c', starting with '-1.c', in
  3754. case other testcases with similar names are added later. If the test is
  3755. a test of some well-defined feature, it should have a name referring to
  3756. that feature such as 'FEATURE-1.c'. If it does not test a well-defined
  3757. feature but just happens to exercise a bug somewhere in the compiler,
  3758. and a bug report has been filed for this bug in the GCC bug database,
  3759. 'prBUG-NUMBER-1.c' is the appropriate form of name. Otherwise (for
  3760. miscellaneous bugs not filed in the GCC bug database), and previously
  3761. more generally, test cases are named after the date on which they were
  3762. added. This allows people to tell at a glance whether a test failure is
  3763. because of a recently found bug that has not yet been fixed, or whether
  3764. it may be a regression, but does not give any other information about
  3765. the bug or where discussion of it may be found. Some other language
  3766. testsuites follow similar conventions.
  3767. In the 'gcc.dg' testsuite, it is often necessary to test that an error
  3768. is indeed a hard error and not just a warning--for example, where it is
  3769. a constraint violation in the C standard, which must become an error
  3770. with '-pedantic-errors'. The following idiom, where the first line
  3771. shown is line LINE of the file and the line that generates the error, is
  3772. used for this:
  3773. /* { dg-bogus "warning" "warning in place of error" } */
  3774. /* { dg-error "REGEXP" "MESSAGE" { target *-*-* } LINE } */
  3775. It may be necessary to check that an expression is an integer constant
  3776. expression and has a certain value. To check that 'E' has value 'V', an
  3777. idiom similar to the following is used:
  3778. char x[((E) == (V) ? 1 : -1)];
  3779. In 'gcc.dg' tests, '__typeof__' is sometimes used to make assertions
  3780. about the types of expressions. See, for example,
  3781. 'gcc.dg/c99-condexpr-1.c'. The more subtle uses depend on the exact
  3782. rules for the types of conditional expressions in the C standard; see,
  3783. for example, 'gcc.dg/c99-intconst-1.c'.
  3784. It is useful to be able to test that optimizations are being made
  3785. properly. This cannot be done in all cases, but it can be done where
  3786. the optimization will lead to code being optimized away (for example,
  3787. where flow analysis or alias analysis should show that certain code
  3788. cannot be called) or to functions not being called because they have
  3789. been expanded as built-in functions. Such tests go in
  3790. 'gcc.c-torture/execute'. Where code should be optimized away, a call to
  3791. a nonexistent function such as 'link_failure ()' may be inserted; a
  3792. definition
  3793. #ifndef __OPTIMIZE__
  3794. void
  3795. link_failure (void)
  3796. {
  3797. abort ();
  3798. }
  3799. #endif
  3800. will also be needed so that linking still succeeds when the test is run
  3801. without optimization. When all calls to a built-in function should have
  3802. been optimized and no calls to the non-built-in version of the function
  3803. should remain, that function may be defined as 'static' to call 'abort
  3804. ()' (although redeclaring a function as static may not work on all
  3805. targets).
  3806. All testcases must be portable. Target-specific testcases must have
  3807. appropriate code to avoid causing failures on unsupported systems;
  3808. unfortunately, the mechanisms for this differ by directory.
  3809. FIXME: discuss non-C testsuites here.
  3810. 
  3811. File: gccint.info, Node: Test Directives, Next: Ada Tests, Prev: Test Idioms, Up: Testsuites
  3812. 7.2 Directives used within DejaGnu tests
  3813. ========================================
  3814. * Menu:
  3815. * Directives:: Syntax and descriptions of test directives.
  3816. * Selectors:: Selecting targets to which a test applies.
  3817. * Effective-Target Keywords:: Keywords describing target attributes.
  3818. * Add Options:: Features for 'dg-add-options'
  3819. * Require Support:: Variants of 'dg-require-SUPPORT'
  3820. * Final Actions:: Commands for use in 'dg-final'
  3821. 
  3822. File: gccint.info, Node: Directives, Next: Selectors, Up: Test Directives
  3823. 7.2.1 Syntax and Descriptions of test directives
  3824. ------------------------------------------------
  3825. Test directives appear within comments in a test source file and begin
  3826. with 'dg-'. Some of these are defined within DejaGnu and others are
  3827. local to the GCC testsuite.
  3828. The order in which test directives appear in a test can be important:
  3829. directives local to GCC sometimes override information used by the
  3830. DejaGnu directives, which know nothing about the GCC directives, so the
  3831. DejaGnu directives must precede GCC directives.
  3832. Several test directives include selectors (*note Selectors::) which are
  3833. usually preceded by the keyword 'target' or 'xfail'.
  3834. 7.2.1.1 Specify how to build the test
  3835. .....................................
  3836. '{ dg-do DO-WHAT-KEYWORD [{ target/xfail SELECTOR }] }'
  3837. DO-WHAT-KEYWORD specifies how the test is compiled and whether it
  3838. is executed. It is one of:
  3839. 'preprocess'
  3840. Compile with '-E' to run only the preprocessor.
  3841. 'compile'
  3842. Compile with '-S' to produce an assembly code file.
  3843. 'assemble'
  3844. Compile with '-c' to produce a relocatable object file.
  3845. 'link'
  3846. Compile, assemble, and link to produce an executable file.
  3847. 'run'
  3848. Produce and run an executable file, which is expected to
  3849. return an exit code of 0.
  3850. The default is 'compile'. That can be overridden for a set of
  3851. tests by redefining 'dg-do-what-default' within the '.exp' file for
  3852. those tests.
  3853. If the directive includes the optional '{ target SELECTOR }' then
  3854. the test is skipped unless the target system matches the SELECTOR.
  3855. If DO-WHAT-KEYWORD is 'run' and the directive includes the optional
  3856. '{ xfail SELECTOR }' and the selector is met then the test is
  3857. expected to fail. The 'xfail' clause is ignored for other values
  3858. of DO-WHAT-KEYWORD; those tests can use directive 'dg-xfail-if'.
  3859. 7.2.1.2 Specify additional compiler options
  3860. ...........................................
  3861. '{ dg-options OPTIONS [{ target SELECTOR }] }'
  3862. This DejaGnu directive provides a list of compiler options, to be
  3863. used if the target system matches SELECTOR, that replace the
  3864. default options used for this set of tests.
  3865. '{ dg-add-options FEATURE ... }'
  3866. Add any compiler options that are needed to access certain
  3867. features. This directive does nothing on targets that enable the
  3868. features by default, or that don't provide them at all. It must
  3869. come after all 'dg-options' directives. For supported values of
  3870. FEATURE see *note Add Options::.
  3871. '{ dg-additional-options OPTIONS [{ target SELECTOR }] }'
  3872. This directive provides a list of compiler options, to be used if
  3873. the target system matches SELECTOR, that are added to the default
  3874. options used for this set of tests.
  3875. 7.2.1.3 Modify the test timeout value
  3876. .....................................
  3877. The normal timeout limit, in seconds, is found by searching the
  3878. following in order:
  3879. * the value defined by an earlier 'dg-timeout' directive in the test
  3880. * variable TOOL_TIMEOUT defined by the set of tests
  3881. * GCC,TIMEOUT set in the target board
  3882. * 300
  3883. '{ dg-timeout N [{target SELECTOR }] }'
  3884. Set the time limit for the compilation and for the execution of the
  3885. test to the specified number of seconds.
  3886. '{ dg-timeout-factor X [{ target SELECTOR }] }'
  3887. Multiply the normal time limit for compilation and execution of the
  3888. test by the specified floating-point factor.
  3889. 7.2.1.4 Skip a test for some targets
  3890. ....................................
  3891. '{ dg-skip-if COMMENT { SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]] }'
  3892. Arguments INCLUDE-OPTS and EXCLUDE-OPTS are lists in which each
  3893. element is a string of zero or more GCC options. Skip the test if
  3894. all of the following conditions are met:
  3895. * the test system is included in SELECTOR
  3896. * for at least one of the option strings in INCLUDE-OPTS, every
  3897. option from that string is in the set of options with which
  3898. the test would be compiled; use '"*"' for an INCLUDE-OPTS list
  3899. that matches any options; that is the default if INCLUDE-OPTS
  3900. is not specified
  3901. * for each of the option strings in EXCLUDE-OPTS, at least one
  3902. option from that string is not in the set of options with
  3903. which the test would be compiled; use '""' for an empty
  3904. EXCLUDE-OPTS list; that is the default if EXCLUDE-OPTS is not
  3905. specified
  3906. For example, to skip a test if option '-Os' is present:
  3907. /* { dg-skip-if "" { *-*-* } { "-Os" } { "" } } */
  3908. To skip a test if both options '-O2' and '-g' are present:
  3909. /* { dg-skip-if "" { *-*-* } { "-O2 -g" } { "" } } */
  3910. To skip a test if either '-O2' or '-O3' is present:
  3911. /* { dg-skip-if "" { *-*-* } { "-O2" "-O3" } { "" } } */
  3912. To skip a test unless option '-Os' is present:
  3913. /* { dg-skip-if "" { *-*-* } { "*" } { "-Os" } } */
  3914. To skip a test if either '-O2' or '-O3' is used with '-g' but not
  3915. if '-fpic' is also present:
  3916. /* { dg-skip-if "" { *-*-* } { "-O2 -g" "-O3 -g" } { "-fpic" } } */
  3917. '{ dg-require-effective-target KEYWORD [{ target SELECTOR }] }'
  3918. Skip the test if the test target, including current multilib flags,
  3919. is not covered by the effective-target keyword. If the directive
  3920. includes the optional '{ SELECTOR }' then the effective-target test
  3921. is only performed if the target system matches the SELECTOR. This
  3922. directive must appear after any 'dg-do' directive in the test and
  3923. before any 'dg-additional-sources' directive. *Note
  3924. Effective-Target Keywords::.
  3925. '{ dg-require-SUPPORT args }'
  3926. Skip the test if the target does not provide the required support.
  3927. These directives must appear after any 'dg-do' directive in the
  3928. test and before any 'dg-additional-sources' directive. They
  3929. require at least one argument, which can be an empty string if the
  3930. specific procedure does not examine the argument. *Note Require
  3931. Support::, for a complete list of these directives.
  3932. 7.2.1.5 Expect a test to fail for some targets
  3933. ..............................................
  3934. '{ dg-xfail-if COMMENT { SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]] }'
  3935. Expect the test to fail if the conditions (which are the same as
  3936. for 'dg-skip-if') are met. This does not affect the execute step.
  3937. '{ dg-xfail-run-if COMMENT { SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]] }'
  3938. Expect the execute step of a test to fail if the conditions (which
  3939. are the same as for 'dg-skip-if') are met.
  3940. 7.2.1.6 Expect the compiler to crash
  3941. ....................................
  3942. '{ dg-ice COMMENT [{ SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]]] }'
  3943. Expect the compiler to crash with an internal compiler error and
  3944. return a nonzero exit status if the conditions (which are the same
  3945. as for 'dg-skip-if') are met. Used for tests that test bugs that
  3946. have not been fixed yet.
  3947. 7.2.1.7 Expect the test executable to fail
  3948. ..........................................
  3949. '{ dg-shouldfail COMMENT [{ SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]]] }'
  3950. Expect the test executable to return a nonzero exit status if the
  3951. conditions (which are the same as for 'dg-skip-if') are met.
  3952. 7.2.1.8 Verify compiler messages
  3953. ................................
  3954. Where LINE is an accepted argument for these commands, a value of '0'
  3955. can be used if there is no line associated with the message.
  3956. '{ dg-error REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3957. This DejaGnu directive appears on a source line that is expected to
  3958. get an error message, or else specifies the source line associated
  3959. with the message. If there is no message for that line or if the
  3960. text of that message is not matched by REGEXP then the check fails
  3961. and COMMENT is included in the 'FAIL' message. The check does not
  3962. look for the string 'error' unless it is part of REGEXP.
  3963. '{ dg-warning REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3964. This DejaGnu directive appears on a source line that is expected to
  3965. get a warning message, or else specifies the source line associated
  3966. with the message. If there is no message for that line or if the
  3967. text of that message is not matched by REGEXP then the check fails
  3968. and COMMENT is included in the 'FAIL' message. The check does not
  3969. look for the string 'warning' unless it is part of REGEXP.
  3970. '{ dg-message REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3971. The line is expected to get a message other than an error or
  3972. warning. If there is no message for that line or if the text of
  3973. that message is not matched by REGEXP then the check fails and
  3974. COMMENT is included in the 'FAIL' message.
  3975. '{ dg-bogus REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3976. This DejaGnu directive appears on a source line that should not get
  3977. a message matching REGEXP, or else specifies the source line
  3978. associated with the bogus message. It is usually used with 'xfail'
  3979. to indicate that the message is a known problem for a particular
  3980. set of targets.
  3981. '{ dg-line LINENUMVAR }'
  3982. This DejaGnu directive sets the variable LINENUMVAR to the line
  3983. number of the source line. The variable LINENUMVAR can then be
  3984. used in subsequent 'dg-error', 'dg-warning', 'dg-message' and
  3985. 'dg-bogus' directives. For example:
  3986. int a; /* { dg-line first_def_a } */
  3987. float a; /* { dg-error "conflicting types of" } */
  3988. /* { dg-message "previous declaration of" "" { target *-*-* } first_def_a } */
  3989. '{ dg-excess-errors COMMENT [{ target/xfail SELECTOR }] }'
  3990. This DejaGnu directive indicates that the test is expected to fail
  3991. due to compiler messages that are not handled by 'dg-error',
  3992. 'dg-warning' or 'dg-bogus'. For this directive 'xfail' has the
  3993. same effect as 'target'.
  3994. '{ dg-prune-output REGEXP }'
  3995. Prune messages matching REGEXP from the test output.
  3996. 7.2.1.9 Verify output of the test executable
  3997. ............................................
  3998. '{ dg-output REGEXP [{ target/xfail SELECTOR }] }'
  3999. This DejaGnu directive compares REGEXP to the combined output that
  4000. the test executable writes to 'stdout' and 'stderr'.
  4001. 7.2.1.10 Specify environment variables for a test
  4002. .................................................
  4003. '{ dg-set-compiler-env-var VAR_NAME "VAR_VALUE" }'
  4004. Specify that the environment variable VAR_NAME needs to be set to
  4005. VAR_VALUE before invoking the compiler on the test file.
  4006. '{ dg-set-target-env-var VAR_NAME "VAR_VALUE" }'
  4007. Specify that the environment variable VAR_NAME needs to be set to
  4008. VAR_VALUE before execution of the program created by the test.
  4009. 7.2.1.11 Specify additional files for a test
  4010. ............................................
  4011. '{ dg-additional-files "FILELIST" }'
  4012. Specify additional files, other than source files, that must be
  4013. copied to the system where the compiler runs.
  4014. '{ dg-additional-sources "FILELIST" }'
  4015. Specify additional source files to appear in the compile line
  4016. following the main test file.
  4017. 7.2.1.12 Add checks at the end of a test
  4018. ........................................
  4019. '{ dg-final { LOCAL-DIRECTIVE } }'
  4020. This DejaGnu directive is placed within a comment anywhere in the
  4021. source file and is processed after the test has been compiled and
  4022. run. Multiple 'dg-final' commands are processed in the order in
  4023. which they appear in the source file. *Note Final Actions::, for a
  4024. list of directives that can be used within 'dg-final'.
  4025. 
  4026. File: gccint.info, Node: Selectors, Next: Effective-Target Keywords, Prev: Directives, Up: Test Directives
  4027. 7.2.2 Selecting targets to which a test applies
  4028. -----------------------------------------------
  4029. Several test directives include SELECTORs to limit the targets for which
  4030. a test is run or to declare that a test is expected to fail on
  4031. particular targets.
  4032. A selector is:
  4033. * one or more target triplets, possibly including wildcard
  4034. characters; use '*-*-*' to match any target
  4035. * a single effective-target keyword (*note Effective-Target
  4036. Keywords::)
  4037. * a logical expression
  4038. Depending on the context, the selector specifies whether a test is
  4039. skipped and reported as unsupported or is expected to fail. A context
  4040. that allows either 'target' or 'xfail' also allows '{ target SELECTOR1
  4041. xfail SELECTOR2 }' to skip the test for targets that don't match
  4042. SELECTOR1 and the test to fail for targets that match SELECTOR2.
  4043. A selector expression appears within curly braces and uses a single
  4044. logical operator: one of '!', '&&', or '||'. An operand is another
  4045. selector expression, an effective-target keyword, a single target
  4046. triplet, or a list of target triplets within quotes or curly braces.
  4047. For example:
  4048. { target { ! "hppa*-*-* ia64*-*-*" } }
  4049. { target { powerpc*-*-* && lp64 } }
  4050. { xfail { lp64 || vect_no_align } }
  4051. 
  4052. File: gccint.info, Node: Effective-Target Keywords, Next: Add Options, Prev: Selectors, Up: Test Directives
  4053. 7.2.3 Keywords describing target attributes
  4054. -------------------------------------------
  4055. Effective-target keywords identify sets of targets that support
  4056. particular functionality. They are used to limit tests to be run only
  4057. for particular targets, or to specify that particular sets of targets
  4058. are expected to fail some tests.
  4059. Effective-target keywords are defined in 'lib/target-supports.exp' in
  4060. the GCC testsuite, with the exception of those that are documented as
  4061. being local to a particular test directory.
  4062. The 'effective target' takes into account all of the compiler options
  4063. with which the test will be compiled, including the multilib options.
  4064. By convention, keywords ending in '_nocache' can also include options
  4065. specified for the particular test in an earlier 'dg-options' or
  4066. 'dg-add-options' directive.
  4067. 7.2.3.1 Endianness
  4068. ..................
  4069. 'be'
  4070. Target uses big-endian memory order for multi-byte and multi-word
  4071. data.
  4072. 'le'
  4073. Target uses little-endian memory order for multi-byte and
  4074. multi-word data.
  4075. 7.2.3.2 Data type sizes
  4076. .......................
  4077. 'ilp32'
  4078. Target has 32-bit 'int', 'long', and pointers.
  4079. 'lp64'
  4080. Target has 32-bit 'int', 64-bit 'long' and pointers.
  4081. 'llp64'
  4082. Target has 32-bit 'int' and 'long', 64-bit 'long long' and
  4083. pointers.
  4084. 'double64'
  4085. Target has 64-bit 'double'.
  4086. 'double64plus'
  4087. Target has 'double' that is 64 bits or longer.
  4088. 'longdouble128'
  4089. Target has 128-bit 'long double'.
  4090. 'int32plus'
  4091. Target has 'int' that is at 32 bits or longer.
  4092. 'int16'
  4093. Target has 'int' that is 16 bits or shorter.
  4094. 'longlong64'
  4095. Target has 64-bit 'long long'.
  4096. 'long_neq_int'
  4097. Target has 'int' and 'long' with different sizes.
  4098. 'short_eq_int'
  4099. Target has 'short' and 'int' with the same size.
  4100. 'ptr_eq_short'
  4101. Target has pointers ('void *') and 'short' with the same size.
  4102. 'int_eq_float'
  4103. Target has 'int' and 'float' with the same size.
  4104. 'ptr_eq_long'
  4105. Target has pointers ('void *') and 'long' with the same size.
  4106. 'large_double'
  4107. Target supports 'double' that is longer than 'float'.
  4108. 'large_long_double'
  4109. Target supports 'long double' that is longer than 'double'.
  4110. 'ptr32plus'
  4111. Target has pointers that are 32 bits or longer.
  4112. 'size20plus'
  4113. Target has a 20-bit or larger address space, so supports at least
  4114. 16-bit array and structure sizes.
  4115. 'size24plus'
  4116. Target has a 24-bit or larger address space, so supports at least
  4117. 20-bit array and structure sizes.
  4118. 'size32plus'
  4119. Target has a 32-bit or larger address space, so supports at least
  4120. 24-bit array and structure sizes.
  4121. '4byte_wchar_t'
  4122. Target has 'wchar_t' that is at least 4 bytes.
  4123. 'floatN'
  4124. Target has the '_FloatN' type.
  4125. 'floatNx'
  4126. Target has the '_FloatNx' type.
  4127. 'floatN_runtime'
  4128. Target has the '_FloatN' type, including runtime support for any
  4129. options added with 'dg-add-options'.
  4130. 'floatNx_runtime'
  4131. Target has the '_FloatNx' type, including runtime support for any
  4132. options added with 'dg-add-options'.
  4133. 'floatn_nx_runtime'
  4134. Target has runtime support for any options added with
  4135. 'dg-add-options' for any '_FloatN' or '_FloatNx' type.
  4136. 'inf'
  4137. Target supports floating point infinite ('inf') for type 'double'.
  4138. 'inff'
  4139. Target supports floating point infinite ('inf') for type 'float'.
  4140. 7.2.3.3 Fortran-specific attributes
  4141. ...................................
  4142. 'fortran_integer_16'
  4143. Target supports Fortran 'integer' that is 16 bytes or longer.
  4144. 'fortran_real_10'
  4145. Target supports Fortran 'real' that is 10 bytes or longer.
  4146. 'fortran_real_16'
  4147. Target supports Fortran 'real' that is 16 bytes or longer.
  4148. 'fortran_large_int'
  4149. Target supports Fortran 'integer' kinds larger than 'integer(8)'.
  4150. 'fortran_large_real'
  4151. Target supports Fortran 'real' kinds larger than 'real(8)'.
  4152. 7.2.3.4 Vector-specific attributes
  4153. ..................................
  4154. 'vect_align_stack_vars'
  4155. The target's ABI allows stack variables to be aligned to the
  4156. preferred vector alignment.
  4157. 'vect_avg_qi'
  4158. Target supports both signed and unsigned averaging operations on
  4159. vectors of bytes.
  4160. 'vect_mulhrs_hi'
  4161. Target supports both signed and unsigned
  4162. multiply-high-with-round-and-scale operations on vectors of
  4163. half-words.
  4164. 'vect_sdiv_pow2_si'
  4165. Target supports signed division by constant power-of-2 operations
  4166. on vectors of 4-byte integers.
  4167. 'vect_condition'
  4168. Target supports vector conditional operations.
  4169. 'vect_cond_mixed'
  4170. Target supports vector conditional operations where comparison
  4171. operands have different type from the value operands.
  4172. 'vect_double'
  4173. Target supports hardware vectors of 'double'.
  4174. 'vect_double_cond_arith'
  4175. Target supports conditional addition, subtraction, multiplication,
  4176. division, minimum and maximum on vectors of 'double', via the
  4177. 'cond_' optabs.
  4178. 'vect_element_align_preferred'
  4179. The target's preferred vector alignment is the same as the element
  4180. alignment.
  4181. 'vect_float'
  4182. Target supports hardware vectors of 'float' when
  4183. '-funsafe-math-optimizations' is in effect.
  4184. 'vect_float_strict'
  4185. Target supports hardware vectors of 'float' when
  4186. '-funsafe-math-optimizations' is not in effect. This implies
  4187. 'vect_float'.
  4188. 'vect_int'
  4189. Target supports hardware vectors of 'int'.
  4190. 'vect_long'
  4191. Target supports hardware vectors of 'long'.
  4192. 'vect_long_long'
  4193. Target supports hardware vectors of 'long long'.
  4194. 'vect_check_ptrs'
  4195. Target supports the 'check_raw_ptrs' and 'check_war_ptrs' optabs on
  4196. vectors.
  4197. 'vect_fully_masked'
  4198. Target supports fully-masked (also known as fully-predicated)
  4199. loops, so that vector loops can handle partial as well as full
  4200. vectors.
  4201. 'vect_masked_load'
  4202. Target supports vector masked loads.
  4203. 'vect_masked_store'
  4204. Target supports vector masked stores.
  4205. 'vect_scatter_store'
  4206. Target supports vector scatter stores.
  4207. 'vect_aligned_arrays'
  4208. Target aligns arrays to vector alignment boundary.
  4209. 'vect_hw_misalign'
  4210. Target supports a vector misalign access.
  4211. 'vect_no_align'
  4212. Target does not support a vector alignment mechanism.
  4213. 'vect_peeling_profitable'
  4214. Target might require to peel loops for alignment purposes.
  4215. 'vect_no_int_min_max'
  4216. Target does not support a vector min and max instruction on 'int'.
  4217. 'vect_no_int_add'
  4218. Target does not support a vector add instruction on 'int'.
  4219. 'vect_no_bitwise'
  4220. Target does not support vector bitwise instructions.
  4221. 'vect_bool_cmp'
  4222. Target supports comparison of 'bool' vectors for at least one
  4223. vector length.
  4224. 'vect_char_add'
  4225. Target supports addition of 'char' vectors for at least one vector
  4226. length.
  4227. 'vect_char_mult'
  4228. Target supports 'vector char' multiplication.
  4229. 'vect_short_mult'
  4230. Target supports 'vector short' multiplication.
  4231. 'vect_int_mult'
  4232. Target supports 'vector int' multiplication.
  4233. 'vect_long_mult'
  4234. Target supports 64 bit 'vector long' multiplication.
  4235. 'vect_extract_even_odd'
  4236. Target supports vector even/odd element extraction.
  4237. 'vect_extract_even_odd_wide'
  4238. Target supports vector even/odd element extraction of vectors with
  4239. elements 'SImode' or larger.
  4240. 'vect_interleave'
  4241. Target supports vector interleaving.
  4242. 'vect_strided'
  4243. Target supports vector interleaving and extract even/odd.
  4244. 'vect_strided_wide'
  4245. Target supports vector interleaving and extract even/odd for wide
  4246. element types.
  4247. 'vect_perm'
  4248. Target supports vector permutation.
  4249. 'vect_perm_byte'
  4250. Target supports permutation of vectors with 8-bit elements.
  4251. 'vect_perm_short'
  4252. Target supports permutation of vectors with 16-bit elements.
  4253. 'vect_perm3_byte'
  4254. Target supports permutation of vectors with 8-bit elements, and for
  4255. the default vector length it is possible to permute:
  4256. { a0, a1, a2, b0, b1, b2, ... }
  4257. to:
  4258. { a0, a0, a0, b0, b0, b0, ... }
  4259. { a1, a1, a1, b1, b1, b1, ... }
  4260. { a2, a2, a2, b2, b2, b2, ... }
  4261. using only two-vector permutes, regardless of how long the sequence
  4262. is.
  4263. 'vect_perm3_int'
  4264. Like 'vect_perm3_byte', but for 32-bit elements.
  4265. 'vect_perm3_short'
  4266. Like 'vect_perm3_byte', but for 16-bit elements.
  4267. 'vect_shift'
  4268. Target supports a hardware vector shift operation.
  4269. 'vect_unaligned_possible'
  4270. Target prefers vectors to have an alignment greater than element
  4271. alignment, but also allows unaligned vector accesses in some
  4272. circumstances.
  4273. 'vect_variable_length'
  4274. Target has variable-length vectors.
  4275. 'vect_widen_sum_hi_to_si'
  4276. Target supports a vector widening summation of 'short' operands
  4277. into 'int' results, or can promote (unpack) from 'short' to 'int'.
  4278. 'vect_widen_sum_qi_to_hi'
  4279. Target supports a vector widening summation of 'char' operands into
  4280. 'short' results, or can promote (unpack) from 'char' to 'short'.
  4281. 'vect_widen_sum_qi_to_si'
  4282. Target supports a vector widening summation of 'char' operands into
  4283. 'int' results.
  4284. 'vect_widen_mult_qi_to_hi'
  4285. Target supports a vector widening multiplication of 'char' operands
  4286. into 'short' results, or can promote (unpack) from 'char' to
  4287. 'short' and perform non-widening multiplication of 'short'.
  4288. 'vect_widen_mult_hi_to_si'
  4289. Target supports a vector widening multiplication of 'short'
  4290. operands into 'int' results, or can promote (unpack) from 'short'
  4291. to 'int' and perform non-widening multiplication of 'int'.
  4292. 'vect_widen_mult_si_to_di_pattern'
  4293. Target supports a vector widening multiplication of 'int' operands
  4294. into 'long' results.
  4295. 'vect_sdot_qi'
  4296. Target supports a vector dot-product of 'signed char'.
  4297. 'vect_udot_qi'
  4298. Target supports a vector dot-product of 'unsigned char'.
  4299. 'vect_sdot_hi'
  4300. Target supports a vector dot-product of 'signed short'.
  4301. 'vect_udot_hi'
  4302. Target supports a vector dot-product of 'unsigned short'.
  4303. 'vect_pack_trunc'
  4304. Target supports a vector demotion (packing) of 'short' to 'char'
  4305. and from 'int' to 'short' using modulo arithmetic.
  4306. 'vect_unpack'
  4307. Target supports a vector promotion (unpacking) of 'char' to 'short'
  4308. and from 'char' to 'int'.
  4309. 'vect_intfloat_cvt'
  4310. Target supports conversion from 'signed int' to 'float'.
  4311. 'vect_uintfloat_cvt'
  4312. Target supports conversion from 'unsigned int' to 'float'.
  4313. 'vect_floatint_cvt'
  4314. Target supports conversion from 'float' to 'signed int'.
  4315. 'vect_floatuint_cvt'
  4316. Target supports conversion from 'float' to 'unsigned int'.
  4317. 'vect_intdouble_cvt'
  4318. Target supports conversion from 'signed int' to 'double'.
  4319. 'vect_doubleint_cvt'
  4320. Target supports conversion from 'double' to 'signed int'.
  4321. 'vect_max_reduc'
  4322. Target supports max reduction for vectors.
  4323. 'vect_sizes_16B_8B'
  4324. Target supports 16- and 8-bytes vectors.
  4325. 'vect_sizes_32B_16B'
  4326. Target supports 32- and 16-bytes vectors.
  4327. 'vect_logical_reduc'
  4328. Target supports AND, IOR and XOR reduction on vectors.
  4329. 'vect_fold_extract_last'
  4330. Target supports the 'fold_extract_last' optab.
  4331. 'vect_len_load_store'
  4332. Target supports the 'len_load' and 'len_store' optabs.
  4333. 'vect_partial_vectors_usage_1'
  4334. Target supports loop vectorization with partial vectors and
  4335. 'vect-partial-vector-usage' is set to 1.
  4336. 'vect_partial_vectors_usage_2'
  4337. Target supports loop vectorization with partial vectors and
  4338. 'vect-partial-vector-usage' is set to 2.
  4339. 'vect_partial_vectors'
  4340. Target supports loop vectorization with partial vectors and
  4341. 'vect-partial-vector-usage' is nonzero.
  4342. 7.2.3.5 Thread Local Storage attributes
  4343. .......................................
  4344. 'tls'
  4345. Target supports thread-local storage.
  4346. 'tls_native'
  4347. Target supports native (rather than emulated) thread-local storage.
  4348. 'tls_runtime'
  4349. Test system supports executing TLS executables.
  4350. 7.2.3.6 Decimal floating point attributes
  4351. .........................................
  4352. 'dfp'
  4353. Targets supports compiling decimal floating point extension to C.
  4354. 'dfp_nocache'
  4355. Including the options used to compile this particular test, the
  4356. target supports compiling decimal floating point extension to C.
  4357. 'dfprt'
  4358. Test system can execute decimal floating point tests.
  4359. 'dfprt_nocache'
  4360. Including the options used to compile this particular test, the
  4361. test system can execute decimal floating point tests.
  4362. 'hard_dfp'
  4363. Target generates decimal floating point instructions with current
  4364. options.
  4365. 7.2.3.7 ARM-specific attributes
  4366. ...............................
  4367. 'arm32'
  4368. ARM target generates 32-bit code.
  4369. 'arm_little_endian'
  4370. ARM target that generates little-endian code.
  4371. 'arm_eabi'
  4372. ARM target adheres to the ABI for the ARM Architecture.
  4373. 'arm_fp_ok'
  4374. ARM target defines '__ARM_FP' using '-mfloat-abi=softfp' or
  4375. equivalent options. Some multilibs may be incompatible with these
  4376. options.
  4377. 'arm_fp_dp_ok'
  4378. ARM target defines '__ARM_FP' with double-precision support using
  4379. '-mfloat-abi=softfp' or equivalent options. Some multilibs may be
  4380. incompatible with these options.
  4381. 'arm_hf_eabi'
  4382. ARM target adheres to the VFP and Advanced SIMD Register Arguments
  4383. variant of the ABI for the ARM Architecture (as selected with
  4384. '-mfloat-abi=hard').
  4385. 'arm_softfloat'
  4386. ARM target uses emulated floating point operations.
  4387. 'arm_hard_vfp_ok'
  4388. ARM target supports '-mfpu=vfp -mfloat-abi=hard'. Some multilibs
  4389. may be incompatible with these options.
  4390. 'arm_iwmmxt_ok'
  4391. ARM target supports '-mcpu=iwmmxt'. Some multilibs may be
  4392. incompatible with this option.
  4393. 'arm_neon'
  4394. ARM target supports generating NEON instructions.
  4395. 'arm_tune_string_ops_prefer_neon'
  4396. Test CPU tune supports inlining string operations with NEON
  4397. instructions.
  4398. 'arm_neon_hw'
  4399. Test system supports executing NEON instructions.
  4400. 'arm_neonv2_hw'
  4401. Test system supports executing NEON v2 instructions.
  4402. 'arm_neon_ok'
  4403. ARM Target supports '-mfpu=neon -mfloat-abi=softfp' or compatible
  4404. options. Some multilibs may be incompatible with these options.
  4405. 'arm_neon_ok_no_float_abi'
  4406. ARM Target supports NEON with '-mfpu=neon', but without any
  4407. -mfloat-abi= option. Some multilibs may be incompatible with this
  4408. option.
  4409. 'arm_neonv2_ok'
  4410. ARM Target supports '-mfpu=neon-vfpv4 -mfloat-abi=softfp' or
  4411. compatible options. Some multilibs may be incompatible with these
  4412. options.
  4413. 'arm_fp16_ok'
  4414. Target supports options to generate VFP half-precision
  4415. floating-point instructions. Some multilibs may be incompatible
  4416. with these options. This test is valid for ARM only.
  4417. 'arm_fp16_hw'
  4418. Target supports executing VFP half-precision floating-point
  4419. instructions. This test is valid for ARM only.
  4420. 'arm_neon_fp16_ok'
  4421. ARM Target supports '-mfpu=neon-fp16 -mfloat-abi=softfp' or
  4422. compatible options, including '-mfp16-format=ieee' if necessary to
  4423. obtain the '__fp16' type. Some multilibs may be incompatible with
  4424. these options.
  4425. 'arm_neon_fp16_hw'
  4426. Test system supports executing Neon half-precision float
  4427. instructions. (Implies previous.)
  4428. 'arm_fp16_alternative_ok'
  4429. ARM target supports the ARM FP16 alternative format. Some
  4430. multilibs may be incompatible with the options needed.
  4431. 'arm_fp16_none_ok'
  4432. ARM target supports specifying none as the ARM FP16 format.
  4433. 'arm_thumb1_ok'
  4434. ARM target generates Thumb-1 code for '-mthumb'.
  4435. 'arm_thumb2_ok'
  4436. ARM target generates Thumb-2 code for '-mthumb'.
  4437. 'arm_nothumb'
  4438. ARM target that is not using Thumb.
  4439. 'arm_vfp_ok'
  4440. ARM target supports '-mfpu=vfp -mfloat-abi=softfp'. Some multilibs
  4441. may be incompatible with these options.
  4442. 'arm_vfp3_ok'
  4443. ARM target supports '-mfpu=vfp3 -mfloat-abi=softfp'. Some
  4444. multilibs may be incompatible with these options.
  4445. 'arm_arch_v8a_hard_ok'
  4446. The compiler is targeting 'arm*-*-*' and can compile and assemble
  4447. code using the options '-march=armv8-a -mfpu=neon-fp-armv8
  4448. -mfloat-abi=hard'. This is not enough to guarantee that linking
  4449. works.
  4450. 'arm_arch_v8a_hard_multilib'
  4451. The compiler is targeting 'arm*-*-*' and can build programs using
  4452. the options '-march=armv8-a -mfpu=neon-fp-armv8 -mfloat-abi=hard'.
  4453. The target can also run the resulting binaries.
  4454. 'arm_v8_vfp_ok'
  4455. ARM target supports '-mfpu=fp-armv8 -mfloat-abi=softfp'. Some
  4456. multilibs may be incompatible with these options.
  4457. 'arm_v8_neon_ok'
  4458. ARM target supports '-mfpu=neon-fp-armv8 -mfloat-abi=softfp'. Some
  4459. multilibs may be incompatible with these options.
  4460. 'arm_v8_1a_neon_ok'
  4461. ARM target supports options to generate ARMv8.1-A Adv.SIMD
  4462. instructions. Some multilibs may be incompatible with these
  4463. options.
  4464. 'arm_v8_1a_neon_hw'
  4465. ARM target supports executing ARMv8.1-A Adv.SIMD instructions.
  4466. Some multilibs may be incompatible with the options needed.
  4467. Implies arm_v8_1a_neon_ok.
  4468. 'arm_acq_rel'
  4469. ARM target supports acquire-release instructions.
  4470. 'arm_v8_2a_fp16_scalar_ok'
  4471. ARM target supports options to generate instructions for ARMv8.2-A
  4472. and scalar instructions from the FP16 extension. Some multilibs
  4473. may be incompatible with these options.
  4474. 'arm_v8_2a_fp16_scalar_hw'
  4475. ARM target supports executing instructions for ARMv8.2-A and scalar
  4476. instructions from the FP16 extension. Some multilibs may be
  4477. incompatible with these options. Implies arm_v8_2a_fp16_neon_ok.
  4478. 'arm_v8_2a_fp16_neon_ok'
  4479. ARM target supports options to generate instructions from ARMv8.2-A
  4480. with the FP16 extension. Some multilibs may be incompatible with
  4481. these options. Implies arm_v8_2a_fp16_scalar_ok.
  4482. 'arm_v8_2a_fp16_neon_hw'
  4483. ARM target supports executing instructions from ARMv8.2-A with the
  4484. FP16 extension. Some multilibs may be incompatible with these
  4485. options. Implies arm_v8_2a_fp16_neon_ok and
  4486. arm_v8_2a_fp16_scalar_hw.
  4487. 'arm_v8_2a_dotprod_neon_ok'
  4488. ARM target supports options to generate instructions from ARMv8.2-A
  4489. with the Dot Product extension. Some multilibs may be incompatible
  4490. with these options.
  4491. 'arm_v8_2a_dotprod_neon_hw'
  4492. ARM target supports executing instructions from ARMv8.2-A with the
  4493. Dot Product extension. Some multilibs may be incompatible with
  4494. these options. Implies arm_v8_2a_dotprod_neon_ok.
  4495. 'arm_fp16fml_neon_ok'
  4496. ARM target supports extensions to generate the 'VFMAL' and 'VFMLS'
  4497. half-precision floating-point instructions available from ARMv8.2-A
  4498. and onwards. Some multilibs may be incompatible with these
  4499. options.
  4500. 'arm_v8_2a_bf16_neon_ok'
  4501. ARM target supports options to generate instructions from ARMv8.2-A
  4502. with the BFloat16 extension (bf16). Some multilibs may be
  4503. incompatible with these options.
  4504. 'arm_v8_2a_i8mm_ok'
  4505. ARM target supports options to generate instructions from ARMv8.2-A
  4506. with the 8-Bit Integer Matrix Multiply extension (i8mm). Some
  4507. multilibs may be incompatible with these options.
  4508. 'arm_v8_1m_mve_ok'
  4509. ARM target supports options to generate instructions from ARMv8.1-M
  4510. with the M-Profile Vector Extension (MVE). Some multilibs may be
  4511. incompatible with these options.
  4512. 'arm_v8_1m_mve_fp_ok'
  4513. ARM target supports options to generate instructions from ARMv8.1-M
  4514. with the Half-precision floating-point instructions (HP),
  4515. Floating-point Extension (FP) along with M-Profile Vector Extension
  4516. (MVE). Some multilibs may be incompatible with these options.
  4517. 'arm_mve_hw'
  4518. Test system supports executing MVE instructions.
  4519. 'arm_v8m_main_cde'
  4520. ARM target supports options to generate instructions from ARMv8-M
  4521. with the Custom Datapath Extension (CDE). Some multilibs may be
  4522. incompatible with these options.
  4523. 'arm_v8m_main_cde_fp'
  4524. ARM target supports options to generate instructions from ARMv8-M
  4525. with the Custom Datapath Extension (CDE) and floating-point (VFP).
  4526. Some multilibs may be incompatible with these options.
  4527. 'arm_v8_1m_main_cde_mve'
  4528. ARM target supports options to generate instructions from ARMv8.1-M
  4529. with the Custom Datapath Extension (CDE) and M-Profile Vector
  4530. Extension (MVE). Some multilibs may be incompatible with these
  4531. options.
  4532. 'arm_prefer_ldrd_strd'
  4533. ARM target prefers 'LDRD' and 'STRD' instructions over 'LDM' and
  4534. 'STM' instructions.
  4535. 'arm_thumb1_movt_ok'
  4536. ARM target generates Thumb-1 code for '-mthumb' with 'MOVW' and
  4537. 'MOVT' instructions available.
  4538. 'arm_thumb1_cbz_ok'
  4539. ARM target generates Thumb-1 code for '-mthumb' with 'CBZ' and
  4540. 'CBNZ' instructions available.
  4541. 'arm_divmod_simode'
  4542. ARM target for which divmod transform is disabled, if it supports
  4543. hardware div instruction.
  4544. 'arm_cmse_ok'
  4545. ARM target supports ARMv8-M Security Extensions, enabled by the
  4546. '-mcmse' option.
  4547. 'arm_coproc1_ok'
  4548. ARM target supports the following coprocessor instructions: 'CDP',
  4549. 'LDC', 'STC', 'MCR' and 'MRC'.
  4550. 'arm_coproc2_ok'
  4551. ARM target supports all the coprocessor instructions also listed as
  4552. supported in *note arm_coproc1_ok:: in addition to the following:
  4553. 'CDP2', 'LDC2', 'LDC2l', 'STC2', 'STC2l', 'MCR2' and 'MRC2'.
  4554. 'arm_coproc3_ok'
  4555. ARM target supports all the coprocessor instructions also listed as
  4556. supported in *note arm_coproc2_ok:: in addition the following:
  4557. 'MCRR' and 'MRRC'.
  4558. 'arm_coproc4_ok'
  4559. ARM target supports all the coprocessor instructions also listed as
  4560. supported in *note arm_coproc3_ok:: in addition the following:
  4561. 'MCRR2' and 'MRRC2'.
  4562. 'arm_simd32_ok'
  4563. ARM Target supports options suitable for accessing the SIMD32
  4564. intrinsics from 'arm_acle.h'. Some multilibs may be incompatible
  4565. with these options.
  4566. 'arm_qbit_ok'
  4567. ARM Target supports options suitable for accessing the Q-bit
  4568. manipulation intrinsics from 'arm_acle.h'. Some multilibs may be
  4569. incompatible with these options.
  4570. 'arm_dsp_ok'
  4571. ARM Target supports options suitable for accessing the DSP
  4572. intrinsics from 'arm_acle.h'. Some multilibs may be incompatible
  4573. with these options.
  4574. 'arm_softfp_ok'
  4575. ARM target supports the '-mfloat-abi=softfp' option.
  4576. 'arm_hard_ok'
  4577. ARM target supports the '-mfloat-abi=hard' option.
  4578. 'arm_v8_1_lob_ok'
  4579. ARM Target supports executing the Armv8.1-M Mainline Low Overhead
  4580. Loop instructions 'DLS' and 'LE'. Some multilibs may be
  4581. incompatible with these options.
  4582. 'arm_thumb2_no_arm_v8_1_lob'
  4583. ARM target where Thumb-2 is used without options but does not
  4584. support executing the Armv8.1-M Mainline Low Overhead Loop
  4585. instructions 'DLS' and 'LE'.
  4586. 'arm_thumb2_ok_no_arm_v8_1_lob'
  4587. ARM target generates Thumb-2 code for '-mthumb' but does not
  4588. support executing the Armv8.1-M Mainline Low Overhead Loop
  4589. instructions 'DLS' and 'LE'.
  4590. 7.2.3.8 AArch64-specific attributes
  4591. ...................................
  4592. 'aarch64_asm_<ext>_ok'
  4593. AArch64 assembler supports the architecture extension 'ext' via the
  4594. '.arch_extension' pseudo-op.
  4595. 'aarch64_tiny'
  4596. AArch64 target which generates instruction sequences for tiny
  4597. memory model.
  4598. 'aarch64_small'
  4599. AArch64 target which generates instruction sequences for small
  4600. memory model.
  4601. 'aarch64_large'
  4602. AArch64 target which generates instruction sequences for large
  4603. memory model.
  4604. 'aarch64_little_endian'
  4605. AArch64 target which generates instruction sequences for little
  4606. endian.
  4607. 'aarch64_big_endian'
  4608. AArch64 target which generates instruction sequences for big
  4609. endian.
  4610. 'aarch64_small_fpic'
  4611. Binutils installed on test system supports relocation types
  4612. required by -fpic for AArch64 small memory model.
  4613. 'aarch64_sve_hw'
  4614. AArch64 target that is able to generate and execute SVE code
  4615. (regardless of whether it does so by default).
  4616. 'aarch64_sve128_hw'
  4617. 'aarch64_sve256_hw'
  4618. 'aarch64_sve512_hw'
  4619. 'aarch64_sve1024_hw'
  4620. 'aarch64_sve2048_hw'
  4621. Like 'aarch64_sve_hw', but also test for an exact hardware vector
  4622. length.
  4623. 'aarch64_fjcvtzs_hw'
  4624. AArch64 target that is able to generate and execute armv8.3-a
  4625. FJCVTZS instruction.
  4626. 7.2.3.9 MIPS-specific attributes
  4627. ................................
  4628. 'mips64'
  4629. MIPS target supports 64-bit instructions.
  4630. 'nomips16'
  4631. MIPS target does not produce MIPS16 code.
  4632. 'mips16_attribute'
  4633. MIPS target can generate MIPS16 code.
  4634. 'mips_loongson'
  4635. MIPS target is a Loongson-2E or -2F target using an ABI that
  4636. supports the Loongson vector modes.
  4637. 'mips_msa'
  4638. MIPS target supports '-mmsa', MIPS SIMD Architecture (MSA).
  4639. 'mips_newabi_large_long_double'
  4640. MIPS target supports 'long double' larger than 'double' when using
  4641. the new ABI.
  4642. 'mpaired_single'
  4643. MIPS target supports '-mpaired-single'.
  4644. 7.2.3.10 MSP430-specific attributes
  4645. ...................................
  4646. 'msp430_small'
  4647. MSP430 target has the small memory model enabled ('-msmall').
  4648. 'msp430_large'
  4649. MSP430 target has the large memory model enabled ('-mlarge').
  4650. 7.2.3.11 PowerPC-specific attributes
  4651. ....................................
  4652. 'dfp_hw'
  4653. PowerPC target supports executing hardware DFP instructions.
  4654. 'p8vector_hw'
  4655. PowerPC target supports executing VSX instructions (ISA 2.07).
  4656. 'powerpc64'
  4657. Test system supports executing 64-bit instructions.
  4658. 'powerpc_altivec'
  4659. PowerPC target supports AltiVec.
  4660. 'powerpc_altivec_ok'
  4661. PowerPC target supports '-maltivec'.
  4662. 'powerpc_eabi_ok'
  4663. PowerPC target supports '-meabi'.
  4664. 'powerpc_elfv2'
  4665. PowerPC target supports '-mabi=elfv2'.
  4666. 'powerpc_fprs'
  4667. PowerPC target supports floating-point registers.
  4668. 'powerpc_hard_double'
  4669. PowerPC target supports hardware double-precision floating-point.
  4670. 'powerpc_htm_ok'
  4671. PowerPC target supports '-mhtm'
  4672. 'powerpc_p8vector_ok'
  4673. PowerPC target supports '-mpower8-vector'
  4674. 'powerpc_popcntb_ok'
  4675. PowerPC target supports the 'popcntb' instruction, indicating that
  4676. this target supports '-mcpu=power5'.
  4677. 'powerpc_ppu_ok'
  4678. PowerPC target supports '-mcpu=cell'.
  4679. 'powerpc_spe'
  4680. PowerPC target supports PowerPC SPE.
  4681. 'powerpc_spe_nocache'
  4682. Including the options used to compile this particular test, the
  4683. PowerPC target supports PowerPC SPE.
  4684. 'powerpc_spu'
  4685. PowerPC target supports PowerPC SPU.
  4686. 'powerpc_vsx_ok'
  4687. PowerPC target supports '-mvsx'.
  4688. 'powerpc_405_nocache'
  4689. Including the options used to compile this particular test, the
  4690. PowerPC target supports PowerPC 405.
  4691. 'ppc_recip_hw'
  4692. PowerPC target supports executing reciprocal estimate instructions.
  4693. 'vmx_hw'
  4694. PowerPC target supports executing AltiVec instructions.
  4695. 'vsx_hw'
  4696. PowerPC target supports executing VSX instructions (ISA 2.06).
  4697. 'has_arch_pwr5'
  4698. PowerPC target pre-defines macro _ARCH_PWR5 which means the '-mcpu'
  4699. setting is Power5 or later.
  4700. 'has_arch_pwr6'
  4701. PowerPC target pre-defines macro _ARCH_PWR6 which means the '-mcpu'
  4702. setting is Power6 or later.
  4703. 'has_arch_pwr7'
  4704. PowerPC target pre-defines macro _ARCH_PWR7 which means the '-mcpu'
  4705. setting is Power7 or later.
  4706. 'has_arch_pwr8'
  4707. PowerPC target pre-defines macro _ARCH_PWR8 which means the '-mcpu'
  4708. setting is Power8 or later.
  4709. 'has_arch_pwr9'
  4710. PowerPC target pre-defines macro _ARCH_PWR9 which means the '-mcpu'
  4711. setting is Power9 or later.
  4712. 7.2.3.12 Other hardware attributes
  4713. ..................................
  4714. 'autoincdec'
  4715. Target supports autoincrement/decrement addressing.
  4716. 'avx'
  4717. Target supports compiling 'avx' instructions.
  4718. 'avx_runtime'
  4719. Target supports the execution of 'avx' instructions.
  4720. 'avx2'
  4721. Target supports compiling 'avx2' instructions.
  4722. 'avx2_runtime'
  4723. Target supports the execution of 'avx2' instructions.
  4724. 'avxvnni'
  4725. Target supports the execution of 'avxvnni' instructions.
  4726. 'avx512f'
  4727. Target supports compiling 'avx512f' instructions.
  4728. 'avx512f_runtime'
  4729. Target supports the execution of 'avx512f' instructions.
  4730. 'avx512vp2intersect'
  4731. Target supports the execution of 'avx512vp2intersect' instructions.
  4732. 'amx_tile'
  4733. Target supports the execution of 'amx-tile' instructions.
  4734. 'amx_int8'
  4735. Target supports the execution of 'amx-int8' instructions.
  4736. 'amx_bf16'
  4737. Target supports the execution of 'amx-bf16' instructions.
  4738. 'cell_hw'
  4739. Test system can execute AltiVec and Cell PPU instructions.
  4740. 'coldfire_fpu'
  4741. Target uses a ColdFire FPU.
  4742. 'divmod'
  4743. Target supporting hardware divmod insn or divmod libcall.
  4744. 'divmod_simode'
  4745. Target supporting hardware divmod insn or divmod libcall for
  4746. SImode.
  4747. 'hard_float'
  4748. Target supports FPU instructions.
  4749. 'non_strict_align'
  4750. Target does not require strict alignment.
  4751. 'pie_copyreloc'
  4752. The x86-64 target linker supports PIE with copy reloc.
  4753. 'rdrand'
  4754. Target supports x86 'rdrand' instruction.
  4755. 'sqrt_insn'
  4756. Target has a square root instruction that the compiler can
  4757. generate.
  4758. 'sse'
  4759. Target supports compiling 'sse' instructions.
  4760. 'sse_runtime'
  4761. Target supports the execution of 'sse' instructions.
  4762. 'sse2'
  4763. Target supports compiling 'sse2' instructions.
  4764. 'sse2_runtime'
  4765. Target supports the execution of 'sse2' instructions.
  4766. 'sync_char_short'
  4767. Target supports atomic operations on 'char' and 'short'.
  4768. 'sync_int_long'
  4769. Target supports atomic operations on 'int' and 'long'.
  4770. 'ultrasparc_hw'
  4771. Test environment appears to run executables on a simulator that
  4772. accepts only 'EM_SPARC' executables and chokes on 'EM_SPARC32PLUS'
  4773. or 'EM_SPARCV9' executables.
  4774. 'vect_cmdline_needed'
  4775. Target requires a command line argument to enable a SIMD
  4776. instruction set.
  4777. 'xorsign'
  4778. Target supports the xorsign optab expansion.
  4779. 7.2.3.13 Environment attributes
  4780. ...............................
  4781. 'c'
  4782. The language for the compiler under test is C.
  4783. 'c++'
  4784. The language for the compiler under test is C++.
  4785. 'c99_runtime'
  4786. Target provides a full C99 runtime.
  4787. 'correct_iso_cpp_string_wchar_protos'
  4788. Target 'string.h' and 'wchar.h' headers provide C++ required
  4789. overloads for 'strchr' etc. functions.
  4790. 'd_runtime'
  4791. Target provides the D runtime.
  4792. 'd_runtime_has_std_library'
  4793. Target provides the D standard library (Phobos).
  4794. 'dummy_wcsftime'
  4795. Target uses a dummy 'wcsftime' function that always returns zero.
  4796. 'fd_truncate'
  4797. Target can truncate a file from a file descriptor, as used by
  4798. 'libgfortran/io/unix.c:fd_truncate'; i.e. 'ftruncate' or 'chsize'.
  4799. 'fenv'
  4800. Target provides 'fenv.h' include file.
  4801. 'fenv_exceptions'
  4802. Target supports 'fenv.h' with all the standard IEEE exceptions and
  4803. floating-point exceptions are raised by arithmetic operations.
  4804. 'fenv_exceptions_dfp'
  4805. Target supports 'fenv.h' with all the standard IEEE exceptions and
  4806. floating-point exceptions are raised by arithmetic operations for
  4807. decimal floating point.
  4808. 'fileio'
  4809. Target offers such file I/O library functions as 'fopen', 'fclose',
  4810. 'tmpnam', and 'remove'. This is a link-time requirement for the
  4811. presence of the functions in the library; even if they fail at
  4812. runtime, the requirement is still regarded as satisfied.
  4813. 'freestanding'
  4814. Target is 'freestanding' as defined in section 4 of the C99
  4815. standard. Effectively, it is a target which supports no extra
  4816. headers or libraries other than what is considered essential.
  4817. 'gettimeofday'
  4818. Target supports 'gettimeofday'.
  4819. 'init_priority'
  4820. Target supports constructors with initialization priority
  4821. arguments.
  4822. 'inttypes_types'
  4823. Target has the basic signed and unsigned types in 'inttypes.h'.
  4824. This is for tests that GCC's notions of these types agree with
  4825. those in the header, as some systems have only 'inttypes.h'.
  4826. 'lax_strtofp'
  4827. Target might have errors of a few ULP in string to floating-point
  4828. conversion functions and overflow is not always detected correctly
  4829. by those functions.
  4830. 'mempcpy'
  4831. Target provides 'mempcpy' function.
  4832. 'mmap'
  4833. Target supports 'mmap'.
  4834. 'newlib'
  4835. Target supports Newlib.
  4836. 'newlib_nano_io'
  4837. GCC was configured with '--enable-newlib-nano-formatted-io', which
  4838. reduces the code size of Newlib formatted I/O functions.
  4839. 'pow10'
  4840. Target provides 'pow10' function.
  4841. 'pthread'
  4842. Target can compile using 'pthread.h' with no errors or warnings.
  4843. 'pthread_h'
  4844. Target has 'pthread.h'.
  4845. 'run_expensive_tests'
  4846. Expensive testcases (usually those that consume excessive amounts
  4847. of CPU time) should be run on this target. This can be enabled by
  4848. setting the 'GCC_TEST_RUN_EXPENSIVE' environment variable to a
  4849. non-empty string.
  4850. 'simulator'
  4851. Test system runs executables on a simulator (i.e. slowly) rather
  4852. than hardware (i.e. fast).
  4853. 'signal'
  4854. Target has 'signal.h'.
  4855. 'stabs'
  4856. Target supports the stabs debugging format.
  4857. 'stdint_types'
  4858. Target has the basic signed and unsigned C types in 'stdint.h'.
  4859. This will be obsolete when GCC ensures a working 'stdint.h' for all
  4860. targets.
  4861. 'stdint_types_mbig_endian'
  4862. Target accepts the option '-mbig-endian' and 'stdint.h' can be
  4863. included without error when '-mbig-endian' is passed.
  4864. 'stpcpy'
  4865. Target provides 'stpcpy' function.
  4866. 'sysconf'
  4867. Target supports 'sysconf'.
  4868. 'trampolines'
  4869. Target supports trampolines.
  4870. 'uclibc'
  4871. Target supports uClibc.
  4872. 'unwrapped'
  4873. Target does not use a status wrapper.
  4874. 'vxworks_kernel'
  4875. Target is a VxWorks kernel.
  4876. 'vxworks_rtp'
  4877. Target is a VxWorks RTP.
  4878. 'wchar'
  4879. Target supports wide characters.
  4880. 7.2.3.14 Other attributes
  4881. .........................
  4882. 'R_flag_in_section'
  4883. Target supports the 'R' flag in .section directive in assembly
  4884. inputs.
  4885. 'automatic_stack_alignment'
  4886. Target supports automatic stack alignment.
  4887. 'branch_cost'
  4888. Target supports '-branch-cost=N'.
  4889. 'cxa_atexit'
  4890. Target uses '__cxa_atexit'.
  4891. 'default_packed'
  4892. Target has packed layout of structure members by default.
  4893. 'exceptions'
  4894. Target supports exceptions.
  4895. 'exceptions_enabled'
  4896. Target supports exceptions and they are enabled in the current
  4897. testing configuration.
  4898. 'fgraphite'
  4899. Target supports Graphite optimizations.
  4900. 'fixed_point'
  4901. Target supports fixed-point extension to C.
  4902. 'fopenacc'
  4903. Target supports OpenACC via '-fopenacc'.
  4904. 'fopenmp'
  4905. Target supports OpenMP via '-fopenmp'.
  4906. 'fpic'
  4907. Target supports '-fpic' and '-fPIC'.
  4908. 'freorder'
  4909. Target supports '-freorder-blocks-and-partition'.
  4910. 'fstack_protector'
  4911. Target supports '-fstack-protector'.
  4912. 'gas'
  4913. Target uses GNU 'as'.
  4914. 'gc_sections'
  4915. Target supports '--gc-sections'.
  4916. 'gld'
  4917. Target uses GNU 'ld'.
  4918. 'keeps_null_pointer_checks'
  4919. Target keeps null pointer checks, either due to the use of
  4920. '-fno-delete-null-pointer-checks' or hardwired into the target.
  4921. 'llvm_binutils'
  4922. Target is using an LLVM assembler and/or linker, instead of GNU
  4923. Binutils.
  4924. 'lra'
  4925. Target supports local register allocator (LRA).
  4926. 'lto'
  4927. Compiler has been configured to support link-time optimization
  4928. (LTO).
  4929. 'lto_incremental'
  4930. Compiler and linker support link-time optimization relocatable
  4931. linking with '-r' and '-flto' options.
  4932. 'naked_functions'
  4933. Target supports the 'naked' function attribute.
  4934. 'named_sections'
  4935. Target supports named sections.
  4936. 'natural_alignment_32'
  4937. Target uses natural alignment (aligned to type size) for types of
  4938. 32 bits or less.
  4939. 'target_natural_alignment_64'
  4940. Target uses natural alignment (aligned to type size) for types of
  4941. 64 bits or less.
  4942. 'noinit'
  4943. Target supports the 'noinit' variable attribute.
  4944. 'nonpic'
  4945. Target does not generate PIC by default.
  4946. 'o_flag_in_section'
  4947. Target supports the 'o' flag in .section directive in assembly
  4948. inputs.
  4949. 'offload_gcn'
  4950. Target has been configured for OpenACC/OpenMP offloading on AMD
  4951. GCN.
  4952. 'persistent'
  4953. Target supports the 'persistent' variable attribute.
  4954. 'pie_enabled'
  4955. Target generates PIE by default.
  4956. 'pcc_bitfield_type_matters'
  4957. Target defines 'PCC_BITFIELD_TYPE_MATTERS'.
  4958. 'pe_aligned_commons'
  4959. Target supports '-mpe-aligned-commons'.
  4960. 'pie'
  4961. Target supports '-pie', '-fpie' and '-fPIE'.
  4962. 'rdynamic'
  4963. Target supports '-rdynamic'.
  4964. 'scalar_all_fma'
  4965. Target supports all four fused multiply-add optabs for both 'float'
  4966. and 'double'. These optabs are: 'fma_optab', 'fms_optab',
  4967. 'fnma_optab' and 'fnms_optab'.
  4968. 'section_anchors'
  4969. Target supports section anchors.
  4970. 'short_enums'
  4971. Target defaults to short enums.
  4972. 'stack_size'
  4973. Target has limited stack size. The stack size limit can be
  4974. obtained using the STACK_SIZE macro defined by *note
  4975. 'dg-add-options' feature 'stack_size': stack_size_ao.
  4976. 'static'
  4977. Target supports '-static'.
  4978. 'static_libgfortran'
  4979. Target supports statically linking 'libgfortran'.
  4980. 'string_merging'
  4981. Target supports merging string constants at link time.
  4982. 'ucn'
  4983. Target supports compiling and assembling UCN.
  4984. 'ucn_nocache'
  4985. Including the options used to compile this particular test, the
  4986. target supports compiling and assembling UCN.
  4987. 'unaligned_stack'
  4988. Target does not guarantee that its 'STACK_BOUNDARY' is greater than
  4989. or equal to the required vector alignment.
  4990. 'vector_alignment_reachable'
  4991. Vector alignment is reachable for types of 32 bits or less.
  4992. 'vector_alignment_reachable_for_64bit'
  4993. Vector alignment is reachable for types of 64 bits or less.
  4994. 'wchar_t_char16_t_compatible'
  4995. Target supports 'wchar_t' that is compatible with 'char16_t'.
  4996. 'wchar_t_char32_t_compatible'
  4997. Target supports 'wchar_t' that is compatible with 'char32_t'.
  4998. 'comdat_group'
  4999. Target uses comdat groups.
  5000. 'indirect_calls'
  5001. Target supports indirect calls, i.e. calls where the target is not
  5002. constant.
  5003. 'lgccjit'
  5004. Target supports -lgccjit, i.e. libgccjit.so can be linked into jit
  5005. tests.
  5006. 7.2.3.15 Local to tests in 'gcc.target/i386'
  5007. ............................................
  5008. '3dnow'
  5009. Target supports compiling '3dnow' instructions.
  5010. 'aes'
  5011. Target supports compiling 'aes' instructions.
  5012. 'fma4'
  5013. Target supports compiling 'fma4' instructions.
  5014. 'mfentry'
  5015. Target supports the '-mfentry' option that alters the position of
  5016. profiling calls such that they precede the prologue.
  5017. 'ms_hook_prologue'
  5018. Target supports attribute 'ms_hook_prologue'.
  5019. 'pclmul'
  5020. Target supports compiling 'pclmul' instructions.
  5021. 'sse3'
  5022. Target supports compiling 'sse3' instructions.
  5023. 'sse4'
  5024. Target supports compiling 'sse4' instructions.
  5025. 'sse4a'
  5026. Target supports compiling 'sse4a' instructions.
  5027. 'ssse3'
  5028. Target supports compiling 'ssse3' instructions.
  5029. 'vaes'
  5030. Target supports compiling 'vaes' instructions.
  5031. 'vpclmul'
  5032. Target supports compiling 'vpclmul' instructions.
  5033. 'xop'
  5034. Target supports compiling 'xop' instructions.
  5035. 7.2.3.16 Local to tests in 'gcc.test-framework'
  5036. ...............................................
  5037. 'no'
  5038. Always returns 0.
  5039. 'yes'
  5040. Always returns 1.
  5041. 
  5042. File: gccint.info, Node: Add Options, Next: Require Support, Prev: Effective-Target Keywords, Up: Test Directives
  5043. 7.2.4 Features for 'dg-add-options'
  5044. -----------------------------------
  5045. The supported values of FEATURE for directive 'dg-add-options' are:
  5046. 'arm_fp'
  5047. '__ARM_FP' definition. Only ARM targets support this feature, and
  5048. only then in certain modes; see the *note arm_fp_ok effective
  5049. target keyword: arm_fp_ok.
  5050. 'arm_fp_dp'
  5051. '__ARM_FP' definition with double-precision support. Only ARM
  5052. targets support this feature, and only then in certain modes; see
  5053. the *note arm_fp_dp_ok effective target keyword: arm_fp_dp_ok.
  5054. 'arm_neon'
  5055. NEON support. Only ARM targets support this feature, and only then
  5056. in certain modes; see the *note arm_neon_ok effective target
  5057. keyword: arm_neon_ok.
  5058. 'arm_fp16'
  5059. VFP half-precision floating point support. This does not select
  5060. the FP16 format; for that, use *note arm_fp16_ieee: arm_fp16_ieee.
  5061. or *note arm_fp16_alternative: arm_fp16_alternative. instead. This
  5062. feature is only supported by ARM targets and then only in certain
  5063. modes; see the *note arm_fp16_ok effective target keyword:
  5064. arm_fp16_ok.
  5065. 'arm_fp16_ieee'
  5066. ARM IEEE 754-2008 format VFP half-precision floating point support.
  5067. This feature is only supported by ARM targets and then only in
  5068. certain modes; see the *note arm_fp16_ok effective target keyword:
  5069. arm_fp16_ok.
  5070. 'arm_fp16_alternative'
  5071. ARM Alternative format VFP half-precision floating point support.
  5072. This feature is only supported by ARM targets and then only in
  5073. certain modes; see the *note arm_fp16_ok effective target keyword:
  5074. arm_fp16_ok.
  5075. 'arm_neon_fp16'
  5076. NEON and half-precision floating point support. Only ARM targets
  5077. support this feature, and only then in certain modes; see the *note
  5078. arm_neon_fp16_ok effective target keyword: arm_neon_fp16_ok.
  5079. 'arm_vfp3'
  5080. arm vfp3 floating point support; see the *note arm_vfp3_ok
  5081. effective target keyword: arm_vfp3_ok.
  5082. 'arm_arch_v8a_hard'
  5083. Add options for ARMv8-A and the hard-float variant of the AAPCS, if
  5084. this is supported by the compiler; see the *note
  5085. arm_arch_v8a_hard_ok: arm_arch_v8a_hard_ok. effective target
  5086. keyword.
  5087. 'arm_v8_1a_neon'
  5088. Add options for ARMv8.1-A with Adv.SIMD support, if this is
  5089. supported by the target; see the *note arm_v8_1a_neon_ok:
  5090. arm_v8_1a_neon_ok. effective target keyword.
  5091. 'arm_v8_2a_fp16_scalar'
  5092. Add options for ARMv8.2-A with scalar FP16 support, if this is
  5093. supported by the target; see the *note arm_v8_2a_fp16_scalar_ok:
  5094. arm_v8_2a_fp16_scalar_ok. effective target keyword.
  5095. 'arm_v8_2a_fp16_neon'
  5096. Add options for ARMv8.2-A with Adv.SIMD FP16 support, if this is
  5097. supported by the target; see the *note arm_v8_2a_fp16_neon_ok:
  5098. arm_v8_2a_fp16_neon_ok. effective target keyword.
  5099. 'arm_v8_2a_dotprod_neon'
  5100. Add options for ARMv8.2-A with Adv.SIMD Dot Product support, if
  5101. this is supported by the target; see the *note
  5102. arm_v8_2a_dotprod_neon_ok:: effective target keyword.
  5103. 'arm_fp16fml_neon'
  5104. Add options to enable generation of the 'VFMAL' and 'VFMSL'
  5105. instructions, if this is supported by the target; see the *note
  5106. arm_fp16fml_neon_ok:: effective target keyword.
  5107. 'arm_dsp'
  5108. Add options for ARM DSP intrinsics support, if this is supported by
  5109. the target; see the *note arm_dsp_ok effective target keyword:
  5110. arm_dsp_ok.
  5111. 'bind_pic_locally'
  5112. Add the target-specific flags needed to enable functions to bind
  5113. locally when using pic/PIC passes in the testsuite.
  5114. 'floatN'
  5115. Add the target-specific flags needed to use the '_FloatN' type.
  5116. 'floatNx'
  5117. Add the target-specific flags needed to use the '_FloatNx' type.
  5118. 'ieee'
  5119. Add the target-specific flags needed to enable full IEEE compliance
  5120. mode.
  5121. 'mips16_attribute'
  5122. 'mips16' function attributes. Only MIPS targets support this
  5123. feature, and only then in certain modes.
  5124. 'stack_size'
  5125. Add the flags needed to define macro STACK_SIZE and set it to the
  5126. stack size limit associated with the *note 'stack_size' effective
  5127. target: stack_size_et.
  5128. 'sqrt_insn'
  5129. Add the target-specific flags needed to enable hardware square root
  5130. instructions, if any.
  5131. 'tls'
  5132. Add the target-specific flags needed to use thread-local storage.
  5133. 
  5134. File: gccint.info, Node: Require Support, Next: Final Actions, Prev: Add Options, Up: Test Directives
  5135. 7.2.5 Variants of 'dg-require-SUPPORT'
  5136. --------------------------------------
  5137. A few of the 'dg-require' directives take arguments.
  5138. 'dg-require-iconv CODESET'
  5139. Skip the test if the target does not support iconv. CODESET is the
  5140. codeset to convert to.
  5141. 'dg-require-profiling PROFOPT'
  5142. Skip the test if the target does not support profiling with option
  5143. PROFOPT.
  5144. 'dg-require-stack-check CHECK'
  5145. Skip the test if the target does not support the '-fstack-check'
  5146. option. If CHECK is '""', support for '-fstack-check' is checked,
  5147. for '-fstack-check=("CHECK")' otherwise.
  5148. 'dg-require-stack-size SIZE'
  5149. Skip the test if the target does not support a stack size of SIZE.
  5150. 'dg-require-visibility VIS'
  5151. Skip the test if the target does not support the 'visibility'
  5152. attribute. If VIS is '""', support for 'visibility("hidden")' is
  5153. checked, for 'visibility("VIS")' otherwise.
  5154. The original 'dg-require' directives were defined before there was
  5155. support for effective-target keywords. The directives that do not take
  5156. arguments could be replaced with effective-target keywords.
  5157. 'dg-require-alias ""'
  5158. Skip the test if the target does not support the 'alias' attribute.
  5159. 'dg-require-ascii-locale ""'
  5160. Skip the test if the host does not support an ASCII locale.
  5161. 'dg-require-compat-dfp ""'
  5162. Skip this test unless both compilers in a 'compat' testsuite
  5163. support decimal floating point.
  5164. 'dg-require-cxa-atexit ""'
  5165. Skip the test if the target does not support '__cxa_atexit'. This
  5166. is equivalent to 'dg-require-effective-target cxa_atexit'.
  5167. 'dg-require-dll ""'
  5168. Skip the test if the target does not support DLL attributes.
  5169. 'dg-require-dot ""'
  5170. Skip the test if the host does not have 'dot'.
  5171. 'dg-require-fork ""'
  5172. Skip the test if the target does not support 'fork'.
  5173. 'dg-require-gc-sections ""'
  5174. Skip the test if the target's linker does not support the
  5175. '--gc-sections' flags. This is equivalent to
  5176. 'dg-require-effective-target gc-sections'.
  5177. 'dg-require-host-local ""'
  5178. Skip the test if the host is remote, rather than the same as the
  5179. build system. Some tests are incompatible with DejaGnu's handling
  5180. of remote hosts, which involves copying the source file to the host
  5181. and compiling it with a relative path and "'-o a.out'".
  5182. 'dg-require-mkfifo ""'
  5183. Skip the test if the target does not support 'mkfifo'.
  5184. 'dg-require-named-sections ""'
  5185. Skip the test is the target does not support named sections. This
  5186. is equivalent to 'dg-require-effective-target named_sections'.
  5187. 'dg-require-weak ""'
  5188. Skip the test if the target does not support weak symbols.
  5189. 'dg-require-weak-override ""'
  5190. Skip the test if the target does not support overriding weak
  5191. symbols.
  5192. 
  5193. File: gccint.info, Node: Final Actions, Prev: Require Support, Up: Test Directives
  5194. 7.2.6 Commands for use in 'dg-final'
  5195. ------------------------------------
  5196. The GCC testsuite defines the following directives to be used within
  5197. 'dg-final'.
  5198. 7.2.6.1 Scan a particular file
  5199. ..............................
  5200. 'scan-file FILENAME REGEXP [{ target/xfail SELECTOR }]'
  5201. Passes if REGEXP matches text in FILENAME.
  5202. 'scan-file-not FILENAME REGEXP [{ target/xfail SELECTOR }]'
  5203. Passes if REGEXP does not match text in FILENAME.
  5204. 'scan-module MODULE REGEXP [{ target/xfail SELECTOR }]'
  5205. Passes if REGEXP matches in Fortran module MODULE.
  5206. 'dg-check-dot FILENAME'
  5207. Passes if FILENAME is a valid '.dot' file (by running 'dot -Tpng'
  5208. on it, and verifying the exit code is 0).
  5209. 7.2.6.2 Scan the assembly output
  5210. ................................
  5211. 'scan-assembler REGEX [{ target/xfail SELECTOR }]'
  5212. Passes if REGEX matches text in the test's assembler output.
  5213. 'scan-assembler-not REGEX [{ target/xfail SELECTOR }]'
  5214. Passes if REGEX does not match text in the test's assembler output.
  5215. 'scan-assembler-times REGEX NUM [{ target/xfail SELECTOR }]'
  5216. Passes if REGEX is matched exactly NUM times in the test's
  5217. assembler output.
  5218. 'scan-assembler-dem REGEX [{ target/xfail SELECTOR }]'
  5219. Passes if REGEX matches text in the test's demangled assembler
  5220. output.
  5221. 'scan-assembler-dem-not REGEX [{ target/xfail SELECTOR }]'
  5222. Passes if REGEX does not match text in the test's demangled
  5223. assembler output.
  5224. 'scan-assembler-symbol-section FUNCTIONS SECTION [{ target/xfail SELECTOR }]'
  5225. Passes if FUNCTIONS are all in SECTION. The caller needs to allow
  5226. for 'USER_LABEL_PREFIX' and different section name conventions.
  5227. 'scan-symbol-section FILENAME FUNCTIONS SECTION [{ target/xfail SELECTOR }]'
  5228. Passes if FUNCTIONS are all in SECTIONin FILENAME. The same
  5229. caveats as for 'scan-assembler-symbol-section' apply.
  5230. 'scan-hidden SYMBOL [{ target/xfail SELECTOR }]'
  5231. Passes if SYMBOL is defined as a hidden symbol in the test's
  5232. assembly output.
  5233. 'scan-not-hidden SYMBOL [{ target/xfail SELECTOR }]'
  5234. Passes if SYMBOL is not defined as a hidden symbol in the test's
  5235. assembly output.
  5236. 'check-function-bodies PREFIX TERMINATOR [OPTIONS [{ target/xfail SELECTOR }]]'
  5237. Looks through the source file for comments that give the expected
  5238. assembly output for selected functions. Each line of expected
  5239. output starts with the prefix string PREFIX and the expected output
  5240. for a function as a whole is followed by a line that starts with
  5241. the string TERMINATOR. Specifying an empty terminator is
  5242. equivalent to specifying '"*/"'.
  5243. OPTIONS, if specified, is a list of regular expressions, each of
  5244. which matches a full command-line option. A non-empty list
  5245. prevents the test from running unless all of the given options are
  5246. present on the command line. This can help if a source file is
  5247. compiled both with and without optimization, since it is rarely
  5248. useful to check the full function body for unoptimized code.
  5249. The first line of the expected output for a function FN has the
  5250. form:
  5251. PREFIX FN: [{ target/xfail SELECTOR }]
  5252. Subsequent lines of the expected output also start with PREFIX. In
  5253. both cases, whitespace after PREFIX is not significant.
  5254. The test discards assembly directives such as '.cfi_startproc' and
  5255. local label definitions such as '.LFB0' from the compiler's
  5256. assembly output. It then matches the result against the expected
  5257. output for a function as a single regular expression. This means
  5258. that later lines can use backslashes to refer back to '(...)'
  5259. captures on earlier lines. For example:
  5260. /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
  5261. ...
  5262. /*
  5263. ** add_w0_s8_m:
  5264. ** mov (z[0-9]+\.b), w0
  5265. ** add z0\.b, p0/m, z0\.b, \1
  5266. ** ret
  5267. */
  5268. svint8_t add_w0_s8_m (...) { ... }
  5269. ...
  5270. /*
  5271. ** add_b0_s8_m:
  5272. ** mov (z[0-9]+\.b), b0
  5273. ** add z1\.b, p0/m, z1\.b, \1
  5274. ** ret
  5275. */
  5276. svint8_t add_b0_s8_m (...) { ... }
  5277. checks whether the implementations of 'add_w0_s8_m' and
  5278. 'add_b0_s8_m' match the regular expressions given. The test only
  5279. runs when '-DCHECK_ASM' is passed on the command line.
  5280. It is possible to create non-capturing multi-line regular
  5281. expression groups of the form '(A|B|...)' by putting the '(', '|'
  5282. and ')' on separate lines (each still using PREFIX). For example:
  5283. /*
  5284. ** cmple_f16_tied:
  5285. ** (
  5286. ** fcmge p0\.h, p0/z, z1\.h, z0\.h
  5287. ** |
  5288. ** fcmle p0\.h, p0/z, z0\.h, z1\.h
  5289. ** )
  5290. ** ret
  5291. */
  5292. svbool_t cmple_f16_tied (...) { ... }
  5293. checks whether 'cmple_f16_tied' is implemented by the 'fcmge'
  5294. instruction followed by 'ret' or by the 'fcmle' instruction
  5295. followed by 'ret'. The test is still a single regular rexpression.
  5296. A line containing just:
  5297. PREFIX ...
  5298. stands for zero or more unmatched lines; the whitespace after
  5299. PREFIX is again not significant.
  5300. 7.2.6.3 Scan optimization dump files
  5301. ....................................
  5302. These commands are available for KIND of 'tree', 'ltrans-tree',
  5303. 'offload-tree', 'rtl', 'offload-rtl', 'ipa', and 'wpa-ipa'.
  5304. 'scan-KIND-dump REGEX SUFFIX [{ target/xfail SELECTOR }]'
  5305. Passes if REGEX matches text in the dump file with suffix SUFFIX.
  5306. 'scan-KIND-dump-not REGEX SUFFIX [{ target/xfail SELECTOR }]'
  5307. Passes if REGEX does not match text in the dump file with suffix
  5308. SUFFIX.
  5309. 'scan-KIND-dump-times REGEX NUM SUFFIX [{ target/xfail SELECTOR }]'
  5310. Passes if REGEX is found exactly NUM times in the dump file with
  5311. suffix SUFFIX.
  5312. 'scan-KIND-dump-dem REGEX SUFFIX [{ target/xfail SELECTOR }]'
  5313. Passes if REGEX matches demangled text in the dump file with suffix
  5314. SUFFIX.
  5315. 'scan-KIND-dump-dem-not REGEX SUFFIX [{ target/xfail SELECTOR }]'
  5316. Passes if REGEX does not match demangled text in the dump file with
  5317. suffix SUFFIX.
  5318. The SUFFIX argument which describes the dump file to be scanned may
  5319. contain a glob pattern that must expand to exactly one file name. This
  5320. is useful if, e.g., different pass instances are executed depending on
  5321. torture testing command-line flags, producing dump files whose names
  5322. differ only in their pass instance number suffix. For example, to scan
  5323. instances 1, 2, 3 of a tree pass "mypass" for occurrences of the string
  5324. "code has been optimized", use:
  5325. /* { dg-options "-fdump-tree-mypass" } */
  5326. /* { dg-final { scan-tree-dump "code has been optimized" "mypass\[1-3\]" } } */
  5327. 7.2.6.4 Check for output files
  5328. ..............................
  5329. 'output-exists [{ target/xfail SELECTOR }]'
  5330. Passes if compiler output file exists.
  5331. 'output-exists-not [{ target/xfail SELECTOR }]'
  5332. Passes if compiler output file does not exist.
  5333. 'scan-symbol REGEXP [{ target/xfail SELECTOR }]'
  5334. Passes if the pattern is present in the final executable.
  5335. 'scan-symbol-not REGEXP [{ target/xfail SELECTOR }]'
  5336. Passes if the pattern is absent from the final executable.
  5337. 7.2.6.5 Checks for 'gcov' tests
  5338. ...............................
  5339. 'run-gcov SOURCEFILE'
  5340. Check line counts in 'gcov' tests.
  5341. 'run-gcov [branches] [calls] { OPTS SOURCEFILE }'
  5342. Check branch and/or call counts, in addition to line counts, in
  5343. 'gcov' tests.
  5344. 'run-gcov-pytest { SOURCEFILE PYTEST_FILE }'
  5345. Check output of 'gcov' intermediate format with a pytest script.
  5346. 7.2.6.6 Clean up generated test files
  5347. .....................................
  5348. Usually the test-framework removes files that were generated during
  5349. testing. If a testcase, for example, uses any dumping mechanism to
  5350. inspect a passes dump file, the testsuite recognized the dump option
  5351. passed to the tool and schedules a final cleanup to remove these files.
  5352. There are, however, following additional cleanup directives that can be
  5353. used to annotate a testcase "manually".
  5354. 'cleanup-coverage-files'
  5355. Removes coverage data files generated for this test.
  5356. 'cleanup-modules "LIST-OF-EXTRA-MODULES"'
  5357. Removes Fortran module files generated for this test, excluding the
  5358. module names listed in keep-modules. Cleaning up module files is
  5359. usually done automatically by the testsuite by looking at the
  5360. source files and removing the modules after the test has been
  5361. executed.
  5362. module MoD1
  5363. end module MoD1
  5364. module Mod2
  5365. end module Mod2
  5366. module moD3
  5367. end module moD3
  5368. module mod4
  5369. end module mod4
  5370. ! { dg-final { cleanup-modules "mod1 mod2" } } ! redundant
  5371. ! { dg-final { keep-modules "mod3 mod4" } }
  5372. 'keep-modules "LIST-OF-MODULES-NOT-TO-DELETE"'
  5373. Whitespace separated list of module names that should not be
  5374. deleted by cleanup-modules. If the list of modules is empty, all
  5375. modules defined in this file are kept.
  5376. module maybe_unneeded
  5377. end module maybe_unneeded
  5378. module keep1
  5379. end module keep1
  5380. module keep2
  5381. end module keep2
  5382. ! { dg-final { keep-modules "keep1 keep2" } } ! just keep these two
  5383. ! { dg-final { keep-modules "" } } ! keep all
  5384. 'dg-keep-saved-temps "LIST-OF-SUFFIXES-NOT-TO-DELETE"'
  5385. Whitespace separated list of suffixes that should not be deleted
  5386. automatically in a testcase that uses '-save-temps'.
  5387. // { dg-options "-save-temps -fpch-preprocess -I." }
  5388. int main() { return 0; }
  5389. // { dg-keep-saved-temps ".s" } ! just keep assembler file
  5390. // { dg-keep-saved-temps ".s" ".i" } ! ... and .i
  5391. // { dg-keep-saved-temps ".ii" ".o" } ! or just .ii and .o
  5392. 'cleanup-profile-file'
  5393. Removes profiling files generated for this test.
  5394. 
  5395. File: gccint.info, Node: Ada Tests, Next: C Tests, Prev: Test Directives, Up: Testsuites
  5396. 7.3 Ada Language Testsuites
  5397. ===========================
  5398. The Ada testsuite includes executable tests from the ACATS testsuite,
  5399. publicly available at <http://www.ada-auth.org/acats.html>.
  5400. These tests are integrated in the GCC testsuite in the 'ada/acats'
  5401. directory, and enabled automatically when running 'make check', assuming
  5402. the Ada language has been enabled when configuring GCC.
  5403. You can also run the Ada testsuite independently, using 'make
  5404. check-ada', or run a subset of the tests by specifying which chapter to
  5405. run, e.g.:
  5406. $ make check-ada CHAPTERS="c3 c9"
  5407. The tests are organized by directory, each directory corresponding to a
  5408. chapter of the Ada Reference Manual. So for example, 'c9' corresponds
  5409. to chapter 9, which deals with tasking features of the language.
  5410. The tests are run using two 'sh' scripts: 'run_acats' and 'run_all.sh'.
  5411. To run the tests using a simulator or a cross target, see the small
  5412. customization section at the top of 'run_all.sh'.
  5413. These tests are run using the build tree: they can be run without doing
  5414. a 'make install'.
  5415. 
  5416. File: gccint.info, Node: C Tests, Next: LTO Testing, Prev: Ada Tests, Up: Testsuites
  5417. 7.4 C Language Testsuites
  5418. =========================
  5419. GCC contains the following C language testsuites, in the 'gcc/testsuite'
  5420. directory:
  5421. 'gcc.dg'
  5422. This contains tests of particular features of the C compiler, using
  5423. the more modern 'dg' harness. Correctness tests for various
  5424. compiler features should go here if possible.
  5425. Magic comments determine whether the file is preprocessed,
  5426. compiled, linked or run. In these tests, error and warning message
  5427. texts are compared against expected texts or regular expressions
  5428. given in comments. These tests are run with the options '-ansi
  5429. -pedantic' unless other options are given in the test. Except as
  5430. noted below they are not run with multiple optimization options.
  5431. 'gcc.dg/compat'
  5432. This subdirectory contains tests for binary compatibility using
  5433. 'lib/compat.exp', which in turn uses the language-independent
  5434. support (*note Support for testing binary compatibility: compat
  5435. Testing.).
  5436. 'gcc.dg/cpp'
  5437. This subdirectory contains tests of the preprocessor.
  5438. 'gcc.dg/debug'
  5439. This subdirectory contains tests for debug formats. Tests in this
  5440. subdirectory are run for each debug format that the compiler
  5441. supports.
  5442. 'gcc.dg/format'
  5443. This subdirectory contains tests of the '-Wformat' format checking.
  5444. Tests in this directory are run with and without '-DWIDE'.
  5445. 'gcc.dg/noncompile'
  5446. This subdirectory contains tests of code that should not compile
  5447. and does not need any special compilation options. They are run
  5448. with multiple optimization options, since sometimes invalid code
  5449. crashes the compiler with optimization.
  5450. 'gcc.dg/special'
  5451. FIXME: describe this.
  5452. 'gcc.c-torture'
  5453. This contains particular code fragments which have historically
  5454. broken easily. These tests are run with multiple optimization
  5455. options, so tests for features which only break at some
  5456. optimization levels belong here. This also contains tests to check
  5457. that certain optimizations occur. It might be worthwhile to
  5458. separate the correctness tests cleanly from the code quality tests,
  5459. but it hasn't been done yet.
  5460. 'gcc.c-torture/compat'
  5461. FIXME: describe this.
  5462. This directory should probably not be used for new tests.
  5463. 'gcc.c-torture/compile'
  5464. This testsuite contains test cases that should compile, but do not
  5465. need to link or run. These test cases are compiled with several
  5466. different combinations of optimization options. All warnings are
  5467. disabled for these test cases, so this directory is not suitable if
  5468. you wish to test for the presence or absence of compiler warnings.
  5469. While special options can be set, and tests disabled on specific
  5470. platforms, by the use of '.x' files, mostly these test cases should
  5471. not contain platform dependencies. FIXME: discuss how defines such
  5472. as 'STACK_SIZE' are used.
  5473. 'gcc.c-torture/execute'
  5474. This testsuite contains test cases that should compile, link and
  5475. run; otherwise the same comments as for 'gcc.c-torture/compile'
  5476. apply.
  5477. 'gcc.c-torture/execute/ieee'
  5478. This contains tests which are specific to IEEE floating point.
  5479. 'gcc.c-torture/unsorted'
  5480. FIXME: describe this.
  5481. This directory should probably not be used for new tests.
  5482. 'gcc.misc-tests'
  5483. This directory contains C tests that require special handling.
  5484. Some of these tests have individual expect files, and others share
  5485. special-purpose expect files:
  5486. 'bprob*.c'
  5487. Test '-fbranch-probabilities' using
  5488. 'gcc.misc-tests/bprob.exp', which in turn uses the generic,
  5489. language-independent framework (*note Support for testing
  5490. profile-directed optimizations: profopt Testing.).
  5491. 'gcov*.c'
  5492. Test 'gcov' output using 'gcov.exp', which in turn uses the
  5493. language-independent support (*note Support for testing gcov:
  5494. gcov Testing.).
  5495. 'i386-pf-*.c'
  5496. Test i386-specific support for data prefetch using
  5497. 'i386-prefetch.exp'.
  5498. 'gcc.test-framework'
  5499. 'dg-*.c'
  5500. Test the testsuite itself using
  5501. 'gcc.test-framework/test-framework.exp'.
  5502. FIXME: merge in 'testsuite/README.gcc' and discuss the format of test
  5503. cases and magic comments more.
  5504. 
  5505. File: gccint.info, Node: LTO Testing, Next: gcov Testing, Prev: C Tests, Up: Testsuites
  5506. 7.5 Support for testing link-time optimizations
  5507. ===============================================
  5508. Tests for link-time optimizations usually require multiple source files
  5509. that are compiled separately, perhaps with different sets of options.
  5510. There are several special-purpose test directives used for these tests.
  5511. '{ dg-lto-do DO-WHAT-KEYWORD }'
  5512. DO-WHAT-KEYWORD specifies how the test is compiled and whether it
  5513. is executed. It is one of:
  5514. 'assemble'
  5515. Compile with '-c' to produce a relocatable object file.
  5516. 'link'
  5517. Compile, assemble, and link to produce an executable file.
  5518. 'run'
  5519. Produce and run an executable file, which is expected to
  5520. return an exit code of 0.
  5521. The default is 'assemble'. That can be overridden for a set of
  5522. tests by redefining 'dg-do-what-default' within the '.exp' file for
  5523. those tests.
  5524. Unlike 'dg-do', 'dg-lto-do' does not support an optional 'target'
  5525. or 'xfail' list. Use 'dg-skip-if', 'dg-xfail-if', or
  5526. 'dg-xfail-run-if'.
  5527. '{ dg-lto-options { { OPTIONS } [{ OPTIONS }] } [{ target SELECTOR }]}'
  5528. This directive provides a list of one or more sets of compiler
  5529. options to override LTO_OPTIONS. Each test will be compiled and
  5530. run with each of these sets of options.
  5531. '{ dg-extra-ld-options OPTIONS [{ target SELECTOR }]}'
  5532. This directive adds OPTIONS to the linker options used.
  5533. '{ dg-suppress-ld-options OPTIONS [{ target SELECTOR }]}'
  5534. This directive removes OPTIONS from the set of linker options used.
  5535. 
  5536. File: gccint.info, Node: gcov Testing, Next: profopt Testing, Prev: LTO Testing, Up: Testsuites
  5537. 7.6 Support for testing 'gcov'
  5538. ==============================
  5539. Language-independent support for testing 'gcov', and for checking that
  5540. branch profiling produces expected values, is provided by the expect
  5541. file 'lib/gcov.exp'. 'gcov' tests also rely on procedures in
  5542. 'lib/gcc-dg.exp' to compile and run the test program. A typical 'gcov'
  5543. test contains the following DejaGnu commands within comments:
  5544. { dg-options "--coverage" }
  5545. { dg-do run { target native } }
  5546. { dg-final { run-gcov sourcefile } }
  5547. Checks of 'gcov' output can include line counts, branch percentages,
  5548. and call return percentages. All of these checks are requested via
  5549. commands that appear in comments in the test's source file. Commands to
  5550. check line counts are processed by default. Commands to check branch
  5551. percentages and call return percentages are processed if the 'run-gcov'
  5552. command has arguments 'branches' or 'calls', respectively. For example,
  5553. the following specifies checking both, as well as passing '-b' to
  5554. 'gcov':
  5555. { dg-final { run-gcov branches calls { -b sourcefile } } }
  5556. A line count command appears within a comment on the source line that
  5557. is expected to get the specified count and has the form 'count(CNT)'. A
  5558. test should only check line counts for lines that will get the same
  5559. count for any architecture.
  5560. Commands to check branch percentages ('branch') and call return
  5561. percentages ('returns') are very similar to each other. A beginning
  5562. command appears on or before the first of a range of lines that will
  5563. report the percentage, and the ending command follows that range of
  5564. lines. The beginning command can include a list of percentages, all of
  5565. which are expected to be found within the range. A range is terminated
  5566. by the next command of the same kind. A command 'branch(end)' or
  5567. 'returns(end)' marks the end of a range without starting a new one. For
  5568. example:
  5569. if (i > 10 && j > i && j < 20) /* branch(27 50 75) */
  5570. /* branch(end) */
  5571. foo (i, j);
  5572. For a call return percentage, the value specified is the percentage of
  5573. calls reported to return. For a branch percentage, the value is either
  5574. the expected percentage or 100 minus that value, since the direction of
  5575. a branch can differ depending on the target or the optimization level.
  5576. Not all branches and calls need to be checked. A test should not check
  5577. for branches that might be optimized away or replaced with predicated
  5578. instructions. Don't check for calls inserted by the compiler or ones
  5579. that might be inlined or optimized away.
  5580. A single test can check for combinations of line counts, branch
  5581. percentages, and call return percentages. The command to check a line
  5582. count must appear on the line that will report that count, but commands
  5583. to check branch percentages and call return percentages can bracket the
  5584. lines that report them.
  5585. 
  5586. File: gccint.info, Node: profopt Testing, Next: compat Testing, Prev: gcov Testing, Up: Testsuites
  5587. 7.7 Support for testing profile-directed optimizations
  5588. ======================================================
  5589. The file 'profopt.exp' provides language-independent support for
  5590. checking correct execution of a test built with profile-directed
  5591. optimization. This testing requires that a test program be built and
  5592. executed twice. The first time it is compiled to generate profile data,
  5593. and the second time it is compiled to use the data that was generated
  5594. during the first execution. The second execution is to verify that the
  5595. test produces the expected results.
  5596. To check that the optimization actually generated better code, a test
  5597. can be built and run a third time with normal optimizations to verify
  5598. that the performance is better with the profile-directed optimizations.
  5599. 'profopt.exp' has the beginnings of this kind of support.
  5600. 'profopt.exp' provides generic support for profile-directed
  5601. optimizations. Each set of tests that uses it provides information
  5602. about a specific optimization:
  5603. 'tool'
  5604. tool being tested, e.g., 'gcc'
  5605. 'profile_option'
  5606. options used to generate profile data
  5607. 'feedback_option'
  5608. options used to optimize using that profile data
  5609. 'prof_ext'
  5610. suffix of profile data files
  5611. 'PROFOPT_OPTIONS'
  5612. list of options with which to run each test, similar to the lists
  5613. for torture tests
  5614. '{ dg-final-generate { LOCAL-DIRECTIVE } }'
  5615. This directive is similar to 'dg-final', but the LOCAL-DIRECTIVE is
  5616. run after the generation of profile data.
  5617. '{ dg-final-use { LOCAL-DIRECTIVE } }'
  5618. The LOCAL-DIRECTIVE is run after the profile data have been used.
  5619. 
  5620. File: gccint.info, Node: compat Testing, Next: Torture Tests, Prev: profopt Testing, Up: Testsuites
  5621. 7.8 Support for testing binary compatibility
  5622. ============================================
  5623. The file 'compat.exp' provides language-independent support for binary
  5624. compatibility testing. It supports testing interoperability of two
  5625. compilers that follow the same ABI, or of multiple sets of compiler
  5626. options that should not affect binary compatibility. It is intended to
  5627. be used for testsuites that complement ABI testsuites.
  5628. A test supported by this framework has three parts, each in a separate
  5629. source file: a main program and two pieces that interact with each other
  5630. to split up the functionality being tested.
  5631. 'TESTNAME_main.SUFFIX'
  5632. Contains the main program, which calls a function in file
  5633. 'TESTNAME_x.SUFFIX'.
  5634. 'TESTNAME_x.SUFFIX'
  5635. Contains at least one call to a function in 'TESTNAME_y.SUFFIX'.
  5636. 'TESTNAME_y.SUFFIX'
  5637. Shares data with, or gets arguments from, 'TESTNAME_x.SUFFIX'.
  5638. Within each test, the main program and one functional piece are
  5639. compiled by the GCC under test. The other piece can be compiled by an
  5640. alternate compiler. If no alternate compiler is specified, then all
  5641. three source files are all compiled by the GCC under test. You can
  5642. specify pairs of sets of compiler options. The first element of such a
  5643. pair specifies options used with the GCC under test, and the second
  5644. element of the pair specifies options used with the alternate compiler.
  5645. Each test is compiled with each pair of options.
  5646. 'compat.exp' defines default pairs of compiler options. These can be
  5647. overridden by defining the environment variable 'COMPAT_OPTIONS' as:
  5648. COMPAT_OPTIONS="[list [list {TST1} {ALT1}]
  5649. ...[list {TSTN} {ALTN}]]"
  5650. where TSTI and ALTI are lists of options, with TSTI used by the
  5651. compiler under test and ALTI used by the alternate compiler. For
  5652. example, with '[list [list {-g -O0} {-O3}] [list {-fpic} {-fPIC -O2}]]',
  5653. the test is first built with '-g -O0' by the compiler under test and
  5654. with '-O3' by the alternate compiler. The test is built a second time
  5655. using '-fpic' by the compiler under test and '-fPIC -O2' by the
  5656. alternate compiler.
  5657. An alternate compiler is specified by defining an environment variable
  5658. to be the full pathname of an installed compiler; for C define
  5659. 'ALT_CC_UNDER_TEST', and for C++ define 'ALT_CXX_UNDER_TEST'. These
  5660. will be written to the 'site.exp' file used by DejaGnu. The default is
  5661. to build each test with the compiler under test using the first of each
  5662. pair of compiler options from 'COMPAT_OPTIONS'. When
  5663. 'ALT_CC_UNDER_TEST' or 'ALT_CXX_UNDER_TEST' is 'same', each test is
  5664. built using the compiler under test but with combinations of the options
  5665. from 'COMPAT_OPTIONS'.
  5666. To run only the C++ compatibility suite using the compiler under test
  5667. and another version of GCC using specific compiler options, do the
  5668. following from 'OBJDIR/gcc':
  5669. rm site.exp
  5670. make -k \
  5671. ALT_CXX_UNDER_TEST=${alt_prefix}/bin/g++ \
  5672. COMPAT_OPTIONS="LISTS AS SHOWN ABOVE" \
  5673. check-c++ \
  5674. RUNTESTFLAGS="compat.exp"
  5675. A test that fails when the source files are compiled with different
  5676. compilers, but passes when the files are compiled with the same
  5677. compiler, demonstrates incompatibility of the generated code or runtime
  5678. support. A test that fails for the alternate compiler but passes for
  5679. the compiler under test probably tests for a bug that was fixed in the
  5680. compiler under test but is present in the alternate compiler.
  5681. The binary compatibility tests support a small number of test framework
  5682. commands that appear within comments in a test file.
  5683. 'dg-require-*'
  5684. These commands can be used in 'TESTNAME_main.SUFFIX' to skip the
  5685. test if specific support is not available on the target.
  5686. 'dg-options'
  5687. The specified options are used for compiling this particular source
  5688. file, appended to the options from 'COMPAT_OPTIONS'. When this
  5689. command appears in 'TESTNAME_main.SUFFIX' the options are also used
  5690. to link the test program.
  5691. 'dg-xfail-if'
  5692. This command can be used in a secondary source file to specify that
  5693. compilation is expected to fail for particular options on
  5694. particular targets.
  5695. 
  5696. File: gccint.info, Node: Torture Tests, Next: GIMPLE Tests, Prev: compat Testing, Up: Testsuites
  5697. 7.9 Support for torture testing using multiple options
  5698. ======================================================
  5699. Throughout the compiler testsuite there are several directories whose
  5700. tests are run multiple times, each with a different set of options.
  5701. These are known as torture tests. 'lib/torture-options.exp' defines
  5702. procedures to set up these lists:
  5703. 'torture-init'
  5704. Initialize use of torture lists.
  5705. 'set-torture-options'
  5706. Set lists of torture options to use for tests with and without
  5707. loops. Optionally combine a set of torture options with a set of
  5708. other options, as is done with Objective-C runtime options.
  5709. 'torture-finish'
  5710. Finalize use of torture lists.
  5711. The '.exp' file for a set of tests that use torture options must
  5712. include calls to these three procedures if:
  5713. * It calls 'gcc-dg-runtest' and overrides DG_TORTURE_OPTIONS.
  5714. * It calls ${TOOL}'-torture' or ${TOOL}'-torture-execute', where TOOL
  5715. is 'c', 'fortran', or 'objc'.
  5716. * It calls 'dg-pch'.
  5717. It is not necessary for a '.exp' file that calls 'gcc-dg-runtest' to
  5718. call the torture procedures if the tests should use the list in
  5719. DG_TORTURE_OPTIONS defined in 'gcc-dg.exp'.
  5720. Most uses of torture options can override the default lists by defining
  5721. TORTURE_OPTIONS or add to the default list by defining
  5722. ADDITIONAL_TORTURE_OPTIONS. Define these in a '.dejagnurc' file or add
  5723. them to the 'site.exp' file; for example
  5724. set ADDITIONAL_TORTURE_OPTIONS [list \
  5725. { -O2 -ftree-loop-linear } \
  5726. { -O2 -fpeel-loops } ]
  5727. 
  5728. File: gccint.info, Node: GIMPLE Tests, Next: RTL Tests, Prev: Torture Tests, Up: Testsuites
  5729. 7.10 Support for testing GIMPLE passes
  5730. ======================================
  5731. As of gcc 7, C functions can be tagged with '__GIMPLE' to indicate that
  5732. the function body will be GIMPLE, rather than C. The compiler requires
  5733. the option '-fgimple' to enable this functionality. For example:
  5734. /* { dg-do compile } */
  5735. /* { dg-options "-O -fgimple" } */
  5736. void __GIMPLE (startwith ("dse2")) foo ()
  5737. {
  5738. int a;
  5739. bb_2:
  5740. if (a > 4)
  5741. goto bb_3;
  5742. else
  5743. goto bb_4;
  5744. bb_3:
  5745. a_2 = 10;
  5746. goto bb_5;
  5747. bb_4:
  5748. a_3 = 20;
  5749. bb_5:
  5750. a_1 = __PHI (bb_3: a_2, bb_4: a_3);
  5751. a_4 = a_1 + 4;
  5752. return;
  5753. }
  5754. The 'startwith' argument indicates at which pass to begin.
  5755. Use the dump modifier '-gimple' (e.g. '-fdump-tree-all-gimple') to make
  5756. tree dumps more closely follow the format accepted by the GIMPLE parser.
  5757. Example DejaGnu tests of GIMPLE can be seen in the source tree at
  5758. 'gcc/testsuite/gcc.dg/gimplefe-*.c'.
  5759. The '__GIMPLE' parser is integrated with the C tokenizer and
  5760. preprocessor, so it should be possible to use macros to build out test
  5761. coverage.
  5762. 
  5763. File: gccint.info, Node: RTL Tests, Prev: GIMPLE Tests, Up: Testsuites
  5764. 7.11 Support for testing RTL passes
  5765. ===================================
  5766. As of gcc 7, C functions can be tagged with '__RTL' to indicate that the
  5767. function body will be RTL, rather than C. For example:
  5768. double __RTL (startwith ("ira")) test (struct foo *f, const struct bar *b)
  5769. {
  5770. (function "test"
  5771. [...snip; various directives go in here...]
  5772. ) ;; function "test"
  5773. }
  5774. The 'startwith' argument indicates at which pass to begin.
  5775. The parser expects the RTL body to be in the format emitted by this
  5776. dumping function:
  5777. DEBUG_FUNCTION void
  5778. print_rtx_function (FILE *outfile, function *fn, bool compact);
  5779. when "compact" is true. So you can capture RTL in the correct format
  5780. from the debugger using:
  5781. (gdb) print_rtx_function (stderr, cfun, true);
  5782. and copy and paste the output into the body of the C function.
  5783. Example DejaGnu tests of RTL can be seen in the source tree under
  5784. 'gcc/testsuite/gcc.dg/rtl'.
  5785. The '__RTL' parser is not integrated with the C tokenizer or
  5786. preprocessor, and works simply by reading the relevant lines within the
  5787. braces. In particular, the RTL body must be on separate lines from the
  5788. enclosing braces, and the preprocessor is not usable within it.
  5789. 
  5790. File: gccint.info, Node: Options, Next: Passes, Prev: Testsuites, Up: Top
  5791. 8 Option specification files
  5792. ****************************
  5793. Most GCC command-line options are described by special option definition
  5794. files, the names of which conventionally end in '.opt'. This chapter
  5795. describes the format of these files.
  5796. * Menu:
  5797. * Option file format:: The general layout of the files
  5798. * Option properties:: Supported option properties
  5799. 
  5800. File: gccint.info, Node: Option file format, Next: Option properties, Up: Options
  5801. 8.1 Option file format
  5802. ======================
  5803. Option files are a simple list of records in which each field occupies
  5804. its own line and in which the records themselves are separated by blank
  5805. lines. Comments may appear on their own line anywhere within the file
  5806. and are preceded by semicolons. Whitespace is allowed before the
  5807. semicolon.
  5808. The files can contain the following types of record:
  5809. * A language definition record. These records have two fields: the
  5810. string 'Language' and the name of the language. Once a language
  5811. has been declared in this way, it can be used as an option
  5812. property. *Note Option properties::.
  5813. * A target specific save record to save additional information.
  5814. These records have two fields: the string 'TargetSave', and a
  5815. declaration type to go in the 'cl_target_option' structure.
  5816. * A variable record to define a variable used to store option
  5817. information. These records have two fields: the string 'Variable',
  5818. and a declaration of the type and name of the variable, optionally
  5819. with an initializer (but without any trailing ';'). These records
  5820. may be used for variables used for many options where declaring the
  5821. initializer in a single option definition record, or duplicating it
  5822. in many records, would be inappropriate, or for variables set in
  5823. option handlers rather than referenced by 'Var' properties.
  5824. * A variable record to define a variable used to store option
  5825. information. These records have two fields: the string
  5826. 'TargetVariable', and a declaration of the type and name of the
  5827. variable, optionally with an initializer (but without any trailing
  5828. ';'). 'TargetVariable' is a combination of 'Variable' and
  5829. 'TargetSave' records in that the variable is defined in the
  5830. 'gcc_options' structure, but these variables are also stored in the
  5831. 'cl_target_option' structure. The variables are saved in the
  5832. target save code and restored in the target restore code.
  5833. * A variable record to record any additional files that the
  5834. 'options.h' file should include. This is useful to provide
  5835. enumeration or structure definitions needed for target variables.
  5836. These records have two fields: the string 'HeaderInclude' and the
  5837. name of the include file.
  5838. * A variable record to record any additional files that the
  5839. 'options.c' or 'options-save.c' file should include. This is
  5840. useful to provide inline functions needed for target variables
  5841. and/or '#ifdef' sequences to properly set up the initialization.
  5842. These records have two fields: the string 'SourceInclude' and the
  5843. name of the include file.
  5844. * An enumeration record to define a set of strings that may be used
  5845. as arguments to an option or options. These records have three
  5846. fields: the string 'Enum', a space-separated list of properties and
  5847. help text used to describe the set of strings in '--help' output.
  5848. Properties use the same format as option properties; the following
  5849. are valid:
  5850. 'Name(NAME)'
  5851. This property is required; NAME must be a name (suitable for
  5852. use in C identifiers) used to identify the set of strings in
  5853. 'Enum' option properties.
  5854. 'Type(TYPE)'
  5855. This property is required; TYPE is the C type for variables
  5856. set by options using this enumeration together with 'Var'.
  5857. 'UnknownError(MESSAGE)'
  5858. The message MESSAGE will be used as an error message if the
  5859. argument is invalid; for enumerations without 'UnknownError',
  5860. a generic error message is used. MESSAGE should contain a
  5861. single '%qs' format, which will be used to format the invalid
  5862. argument.
  5863. * An enumeration value record to define one of the strings in a set
  5864. given in an 'Enum' record. These records have two fields: the
  5865. string 'EnumValue' and a space-separated list of properties.
  5866. Properties use the same format as option properties; the following
  5867. are valid:
  5868. 'Enum(NAME)'
  5869. This property is required; NAME says which 'Enum' record this
  5870. 'EnumValue' record corresponds to.
  5871. 'String(STRING)'
  5872. This property is required; STRING is the string option
  5873. argument being described by this record.
  5874. 'Value(VALUE)'
  5875. This property is required; it says what value (representable
  5876. as 'int') should be used for the given string.
  5877. 'Canonical'
  5878. This property is optional. If present, it says the present
  5879. string is the canonical one among all those with the given
  5880. value. Other strings yielding that value will be mapped to
  5881. this one so specs do not need to handle them.
  5882. 'DriverOnly'
  5883. This property is optional. If present, the present string
  5884. will only be accepted by the driver. This is used for cases
  5885. such as '-march=native' that are processed by the driver so
  5886. that 'gcc -v' shows how the options chosen depended on the
  5887. system on which the compiler was run.
  5888. * An option definition record. These records have the following
  5889. fields:
  5890. 1. the name of the option, with the leading "-" removed
  5891. 2. a space-separated list of option properties (*note Option
  5892. properties::)
  5893. 3. the help text to use for '--help' (omitted if the second field
  5894. contains the 'Undocumented' property).
  5895. By default, all options beginning with "f", "W" or "m" are
  5896. implicitly assumed to take a "no-" form. This form should not be
  5897. listed separately. If an option beginning with one of these
  5898. letters does not have a "no-" form, you can use the
  5899. 'RejectNegative' property to reject it.
  5900. The help text is automatically line-wrapped before being displayed.
  5901. Normally the name of the option is printed on the left-hand side of
  5902. the output and the help text is printed on the right. However, if
  5903. the help text contains a tab character, the text to the left of the
  5904. tab is used instead of the option's name and the text to the right
  5905. of the tab forms the help text. This allows you to elaborate on
  5906. what type of argument the option takes.
  5907. * A target mask record. These records have one field of the form
  5908. 'Mask(X)'. The options-processing script will automatically
  5909. allocate a bit in 'target_flags' (*note Run-time Target::) for each
  5910. mask name X and set the macro 'MASK_X' to the appropriate bitmask.
  5911. It will also declare a 'TARGET_X' macro that has the value 1 when
  5912. bit 'MASK_X' is set and 0 otherwise.
  5913. They are primarily intended to declare target masks that are not
  5914. associated with user options, either because these masks represent
  5915. internal switches or because the options are not available on all
  5916. configurations and yet the masks always need to be defined.
  5917. 
  5918. File: gccint.info, Node: Option properties, Prev: Option file format, Up: Options
  5919. 8.2 Option properties
  5920. =====================
  5921. The second field of an option record can specify any of the following
  5922. properties. When an option takes an argument, it is enclosed in
  5923. parentheses following the option property name. The parser that handles
  5924. option files is quite simplistic, and will be tricked by any nested
  5925. parentheses within the argument text itself; in this case, the entire
  5926. option argument can be wrapped in curly braces within the parentheses to
  5927. demarcate it, e.g.:
  5928. Condition({defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS)})
  5929. 'Common'
  5930. The option is available for all languages and targets.
  5931. 'Target'
  5932. The option is available for all languages but is target-specific.
  5933. 'Driver'
  5934. The option is handled by the compiler driver using code not shared
  5935. with the compilers proper ('cc1' etc.).
  5936. 'LANGUAGE'
  5937. The option is available when compiling for the given language.
  5938. It is possible to specify several different languages for the same
  5939. option. Each LANGUAGE must have been declared by an earlier
  5940. 'Language' record. *Note Option file format::.
  5941. 'RejectDriver'
  5942. The option is only handled by the compilers proper ('cc1' etc.) and
  5943. should not be accepted by the driver.
  5944. 'RejectNegative'
  5945. The option does not have a "no-" form. All options beginning with
  5946. "f", "W" or "m" are assumed to have a "no-" form unless this
  5947. property is used.
  5948. 'Negative(OTHERNAME)'
  5949. The option will turn off another option OTHERNAME, which is the
  5950. option name with the leading "-" removed. This chain action will
  5951. propagate through the 'Negative' property of the option to be
  5952. turned off. The driver will prune options, removing those that are
  5953. turned off by some later option. This pruning is not done for
  5954. options with 'Joined' or 'JoinedOrMissing' properties, unless the
  5955. options have either 'RejectNegative' property or the 'Negative'
  5956. property mentions an option other than itself.
  5957. As a consequence, if you have a group of mutually-exclusive
  5958. options, their 'Negative' properties should form a circular chain.
  5959. For example, if options '-A', '-B' and '-C' are mutually exclusive,
  5960. their respective 'Negative' properties should be 'Negative(B)',
  5961. 'Negative(C)' and 'Negative(A)'.
  5962. 'Joined'
  5963. 'Separate'
  5964. The option takes a mandatory argument. 'Joined' indicates that the
  5965. option and argument can be included in the same 'argv' entry (as
  5966. with '-mflush-func=NAME', for example). 'Separate' indicates that
  5967. the option and argument can be separate 'argv' entries (as with
  5968. '-o'). An option is allowed to have both of these properties.
  5969. 'JoinedOrMissing'
  5970. The option takes an optional argument. If the argument is given,
  5971. it will be part of the same 'argv' entry as the option itself.
  5972. This property cannot be used alongside 'Joined' or 'Separate'.
  5973. 'MissingArgError(MESSAGE)'
  5974. For an option marked 'Joined' or 'Separate', the message MESSAGE
  5975. will be used as an error message if the mandatory argument is
  5976. missing; for options without 'MissingArgError', a generic error
  5977. message is used. MESSAGE should contain a single '%qs' format,
  5978. which will be used to format the name of the option passed.
  5979. 'Args(N)'
  5980. For an option marked 'Separate', indicate that it takes N
  5981. arguments. The default is 1.
  5982. 'UInteger'
  5983. The option's argument is a non-negative integer consisting of
  5984. either decimal or hexadecimal digits interpreted as 'int'.
  5985. Hexadecimal integers may optionally start with the '0x' or '0X'
  5986. prefix. The option parser validates and converts the argument
  5987. before passing it to the relevant option handler. 'UInteger'
  5988. should also be used with options like '-falign-loops' where both
  5989. '-falign-loops' and '-falign-loops'=N are supported to make sure
  5990. the saved options are given a full integer. Positive values of the
  5991. argument in excess of 'INT_MAX' wrap around zero.
  5992. 'Host_Wide_Int'
  5993. The option's argument is a non-negative integer consisting of
  5994. either decimal or hexadecimal digits interpreted as the widest
  5995. integer type on the host. As with an 'UInteger' argument,
  5996. hexadecimal integers may optionally start with the '0x' or '0X'
  5997. prefix. The option parser validates and converts the argument
  5998. before passing it to the relevant option handler. 'Host_Wide_Int'
  5999. should be used with options that need to accept very large values.
  6000. Positive values of the argument in excess of 'HOST_WIDE_INT_M1U'
  6001. are assigned 'HOST_WIDE_INT_M1U'.
  6002. 'IntegerRange(N, M)'
  6003. The options's arguments are integers of type 'int'. The option's
  6004. parser validates that the value of an option integer argument is
  6005. within the closed range [N, M].
  6006. 'ByteSize'
  6007. A property applicable only to 'UInteger' or 'Host_Wide_Int'
  6008. arguments. The option's integer argument is interpreted as if in
  6009. infinite precision using saturation arithmetic in the corresponding
  6010. type. The argument may be followed by a 'byte-size' suffix
  6011. designating a multiple of bytes such as 'kB' and 'KiB' for kilobyte
  6012. and kibibyte, respectively, 'MB' and 'MiB' for megabyte and
  6013. mebibyte, 'GB' and 'GiB' for gigabyte and gigibyte, and so on.
  6014. 'ByteSize' should be used for with options that take a very large
  6015. argument representing a size in bytes, such as '-Wlarger-than='.
  6016. 'ToLower'
  6017. The option's argument should be converted to lowercase as part of
  6018. putting it in canonical form, and before comparing with the strings
  6019. indicated by any 'Enum' property.
  6020. 'NoDriverArg'
  6021. For an option marked 'Separate', the option only takes an argument
  6022. in the compiler proper, not in the driver. This is for
  6023. compatibility with existing options that are used both directly and
  6024. via '-Wp,'; new options should not have this property.
  6025. 'Var(VAR)'
  6026. The state of this option should be stored in variable VAR (actually
  6027. a macro for 'global_options.x_VAR'). The way that the state is
  6028. stored depends on the type of option:
  6029. 'WarnRemoved'
  6030. The option is removed and every usage of such option will result in
  6031. a warning. We use it option backward compatibility.
  6032. 'Var(VAR, SET)'
  6033. The option controls an integer variable VAR and is active when VAR
  6034. equals SET. The option parser will set VAR to SET when the
  6035. positive form of the option is used and '!SET' when the "no-" form
  6036. is used.
  6037. VAR is declared in the same way as for the single-argument form
  6038. described above.
  6039. * If the option uses the 'Mask' or 'InverseMask' properties, VAR
  6040. is the integer variable that contains the mask.
  6041. * If the option is a normal on/off switch, VAR is an integer
  6042. variable that is nonzero when the option is enabled. The
  6043. options parser will set the variable to 1 when the positive
  6044. form of the option is used and 0 when the "no-" form is used.
  6045. * If the option takes an argument and has the 'UInteger'
  6046. property, VAR is an integer variable that stores the value of
  6047. the argument.
  6048. * If the option takes an argument and has the 'Enum' property,
  6049. VAR is a variable (type given in the 'Type' property of the
  6050. 'Enum' record whose 'Name' property has the same argument as
  6051. the 'Enum' property of this option) that stores the value of
  6052. the argument.
  6053. * If the option has the 'Defer' property, VAR is a pointer to a
  6054. 'VEC(cl_deferred_option,heap)' that stores the option for
  6055. later processing. (VAR is declared with type 'void *' and
  6056. needs to be cast to 'VEC(cl_deferred_option,heap)' before
  6057. use.)
  6058. * Otherwise, if the option takes an argument, VAR is a pointer
  6059. to the argument string. The pointer will be null if the
  6060. argument is optional and wasn't given.
  6061. The option-processing script will usually zero-initialize VAR. You
  6062. can modify this behavior using 'Init'.
  6063. 'Init(VALUE)'
  6064. The variable specified by the 'Var' property should be statically
  6065. initialized to VALUE. If more than one option using the same
  6066. variable specifies 'Init', all must specify the same initializer.
  6067. 'Mask(NAME)'
  6068. The option is associated with a bit in the 'target_flags' variable
  6069. (*note Run-time Target::) and is active when that bit is set. You
  6070. may also specify 'Var' to select a variable other than
  6071. 'target_flags'.
  6072. The options-processing script will automatically allocate a unique
  6073. bit for the option. If the option is attached to 'target_flags',
  6074. the script will set the macro 'MASK_NAME' to the appropriate
  6075. bitmask. It will also declare a 'TARGET_NAME' macro that has the
  6076. value 1 when the option is active and 0 otherwise. If you use
  6077. 'Var' to attach the option to a different variable, the bitmask
  6078. macro with be called 'OPTION_MASK_NAME'.
  6079. 'InverseMask(OTHERNAME)'
  6080. 'InverseMask(OTHERNAME, THISNAME)'
  6081. The option is the inverse of another option that has the
  6082. 'Mask(OTHERNAME)' property. If THISNAME is given, the
  6083. options-processing script will declare a 'TARGET_THISNAME' macro
  6084. that is 1 when the option is active and 0 otherwise.
  6085. 'Enum(NAME)'
  6086. The option's argument is a string from the set of strings
  6087. associated with the corresponding 'Enum' record. The string is
  6088. checked and converted to the integer specified in the corresponding
  6089. 'EnumValue' record before being passed to option handlers.
  6090. 'Defer'
  6091. The option should be stored in a vector, specified with 'Var', for
  6092. later processing.
  6093. 'Alias(OPT)'
  6094. 'Alias(OPT, ARG)'
  6095. 'Alias(OPT, POSARG, NEGARG)'
  6096. The option is an alias for '-OPT' (or the negative form of that
  6097. option, depending on 'NegativeAlias'). In the first form, any
  6098. argument passed to the alias is considered to be passed to '-OPT',
  6099. and '-OPT' is considered to be negated if the alias is used in
  6100. negated form. In the second form, the alias may not be negated or
  6101. have an argument, and POSARG is considered to be passed as an
  6102. argument to '-OPT'. In the third form, the alias may not have an
  6103. argument, if the alias is used in the positive form then POSARG is
  6104. considered to be passed to '-OPT', and if the alias is used in the
  6105. negative form then NEGARG is considered to be passed to '-OPT'.
  6106. Aliases should not specify 'Var' or 'Mask' or 'UInteger'. Aliases
  6107. should normally specify the same languages as the target of the
  6108. alias; the flags on the target will be used to determine any
  6109. diagnostic for use of an option for the wrong language, while those
  6110. on the alias will be used to identify what command-line text is the
  6111. option and what text is any argument to that option.
  6112. When an 'Alias' definition is used for an option, driver specs do
  6113. not need to handle it and no 'OPT_' enumeration value is defined
  6114. for it; only the canonical form of the option will be seen in those
  6115. places.
  6116. 'NegativeAlias'
  6117. For an option marked with 'Alias(OPT)', the option is considered to
  6118. be an alias for the positive form of '-OPT' if negated and for the
  6119. negative form of '-OPT' if not negated. 'NegativeAlias' may not be
  6120. used with the forms of 'Alias' taking more than one argument.
  6121. 'Ignore'
  6122. This option is ignored apart from printing any warning specified
  6123. using 'Warn'. The option will not be seen by specs and no 'OPT_'
  6124. enumeration value is defined for it.
  6125. 'SeparateAlias'
  6126. For an option marked with 'Joined', 'Separate' and 'Alias', the
  6127. option only acts as an alias when passed a separate argument; with
  6128. a joined argument it acts as a normal option, with an 'OPT_'
  6129. enumeration value. This is for compatibility with the Java '-d'
  6130. option and should not be used for new options.
  6131. 'Warn(MESSAGE)'
  6132. If this option is used, output the warning MESSAGE. MESSAGE is a
  6133. format string, either taking a single operand with a '%qs' format
  6134. which is the option name, or not taking any operands, which is
  6135. passed to the 'warning' function. If an alias is marked 'Warn',
  6136. the target of the alias must not also be marked 'Warn'.
  6137. 'Warning'
  6138. This is a warning option and should be shown as such in '--help'
  6139. output. This flag does not currently affect anything other than
  6140. '--help'.
  6141. 'Optimization'
  6142. This is an optimization option. It should be shown as such in
  6143. '--help' output, and any associated variable named using 'Var'
  6144. should be saved and restored when the optimization level is changed
  6145. with 'optimize' attributes.
  6146. 'PerFunction'
  6147. This is an option that can be overridden on a per-function basis.
  6148. 'Optimization' implies 'PerFunction', but options that do not
  6149. affect executable code generation may use this flag instead, so
  6150. that the option is not taken into account in ways that might affect
  6151. executable code generation.
  6152. 'Param'
  6153. This is an option that is a parameter.
  6154. 'Undocumented'
  6155. The option is deliberately missing documentation and should not be
  6156. included in the '--help' output.
  6157. 'Condition(COND)'
  6158. The option should only be accepted if preprocessor condition COND
  6159. is true. Note that any C declarations associated with the option
  6160. will be present even if COND is false; COND simply controls whether
  6161. the option is accepted and whether it is printed in the '--help'
  6162. output.
  6163. 'Save'
  6164. Build the 'cl_target_option' structure to hold a copy of the
  6165. option, add the functions 'cl_target_option_save' and
  6166. 'cl_target_option_restore' to save and restore the options.
  6167. 'SetByCombined'
  6168. The option may also be set by a combined option such as
  6169. '-ffast-math'. This causes the 'gcc_options' struct to have a
  6170. field 'frontend_set_NAME', where 'NAME' is the name of the field
  6171. holding the value of this option (without the leading 'x_'). This
  6172. gives the front end a way to indicate that the value has been set
  6173. explicitly and should not be changed by the combined option. For
  6174. example, some front ends use this to prevent '-ffast-math' and
  6175. '-fno-fast-math' from changing the value of '-fmath-errno' for
  6176. languages that do not use 'errno'.
  6177. 'EnabledBy(OPT)'
  6178. 'EnabledBy(OPT || OPT2)'
  6179. 'EnabledBy(OPT && OPT2)'
  6180. If not explicitly set, the option is set to the value of '-OPT';
  6181. multiple options can be given, separated by '||'. The third form
  6182. using '&&' specifies that the option is only set if both OPT and
  6183. OPT2 are set. The options OPT and OPT2 must have the 'Common'
  6184. property; otherwise, use 'LangEnabledBy'.
  6185. 'LangEnabledBy(LANGUAGE, OPT)'
  6186. 'LangEnabledBy(LANGUAGE, OPT, POSARG, NEGARG)'
  6187. When compiling for the given language, the option is set to the
  6188. value of '-OPT', if not explicitly set. OPT can be also a list of
  6189. '||' separated options. In the second form, if OPT is used in the
  6190. positive form then POSARG is considered to be passed to the option,
  6191. and if OPT is used in the negative form then NEGARG is considered
  6192. to be passed to the option. It is possible to specify several
  6193. different languages. Each LANGUAGE must have been declared by an
  6194. earlier 'Language' record. *Note Option file format::.
  6195. 'NoDWARFRecord'
  6196. The option is omitted from the producer string written by
  6197. '-grecord-gcc-switches'.
  6198. 'PchIgnore'
  6199. Even if this is a target option, this option will not be recorded /
  6200. compared to determine if a precompiled header file matches.
  6201. 'CPP(VAR)'
  6202. The state of this option should be kept in sync with the
  6203. preprocessor option VAR. If this property is set, then properties
  6204. 'Var' and 'Init' must be set as well.
  6205. 'CppReason(CPP_W_ENUM)'
  6206. This warning option corresponds to 'cpplib.h' warning reason code
  6207. CPP_W_ENUM. This should only be used for warning options of the
  6208. C-family front-ends.
  6209. 
  6210. File: gccint.info, Node: Passes, Next: poly_int, Prev: Options, Up: Top
  6211. 9 Passes and Files of the Compiler
  6212. **********************************
  6213. This chapter is dedicated to giving an overview of the optimization and
  6214. code generation passes of the compiler. In the process, it describes
  6215. some of the language front end interface, though this description is no
  6216. where near complete.
  6217. * Menu:
  6218. * Parsing pass:: The language front end turns text into bits.
  6219. * Gimplification pass:: The bits are turned into something we can optimize.
  6220. * Pass manager:: Sequencing the optimization passes.
  6221. * IPA passes:: Inter-procedural optimizations.
  6222. * Tree SSA passes:: Optimizations on a high-level representation.
  6223. * RTL passes:: Optimizations on a low-level representation.
  6224. * Optimization info:: Dumping optimization information from passes.
  6225. 
  6226. File: gccint.info, Node: Parsing pass, Next: Gimplification pass, Up: Passes
  6227. 9.1 Parsing pass
  6228. ================
  6229. The language front end is invoked only once, via
  6230. 'lang_hooks.parse_file', to parse the entire input. The language front
  6231. end may use any intermediate language representation deemed appropriate.
  6232. The C front end uses GENERIC trees (*note GENERIC::), plus a double
  6233. handful of language specific tree codes defined in 'c-common.def'. The
  6234. Fortran front end uses a completely different private representation.
  6235. At some point the front end must translate the representation used in
  6236. the front end to a representation understood by the language-independent
  6237. portions of the compiler. Current practice takes one of two forms. The
  6238. C front end manually invokes the gimplifier (*note GIMPLE::) on each
  6239. function, and uses the gimplifier callbacks to convert the
  6240. language-specific tree nodes directly to GIMPLE before passing the
  6241. function off to be compiled. The Fortran front end converts from a
  6242. private representation to GENERIC, which is later lowered to GIMPLE when
  6243. the function is compiled. Which route to choose probably depends on how
  6244. well GENERIC (plus extensions) can be made to match up with the source
  6245. language and necessary parsing data structures.
  6246. BUG: Gimplification must occur before nested function lowering, and
  6247. nested function lowering must be done by the front end before passing
  6248. the data off to cgraph.
  6249. TODO: Cgraph should control nested function lowering. It would only be
  6250. invoked when it is certain that the outer-most function is used.
  6251. TODO: Cgraph needs a gimplify_function callback. It should be invoked
  6252. when (1) it is certain that the function is used, (2) warning flags
  6253. specified by the user require some amount of compilation in order to
  6254. honor, (3) the language indicates that semantic analysis is not complete
  6255. until gimplification occurs. Hum... this sounds overly complicated.
  6256. Perhaps we should just have the front end gimplify always; in most cases
  6257. it's only one function call.
  6258. The front end needs to pass all function definitions and top level
  6259. declarations off to the middle-end so that they can be compiled and
  6260. emitted to the object file. For a simple procedural language, it is
  6261. usually most convenient to do this as each top level declaration or
  6262. definition is seen. There is also a distinction to be made between
  6263. generating functional code and generating complete debug information.
  6264. The only thing that is absolutely required for functional code is that
  6265. function and data _definitions_ be passed to the middle-end. For
  6266. complete debug information, function, data and type declarations should
  6267. all be passed as well.
  6268. In any case, the front end needs each complete top-level function or
  6269. data declaration, and each data definition should be passed to
  6270. 'rest_of_decl_compilation'. Each complete type definition should be
  6271. passed to 'rest_of_type_compilation'. Each function definition should
  6272. be passed to 'cgraph_finalize_function'.
  6273. TODO: I know rest_of_compilation currently has all sorts of RTL
  6274. generation semantics. I plan to move all code generation bits (both
  6275. Tree and RTL) to compile_function. Should we hide cgraph from the front
  6276. ends and move back to rest_of_compilation as the official interface?
  6277. Possibly we should rename all three interfaces such that the names match
  6278. in some meaningful way and that is more descriptive than "rest_of".
  6279. The middle-end will, at its option, emit the function and data
  6280. definitions immediately or queue them for later processing.
  6281. 
  6282. File: gccint.info, Node: Gimplification pass, Next: Pass manager, Prev: Parsing pass, Up: Passes
  6283. 9.2 Gimplification pass
  6284. =======================
  6285. "Gimplification" is a whimsical term for the process of converting the
  6286. intermediate representation of a function into the GIMPLE language
  6287. (*note GIMPLE::). The term stuck, and so words like "gimplification",
  6288. "gimplify", "gimplifier" and the like are sprinkled throughout this
  6289. section of code.
  6290. While a front end may certainly choose to generate GIMPLE directly if
  6291. it chooses, this can be a moderately complex process unless the
  6292. intermediate language used by the front end is already fairly simple.
  6293. Usually it is easier to generate GENERIC trees plus extensions and let
  6294. the language-independent gimplifier do most of the work.
  6295. The main entry point to this pass is 'gimplify_function_tree' located
  6296. in 'gimplify.c'. From here we process the entire function gimplifying
  6297. each statement in turn. The main workhorse for this pass is
  6298. 'gimplify_expr'. Approximately everything passes through here at least
  6299. once, and it is from here that we invoke the 'lang_hooks.gimplify_expr'
  6300. callback.
  6301. The callback should examine the expression in question and return
  6302. 'GS_UNHANDLED' if the expression is not a language specific construct
  6303. that requires attention. Otherwise it should alter the expression in
  6304. some way to such that forward progress is made toward producing valid
  6305. GIMPLE. If the callback is certain that the transformation is complete
  6306. and the expression is valid GIMPLE, it should return 'GS_ALL_DONE'.
  6307. Otherwise it should return 'GS_OK', which will cause the expression to
  6308. be processed again. If the callback encounters an error during the
  6309. transformation (because the front end is relying on the gimplification
  6310. process to finish semantic checks), it should return 'GS_ERROR'.
  6311. 
  6312. File: gccint.info, Node: Pass manager, Next: IPA passes, Prev: Gimplification pass, Up: Passes
  6313. 9.3 Pass manager
  6314. ================
  6315. The pass manager is located in 'passes.c', 'tree-optimize.c' and
  6316. 'tree-pass.h'. It processes passes as described in 'passes.def'. Its
  6317. job is to run all of the individual passes in the correct order, and
  6318. take care of standard bookkeeping that applies to every pass.
  6319. The theory of operation is that each pass defines a structure that
  6320. represents everything we need to know about that pass--when it should be
  6321. run, how it should be run, what intermediate language form or
  6322. on-the-side data structures it needs. We register the pass to be run in
  6323. some particular order, and the pass manager arranges for everything to
  6324. happen in the correct order.
  6325. The actuality doesn't completely live up to the theory at present.
  6326. Command-line switches and 'timevar_id_t' enumerations must still be
  6327. defined elsewhere. The pass manager validates constraints but does not
  6328. attempt to (re-)generate data structures or lower intermediate language
  6329. form based on the requirements of the next pass. Nevertheless, what is
  6330. present is useful, and a far sight better than nothing at all.
  6331. Each pass should have a unique name. Each pass may have its own dump
  6332. file (for GCC debugging purposes). Passes with a name starting with a
  6333. star do not dump anything. Sometimes passes are supposed to share a
  6334. dump file / option name. To still give these unique names, you can use
  6335. a prefix that is delimited by a space from the part that is used for the
  6336. dump file / option name. E.g. When the pass name is "ud dce", the name
  6337. used for dump file/options is "dce".
  6338. TODO: describe the global variables set up by the pass manager, and a
  6339. brief description of how a new pass should use it. I need to look at
  6340. what info RTL passes use first...
  6341. 
  6342. File: gccint.info, Node: IPA passes, Next: Tree SSA passes, Prev: Pass manager, Up: Passes
  6343. 9.4 Inter-procedural optimization passes
  6344. ========================================
  6345. The inter-procedural optimization (IPA) passes use call graph
  6346. information to perform transformations across function boundaries. IPA
  6347. is a critical part of link-time optimization (LTO) and whole-program
  6348. (WHOPR) optimization, and these passes are structured with the needs of
  6349. LTO and WHOPR in mind by dividing their operations into stages. For
  6350. detailed discussion of the LTO/WHOPR IPA pass stages and interfaces, see
  6351. *note IPA::.
  6352. The following briefly describes the inter-procedural optimization (IPA)
  6353. passes, which are split into small IPA passes, regular IPA passes, and
  6354. late IPA passes, according to the LTO/WHOPR processing model.
  6355. * Menu:
  6356. * Small IPA passes::
  6357. * Regular IPA passes::
  6358. * Late IPA passes::
  6359. 
  6360. File: gccint.info, Node: Small IPA passes, Next: Regular IPA passes, Up: IPA passes
  6361. 9.4.1 Small IPA passes
  6362. ----------------------
  6363. A small IPA pass is a pass derived from 'simple_ipa_opt_pass'. As
  6364. described in *note IPA::, it does everything at once and defines only
  6365. the _Execute_ stage. During this stage it accesses and modifies the
  6366. function bodies. No 'generate_summary', 'read_summary', or
  6367. 'write_summary' hooks are defined.
  6368. * IPA free lang data
  6369. This pass frees resources that are used by the front end but are
  6370. not needed once it is done. It is located in 'tree.c' and is
  6371. described by 'pass_ipa_free_lang_data'.
  6372. * IPA function and variable visibility
  6373. This is a local function pass handling visibilities of all symbols.
  6374. This happens before LTO streaming, so '-fwhole-program' should be
  6375. ignored at this level. It is located in 'ipa-visibility.c' and is
  6376. described by 'pass_ipa_function_and_variable_visibility'.
  6377. * IPA remove symbols
  6378. This pass performs reachability analysis and reclaims all
  6379. unreachable nodes. It is located in 'passes.c' and is described by
  6380. 'pass_ipa_remove_symbols'.
  6381. * IPA OpenACC
  6382. This is a pass group for OpenACC processing. It is located in
  6383. 'tree-ssa-loop.c' and is described by 'pass_ipa_oacc'.
  6384. * IPA points-to analysis
  6385. This is a tree-based points-to analysis pass. The idea behind this
  6386. analyzer is to generate set constraints from the program, then
  6387. solve the resulting constraints in order to generate the points-to
  6388. sets. It is located in 'tree-ssa-structalias.c' and is described
  6389. by 'pass_ipa_pta'.
  6390. * IPA OpenACC kernels
  6391. This is a pass group for processing OpenACC kernels regions. It is
  6392. a subpass of the IPA OpenACC pass group that runs on offloaded
  6393. functions containing OpenACC kernels loops. It is located in
  6394. 'tree-ssa-loop.c' and is described by 'pass_ipa_oacc_kernels'.
  6395. * Target clone
  6396. This is a pass for parsing functions with multiple target
  6397. attributes. It is located in 'multiple_target.c' and is described
  6398. by 'pass_target_clone'.
  6399. * IPA auto profile
  6400. This pass uses AutoFDO profiling data to annotate the control flow
  6401. graph. It is located in 'auto-profile.c' and is described by
  6402. 'pass_ipa_auto_profile'.
  6403. * IPA tree profile
  6404. This pass does profiling for all functions in the call graph. It
  6405. calculates branch probabilities and basic block execution counts.
  6406. It is located in 'tree-profile.c' and is described by
  6407. 'pass_ipa_tree_profile'.
  6408. * IPA free function summary
  6409. This pass is a small IPA pass when argument 'small_p' is true. It
  6410. releases inline function summaries and call summaries. It is
  6411. located in 'ipa-fnsummary.c' and is described by
  6412. 'pass_ipa_free_free_fn_summary'.
  6413. * IPA increase alignment
  6414. This pass increases the alignment of global arrays to improve
  6415. vectorization. It is located in 'tree-vectorizer.c' and is
  6416. described by 'pass_ipa_increase_alignment'.
  6417. * IPA transactional memory
  6418. This pass is for transactional memory support. It is located in
  6419. 'trans-mem.c' and is described by 'pass_ipa_tm'.
  6420. * IPA lower emulated TLS
  6421. This pass lowers thread-local storage (TLS) operations to emulation
  6422. functions provided by libgcc. It is located in 'tree-emutls.c' and
  6423. is described by 'pass_ipa_lower_emutls'.
  6424. 
  6425. File: gccint.info, Node: Regular IPA passes, Next: Late IPA passes, Prev: Small IPA passes, Up: IPA passes
  6426. 9.4.2 Regular IPA passes
  6427. ------------------------
  6428. A regular IPA pass is a pass derived from 'ipa_opt_pass_d' that is
  6429. executed in WHOPR compilation. Regular IPA passes may have summary
  6430. hooks implemented in any of the LGEN, WPA or LTRANS stages (*note
  6431. IPA::).
  6432. * IPA whole program visibility
  6433. This pass performs various optimizations involving symbol
  6434. visibility with '-fwhole-program', including symbol privatization,
  6435. discovering local functions, and dismantling comdat groups. It is
  6436. located in 'ipa-visibility.c' and is described by
  6437. 'pass_ipa_whole_program_visibility'.
  6438. * IPA profile
  6439. The IPA profile pass propagates profiling frequencies across the
  6440. call graph. It is located in 'ipa-profile.c' and is described by
  6441. 'pass_ipa_profile'.
  6442. * IPA identical code folding
  6443. This is the inter-procedural identical code folding pass. The goal
  6444. of this transformation is to discover functions and read-only
  6445. variables that have exactly the same semantics. It is located in
  6446. 'ipa-icf.c' and is described by 'pass_ipa_icf'.
  6447. * IPA devirtualization
  6448. This pass performs speculative devirtualization based on the type
  6449. inheritance graph. When a polymorphic call has only one likely
  6450. target in the unit, it is turned into a speculative call. It is
  6451. located in 'ipa-devirt.c' and is described by 'pass_ipa_devirt'.
  6452. * IPA constant propagation
  6453. The goal of this pass is to discover functions that are always
  6454. invoked with some arguments with the same known constant values and
  6455. to modify the functions accordingly. It can also do partial
  6456. specialization and type-based devirtualization. It is located in
  6457. 'ipa-cp.c' and is described by 'pass_ipa_cp'.
  6458. * IPA scalar replacement of aggregates
  6459. This pass can replace an aggregate parameter with a set of other
  6460. parameters representing part of the original, turning those passed
  6461. by reference into new ones which pass the value directly. It also
  6462. removes unused function return values and unused function
  6463. parameters. This pass is located in 'ipa-sra.c' and is described
  6464. by 'pass_ipa_sra'.
  6465. * IPA constructor/destructor merge
  6466. This pass merges multiple constructors and destructors for static
  6467. objects into single functions. It's only run at LTO time unless
  6468. the target doesn't support constructors and destructors natively.
  6469. The pass is located in 'ipa.c' and is described by
  6470. 'pass_ipa_cdtor_merge'.
  6471. * IPA function summary
  6472. This pass provides function analysis for inter-procedural passes.
  6473. It collects estimates of function body size, execution time, and
  6474. frame size for each function. It also estimates information about
  6475. function calls: call statement size, time and how often the
  6476. parameters change for each call. It is located in
  6477. 'ipa-fnsummary.c' and is described by 'pass_ipa_fn_summary'.
  6478. * IPA inline
  6479. The IPA inline pass handles function inlining with whole-program
  6480. knowledge. Small functions that are candidates for inlining are
  6481. ordered in increasing badness, bounded by unit growth parameters.
  6482. Unreachable functions are removed from the call graph. Functions
  6483. called once and not exported from the unit are inlined. This pass
  6484. is located in 'ipa-inline.c' and is described by 'pass_ipa_inline'.
  6485. * IPA pure/const analysis
  6486. This pass marks functions as being either const ('TREE_READONLY')
  6487. or pure ('DECL_PURE_P'). The per-function information is produced
  6488. by 'pure_const_generate_summary', then the global information is
  6489. computed by performing a transitive closure over the call graph.
  6490. It is located in 'ipa-pure-const.c' and is described by
  6491. 'pass_ipa_pure_const'.
  6492. * IPA free function summary
  6493. This pass is a regular IPA pass when argument 'small_p' is false.
  6494. It releases inline function summaries and call summaries. It is
  6495. located in 'ipa-fnsummary.c' and is described by
  6496. 'pass_ipa_free_fn_summary'.
  6497. * IPA reference
  6498. This pass gathers information about how variables whose scope is
  6499. confined to the compilation unit are used. It is located in
  6500. 'ipa-reference.c' and is described by 'pass_ipa_reference'.
  6501. * IPA single use
  6502. This pass checks whether variables are used by a single function.
  6503. It is located in 'ipa.c' and is described by 'pass_ipa_single_use'.
  6504. * IPA comdats
  6505. This pass looks for static symbols that are used exclusively within
  6506. one comdat group, and moves them into that comdat group. It is
  6507. located in 'ipa-comdats.c' and is described by 'pass_ipa_comdats'.
  6508. 
  6509. File: gccint.info, Node: Late IPA passes, Prev: Regular IPA passes, Up: IPA passes
  6510. 9.4.3 Late IPA passes
  6511. ---------------------
  6512. Late IPA passes are simple IPA passes executed after the regular passes.
  6513. In WHOPR mode the passes are executed after partitioning and thus see
  6514. just parts of the compiled unit.
  6515. * Materialize all clones
  6516. Once all functions from compilation unit are in memory, produce all
  6517. clones and update all calls. It is located in 'ipa.c' and is
  6518. described by 'pass_materialize_all_clones'.
  6519. * IPA points-to analysis
  6520. Points-to analysis; this is the same as the points-to-analysis pass
  6521. run with the small IPA passes (*note Small IPA passes::).
  6522. * OpenMP simd clone
  6523. This is the OpenMP constructs' SIMD clone pass. It creates the
  6524. appropriate SIMD clones for functions tagged as elemental SIMD
  6525. functions. It is located in 'omp-simd-clone.c' and is described by
  6526. 'pass_omp_simd_clone'.
  6527. 
  6528. File: gccint.info, Node: Tree SSA passes, Next: RTL passes, Prev: IPA passes, Up: Passes
  6529. 9.5 Tree SSA passes
  6530. ===================
  6531. The following briefly describes the Tree optimization passes that are
  6532. run after gimplification and what source files they are located in.
  6533. * Remove useless statements
  6534. This pass is an extremely simple sweep across the gimple code in
  6535. which we identify obviously dead code and remove it. Here we do
  6536. things like simplify 'if' statements with constant conditions,
  6537. remove exception handling constructs surrounding code that
  6538. obviously cannot throw, remove lexical bindings that contain no
  6539. variables, and other assorted simplistic cleanups. The idea is to
  6540. get rid of the obvious stuff quickly rather than wait until later
  6541. when it's more work to get rid of it. This pass is located in
  6542. 'tree-cfg.c' and described by 'pass_remove_useless_stmts'.
  6543. * OpenMP lowering
  6544. If OpenMP generation ('-fopenmp') is enabled, this pass lowers
  6545. OpenMP constructs into GIMPLE.
  6546. Lowering of OpenMP constructs involves creating replacement
  6547. expressions for local variables that have been mapped using data
  6548. sharing clauses, exposing the control flow of most synchronization
  6549. directives and adding region markers to facilitate the creation of
  6550. the control flow graph. The pass is located in 'omp-low.c' and is
  6551. described by 'pass_lower_omp'.
  6552. * OpenMP expansion
  6553. If OpenMP generation ('-fopenmp') is enabled, this pass expands
  6554. parallel regions into their own functions to be invoked by the
  6555. thread library. The pass is located in 'omp-low.c' and is
  6556. described by 'pass_expand_omp'.
  6557. * Lower control flow
  6558. This pass flattens 'if' statements ('COND_EXPR') and moves lexical
  6559. bindings ('BIND_EXPR') out of line. After this pass, all 'if'
  6560. statements will have exactly two 'goto' statements in its 'then'
  6561. and 'else' arms. Lexical binding information for each statement
  6562. will be found in 'TREE_BLOCK' rather than being inferred from its
  6563. position under a 'BIND_EXPR'. This pass is found in 'gimple-low.c'
  6564. and is described by 'pass_lower_cf'.
  6565. * Lower exception handling control flow
  6566. This pass decomposes high-level exception handling constructs
  6567. ('TRY_FINALLY_EXPR' and 'TRY_CATCH_EXPR') into a form that
  6568. explicitly represents the control flow involved. After this pass,
  6569. 'lookup_stmt_eh_region' will return a non-negative number for any
  6570. statement that may have EH control flow semantics; examine
  6571. 'tree_can_throw_internal' or 'tree_can_throw_external' for exact
  6572. semantics. Exact control flow may be extracted from
  6573. 'foreach_reachable_handler'. The EH region nesting tree is defined
  6574. in 'except.h' and built in 'except.c'. The lowering pass itself is
  6575. in 'tree-eh.c' and is described by 'pass_lower_eh'.
  6576. * Build the control flow graph
  6577. This pass decomposes a function into basic blocks and creates all
  6578. of the edges that connect them. It is located in 'tree-cfg.c' and
  6579. is described by 'pass_build_cfg'.
  6580. * Find all referenced variables
  6581. This pass walks the entire function and collects an array of all
  6582. variables referenced in the function, 'referenced_vars'. The index
  6583. at which a variable is found in the array is used as a UID for the
  6584. variable within this function. This data is needed by the SSA
  6585. rewriting routines. The pass is located in 'tree-dfa.c' and is
  6586. described by 'pass_referenced_vars'.
  6587. * Enter static single assignment form
  6588. This pass rewrites the function such that it is in SSA form. After
  6589. this pass, all 'is_gimple_reg' variables will be referenced by
  6590. 'SSA_NAME', and all occurrences of other variables will be
  6591. annotated with 'VDEFS' and 'VUSES'; PHI nodes will have been
  6592. inserted as necessary for each basic block. This pass is located
  6593. in 'tree-ssa.c' and is described by 'pass_build_ssa'.
  6594. * Warn for uninitialized variables
  6595. This pass scans the function for uses of 'SSA_NAME's that are fed
  6596. by default definition. For non-parameter variables, such uses are
  6597. uninitialized. The pass is run twice, before and after
  6598. optimization (if turned on). In the first pass we only warn for
  6599. uses that are positively uninitialized; in the second pass we warn
  6600. for uses that are possibly uninitialized. The pass is located in
  6601. 'tree-ssa.c' and is defined by 'pass_early_warn_uninitialized' and
  6602. 'pass_late_warn_uninitialized'.
  6603. * Dead code elimination
  6604. This pass scans the function for statements without side effects
  6605. whose result is unused. It does not do memory life analysis, so
  6606. any value that is stored in memory is considered used. The pass is
  6607. run multiple times throughout the optimization process. It is
  6608. located in 'tree-ssa-dce.c' and is described by 'pass_dce'.
  6609. * Dominator optimizations
  6610. This pass performs trivial dominator-based copy and constant
  6611. propagation, expression simplification, and jump threading. It is
  6612. run multiple times throughout the optimization process. It is
  6613. located in 'tree-ssa-dom.c' and is described by 'pass_dominator'.
  6614. * Forward propagation of single-use variables
  6615. This pass attempts to remove redundant computation by substituting
  6616. variables that are used once into the expression that uses them and
  6617. seeing if the result can be simplified. It is located in
  6618. 'tree-ssa-forwprop.c' and is described by 'pass_forwprop'.
  6619. * Copy Renaming
  6620. This pass attempts to change the name of compiler temporaries
  6621. involved in copy operations such that SSA->normal can coalesce the
  6622. copy away. When compiler temporaries are copies of user variables,
  6623. it also renames the compiler temporary to the user variable
  6624. resulting in better use of user symbols. It is located in
  6625. 'tree-ssa-copyrename.c' and is described by 'pass_copyrename'.
  6626. * PHI node optimizations
  6627. This pass recognizes forms of PHI inputs that can be represented as
  6628. conditional expressions and rewrites them into straight line code.
  6629. It is located in 'tree-ssa-phiopt.c' and is described by
  6630. 'pass_phiopt'.
  6631. * May-alias optimization
  6632. This pass performs a flow sensitive SSA-based points-to analysis.
  6633. The resulting may-alias, must-alias, and escape analysis
  6634. information is used to promote variables from in-memory addressable
  6635. objects to non-aliased variables that can be renamed into SSA form.
  6636. We also update the 'VDEF'/'VUSE' memory tags for non-renameable
  6637. aggregates so that we get fewer false kills. The pass is located
  6638. in 'tree-ssa-alias.c' and is described by 'pass_may_alias'.
  6639. Interprocedural points-to information is located in
  6640. 'tree-ssa-structalias.c' and described by 'pass_ipa_pta'.
  6641. * Profiling
  6642. This pass instruments the function in order to collect runtime
  6643. block and value profiling data. Such data may be fed back into the
  6644. compiler on a subsequent run so as to allow optimization based on
  6645. expected execution frequencies. The pass is located in
  6646. 'tree-profile.c' and is described by 'pass_ipa_tree_profile'.
  6647. * Static profile estimation
  6648. This pass implements series of heuristics to guess propababilities
  6649. of branches. The resulting predictions are turned into edge
  6650. profile by propagating branches across the control flow graphs.
  6651. The pass is located in 'tree-profile.c' and is described by
  6652. 'pass_profile'.
  6653. * Lower complex arithmetic
  6654. This pass rewrites complex arithmetic operations into their
  6655. component scalar arithmetic operations. The pass is located in
  6656. 'tree-complex.c' and is described by 'pass_lower_complex'.
  6657. * Scalar replacement of aggregates
  6658. This pass rewrites suitable non-aliased local aggregate variables
  6659. into a set of scalar variables. The resulting scalar variables are
  6660. rewritten into SSA form, which allows subsequent optimization
  6661. passes to do a significantly better job with them. The pass is
  6662. located in 'tree-sra.c' and is described by 'pass_sra'.
  6663. * Dead store elimination
  6664. This pass eliminates stores to memory that are subsequently
  6665. overwritten by another store, without any intervening loads. The
  6666. pass is located in 'tree-ssa-dse.c' and is described by 'pass_dse'.
  6667. * Tail recursion elimination
  6668. This pass transforms tail recursion into a loop. It is located in
  6669. 'tree-tailcall.c' and is described by 'pass_tail_recursion'.
  6670. * Forward store motion
  6671. This pass sinks stores and assignments down the flowgraph closer to
  6672. their use point. The pass is located in 'tree-ssa-sink.c' and is
  6673. described by 'pass_sink_code'.
  6674. * Partial redundancy elimination
  6675. This pass eliminates partially redundant computations, as well as
  6676. performing load motion. The pass is located in 'tree-ssa-pre.c'
  6677. and is described by 'pass_pre'.
  6678. Just before partial redundancy elimination, if
  6679. '-funsafe-math-optimizations' is on, GCC tries to convert divisions
  6680. to multiplications by the reciprocal. The pass is located in
  6681. 'tree-ssa-math-opts.c' and is described by 'pass_cse_reciprocal'.
  6682. * Full redundancy elimination
  6683. This is a simpler form of PRE that only eliminates redundancies
  6684. that occur on all paths. It is located in 'tree-ssa-pre.c' and
  6685. described by 'pass_fre'.
  6686. * Loop optimization
  6687. The main driver of the pass is placed in 'tree-ssa-loop.c' and
  6688. described by 'pass_loop'.
  6689. The optimizations performed by this pass are:
  6690. Loop invariant motion. This pass moves only invariants that would
  6691. be hard to handle on RTL level (function calls, operations that
  6692. expand to nontrivial sequences of insns). With '-funswitch-loops'
  6693. it also moves operands of conditions that are invariant out of the
  6694. loop, so that we can use just trivial invariantness analysis in
  6695. loop unswitching. The pass also includes store motion. The pass
  6696. is implemented in 'tree-ssa-loop-im.c'.
  6697. Canonical induction variable creation. This pass creates a simple
  6698. counter for number of iterations of the loop and replaces the exit
  6699. condition of the loop using it, in case when a complicated analysis
  6700. is necessary to determine the number of iterations. Later
  6701. optimizations then may determine the number easily. The pass is
  6702. implemented in 'tree-ssa-loop-ivcanon.c'.
  6703. Induction variable optimizations. This pass performs standard
  6704. induction variable optimizations, including strength reduction,
  6705. induction variable merging and induction variable elimination. The
  6706. pass is implemented in 'tree-ssa-loop-ivopts.c'.
  6707. Loop unswitching. This pass moves the conditional jumps that are
  6708. invariant out of the loops. To achieve this, a duplicate of the
  6709. loop is created for each possible outcome of conditional jump(s).
  6710. The pass is implemented in 'tree-ssa-loop-unswitch.c'.
  6711. Loop splitting. If a loop contains a conditional statement that is
  6712. always true for one part of the iteration space and false for the
  6713. other this pass splits the loop into two, one dealing with one side
  6714. the other only with the other, thereby removing one inner-loop
  6715. conditional. The pass is implemented in 'tree-ssa-loop-split.c'.
  6716. The optimizations also use various utility functions contained in
  6717. 'tree-ssa-loop-manip.c', 'cfgloop.c', 'cfgloopanal.c' and
  6718. 'cfgloopmanip.c'.
  6719. Vectorization. This pass transforms loops to operate on vector
  6720. types instead of scalar types. Data parallelism across loop
  6721. iterations is exploited to group data elements from consecutive
  6722. iterations into a vector and operate on them in parallel.
  6723. Depending on available target support the loop is conceptually
  6724. unrolled by a factor 'VF' (vectorization factor), which is the
  6725. number of elements operated upon in parallel in each iteration, and
  6726. the 'VF' copies of each scalar operation are fused to form a vector
  6727. operation. Additional loop transformations such as peeling and
  6728. versioning may take place to align the number of iterations, and to
  6729. align the memory accesses in the loop. The pass is implemented in
  6730. 'tree-vectorizer.c' (the main driver), 'tree-vect-loop.c' and
  6731. 'tree-vect-loop-manip.c' (loop specific parts and general loop
  6732. utilities), 'tree-vect-slp' (loop-aware SLP functionality),
  6733. 'tree-vect-stmts.c', 'tree-vect-data-refs.c' and
  6734. 'tree-vect-slp-patterns.c' containing the SLP pattern matcher.
  6735. Analysis of data references is in 'tree-data-ref.c'.
  6736. SLP Vectorization. This pass performs vectorization of
  6737. straight-line code. The pass is implemented in 'tree-vectorizer.c'
  6738. (the main driver), 'tree-vect-slp.c', 'tree-vect-stmts.c' and
  6739. 'tree-vect-data-refs.c'.
  6740. Autoparallelization. This pass splits the loop iteration space to
  6741. run into several threads. The pass is implemented in
  6742. 'tree-parloops.c'.
  6743. Graphite is a loop transformation framework based on the polyhedral
  6744. model. Graphite stands for Gimple Represented as Polyhedra. The
  6745. internals of this infrastructure are documented in
  6746. <http://gcc.gnu.org/wiki/Graphite>. The passes working on this
  6747. representation are implemented in the various 'graphite-*' files.
  6748. * Tree level if-conversion for vectorizer
  6749. This pass applies if-conversion to simple loops to help vectorizer.
  6750. We identify if convertible loops, if-convert statements and merge
  6751. basic blocks in one big block. The idea is to present loop in such
  6752. form so that vectorizer can have one to one mapping between
  6753. statements and available vector operations. This pass is located
  6754. in 'tree-if-conv.c' and is described by 'pass_if_conversion'.
  6755. * Conditional constant propagation
  6756. This pass relaxes a lattice of values in order to identify those
  6757. that must be constant even in the presence of conditional branches.
  6758. The pass is located in 'tree-ssa-ccp.c' and is described by
  6759. 'pass_ccp'.
  6760. A related pass that works on memory loads and stores, and not just
  6761. register values, is located in 'tree-ssa-ccp.c' and described by
  6762. 'pass_store_ccp'.
  6763. * Conditional copy propagation
  6764. This is similar to constant propagation but the lattice of values
  6765. is the "copy-of" relation. It eliminates redundant copies from the
  6766. code. The pass is located in 'tree-ssa-copy.c' and described by
  6767. 'pass_copy_prop'.
  6768. A related pass that works on memory copies, and not just register
  6769. copies, is located in 'tree-ssa-copy.c' and described by
  6770. 'pass_store_copy_prop'.
  6771. * Value range propagation
  6772. This transformation is similar to constant propagation but instead
  6773. of propagating single constant values, it propagates known value
  6774. ranges. The implementation is based on Patterson's range
  6775. propagation algorithm (Accurate Static Branch Prediction by Value
  6776. Range Propagation, J. R. C. Patterson, PLDI '95). In contrast to
  6777. Patterson's algorithm, this implementation does not propagate
  6778. branch probabilities nor it uses more than a single range per SSA
  6779. name. This means that the current implementation cannot be used
  6780. for branch prediction (though adapting it would not be difficult).
  6781. The pass is located in 'tree-vrp.c' and is described by 'pass_vrp'.
  6782. * Folding built-in functions
  6783. This pass simplifies built-in functions, as applicable, with
  6784. constant arguments or with inferable string lengths. It is located
  6785. in 'tree-ssa-ccp.c' and is described by 'pass_fold_builtins'.
  6786. * Split critical edges
  6787. This pass identifies critical edges and inserts empty basic blocks
  6788. such that the edge is no longer critical. The pass is located in
  6789. 'tree-cfg.c' and is described by 'pass_split_crit_edges'.
  6790. * Control dependence dead code elimination
  6791. This pass is a stronger form of dead code elimination that can
  6792. eliminate unnecessary control flow statements. It is located in
  6793. 'tree-ssa-dce.c' and is described by 'pass_cd_dce'.
  6794. * Tail call elimination
  6795. This pass identifies function calls that may be rewritten into
  6796. jumps. No code transformation is actually applied here, but the
  6797. data and control flow problem is solved. The code transformation
  6798. requires target support, and so is delayed until RTL. In the
  6799. meantime 'CALL_EXPR_TAILCALL' is set indicating the possibility.
  6800. The pass is located in 'tree-tailcall.c' and is described by
  6801. 'pass_tail_calls'. The RTL transformation is handled by
  6802. 'fixup_tail_calls' in 'calls.c'.
  6803. * Warn for function return without value
  6804. For non-void functions, this pass locates return statements that do
  6805. not specify a value and issues a warning. Such a statement may
  6806. have been injected by falling off the end of the function. This
  6807. pass is run last so that we have as much time as possible to prove
  6808. that the statement is not reachable. It is located in 'tree-cfg.c'
  6809. and is described by 'pass_warn_function_return'.
  6810. * Leave static single assignment form
  6811. This pass rewrites the function such that it is in normal form. At
  6812. the same time, we eliminate as many single-use temporaries as
  6813. possible, so the intermediate language is no longer GIMPLE, but
  6814. GENERIC. The pass is located in 'tree-outof-ssa.c' and is
  6815. described by 'pass_del_ssa'.
  6816. * Merge PHI nodes that feed into one another
  6817. This is part of the CFG cleanup passes. It attempts to join PHI
  6818. nodes from a forwarder CFG block into another block with PHI nodes.
  6819. The pass is located in 'tree-cfgcleanup.c' and is described by
  6820. 'pass_merge_phi'.
  6821. * Return value optimization
  6822. If a function always returns the same local variable, and that
  6823. local variable is an aggregate type, then the variable is replaced
  6824. with the return value for the function (i.e., the function's
  6825. DECL_RESULT). This is equivalent to the C++ named return value
  6826. optimization applied to GIMPLE. The pass is located in
  6827. 'tree-nrv.c' and is described by 'pass_nrv'.
  6828. * Return slot optimization
  6829. If a function returns a memory object and is called as 'var =
  6830. foo()', this pass tries to change the call so that the address of
  6831. 'var' is sent to the caller to avoid an extra memory copy. This
  6832. pass is located in 'tree-nrv.c' and is described by
  6833. 'pass_return_slot'.
  6834. * Optimize calls to '__builtin_object_size'
  6835. This is a propagation pass similar to CCP that tries to remove
  6836. calls to '__builtin_object_size' when the size of the object can be
  6837. computed at compile-time. This pass is located in
  6838. 'tree-object-size.c' and is described by 'pass_object_sizes'.
  6839. * Loop invariant motion
  6840. This pass removes expensive loop-invariant computations out of
  6841. loops. The pass is located in 'tree-ssa-loop.c' and described by
  6842. 'pass_lim'.
  6843. * Loop nest optimizations
  6844. This is a family of loop transformations that works on loop nests.
  6845. It includes loop interchange, scaling, skewing and reversal and
  6846. they are all geared to the optimization of data locality in array
  6847. traversals and the removal of dependencies that hamper
  6848. optimizations such as loop parallelization and vectorization. The
  6849. pass is located in 'tree-loop-linear.c' and described by
  6850. 'pass_linear_transform'.
  6851. * Removal of empty loops
  6852. This pass removes loops with no code in them. The pass is located
  6853. in 'tree-ssa-loop-ivcanon.c' and described by 'pass_empty_loop'.
  6854. * Unrolling of small loops
  6855. This pass completely unrolls loops with few iterations. The pass
  6856. is located in 'tree-ssa-loop-ivcanon.c' and described by
  6857. 'pass_complete_unroll'.
  6858. * Predictive commoning
  6859. This pass makes the code reuse the computations from the previous
  6860. iterations of the loops, especially loads and stores to memory. It
  6861. does so by storing the values of these computations to a bank of
  6862. temporary variables that are rotated at the end of loop. To avoid
  6863. the need for this rotation, the loop is then unrolled and the
  6864. copies of the loop body are rewritten to use the appropriate
  6865. version of the temporary variable. This pass is located in
  6866. 'tree-predcom.c' and described by 'pass_predcom'.
  6867. * Array prefetching
  6868. This pass issues prefetch instructions for array references inside
  6869. loops. The pass is located in 'tree-ssa-loop-prefetch.c' and
  6870. described by 'pass_loop_prefetch'.
  6871. * Reassociation
  6872. This pass rewrites arithmetic expressions to enable optimizations
  6873. that operate on them, like redundancy elimination and
  6874. vectorization. The pass is located in 'tree-ssa-reassoc.c' and
  6875. described by 'pass_reassoc'.
  6876. * Optimization of 'stdarg' functions
  6877. This pass tries to avoid the saving of register arguments into the
  6878. stack on entry to 'stdarg' functions. If the function doesn't use
  6879. any 'va_start' macros, no registers need to be saved. If
  6880. 'va_start' macros are used, the 'va_list' variables don't escape
  6881. the function, it is only necessary to save registers that will be
  6882. used in 'va_arg' macros. For instance, if 'va_arg' is only used
  6883. with integral types in the function, floating point registers don't
  6884. need to be saved. This pass is located in 'tree-stdarg.c' and
  6885. described by 'pass_stdarg'.
  6886. 
  6887. File: gccint.info, Node: RTL passes, Next: Optimization info, Prev: Tree SSA passes, Up: Passes
  6888. 9.6 RTL passes
  6889. ==============
  6890. The following briefly describes the RTL generation and optimization
  6891. passes that are run after the Tree optimization passes.
  6892. * RTL generation
  6893. The source files for RTL generation include 'stmt.c', 'calls.c',
  6894. 'expr.c', 'explow.c', 'expmed.c', 'function.c', 'optabs.c' and
  6895. 'emit-rtl.c'. Also, the file 'insn-emit.c', generated from the
  6896. machine description by the program 'genemit', is used in this pass.
  6897. The header file 'expr.h' is used for communication within this
  6898. pass.
  6899. The header files 'insn-flags.h' and 'insn-codes.h', generated from
  6900. the machine description by the programs 'genflags' and 'gencodes',
  6901. tell this pass which standard names are available for use and which
  6902. patterns correspond to them.
  6903. * Generation of exception landing pads
  6904. This pass generates the glue that handles communication between the
  6905. exception handling library routines and the exception handlers
  6906. within the function. Entry points in the function that are invoked
  6907. by the exception handling library are called "landing pads". The
  6908. code for this pass is located in 'except.c'.
  6909. * Control flow graph cleanup
  6910. This pass removes unreachable code, simplifies jumps to next, jumps
  6911. to jump, jumps across jumps, etc. The pass is run multiple times.
  6912. For historical reasons, it is occasionally referred to as the "jump
  6913. optimization pass". The bulk of the code for this pass is in
  6914. 'cfgcleanup.c', and there are support routines in 'cfgrtl.c' and
  6915. 'jump.c'.
  6916. * Forward propagation of single-def values
  6917. This pass attempts to remove redundant computation by substituting
  6918. variables that come from a single definition, and seeing if the
  6919. result can be simplified. It performs copy propagation and
  6920. addressing mode selection. The pass is run twice, with values
  6921. being propagated into loops only on the second run. The code is
  6922. located in 'fwprop.c'.
  6923. * Common subexpression elimination
  6924. This pass removes redundant computation within basic blocks, and
  6925. optimizes addressing modes based on cost. The pass is run twice.
  6926. The code for this pass is located in 'cse.c'.
  6927. * Global common subexpression elimination
  6928. This pass performs two different types of GCSE depending on whether
  6929. you are optimizing for size or not (LCM based GCSE tends to
  6930. increase code size for a gain in speed, while Morel-Renvoise based
  6931. GCSE does not). When optimizing for size, GCSE is done using
  6932. Morel-Renvoise Partial Redundancy Elimination, with the exception
  6933. that it does not try to move invariants out of loops--that is left
  6934. to the loop optimization pass. If MR PRE GCSE is done, code
  6935. hoisting (aka unification) is also done, as well as load motion.
  6936. If you are optimizing for speed, LCM (lazy code motion) based GCSE
  6937. is done. LCM is based on the work of Knoop, Ruthing, and Steffen.
  6938. LCM based GCSE also does loop invariant code motion. We also
  6939. perform load and store motion when optimizing for speed.
  6940. Regardless of which type of GCSE is used, the GCSE pass also
  6941. performs global constant and copy propagation. The source file for
  6942. this pass is 'gcse.c', and the LCM routines are in 'lcm.c'.
  6943. * Loop optimization
  6944. This pass performs several loop related optimizations. The source
  6945. files 'cfgloopanal.c' and 'cfgloopmanip.c' contain generic loop
  6946. analysis and manipulation code. Initialization and finalization of
  6947. loop structures is handled by 'loop-init.c'. A loop invariant
  6948. motion pass is implemented in 'loop-invariant.c'. Basic block
  6949. level optimizations--unrolling, and peeling loops-- are implemented
  6950. in 'loop-unroll.c'. Replacing of the exit condition of loops by
  6951. special machine-dependent instructions is handled by
  6952. 'loop-doloop.c'.
  6953. * Jump bypassing
  6954. This pass is an aggressive form of GCSE that transforms the control
  6955. flow graph of a function by propagating constants into conditional
  6956. branch instructions. The source file for this pass is 'gcse.c'.
  6957. * If conversion
  6958. This pass attempts to replace conditional branches and surrounding
  6959. assignments with arithmetic, boolean value producing comparison
  6960. instructions, and conditional move instructions. In the very last
  6961. invocation after reload/LRA, it will generate predicated
  6962. instructions when supported by the target. The code is located in
  6963. 'ifcvt.c'.
  6964. * Web construction
  6965. This pass splits independent uses of each pseudo-register. This
  6966. can improve effect of the other transformation, such as CSE or
  6967. register allocation. The code for this pass is located in 'web.c'.
  6968. * Instruction combination
  6969. This pass attempts to combine groups of two or three instructions
  6970. that are related by data flow into single instructions. It
  6971. combines the RTL expressions for the instructions by substitution,
  6972. simplifies the result using algebra, and then attempts to match the
  6973. result against the machine description. The code is located in
  6974. 'combine.c'.
  6975. * Mode switching optimization
  6976. This pass looks for instructions that require the processor to be
  6977. in a specific "mode" and minimizes the number of mode changes
  6978. required to satisfy all users. What these modes are, and what they
  6979. apply to are completely target-specific. The code for this pass is
  6980. located in 'mode-switching.c'.
  6981. * Modulo scheduling
  6982. This pass looks at innermost loops and reorders their instructions
  6983. by overlapping different iterations. Modulo scheduling is
  6984. performed immediately before instruction scheduling. The code for
  6985. this pass is located in 'modulo-sched.c'.
  6986. * Instruction scheduling
  6987. This pass looks for instructions whose output will not be available
  6988. by the time that it is used in subsequent instructions. Memory
  6989. loads and floating point instructions often have this behavior on
  6990. RISC machines. It re-orders instructions within a basic block to
  6991. try to separate the definition and use of items that otherwise
  6992. would cause pipeline stalls. This pass is performed twice, before
  6993. and after register allocation. The code for this pass is located
  6994. in 'haifa-sched.c', 'sched-deps.c', 'sched-ebb.c', 'sched-rgn.c'
  6995. and 'sched-vis.c'.
  6996. * Register allocation
  6997. These passes make sure that all occurrences of pseudo registers are
  6998. eliminated, either by allocating them to a hard register, replacing
  6999. them by an equivalent expression (e.g. a constant) or by placing
  7000. them on the stack. This is done in several subpasses:
  7001. * The integrated register allocator (IRA). It is called
  7002. integrated because coalescing, register live range splitting,
  7003. and hard register preferencing are done on-the-fly during
  7004. coloring. It also has better integration with the reload/LRA
  7005. pass. Pseudo-registers spilled by the allocator or the
  7006. reload/LRA have still a chance to get hard-registers if the
  7007. reload/LRA evicts some pseudo-registers from hard-registers.
  7008. The allocator helps to choose better pseudos for spilling
  7009. based on their live ranges and to coalesce stack slots
  7010. allocated for the spilled pseudo-registers. IRA is a regional
  7011. register allocator which is transformed into Chaitin-Briggs
  7012. allocator if there is one region. By default, IRA chooses
  7013. regions using register pressure but the user can force it to
  7014. use one region or regions corresponding to all loops.
  7015. Source files of the allocator are 'ira.c', 'ira-build.c',
  7016. 'ira-costs.c', 'ira-conflicts.c', 'ira-color.c', 'ira-emit.c',
  7017. 'ira-lives', plus header files 'ira.h' and 'ira-int.h' used
  7018. for the communication between the allocator and the rest of
  7019. the compiler and between the IRA files.
  7020. * Reloading. This pass renumbers pseudo registers with the
  7021. hardware registers numbers they were allocated. Pseudo
  7022. registers that did not get hard registers are replaced with
  7023. stack slots. Then it finds instructions that are invalid
  7024. because a value has failed to end up in a register, or has
  7025. ended up in a register of the wrong kind. It fixes up these
  7026. instructions by reloading the problematical values temporarily
  7027. into registers. Additional instructions are generated to do
  7028. the copying.
  7029. The reload pass also optionally eliminates the frame pointer
  7030. and inserts instructions to save and restore call-clobbered
  7031. registers around calls.
  7032. Source files are 'reload.c' and 'reload1.c', plus the header
  7033. 'reload.h' used for communication between them.
  7034. * This pass is a modern replacement of the reload pass. Source
  7035. files are 'lra.c', 'lra-assign.c', 'lra-coalesce.c',
  7036. 'lra-constraints.c', 'lra-eliminations.c', 'lra-lives.c',
  7037. 'lra-remat.c', 'lra-spills.c', the header 'lra-int.h' used for
  7038. communication between them, and the header 'lra.h' used for
  7039. communication between LRA and the rest of compiler.
  7040. Unlike the reload pass, intermediate LRA decisions are
  7041. reflected in RTL as much as possible. This reduces the number
  7042. of target-dependent macros and hooks, leaving instruction
  7043. constraints as the primary source of control.
  7044. LRA is run on targets for which TARGET_LRA_P returns true.
  7045. * Basic block reordering
  7046. This pass implements profile guided code positioning. If profile
  7047. information is not available, various types of static analysis are
  7048. performed to make the predictions normally coming from the profile
  7049. feedback (IE execution frequency, branch probability, etc). It is
  7050. implemented in the file 'bb-reorder.c', and the various prediction
  7051. routines are in 'predict.c'.
  7052. * Variable tracking
  7053. This pass computes where the variables are stored at each position
  7054. in code and generates notes describing the variable locations to
  7055. RTL code. The location lists are then generated according to these
  7056. notes to debug information if the debugging information format
  7057. supports location lists. The code is located in 'var-tracking.c'.
  7058. * Delayed branch scheduling
  7059. This optional pass attempts to find instructions that can go into
  7060. the delay slots of other instructions, usually jumps and calls.
  7061. The code for this pass is located in 'reorg.c'.
  7062. * Branch shortening
  7063. On many RISC machines, branch instructions have a limited range.
  7064. Thus, longer sequences of instructions must be used for long
  7065. branches. In this pass, the compiler figures out what how far each
  7066. instruction will be from each other instruction, and therefore
  7067. whether the usual instructions, or the longer sequences, must be
  7068. used for each branch. The code for this pass is located in
  7069. 'final.c'.
  7070. * Register-to-stack conversion
  7071. Conversion from usage of some hard registers to usage of a register
  7072. stack may be done at this point. Currently, this is supported only
  7073. for the floating-point registers of the Intel 80387 coprocessor.
  7074. The code for this pass is located in 'reg-stack.c'.
  7075. * Final
  7076. This pass outputs the assembler code for the function. The source
  7077. files are 'final.c' plus 'insn-output.c'; the latter is generated
  7078. automatically from the machine description by the tool 'genoutput'.
  7079. The header file 'conditions.h' is used for communication between
  7080. these files.
  7081. * Debugging information output
  7082. This is run after final because it must output the stack slot
  7083. offsets for pseudo registers that did not get hard registers.
  7084. Source files are 'dbxout.c' for DBX symbol table format,
  7085. 'dwarfout.c' for DWARF symbol table format, files 'dwarf2out.c' and
  7086. 'dwarf2asm.c' for DWARF2 symbol table format, and 'vmsdbgout.c' for
  7087. VMS debug symbol table format.
  7088. 
  7089. File: gccint.info, Node: Optimization info, Prev: RTL passes, Up: Passes
  7090. 9.7 Optimization info
  7091. =====================
  7092. This section is describes dump infrastructure which is common to both
  7093. pass dumps as well as optimization dumps. The goal for this
  7094. infrastructure is to provide both gcc developers and users detailed
  7095. information about various compiler transformations and optimizations.
  7096. * Menu:
  7097. * Dump setup:: Setup of optimization dumps.
  7098. * Optimization groups:: Groups made up of optimization passes.
  7099. * Dump files and streams:: Dump output file names and streams.
  7100. * Dump output verbosity:: How much information to dump.
  7101. * Dump types:: Various types of dump functions.
  7102. * Dump examples:: Sample usage.
  7103. 
  7104. File: gccint.info, Node: Dump setup, Next: Optimization groups, Up: Optimization info
  7105. 9.7.1 Dump setup
  7106. ----------------
  7107. A dump_manager class is defined in 'dumpfile.h'. Various passes
  7108. register dumping pass-specific information via 'dump_register' in
  7109. 'passes.c'. During the registration, an optimization pass can select
  7110. its optimization group (*note Optimization groups::). After that
  7111. optimization information corresponding to the entire group (presumably
  7112. from multiple passes) can be output via command-line switches. Note
  7113. that if a pass does not fit into any of the pre-defined groups, it can
  7114. select 'OPTGROUP_NONE'.
  7115. Note that in general, a pass need not know its dump output file name,
  7116. whether certain flags are enabled, etc. However, for legacy reasons,
  7117. passes could also call 'dump_begin' which returns a stream in case the
  7118. particular pass has optimization dumps enabled. A pass could call
  7119. 'dump_end' when the dump has ended. These methods should go away once
  7120. all the passes are converted to use the new dump infrastructure.
  7121. The recommended way to setup the dump output is via 'dump_start' and
  7122. 'dump_end'.
  7123. 
  7124. File: gccint.info, Node: Optimization groups, Next: Dump files and streams, Prev: Dump setup, Up: Optimization info
  7125. 9.7.2 Optimization groups
  7126. -------------------------
  7127. The optimization passes are grouped into several categories. Currently
  7128. defined categories in 'dumpfile.h' are
  7129. 'OPTGROUP_IPA'
  7130. IPA optimization passes. Enabled by '-ipa'
  7131. 'OPTGROUP_LOOP'
  7132. Loop optimization passes. Enabled by '-loop'.
  7133. 'OPTGROUP_INLINE'
  7134. Inlining passes. Enabled by '-inline'.
  7135. 'OPTGROUP_OMP'
  7136. OMP (Offloading and Multi Processing) passes. Enabled by '-omp'.
  7137. 'OPTGROUP_VEC'
  7138. Vectorization passes. Enabled by '-vec'.
  7139. 'OPTGROUP_OTHER'
  7140. All other optimization passes which do not fall into one of the
  7141. above.
  7142. 'OPTGROUP_ALL'
  7143. All optimization passes. Enabled by '-optall'.
  7144. By using groups a user could selectively enable optimization
  7145. information only for a group of passes. By default, the optimization
  7146. information for all the passes is dumped.
  7147. 
  7148. File: gccint.info, Node: Dump files and streams, Next: Dump output verbosity, Prev: Optimization groups, Up: Optimization info
  7149. 9.7.3 Dump files and streams
  7150. ----------------------------
  7151. There are two separate output streams available for outputting
  7152. optimization information from passes. Note that both these streams
  7153. accept 'stderr' and 'stdout' as valid streams and thus it is possible to
  7154. dump output to standard output or error. This is specially handy for
  7155. outputting all available information in a single file by redirecting
  7156. 'stderr'.
  7157. 'pstream'
  7158. This stream is for pass-specific dump output. For example,
  7159. '-fdump-tree-vect=foo.v' dumps tree vectorization pass output into
  7160. the given file name 'foo.v'. If the file name is not provided, the
  7161. default file name is based on the source file and pass number.
  7162. Note that one could also use special file names 'stdout' and
  7163. 'stderr' for dumping to standard output and standard error
  7164. respectively.
  7165. 'alt_stream'
  7166. This steam is used for printing optimization specific output in
  7167. response to the '-fopt-info'. Again a file name can be given. If
  7168. the file name is not given, it defaults to 'stderr'.
  7169. 
  7170. File: gccint.info, Node: Dump output verbosity, Next: Dump types, Prev: Dump files and streams, Up: Optimization info
  7171. 9.7.4 Dump output verbosity
  7172. ---------------------------
  7173. The dump verbosity has the following options
  7174. 'optimized'
  7175. Print information when an optimization is successfully applied. It
  7176. is up to a pass to decide which information is relevant. For
  7177. example, the vectorizer passes print the source location of loops
  7178. which got successfully vectorized.
  7179. 'missed'
  7180. Print information about missed optimizations. Individual passes
  7181. control which information to include in the output. For example,
  7182. gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  7183. will print information about missed optimization opportunities from
  7184. vectorization passes on stderr.
  7185. 'note'
  7186. Print verbose information about optimizations, such as certain
  7187. transformations, more detailed messages about decisions etc.
  7188. 'all'
  7189. Print detailed optimization information. This includes OPTIMIZED,
  7190. MISSED, and NOTE.
  7191. 
  7192. File: gccint.info, Node: Dump types, Next: Dump examples, Prev: Dump output verbosity, Up: Optimization info
  7193. 9.7.5 Dump types
  7194. ----------------
  7195. 'dump_printf'
  7196. This is a generic method for doing formatted output. It takes an
  7197. additional argument 'dump_kind' which signifies the type of dump.
  7198. This method outputs information only when the dumps are enabled for
  7199. this particular 'dump_kind'. Note that the caller doesn't need to
  7200. know if the particular dump is enabled or not, or even the file
  7201. name. The caller only needs to decide which dump output
  7202. information is relevant, and under what conditions. This
  7203. determines the associated flags.
  7204. Consider the following example from 'loop-unroll.c' where an
  7205. informative message about a loop (along with its location) is
  7206. printed when any of the following flags is enabled
  7207. - optimization messages
  7208. - RTL dumps
  7209. - detailed dumps
  7210. int report_flags = MSG_OPTIMIZED_LOCATIONS | TDF_RTL | TDF_DETAILS;
  7211. dump_printf_loc (report_flags, insn,
  7212. "loop turned into non-loop; it never loops.\n");
  7213. 'dump_basic_block'
  7214. Output basic block.
  7215. 'dump_generic_expr'
  7216. Output generic expression.
  7217. 'dump_gimple_stmt'
  7218. Output gimple statement.
  7219. Note that the above methods also have variants prefixed with
  7220. '_loc', such as 'dump_printf_loc', which are similar except they
  7221. also output the source location information. The '_loc' variants
  7222. take a 'const dump_location_t &'. This class can be constructed
  7223. from a 'gimple *' or from a 'rtx_insn *', and so callers can pass a
  7224. 'gimple *' or a 'rtx_insn *' as the '_loc' argument. The
  7225. 'dump_location_t' constructor will extract the source location from
  7226. the statement or instruction, along with the profile count, and the
  7227. location in GCC's own source code (or the plugin) from which the
  7228. dump call was emitted. Only the source location is currently used.
  7229. There is also a 'dump_user_location_t' class, capturing the source
  7230. location and profile count, but not the dump emission location, so
  7231. that locations in the user's code can be passed around. This can
  7232. also be constructed from a 'gimple *' and from a 'rtx_insn *', and
  7233. it too can be passed as the '_loc' argument.
  7234. 
  7235. File: gccint.info, Node: Dump examples, Prev: Dump types, Up: Optimization info
  7236. 9.7.6 Dump examples
  7237. -------------------
  7238. gcc -O3 -fopt-info-missed=missed.all
  7239. outputs missed optimization report from all the passes into
  7240. 'missed.all'.
  7241. As another example,
  7242. gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  7243. will output information about missed optimizations as well as optimized
  7244. locations from all the inlining passes into 'inline.txt'.
  7245. If the FILENAME is provided, then the dumps from all the applicable
  7246. optimizations are concatenated into the 'filename'. Otherwise the dump
  7247. is output onto 'stderr'. If OPTIONS is omitted, it defaults to
  7248. 'optimized-optall', which means dump all information about successful
  7249. optimizations from all the passes. In the following example, the
  7250. optimization information is output on to 'stderr'.
  7251. gcc -O3 -fopt-info
  7252. Note that '-fopt-info-vec-missed' behaves the same as
  7253. '-fopt-info-missed-vec'. The order of the optimization group names and
  7254. message types listed after '-fopt-info' does not matter.
  7255. As another example, consider
  7256. gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  7257. Here the two output file names 'vec.miss' and 'loop.opt' are in
  7258. conflict since only one output file is allowed. In this case, only the
  7259. first option takes effect and the subsequent options are ignored. Thus
  7260. only the 'vec.miss' is produced which containts dumps from the
  7261. vectorizer about missed opportunities.
  7262. 
  7263. File: gccint.info, Node: poly_int, Next: GENERIC, Prev: Passes, Up: Top
  7264. 10 Sizes and offsets as runtime invariants
  7265. ******************************************
  7266. GCC allows the size of a hardware register to be a runtime invariant
  7267. rather than a compile-time constant. This in turn means that various
  7268. sizes and offsets must also be runtime invariants rather than
  7269. compile-time constants, such as:
  7270. * the size of a general 'machine_mode' (*note Machine Modes::);
  7271. * the size of a spill slot;
  7272. * the offset of something within a stack frame;
  7273. * the number of elements in a vector;
  7274. * the size and offset of a 'mem' rtx (*note Regs and Memory::); and
  7275. * the byte offset in a 'subreg' rtx (*note Regs and Memory::).
  7276. The motivating example is the Arm SVE ISA, whose vector registers can
  7277. be any multiple of 128 bits between 128 and 2048 inclusive. The
  7278. compiler normally produces code that works for all SVE register sizes,
  7279. with the actual size only being known at runtime.
  7280. GCC's main representation of such runtime invariants is the 'poly_int'
  7281. class. This chapter describes what 'poly_int' does, lists the available
  7282. operations, and gives some general usage guidelines.
  7283. * Menu:
  7284. * Overview of poly_int::
  7285. * Consequences of using poly_int::
  7286. * Comparisons involving poly_int::
  7287. * Arithmetic on poly_ints::
  7288. * Alignment of poly_ints::
  7289. * Computing bounds on poly_ints::
  7290. * Converting poly_ints::
  7291. * Miscellaneous poly_int routines::
  7292. * Guidelines for using poly_int::
  7293. 
  7294. File: gccint.info, Node: Overview of poly_int, Next: Consequences of using poly_int, Up: poly_int
  7295. 10.1 Overview of 'poly_int'
  7296. ===========================
  7297. We define indeterminates X1, ..., XN whose values are only known at
  7298. runtime and use polynomials of the form:
  7299. C0 + C1 * X1 + ... + CN * XN
  7300. to represent a size or offset whose value might depend on some of these
  7301. indeterminates. The coefficients C0, ..., CN are always known at
  7302. compile time, with the C0 term being the "constant" part that does not
  7303. depend on any runtime value.
  7304. GCC uses the 'poly_int' class to represent these coefficients. The
  7305. class has two template parameters: the first specifies the number of
  7306. coefficients (N + 1) and the second specifies the type of the
  7307. coefficients. For example, 'poly_int<2, unsigned short>' represents a
  7308. polynomial with two coefficients (and thus one indeterminate), with each
  7309. coefficient having type 'unsigned short'. When N is 0, the class
  7310. degenerates to a single compile-time constant C0.
  7311. The number of coefficients needed for compilation is a fixed property
  7312. of each target and is specified by the configuration macro
  7313. 'NUM_POLY_INT_COEFFS'. The default value is 1, since most targets do
  7314. not have such runtime invariants. Targets that need a different value
  7315. should '#define' the macro in their 'CPU-modes.def' file. *Note Back
  7316. End::.
  7317. 'poly_int' makes the simplifying requirement that each indeterminate
  7318. must be a nonnegative integer. An indeterminate value of 0 should
  7319. usually represent the minimum possible runtime value, with C0 specifying
  7320. the value in that case.
  7321. For example, when targetting the Arm SVE ISA, the single indeterminate
  7322. represents the number of 128-bit blocks in a vector _beyond the minimum
  7323. length of 128 bits_. Thus the number of 64-bit doublewords in a vector
  7324. is 2 + 2 * X1. If an aggregate has a single SVE vector and 16
  7325. additional bytes, its total size is 32 + 16 * X1 bytes.
  7326. The header file 'poly-int-types.h' provides typedefs for the most
  7327. common forms of 'poly_int', all having 'NUM_POLY_INT_COEFFS'
  7328. coefficients:
  7329. 'poly_uint16'
  7330. a 'poly_int' with 'unsigned short' coefficients.
  7331. 'poly_int64'
  7332. a 'poly_int' with 'HOST_WIDE_INT' coefficients.
  7333. 'poly_uint64'
  7334. a 'poly_int' with 'unsigned HOST_WIDE_INT' coefficients.
  7335. 'poly_offset_int'
  7336. a 'poly_int' with 'offset_int' coefficients.
  7337. 'poly_wide_int'
  7338. a 'poly_int' with 'wide_int' coefficients.
  7339. 'poly_widest_int'
  7340. a 'poly_int' with 'widest_int' coefficients.
  7341. Since the main purpose of 'poly_int' is to represent sizes and offsets,
  7342. the last two typedefs are only rarely used.
  7343. 
  7344. File: gccint.info, Node: Consequences of using poly_int, Next: Comparisons involving poly_int, Prev: Overview of poly_int, Up: poly_int
  7345. 10.2 Consequences of using 'poly_int'
  7346. =====================================
  7347. The two main consequences of using polynomial sizes and offsets are
  7348. that:
  7349. * there is no total ordering between the values at compile time, and
  7350. * some operations might yield results that cannot be expressed as a
  7351. 'poly_int'.
  7352. For example, if X is a runtime invariant, we cannot tell at compile
  7353. time whether:
  7354. 3 + 4X <= 1 + 5X
  7355. since the condition is false when X <= 1 and true when X >= 2.
  7356. Similarly, 'poly_int' cannot represent the result of:
  7357. (3 + 4X) * (1 + 5X)
  7358. since it cannot (and in practice does not need to) store powers greater
  7359. than one. It also cannot represent the result of:
  7360. (3 + 4X) / (1 + 5X)
  7361. The following sections describe how we deal with these restrictions.
  7362. As described earlier, a 'poly_int<1, T>' has no indeterminates and so
  7363. degenerates to a compile-time constant of type T. It would be possible
  7364. in that case to do all normal arithmetic on the T, and to compare the T
  7365. using the normal C++ operators. We deliberately prevent
  7366. target-independent code from doing this, since the compiler needs to
  7367. support other 'poly_int<N, T>' as well, regardless of the current
  7368. target's 'NUM_POLY_INT_COEFFS'.
  7369. However, it would be very artificial to force target-specific code to
  7370. follow these restrictions if the target has no runtime indeterminates.
  7371. There is therefore an implicit conversion from 'poly_int<1, T>' to T
  7372. when compiling target-specific translation units.
  7373. 
  7374. File: gccint.info, Node: Comparisons involving poly_int, Next: Arithmetic on poly_ints, Prev: Consequences of using poly_int, Up: poly_int
  7375. 10.3 Comparisons involving 'poly_int'
  7376. =====================================
  7377. In general we need to compare sizes and offsets in two situations: those
  7378. in which the values need to be ordered, and those in which the values
  7379. can be unordered. More loosely, the distinction is often between values
  7380. that have a definite link (usually because they refer to the same
  7381. underlying register or memory location) and values that have no definite
  7382. link. An example of the former is the relationship between the inner
  7383. and outer sizes of a subreg, where we must know at compile time whether
  7384. the subreg is paradoxical, partial, or complete. An example of the
  7385. latter is alias analysis: we might want to check whether two arbitrary
  7386. memory references overlap.
  7387. Referring back to the examples in the previous section, it makes sense
  7388. to ask whether a memory reference of size '3 + 4X' overlaps one of size
  7389. '1 + 5X', but it does not make sense to have a subreg in which the outer
  7390. mode has '3 + 4X' bytes and the inner mode has '1 + 5X' bytes (or vice
  7391. versa). Such subregs are always invalid and should trigger an internal
  7392. compiler error if formed.
  7393. The underlying operators are the same in both cases, but the
  7394. distinction affects how they are used.
  7395. * Menu:
  7396. * Comparison functions for poly_int::
  7397. * Properties of the poly_int comparisons::
  7398. * Comparing potentially-unordered poly_ints::
  7399. * Comparing ordered poly_ints::
  7400. * Checking for a poly_int marker value::
  7401. * Range checks on poly_ints::
  7402. * Sorting poly_ints::
  7403. 
  7404. File: gccint.info, Node: Comparison functions for poly_int, Next: Properties of the poly_int comparisons, Up: Comparisons involving poly_int
  7405. 10.3.1 Comparison functions for 'poly_int'
  7406. ------------------------------------------
  7407. 'poly_int' provides the following routines for checking whether a
  7408. particular condition "may be" (might be) true:
  7409. maybe_lt maybe_le maybe_eq maybe_ge maybe_gt
  7410. maybe_ne
  7411. The functions have their natural meaning:
  7412. 'maybe_lt(A, B)'
  7413. Return true if A might be less than B.
  7414. 'maybe_le(A, B)'
  7415. Return true if A might be less than or equal to B.
  7416. 'maybe_eq(A, B)'
  7417. Return true if A might be equal to B.
  7418. 'maybe_ne(A, B)'
  7419. Return true if A might not be equal to B.
  7420. 'maybe_ge(A, B)'
  7421. Return true if A might be greater than or equal to B.
  7422. 'maybe_gt(A, B)'
  7423. Return true if A might be greater than B.
  7424. For readability, 'poly_int' also provides "known" inverses of these
  7425. functions:
  7426. known_lt (A, B) == !maybe_ge (A, B)
  7427. known_le (A, B) == !maybe_gt (A, B)
  7428. known_eq (A, B) == !maybe_ne (A, B)
  7429. known_ge (A, B) == !maybe_lt (A, B)
  7430. known_gt (A, B) == !maybe_le (A, B)
  7431. known_ne (A, B) == !maybe_eq (A, B)
  7432. 
  7433. File: gccint.info, Node: Properties of the poly_int comparisons, Next: Comparing potentially-unordered poly_ints, Prev: Comparison functions for poly_int, Up: Comparisons involving poly_int
  7434. 10.3.2 Properties of the 'poly_int' comparisons
  7435. -----------------------------------------------
  7436. All "maybe" relations except 'maybe_ne' are transitive, so for example:
  7437. maybe_lt (A, B) && maybe_lt (B, C) implies maybe_lt (A, C)
  7438. for all A, B and C. 'maybe_lt', 'maybe_gt' and 'maybe_ne' are
  7439. irreflexive, so for example:
  7440. !maybe_lt (A, A)
  7441. is true for all A. 'maybe_le', 'maybe_eq' and 'maybe_ge' are
  7442. reflexive, so for example:
  7443. maybe_le (A, A)
  7444. is true for all A. 'maybe_eq' and 'maybe_ne' are symmetric, so:
  7445. maybe_eq (A, B) == maybe_eq (B, A)
  7446. maybe_ne (A, B) == maybe_ne (B, A)
  7447. for all A and B. In addition:
  7448. maybe_le (A, B) == maybe_lt (A, B) || maybe_eq (A, B)
  7449. maybe_ge (A, B) == maybe_gt (A, B) || maybe_eq (A, B)
  7450. maybe_lt (A, B) == maybe_gt (B, A)
  7451. maybe_le (A, B) == maybe_ge (B, A)
  7452. However:
  7453. maybe_le (A, B) && maybe_le (B, A) does not imply !maybe_ne (A, B) [== known_eq (A, B)]
  7454. maybe_ge (A, B) && maybe_ge (B, A) does not imply !maybe_ne (A, B) [== known_eq (A, B)]
  7455. One example is again 'A == 3 + 4X' and 'B == 1 + 5X', where 'maybe_le
  7456. (A, B)', 'maybe_ge (A, B)' and 'maybe_ne (A, B)' all hold. 'maybe_le'
  7457. and 'maybe_ge' are therefore not antisymetric and do not form a partial
  7458. order.
  7459. From the above, it follows that:
  7460. * All "known" relations except 'known_ne' are transitive.
  7461. * 'known_lt', 'known_ne' and 'known_gt' are irreflexive.
  7462. * 'known_le', 'known_eq' and 'known_ge' are reflexive.
  7463. Also:
  7464. known_lt (A, B) == known_gt (B, A)
  7465. known_le (A, B) == known_ge (B, A)
  7466. known_lt (A, B) implies !known_lt (B, A) [asymmetry]
  7467. known_gt (A, B) implies !known_gt (B, A)
  7468. known_le (A, B) && known_le (B, A) == known_eq (A, B) [== !maybe_ne (A, B)]
  7469. known_ge (A, B) && known_ge (B, A) == known_eq (A, B) [== !maybe_ne (A, B)]
  7470. 'known_le' and 'known_ge' are therefore antisymmetric and are partial
  7471. orders. However:
  7472. known_le (A, B) does not imply known_lt (A, B) || known_eq (A, B)
  7473. known_ge (A, B) does not imply known_gt (A, B) || known_eq (A, B)
  7474. For example, 'known_le (4, 4 + 4X)' holds because the runtime
  7475. indeterminate X is a nonnegative integer, but neither 'known_lt (4, 4 +
  7476. 4X)' nor 'known_eq (4, 4 + 4X)' hold.
  7477. 
  7478. File: gccint.info, Node: Comparing potentially-unordered poly_ints, Next: Comparing ordered poly_ints, Prev: Properties of the poly_int comparisons, Up: Comparisons involving poly_int
  7479. 10.3.3 Comparing potentially-unordered 'poly_int's
  7480. --------------------------------------------------
  7481. In cases where there is no definite link between two 'poly_int's, we can
  7482. usually make a conservatively-correct assumption. For example, the
  7483. conservative assumption for alias analysis is that two references
  7484. _might_ alias.
  7485. One way of checking whether [BEGIN1, END1) might overlap [BEGIN2, END2)
  7486. using the 'poly_int' comparisons is:
  7487. maybe_gt (END1, BEGIN2) && maybe_gt (END2, BEGIN1)
  7488. and another (equivalent) way is:
  7489. !(known_le (END1, BEGIN2) || known_le (END2, BEGIN1))
  7490. However, in this particular example, it is better to use the range
  7491. helper functions instead. *Note Range checks on poly_ints::.
  7492. 
  7493. File: gccint.info, Node: Comparing ordered poly_ints, Next: Checking for a poly_int marker value, Prev: Comparing potentially-unordered poly_ints, Up: Comparisons involving poly_int
  7494. 10.3.4 Comparing ordered 'poly_int's
  7495. ------------------------------------
  7496. In cases where there is a definite link between two 'poly_int's, such as
  7497. the outer and inner sizes of subregs, we usually require the sizes to be
  7498. ordered by the 'known_le' partial order. 'poly_int' provides the
  7499. following utility functions for ordered values:
  7500. 'ordered_p (A, B)'
  7501. Return true if A and B are ordered by the 'known_le' partial order.
  7502. 'ordered_min (A, B)'
  7503. Assert that A and B are ordered by 'known_le' and return the
  7504. minimum of the two. When using this function, please add a comment
  7505. explaining why the values are known to be ordered.
  7506. 'ordered_max (A, B)'
  7507. Assert that A and B are ordered by 'known_le' and return the
  7508. maximum of the two. When using this function, please add a comment
  7509. explaining why the values are known to be ordered.
  7510. For example, if a subreg has an outer mode of size OUTER and an inner
  7511. mode of size INNER:
  7512. * the subreg is complete if known_eq (INNER, OUTER)
  7513. * otherwise, the subreg is paradoxical if known_le (INNER, OUTER)
  7514. * otherwise, the subreg is partial if known_le (OUTER, INNER)
  7515. * otherwise, the subreg is ill-formed
  7516. Thus the subreg is only valid if 'ordered_p (OUTER, INNER)' is true.
  7517. If this condition is already known to be true then:
  7518. * the subreg is complete if known_eq (INNER, OUTER)
  7519. * the subreg is paradoxical if maybe_lt (INNER, OUTER)
  7520. * the subreg is partial if maybe_lt (OUTER, INNER)
  7521. with the three conditions being mutually exclusive.
  7522. Code that checks whether a subreg is valid would therefore generally
  7523. check whether 'ordered_p' holds (in addition to whatever other checks
  7524. are required for subreg validity). Code that is dealing with existing
  7525. subregs can assert that 'ordered_p' holds and use either of the
  7526. classifications above.
  7527. 
  7528. File: gccint.info, Node: Checking for a poly_int marker value, Next: Range checks on poly_ints, Prev: Comparing ordered poly_ints, Up: Comparisons involving poly_int
  7529. 10.3.5 Checking for a 'poly_int' marker value
  7530. ---------------------------------------------
  7531. It is sometimes useful to have a special "marker value" that is not
  7532. meant to be taken literally. For example, some code uses a size of -1
  7533. to represent an unknown size, rather than having to carry around a
  7534. separate boolean to say whether the size is known.
  7535. The best way of checking whether something is a marker value is
  7536. 'known_eq'. Conversely the best way of checking whether something is
  7537. _not_ a marker value is 'maybe_ne'.
  7538. Thus in the size example just mentioned, 'known_eq (size, -1)' would
  7539. check for an unknown size and 'maybe_ne (size, -1)' would check for a
  7540. known size.
  7541. 
  7542. File: gccint.info, Node: Range checks on poly_ints, Next: Sorting poly_ints, Prev: Checking for a poly_int marker value, Up: Comparisons involving poly_int
  7543. 10.3.6 Range checks on 'poly_int's
  7544. ----------------------------------
  7545. As well as the core comparisons (*note Comparison functions for
  7546. poly_int::), 'poly_int' provides utilities for various kinds of range
  7547. check. In each case the range is represented by a start position and a
  7548. size rather than a start position and an end position; this is because
  7549. the former is used much more often than the latter in GCC. Also, the
  7550. sizes can be -1 (or all ones for unsigned sizes) to indicate a range
  7551. with a known start position but an unknown size. All other sizes must
  7552. be nonnegative. A range of size 0 does not contain anything or overlap
  7553. anything.
  7554. 'known_size_p (SIZE)'
  7555. Return true if SIZE represents a known range size, false if it is
  7556. -1 or all ones (for signed and unsigned types respectively).
  7557. 'ranges_maybe_overlap_p (POS1, SIZE1, POS2, SIZE2)'
  7558. Return true if the range described by POS1 and SIZE1 _might_
  7559. overlap the range described by POS2 and SIZE2 (in other words,
  7560. return true if we cannot prove that the ranges are disjoint).
  7561. 'ranges_known_overlap_p (POS1, SIZE1, POS2, SIZE2)'
  7562. Return true if the range described by POS1 and SIZE1 is known to
  7563. overlap the range described by POS2 and SIZE2.
  7564. 'known_subrange_p (POS1, SIZE1, POS2, SIZE2)'
  7565. Return true if the range described by POS1 and SIZE1 is known to be
  7566. contained in the range described by POS2 and SIZE2.
  7567. 'maybe_in_range_p (VALUE, POS, SIZE)'
  7568. Return true if VALUE _might_ be in the range described by POS and
  7569. SIZE (in other words, return true if we cannot prove that VALUE is
  7570. outside that range).
  7571. 'known_in_range_p (VALUE, POS, SIZE)'
  7572. Return true if VALUE is known to be in the range described by POS
  7573. and SIZE.
  7574. 'endpoint_representable_p (POS, SIZE)'
  7575. Return true if the range described by POS and SIZE is open-ended or
  7576. if the endpoint (POS + SIZE) is representable in the same type as
  7577. POS and SIZE. The function returns false if adding SIZE to POS
  7578. makes conceptual sense but could overflow.
  7579. There is also a 'poly_int' version of the 'IN_RANGE_P' macro:
  7580. 'coeffs_in_range_p (X, LOWER, UPPER)'
  7581. Return true if every coefficient of X is in the inclusive range
  7582. [LOWER, UPPER]. This function can be useful when testing whether
  7583. an operation would cause the values of coefficients to overflow.
  7584. Note that the function does not indicate whether X itself is in the
  7585. given range. X can be either a constant or a 'poly_int'.
  7586. 
  7587. File: gccint.info, Node: Sorting poly_ints, Prev: Range checks on poly_ints, Up: Comparisons involving poly_int
  7588. 10.3.7 Sorting 'poly_int's
  7589. --------------------------
  7590. 'poly_int' provides the following routine for sorting:
  7591. 'compare_sizes_for_sort (A, B)'
  7592. Compare A and B in reverse lexicographical order (that is, compare
  7593. the highest-indexed coefficients first). This can be useful when
  7594. sorting data structures, since it has the effect of separating
  7595. constant and non-constant values. If all values are nonnegative,
  7596. the constant values come first.
  7597. Note that the values do not necessarily end up in numerical order.
  7598. For example, '1 + 1X' would come after '100' in the sort order, but
  7599. may well be less than '100' at run time.
  7600. 
  7601. File: gccint.info, Node: Arithmetic on poly_ints, Next: Alignment of poly_ints, Prev: Comparisons involving poly_int, Up: poly_int
  7602. 10.4 Arithmetic on 'poly_int's
  7603. ==============================
  7604. Addition, subtraction, negation and bit inversion all work normally for
  7605. 'poly_int's. Multiplication by a constant multiplier and left shifting
  7606. by a constant shift amount also work normally. General multiplication
  7607. of two 'poly_int's is not supported and is not useful in practice.
  7608. Other operations are only conditionally supported: the operation might
  7609. succeed or might fail, depending on the inputs.
  7610. This section describes both types of operation.
  7611. * Menu:
  7612. * Using poly_int with C++ arithmetic operators::
  7613. * wi arithmetic on poly_ints::
  7614. * Division of poly_ints::
  7615. * Other poly_int arithmetic::
  7616. 
  7617. File: gccint.info, Node: Using poly_int with C++ arithmetic operators, Next: wi arithmetic on poly_ints, Up: Arithmetic on poly_ints
  7618. 10.4.1 Using 'poly_int' with C++ arithmetic operators
  7619. -----------------------------------------------------
  7620. The following C++ expressions are supported, where P1 and P2 are
  7621. 'poly_int's and where C1 and C2 are scalars:
  7622. -P1
  7623. ~P1
  7624. P1 + P2
  7625. P1 + C2
  7626. C1 + P2
  7627. P1 - P2
  7628. P1 - C2
  7629. C1 - P2
  7630. C1 * P2
  7631. P1 * C2
  7632. P1 << C2
  7633. P1 += P2
  7634. P1 += C2
  7635. P1 -= P2
  7636. P1 -= C2
  7637. P1 *= C2
  7638. P1 <<= C2
  7639. These arithmetic operations handle integer ranks in a similar way to
  7640. C++. The main difference is that every coefficient narrower than
  7641. 'HOST_WIDE_INT' promotes to 'HOST_WIDE_INT', whereas in C++ everything
  7642. narrower than 'int' promotes to 'int'. For example:
  7643. poly_uint16 + int -> poly_int64
  7644. unsigned int + poly_uint16 -> poly_int64
  7645. poly_int64 + int -> poly_int64
  7646. poly_int32 + poly_uint64 -> poly_uint64
  7647. uint64 + poly_int64 -> poly_uint64
  7648. poly_offset_int + int32 -> poly_offset_int
  7649. offset_int + poly_uint16 -> poly_offset_int
  7650. In the first two examples, both coefficients are narrower than
  7651. 'HOST_WIDE_INT', so the result has coefficients of type 'HOST_WIDE_INT'.
  7652. In the other examples, the coefficient with the highest rank "wins".
  7653. If one of the operands is 'wide_int' or 'poly_wide_int', the rules are
  7654. the same as for 'wide_int' arithmetic.
  7655. 
  7656. File: gccint.info, Node: wi arithmetic on poly_ints, Next: Division of poly_ints, Prev: Using poly_int with C++ arithmetic operators, Up: Arithmetic on poly_ints
  7657. 10.4.2 'wi' arithmetic on 'poly_int's
  7658. -------------------------------------
  7659. As well as the C++ operators, 'poly_int' supports the following 'wi'
  7660. routines:
  7661. wi::neg (P1, &OVERFLOW)
  7662. wi::add (P1, P2)
  7663. wi::add (P1, C2)
  7664. wi::add (C1, P1)
  7665. wi::add (P1, P2, SIGN, &OVERFLOW)
  7666. wi::sub (P1, P2)
  7667. wi::sub (P1, C2)
  7668. wi::sub (C1, P1)
  7669. wi::sub (P1, P2, SIGN, &OVERFLOW)
  7670. wi::mul (P1, C2)
  7671. wi::mul (C1, P1)
  7672. wi::mul (P1, C2, SIGN, &OVERFLOW)
  7673. wi::lshift (P1, C2)
  7674. These routines just check whether overflow occurs on any individual
  7675. coefficient; it is not possible to know at compile time whether the
  7676. final runtime value would overflow.
  7677. 
  7678. File: gccint.info, Node: Division of poly_ints, Next: Other poly_int arithmetic, Prev: wi arithmetic on poly_ints, Up: Arithmetic on poly_ints
  7679. 10.4.3 Division of 'poly_int's
  7680. ------------------------------
  7681. Division of 'poly_int's is possible for certain inputs. The functions
  7682. for division return true if the operation is possible and in most cases
  7683. return the results by pointer. The routines are:
  7684. 'multiple_p (A, B)'
  7685. 'multiple_p (A, B, &QUOTIENT)'
  7686. Return true if A is an exact multiple of B, storing the result in
  7687. QUOTIENT if so. There are overloads for various combinations of
  7688. polynomial and constant A, B and QUOTIENT.
  7689. 'constant_multiple_p (A, B)'
  7690. 'constant_multiple_p (A, B, &QUOTIENT)'
  7691. Like 'multiple_p', but also test whether the multiple is a
  7692. compile-time constant.
  7693. 'can_div_trunc_p (A, B, &QUOTIENT)'
  7694. 'can_div_trunc_p (A, B, &QUOTIENT, &REMAINDER)'
  7695. Return true if we can calculate 'trunc (A / B)' at compile time,
  7696. storing the result in QUOTIENT and REMAINDER if so.
  7697. 'can_div_away_from_zero_p (A, B, &QUOTIENT)'
  7698. Return true if we can calculate 'A / B' at compile time, rounding
  7699. away from zero. Store the result in QUOTIENT if so.
  7700. Note that this is true if and only if 'can_div_trunc_p' is true.
  7701. The only difference is in the rounding of the result.
  7702. There is also an asserting form of division:
  7703. 'exact_div (A, B)'
  7704. Assert that A is a multiple of B and return 'A / B'. The result is
  7705. a 'poly_int' if A is a 'poly_int'.
  7706. 
  7707. File: gccint.info, Node: Other poly_int arithmetic, Prev: Division of poly_ints, Up: Arithmetic on poly_ints
  7708. 10.4.4 Other 'poly_int' arithmetic
  7709. ----------------------------------
  7710. There are tentative routines for other operations besides division:
  7711. 'can_ior_p (A, B, &RESULT)'
  7712. Return true if we can calculate 'A | B' at compile time, storing
  7713. the result in RESULT if so.
  7714. Also, ANDs with a value '(1 << Y) - 1' or its inverse can be treated as
  7715. alignment operations. *Note Alignment of poly_ints::.
  7716. In addition, the following miscellaneous routines are available:
  7717. 'coeff_gcd (A)'
  7718. Return the greatest common divisor of all nonzero coefficients in
  7719. A, or zero if A is known to be zero.
  7720. 'common_multiple (A, B)'
  7721. Return a value that is a multiple of both A and B, where one value
  7722. is a 'poly_int' and the other is a scalar. The result will be the
  7723. least common multiple for some indeterminate values but not
  7724. necessarily for all.
  7725. 'force_common_multiple (A, B)'
  7726. Return a value that is a multiple of both 'poly_int' A and
  7727. 'poly_int' B, asserting that such a value exists. The result will
  7728. be the least common multiple for some indeterminate values but not
  7729. necessarily for all.
  7730. When using this routine, please add a comment explaining why the
  7731. assertion is known to hold.
  7732. Please add any other operations that you find to be useful.
  7733. 
  7734. File: gccint.info, Node: Alignment of poly_ints, Next: Computing bounds on poly_ints, Prev: Arithmetic on poly_ints, Up: poly_int
  7735. 10.5 Alignment of 'poly_int's
  7736. =============================
  7737. 'poly_int' provides various routines for aligning values and for
  7738. querying misalignments. In each case the alignment must be a power of
  7739. 2.
  7740. 'can_align_p (VALUE, ALIGN)'
  7741. Return true if we can align VALUE up or down to the nearest
  7742. multiple of ALIGN at compile time. The answer is the same for both
  7743. directions.
  7744. 'can_align_down (VALUE, ALIGN, &ALIGNED)'
  7745. Return true if 'can_align_p'; if so, set ALIGNED to the greatest
  7746. aligned value that is less than or equal to VALUE.
  7747. 'can_align_up (VALUE, ALIGN, &ALIGNED)'
  7748. Return true if 'can_align_p'; if so, set ALIGNED to the lowest
  7749. aligned value that is greater than or equal to VALUE.
  7750. 'known_equal_after_align_down (A, B, ALIGN)'
  7751. Return true if we can align A and B down to the nearest ALIGN
  7752. boundary at compile time and if the two results are equal.
  7753. 'known_equal_after_align_up (A, B, ALIGN)'
  7754. Return true if we can align A and B up to the nearest ALIGN
  7755. boundary at compile time and if the two results are equal.
  7756. 'aligned_lower_bound (VALUE, ALIGN)'
  7757. Return a result that is no greater than VALUE and that is aligned
  7758. to ALIGN. The result will the closest aligned value for some
  7759. indeterminate values but not necessarily for all.
  7760. For example, suppose we are allocating an object of SIZE bytes in a
  7761. downward-growing stack whose current limit is given by LIMIT. If
  7762. the object requires ALIGN bytes of alignment, the new stack limit
  7763. is given by:
  7764. aligned_lower_bound (LIMIT - SIZE, ALIGN)
  7765. 'aligned_upper_bound (VALUE, ALIGN)'
  7766. Likewise return a result that is no less than VALUE and that is
  7767. aligned to ALIGN. This is the routine that would be used for
  7768. upward-growing stacks in the scenario just described.
  7769. 'known_misalignment (VALUE, ALIGN, &MISALIGN)'
  7770. Return true if we can calculate the misalignment of VALUE with
  7771. respect to ALIGN at compile time, storing the result in MISALIGN if
  7772. so.
  7773. 'known_alignment (VALUE)'
  7774. Return the minimum alignment that VALUE is known to have (in other
  7775. words, the largest alignment that can be guaranteed whatever the
  7776. values of the indeterminates turn out to be). Return 0 if VALUE is
  7777. known to be 0.
  7778. 'force_align_down (VALUE, ALIGN)'
  7779. Assert that VALUE can be aligned down to ALIGN at compile time and
  7780. return the result. When using this routine, please add a comment
  7781. explaining why the assertion is known to hold.
  7782. 'force_align_up (VALUE, ALIGN)'
  7783. Likewise, but aligning up.
  7784. 'force_align_down_and_div (VALUE, ALIGN)'
  7785. Divide the result of 'force_align_down' by ALIGN. Again, please
  7786. add a comment explaining why the assertion in 'force_align_down' is
  7787. known to hold.
  7788. 'force_align_up_and_div (VALUE, ALIGN)'
  7789. Likewise for 'force_align_up'.
  7790. 'force_get_misalignment (VALUE, ALIGN)'
  7791. Assert that we can calculate the misalignment of VALUE with respect
  7792. to ALIGN at compile time and return the misalignment. When using
  7793. this function, please add a comment explaining why the assertion is
  7794. known to hold.
  7795. 
  7796. File: gccint.info, Node: Computing bounds on poly_ints, Next: Converting poly_ints, Prev: Alignment of poly_ints, Up: poly_int
  7797. 10.6 Computing bounds on 'poly_int's
  7798. ====================================
  7799. 'poly_int' also provides routines for calculating lower and upper
  7800. bounds:
  7801. 'constant_lower_bound (A)'
  7802. Assert that A is nonnegative and return the smallest value it can
  7803. have.
  7804. 'constant_lower_bound_with_limit (A, B)'
  7805. Return the least value A can have, given that the context in which
  7806. A appears guarantees that the answer is no less than B. In other
  7807. words, the caller is asserting that A is greater than or equal to B
  7808. even if 'known_ge (A, B)' doesn't hold.
  7809. 'constant_upper_bound_with_limit (A, B)'
  7810. Return the greatest value A can have, given that the context in
  7811. which A appears guarantees that the answer is no greater than B.
  7812. In other words, the caller is asserting that A is less than or
  7813. equal to B even if 'known_le (A, B)' doesn't hold.
  7814. 'lower_bound (A, B)'
  7815. Return a value that is always less than or equal to both A and B.
  7816. It will be the greatest such value for some indeterminate values
  7817. but necessarily for all.
  7818. 'upper_bound (A, B)'
  7819. Return a value that is always greater than or equal to both A and
  7820. B. It will be the least such value for some indeterminate values
  7821. but necessarily for all.
  7822. 
  7823. File: gccint.info, Node: Converting poly_ints, Next: Miscellaneous poly_int routines, Prev: Computing bounds on poly_ints, Up: poly_int
  7824. 10.7 Converting 'poly_int's
  7825. ===========================
  7826. A 'poly_int<N, T>' can be constructed from up to N individual T
  7827. coefficients, with the remaining coefficients being implicitly zero. In
  7828. particular, this means that every 'poly_int<N, T>' can be constructed
  7829. from a single scalar T, or something compatible with T.
  7830. Also, a 'poly_int<N, T>' can be constructed from a 'poly_int<N, U>' if
  7831. T can be constructed from U.
  7832. The following functions provide other forms of conversion, or test
  7833. whether such a conversion would succeed.
  7834. 'VALUE.is_constant ()'
  7835. Return true if 'poly_int' VALUE is a compile-time constant.
  7836. 'VALUE.is_constant (&C1)'
  7837. Return true if 'poly_int' VALUE is a compile-time constant, storing
  7838. it in C1 if so. C1 must be able to hold all constant values of
  7839. VALUE without loss of precision.
  7840. 'VALUE.to_constant ()'
  7841. Assert that VALUE is a compile-time constant and return its value.
  7842. When using this function, please add a comment explaining why the
  7843. condition is known to hold (for example, because an earlier phase
  7844. of analysis rejected non-constants).
  7845. 'VALUE.to_shwi (&P2)'
  7846. Return true if 'poly_int<N, T>' VALUE can be represented without
  7847. loss of precision as a 'poly_int<N, 'HOST_WIDE_INT'>', storing it
  7848. in that form in P2 if so.
  7849. 'VALUE.to_uhwi (&P2)'
  7850. Return true if 'poly_int<N, T>' VALUE can be represented without
  7851. loss of precision as a 'poly_int<N, 'unsigned HOST_WIDE_INT'>',
  7852. storing it in that form in P2 if so.
  7853. 'VALUE.force_shwi ()'
  7854. Forcibly convert each coefficient of 'poly_int<N, T>' VALUE to
  7855. 'HOST_WIDE_INT', truncating any that are out of range. Return the
  7856. result as a 'poly_int<N, 'HOST_WIDE_INT'>'.
  7857. 'VALUE.force_uhwi ()'
  7858. Forcibly convert each coefficient of 'poly_int<N, T>' VALUE to
  7859. 'unsigned HOST_WIDE_INT', truncating any that are out of range.
  7860. Return the result as a 'poly_int<N, 'unsigned HOST_WIDE_INT'>'.
  7861. 'wi::shwi (VALUE, PRECISION)'
  7862. Return a 'poly_int' with the same value as VALUE, but with the
  7863. coefficients converted from 'HOST_WIDE_INT' to 'wide_int'.
  7864. PRECISION specifies the precision of the 'wide_int' cofficients; if
  7865. this is wider than a 'HOST_WIDE_INT', the coefficients of VALUE
  7866. will be sign-extended to fit.
  7867. 'wi::uhwi (VALUE, PRECISION)'
  7868. Like 'wi::shwi', except that VALUE has coefficients of type
  7869. 'unsigned HOST_WIDE_INT'. If PRECISION is wider than a
  7870. 'HOST_WIDE_INT', the coefficients of VALUE will be zero-extended to
  7871. fit.
  7872. 'wi::sext (VALUE, PRECISION)'
  7873. Return a 'poly_int' of the same type as VALUE, sign-extending every
  7874. coefficient from the low PRECISION bits. This in effect applies
  7875. 'wi::sext' to each coefficient individually.
  7876. 'wi::zext (VALUE, PRECISION)'
  7877. Like 'wi::sext', but for zero extension.
  7878. 'poly_wide_int::from (VALUE, PRECISION, SIGN)'
  7879. Convert VALUE to a 'poly_wide_int' in which each coefficient has
  7880. PRECISION bits. Extend the coefficients according to SIGN if the
  7881. coefficients have fewer bits.
  7882. 'poly_offset_int::from (VALUE, SIGN)'
  7883. Convert VALUE to a 'poly_offset_int', extending its coefficients
  7884. according to SIGN if they have fewer bits than 'offset_int'.
  7885. 'poly_widest_int::from (VALUE, SIGN)'
  7886. Convert VALUE to a 'poly_widest_int', extending its coefficients
  7887. according to SIGN if they have fewer bits than 'widest_int'.
  7888. 
  7889. File: gccint.info, Node: Miscellaneous poly_int routines, Next: Guidelines for using poly_int, Prev: Converting poly_ints, Up: poly_int
  7890. 10.8 Miscellaneous 'poly_int' routines
  7891. ======================================
  7892. 'print_dec (VALUE, FILE, SIGN)'
  7893. 'print_dec (VALUE, FILE)'
  7894. Print VALUE to FILE as a decimal value, interpreting the
  7895. coefficients according to SIGN. The final argument is optional if
  7896. VALUE has an inherent sign; for example, 'poly_int64' values print
  7897. as signed by default and 'poly_uint64' values print as unsigned by
  7898. default.
  7899. This is a simply a 'poly_int' version of a wide-int routine.
  7900. 
  7901. File: gccint.info, Node: Guidelines for using poly_int, Prev: Miscellaneous poly_int routines, Up: poly_int
  7902. 10.9 Guidelines for using 'poly_int'
  7903. ====================================
  7904. One of the main design goals of 'poly_int' was to make it easy to write
  7905. target-independent code that handles variable-sized registers even when
  7906. the current target has fixed-sized registers. There are two aspects to
  7907. this:
  7908. * The set of 'poly_int' operations should be complete enough that the
  7909. question in most cases becomes "Can we do this operation on these
  7910. particular 'poly_int' values? If not, bail out" rather than "Are
  7911. these 'poly_int' values constant? If so, do the operation,
  7912. otherwise bail out".
  7913. * If target-independent code compiles and runs correctly on a target
  7914. with one value of 'NUM_POLY_INT_COEFFS', and if the code does not
  7915. use asserting functions like 'to_constant', it is reasonable to
  7916. assume that the code also works on targets with other values of
  7917. 'NUM_POLY_INT_COEFFS'. There is no need to check this during
  7918. everyday development.
  7919. So the general principle is: if target-independent code is dealing with
  7920. a 'poly_int' value, it is better to operate on it as a 'poly_int' if at
  7921. all possible, choosing conservatively-correct behavior if a particular
  7922. operation fails. For example, the following code handles an index 'pos'
  7923. into a sequence of vectors that each have 'nunits' elements:
  7924. /* Calculate which vector contains the result, and which lane of
  7925. that vector we need. */
  7926. if (!can_div_trunc_p (pos, nunits, &vec_entry, &vec_index))
  7927. {
  7928. if (dump_enabled_p ())
  7929. dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
  7930. "Cannot determine which vector holds the"
  7931. " final result.\n");
  7932. return false;
  7933. }
  7934. However, there are some contexts in which operating on a 'poly_int' is
  7935. not possible or does not make sense. One example is when handling
  7936. static initializers, since no current target supports the concept of a
  7937. variable-length static initializer. In these situations, a reasonable
  7938. fallback is:
  7939. if (POLY_VALUE.is_constant (&CONST_VALUE))
  7940. {
  7941. ...
  7942. /* Operate on CONST_VALUE. */
  7943. ...
  7944. }
  7945. else
  7946. {
  7947. ...
  7948. /* Conservatively correct fallback. */
  7949. ...
  7950. }
  7951. 'poly_int' also provides some asserting functions like 'to_constant'.
  7952. Please only use these functions if there is a good theoretical reason to
  7953. believe that the assertion cannot fire. For example, if some work is
  7954. divided into an analysis phase and an implementation phase, the analysis
  7955. phase might reject inputs that are not 'is_constant', in which case the
  7956. implementation phase can reasonably use 'to_constant' on the remaining
  7957. inputs. The assertions should not be used to discover whether a
  7958. condition ever occurs "in the field"; in other words, they should not be
  7959. used to restrict code to constants at first, with the intention of only
  7960. implementing a 'poly_int' version if a user hits the assertion.
  7961. If a particular asserting function like 'to_constant' is needed more
  7962. than once for the same reason, it is probably worth adding a helper
  7963. function or macro for that situation, so that the justification only
  7964. needs to be given once. For example:
  7965. /* Return the size of an element in a vector of size SIZE, given that
  7966. the vector has NELTS elements. The return value is in the same units
  7967. as SIZE (either bits or bytes).
  7968. to_constant () is safe in this situation because vector elements are
  7969. always constant-sized scalars. */
  7970. #define vector_element_size(SIZE, NELTS) \
  7971. (exact_div (SIZE, NELTS).to_constant ())
  7972. Target-specific code in 'config/CPU' only needs to handle non-constant
  7973. 'poly_int's if 'NUM_POLY_INT_COEFFS' is greater than one. For other
  7974. targets, 'poly_int' degenerates to a compile-time constant and is often
  7975. interchangable with a normal scalar integer. There are two main
  7976. exceptions:
  7977. * Sometimes an explicit cast to an integer type might be needed, such
  7978. as to resolve ambiguities in a '?:' expression, or when passing
  7979. values through '...' to things like print functions.
  7980. * Target macros are included in target-independent code and so do not
  7981. have access to the implicit conversion to a scalar integer. If
  7982. this becomes a problem for a particular target macro, the possible
  7983. solutions, in order of preference, are:
  7984. * Convert the target macro to a target hook (for all targets).
  7985. * Put the target's implementation of the target macro in its
  7986. 'CPU.c' file and call it from the target macro in the 'CPU.h'
  7987. file.
  7988. * Add 'to_constant ()' calls where necessary. The previous
  7989. option is preferable because it will help with any future
  7990. conversion of the macro to a hook.
  7991. 
  7992. File: gccint.info, Node: GENERIC, Next: GIMPLE, Prev: poly_int, Up: Top
  7993. 11 GENERIC
  7994. **********
  7995. The purpose of GENERIC is simply to provide a language-independent way
  7996. of representing an entire function in trees. To this end, it was
  7997. necessary to add a few new tree codes to the back end, but almost
  7998. everything was already there. If you can express it with the codes in
  7999. 'gcc/tree.def', it's GENERIC.
  8000. Early on, there was a great deal of debate about how to think about
  8001. statements in a tree IL. In GENERIC, a statement is defined as any
  8002. expression whose value, if any, is ignored. A statement will always
  8003. have 'TREE_SIDE_EFFECTS' set (or it will be discarded), but a
  8004. non-statement expression may also have side effects. A 'CALL_EXPR', for
  8005. instance.
  8006. It would be possible for some local optimizations to work on the
  8007. GENERIC form of a function; indeed, the adapted tree inliner works fine
  8008. on GENERIC, but the current compiler performs inlining after lowering to
  8009. GIMPLE (a restricted form described in the next section). Indeed,
  8010. currently the frontends perform this lowering before handing off to
  8011. 'tree_rest_of_compilation', but this seems inelegant.
  8012. * Menu:
  8013. * Deficiencies:: Topics net yet covered in this document.
  8014. * Tree overview:: All about 'tree's.
  8015. * Types:: Fundamental and aggregate types.
  8016. * Declarations:: Type declarations and variables.
  8017. * Attributes:: Declaration and type attributes.
  8018. * Expressions: Expression trees. Operating on data.
  8019. * Statements:: Control flow and related trees.
  8020. * Functions:: Function bodies, linkage, and other aspects.
  8021. * Language-dependent trees:: Topics and trees specific to language front ends.
  8022. * C and C++ Trees:: Trees specific to C and C++.
  8023. 
  8024. File: gccint.info, Node: Deficiencies, Next: Tree overview, Up: GENERIC
  8025. 11.1 Deficiencies
  8026. =================
  8027. There are many places in which this document is incomplet and incorrekt.
  8028. It is, as of yet, only _preliminary_ documentation.
  8029. 
  8030. File: gccint.info, Node: Tree overview, Next: Types, Prev: Deficiencies, Up: GENERIC
  8031. 11.2 Overview
  8032. =============
  8033. The central data structure used by the internal representation is the
  8034. 'tree'. These nodes, while all of the C type 'tree', are of many
  8035. varieties. A 'tree' is a pointer type, but the object to which it
  8036. points may be of a variety of types. From this point forward, we will
  8037. refer to trees in ordinary type, rather than in 'this font', except when
  8038. talking about the actual C type 'tree'.
  8039. You can tell what kind of node a particular tree is by using the
  8040. 'TREE_CODE' macro. Many, many macros take trees as input and return
  8041. trees as output. However, most macros require a certain kind of tree
  8042. node as input. In other words, there is a type-system for trees, but it
  8043. is not reflected in the C type-system.
  8044. For safety, it is useful to configure GCC with '--enable-checking'.
  8045. Although this results in a significant performance penalty (since all
  8046. tree types are checked at run-time), and is therefore inappropriate in a
  8047. release version, it is extremely helpful during the development process.
  8048. Many macros behave as predicates. Many, although not all, of these
  8049. predicates end in '_P'. Do not rely on the result type of these macros
  8050. being of any particular type. You may, however, rely on the fact that
  8051. the type can be compared to '0', so that statements like
  8052. if (TEST_P (t) && !TEST_P (y))
  8053. x = 1;
  8054. and
  8055. int i = (TEST_P (t) != 0);
  8056. are legal. Macros that return 'int' values now may be changed to return
  8057. 'tree' values, or other pointers in the future. Even those that
  8058. continue to return 'int' may return multiple nonzero codes where
  8059. previously they returned only zero and one. Therefore, you should not
  8060. write code like
  8061. if (TEST_P (t) == 1)
  8062. as this code is not guaranteed to work correctly in the future.
  8063. You should not take the address of values returned by the macros or
  8064. functions described here. In particular, no guarantee is given that the
  8065. values are lvalues.
  8066. In general, the names of macros are all in uppercase, while the names
  8067. of functions are entirely in lowercase. There are rare exceptions to
  8068. this rule. You should assume that any macro or function whose name is
  8069. made up entirely of uppercase letters may evaluate its arguments more
  8070. than once. You may assume that a macro or function whose name is made
  8071. up entirely of lowercase letters will evaluate its arguments only once.
  8072. The 'error_mark_node' is a special tree. Its tree code is
  8073. 'ERROR_MARK', but since there is only ever one node with that code, the
  8074. usual practice is to compare the tree against 'error_mark_node'. (This
  8075. test is just a test for pointer equality.) If an error has occurred
  8076. during front-end processing the flag 'errorcount' will be set. If the
  8077. front end has encountered code it cannot handle, it will issue a message
  8078. to the user and set 'sorrycount'. When these flags are set, any macro
  8079. or function which normally returns a tree of a particular kind may
  8080. instead return the 'error_mark_node'. Thus, if you intend to do any
  8081. processing of erroneous code, you must be prepared to deal with the
  8082. 'error_mark_node'.
  8083. Occasionally, a particular tree slot (like an operand to an expression,
  8084. or a particular field in a declaration) will be referred to as "reserved
  8085. for the back end". These slots are used to store RTL when the tree is
  8086. converted to RTL for use by the GCC back end. However, if that process
  8087. is not taking place (e.g., if the front end is being hooked up to an
  8088. intelligent editor), then those slots may be used by the back end
  8089. presently in use.
  8090. If you encounter situations that do not match this documentation, such
  8091. as tree nodes of types not mentioned here, or macros documented to
  8092. return entities of a particular kind that instead return entities of
  8093. some different kind, you have found a bug, either in the front end or in
  8094. the documentation. Please report these bugs as you would any other bug.
  8095. * Menu:
  8096. * Macros and Functions::Macros and functions that can be used with all trees.
  8097. * Identifiers:: The names of things.
  8098. * Containers:: Lists and vectors.
  8099. 
  8100. File: gccint.info, Node: Macros and Functions, Next: Identifiers, Up: Tree overview
  8101. 11.2.1 Trees
  8102. ------------
  8103. All GENERIC trees have two fields in common. First, 'TREE_CHAIN' is a
  8104. pointer that can be used as a singly-linked list to other trees. The
  8105. other is 'TREE_TYPE'. Many trees store the type of an expression or
  8106. declaration in this field.
  8107. These are some other functions for handling trees:
  8108. 'tree_size'
  8109. Return the number of bytes a tree takes.
  8110. 'build0'
  8111. 'build1'
  8112. 'build2'
  8113. 'build3'
  8114. 'build4'
  8115. 'build5'
  8116. 'build6'
  8117. These functions build a tree and supply values to put in each
  8118. parameter. The basic signature is 'code, type, [operands]'.
  8119. 'code' is the 'TREE_CODE', and 'type' is a tree representing the
  8120. 'TREE_TYPE'. These are followed by the operands, each of which is
  8121. also a tree.
  8122. 
  8123. File: gccint.info, Node: Identifiers, Next: Containers, Prev: Macros and Functions, Up: Tree overview
  8124. 11.2.2 Identifiers
  8125. ------------------
  8126. An 'IDENTIFIER_NODE' represents a slightly more general concept than the
  8127. standard C or C++ concept of identifier. In particular, an
  8128. 'IDENTIFIER_NODE' may contain a '$', or other extraordinary characters.
  8129. There are never two distinct 'IDENTIFIER_NODE's representing the same
  8130. identifier. Therefore, you may use pointer equality to compare
  8131. 'IDENTIFIER_NODE's, rather than using a routine like 'strcmp'. Use
  8132. 'get_identifier' to obtain the unique 'IDENTIFIER_NODE' for a supplied
  8133. string.
  8134. You can use the following macros to access identifiers:
  8135. 'IDENTIFIER_POINTER'
  8136. The string represented by the identifier, represented as a 'char*'.
  8137. This string is always 'NUL'-terminated, and contains no embedded
  8138. 'NUL' characters.
  8139. 'IDENTIFIER_LENGTH'
  8140. The length of the string returned by 'IDENTIFIER_POINTER', not
  8141. including the trailing 'NUL'. This value of 'IDENTIFIER_LENGTH
  8142. (x)' is always the same as 'strlen (IDENTIFIER_POINTER (x))'.
  8143. 'IDENTIFIER_OPNAME_P'
  8144. This predicate holds if the identifier represents the name of an
  8145. overloaded operator. In this case, you should not depend on the
  8146. contents of either the 'IDENTIFIER_POINTER' or the
  8147. 'IDENTIFIER_LENGTH'.
  8148. 'IDENTIFIER_TYPENAME_P'
  8149. This predicate holds if the identifier represents the name of a
  8150. user-defined conversion operator. In this case, the 'TREE_TYPE' of
  8151. the 'IDENTIFIER_NODE' holds the type to which the conversion
  8152. operator converts.
  8153. 
  8154. File: gccint.info, Node: Containers, Prev: Identifiers, Up: Tree overview
  8155. 11.2.3 Containers
  8156. -----------------
  8157. Two common container data structures can be represented directly with
  8158. tree nodes. A 'TREE_LIST' is a singly linked list containing two trees
  8159. per node. These are the 'TREE_PURPOSE' and 'TREE_VALUE' of each node.
  8160. (Often, the 'TREE_PURPOSE' contains some kind of tag, or additional
  8161. information, while the 'TREE_VALUE' contains the majority of the
  8162. payload. In other cases, the 'TREE_PURPOSE' is simply 'NULL_TREE',
  8163. while in still others both the 'TREE_PURPOSE' and 'TREE_VALUE' are of
  8164. equal stature.) Given one 'TREE_LIST' node, the next node is found by
  8165. following the 'TREE_CHAIN'. If the 'TREE_CHAIN' is 'NULL_TREE', then
  8166. you have reached the end of the list.
  8167. A 'TREE_VEC' is a simple vector. The 'TREE_VEC_LENGTH' is an integer
  8168. (not a tree) giving the number of nodes in the vector. The nodes
  8169. themselves are accessed using the 'TREE_VEC_ELT' macro, which takes two
  8170. arguments. The first is the 'TREE_VEC' in question; the second is an
  8171. integer indicating which element in the vector is desired. The elements
  8172. are indexed from zero.
  8173. 
  8174. File: gccint.info, Node: Types, Next: Declarations, Prev: Tree overview, Up: GENERIC
  8175. 11.3 Types
  8176. ==========
  8177. All types have corresponding tree nodes. However, you should not assume
  8178. that there is exactly one tree node corresponding to each type. There
  8179. are often multiple nodes corresponding to the same type.
  8180. For the most part, different kinds of types have different tree codes.
  8181. (For example, pointer types use a 'POINTER_TYPE' code while arrays use
  8182. an 'ARRAY_TYPE' code.) However, pointers to member functions use the
  8183. 'RECORD_TYPE' code. Therefore, when writing a 'switch' statement that
  8184. depends on the code associated with a particular type, you should take
  8185. care to handle pointers to member functions under the 'RECORD_TYPE' case
  8186. label.
  8187. The following functions and macros deal with cv-qualification of types:
  8188. 'TYPE_MAIN_VARIANT'
  8189. This macro returns the unqualified version of a type. It may be
  8190. applied to an unqualified type, but it is not always the identity
  8191. function in that case.
  8192. A few other macros and functions are usable with all types:
  8193. 'TYPE_SIZE'
  8194. The number of bits required to represent the type, represented as
  8195. an 'INTEGER_CST'. For an incomplete type, 'TYPE_SIZE' will be
  8196. 'NULL_TREE'.
  8197. 'TYPE_ALIGN'
  8198. The alignment of the type, in bits, represented as an 'int'.
  8199. 'TYPE_NAME'
  8200. This macro returns a declaration (in the form of a 'TYPE_DECL') for
  8201. the type. (Note this macro does _not_ return an 'IDENTIFIER_NODE',
  8202. as you might expect, given its name!) You can look at the
  8203. 'DECL_NAME' of the 'TYPE_DECL' to obtain the actual name of the
  8204. type. The 'TYPE_NAME' will be 'NULL_TREE' for a type that is not a
  8205. built-in type, the result of a typedef, or a named class type.
  8206. 'TYPE_CANONICAL'
  8207. This macro returns the "canonical" type for the given type node.
  8208. Canonical types are used to improve performance in the C++ and
  8209. Objective-C++ front ends by allowing efficient comparison between
  8210. two type nodes in 'same_type_p': if the 'TYPE_CANONICAL' values of
  8211. the types are equal, the types are equivalent; otherwise, the types
  8212. are not equivalent. The notion of equivalence for canonical types
  8213. is the same as the notion of type equivalence in the language
  8214. itself. For instance,
  8215. When 'TYPE_CANONICAL' is 'NULL_TREE', there is no canonical type
  8216. for the given type node. In this case, comparison between this
  8217. type and any other type requires the compiler to perform a deep,
  8218. "structural" comparison to see if the two type nodes have the same
  8219. form and properties.
  8220. The canonical type for a node is always the most fundamental type
  8221. in the equivalence class of types. For instance, 'int' is its own
  8222. canonical type. A typedef 'I' of 'int' will have 'int' as its
  8223. canonical type. Similarly, 'I*' and a typedef 'IP' (defined to
  8224. 'I*') will has 'int*' as their canonical type. When building a new
  8225. type node, be sure to set 'TYPE_CANONICAL' to the appropriate
  8226. canonical type. If the new type is a compound type (built from
  8227. other types), and any of those other types require structural
  8228. equality, use 'SET_TYPE_STRUCTURAL_EQUALITY' to ensure that the new
  8229. type also requires structural equality. Finally, if for some
  8230. reason you cannot guarantee that 'TYPE_CANONICAL' will point to the
  8231. canonical type, use 'SET_TYPE_STRUCTURAL_EQUALITY' to make sure
  8232. that the new type-and any type constructed based on it-requires
  8233. structural equality. If you suspect that the canonical type system
  8234. is miscomparing types, pass '--param verify-canonical-types=1' to
  8235. the compiler or configure with '--enable-checking' to force the
  8236. compiler to verify its canonical-type comparisons against the
  8237. structural comparisons; the compiler will then print any warnings
  8238. if the canonical types miscompare.
  8239. 'TYPE_STRUCTURAL_EQUALITY_P'
  8240. This predicate holds when the node requires structural equality
  8241. checks, e.g., when 'TYPE_CANONICAL' is 'NULL_TREE'.
  8242. 'SET_TYPE_STRUCTURAL_EQUALITY'
  8243. This macro states that the type node it is given requires
  8244. structural equality checks, e.g., it sets 'TYPE_CANONICAL' to
  8245. 'NULL_TREE'.
  8246. 'same_type_p'
  8247. This predicate takes two types as input, and holds if they are the
  8248. same type. For example, if one type is a 'typedef' for the other,
  8249. or both are 'typedef's for the same type. This predicate also
  8250. holds if the two trees given as input are simply copies of one
  8251. another; i.e., there is no difference between them at the source
  8252. level, but, for whatever reason, a duplicate has been made in the
  8253. representation. You should never use '==' (pointer equality) to
  8254. compare types; always use 'same_type_p' instead.
  8255. Detailed below are the various kinds of types, and the macros that can
  8256. be used to access them. Although other kinds of types are used
  8257. elsewhere in G++, the types described here are the only ones that you
  8258. will encounter while examining the intermediate representation.
  8259. 'VOID_TYPE'
  8260. Used to represent the 'void' type.
  8261. 'INTEGER_TYPE'
  8262. Used to represent the various integral types, including 'char',
  8263. 'short', 'int', 'long', and 'long long'. This code is not used for
  8264. enumeration types, nor for the 'bool' type. The 'TYPE_PRECISION'
  8265. is the number of bits used in the representation, represented as an
  8266. 'unsigned int'. (Note that in the general case this is not the
  8267. same value as 'TYPE_SIZE'; suppose that there were a 24-bit integer
  8268. type, but that alignment requirements for the ABI required 32-bit
  8269. alignment. Then, 'TYPE_SIZE' would be an 'INTEGER_CST' for 32,
  8270. while 'TYPE_PRECISION' would be 24.) The integer type is unsigned
  8271. if 'TYPE_UNSIGNED' holds; otherwise, it is signed.
  8272. The 'TYPE_MIN_VALUE' is an 'INTEGER_CST' for the smallest integer
  8273. that may be represented by this type. Similarly, the
  8274. 'TYPE_MAX_VALUE' is an 'INTEGER_CST' for the largest integer that
  8275. may be represented by this type.
  8276. 'REAL_TYPE'
  8277. Used to represent the 'float', 'double', and 'long double' types.
  8278. The number of bits in the floating-point representation is given by
  8279. 'TYPE_PRECISION', as in the 'INTEGER_TYPE' case.
  8280. 'FIXED_POINT_TYPE'
  8281. Used to represent the 'short _Fract', '_Fract', 'long _Fract',
  8282. 'long long _Fract', 'short _Accum', '_Accum', 'long _Accum', and
  8283. 'long long _Accum' types. The number of bits in the fixed-point
  8284. representation is given by 'TYPE_PRECISION', as in the
  8285. 'INTEGER_TYPE' case. There may be padding bits, fractional bits
  8286. and integral bits. The number of fractional bits is given by
  8287. 'TYPE_FBIT', and the number of integral bits is given by
  8288. 'TYPE_IBIT'. The fixed-point type is unsigned if 'TYPE_UNSIGNED'
  8289. holds; otherwise, it is signed. The fixed-point type is saturating
  8290. if 'TYPE_SATURATING' holds; otherwise, it is not saturating.
  8291. 'COMPLEX_TYPE'
  8292. Used to represent GCC built-in '__complex__' data types. The
  8293. 'TREE_TYPE' is the type of the real and imaginary parts.
  8294. 'ENUMERAL_TYPE'
  8295. Used to represent an enumeration type. The 'TYPE_PRECISION' gives
  8296. (as an 'int'), the number of bits used to represent the type. If
  8297. there are no negative enumeration constants, 'TYPE_UNSIGNED' will
  8298. hold. The minimum and maximum enumeration constants may be
  8299. obtained with 'TYPE_MIN_VALUE' and 'TYPE_MAX_VALUE', respectively;
  8300. each of these macros returns an 'INTEGER_CST'.
  8301. The actual enumeration constants themselves may be obtained by
  8302. looking at the 'TYPE_VALUES'. This macro will return a
  8303. 'TREE_LIST', containing the constants. The 'TREE_PURPOSE' of each
  8304. node will be an 'IDENTIFIER_NODE' giving the name of the constant;
  8305. the 'TREE_VALUE' will be an 'INTEGER_CST' giving the value assigned
  8306. to that constant. These constants will appear in the order in
  8307. which they were declared. The 'TREE_TYPE' of each of these
  8308. constants will be the type of enumeration type itself.
  8309. 'OPAQUE_TYPE'
  8310. Used for things that have a 'MODE_OPAQUE' mode class in the
  8311. backend. Opaque types have a size and precision, and can be held
  8312. in memory or registers. They are used when we do not want the
  8313. compiler to make assumptions about the availability of other
  8314. operations as would happen with integer types.
  8315. 'BOOLEAN_TYPE'
  8316. Used to represent the 'bool' type.
  8317. 'POINTER_TYPE'
  8318. Used to represent pointer types, and pointer to data member types.
  8319. The 'TREE_TYPE' gives the type to which this type points.
  8320. 'REFERENCE_TYPE'
  8321. Used to represent reference types. The 'TREE_TYPE' gives the type
  8322. to which this type refers.
  8323. 'FUNCTION_TYPE'
  8324. Used to represent the type of non-member functions and of static
  8325. member functions. The 'TREE_TYPE' gives the return type of the
  8326. function. The 'TYPE_ARG_TYPES' are a 'TREE_LIST' of the argument
  8327. types. The 'TREE_VALUE' of each node in this list is the type of
  8328. the corresponding argument; the 'TREE_PURPOSE' is an expression for
  8329. the default argument value, if any. If the last node in the list
  8330. is 'void_list_node' (a 'TREE_LIST' node whose 'TREE_VALUE' is the
  8331. 'void_type_node'), then functions of this type do not take variable
  8332. arguments. Otherwise, they do take a variable number of arguments.
  8333. Note that in C (but not in C++) a function declared like 'void f()'
  8334. is an unprototyped function taking a variable number of arguments;
  8335. the 'TYPE_ARG_TYPES' of such a function will be 'NULL'.
  8336. 'METHOD_TYPE'
  8337. Used to represent the type of a non-static member function. Like a
  8338. 'FUNCTION_TYPE', the return type is given by the 'TREE_TYPE'. The
  8339. type of '*this', i.e., the class of which functions of this type
  8340. are a member, is given by the 'TYPE_METHOD_BASETYPE'. The
  8341. 'TYPE_ARG_TYPES' is the parameter list, as for a 'FUNCTION_TYPE',
  8342. and includes the 'this' argument.
  8343. 'ARRAY_TYPE'
  8344. Used to represent array types. The 'TREE_TYPE' gives the type of
  8345. the elements in the array. If the array-bound is present in the
  8346. type, the 'TYPE_DOMAIN' is an 'INTEGER_TYPE' whose 'TYPE_MIN_VALUE'
  8347. and 'TYPE_MAX_VALUE' will be the lower and upper bounds of the
  8348. array, respectively. The 'TYPE_MIN_VALUE' will always be an
  8349. 'INTEGER_CST' for zero, while the 'TYPE_MAX_VALUE' will be one less
  8350. than the number of elements in the array, i.e., the highest value
  8351. which may be used to index an element in the array.
  8352. 'RECORD_TYPE'
  8353. Used to represent 'struct' and 'class' types, as well as pointers
  8354. to member functions and similar constructs in other languages.
  8355. 'TYPE_FIELDS' contains the items contained in this type, each of
  8356. which can be a 'FIELD_DECL', 'VAR_DECL', 'CONST_DECL', or
  8357. 'TYPE_DECL'. You may not make any assumptions about the ordering
  8358. of the fields in the type or whether one or more of them overlap.
  8359. 'UNION_TYPE'
  8360. Used to represent 'union' types. Similar to 'RECORD_TYPE' except
  8361. that all 'FIELD_DECL' nodes in 'TYPE_FIELD' start at bit position
  8362. zero.
  8363. 'QUAL_UNION_TYPE'
  8364. Used to represent part of a variant record in Ada. Similar to
  8365. 'UNION_TYPE' except that each 'FIELD_DECL' has a 'DECL_QUALIFIER'
  8366. field, which contains a boolean expression that indicates whether
  8367. the field is present in the object. The type will only have one
  8368. field, so each field's 'DECL_QUALIFIER' is only evaluated if none
  8369. of the expressions in the previous fields in 'TYPE_FIELDS' are
  8370. nonzero. Normally these expressions will reference a field in the
  8371. outer object using a 'PLACEHOLDER_EXPR'.
  8372. 'LANG_TYPE'
  8373. This node is used to represent a language-specific type. The front
  8374. end must handle it.
  8375. 'OFFSET_TYPE'
  8376. This node is used to represent a pointer-to-data member. For a
  8377. data member 'X::m' the 'TYPE_OFFSET_BASETYPE' is 'X' and the
  8378. 'TREE_TYPE' is the type of 'm'.
  8379. There are variables whose values represent some of the basic types.
  8380. These include:
  8381. 'void_type_node'
  8382. A node for 'void'.
  8383. 'integer_type_node'
  8384. A node for 'int'.
  8385. 'unsigned_type_node.'
  8386. A node for 'unsigned int'.
  8387. 'char_type_node.'
  8388. A node for 'char'.
  8389. It may sometimes be useful to compare one of these variables with a type
  8390. in hand, using 'same_type_p'.
  8391. 
  8392. File: gccint.info, Node: Declarations, Next: Attributes, Prev: Types, Up: GENERIC
  8393. 11.4 Declarations
  8394. =================
  8395. This section covers the various kinds of declarations that appear in the
  8396. internal representation, except for declarations of functions
  8397. (represented by 'FUNCTION_DECL' nodes), which are described in *note
  8398. Functions::.
  8399. * Menu:
  8400. * Working with declarations:: Macros and functions that work on
  8401. declarations.
  8402. * Internal structure:: How declaration nodes are represented.
  8403. 
  8404. File: gccint.info, Node: Working with declarations, Next: Internal structure, Up: Declarations
  8405. 11.4.1 Working with declarations
  8406. --------------------------------
  8407. Some macros can be used with any kind of declaration. These include:
  8408. 'DECL_NAME'
  8409. This macro returns an 'IDENTIFIER_NODE' giving the name of the
  8410. entity.
  8411. 'TREE_TYPE'
  8412. This macro returns the type of the entity declared.
  8413. 'EXPR_FILENAME'
  8414. This macro returns the name of the file in which the entity was
  8415. declared, as a 'char*'. For an entity declared implicitly by the
  8416. compiler (like '__builtin_memcpy'), this will be the string
  8417. '"<internal>"'.
  8418. 'EXPR_LINENO'
  8419. This macro returns the line number at which the entity was
  8420. declared, as an 'int'.
  8421. 'DECL_ARTIFICIAL'
  8422. This predicate holds if the declaration was implicitly generated by
  8423. the compiler. For example, this predicate will hold of an
  8424. implicitly declared member function, or of the 'TYPE_DECL'
  8425. implicitly generated for a class type. Recall that in C++ code
  8426. like:
  8427. struct S {};
  8428. is roughly equivalent to C code like:
  8429. struct S {};
  8430. typedef struct S S;
  8431. The implicitly generated 'typedef' declaration is represented by a
  8432. 'TYPE_DECL' for which 'DECL_ARTIFICIAL' holds.
  8433. The various kinds of declarations include:
  8434. 'LABEL_DECL'
  8435. These nodes are used to represent labels in function bodies. For
  8436. more information, see *note Functions::. These nodes only appear
  8437. in block scopes.
  8438. 'CONST_DECL'
  8439. These nodes are used to represent enumeration constants. The value
  8440. of the constant is given by 'DECL_INITIAL' which will be an
  8441. 'INTEGER_CST' with the same type as the 'TREE_TYPE' of the
  8442. 'CONST_DECL', i.e., an 'ENUMERAL_TYPE'.
  8443. 'RESULT_DECL'
  8444. These nodes represent the value returned by a function. When a
  8445. value is assigned to a 'RESULT_DECL', that indicates that the value
  8446. should be returned, via bitwise copy, by the function. You can use
  8447. 'DECL_SIZE' and 'DECL_ALIGN' on a 'RESULT_DECL', just as with a
  8448. 'VAR_DECL'.
  8449. 'TYPE_DECL'
  8450. These nodes represent 'typedef' declarations. The 'TREE_TYPE' is
  8451. the type declared to have the name given by 'DECL_NAME'. In some
  8452. cases, there is no associated name.
  8453. 'VAR_DECL'
  8454. These nodes represent variables with namespace or block scope, as
  8455. well as static data members. The 'DECL_SIZE' and 'DECL_ALIGN' are
  8456. analogous to 'TYPE_SIZE' and 'TYPE_ALIGN'. For a declaration, you
  8457. should always use the 'DECL_SIZE' and 'DECL_ALIGN' rather than the
  8458. 'TYPE_SIZE' and 'TYPE_ALIGN' given by the 'TREE_TYPE', since
  8459. special attributes may have been applied to the variable to give it
  8460. a particular size and alignment. You may use the predicates
  8461. 'DECL_THIS_STATIC' or 'DECL_THIS_EXTERN' to test whether the
  8462. storage class specifiers 'static' or 'extern' were used to declare
  8463. a variable.
  8464. If this variable is initialized (but does not require a
  8465. constructor), the 'DECL_INITIAL' will be an expression for the
  8466. initializer. The initializer should be evaluated, and a bitwise
  8467. copy into the variable performed. If the 'DECL_INITIAL' is the
  8468. 'error_mark_node', there is an initializer, but it is given by an
  8469. explicit statement later in the code; no bitwise copy is required.
  8470. GCC provides an extension that allows either automatic variables,
  8471. or global variables, to be placed in particular registers. This
  8472. extension is being used for a particular 'VAR_DECL' if
  8473. 'DECL_REGISTER' holds for the 'VAR_DECL', and if
  8474. 'DECL_ASSEMBLER_NAME' is not equal to 'DECL_NAME'. In that case,
  8475. 'DECL_ASSEMBLER_NAME' is the name of the register into which the
  8476. variable will be placed.
  8477. 'PARM_DECL'
  8478. Used to represent a parameter to a function. Treat these nodes
  8479. similarly to 'VAR_DECL' nodes. These nodes only appear in the
  8480. 'DECL_ARGUMENTS' for a 'FUNCTION_DECL'.
  8481. The 'DECL_ARG_TYPE' for a 'PARM_DECL' is the type that will
  8482. actually be used when a value is passed to this function. It may
  8483. be a wider type than the 'TREE_TYPE' of the parameter; for example,
  8484. the ordinary type might be 'short' while the 'DECL_ARG_TYPE' is
  8485. 'int'.
  8486. 'DEBUG_EXPR_DECL'
  8487. Used to represent an anonymous debug-information temporary created
  8488. to hold an expression as it is optimized away, so that its value
  8489. can be referenced in debug bind statements.
  8490. 'FIELD_DECL'
  8491. These nodes represent non-static data members. The 'DECL_SIZE' and
  8492. 'DECL_ALIGN' behave as for 'VAR_DECL' nodes. The position of the
  8493. field within the parent record is specified by a combination of
  8494. three attributes. 'DECL_FIELD_OFFSET' is the position, counting in
  8495. bytes, of the 'DECL_OFFSET_ALIGN'-bit sized word containing the bit
  8496. of the field closest to the beginning of the structure.
  8497. 'DECL_FIELD_BIT_OFFSET' is the bit offset of the first bit of the
  8498. field within this word; this may be nonzero even for fields that
  8499. are not bit-fields, since 'DECL_OFFSET_ALIGN' may be greater than
  8500. the natural alignment of the field's type.
  8501. If 'DECL_C_BIT_FIELD' holds, this field is a bit-field. In a
  8502. bit-field, 'DECL_BIT_FIELD_TYPE' also contains the type that was
  8503. originally specified for it, while DECL_TYPE may be a modified type
  8504. with lesser precision, according to the size of the bit field.
  8505. 'NAMESPACE_DECL'
  8506. Namespaces provide a name hierarchy for other declarations. They
  8507. appear in the 'DECL_CONTEXT' of other '_DECL' nodes.
  8508. 
  8509. File: gccint.info, Node: Internal structure, Prev: Working with declarations, Up: Declarations
  8510. 11.4.2 Internal structure
  8511. -------------------------
  8512. 'DECL' nodes are represented internally as a hierarchy of structures.
  8513. * Menu:
  8514. * Current structure hierarchy:: The current DECL node structure
  8515. hierarchy.
  8516. * Adding new DECL node types:: How to add a new DECL node to a
  8517. frontend.
  8518. 
  8519. File: gccint.info, Node: Current structure hierarchy, Next: Adding new DECL node types, Up: Internal structure
  8520. 11.4.2.1 Current structure hierarchy
  8521. ....................................
  8522. 'struct tree_decl_minimal'
  8523. This is the minimal structure to inherit from in order for common
  8524. 'DECL' macros to work. The fields it contains are a unique ID,
  8525. source location, context, and name.
  8526. 'struct tree_decl_common'
  8527. This structure inherits from 'struct tree_decl_minimal'. It
  8528. contains fields that most 'DECL' nodes need, such as a field to
  8529. store alignment, machine mode, size, and attributes.
  8530. 'struct tree_field_decl'
  8531. This structure inherits from 'struct tree_decl_common'. It is used
  8532. to represent 'FIELD_DECL'.
  8533. 'struct tree_label_decl'
  8534. This structure inherits from 'struct tree_decl_common'. It is used
  8535. to represent 'LABEL_DECL'.
  8536. 'struct tree_translation_unit_decl'
  8537. This structure inherits from 'struct tree_decl_common'. It is used
  8538. to represent 'TRANSLATION_UNIT_DECL'.
  8539. 'struct tree_decl_with_rtl'
  8540. This structure inherits from 'struct tree_decl_common'. It
  8541. contains a field to store the low-level RTL associated with a
  8542. 'DECL' node.
  8543. 'struct tree_result_decl'
  8544. This structure inherits from 'struct tree_decl_with_rtl'. It is
  8545. used to represent 'RESULT_DECL'.
  8546. 'struct tree_const_decl'
  8547. This structure inherits from 'struct tree_decl_with_rtl'. It is
  8548. used to represent 'CONST_DECL'.
  8549. 'struct tree_parm_decl'
  8550. This structure inherits from 'struct tree_decl_with_rtl'. It is
  8551. used to represent 'PARM_DECL'.
  8552. 'struct tree_decl_with_vis'
  8553. This structure inherits from 'struct tree_decl_with_rtl'. It
  8554. contains fields necessary to store visibility information, as well
  8555. as a section name and assembler name.
  8556. 'struct tree_var_decl'
  8557. This structure inherits from 'struct tree_decl_with_vis'. It is
  8558. used to represent 'VAR_DECL'.
  8559. 'struct tree_function_decl'
  8560. This structure inherits from 'struct tree_decl_with_vis'. It is
  8561. used to represent 'FUNCTION_DECL'.
  8562. 
  8563. File: gccint.info, Node: Adding new DECL node types, Prev: Current structure hierarchy, Up: Internal structure
  8564. 11.4.2.2 Adding new DECL node types
  8565. ...................................
  8566. Adding a new 'DECL' tree consists of the following steps
  8567. Add a new tree code for the 'DECL' node
  8568. For language specific 'DECL' nodes, there is a '.def' file in each
  8569. frontend directory where the tree code should be added. For 'DECL'
  8570. nodes that are part of the middle-end, the code should be added to
  8571. 'tree.def'.
  8572. Create a new structure type for the 'DECL' node
  8573. These structures should inherit from one of the existing structures
  8574. in the language hierarchy by using that structure as the first
  8575. member.
  8576. struct tree_foo_decl
  8577. {
  8578. struct tree_decl_with_vis common;
  8579. }
  8580. Would create a structure name 'tree_foo_decl' that inherits from
  8581. 'struct tree_decl_with_vis'.
  8582. For language specific 'DECL' nodes, this new structure type should
  8583. go in the appropriate '.h' file. For 'DECL' nodes that are part of
  8584. the middle-end, the structure type should go in 'tree.h'.
  8585. Add a member to the tree structure enumerator for the node
  8586. For garbage collection and dynamic checking purposes, each 'DECL'
  8587. node structure type is required to have a unique enumerator value
  8588. specified with it. For language specific 'DECL' nodes, this new
  8589. enumerator value should go in the appropriate '.def' file. For
  8590. 'DECL' nodes that are part of the middle-end, the enumerator values
  8591. are specified in 'treestruct.def'.
  8592. Update 'union tree_node'
  8593. In order to make your new structure type usable, it must be added
  8594. to 'union tree_node'. For language specific 'DECL' nodes, a new
  8595. entry should be added to the appropriate '.h' file of the form
  8596. struct tree_foo_decl GTY ((tag ("TS_VAR_DECL"))) foo_decl;
  8597. For 'DECL' nodes that are part of the middle-end, the additional
  8598. member goes directly into 'union tree_node' in 'tree.h'.
  8599. Update dynamic checking info
  8600. In order to be able to check whether accessing a named portion of
  8601. 'union tree_node' is legal, and whether a certain 'DECL' node
  8602. contains one of the enumerated 'DECL' node structures in the
  8603. hierarchy, a simple lookup table is used. This lookup table needs
  8604. to be kept up to date with the tree structure hierarchy, or else
  8605. checking and containment macros will fail inappropriately.
  8606. For language specific 'DECL' nodes, there is an 'init_ts' function
  8607. in an appropriate '.c' file, which initializes the lookup table.
  8608. Code setting up the table for new 'DECL' nodes should be added
  8609. there. For each 'DECL' tree code and enumerator value representing
  8610. a member of the inheritance hierarchy, the table should contain 1
  8611. if that tree code inherits (directly or indirectly) from that
  8612. member. Thus, a 'FOO_DECL' node derived from 'struct
  8613. decl_with_rtl', and enumerator value 'TS_FOO_DECL', would be set up
  8614. as follows
  8615. tree_contains_struct[FOO_DECL][TS_FOO_DECL] = 1;
  8616. tree_contains_struct[FOO_DECL][TS_DECL_WRTL] = 1;
  8617. tree_contains_struct[FOO_DECL][TS_DECL_COMMON] = 1;
  8618. tree_contains_struct[FOO_DECL][TS_DECL_MINIMAL] = 1;
  8619. For 'DECL' nodes that are part of the middle-end, the setup code
  8620. goes into 'tree.c'.
  8621. Add macros to access any new fields and flags
  8622. Each added field or flag should have a macro that is used to access
  8623. it, that performs appropriate checking to ensure only the right
  8624. type of 'DECL' nodes access the field.
  8625. These macros generally take the following form
  8626. #define FOO_DECL_FIELDNAME(NODE) FOO_DECL_CHECK(NODE)->foo_decl.fieldname
  8627. However, if the structure is simply a base class for further
  8628. structures, something like the following should be used
  8629. #define BASE_STRUCT_CHECK(T) CONTAINS_STRUCT_CHECK(T, TS_BASE_STRUCT)
  8630. #define BASE_STRUCT_FIELDNAME(NODE) \
  8631. (BASE_STRUCT_CHECK(NODE)->base_struct.fieldname
  8632. Reading them from the generated 'all-tree.def' file (which in turn
  8633. includes all the 'tree.def' files), 'gencheck.c' is used during
  8634. GCC's build to generate the '*_CHECK' macros for all tree codes.
  8635. 
  8636. File: gccint.info, Node: Attributes, Next: Expression trees, Prev: Declarations, Up: GENERIC
  8637. 11.5 Attributes in trees
  8638. ========================
  8639. Attributes, as specified using the '__attribute__' keyword, are
  8640. represented internally as a 'TREE_LIST'. The 'TREE_PURPOSE' is the name
  8641. of the attribute, as an 'IDENTIFIER_NODE'. The 'TREE_VALUE' is a
  8642. 'TREE_LIST' of the arguments of the attribute, if any, or 'NULL_TREE' if
  8643. there are no arguments; the arguments are stored as the 'TREE_VALUE' of
  8644. successive entries in the list, and may be identifiers or expressions.
  8645. The 'TREE_CHAIN' of the attribute is the next attribute in a list of
  8646. attributes applying to the same declaration or type, or 'NULL_TREE' if
  8647. there are no further attributes in the list.
  8648. Attributes may be attached to declarations and to types; these
  8649. attributes may be accessed with the following macros. All attributes
  8650. are stored in this way, and many also cause other changes to the
  8651. declaration or type or to other internal compiler data structures.
  8652. -- Tree Macro: tree DECL_ATTRIBUTES (tree DECL)
  8653. This macro returns the attributes on the declaration DECL.
  8654. -- Tree Macro: tree TYPE_ATTRIBUTES (tree TYPE)
  8655. This macro returns the attributes on the type TYPE.
  8656. 
  8657. File: gccint.info, Node: Expression trees, Next: Statements, Prev: Attributes, Up: GENERIC
  8658. 11.6 Expressions
  8659. ================
  8660. The internal representation for expressions is for the most part quite
  8661. straightforward. However, there are a few facts that one must bear in
  8662. mind. In particular, the expression "tree" is actually a directed
  8663. acyclic graph. (For example there may be many references to the integer
  8664. constant zero throughout the source program; many of these will be
  8665. represented by the same expression node.) You should not rely on
  8666. certain kinds of node being shared, nor should you rely on certain kinds
  8667. of nodes being unshared.
  8668. The following macros can be used with all expression nodes:
  8669. 'TREE_TYPE'
  8670. Returns the type of the expression. This value may not be
  8671. precisely the same type that would be given the expression in the
  8672. original program.
  8673. In what follows, some nodes that one might expect to always have type
  8674. 'bool' are documented to have either integral or boolean type. At some
  8675. point in the future, the C front end may also make use of this same
  8676. intermediate representation, and at this point these nodes will
  8677. certainly have integral type. The previous sentence is not meant to
  8678. imply that the C++ front end does not or will not give these nodes
  8679. integral type.
  8680. Below, we list the various kinds of expression nodes. Except where
  8681. noted otherwise, the operands to an expression are accessed using the
  8682. 'TREE_OPERAND' macro. For example, to access the first operand to a
  8683. binary plus expression 'expr', use:
  8684. TREE_OPERAND (expr, 0)
  8685. As this example indicates, the operands are zero-indexed.
  8686. * Menu:
  8687. * Constants: Constant expressions.
  8688. * Storage References::
  8689. * Unary and Binary Expressions::
  8690. * Vectors::
  8691. 
  8692. File: gccint.info, Node: Constant expressions, Next: Storage References, Up: Expression trees
  8693. 11.6.1 Constant expressions
  8694. ---------------------------
  8695. The table below begins with constants, moves on to unary expressions,
  8696. then proceeds to binary expressions, and concludes with various other
  8697. kinds of expressions:
  8698. 'INTEGER_CST'
  8699. These nodes represent integer constants. Note that the type of
  8700. these constants is obtained with 'TREE_TYPE'; they are not always
  8701. of type 'int'. In particular, 'char' constants are represented
  8702. with 'INTEGER_CST' nodes. The value of the integer constant 'e' is
  8703. represented in an array of HOST_WIDE_INT. There are enough elements
  8704. in the array to represent the value without taking extra elements
  8705. for redundant 0s or -1. The number of elements used to represent
  8706. 'e' is available via 'TREE_INT_CST_NUNITS'. Element 'i' can be
  8707. extracted by using 'TREE_INT_CST_ELT (e, i)'. 'TREE_INT_CST_LOW'
  8708. is a shorthand for 'TREE_INT_CST_ELT (e, 0)'.
  8709. The functions 'tree_fits_shwi_p' and 'tree_fits_uhwi_p' can be used
  8710. to tell if the value is small enough to fit in a signed
  8711. HOST_WIDE_INT or an unsigned HOST_WIDE_INT respectively. The value
  8712. can then be extracted using 'tree_to_shwi' and 'tree_to_uhwi'.
  8713. 'REAL_CST'
  8714. FIXME: Talk about how to obtain representations of this constant,
  8715. do comparisons, and so forth.
  8716. 'FIXED_CST'
  8717. These nodes represent fixed-point constants. The type of these
  8718. constants is obtained with 'TREE_TYPE'. 'TREE_FIXED_CST_PTR'
  8719. points to a 'struct fixed_value'; 'TREE_FIXED_CST' returns the
  8720. structure itself. 'struct fixed_value' contains 'data' with the
  8721. size of two 'HOST_BITS_PER_WIDE_INT' and 'mode' as the associated
  8722. fixed-point machine mode for 'data'.
  8723. 'COMPLEX_CST'
  8724. These nodes are used to represent complex number constants, that is
  8725. a '__complex__' whose parts are constant nodes. The
  8726. 'TREE_REALPART' and 'TREE_IMAGPART' return the real and the
  8727. imaginary parts respectively.
  8728. 'VECTOR_CST'
  8729. These nodes are used to represent vector constants. Each vector
  8730. constant V is treated as a specific instance of an arbitrary-length
  8731. sequence that itself contains 'VECTOR_CST_NPATTERNS (V)'
  8732. interleaved patterns. Each pattern has the form:
  8733. { BASE0, BASE1, BASE1 + STEP, BASE1 + STEP * 2, ... }
  8734. The first three elements in each pattern are enough to determine
  8735. the values of the other elements. However, if all STEPs are zero,
  8736. only the first two elements are needed. If in addition each BASE1
  8737. is equal to the corresponding BASE0, only the first element in each
  8738. pattern is needed. The number of encoded elements per pattern is
  8739. given by 'VECTOR_CST_NELTS_PER_PATTERN (V)'.
  8740. For example, the constant:
  8741. { 0, 1, 2, 6, 3, 8, 4, 10, 5, 12, 6, 14, 7, 16, 8, 18 }
  8742. is interpreted as an interleaving of the sequences:
  8743. { 0, 2, 3, 4, 5, 6, 7, 8 }
  8744. { 1, 6, 8, 10, 12, 14, 16, 18 }
  8745. where the sequences are represented by the following patterns:
  8746. BASE0 == 0, BASE1 == 2, STEP == 1
  8747. BASE0 == 1, BASE1 == 6, STEP == 2
  8748. In this case:
  8749. VECTOR_CST_NPATTERNS (V) == 2
  8750. VECTOR_CST_NELTS_PER_PATTERN (V) == 3
  8751. The vector is therefore encoded using the first 6 elements ('{ 0,
  8752. 1, 2, 6, 3, 8 }'), with the remaining 10 elements being implicit
  8753. extensions of them.
  8754. Sometimes this scheme can create two possible encodings of the same
  8755. vector. For example { 0, 1 } could be seen as two patterns with
  8756. one element each or one pattern with two elements (BASE0 and
  8757. BASE1). The canonical encoding is always the one with the fewest
  8758. patterns or (if both encodings have the same number of petterns)
  8759. the one with the fewest encoded elements.
  8760. 'vector_cst_encoding_nelts (V)' gives the total number of encoded
  8761. elements in V, which is 6 in the example above.
  8762. 'VECTOR_CST_ENCODED_ELTS (V)' gives a pointer to the elements
  8763. encoded in V and 'VECTOR_CST_ENCODED_ELT (V, I)' accesses the value
  8764. of encoded element I.
  8765. 'VECTOR_CST_DUPLICATE_P (V)' is true if V simply contains repeated
  8766. instances of 'VECTOR_CST_NPATTERNS (V)' values. This is a
  8767. shorthand for testing 'VECTOR_CST_NELTS_PER_PATTERN (V) == 1'.
  8768. 'VECTOR_CST_STEPPED_P (V)' is true if at least one pattern in V has
  8769. a nonzero step. This is a shorthand for testing
  8770. 'VECTOR_CST_NELTS_PER_PATTERN (V) == 3'.
  8771. The utility function 'vector_cst_elt' gives the value of an
  8772. arbitrary index as a 'tree'. 'vector_cst_int_elt' gives the same
  8773. value as a 'wide_int'.
  8774. 'STRING_CST'
  8775. These nodes represent string-constants. The 'TREE_STRING_LENGTH'
  8776. returns the length of the string, as an 'int'. The
  8777. 'TREE_STRING_POINTER' is a 'char*' containing the string itself.
  8778. The string may not be 'NUL'-terminated, and it may contain embedded
  8779. 'NUL' characters. Therefore, the 'TREE_STRING_LENGTH' includes the
  8780. trailing 'NUL' if it is present.
  8781. For wide string constants, the 'TREE_STRING_LENGTH' is the number
  8782. of bytes in the string, and the 'TREE_STRING_POINTER' points to an
  8783. array of the bytes of the string, as represented on the target
  8784. system (that is, as integers in the target endianness). Wide and
  8785. non-wide string constants are distinguished only by the 'TREE_TYPE'
  8786. of the 'STRING_CST'.
  8787. FIXME: The formats of string constants are not well-defined when
  8788. the target system bytes are not the same width as host system
  8789. bytes.
  8790. 'POLY_INT_CST'
  8791. These nodes represent invariants that depend on some
  8792. target-specific runtime parameters. They consist of
  8793. 'NUM_POLY_INT_COEFFS' coefficients, with the first coefficient
  8794. being the constant term and the others being multipliers that are
  8795. applied to the runtime parameters.
  8796. 'POLY_INT_CST_ELT (X, I)' references coefficient number I of
  8797. 'POLY_INT_CST' node X. Each coefficient is an 'INTEGER_CST'.
  8798. 
  8799. File: gccint.info, Node: Storage References, Next: Unary and Binary Expressions, Prev: Constant expressions, Up: Expression trees
  8800. 11.6.2 References to storage
  8801. ----------------------------
  8802. 'ARRAY_REF'
  8803. These nodes represent array accesses. The first operand is the
  8804. array; the second is the index. To calculate the address of the
  8805. memory accessed, you must scale the index by the size of the type
  8806. of the array elements. The type of these expressions must be the
  8807. type of a component of the array. The third and fourth operands
  8808. are used after gimplification to represent the lower bound and
  8809. component size but should not be used directly; call
  8810. 'array_ref_low_bound' and 'array_ref_element_size' instead.
  8811. 'ARRAY_RANGE_REF'
  8812. These nodes represent access to a range (or "slice") of an array.
  8813. The operands are the same as that for 'ARRAY_REF' and have the same
  8814. meanings. The type of these expressions must be an array whose
  8815. component type is the same as that of the first operand. The range
  8816. of that array type determines the amount of data these expressions
  8817. access.
  8818. 'TARGET_MEM_REF'
  8819. These nodes represent memory accesses whose address directly map to
  8820. an addressing mode of the target architecture. The first argument
  8821. is 'TMR_SYMBOL' and must be a 'VAR_DECL' of an object with a fixed
  8822. address. The second argument is 'TMR_BASE' and the third one is
  8823. 'TMR_INDEX'. The fourth argument is 'TMR_STEP' and must be an
  8824. 'INTEGER_CST'. The fifth argument is 'TMR_OFFSET' and must be an
  8825. 'INTEGER_CST'. Any of the arguments may be NULL if the appropriate
  8826. component does not appear in the address. Address of the
  8827. 'TARGET_MEM_REF' is determined in the following way.
  8828. &TMR_SYMBOL + TMR_BASE + TMR_INDEX * TMR_STEP + TMR_OFFSET
  8829. The sixth argument is the reference to the original memory access,
  8830. which is preserved for the purposes of the RTL alias analysis. The
  8831. seventh argument is a tag representing the results of tree level
  8832. alias analysis.
  8833. 'ADDR_EXPR'
  8834. These nodes are used to represent the address of an object. (These
  8835. expressions will always have pointer or reference type.) The
  8836. operand may be another expression, or it may be a declaration.
  8837. As an extension, GCC allows users to take the address of a label.
  8838. In this case, the operand of the 'ADDR_EXPR' will be a
  8839. 'LABEL_DECL'. The type of such an expression is 'void*'.
  8840. If the object addressed is not an lvalue, a temporary is created,
  8841. and the address of the temporary is used.
  8842. 'INDIRECT_REF'
  8843. These nodes are used to represent the object pointed to by a
  8844. pointer. The operand is the pointer being dereferenced; it will
  8845. always have pointer or reference type.
  8846. 'MEM_REF'
  8847. These nodes are used to represent the object pointed to by a
  8848. pointer offset by a constant. The first operand is the pointer
  8849. being dereferenced; it will always have pointer or reference type.
  8850. The second operand is a pointer constant. Its type is specifying
  8851. the type to be used for type-based alias analysis.
  8852. 'COMPONENT_REF'
  8853. These nodes represent non-static data member accesses. The first
  8854. operand is the object (rather than a pointer to it); the second
  8855. operand is the 'FIELD_DECL' for the data member. The third operand
  8856. represents the byte offset of the field, but should not be used
  8857. directly; call 'component_ref_field_offset' instead.
  8858. 
  8859. File: gccint.info, Node: Unary and Binary Expressions, Next: Vectors, Prev: Storage References, Up: Expression trees
  8860. 11.6.3 Unary and Binary Expressions
  8861. -----------------------------------
  8862. 'NEGATE_EXPR'
  8863. These nodes represent unary negation of the single operand, for
  8864. both integer and floating-point types. The type of negation can be
  8865. determined by looking at the type of the expression.
  8866. The behavior of this operation on signed arithmetic overflow is
  8867. controlled by the 'flag_wrapv' and 'flag_trapv' variables.
  8868. 'ABS_EXPR'
  8869. These nodes represent the absolute value of the single operand, for
  8870. both integer and floating-point types. This is typically used to
  8871. implement the 'abs', 'labs' and 'llabs' builtins for integer types,
  8872. and the 'fabs', 'fabsf' and 'fabsl' builtins for floating point
  8873. types. The type of abs operation can be determined by looking at
  8874. the type of the expression.
  8875. This node is not used for complex types. To represent the modulus
  8876. or complex abs of a complex value, use the 'BUILT_IN_CABS',
  8877. 'BUILT_IN_CABSF' or 'BUILT_IN_CABSL' builtins, as used to implement
  8878. the C99 'cabs', 'cabsf' and 'cabsl' built-in functions.
  8879. 'ABSU_EXPR'
  8880. These nodes represent the absolute value of the single operand in
  8881. equivalent unsigned type such that 'ABSU_EXPR' of 'TYPE_MIN' is
  8882. well defined.
  8883. 'BIT_NOT_EXPR'
  8884. These nodes represent bitwise complement, and will always have
  8885. integral type. The only operand is the value to be complemented.
  8886. 'TRUTH_NOT_EXPR'
  8887. These nodes represent logical negation, and will always have
  8888. integral (or boolean) type. The operand is the value being
  8889. negated. The type of the operand and that of the result are always
  8890. of 'BOOLEAN_TYPE' or 'INTEGER_TYPE'.
  8891. 'PREDECREMENT_EXPR'
  8892. 'PREINCREMENT_EXPR'
  8893. 'POSTDECREMENT_EXPR'
  8894. 'POSTINCREMENT_EXPR'
  8895. These nodes represent increment and decrement expressions. The
  8896. value of the single operand is computed, and the operand
  8897. incremented or decremented. In the case of 'PREDECREMENT_EXPR' and
  8898. 'PREINCREMENT_EXPR', the value of the expression is the value
  8899. resulting after the increment or decrement; in the case of
  8900. 'POSTDECREMENT_EXPR' and 'POSTINCREMENT_EXPR' is the value before
  8901. the increment or decrement occurs. The type of the operand, like
  8902. that of the result, will be either integral, boolean, or
  8903. floating-point.
  8904. 'FIX_TRUNC_EXPR'
  8905. These nodes represent conversion of a floating-point value to an
  8906. integer. The single operand will have a floating-point type, while
  8907. the complete expression will have an integral (or boolean) type.
  8908. The operand is rounded towards zero.
  8909. 'FLOAT_EXPR'
  8910. These nodes represent conversion of an integral (or boolean) value
  8911. to a floating-point value. The single operand will have integral
  8912. type, while the complete expression will have a floating-point
  8913. type.
  8914. FIXME: How is the operand supposed to be rounded? Is this
  8915. dependent on '-mieee'?
  8916. 'COMPLEX_EXPR'
  8917. These nodes are used to represent complex numbers constructed from
  8918. two expressions of the same (integer or real) type. The first
  8919. operand is the real part and the second operand is the imaginary
  8920. part.
  8921. 'CONJ_EXPR'
  8922. These nodes represent the conjugate of their operand.
  8923. 'REALPART_EXPR'
  8924. 'IMAGPART_EXPR'
  8925. These nodes represent respectively the real and the imaginary parts
  8926. of complex numbers (their sole argument).
  8927. 'NON_LVALUE_EXPR'
  8928. These nodes indicate that their one and only operand is not an
  8929. lvalue. A back end can treat these identically to the single
  8930. operand.
  8931. 'NOP_EXPR'
  8932. These nodes are used to represent conversions that do not require
  8933. any code-generation. For example, conversion of a 'char*' to an
  8934. 'int*' does not require any code be generated; such a conversion is
  8935. represented by a 'NOP_EXPR'. The single operand is the expression
  8936. to be converted. The conversion from a pointer to a reference is
  8937. also represented with a 'NOP_EXPR'.
  8938. 'CONVERT_EXPR'
  8939. These nodes are similar to 'NOP_EXPR's, but are used in those
  8940. situations where code may need to be generated. For example, if an
  8941. 'int*' is converted to an 'int' code may need to be generated on
  8942. some platforms. These nodes are never used for C++-specific
  8943. conversions, like conversions between pointers to different classes
  8944. in an inheritance hierarchy. Any adjustments that need to be made
  8945. in such cases are always indicated explicitly. Similarly, a
  8946. user-defined conversion is never represented by a 'CONVERT_EXPR';
  8947. instead, the function calls are made explicit.
  8948. 'FIXED_CONVERT_EXPR'
  8949. These nodes are used to represent conversions that involve
  8950. fixed-point values. For example, from a fixed-point value to
  8951. another fixed-point value, from an integer to a fixed-point value,
  8952. from a fixed-point value to an integer, from a floating-point value
  8953. to a fixed-point value, or from a fixed-point value to a
  8954. floating-point value.
  8955. 'LSHIFT_EXPR'
  8956. 'RSHIFT_EXPR'
  8957. These nodes represent left and right shifts, respectively. The
  8958. first operand is the value to shift; it will always be of integral
  8959. type. The second operand is an expression for the number of bits
  8960. by which to shift. Right shift should be treated as arithmetic,
  8961. i.e., the high-order bits should be zero-filled when the expression
  8962. has unsigned type and filled with the sign bit when the expression
  8963. has signed type. Note that the result is undefined if the second
  8964. operand is larger than or equal to the first operand's type size.
  8965. Unlike most nodes, these can have a vector as first operand and a
  8966. scalar as second operand.
  8967. 'BIT_IOR_EXPR'
  8968. 'BIT_XOR_EXPR'
  8969. 'BIT_AND_EXPR'
  8970. These nodes represent bitwise inclusive or, bitwise exclusive or,
  8971. and bitwise and, respectively. Both operands will always have
  8972. integral type.
  8973. 'TRUTH_ANDIF_EXPR'
  8974. 'TRUTH_ORIF_EXPR'
  8975. These nodes represent logical "and" and logical "or", respectively.
  8976. These operators are not strict; i.e., the second operand is
  8977. evaluated only if the value of the expression is not determined by
  8978. evaluation of the first operand. The type of the operands and that
  8979. of the result are always of 'BOOLEAN_TYPE' or 'INTEGER_TYPE'.
  8980. 'TRUTH_AND_EXPR'
  8981. 'TRUTH_OR_EXPR'
  8982. 'TRUTH_XOR_EXPR'
  8983. These nodes represent logical and, logical or, and logical
  8984. exclusive or. They are strict; both arguments are always
  8985. evaluated. There are no corresponding operators in C or C++, but
  8986. the front end will sometimes generate these expressions anyhow, if
  8987. it can tell that strictness does not matter. The type of the
  8988. operands and that of the result are always of 'BOOLEAN_TYPE' or
  8989. 'INTEGER_TYPE'.
  8990. 'POINTER_PLUS_EXPR'
  8991. This node represents pointer arithmetic. The first operand is
  8992. always a pointer/reference type. The second operand is always an
  8993. unsigned integer type compatible with sizetype. This and
  8994. POINTER_DIFF_EXPR are the only binary arithmetic operators that can
  8995. operate on pointer types.
  8996. 'POINTER_DIFF_EXPR'
  8997. This node represents pointer subtraction. The two operands always
  8998. have pointer/reference type. It returns a signed integer of the
  8999. same precision as the pointers. The behavior is undefined if the
  9000. difference of the two pointers, seen as infinite precision
  9001. non-negative integers, does not fit in the result type. The result
  9002. does not depend on the pointer type, it is not divided by the size
  9003. of the pointed-to type.
  9004. 'PLUS_EXPR'
  9005. 'MINUS_EXPR'
  9006. 'MULT_EXPR'
  9007. These nodes represent various binary arithmetic operations.
  9008. Respectively, these operations are addition, subtraction (of the
  9009. second operand from the first) and multiplication. Their operands
  9010. may have either integral or floating type, but there will never be
  9011. case in which one operand is of floating type and the other is of
  9012. integral type.
  9013. The behavior of these operations on signed arithmetic overflow is
  9014. controlled by the 'flag_wrapv' and 'flag_trapv' variables.
  9015. 'MULT_HIGHPART_EXPR'
  9016. This node represents the "high-part" of a widening multiplication.
  9017. For an integral type with B bits of precision, the result is the
  9018. most significant B bits of the full 2B product.
  9019. 'RDIV_EXPR'
  9020. This node represents a floating point division operation.
  9021. 'TRUNC_DIV_EXPR'
  9022. 'FLOOR_DIV_EXPR'
  9023. 'CEIL_DIV_EXPR'
  9024. 'ROUND_DIV_EXPR'
  9025. These nodes represent integer division operations that return an
  9026. integer result. 'TRUNC_DIV_EXPR' rounds towards zero,
  9027. 'FLOOR_DIV_EXPR' rounds towards negative infinity, 'CEIL_DIV_EXPR'
  9028. rounds towards positive infinity and 'ROUND_DIV_EXPR' rounds to the
  9029. closest integer. Integer division in C and C++ is truncating, i.e.
  9030. 'TRUNC_DIV_EXPR'.
  9031. The behavior of these operations on signed arithmetic overflow,
  9032. when dividing the minimum signed integer by minus one, is
  9033. controlled by the 'flag_wrapv' and 'flag_trapv' variables.
  9034. 'TRUNC_MOD_EXPR'
  9035. 'FLOOR_MOD_EXPR'
  9036. 'CEIL_MOD_EXPR'
  9037. 'ROUND_MOD_EXPR'
  9038. These nodes represent the integer remainder or modulus operation.
  9039. The integer modulus of two operands 'a' and 'b' is defined as 'a -
  9040. (a/b)*b' where the division calculated using the corresponding
  9041. division operator. Hence for 'TRUNC_MOD_EXPR' this definition
  9042. assumes division using truncation towards zero, i.e.
  9043. 'TRUNC_DIV_EXPR'. Integer remainder in C and C++ uses truncating
  9044. division, i.e. 'TRUNC_MOD_EXPR'.
  9045. 'EXACT_DIV_EXPR'
  9046. The 'EXACT_DIV_EXPR' code is used to represent integer divisions
  9047. where the numerator is known to be an exact multiple of the
  9048. denominator. This allows the backend to choose between the faster
  9049. of 'TRUNC_DIV_EXPR', 'CEIL_DIV_EXPR' and 'FLOOR_DIV_EXPR' for the
  9050. current target.
  9051. 'LT_EXPR'
  9052. 'LE_EXPR'
  9053. 'GT_EXPR'
  9054. 'GE_EXPR'
  9055. 'LTGT_EXPR'
  9056. 'EQ_EXPR'
  9057. 'NE_EXPR'
  9058. These nodes represent the less than, less than or equal to, greater
  9059. than, greater than or equal to, less or greater than, equal, and
  9060. not equal comparison operators. The first and second operands will
  9061. either be both of integral type, both of floating type or both of
  9062. vector type, except for LTGT_EXPR where they will only be both of
  9063. floating type. The result type of these expressions will always be
  9064. of integral, boolean or signed integral vector type. These
  9065. operations return the result type's zero value for false, the
  9066. result type's one value for true, and a vector whose elements are
  9067. zero (false) or minus one (true) for vectors.
  9068. For floating point comparisons, if we honor IEEE NaNs and either
  9069. operand is NaN, then 'NE_EXPR' always returns true and the
  9070. remaining operators always return false. On some targets,
  9071. comparisons against an IEEE NaN, other than equality and
  9072. inequality, may generate a floating-point exception.
  9073. 'ORDERED_EXPR'
  9074. 'UNORDERED_EXPR'
  9075. These nodes represent non-trapping ordered and unordered comparison
  9076. operators. These operations take two floating point operands and
  9077. determine whether they are ordered or unordered relative to each
  9078. other. If either operand is an IEEE NaN, their comparison is
  9079. defined to be unordered, otherwise the comparison is defined to be
  9080. ordered. The result type of these expressions will always be of
  9081. integral or boolean type. These operations return the result
  9082. type's zero value for false, and the result type's one value for
  9083. true.
  9084. 'UNLT_EXPR'
  9085. 'UNLE_EXPR'
  9086. 'UNGT_EXPR'
  9087. 'UNGE_EXPR'
  9088. 'UNEQ_EXPR'
  9089. These nodes represent the unordered comparison operators. These
  9090. operations take two floating point operands and determine whether
  9091. the operands are unordered or are less than, less than or equal to,
  9092. greater than, greater than or equal to, or equal respectively. For
  9093. example, 'UNLT_EXPR' returns true if either operand is an IEEE NaN
  9094. or the first operand is less than the second. All these operations
  9095. are guaranteed not to generate a floating point exception. The
  9096. result type of these expressions will always be of integral or
  9097. boolean type. These operations return the result type's zero value
  9098. for false, and the result type's one value for true.
  9099. 'MODIFY_EXPR'
  9100. These nodes represent assignment. The left-hand side is the first
  9101. operand; the right-hand side is the second operand. The left-hand
  9102. side will be a 'VAR_DECL', 'INDIRECT_REF', 'COMPONENT_REF', or
  9103. other lvalue.
  9104. These nodes are used to represent not only assignment with '=' but
  9105. also compound assignments (like '+='), by reduction to '='
  9106. assignment. In other words, the representation for 'i += 3' looks
  9107. just like that for 'i = i + 3'.
  9108. 'INIT_EXPR'
  9109. These nodes are just like 'MODIFY_EXPR', but are used only when a
  9110. variable is initialized, rather than assigned to subsequently.
  9111. This means that we can assume that the target of the initialization
  9112. is not used in computing its own value; any reference to the lhs in
  9113. computing the rhs is undefined.
  9114. 'COMPOUND_EXPR'
  9115. These nodes represent comma-expressions. The first operand is an
  9116. expression whose value is computed and thrown away prior to the
  9117. evaluation of the second operand. The value of the entire
  9118. expression is the value of the second operand.
  9119. 'COND_EXPR'
  9120. These nodes represent '?:' expressions. The first operand is of
  9121. boolean or integral type. If it evaluates to a nonzero value, the
  9122. second operand should be evaluated, and returned as the value of
  9123. the expression. Otherwise, the third operand is evaluated, and
  9124. returned as the value of the expression.
  9125. The second operand must have the same type as the entire
  9126. expression, unless it unconditionally throws an exception or calls
  9127. a noreturn function, in which case it should have void type. The
  9128. same constraints apply to the third operand. This allows array
  9129. bounds checks to be represented conveniently as '(i >= 0 && i < 10)
  9130. ? i : abort()'.
  9131. As a GNU extension, the C language front-ends allow the second
  9132. operand of the '?:' operator may be omitted in the source. For
  9133. example, 'x ? : 3' is equivalent to 'x ? x : 3', assuming that 'x'
  9134. is an expression without side effects. In the tree representation,
  9135. however, the second operand is always present, possibly protected
  9136. by 'SAVE_EXPR' if the first argument does cause side effects.
  9137. 'CALL_EXPR'
  9138. These nodes are used to represent calls to functions, including
  9139. non-static member functions. 'CALL_EXPR's are implemented as
  9140. expression nodes with a variable number of operands. Rather than
  9141. using 'TREE_OPERAND' to extract them, it is preferable to use the
  9142. specialized accessor macros and functions that operate specifically
  9143. on 'CALL_EXPR' nodes.
  9144. 'CALL_EXPR_FN' returns a pointer to the function to call; it is
  9145. always an expression whose type is a 'POINTER_TYPE'.
  9146. The number of arguments to the call is returned by
  9147. 'call_expr_nargs', while the arguments themselves can be accessed
  9148. with the 'CALL_EXPR_ARG' macro. The arguments are zero-indexed and
  9149. numbered left-to-right. You can iterate over the arguments using
  9150. 'FOR_EACH_CALL_EXPR_ARG', as in:
  9151. tree call, arg;
  9152. call_expr_arg_iterator iter;
  9153. FOR_EACH_CALL_EXPR_ARG (arg, iter, call)
  9154. /* arg is bound to successive arguments of call. */
  9155. ...;
  9156. For non-static member functions, there will be an operand
  9157. corresponding to the 'this' pointer. There will always be
  9158. expressions corresponding to all of the arguments, even if the
  9159. function is declared with default arguments and some arguments are
  9160. not explicitly provided at the call sites.
  9161. 'CALL_EXPR's also have a 'CALL_EXPR_STATIC_CHAIN' operand that is
  9162. used to implement nested functions. This operand is otherwise
  9163. null.
  9164. 'CLEANUP_POINT_EXPR'
  9165. These nodes represent full-expressions. The single operand is an
  9166. expression to evaluate. Any destructor calls engendered by the
  9167. creation of temporaries during the evaluation of that expression
  9168. should be performed immediately after the expression is evaluated.
  9169. 'CONSTRUCTOR'
  9170. These nodes represent the brace-enclosed initializers for a
  9171. structure or an array. They contain a sequence of component values
  9172. made out of a vector of constructor_elt, which is a ('INDEX',
  9173. 'VALUE') pair.
  9174. If the 'TREE_TYPE' of the 'CONSTRUCTOR' is a 'RECORD_TYPE',
  9175. 'UNION_TYPE' or 'QUAL_UNION_TYPE' then the 'INDEX' of each node in
  9176. the sequence will be a 'FIELD_DECL' and the 'VALUE' will be the
  9177. expression used to initialize that field.
  9178. If the 'TREE_TYPE' of the 'CONSTRUCTOR' is an 'ARRAY_TYPE', then
  9179. the 'INDEX' of each node in the sequence will be an 'INTEGER_CST'
  9180. or a 'RANGE_EXPR' of two 'INTEGER_CST's. A single 'INTEGER_CST'
  9181. indicates which element of the array is being assigned to. A
  9182. 'RANGE_EXPR' indicates an inclusive range of elements to
  9183. initialize. In both cases the 'VALUE' is the corresponding
  9184. initializer. It is re-evaluated for each element of a
  9185. 'RANGE_EXPR'. If the 'INDEX' is 'NULL_TREE', then the initializer
  9186. is for the next available array element.
  9187. In the front end, you should not depend on the fields appearing in
  9188. any particular order. However, in the middle end, fields must
  9189. appear in declaration order. You should not assume that all fields
  9190. will be represented. Unrepresented fields will be cleared
  9191. (zeroed), unless the CONSTRUCTOR_NO_CLEARING flag is set, in which
  9192. case their value becomes undefined.
  9193. 'COMPOUND_LITERAL_EXPR'
  9194. These nodes represent ISO C99 compound literals. The
  9195. 'COMPOUND_LITERAL_EXPR_DECL_EXPR' is a 'DECL_EXPR' containing an
  9196. anonymous 'VAR_DECL' for the unnamed object represented by the
  9197. compound literal; the 'DECL_INITIAL' of that 'VAR_DECL' is a
  9198. 'CONSTRUCTOR' representing the brace-enclosed list of initializers
  9199. in the compound literal. That anonymous 'VAR_DECL' can also be
  9200. accessed directly by the 'COMPOUND_LITERAL_EXPR_DECL' macro.
  9201. 'SAVE_EXPR'
  9202. A 'SAVE_EXPR' represents an expression (possibly involving side
  9203. effects) that is used more than once. The side effects should
  9204. occur only the first time the expression is evaluated. Subsequent
  9205. uses should just reuse the computed value. The first operand to
  9206. the 'SAVE_EXPR' is the expression to evaluate. The side effects
  9207. should be executed where the 'SAVE_EXPR' is first encountered in a
  9208. depth-first preorder traversal of the expression tree.
  9209. 'TARGET_EXPR'
  9210. A 'TARGET_EXPR' represents a temporary object. The first operand
  9211. is a 'VAR_DECL' for the temporary variable. The second operand is
  9212. the initializer for the temporary. The initializer is evaluated
  9213. and, if non-void, copied (bitwise) into the temporary. If the
  9214. initializer is void, that means that it will perform the
  9215. initialization itself.
  9216. Often, a 'TARGET_EXPR' occurs on the right-hand side of an
  9217. assignment, or as the second operand to a comma-expression which is
  9218. itself the right-hand side of an assignment, etc. In this case, we
  9219. say that the 'TARGET_EXPR' is "normal"; otherwise, we say it is
  9220. "orphaned". For a normal 'TARGET_EXPR' the temporary variable
  9221. should be treated as an alias for the left-hand side of the
  9222. assignment, rather than as a new temporary variable.
  9223. The third operand to the 'TARGET_EXPR', if present, is a
  9224. cleanup-expression (i.e., destructor call) for the temporary. If
  9225. this expression is orphaned, then this expression must be executed
  9226. when the statement containing this expression is complete. These
  9227. cleanups must always be executed in the order opposite to that in
  9228. which they were encountered. Note that if a temporary is created
  9229. on one branch of a conditional operator (i.e., in the second or
  9230. third operand to a 'COND_EXPR'), the cleanup must be run only if
  9231. that branch is actually executed.
  9232. 'VA_ARG_EXPR'
  9233. This node is used to implement support for the C/C++ variable
  9234. argument-list mechanism. It represents expressions like 'va_arg
  9235. (ap, type)'. Its 'TREE_TYPE' yields the tree representation for
  9236. 'type' and its sole argument yields the representation for 'ap'.
  9237. 'ANNOTATE_EXPR'
  9238. This node is used to attach markers to an expression. The first
  9239. operand is the annotated expression, the second is an 'INTEGER_CST'
  9240. with a value from 'enum annot_expr_kind', the third is an
  9241. 'INTEGER_CST'.
  9242. 
  9243. File: gccint.info, Node: Vectors, Prev: Unary and Binary Expressions, Up: Expression trees
  9244. 11.6.4 Vectors
  9245. --------------
  9246. 'VEC_DUPLICATE_EXPR'
  9247. This node has a single operand and represents a vector in which
  9248. every element is equal to that operand.
  9249. 'VEC_SERIES_EXPR'
  9250. This node represents a vector formed from a scalar base and step,
  9251. given as the first and second operands respectively. Element I of
  9252. the result is equal to 'BASE + I*STEP'.
  9253. This node is restricted to integral types, in order to avoid
  9254. specifying the rounding behavior for floating-point types.
  9255. 'VEC_LSHIFT_EXPR'
  9256. 'VEC_RSHIFT_EXPR'
  9257. These nodes represent whole vector left and right shifts,
  9258. respectively. The first operand is the vector to shift; it will
  9259. always be of vector type. The second operand is an expression for
  9260. the number of bits by which to shift. Note that the result is
  9261. undefined if the second operand is larger than or equal to the
  9262. first operand's type size.
  9263. 'VEC_WIDEN_MULT_HI_EXPR'
  9264. 'VEC_WIDEN_MULT_LO_EXPR'
  9265. These nodes represent widening vector multiplication of the high
  9266. and low parts of the two input vectors, respectively. Their
  9267. operands are vectors that contain the same number of elements ('N')
  9268. of the same integral type. The result is a vector that contains
  9269. half as many elements, of an integral type whose size is twice as
  9270. wide. In the case of 'VEC_WIDEN_MULT_HI_EXPR' the high 'N/2'
  9271. elements of the two vector are multiplied to produce the vector of
  9272. 'N/2' products. In the case of 'VEC_WIDEN_MULT_LO_EXPR' the low
  9273. 'N/2' elements of the two vector are multiplied to produce the
  9274. vector of 'N/2' products.
  9275. 'VEC_WIDEN_PLUS_HI_EXPR'
  9276. 'VEC_WIDEN_PLUS_LO_EXPR'
  9277. These nodes represent widening vector addition of the high and low
  9278. parts of the two input vectors, respectively. Their operands are
  9279. vectors that contain the same number of elements ('N') of the same
  9280. integral type. The result is a vector that contains half as many
  9281. elements, of an integral type whose size is twice as wide. In the
  9282. case of 'VEC_WIDEN_PLUS_HI_EXPR' the high 'N/2' elements of the two
  9283. vectors are added to produce the vector of 'N/2' products. In the
  9284. case of 'VEC_WIDEN_PLUS_LO_EXPR' the low 'N/2' elements of the two
  9285. vectors are added to produce the vector of 'N/2' products.
  9286. 'VEC_WIDEN_MINUS_HI_EXPR'
  9287. 'VEC_WIDEN_MINUS_LO_EXPR'
  9288. These nodes represent widening vector subtraction of the high and
  9289. low parts of the two input vectors, respectively. Their operands
  9290. are vectors that contain the same number of elements ('N') of the
  9291. same integral type. The high/low elements of the second vector are
  9292. subtracted from the high/low elements of the first. The result is
  9293. a vector that contains half as many elements, of an integral type
  9294. whose size is twice as wide. In the case of
  9295. 'VEC_WIDEN_MINUS_HI_EXPR' the high 'N/2' elements of the second
  9296. vector are subtracted from the high 'N/2' of the first to produce
  9297. the vector of 'N/2' products. In the case of
  9298. 'VEC_WIDEN_MINUS_LO_EXPR' the low 'N/2' elements of the second
  9299. vector are subtracted from the low 'N/2' of the first to produce
  9300. the vector of 'N/2' products.
  9301. 'VEC_UNPACK_HI_EXPR'
  9302. 'VEC_UNPACK_LO_EXPR'
  9303. These nodes represent unpacking of the high and low parts of the
  9304. input vector, respectively. The single operand is a vector that
  9305. contains 'N' elements of the same integral or floating point type.
  9306. The result is a vector that contains half as many elements, of an
  9307. integral or floating point type whose size is twice as wide. In
  9308. the case of 'VEC_UNPACK_HI_EXPR' the high 'N/2' elements of the
  9309. vector are extracted and widened (promoted). In the case of
  9310. 'VEC_UNPACK_LO_EXPR' the low 'N/2' elements of the vector are
  9311. extracted and widened (promoted).
  9312. 'VEC_UNPACK_FLOAT_HI_EXPR'
  9313. 'VEC_UNPACK_FLOAT_LO_EXPR'
  9314. These nodes represent unpacking of the high and low parts of the
  9315. input vector, where the values are converted from fixed point to
  9316. floating point. The single operand is a vector that contains 'N'
  9317. elements of the same integral type. The result is a vector that
  9318. contains half as many elements of a floating point type whose size
  9319. is twice as wide. In the case of 'VEC_UNPACK_FLOAT_HI_EXPR' the
  9320. high 'N/2' elements of the vector are extracted, converted and
  9321. widened. In the case of 'VEC_UNPACK_FLOAT_LO_EXPR' the low 'N/2'
  9322. elements of the vector are extracted, converted and widened.
  9323. 'VEC_UNPACK_FIX_TRUNC_HI_EXPR'
  9324. 'VEC_UNPACK_FIX_TRUNC_LO_EXPR'
  9325. These nodes represent unpacking of the high and low parts of the
  9326. input vector, where the values are truncated from floating point to
  9327. fixed point. The single operand is a vector that contains 'N'
  9328. elements of the same floating point type. The result is a vector
  9329. that contains half as many elements of an integral type whose size
  9330. is twice as wide. In the case of 'VEC_UNPACK_FIX_TRUNC_HI_EXPR'
  9331. the high 'N/2' elements of the vector are extracted and converted
  9332. with truncation. In the case of 'VEC_UNPACK_FIX_TRUNC_LO_EXPR' the
  9333. low 'N/2' elements of the vector are extracted and converted with
  9334. truncation.
  9335. 'VEC_PACK_TRUNC_EXPR'
  9336. This node represents packing of truncated elements of the two input
  9337. vectors into the output vector. Input operands are vectors that
  9338. contain the same number of elements of the same integral or
  9339. floating point type. The result is a vector that contains twice as
  9340. many elements of an integral or floating point type whose size is
  9341. half as wide. The elements of the two vectors are demoted and
  9342. merged (concatenated) to form the output vector.
  9343. 'VEC_PACK_SAT_EXPR'
  9344. This node represents packing of elements of the two input vectors
  9345. into the output vector using saturation. Input operands are
  9346. vectors that contain the same number of elements of the same
  9347. integral type. The result is a vector that contains twice as many
  9348. elements of an integral type whose size is half as wide. The
  9349. elements of the two vectors are demoted and merged (concatenated)
  9350. to form the output vector.
  9351. 'VEC_PACK_FIX_TRUNC_EXPR'
  9352. This node represents packing of elements of the two input vectors
  9353. into the output vector, where the values are converted from
  9354. floating point to fixed point. Input operands are vectors that
  9355. contain the same number of elements of a floating point type. The
  9356. result is a vector that contains twice as many elements of an
  9357. integral type whose size is half as wide. The elements of the two
  9358. vectors are merged (concatenated) to form the output vector.
  9359. 'VEC_PACK_FLOAT_EXPR'
  9360. This node represents packing of elements of the two input vectors
  9361. into the output vector, where the values are converted from fixed
  9362. point to floating point. Input operands are vectors that contain
  9363. the same number of elements of an integral type. The result is a
  9364. vector that contains twice as many elements of floating point type
  9365. whose size is half as wide. The elements of the two vectors are
  9366. merged (concatenated) to form the output vector.
  9367. 'VEC_COND_EXPR'
  9368. These nodes represent '?:' expressions. The three operands must be
  9369. vectors of the same size and number of elements. The second and
  9370. third operands must have the same type as the entire expression.
  9371. The first operand is of signed integral vector type. If an element
  9372. of the first operand evaluates to a zero value, the corresponding
  9373. element of the result is taken from the third operand. If it
  9374. evaluates to a minus one value, it is taken from the second
  9375. operand. It should never evaluate to any other value currently,
  9376. but optimizations should not rely on that property. In contrast
  9377. with a 'COND_EXPR', all operands are always evaluated.
  9378. 'SAD_EXPR'
  9379. This node represents the Sum of Absolute Differences operation.
  9380. The three operands must be vectors of integral types. The first
  9381. and second operand must have the same type. The size of the vector
  9382. element of the third operand must be at lease twice of the size of
  9383. the vector element of the first and second one. The SAD is
  9384. calculated between the first and second operands, added to the
  9385. third operand, and returned.
  9386. 
  9387. File: gccint.info, Node: Statements, Next: Functions, Prev: Expression trees, Up: GENERIC
  9388. 11.7 Statements
  9389. ===============
  9390. Most statements in GIMPLE are assignment statements, represented by
  9391. 'GIMPLE_ASSIGN'. No other C expressions can appear at statement level;
  9392. a reference to a volatile object is converted into a 'GIMPLE_ASSIGN'.
  9393. There are also several varieties of complex statements.
  9394. * Menu:
  9395. * Basic Statements::
  9396. * Blocks::
  9397. * Statement Sequences::
  9398. * Empty Statements::
  9399. * Jumps::
  9400. * Cleanups::
  9401. * OpenMP::
  9402. * OpenACC::
  9403. 
  9404. File: gccint.info, Node: Basic Statements, Next: Blocks, Up: Statements
  9405. 11.7.1 Basic Statements
  9406. -----------------------
  9407. 'ASM_EXPR'
  9408. Used to represent an inline assembly statement. For an inline
  9409. assembly statement like:
  9410. asm ("mov x, y");
  9411. The 'ASM_STRING' macro will return a 'STRING_CST' node for '"mov x,
  9412. y"'. If the original statement made use of the extended-assembly
  9413. syntax, then 'ASM_OUTPUTS', 'ASM_INPUTS', and 'ASM_CLOBBERS' will
  9414. be the outputs, inputs, and clobbers for the statement, represented
  9415. as 'STRING_CST' nodes. The extended-assembly syntax looks like:
  9416. asm ("fsinx %1,%0" : "=f" (result) : "f" (angle));
  9417. The first string is the 'ASM_STRING', containing the instruction
  9418. template. The next two strings are the output and inputs,
  9419. respectively; this statement has no clobbers. As this example
  9420. indicates, "plain" assembly statements are merely a special case of
  9421. extended assembly statements; they have no cv-qualifiers, outputs,
  9422. inputs, or clobbers. All of the strings will be 'NUL'-terminated,
  9423. and will contain no embedded 'NUL'-characters.
  9424. If the assembly statement is declared 'volatile', or if the
  9425. statement was not an extended assembly statement, and is therefore
  9426. implicitly volatile, then the predicate 'ASM_VOLATILE_P' will hold
  9427. of the 'ASM_EXPR'.
  9428. 'DECL_EXPR'
  9429. Used to represent a local declaration. The 'DECL_EXPR_DECL' macro
  9430. can be used to obtain the entity declared. This declaration may be
  9431. a 'LABEL_DECL', indicating that the label declared is a local
  9432. label. (As an extension, GCC allows the declaration of labels with
  9433. scope.) In C, this declaration may be a 'FUNCTION_DECL',
  9434. indicating the use of the GCC nested function extension. For more
  9435. information, *note Functions::.
  9436. 'LABEL_EXPR'
  9437. Used to represent a label. The 'LABEL_DECL' declared by this
  9438. statement can be obtained with the 'LABEL_EXPR_LABEL' macro. The
  9439. 'IDENTIFIER_NODE' giving the name of the label can be obtained from
  9440. the 'LABEL_DECL' with 'DECL_NAME'.
  9441. 'GOTO_EXPR'
  9442. Used to represent a 'goto' statement. The 'GOTO_DESTINATION' will
  9443. usually be a 'LABEL_DECL'. However, if the "computed goto"
  9444. extension has been used, the 'GOTO_DESTINATION' will be an
  9445. arbitrary expression indicating the destination. This expression
  9446. will always have pointer type.
  9447. 'RETURN_EXPR'
  9448. Used to represent a 'return' statement. Operand 0 represents the
  9449. value to return. It should either be the 'RESULT_DECL' for the
  9450. containing function, or a 'MODIFY_EXPR' or 'INIT_EXPR' setting the
  9451. function's 'RESULT_DECL'. It will be 'NULL_TREE' if the statement
  9452. was just
  9453. return;
  9454. 'LOOP_EXPR'
  9455. These nodes represent "infinite" loops. The 'LOOP_EXPR_BODY'
  9456. represents the body of the loop. It should be executed forever,
  9457. unless an 'EXIT_EXPR' is encountered.
  9458. 'EXIT_EXPR'
  9459. These nodes represent conditional exits from the nearest enclosing
  9460. 'LOOP_EXPR'. The single operand is the condition; if it is
  9461. nonzero, then the loop should be exited. An 'EXIT_EXPR' will only
  9462. appear within a 'LOOP_EXPR'.
  9463. 'SWITCH_EXPR'
  9464. Used to represent a 'switch' statement. The 'SWITCH_COND' is the
  9465. expression on which the switch is occurring. The 'SWITCH_BODY' is
  9466. the body of the switch statement. 'SWITCH_ALL_CASES_P' is true if
  9467. the switch includes a default label or the case label ranges cover
  9468. all possible values of the condition expression.
  9469. Note that 'TREE_TYPE' for a 'SWITCH_EXPR' represents the original
  9470. type of switch expression as given in the source, before any
  9471. compiler conversions, instead of the type of the switch expression
  9472. itself (which is not meaningful).
  9473. 'CASE_LABEL_EXPR'
  9474. Use to represent a 'case' label, range of 'case' labels, or a
  9475. 'default' label. If 'CASE_LOW' is 'NULL_TREE', then this is a
  9476. 'default' label. Otherwise, if 'CASE_HIGH' is 'NULL_TREE', then
  9477. this is an ordinary 'case' label. In this case, 'CASE_LOW' is an
  9478. expression giving the value of the label. Both 'CASE_LOW' and
  9479. 'CASE_HIGH' are 'INTEGER_CST' nodes. These values will have the
  9480. same type as the condition expression in the switch statement.
  9481. Otherwise, if both 'CASE_LOW' and 'CASE_HIGH' are defined, the
  9482. statement is a range of case labels. Such statements originate
  9483. with the extension that allows users to write things of the form:
  9484. case 2 ... 5:
  9485. The first value will be 'CASE_LOW', while the second will be
  9486. 'CASE_HIGH'.
  9487. 'DEBUG_BEGIN_STMT'
  9488. Marks the beginning of a source statement, for purposes of debug
  9489. information generation.
  9490. 
  9491. File: gccint.info, Node: Blocks, Next: Statement Sequences, Prev: Basic Statements, Up: Statements
  9492. 11.7.2 Blocks
  9493. -------------
  9494. Block scopes and the variables they declare in GENERIC are expressed
  9495. using the 'BIND_EXPR' code, which in previous versions of GCC was
  9496. primarily used for the C statement-expression extension.
  9497. Variables in a block are collected into 'BIND_EXPR_VARS' in declaration
  9498. order through their 'TREE_CHAIN' field. Any runtime initialization is
  9499. moved out of 'DECL_INITIAL' and into a statement in the controlled
  9500. block. When gimplifying from C or C++, this initialization replaces the
  9501. 'DECL_STMT'. These variables will never require cleanups. The scope of
  9502. these variables is just the body
  9503. Variable-length arrays (VLAs) complicate this process, as their size
  9504. often refers to variables initialized earlier in the block and their
  9505. initialization involves an explicit stack allocation. To handle this,
  9506. we add an indirection and replace them with a pointer to stack space
  9507. allocated by means of 'alloca'. In most cases, we also arrange for this
  9508. space to be reclaimed when the enclosing 'BIND_EXPR' is exited, the
  9509. exception to this being when there is an explicit call to 'alloca' in
  9510. the source code, in which case the stack is left depressed on exit of
  9511. the 'BIND_EXPR'.
  9512. A C++ program will usually contain more 'BIND_EXPR's than there are
  9513. syntactic blocks in the source code, since several C++ constructs have
  9514. implicit scopes associated with them. On the other hand, although the
  9515. C++ front end uses pseudo-scopes to handle cleanups for objects with
  9516. destructors, these don't translate into the GIMPLE form; multiple
  9517. declarations at the same level use the same 'BIND_EXPR'.
  9518. 
  9519. File: gccint.info, Node: Statement Sequences, Next: Empty Statements, Prev: Blocks, Up: Statements
  9520. 11.7.3 Statement Sequences
  9521. --------------------------
  9522. Multiple statements at the same nesting level are collected into a
  9523. 'STATEMENT_LIST'. Statement lists are modified and traversed using the
  9524. interface in 'tree-iterator.h'.
  9525. 
  9526. File: gccint.info, Node: Empty Statements, Next: Jumps, Prev: Statement Sequences, Up: Statements
  9527. 11.7.4 Empty Statements
  9528. -----------------------
  9529. Whenever possible, statements with no effect are discarded. But if they
  9530. are nested within another construct which cannot be discarded for some
  9531. reason, they are instead replaced with an empty statement, generated by
  9532. 'build_empty_stmt'. Initially, all empty statements were shared, after
  9533. the pattern of the Java front end, but this caused a lot of trouble in
  9534. practice.
  9535. An empty statement is represented as '(void)0'.
  9536. 
  9537. File: gccint.info, Node: Jumps, Next: Cleanups, Prev: Empty Statements, Up: Statements
  9538. 11.7.5 Jumps
  9539. ------------
  9540. Other jumps are expressed by either 'GOTO_EXPR' or 'RETURN_EXPR'.
  9541. The operand of a 'GOTO_EXPR' must be either a label or a variable
  9542. containing the address to jump to.
  9543. The operand of a 'RETURN_EXPR' is either 'NULL_TREE', 'RESULT_DECL', or
  9544. a 'MODIFY_EXPR' which sets the return value. It would be nice to move
  9545. the 'MODIFY_EXPR' into a separate statement, but the special return
  9546. semantics in 'expand_return' make that difficult. It may still happen
  9547. in the future, perhaps by moving most of that logic into
  9548. 'expand_assignment'.
  9549. 
  9550. File: gccint.info, Node: Cleanups, Next: OpenMP, Prev: Jumps, Up: Statements
  9551. 11.7.6 Cleanups
  9552. ---------------
  9553. Destructors for local C++ objects and similar dynamic cleanups are
  9554. represented in GIMPLE by a 'TRY_FINALLY_EXPR'. 'TRY_FINALLY_EXPR' has
  9555. two operands, both of which are a sequence of statements to execute.
  9556. The first sequence is executed. When it completes the second sequence
  9557. is executed.
  9558. The first sequence may complete in the following ways:
  9559. 1. Execute the last statement in the sequence and fall off the end.
  9560. 2. Execute a goto statement ('GOTO_EXPR') to an ordinary label outside
  9561. the sequence.
  9562. 3. Execute a return statement ('RETURN_EXPR').
  9563. 4. Throw an exception. This is currently not explicitly represented
  9564. in GIMPLE.
  9565. The second sequence is not executed if the first sequence completes by
  9566. calling 'setjmp' or 'exit' or any other function that does not return.
  9567. The second sequence is also not executed if the first sequence completes
  9568. via a non-local goto or a computed goto (in general the compiler does
  9569. not know whether such a goto statement exits the first sequence or not,
  9570. so we assume that it doesn't).
  9571. After the second sequence is executed, if it completes normally by
  9572. falling off the end, execution continues wherever the first sequence
  9573. would have continued, by falling off the end, or doing a goto, etc.
  9574. If the second sequence is an 'EH_ELSE_EXPR' selector, then the sequence
  9575. in its first operand is used when the first sequence completes normally,
  9576. and that in its second operand is used for exceptional cleanups, i.e.,
  9577. when an exception propagates out of the first sequence.
  9578. 'TRY_FINALLY_EXPR' complicates the flow graph, since the cleanup needs
  9579. to appear on every edge out of the controlled block; this reduces the
  9580. freedom to move code across these edges. Therefore, the EH lowering
  9581. pass which runs before most of the optimization passes eliminates these
  9582. expressions by explicitly adding the cleanup to each edge. Rethrowing
  9583. the exception is represented using 'RESX_EXPR'.
  9584. 
  9585. File: gccint.info, Node: OpenMP, Next: OpenACC, Prev: Cleanups, Up: Statements
  9586. 11.7.7 OpenMP
  9587. -------------
  9588. All the statements starting with 'OMP_' represent directives and clauses
  9589. used by the OpenMP API <https://www.openmp.org>.
  9590. 'OMP_PARALLEL'
  9591. Represents '#pragma omp parallel [clause1 ... clauseN]'. It has
  9592. four operands:
  9593. Operand 'OMP_PARALLEL_BODY' is valid while in GENERIC and High
  9594. GIMPLE forms. It contains the body of code to be executed by all
  9595. the threads. During GIMPLE lowering, this operand becomes 'NULL'
  9596. and the body is emitted linearly after 'OMP_PARALLEL'.
  9597. Operand 'OMP_PARALLEL_CLAUSES' is the list of clauses associated
  9598. with the directive.
  9599. Operand 'OMP_PARALLEL_FN' is created by 'pass_lower_omp', it
  9600. contains the 'FUNCTION_DECL' for the function that will contain the
  9601. body of the parallel region.
  9602. Operand 'OMP_PARALLEL_DATA_ARG' is also created by
  9603. 'pass_lower_omp'. If there are shared variables to be communicated
  9604. to the children threads, this operand will contain the 'VAR_DECL'
  9605. that contains all the shared values and variables.
  9606. 'OMP_FOR'
  9607. Represents '#pragma omp for [clause1 ... clauseN]'. It has six
  9608. operands:
  9609. Operand 'OMP_FOR_BODY' contains the loop body.
  9610. Operand 'OMP_FOR_CLAUSES' is the list of clauses associated with
  9611. the directive.
  9612. Operand 'OMP_FOR_INIT' is the loop initialization code of the form
  9613. 'VAR = N1'.
  9614. Operand 'OMP_FOR_COND' is the loop conditional expression of the
  9615. form 'VAR {<,>,<=,>=} N2'.
  9616. Operand 'OMP_FOR_INCR' is the loop index increment of the form 'VAR
  9617. {+=,-=} INCR'.
  9618. Operand 'OMP_FOR_PRE_BODY' contains side effect code from operands
  9619. 'OMP_FOR_INIT', 'OMP_FOR_COND' and 'OMP_FOR_INC'. These side
  9620. effects are part of the 'OMP_FOR' block but must be evaluated
  9621. before the start of loop body.
  9622. The loop index variable 'VAR' must be a signed integer variable,
  9623. which is implicitly private to each thread. Bounds 'N1' and 'N2'
  9624. and the increment expression 'INCR' are required to be loop
  9625. invariant integer expressions that are evaluated without any
  9626. synchronization. The evaluation order, frequency of evaluation and
  9627. side effects are unspecified by the standard.
  9628. 'OMP_SECTIONS'
  9629. Represents '#pragma omp sections [clause1 ... clauseN]'.
  9630. Operand 'OMP_SECTIONS_BODY' contains the sections body, which in
  9631. turn contains a set of 'OMP_SECTION' nodes for each of the
  9632. concurrent sections delimited by '#pragma omp section'.
  9633. Operand 'OMP_SECTIONS_CLAUSES' is the list of clauses associated
  9634. with the directive.
  9635. 'OMP_SECTION'
  9636. Section delimiter for 'OMP_SECTIONS'.
  9637. 'OMP_SINGLE'
  9638. Represents '#pragma omp single'.
  9639. Operand 'OMP_SINGLE_BODY' contains the body of code to be executed
  9640. by a single thread.
  9641. Operand 'OMP_SINGLE_CLAUSES' is the list of clauses associated with
  9642. the directive.
  9643. 'OMP_MASTER'
  9644. Represents '#pragma omp master'.
  9645. Operand 'OMP_MASTER_BODY' contains the body of code to be executed
  9646. by the master thread.
  9647. 'OMP_ORDERED'
  9648. Represents '#pragma omp ordered'.
  9649. Operand 'OMP_ORDERED_BODY' contains the body of code to be executed
  9650. in the sequential order dictated by the loop index variable.
  9651. 'OMP_CRITICAL'
  9652. Represents '#pragma omp critical [name]'.
  9653. Operand 'OMP_CRITICAL_BODY' is the critical section.
  9654. Operand 'OMP_CRITICAL_NAME' is an optional identifier to label the
  9655. critical section.
  9656. 'OMP_RETURN'
  9657. This does not represent any OpenMP directive, it is an artificial
  9658. marker to indicate the end of the body of an OpenMP. It is used by
  9659. the flow graph ('tree-cfg.c') and OpenMP region building code
  9660. ('omp-low.c').
  9661. 'OMP_CONTINUE'
  9662. Similarly, this instruction does not represent an OpenMP directive,
  9663. it is used by 'OMP_FOR' (and similar codes) as well as
  9664. 'OMP_SECTIONS' to mark the place where the code needs to loop to
  9665. the next iteration, or the next section, respectively.
  9666. In some cases, 'OMP_CONTINUE' is placed right before 'OMP_RETURN'.
  9667. But if there are cleanups that need to occur right after the
  9668. looping body, it will be emitted between 'OMP_CONTINUE' and
  9669. 'OMP_RETURN'.
  9670. 'OMP_ATOMIC'
  9671. Represents '#pragma omp atomic'.
  9672. Operand 0 is the address at which the atomic operation is to be
  9673. performed.
  9674. Operand 1 is the expression to evaluate. The gimplifier tries
  9675. three alternative code generation strategies. Whenever possible,
  9676. an atomic update built-in is used. If that fails, a
  9677. compare-and-swap loop is attempted. If that also fails, a regular
  9678. critical section around the expression is used.
  9679. 'OMP_CLAUSE'
  9680. Represents clauses associated with one of the 'OMP_' directives.
  9681. Clauses are represented by separate subcodes defined in 'tree.h'.
  9682. Clauses codes can be one of: 'OMP_CLAUSE_PRIVATE',
  9683. 'OMP_CLAUSE_SHARED', 'OMP_CLAUSE_FIRSTPRIVATE',
  9684. 'OMP_CLAUSE_LASTPRIVATE', 'OMP_CLAUSE_COPYIN',
  9685. 'OMP_CLAUSE_COPYPRIVATE', 'OMP_CLAUSE_IF',
  9686. 'OMP_CLAUSE_NUM_THREADS', 'OMP_CLAUSE_SCHEDULE',
  9687. 'OMP_CLAUSE_NOWAIT', 'OMP_CLAUSE_ORDERED', 'OMP_CLAUSE_DEFAULT',
  9688. 'OMP_CLAUSE_REDUCTION', 'OMP_CLAUSE_COLLAPSE', 'OMP_CLAUSE_UNTIED',
  9689. 'OMP_CLAUSE_FINAL', and 'OMP_CLAUSE_MERGEABLE'. Each code
  9690. represents the corresponding OpenMP clause.
  9691. Clauses associated with the same directive are chained together via
  9692. 'OMP_CLAUSE_CHAIN'. Those clauses that accept a list of variables
  9693. are restricted to exactly one, accessed with 'OMP_CLAUSE_VAR'.
  9694. Therefore, multiple variables under the same clause 'C' need to be
  9695. represented as multiple 'C' clauses chained together. This
  9696. facilitates adding new clauses during compilation.
  9697. 
  9698. File: gccint.info, Node: OpenACC, Prev: OpenMP, Up: Statements
  9699. 11.7.8 OpenACC
  9700. --------------
  9701. All the statements starting with 'OACC_' represent directives and
  9702. clauses used by the OpenACC API <https://www.openacc.org>.
  9703. 'OACC_CACHE'
  9704. Represents '#pragma acc cache (var ...)'.
  9705. 'OACC_DATA'
  9706. Represents '#pragma acc data [clause1 ... clauseN]'.
  9707. 'OACC_DECLARE'
  9708. Represents '#pragma acc declare [clause1 ... clauseN]'.
  9709. 'OACC_ENTER_DATA'
  9710. Represents '#pragma acc enter data [clause1 ... clauseN]'.
  9711. 'OACC_EXIT_DATA'
  9712. Represents '#pragma acc exit data [clause1 ... clauseN]'.
  9713. 'OACC_HOST_DATA'
  9714. Represents '#pragma acc host_data [clause1 ... clauseN]'.
  9715. 'OACC_KERNELS'
  9716. Represents '#pragma acc kernels [clause1 ... clauseN]'.
  9717. 'OACC_LOOP'
  9718. Represents '#pragma acc loop [clause1 ... clauseN]'.
  9719. See the description of the 'OMP_FOR' code.
  9720. 'OACC_PARALLEL'
  9721. Represents '#pragma acc parallel [clause1 ... clauseN]'.
  9722. 'OACC_SERIAL'
  9723. Represents '#pragma acc serial [clause1 ... clauseN]'.
  9724. 'OACC_UPDATE'
  9725. Represents '#pragma acc update [clause1 ... clauseN]'.
  9726. 
  9727. File: gccint.info, Node: Functions, Next: Language-dependent trees, Prev: Statements, Up: GENERIC
  9728. 11.8 Functions
  9729. ==============
  9730. A function is represented by a 'FUNCTION_DECL' node. It stores the
  9731. basic pieces of the function such as body, parameters, and return type
  9732. as well as information on the surrounding context, visibility, and
  9733. linkage.
  9734. * Menu:
  9735. * Function Basics:: Function names, body, and parameters.
  9736. * Function Properties:: Context, linkage, etc.
  9737. 
  9738. File: gccint.info, Node: Function Basics, Next: Function Properties, Up: Functions
  9739. 11.8.1 Function Basics
  9740. ----------------------
  9741. A function has four core parts: the name, the parameters, the result,
  9742. and the body. The following macros and functions access these parts of
  9743. a 'FUNCTION_DECL' as well as other basic features:
  9744. 'DECL_NAME'
  9745. This macro returns the unqualified name of the function, as an
  9746. 'IDENTIFIER_NODE'. For an instantiation of a function template,
  9747. the 'DECL_NAME' is the unqualified name of the template, not
  9748. something like 'f<int>'. The value of 'DECL_NAME' is undefined
  9749. when used on a constructor, destructor, overloaded operator, or
  9750. type-conversion operator, or any function that is implicitly
  9751. generated by the compiler. See below for macros that can be used
  9752. to distinguish these cases.
  9753. 'DECL_ASSEMBLER_NAME'
  9754. This macro returns the mangled name of the function, also an
  9755. 'IDENTIFIER_NODE'. This name does not contain leading underscores
  9756. on systems that prefix all identifiers with underscores. The
  9757. mangled name is computed in the same way on all platforms; if
  9758. special processing is required to deal with the object file format
  9759. used on a particular platform, it is the responsibility of the back
  9760. end to perform those modifications. (Of course, the back end
  9761. should not modify 'DECL_ASSEMBLER_NAME' itself.)
  9762. Using 'DECL_ASSEMBLER_NAME' will cause additional memory to be
  9763. allocated (for the mangled name of the entity) so it should be used
  9764. only when emitting assembly code. It should not be used within the
  9765. optimizers to determine whether or not two declarations are the
  9766. same, even though some of the existing optimizers do use it in that
  9767. way. These uses will be removed over time.
  9768. 'DECL_ARGUMENTS'
  9769. This macro returns the 'PARM_DECL' for the first argument to the
  9770. function. Subsequent 'PARM_DECL' nodes can be obtained by
  9771. following the 'TREE_CHAIN' links.
  9772. 'DECL_RESULT'
  9773. This macro returns the 'RESULT_DECL' for the function.
  9774. 'DECL_SAVED_TREE'
  9775. This macro returns the complete body of the function.
  9776. 'TREE_TYPE'
  9777. This macro returns the 'FUNCTION_TYPE' or 'METHOD_TYPE' for the
  9778. function.
  9779. 'DECL_INITIAL'
  9780. A function that has a definition in the current translation unit
  9781. will have a non-'NULL' 'DECL_INITIAL'. However, back ends should
  9782. not make use of the particular value given by 'DECL_INITIAL'.
  9783. It should contain a tree of 'BLOCK' nodes that mirrors the scopes
  9784. that variables are bound in the function. Each block contains a
  9785. list of decls declared in a basic block, a pointer to a chain of
  9786. blocks at the next lower scope level, then a pointer to the next
  9787. block at the same level and a backpointer to the parent 'BLOCK' or
  9788. 'FUNCTION_DECL'. So given a function as follows:
  9789. void foo()
  9790. {
  9791. int a;
  9792. {
  9793. int b;
  9794. }
  9795. int c;
  9796. }
  9797. you would get the following:
  9798. tree foo = FUNCTION_DECL;
  9799. tree decl_a = VAR_DECL;
  9800. tree decl_b = VAR_DECL;
  9801. tree decl_c = VAR_DECL;
  9802. tree block_a = BLOCK;
  9803. tree block_b = BLOCK;
  9804. tree block_c = BLOCK;
  9805. BLOCK_VARS(block_a) = decl_a;
  9806. BLOCK_SUBBLOCKS(block_a) = block_b;
  9807. BLOCK_CHAIN(block_a) = block_c;
  9808. BLOCK_SUPERCONTEXT(block_a) = foo;
  9809. BLOCK_VARS(block_b) = decl_b;
  9810. BLOCK_SUPERCONTEXT(block_b) = block_a;
  9811. BLOCK_VARS(block_c) = decl_c;
  9812. BLOCK_SUPERCONTEXT(block_c) = foo;
  9813. DECL_INITIAL(foo) = block_a;
  9814. 
  9815. File: gccint.info, Node: Function Properties, Prev: Function Basics, Up: Functions
  9816. 11.8.2 Function Properties
  9817. --------------------------
  9818. To determine the scope of a function, you can use the 'DECL_CONTEXT'
  9819. macro. This macro will return the class (either a 'RECORD_TYPE' or a
  9820. 'UNION_TYPE') or namespace (a 'NAMESPACE_DECL') of which the function is
  9821. a member. For a virtual function, this macro returns the class in which
  9822. the function was actually defined, not the base class in which the
  9823. virtual declaration occurred.
  9824. In C, the 'DECL_CONTEXT' for a function maybe another function. This
  9825. representation indicates that the GNU nested function extension is in
  9826. use. For details on the semantics of nested functions, see the GCC
  9827. Manual. The nested function can refer to local variables in its
  9828. containing function. Such references are not explicitly marked in the
  9829. tree structure; back ends must look at the 'DECL_CONTEXT' for the
  9830. referenced 'VAR_DECL'. If the 'DECL_CONTEXT' for the referenced
  9831. 'VAR_DECL' is not the same as the function currently being processed,
  9832. and neither 'DECL_EXTERNAL' nor 'TREE_STATIC' hold, then the reference
  9833. is to a local variable in a containing function, and the back end must
  9834. take appropriate action.
  9835. 'DECL_EXTERNAL'
  9836. This predicate holds if the function is undefined.
  9837. 'TREE_PUBLIC'
  9838. This predicate holds if the function has external linkage.
  9839. 'TREE_STATIC'
  9840. This predicate holds if the function has been defined.
  9841. 'TREE_THIS_VOLATILE'
  9842. This predicate holds if the function does not return normally.
  9843. 'TREE_READONLY'
  9844. This predicate holds if the function can only read its arguments.
  9845. 'DECL_PURE_P'
  9846. This predicate holds if the function can only read its arguments,
  9847. but may also read global memory.
  9848. 'DECL_VIRTUAL_P'
  9849. This predicate holds if the function is virtual.
  9850. 'DECL_ARTIFICIAL'
  9851. This macro holds if the function was implicitly generated by the
  9852. compiler, rather than explicitly declared. In addition to
  9853. implicitly generated class member functions, this macro holds for
  9854. the special functions created to implement static initialization
  9855. and destruction, to compute run-time type information, and so
  9856. forth.
  9857. 'DECL_FUNCTION_SPECIFIC_TARGET'
  9858. This macro returns a tree node that holds the target options that
  9859. are to be used to compile this particular function or 'NULL_TREE'
  9860. if the function is to be compiled with the target options specified
  9861. on the command line.
  9862. 'DECL_FUNCTION_SPECIFIC_OPTIMIZATION'
  9863. This macro returns a tree node that holds the optimization options
  9864. that are to be used to compile this particular function or
  9865. 'NULL_TREE' if the function is to be compiled with the optimization
  9866. options specified on the command line.
  9867. 
  9868. File: gccint.info, Node: Language-dependent trees, Next: C and C++ Trees, Prev: Functions, Up: GENERIC
  9869. 11.9 Language-dependent trees
  9870. =============================
  9871. Front ends may wish to keep some state associated with various GENERIC
  9872. trees while parsing. To support this, trees provide a set of flags that
  9873. may be used by the front end. They are accessed using
  9874. 'TREE_LANG_FLAG_n' where 'n' is currently 0 through 6.
  9875. If necessary, a front end can use some language-dependent tree codes in
  9876. its GENERIC representation, so long as it provides a hook for converting
  9877. them to GIMPLE and doesn't expect them to work with any (hypothetical)
  9878. optimizers that run before the conversion to GIMPLE. The intermediate
  9879. representation used while parsing C and C++ looks very little like
  9880. GENERIC, but the C and C++ gimplifier hooks are perfectly happy to take
  9881. it as input and spit out GIMPLE.
  9882. 
  9883. File: gccint.info, Node: C and C++ Trees, Prev: Language-dependent trees, Up: GENERIC
  9884. 11.10 C and C++ Trees
  9885. =====================
  9886. This section documents the internal representation used by GCC to
  9887. represent C and C++ source programs. When presented with a C or C++
  9888. source program, GCC parses the program, performs semantic analysis
  9889. (including the generation of error messages), and then produces the
  9890. internal representation described here. This representation contains a
  9891. complete representation for the entire translation unit provided as
  9892. input to the front end. This representation is then typically processed
  9893. by a code-generator in order to produce machine code, but could also be
  9894. used in the creation of source browsers, intelligent editors, automatic
  9895. documentation generators, interpreters, and any other programs needing
  9896. the ability to process C or C++ code.
  9897. This section explains the internal representation. In particular, it
  9898. documents the internal representation for C and C++ source constructs,
  9899. and the macros, functions, and variables that can be used to access
  9900. these constructs. The C++ representation is largely a superset of the
  9901. representation used in the C front end. There is only one construct
  9902. used in C that does not appear in the C++ front end and that is the GNU
  9903. "nested function" extension. Many of the macros documented here do not
  9904. apply in C because the corresponding language constructs do not appear
  9905. in C.
  9906. The C and C++ front ends generate a mix of GENERIC trees and ones
  9907. specific to C and C++. These language-specific trees are higher-level
  9908. constructs than the ones in GENERIC to make the parser's job easier.
  9909. This section describes those trees that aren't part of GENERIC as well
  9910. as aspects of GENERIC trees that are treated in a language-specific
  9911. manner.
  9912. If you are developing a "back end", be it is a code-generator or some
  9913. other tool, that uses this representation, you may occasionally find
  9914. that you need to ask questions not easily answered by the functions and
  9915. macros available here. If that situation occurs, it is quite likely
  9916. that GCC already supports the functionality you desire, but that the
  9917. interface is simply not documented here. In that case, you should ask
  9918. the GCC maintainers (via mail to <gcc@gcc.gnu.org>) about documenting
  9919. the functionality you require. Similarly, if you find yourself writing
  9920. functions that do not deal directly with your back end, but instead
  9921. might be useful to other people using the GCC front end, you should
  9922. submit your patches for inclusion in GCC.
  9923. * Menu:
  9924. * Types for C++:: Fundamental and aggregate types.
  9925. * Namespaces:: Namespaces.
  9926. * Classes:: Classes.
  9927. * Functions for C++:: Overloading and accessors for C++.
  9928. * Statements for C and C++:: Statements specific to C and C++.
  9929. * C++ Expressions:: From 'typeid' to 'throw'.
  9930. 
  9931. File: gccint.info, Node: Types for C++, Next: Namespaces, Up: C and C++ Trees
  9932. 11.10.1 Types for C++
  9933. ---------------------
  9934. In C++, an array type is not qualified; rather the type of the array
  9935. elements is qualified. This situation is reflected in the intermediate
  9936. representation. The macros described here will always examine the
  9937. qualification of the underlying element type when applied to an array
  9938. type. (If the element type is itself an array, then the recursion
  9939. continues until a non-array type is found, and the qualification of this
  9940. type is examined.) So, for example, 'CP_TYPE_CONST_P' will hold of the
  9941. type 'const int ()[7]', denoting an array of seven 'int's.
  9942. The following functions and macros deal with cv-qualification of types:
  9943. 'cp_type_quals'
  9944. This function returns the set of type qualifiers applied to this
  9945. type. This value is 'TYPE_UNQUALIFIED' if no qualifiers have been
  9946. applied. The 'TYPE_QUAL_CONST' bit is set if the type is
  9947. 'const'-qualified. The 'TYPE_QUAL_VOLATILE' bit is set if the type
  9948. is 'volatile'-qualified. The 'TYPE_QUAL_RESTRICT' bit is set if
  9949. the type is 'restrict'-qualified.
  9950. 'CP_TYPE_CONST_P'
  9951. This macro holds if the type is 'const'-qualified.
  9952. 'CP_TYPE_VOLATILE_P'
  9953. This macro holds if the type is 'volatile'-qualified.
  9954. 'CP_TYPE_RESTRICT_P'
  9955. This macro holds if the type is 'restrict'-qualified.
  9956. 'CP_TYPE_CONST_NON_VOLATILE_P'
  9957. This predicate holds for a type that is 'const'-qualified, but
  9958. _not_ 'volatile'-qualified; other cv-qualifiers are ignored as
  9959. well: only the 'const'-ness is tested.
  9960. A few other macros and functions are usable with all types:
  9961. 'TYPE_SIZE'
  9962. The number of bits required to represent the type, represented as
  9963. an 'INTEGER_CST'. For an incomplete type, 'TYPE_SIZE' will be
  9964. 'NULL_TREE'.
  9965. 'TYPE_ALIGN'
  9966. The alignment of the type, in bits, represented as an 'int'.
  9967. 'TYPE_NAME'
  9968. This macro returns a declaration (in the form of a 'TYPE_DECL') for
  9969. the type. (Note this macro does _not_ return an 'IDENTIFIER_NODE',
  9970. as you might expect, given its name!) You can look at the
  9971. 'DECL_NAME' of the 'TYPE_DECL' to obtain the actual name of the
  9972. type. The 'TYPE_NAME' will be 'NULL_TREE' for a type that is not a
  9973. built-in type, the result of a typedef, or a named class type.
  9974. 'CP_INTEGRAL_TYPE'
  9975. This predicate holds if the type is an integral type. Notice that
  9976. in C++, enumerations are _not_ integral types.
  9977. 'ARITHMETIC_TYPE_P'
  9978. This predicate holds if the type is an integral type (in the C++
  9979. sense) or a floating point type.
  9980. 'CLASS_TYPE_P'
  9981. This predicate holds for a class-type.
  9982. 'TYPE_BUILT_IN'
  9983. This predicate holds for a built-in type.
  9984. 'TYPE_PTRDATAMEM_P'
  9985. This predicate holds if the type is a pointer to data member.
  9986. 'TYPE_PTR_P'
  9987. This predicate holds if the type is a pointer type, and the pointee
  9988. is not a data member.
  9989. 'TYPE_PTRFN_P'
  9990. This predicate holds for a pointer to function type.
  9991. 'TYPE_PTROB_P'
  9992. This predicate holds for a pointer to object type. Note however
  9993. that it does not hold for the generic pointer to object type 'void
  9994. *'. You may use 'TYPE_PTROBV_P' to test for a pointer to object
  9995. type as well as 'void *'.
  9996. The table below describes types specific to C and C++ as well as
  9997. language-dependent info about GENERIC types.
  9998. 'POINTER_TYPE'
  9999. Used to represent pointer types, and pointer to data member types.
  10000. If 'TREE_TYPE' is a pointer to data member type, then
  10001. 'TYPE_PTRDATAMEM_P' will hold. For a pointer to data member type
  10002. of the form 'T X::*', 'TYPE_PTRMEM_CLASS_TYPE' will be the type
  10003. 'X', while 'TYPE_PTRMEM_POINTED_TO_TYPE' will be the type 'T'.
  10004. 'RECORD_TYPE'
  10005. Used to represent 'struct' and 'class' types in C and C++. If
  10006. 'TYPE_PTRMEMFUNC_P' holds, then this type is a pointer-to-member
  10007. type. In that case, the 'TYPE_PTRMEMFUNC_FN_TYPE' is a
  10008. 'POINTER_TYPE' pointing to a 'METHOD_TYPE'. The 'METHOD_TYPE' is
  10009. the type of a function pointed to by the pointer-to-member
  10010. function. If 'TYPE_PTRMEMFUNC_P' does not hold, this type is a
  10011. class type. For more information, *note Classes::.
  10012. 'UNKNOWN_TYPE'
  10013. This node is used to represent a type the knowledge of which is
  10014. insufficient for a sound processing.
  10015. 'TYPENAME_TYPE'
  10016. Used to represent a construct of the form 'typename T::A'. The
  10017. 'TYPE_CONTEXT' is 'T'; the 'TYPE_NAME' is an 'IDENTIFIER_NODE' for
  10018. 'A'. If the type is specified via a template-id, then
  10019. 'TYPENAME_TYPE_FULLNAME' yields a 'TEMPLATE_ID_EXPR'. The
  10020. 'TREE_TYPE' is non-'NULL' if the node is implicitly generated in
  10021. support for the implicit typename extension; in which case the
  10022. 'TREE_TYPE' is a type node for the base-class.
  10023. 'TYPEOF_TYPE'
  10024. Used to represent the '__typeof__' extension. The 'TYPE_FIELDS' is
  10025. the expression the type of which is being represented.
  10026. 
  10027. File: gccint.info, Node: Namespaces, Next: Classes, Prev: Types for C++, Up: C and C++ Trees
  10028. 11.10.2 Namespaces
  10029. ------------------
  10030. The root of the entire intermediate representation is the variable
  10031. 'global_namespace'. This is the namespace specified with '::' in C++
  10032. source code. All other namespaces, types, variables, functions, and so
  10033. forth can be found starting with this namespace.
  10034. However, except for the fact that it is distinguished as the root of
  10035. the representation, the global namespace is no different from any other
  10036. namespace. Thus, in what follows, we describe namespaces generally,
  10037. rather than the global namespace in particular.
  10038. A namespace is represented by a 'NAMESPACE_DECL' node.
  10039. The following macros and functions can be used on a 'NAMESPACE_DECL':
  10040. 'DECL_NAME'
  10041. This macro is used to obtain the 'IDENTIFIER_NODE' corresponding to
  10042. the unqualified name of the name of the namespace (*note
  10043. Identifiers::). The name of the global namespace is '::', even
  10044. though in C++ the global namespace is unnamed. However, you should
  10045. use comparison with 'global_namespace', rather than 'DECL_NAME' to
  10046. determine whether or not a namespace is the global one. An unnamed
  10047. namespace will have a 'DECL_NAME' equal to
  10048. 'anonymous_namespace_name'. Within a single translation unit, all
  10049. unnamed namespaces will have the same name.
  10050. 'DECL_CONTEXT'
  10051. This macro returns the enclosing namespace. The 'DECL_CONTEXT' for
  10052. the 'global_namespace' is 'NULL_TREE'.
  10053. 'DECL_NAMESPACE_ALIAS'
  10054. If this declaration is for a namespace alias, then
  10055. 'DECL_NAMESPACE_ALIAS' is the namespace for which this one is an
  10056. alias.
  10057. Do not attempt to use 'cp_namespace_decls' for a namespace which is
  10058. an alias. Instead, follow 'DECL_NAMESPACE_ALIAS' links until you
  10059. reach an ordinary, non-alias, namespace, and call
  10060. 'cp_namespace_decls' there.
  10061. 'DECL_NAMESPACE_STD_P'
  10062. This predicate holds if the namespace is the special '::std'
  10063. namespace.
  10064. 'cp_namespace_decls'
  10065. This function will return the declarations contained in the
  10066. namespace, including types, overloaded functions, other namespaces,
  10067. and so forth. If there are no declarations, this function will
  10068. return 'NULL_TREE'. The declarations are connected through their
  10069. 'TREE_CHAIN' fields.
  10070. Although most entries on this list will be declarations,
  10071. 'TREE_LIST' nodes may also appear. In this case, the 'TREE_VALUE'
  10072. will be an 'OVERLOAD'. The value of the 'TREE_PURPOSE' is
  10073. unspecified; back ends should ignore this value. As with the other
  10074. kinds of declarations returned by 'cp_namespace_decls', the
  10075. 'TREE_CHAIN' will point to the next declaration in this list.
  10076. For more information on the kinds of declarations that can occur on
  10077. this list, *Note Declarations::. Some declarations will not appear
  10078. on this list. In particular, no 'FIELD_DECL', 'LABEL_DECL', or
  10079. 'PARM_DECL' nodes will appear here.
  10080. This function cannot be used with namespaces that have
  10081. 'DECL_NAMESPACE_ALIAS' set.
  10082. 
  10083. File: gccint.info, Node: Classes, Next: Functions for C++, Prev: Namespaces, Up: C and C++ Trees
  10084. 11.10.3 Classes
  10085. ---------------
  10086. Besides namespaces, the other high-level scoping construct in C++ is the
  10087. class. (Throughout this manual the term "class" is used to mean the
  10088. types referred to in the ANSI/ISO C++ Standard as classes; these include
  10089. types defined with the 'class', 'struct', and 'union' keywords.)
  10090. A class type is represented by either a 'RECORD_TYPE' or a
  10091. 'UNION_TYPE'. A class declared with the 'union' tag is represented by a
  10092. 'UNION_TYPE', while classes declared with either the 'struct' or the
  10093. 'class' tag are represented by 'RECORD_TYPE's. You can use the
  10094. 'CLASSTYPE_DECLARED_CLASS' macro to discern whether or not a particular
  10095. type is a 'class' as opposed to a 'struct'. This macro will be true
  10096. only for classes declared with the 'class' tag.
  10097. Almost all members are available on the 'TYPE_FIELDS' list. Given one
  10098. member, the next can be found by following the 'TREE_CHAIN'. You should
  10099. not depend in any way on the order in which fields appear on this list.
  10100. All nodes on this list will be 'DECL' nodes. A 'FIELD_DECL' is used to
  10101. represent a non-static data member, a 'VAR_DECL' is used to represent a
  10102. static data member, and a 'TYPE_DECL' is used to represent a type. Note
  10103. that the 'CONST_DECL' for an enumeration constant will appear on this
  10104. list, if the enumeration type was declared in the class. (Of course,
  10105. the 'TYPE_DECL' for the enumeration type will appear here as well.)
  10106. There are no entries for base classes on this list. In particular,
  10107. there is no 'FIELD_DECL' for the "base-class portion" of an object. If
  10108. a function member is overloaded, each of the overloaded functions
  10109. appears; no 'OVERLOAD' nodes appear on the 'TYPE_FIELDS' list.
  10110. Implicitly declared functions (including default constructors, copy
  10111. constructors, assignment operators, and destructors) will appear on this
  10112. list as well.
  10113. The 'TYPE_VFIELD' is a compiler-generated field used to point to
  10114. virtual function tables. It may or may not appear on the 'TYPE_FIELDS'
  10115. list. However, back ends should handle the 'TYPE_VFIELD' just like all
  10116. the entries on the 'TYPE_FIELDS' list.
  10117. Every class has an associated "binfo", which can be obtained with
  10118. 'TYPE_BINFO'. Binfos are used to represent base-classes. The binfo
  10119. given by 'TYPE_BINFO' is the degenerate case, whereby every class is
  10120. considered to be its own base-class. The base binfos for a particular
  10121. binfo are held in a vector, whose length is obtained with
  10122. 'BINFO_N_BASE_BINFOS'. The base binfos themselves are obtained with
  10123. 'BINFO_BASE_BINFO' and 'BINFO_BASE_ITERATE'. To add a new binfo, use
  10124. 'BINFO_BASE_APPEND'. The vector of base binfos can be obtained with
  10125. 'BINFO_BASE_BINFOS', but normally you do not need to use that. The
  10126. class type associated with a binfo is given by 'BINFO_TYPE'. It is not
  10127. always the case that 'BINFO_TYPE (TYPE_BINFO (x))', because of typedefs
  10128. and qualified types. Neither is it the case that 'TYPE_BINFO
  10129. (BINFO_TYPE (y))' is the same binfo as 'y'. The reason is that if 'y'
  10130. is a binfo representing a base-class 'B' of a derived class 'D', then
  10131. 'BINFO_TYPE (y)' will be 'B', and 'TYPE_BINFO (BINFO_TYPE (y))' will be
  10132. 'B' as its own base-class, rather than as a base-class of 'D'.
  10133. The access to a base type can be found with 'BINFO_BASE_ACCESS'. This
  10134. will produce 'access_public_node', 'access_private_node' or
  10135. 'access_protected_node'. If bases are always public,
  10136. 'BINFO_BASE_ACCESSES' may be 'NULL'.
  10137. 'BINFO_VIRTUAL_P' is used to specify whether the binfo is inherited
  10138. virtually or not. The other flags, 'BINFO_FLAG_0' to 'BINFO_FLAG_6',
  10139. can be used for language specific use.
  10140. The following macros can be used on a tree node representing a
  10141. class-type.
  10142. 'LOCAL_CLASS_P'
  10143. This predicate holds if the class is local class _i.e._ declared
  10144. inside a function body.
  10145. 'TYPE_POLYMORPHIC_P'
  10146. This predicate holds if the class has at least one virtual function
  10147. (declared or inherited).
  10148. 'TYPE_HAS_DEFAULT_CONSTRUCTOR'
  10149. This predicate holds whenever its argument represents a class-type
  10150. with default constructor.
  10151. 'CLASSTYPE_HAS_MUTABLE'
  10152. 'TYPE_HAS_MUTABLE_P'
  10153. These predicates hold for a class-type having a mutable data
  10154. member.
  10155. 'CLASSTYPE_NON_POD_P'
  10156. This predicate holds only for class-types that are not PODs.
  10157. 'TYPE_HAS_NEW_OPERATOR'
  10158. This predicate holds for a class-type that defines 'operator new'.
  10159. 'TYPE_HAS_ARRAY_NEW_OPERATOR'
  10160. This predicate holds for a class-type for which 'operator new[]' is
  10161. defined.
  10162. 'TYPE_OVERLOADS_CALL_EXPR'
  10163. This predicate holds for class-type for which the function call
  10164. 'operator()' is overloaded.
  10165. 'TYPE_OVERLOADS_ARRAY_REF'
  10166. This predicate holds for a class-type that overloads 'operator[]'
  10167. 'TYPE_OVERLOADS_ARROW'
  10168. This predicate holds for a class-type for which 'operator->' is
  10169. overloaded.
  10170. 
  10171. File: gccint.info, Node: Functions for C++, Next: Statements for C and C++, Prev: Classes, Up: C and C++ Trees
  10172. 11.10.4 Functions for C++
  10173. -------------------------
  10174. A function is represented by a 'FUNCTION_DECL' node. A set of
  10175. overloaded functions is sometimes represented by an 'OVERLOAD' node.
  10176. An 'OVERLOAD' node is not a declaration, so none of the 'DECL_' macros
  10177. should be used on an 'OVERLOAD'. An 'OVERLOAD' node is similar to a
  10178. 'TREE_LIST'. Use 'OVL_CURRENT' to get the function associated with an
  10179. 'OVERLOAD' node; use 'OVL_NEXT' to get the next 'OVERLOAD' node in the
  10180. list of overloaded functions. The macros 'OVL_CURRENT' and 'OVL_NEXT'
  10181. are actually polymorphic; you can use them to work with 'FUNCTION_DECL'
  10182. nodes as well as with overloads. In the case of a 'FUNCTION_DECL',
  10183. 'OVL_CURRENT' will always return the function itself, and 'OVL_NEXT'
  10184. will always be 'NULL_TREE'.
  10185. To determine the scope of a function, you can use the 'DECL_CONTEXT'
  10186. macro. This macro will return the class (either a 'RECORD_TYPE' or a
  10187. 'UNION_TYPE') or namespace (a 'NAMESPACE_DECL') of which the function is
  10188. a member. For a virtual function, this macro returns the class in which
  10189. the function was actually defined, not the base class in which the
  10190. virtual declaration occurred.
  10191. If a friend function is defined in a class scope, the
  10192. 'DECL_FRIEND_CONTEXT' macro can be used to determine the class in which
  10193. it was defined. For example, in
  10194. class C { friend void f() {} };
  10195. the 'DECL_CONTEXT' for 'f' will be the 'global_namespace', but the
  10196. 'DECL_FRIEND_CONTEXT' will be the 'RECORD_TYPE' for 'C'.
  10197. The following macros and functions can be used on a 'FUNCTION_DECL':
  10198. 'DECL_MAIN_P'
  10199. This predicate holds for a function that is the program entry point
  10200. '::code'.
  10201. 'DECL_LOCAL_FUNCTION_P'
  10202. This predicate holds if the function was declared at block scope,
  10203. even though it has a global scope.
  10204. 'DECL_ANTICIPATED'
  10205. This predicate holds if the function is a built-in function but its
  10206. prototype is not yet explicitly declared.
  10207. 'DECL_EXTERN_C_FUNCTION_P'
  10208. This predicate holds if the function is declared as an ''extern
  10209. "C"'' function.
  10210. 'DECL_LINKONCE_P'
  10211. This macro holds if multiple copies of this function may be emitted
  10212. in various translation units. It is the responsibility of the
  10213. linker to merge the various copies. Template instantiations are
  10214. the most common example of functions for which 'DECL_LINKONCE_P'
  10215. holds; G++ instantiates needed templates in all translation units
  10216. which require them, and then relies on the linker to remove
  10217. duplicate instantiations.
  10218. FIXME: This macro is not yet implemented.
  10219. 'DECL_FUNCTION_MEMBER_P'
  10220. This macro holds if the function is a member of a class, rather
  10221. than a member of a namespace.
  10222. 'DECL_STATIC_FUNCTION_P'
  10223. This predicate holds if the function a static member function.
  10224. 'DECL_NONSTATIC_MEMBER_FUNCTION_P'
  10225. This macro holds for a non-static member function.
  10226. 'DECL_CONST_MEMFUNC_P'
  10227. This predicate holds for a 'const'-member function.
  10228. 'DECL_VOLATILE_MEMFUNC_P'
  10229. This predicate holds for a 'volatile'-member function.
  10230. 'DECL_CONSTRUCTOR_P'
  10231. This macro holds if the function is a constructor.
  10232. 'DECL_NONCONVERTING_P'
  10233. This predicate holds if the constructor is a non-converting
  10234. constructor.
  10235. 'DECL_COMPLETE_CONSTRUCTOR_P'
  10236. This predicate holds for a function which is a constructor for an
  10237. object of a complete type.
  10238. 'DECL_BASE_CONSTRUCTOR_P'
  10239. This predicate holds for a function which is a constructor for a
  10240. base class sub-object.
  10241. 'DECL_COPY_CONSTRUCTOR_P'
  10242. This predicate holds for a function which is a copy-constructor.
  10243. 'DECL_DESTRUCTOR_P'
  10244. This macro holds if the function is a destructor.
  10245. 'DECL_COMPLETE_DESTRUCTOR_P'
  10246. This predicate holds if the function is the destructor for an
  10247. object a complete type.
  10248. 'DECL_OVERLOADED_OPERATOR_P'
  10249. This macro holds if the function is an overloaded operator.
  10250. 'DECL_CONV_FN_P'
  10251. This macro holds if the function is a type-conversion operator.
  10252. 'DECL_GLOBAL_CTOR_P'
  10253. This predicate holds if the function is a file-scope initialization
  10254. function.
  10255. 'DECL_GLOBAL_DTOR_P'
  10256. This predicate holds if the function is a file-scope finalization
  10257. function.
  10258. 'DECL_THUNK_P'
  10259. This predicate holds if the function is a thunk.
  10260. These functions represent stub code that adjusts the 'this' pointer
  10261. and then jumps to another function. When the jumped-to function
  10262. returns, control is transferred directly to the caller, without
  10263. returning to the thunk. The first parameter to the thunk is always
  10264. the 'this' pointer; the thunk should add 'THUNK_DELTA' to this
  10265. value. (The 'THUNK_DELTA' is an 'int', not an 'INTEGER_CST'.)
  10266. Then, if 'THUNK_VCALL_OFFSET' (an 'INTEGER_CST') is nonzero the
  10267. adjusted 'this' pointer must be adjusted again. The complete
  10268. calculation is given by the following pseudo-code:
  10269. this += THUNK_DELTA
  10270. if (THUNK_VCALL_OFFSET)
  10271. this += (*((ptrdiff_t **) this))[THUNK_VCALL_OFFSET]
  10272. Finally, the thunk should jump to the location given by
  10273. 'DECL_INITIAL'; this will always be an expression for the address
  10274. of a function.
  10275. 'DECL_NON_THUNK_FUNCTION_P'
  10276. This predicate holds if the function is _not_ a thunk function.
  10277. 'GLOBAL_INIT_PRIORITY'
  10278. If either 'DECL_GLOBAL_CTOR_P' or 'DECL_GLOBAL_DTOR_P' holds, then
  10279. this gives the initialization priority for the function. The
  10280. linker will arrange that all functions for which
  10281. 'DECL_GLOBAL_CTOR_P' holds are run in increasing order of priority
  10282. before 'main' is called. When the program exits, all functions for
  10283. which 'DECL_GLOBAL_DTOR_P' holds are run in the reverse order.
  10284. 'TYPE_RAISES_EXCEPTIONS'
  10285. This macro returns the list of exceptions that a (member-)function
  10286. can raise. The returned list, if non 'NULL', is comprised of nodes
  10287. whose 'TREE_VALUE' represents a type.
  10288. 'TYPE_NOTHROW_P'
  10289. This predicate holds when the exception-specification of its
  10290. arguments is of the form ''()''.
  10291. 'DECL_ARRAY_DELETE_OPERATOR_P'
  10292. This predicate holds if the function an overloaded 'operator
  10293. delete[]'.
  10294. 
  10295. File: gccint.info, Node: Statements for C and C++, Next: C++ Expressions, Prev: Functions for C++, Up: C and C++ Trees
  10296. 11.10.5 Statements for C and C++
  10297. --------------------------------
  10298. A function that has a definition in the current translation unit has a
  10299. non-'NULL' 'DECL_INITIAL'. However, back ends should not make use of
  10300. the particular value given by 'DECL_INITIAL'.
  10301. The 'DECL_SAVED_TREE' gives the complete body of the function.
  10302. There are tree nodes corresponding to all of the source-level statement
  10303. constructs, used within the C and C++ frontends. These are enumerated
  10304. here, together with a list of the various macros that can be used to
  10305. obtain information about them. There are a few macros that can be used
  10306. with all statements:
  10307. 'STMT_IS_FULL_EXPR_P'
  10308. In C++, statements normally constitute "full expressions";
  10309. temporaries created during a statement are destroyed when the
  10310. statement is complete. However, G++ sometimes represents
  10311. expressions by statements; these statements will not have
  10312. 'STMT_IS_FULL_EXPR_P' set. Temporaries created during such
  10313. statements should be destroyed when the innermost enclosing
  10314. statement with 'STMT_IS_FULL_EXPR_P' set is exited.
  10315. Here is the list of the various statement nodes, and the macros used to
  10316. access them. This documentation describes the use of these nodes in
  10317. non-template functions (including instantiations of template functions).
  10318. In template functions, the same nodes are used, but sometimes in
  10319. slightly different ways.
  10320. Many of the statements have substatements. For example, a 'while' loop
  10321. has a body, which is itself a statement. If the substatement is
  10322. 'NULL_TREE', it is considered equivalent to a statement consisting of a
  10323. single ';', i.e., an expression statement in which the expression has
  10324. been omitted. A substatement may in fact be a list of statements,
  10325. connected via their 'TREE_CHAIN's. So, you should always process the
  10326. statement tree by looping over substatements, like this:
  10327. void process_stmt (stmt)
  10328. tree stmt;
  10329. {
  10330. while (stmt)
  10331. {
  10332. switch (TREE_CODE (stmt))
  10333. {
  10334. case IF_STMT:
  10335. process_stmt (THEN_CLAUSE (stmt));
  10336. /* More processing here. */
  10337. break;
  10338. ...
  10339. }
  10340. stmt = TREE_CHAIN (stmt);
  10341. }
  10342. }
  10343. In other words, while the 'then' clause of an 'if' statement in C++ can
  10344. be only one statement (although that one statement may be a compound
  10345. statement), the intermediate representation sometimes uses several
  10346. statements chained together.
  10347. 'BREAK_STMT'
  10348. Used to represent a 'break' statement. There are no additional
  10349. fields.
  10350. 'CLEANUP_STMT'
  10351. Used to represent an action that should take place upon exit from
  10352. the enclosing scope. Typically, these actions are calls to
  10353. destructors for local objects, but back ends cannot rely on this
  10354. fact. If these nodes are in fact representing such destructors,
  10355. 'CLEANUP_DECL' will be the 'VAR_DECL' destroyed. Otherwise,
  10356. 'CLEANUP_DECL' will be 'NULL_TREE'. In any case, the
  10357. 'CLEANUP_EXPR' is the expression to execute. The cleanups executed
  10358. on exit from a scope should be run in the reverse order of the
  10359. order in which the associated 'CLEANUP_STMT's were encountered.
  10360. 'CONTINUE_STMT'
  10361. Used to represent a 'continue' statement. There are no additional
  10362. fields.
  10363. 'CTOR_STMT'
  10364. Used to mark the beginning (if 'CTOR_BEGIN_P' holds) or end (if
  10365. 'CTOR_END_P' holds of the main body of a constructor. See also
  10366. 'SUBOBJECT' for more information on how to use these nodes.
  10367. 'DO_STMT'
  10368. Used to represent a 'do' loop. The body of the loop is given by
  10369. 'DO_BODY' while the termination condition for the loop is given by
  10370. 'DO_COND'. The condition for a 'do'-statement is always an
  10371. expression.
  10372. 'EMPTY_CLASS_EXPR'
  10373. Used to represent a temporary object of a class with no data whose
  10374. address is never taken. (All such objects are interchangeable.)
  10375. The 'TREE_TYPE' represents the type of the object.
  10376. 'EXPR_STMT'
  10377. Used to represent an expression statement. Use 'EXPR_STMT_EXPR' to
  10378. obtain the expression.
  10379. 'FOR_STMT'
  10380. Used to represent a 'for' statement. The 'FOR_INIT_STMT' is the
  10381. initialization statement for the loop. The 'FOR_COND' is the
  10382. termination condition. The 'FOR_EXPR' is the expression executed
  10383. right before the 'FOR_COND' on each loop iteration; often, this
  10384. expression increments a counter. The body of the loop is given by
  10385. 'FOR_BODY'. 'FOR_SCOPE' holds the scope of the 'for' statement
  10386. (used in the C++ front end only). Note that 'FOR_INIT_STMT' and
  10387. 'FOR_BODY' return statements, while 'FOR_COND' and 'FOR_EXPR'
  10388. return expressions.
  10389. 'HANDLER'
  10390. Used to represent a C++ 'catch' block. The 'HANDLER_TYPE' is the
  10391. type of exception that will be caught by this handler; it is equal
  10392. (by pointer equality) to 'NULL' if this handler is for all types.
  10393. 'HANDLER_PARMS' is the 'DECL_STMT' for the catch parameter, and
  10394. 'HANDLER_BODY' is the code for the block itself.
  10395. 'IF_STMT'
  10396. Used to represent an 'if' statement. The 'IF_COND' is the
  10397. expression.
  10398. If the condition is a 'TREE_LIST', then the 'TREE_PURPOSE' is a
  10399. statement (usually a 'DECL_STMT'). Each time the condition is
  10400. evaluated, the statement should be executed. Then, the
  10401. 'TREE_VALUE' should be used as the conditional expression itself.
  10402. This representation is used to handle C++ code like this:
  10403. if (int i = 7) ...
  10404. where there is a new local variable (or variables) declared within
  10405. the condition.
  10406. The 'THEN_CLAUSE' represents the statement given by the 'then'
  10407. condition, while the 'ELSE_CLAUSE' represents the statement given
  10408. by the 'else' condition.
  10409. C++ distinguishes between this and 'COND_EXPR' for handling
  10410. templates.
  10411. 'SUBOBJECT'
  10412. In a constructor, these nodes are used to mark the point at which a
  10413. subobject of 'this' is fully constructed. If, after this point, an
  10414. exception is thrown before a 'CTOR_STMT' with 'CTOR_END_P' set is
  10415. encountered, the 'SUBOBJECT_CLEANUP' must be executed. The
  10416. cleanups must be executed in the reverse order in which they
  10417. appear.
  10418. 'SWITCH_STMT'
  10419. Used to represent a 'switch' statement. The 'SWITCH_STMT_COND' is
  10420. the expression on which the switch is occurring. See the
  10421. documentation for an 'IF_STMT' for more information on the
  10422. representation used for the condition. The 'SWITCH_STMT_BODY' is
  10423. the body of the switch statement. The 'SWITCH_STMT_TYPE' is the
  10424. original type of switch expression as given in the source, before
  10425. any compiler conversions. The 'SWITCH_STMT_SCOPE' is the statement
  10426. scope (used in the C++ front end only).
  10427. There are also two boolean flags used with 'SWITCH_STMT'.
  10428. 'SWITCH_STMT_ALL_CASES_P' is true if the switch includes a default
  10429. label or the case label ranges cover all possible values of the
  10430. condition expression. 'SWITCH_STMT_NO_BREAK_P' is true if there
  10431. are no 'break' statements in the switch.
  10432. 'TRY_BLOCK'
  10433. Used to represent a 'try' block. The body of the try block is
  10434. given by 'TRY_STMTS'. Each of the catch blocks is a 'HANDLER'
  10435. node. The first handler is given by 'TRY_HANDLERS'. Subsequent
  10436. handlers are obtained by following the 'TREE_CHAIN' link from one
  10437. handler to the next. The body of the handler is given by
  10438. 'HANDLER_BODY'.
  10439. If 'CLEANUP_P' holds of the 'TRY_BLOCK', then the 'TRY_HANDLERS'
  10440. will not be a 'HANDLER' node. Instead, it will be an expression
  10441. that should be executed if an exception is thrown in the try block.
  10442. It must rethrow the exception after executing that code. And, if
  10443. an exception is thrown while the expression is executing,
  10444. 'terminate' must be called.
  10445. 'USING_STMT'
  10446. Used to represent a 'using' directive. The namespace is given by
  10447. 'USING_STMT_NAMESPACE', which will be a NAMESPACE_DECL. This node
  10448. is needed inside template functions, to implement using directives
  10449. during instantiation.
  10450. 'WHILE_STMT'
  10451. Used to represent a 'while' loop. The 'WHILE_COND' is the
  10452. termination condition for the loop. See the documentation for an
  10453. 'IF_STMT' for more information on the representation used for the
  10454. condition.
  10455. The 'WHILE_BODY' is the body of the loop.
  10456. 
  10457. File: gccint.info, Node: C++ Expressions, Prev: Statements for C and C++, Up: C and C++ Trees
  10458. 11.10.6 C++ Expressions
  10459. -----------------------
  10460. This section describes expressions specific to the C and C++ front ends.
  10461. 'TYPEID_EXPR'
  10462. Used to represent a 'typeid' expression.
  10463. 'NEW_EXPR'
  10464. 'VEC_NEW_EXPR'
  10465. Used to represent a call to 'new' and 'new[]' respectively.
  10466. 'DELETE_EXPR'
  10467. 'VEC_DELETE_EXPR'
  10468. Used to represent a call to 'delete' and 'delete[]' respectively.
  10469. 'MEMBER_REF'
  10470. Represents a reference to a member of a class.
  10471. 'THROW_EXPR'
  10472. Represents an instance of 'throw' in the program. Operand 0, which
  10473. is the expression to throw, may be 'NULL_TREE'.
  10474. 'AGGR_INIT_EXPR'
  10475. An 'AGGR_INIT_EXPR' represents the initialization as the return
  10476. value of a function call, or as the result of a constructor. An
  10477. 'AGGR_INIT_EXPR' will only appear as a full-expression, or as the
  10478. second operand of a 'TARGET_EXPR'. 'AGGR_INIT_EXPR's have a
  10479. representation similar to that of 'CALL_EXPR's. You can use the
  10480. 'AGGR_INIT_EXPR_FN' and 'AGGR_INIT_EXPR_ARG' macros to access the
  10481. function to call and the arguments to pass.
  10482. If 'AGGR_INIT_VIA_CTOR_P' holds of the 'AGGR_INIT_EXPR', then the
  10483. initialization is via a constructor call. The address of the
  10484. 'AGGR_INIT_EXPR_SLOT' operand, which is always a 'VAR_DECL', is
  10485. taken, and this value replaces the first argument in the argument
  10486. list.
  10487. In either case, the expression is void.
  10488. 
  10489. File: gccint.info, Node: GIMPLE, Next: Tree SSA, Prev: GENERIC, Up: Top
  10490. 12 GIMPLE
  10491. *********
  10492. GIMPLE is a three-address representation derived from GENERIC by
  10493. breaking down GENERIC expressions into tuples of no more than 3 operands
  10494. (with some exceptions like function calls). GIMPLE was heavily
  10495. influenced by the SIMPLE IL used by the McCAT compiler project at McGill
  10496. University, though we have made some different choices. For one thing,
  10497. SIMPLE doesn't support 'goto'.
  10498. Temporaries are introduced to hold intermediate values needed to
  10499. compute complex expressions. Additionally, all the control structures
  10500. used in GENERIC are lowered into conditional jumps, lexical scopes are
  10501. removed and exception regions are converted into an on the side
  10502. exception region tree.
  10503. The compiler pass which converts GENERIC into GIMPLE is referred to as
  10504. the 'gimplifier'. The gimplifier works recursively, generating GIMPLE
  10505. tuples out of the original GENERIC expressions.
  10506. One of the early implementation strategies used for the GIMPLE
  10507. representation was to use the same internal data structures used by
  10508. front ends to represent parse trees. This simplified implementation
  10509. because we could leverage existing functionality and interfaces.
  10510. However, GIMPLE is a much more restrictive representation than abstract
  10511. syntax trees (AST), therefore it does not require the full structural
  10512. complexity provided by the main tree data structure.
  10513. The GENERIC representation of a function is stored in the
  10514. 'DECL_SAVED_TREE' field of the associated 'FUNCTION_DECL' tree node. It
  10515. is converted to GIMPLE by a call to 'gimplify_function_tree'.
  10516. If a front end wants to include language-specific tree codes in the
  10517. tree representation which it provides to the back end, it must provide a
  10518. definition of 'LANG_HOOKS_GIMPLIFY_EXPR' which knows how to convert the
  10519. front end trees to GIMPLE. Usually such a hook will involve much of the
  10520. same code for expanding front end trees to RTL. This function can
  10521. return fully lowered GIMPLE, or it can return GENERIC trees and let the
  10522. main gimplifier lower them the rest of the way; this is often simpler.
  10523. GIMPLE that is not fully lowered is known as "High GIMPLE" and consists
  10524. of the IL before the pass 'pass_lower_cf'. High GIMPLE contains some
  10525. container statements like lexical scopes (represented by 'GIMPLE_BIND')
  10526. and nested expressions (e.g., 'GIMPLE_TRY'), while "Low GIMPLE" exposes
  10527. all of the implicit jumps for control and exception expressions directly
  10528. in the IL and EH region trees.
  10529. The C and C++ front ends currently convert directly from front end
  10530. trees to GIMPLE, and hand that off to the back end rather than first
  10531. converting to GENERIC. Their gimplifier hooks know about all the
  10532. '_STMT' nodes and how to convert them to GENERIC forms. There was some
  10533. work done on a genericization pass which would run first, but the
  10534. existence of 'STMT_EXPR' meant that in order to convert all of the C
  10535. statements into GENERIC equivalents would involve walking the entire
  10536. tree anyway, so it was simpler to lower all the way. This might change
  10537. in the future if someone writes an optimization pass which would work
  10538. better with higher-level trees, but currently the optimizers all expect
  10539. GIMPLE.
  10540. You can request to dump a C-like representation of the GIMPLE form with
  10541. the flag '-fdump-tree-gimple'.
  10542. * Menu:
  10543. * Tuple representation::
  10544. * Class hierarchy of GIMPLE statements::
  10545. * GIMPLE instruction set::
  10546. * GIMPLE Exception Handling::
  10547. * Temporaries::
  10548. * Operands::
  10549. * Manipulating GIMPLE statements::
  10550. * Tuple specific accessors::
  10551. * GIMPLE sequences::
  10552. * Sequence iterators::
  10553. * Adding a new GIMPLE statement code::
  10554. * Statement and operand traversals::
  10555. 
  10556. File: gccint.info, Node: Tuple representation, Next: Class hierarchy of GIMPLE statements, Up: GIMPLE
  10557. 12.1 Tuple representation
  10558. =========================
  10559. GIMPLE instructions are tuples of variable size divided in two groups: a
  10560. header describing the instruction and its locations, and a variable
  10561. length body with all the operands. Tuples are organized into a
  10562. hierarchy with 3 main classes of tuples.
  10563. 12.1.1 'gimple' (gsbase)
  10564. ------------------------
  10565. This is the root of the hierarchy, it holds basic information needed by
  10566. most GIMPLE statements. There are some fields that may not be relevant
  10567. to every GIMPLE statement, but those were moved into the base structure
  10568. to take advantage of holes left by other fields (thus making the
  10569. structure more compact). The structure takes 4 words (32 bytes) on 64
  10570. bit hosts:
  10571. Field Size (bits)
  10572. 'code' 8
  10573. 'subcode' 16
  10574. 'no_warning' 1
  10575. 'visited' 1
  10576. 'nontemporal_move' 1
  10577. 'plf' 2
  10578. 'modified' 1
  10579. 'has_volatile_ops' 1
  10580. 'references_memory_p' 1
  10581. 'uid' 32
  10582. 'location' 32
  10583. 'num_ops' 32
  10584. 'bb' 64
  10585. 'block' 63
  10586. Total size 32 bytes
  10587. * 'code' Main identifier for a GIMPLE instruction.
  10588. * 'subcode' Used to distinguish different variants of the same basic
  10589. instruction or provide flags applicable to a given code. The
  10590. 'subcode' flags field has different uses depending on the code of
  10591. the instruction, but mostly it distinguishes instructions of the
  10592. same family. The most prominent use of this field is in
  10593. assignments, where subcode indicates the operation done on the RHS
  10594. of the assignment. For example, a = b + c is encoded as
  10595. 'GIMPLE_ASSIGN <PLUS_EXPR, a, b, c>'.
  10596. * 'no_warning' Bitflag to indicate whether a warning has already been
  10597. issued on this statement.
  10598. * 'visited' General purpose "visited" marker. Set and cleared by
  10599. each pass when needed.
  10600. * 'nontemporal_move' Bitflag used in assignments that represent
  10601. non-temporal moves. Although this bitflag is only used in
  10602. assignments, it was moved into the base to take advantage of the
  10603. bit holes left by the previous fields.
  10604. * 'plf' Pass Local Flags. This 2-bit mask can be used as general
  10605. purpose markers by any pass. Passes are responsible for clearing
  10606. and setting these two flags accordingly.
  10607. * 'modified' Bitflag to indicate whether the statement has been
  10608. modified. Used mainly by the operand scanner to determine when to
  10609. re-scan a statement for operands.
  10610. * 'has_volatile_ops' Bitflag to indicate whether this statement
  10611. contains operands that have been marked volatile.
  10612. * 'references_memory_p' Bitflag to indicate whether this statement
  10613. contains memory references (i.e., its operands are either global
  10614. variables, or pointer dereferences or anything that must reside in
  10615. memory).
  10616. * 'uid' This is an unsigned integer used by passes that want to
  10617. assign IDs to every statement. These IDs must be assigned and used
  10618. by each pass.
  10619. * 'location' This is a 'location_t' identifier to specify source code
  10620. location for this statement. It is inherited from the front end.
  10621. * 'num_ops' Number of operands that this statement has. This
  10622. specifies the size of the operand vector embedded in the tuple.
  10623. Only used in some tuples, but it is declared in the base tuple to
  10624. take advantage of the 32-bit hole left by the previous fields.
  10625. * 'bb' Basic block holding the instruction.
  10626. * 'block' Lexical block holding this statement. Also used for debug
  10627. information generation.
  10628. 12.1.2 'gimple_statement_with_ops'
  10629. ----------------------------------
  10630. This tuple is actually split in two: 'gimple_statement_with_ops_base'
  10631. and 'gimple_statement_with_ops'. This is needed to accommodate the way
  10632. the operand vector is allocated. The operand vector is defined to be an
  10633. array of 1 element. So, to allocate a dynamic number of operands, the
  10634. memory allocator ('gimple_alloc') simply allocates enough memory to hold
  10635. the structure itself plus 'N - 1' operands which run "off the end" of
  10636. the structure. For example, to allocate space for a tuple with 3
  10637. operands, 'gimple_alloc' reserves 'sizeof (struct
  10638. gimple_statement_with_ops) + 2 * sizeof (tree)' bytes.
  10639. On the other hand, several fields in this tuple need to be shared with
  10640. the 'gimple_statement_with_memory_ops' tuple. So, these common fields
  10641. are placed in 'gimple_statement_with_ops_base' which is then inherited
  10642. from the other two tuples.
  10643. 'gsbase' 256
  10644. 'def_ops' 64
  10645. 'use_ops' 64
  10646. 'op' 'num_ops' * 64
  10647. Total 48 + 8 * 'num_ops' bytes
  10648. size
  10649. * 'gsbase' Inherited from 'struct gimple'.
  10650. * 'def_ops' Array of pointers into the operand array indicating all
  10651. the slots that contain a variable written-to by the statement.
  10652. This array is also used for immediate use chaining. Note that it
  10653. would be possible to not rely on this array, but the changes
  10654. required to implement this are pretty invasive.
  10655. * 'use_ops' Similar to 'def_ops' but for variables read by the
  10656. statement.
  10657. * 'op' Array of trees with 'num_ops' slots.
  10658. 12.1.3 'gimple_statement_with_memory_ops'
  10659. -----------------------------------------
  10660. This tuple is essentially identical to 'gimple_statement_with_ops',
  10661. except that it contains 4 additional fields to hold vectors related
  10662. memory stores and loads. Similar to the previous case, the structure is
  10663. split in two to accommodate for the operand vector
  10664. ('gimple_statement_with_memory_ops_base' and
  10665. 'gimple_statement_with_memory_ops').
  10666. Field Size (bits)
  10667. 'gsbase' 256
  10668. 'def_ops' 64
  10669. 'use_ops' 64
  10670. 'vdef_ops' 64
  10671. 'vuse_ops' 64
  10672. 'stores' 64
  10673. 'loads' 64
  10674. 'op' 'num_ops' * 64
  10675. Total size 80 + 8 * 'num_ops' bytes
  10676. * 'vdef_ops' Similar to 'def_ops' but for 'VDEF' operators. There is
  10677. one entry per memory symbol written by this statement. This is
  10678. used to maintain the memory SSA use-def and def-def chains.
  10679. * 'vuse_ops' Similar to 'use_ops' but for 'VUSE' operators. There is
  10680. one entry per memory symbol loaded by this statement. This is used
  10681. to maintain the memory SSA use-def chains.
  10682. * 'stores' Bitset with all the UIDs for the symbols written-to by the
  10683. statement. This is different than 'vdef_ops' in that all the
  10684. affected symbols are mentioned in this set. If memory partitioning
  10685. is enabled, the 'vdef_ops' vector will refer to memory partitions.
  10686. Furthermore, no SSA information is stored in this set.
  10687. * 'loads' Similar to 'stores', but for memory loads. (Note that
  10688. there is some amount of redundancy here, it should be possible to
  10689. reduce memory utilization further by removing these sets).
  10690. All the other tuples are defined in terms of these three basic ones.
  10691. Each tuple will add some fields.
  10692. 
  10693. File: gccint.info, Node: Class hierarchy of GIMPLE statements, Next: GIMPLE instruction set, Prev: Tuple representation, Up: GIMPLE
  10694. 12.2 Class hierarchy of GIMPLE statements
  10695. =========================================
  10696. The following diagram shows the C++ inheritance hierarchy of statement
  10697. kinds, along with their relationships to 'GSS_' values (layouts) and
  10698. 'GIMPLE_' values (codes):
  10699. gimple
  10700. | layout: GSS_BASE
  10701. | used for 4 codes: GIMPLE_ERROR_MARK
  10702. | GIMPLE_NOP
  10703. | GIMPLE_OMP_SECTIONS_SWITCH
  10704. | GIMPLE_PREDICT
  10705. |
  10706. + gimple_statement_with_ops_base
  10707. | | (no GSS layout)
  10708. | |
  10709. | + gimple_statement_with_ops
  10710. | | | layout: GSS_WITH_OPS
  10711. | | |
  10712. | | + gcond
  10713. | | | code: GIMPLE_COND
  10714. | | |
  10715. | | + gdebug
  10716. | | | code: GIMPLE_DEBUG
  10717. | | |
  10718. | | + ggoto
  10719. | | | code: GIMPLE_GOTO
  10720. | | |
  10721. | | + glabel
  10722. | | | code: GIMPLE_LABEL
  10723. | | |
  10724. | | + gswitch
  10725. | | code: GIMPLE_SWITCH
  10726. | |
  10727. | + gimple_statement_with_memory_ops_base
  10728. | | layout: GSS_WITH_MEM_OPS_BASE
  10729. | |
  10730. | + gimple_statement_with_memory_ops
  10731. | | | layout: GSS_WITH_MEM_OPS
  10732. | | |
  10733. | | + gassign
  10734. | | | code GIMPLE_ASSIGN
  10735. | | |
  10736. | | + greturn
  10737. | | code GIMPLE_RETURN
  10738. | |
  10739. | + gcall
  10740. | | layout: GSS_CALL, code: GIMPLE_CALL
  10741. | |
  10742. | + gasm
  10743. | | layout: GSS_ASM, code: GIMPLE_ASM
  10744. | |
  10745. | + gtransaction
  10746. | layout: GSS_TRANSACTION, code: GIMPLE_TRANSACTION
  10747. |
  10748. + gimple_statement_omp
  10749. | | layout: GSS_OMP. Used for code GIMPLE_OMP_SECTION
  10750. | |
  10751. | + gomp_critical
  10752. | | layout: GSS_OMP_CRITICAL, code: GIMPLE_OMP_CRITICAL
  10753. | |
  10754. | + gomp_for
  10755. | | layout: GSS_OMP_FOR, code: GIMPLE_OMP_FOR
  10756. | |
  10757. | + gomp_parallel_layout
  10758. | | | layout: GSS_OMP_PARALLEL_LAYOUT
  10759. | | |
  10760. | | + gimple_statement_omp_taskreg
  10761. | | | |
  10762. | | | + gomp_parallel
  10763. | | | | code: GIMPLE_OMP_PARALLEL
  10764. | | | |
  10765. | | | + gomp_task
  10766. | | | code: GIMPLE_OMP_TASK
  10767. | | |
  10768. | | + gimple_statement_omp_target
  10769. | | code: GIMPLE_OMP_TARGET
  10770. | |
  10771. | + gomp_sections
  10772. | | layout: GSS_OMP_SECTIONS, code: GIMPLE_OMP_SECTIONS
  10773. | |
  10774. | + gimple_statement_omp_single_layout
  10775. | | layout: GSS_OMP_SINGLE_LAYOUT
  10776. | |
  10777. | + gomp_single
  10778. | | code: GIMPLE_OMP_SINGLE
  10779. | |
  10780. | + gomp_teams
  10781. | code: GIMPLE_OMP_TEAMS
  10782. |
  10783. + gbind
  10784. | layout: GSS_BIND, code: GIMPLE_BIND
  10785. |
  10786. + gcatch
  10787. | layout: GSS_CATCH, code: GIMPLE_CATCH
  10788. |
  10789. + geh_filter
  10790. | layout: GSS_EH_FILTER, code: GIMPLE_EH_FILTER
  10791. |
  10792. + geh_else
  10793. | layout: GSS_EH_ELSE, code: GIMPLE_EH_ELSE
  10794. |
  10795. + geh_mnt
  10796. | layout: GSS_EH_MNT, code: GIMPLE_EH_MUST_NOT_THROW
  10797. |
  10798. + gphi
  10799. | layout: GSS_PHI, code: GIMPLE_PHI
  10800. |
  10801. + gimple_statement_eh_ctrl
  10802. | | layout: GSS_EH_CTRL
  10803. | |
  10804. | + gresx
  10805. | | code: GIMPLE_RESX
  10806. | |
  10807. | + geh_dispatch
  10808. | code: GIMPLE_EH_DISPATCH
  10809. |
  10810. + gtry
  10811. | layout: GSS_TRY, code: GIMPLE_TRY
  10812. |
  10813. + gimple_statement_wce
  10814. | layout: GSS_WCE, code: GIMPLE_WITH_CLEANUP_EXPR
  10815. |
  10816. + gomp_continue
  10817. | layout: GSS_OMP_CONTINUE, code: GIMPLE_OMP_CONTINUE
  10818. |
  10819. + gomp_atomic_load
  10820. | layout: GSS_OMP_ATOMIC_LOAD, code: GIMPLE_OMP_ATOMIC_LOAD
  10821. |
  10822. + gimple_statement_omp_atomic_store_layout
  10823. | layout: GSS_OMP_ATOMIC_STORE_LAYOUT,
  10824. | code: GIMPLE_OMP_ATOMIC_STORE
  10825. |
  10826. + gomp_atomic_store
  10827. | code: GIMPLE_OMP_ATOMIC_STORE
  10828. |
  10829. + gomp_return
  10830. code: GIMPLE_OMP_RETURN
  10831. 
  10832. File: gccint.info, Node: GIMPLE instruction set, Next: GIMPLE Exception Handling, Prev: Class hierarchy of GIMPLE statements, Up: GIMPLE
  10833. 12.3 GIMPLE instruction set
  10834. ===========================
  10835. The following table briefly describes the GIMPLE instruction set.
  10836. Instruction High GIMPLE Low GIMPLE
  10837. 'GIMPLE_ASM' x x
  10838. 'GIMPLE_ASSIGN' x x
  10839. 'GIMPLE_BIND' x
  10840. 'GIMPLE_CALL' x x
  10841. 'GIMPLE_CATCH' x
  10842. 'GIMPLE_COND' x x
  10843. 'GIMPLE_DEBUG' x x
  10844. 'GIMPLE_EH_FILTER' x
  10845. 'GIMPLE_GOTO' x x
  10846. 'GIMPLE_LABEL' x x
  10847. 'GIMPLE_NOP' x x
  10848. 'GIMPLE_OMP_ATOMIC_LOAD' x x
  10849. 'GIMPLE_OMP_ATOMIC_STORE' x x
  10850. 'GIMPLE_OMP_CONTINUE' x x
  10851. 'GIMPLE_OMP_CRITICAL' x x
  10852. 'GIMPLE_OMP_FOR' x x
  10853. 'GIMPLE_OMP_MASTER' x x
  10854. 'GIMPLE_OMP_ORDERED' x x
  10855. 'GIMPLE_OMP_PARALLEL' x x
  10856. 'GIMPLE_OMP_RETURN' x x
  10857. 'GIMPLE_OMP_SECTION' x x
  10858. 'GIMPLE_OMP_SECTIONS' x x
  10859. 'GIMPLE_OMP_SECTIONS_SWITCH' x x
  10860. 'GIMPLE_OMP_SINGLE' x x
  10861. 'GIMPLE_PHI' x
  10862. 'GIMPLE_RESX' x
  10863. 'GIMPLE_RETURN' x x
  10864. 'GIMPLE_SWITCH' x x
  10865. 'GIMPLE_TRY' x
  10866. 
  10867. File: gccint.info, Node: GIMPLE Exception Handling, Next: Temporaries, Prev: GIMPLE instruction set, Up: GIMPLE
  10868. 12.4 Exception Handling
  10869. =======================
  10870. Other exception handling constructs are represented using
  10871. 'GIMPLE_TRY_CATCH'. 'GIMPLE_TRY_CATCH' has two operands. The first
  10872. operand is a sequence of statements to execute. If executing these
  10873. statements does not throw an exception, then the second operand is
  10874. ignored. Otherwise, if an exception is thrown, then the second operand
  10875. of the 'GIMPLE_TRY_CATCH' is checked. The second operand may have the
  10876. following forms:
  10877. 1. A sequence of statements to execute. When an exception occurs,
  10878. these statements are executed, and then the exception is rethrown.
  10879. 2. A sequence of 'GIMPLE_CATCH' statements. Each 'GIMPLE_CATCH' has a
  10880. list of applicable exception types and handler code. If the thrown
  10881. exception matches one of the caught types, the associated handler
  10882. code is executed. If the handler code falls off the bottom,
  10883. execution continues after the original 'GIMPLE_TRY_CATCH'.
  10884. 3. A 'GIMPLE_EH_FILTER' statement. This has a list of permitted
  10885. exception types, and code to handle a match failure. If the thrown
  10886. exception does not match one of the allowed types, the associated
  10887. match failure code is executed. If the thrown exception does
  10888. match, it continues unwinding the stack looking for the next
  10889. handler.
  10890. Currently throwing an exception is not directly represented in GIMPLE,
  10891. since it is implemented by calling a function. At some point in the
  10892. future we will want to add some way to express that the call will throw
  10893. an exception of a known type.
  10894. Just before running the optimizers, the compiler lowers the high-level
  10895. EH constructs above into a set of 'goto's, magic labels, and EH regions.
  10896. Continuing to unwind at the end of a cleanup is represented with a
  10897. 'GIMPLE_RESX'.
  10898. 
  10899. File: gccint.info, Node: Temporaries, Next: Operands, Prev: GIMPLE Exception Handling, Up: GIMPLE
  10900. 12.5 Temporaries
  10901. ================
  10902. When gimplification encounters a subexpression that is too complex, it
  10903. creates a new temporary variable to hold the value of the subexpression,
  10904. and adds a new statement to initialize it before the current statement.
  10905. These special temporaries are known as 'expression temporaries', and are
  10906. allocated using 'get_formal_tmp_var'. The compiler tries to always
  10907. evaluate identical expressions into the same temporary, to simplify
  10908. elimination of redundant calculations.
  10909. We can only use expression temporaries when we know that it will not be
  10910. reevaluated before its value is used, and that it will not be otherwise
  10911. modified(1). Other temporaries can be allocated using
  10912. 'get_initialized_tmp_var' or 'create_tmp_var'.
  10913. Currently, an expression like 'a = b + 5' is not reduced any further.
  10914. We tried converting it to something like
  10915. T1 = b + 5;
  10916. a = T1;
  10917. but this bloated the representation for minimal benefit. However, a
  10918. variable which must live in memory cannot appear in an expression; its
  10919. value is explicitly loaded into a temporary first. Similarly, storing
  10920. the value of an expression to a memory variable goes through a
  10921. temporary.
  10922. ---------- Footnotes ----------
  10923. (1) These restrictions are derived from those in Morgan 4.8.
  10924. 
  10925. File: gccint.info, Node: Operands, Next: Manipulating GIMPLE statements, Prev: Temporaries, Up: GIMPLE
  10926. 12.6 Operands
  10927. =============
  10928. In general, expressions in GIMPLE consist of an operation and the
  10929. appropriate number of simple operands; these operands must either be a
  10930. GIMPLE rvalue ('is_gimple_val'), i.e. a constant or a register variable.
  10931. More complex operands are factored out into temporaries, so that
  10932. a = b + c + d
  10933. becomes
  10934. T1 = b + c;
  10935. a = T1 + d;
  10936. The same rule holds for arguments to a 'GIMPLE_CALL'.
  10937. The target of an assignment is usually a variable, but can also be a
  10938. 'MEM_REF' or a compound lvalue as described below.
  10939. * Menu:
  10940. * Compound Expressions::
  10941. * Compound Lvalues::
  10942. * Conditional Expressions::
  10943. * Logical Operators::
  10944. 
  10945. File: gccint.info, Node: Compound Expressions, Next: Compound Lvalues, Up: Operands
  10946. 12.6.1 Compound Expressions
  10947. ---------------------------
  10948. The left-hand side of a C comma expression is simply moved into a
  10949. separate statement.
  10950. 
  10951. File: gccint.info, Node: Compound Lvalues, Next: Conditional Expressions, Prev: Compound Expressions, Up: Operands
  10952. 12.6.2 Compound Lvalues
  10953. -----------------------
  10954. Currently compound lvalues involving array and structure field
  10955. references are not broken down; an expression like 'a.b[2] = 42' is not
  10956. reduced any further (though complex array subscripts are). This
  10957. restriction is a workaround for limitations in later optimizers; if we
  10958. were to convert this to
  10959. T1 = &a.b;
  10960. T1[2] = 42;
  10961. alias analysis would not remember that the reference to 'T1[2]' came by
  10962. way of 'a.b', so it would think that the assignment could alias another
  10963. member of 'a'; this broke 'struct-alias-1.c'. Future optimizer
  10964. improvements may make this limitation unnecessary.
  10965. 
  10966. File: gccint.info, Node: Conditional Expressions, Next: Logical Operators, Prev: Compound Lvalues, Up: Operands
  10967. 12.6.3 Conditional Expressions
  10968. ------------------------------
  10969. A C '?:' expression is converted into an 'if' statement with each branch
  10970. assigning to the same temporary. So,
  10971. a = b ? c : d;
  10972. becomes
  10973. if (b == 1)
  10974. T1 = c;
  10975. else
  10976. T1 = d;
  10977. a = T1;
  10978. The GIMPLE level if-conversion pass re-introduces '?:' expression, if
  10979. appropriate. It is used to vectorize loops with conditions using vector
  10980. conditional operations.
  10981. Note that in GIMPLE, 'if' statements are represented using
  10982. 'GIMPLE_COND', as described below.
  10983. 
  10984. File: gccint.info, Node: Logical Operators, Prev: Conditional Expressions, Up: Operands
  10985. 12.6.4 Logical Operators
  10986. ------------------------
  10987. Except when they appear in the condition operand of a 'GIMPLE_COND',
  10988. logical 'and' and 'or' operators are simplified as follows: 'a = b && c'
  10989. becomes
  10990. T1 = (bool)b;
  10991. if (T1 == true)
  10992. T1 = (bool)c;
  10993. a = T1;
  10994. Note that 'T1' in this example cannot be an expression temporary,
  10995. because it has two different assignments.
  10996. 12.6.5 Manipulating operands
  10997. ----------------------------
  10998. All gimple operands are of type 'tree'. But only certain types of trees
  10999. are allowed to be used as operand tuples. Basic validation is
  11000. controlled by the function 'get_gimple_rhs_class', which given a tree
  11001. code, returns an 'enum' with the following values of type 'enum
  11002. gimple_rhs_class'
  11003. * 'GIMPLE_INVALID_RHS' The tree cannot be used as a GIMPLE operand.
  11004. * 'GIMPLE_TERNARY_RHS' The tree is a valid GIMPLE ternary operation.
  11005. * 'GIMPLE_BINARY_RHS' The tree is a valid GIMPLE binary operation.
  11006. * 'GIMPLE_UNARY_RHS' The tree is a valid GIMPLE unary operation.
  11007. * 'GIMPLE_SINGLE_RHS' The tree is a single object, that cannot be
  11008. split into simpler operands (for instance, 'SSA_NAME', 'VAR_DECL',
  11009. 'COMPONENT_REF', etc).
  11010. This operand class also acts as an escape hatch for tree nodes that
  11011. may be flattened out into the operand vector, but would need more
  11012. than two slots on the RHS. For instance, a 'COND_EXPR' expression
  11013. of the form '(a op b) ? x : y' could be flattened out on the
  11014. operand vector using 4 slots, but it would also require additional
  11015. processing to distinguish 'c = a op b' from 'c = a op b ? x : y'.
  11016. Something similar occurs with 'ASSERT_EXPR'. In time, these
  11017. special case tree expressions should be flattened into the operand
  11018. vector.
  11019. For tree nodes in the categories 'GIMPLE_TERNARY_RHS',
  11020. 'GIMPLE_BINARY_RHS' and 'GIMPLE_UNARY_RHS', they cannot be stored inside
  11021. tuples directly. They first need to be flattened and separated into
  11022. individual components. For instance, given the GENERIC expression
  11023. a = b + c
  11024. its tree representation is:
  11025. MODIFY_EXPR <VAR_DECL <a>, PLUS_EXPR <VAR_DECL <b>, VAR_DECL <c>>>
  11026. In this case, the GIMPLE form for this statement is logically identical
  11027. to its GENERIC form but in GIMPLE, the 'PLUS_EXPR' on the RHS of the
  11028. assignment is not represented as a tree, instead the two operands are
  11029. taken out of the 'PLUS_EXPR' sub-tree and flattened into the GIMPLE
  11030. tuple as follows:
  11031. GIMPLE_ASSIGN <PLUS_EXPR, VAR_DECL <a>, VAR_DECL <b>, VAR_DECL <c>>
  11032. 12.6.6 Operand vector allocation
  11033. --------------------------------
  11034. The operand vector is stored at the bottom of the three tuple structures
  11035. that accept operands. This means, that depending on the code of a given
  11036. statement, its operand vector will be at different offsets from the base
  11037. of the structure. To access tuple operands use the following accessors
  11038. -- GIMPLE function: unsigned gimple_num_ops (gimple g)
  11039. Returns the number of operands in statement G.
  11040. -- GIMPLE function: tree gimple_op (gimple g, unsigned i)
  11041. Returns operand 'I' from statement 'G'.
  11042. -- GIMPLE function: tree * gimple_ops (gimple g)
  11043. Returns a pointer into the operand vector for statement 'G'. This
  11044. is computed using an internal table called 'gimple_ops_offset_'[].
  11045. This table is indexed by the gimple code of 'G'.
  11046. When the compiler is built, this table is filled-in using the sizes
  11047. of the structures used by each statement code defined in
  11048. gimple.def. Since the operand vector is at the bottom of the
  11049. structure, for a gimple code 'C' the offset is computed as sizeof
  11050. (struct-of 'C') - sizeof (tree).
  11051. This mechanism adds one memory indirection to every access when
  11052. using 'gimple_op'(), if this becomes a bottleneck, a pass can
  11053. choose to memoize the result from 'gimple_ops'() and use that to
  11054. access the operands.
  11055. 12.6.7 Operand validation
  11056. -------------------------
  11057. When adding a new operand to a gimple statement, the operand will be
  11058. validated according to what each tuple accepts in its operand vector.
  11059. These predicates are called by the 'gimple_NAME_set_...()'. Each tuple
  11060. will use one of the following predicates (Note, this list is not
  11061. exhaustive):
  11062. -- GIMPLE function: bool is_gimple_val (tree t)
  11063. Returns true if t is a "GIMPLE value", which are all the
  11064. non-addressable stack variables (variables for which
  11065. 'is_gimple_reg' returns true) and constants (expressions for which
  11066. 'is_gimple_min_invariant' returns true).
  11067. -- GIMPLE function: bool is_gimple_addressable (tree t)
  11068. Returns true if t is a symbol or memory reference whose address can
  11069. be taken.
  11070. -- GIMPLE function: bool is_gimple_asm_val (tree t)
  11071. Similar to 'is_gimple_val' but it also accepts hard registers.
  11072. -- GIMPLE function: bool is_gimple_call_addr (tree t)
  11073. Return true if t is a valid expression to use as the function
  11074. called by a 'GIMPLE_CALL'.
  11075. -- GIMPLE function: bool is_gimple_mem_ref_addr (tree t)
  11076. Return true if t is a valid expression to use as first operand of a
  11077. 'MEM_REF' expression.
  11078. -- GIMPLE function: bool is_gimple_constant (tree t)
  11079. Return true if t is a valid gimple constant.
  11080. -- GIMPLE function: bool is_gimple_min_invariant (tree t)
  11081. Return true if t is a valid minimal invariant. This is different
  11082. from constants, in that the specific value of t may not be known at
  11083. compile time, but it is known that it doesn't change (e.g., the
  11084. address of a function local variable).
  11085. -- GIMPLE function: bool is_gimple_ip_invariant (tree t)
  11086. Return true if t is an interprocedural invariant. This means that
  11087. t is a valid invariant in all functions (e.g. it can be an address
  11088. of a global variable but not of a local one).
  11089. -- GIMPLE function: bool is_gimple_ip_invariant_address (tree t)
  11090. Return true if t is an 'ADDR_EXPR' that does not change once the
  11091. program is running (and which is valid in all functions).
  11092. 12.6.8 Statement validation
  11093. ---------------------------
  11094. -- GIMPLE function: bool is_gimple_assign (gimple g)
  11095. Return true if the code of g is 'GIMPLE_ASSIGN'.
  11096. -- GIMPLE function: bool is_gimple_call (gimple g)
  11097. Return true if the code of g is 'GIMPLE_CALL'.
  11098. -- GIMPLE function: bool is_gimple_debug (gimple g)
  11099. Return true if the code of g is 'GIMPLE_DEBUG'.
  11100. -- GIMPLE function: bool gimple_assign_cast_p (const_gimple g)
  11101. Return true if g is a 'GIMPLE_ASSIGN' that performs a type cast
  11102. operation.
  11103. -- GIMPLE function: bool gimple_debug_bind_p (gimple g)
  11104. Return true if g is a 'GIMPLE_DEBUG' that binds the value of an
  11105. expression to a variable.
  11106. -- GIMPLE function: bool is_gimple_omp (gimple g)
  11107. Return true if g is any of the OpenMP codes.
  11108. -- GIMPLE function: bool gimple_debug_begin_stmt_p (gimple g)
  11109. Return true if g is a 'GIMPLE_DEBUG' that marks the beginning of a
  11110. source statement.
  11111. -- GIMPLE function: bool gimple_debug_inline_entry_p (gimple g)
  11112. Return true if g is a 'GIMPLE_DEBUG' that marks the entry point of
  11113. an inlined function.
  11114. -- GIMPLE function: bool gimple_debug_nonbind_marker_p (gimple g)
  11115. Return true if g is a 'GIMPLE_DEBUG' that marks a program location,
  11116. without any variable binding.
  11117. 
  11118. File: gccint.info, Node: Manipulating GIMPLE statements, Next: Tuple specific accessors, Prev: Operands, Up: GIMPLE
  11119. 12.7 Manipulating GIMPLE statements
  11120. ===================================
  11121. This section documents all the functions available to handle each of the
  11122. GIMPLE instructions.
  11123. 12.7.1 Common accessors
  11124. -----------------------
  11125. The following are common accessors for gimple statements.
  11126. -- GIMPLE function: enum gimple_code gimple_code (gimple g)
  11127. Return the code for statement 'G'.
  11128. -- GIMPLE function: basic_block gimple_bb (gimple g)
  11129. Return the basic block to which statement 'G' belongs to.
  11130. -- GIMPLE function: tree gimple_block (gimple g)
  11131. Return the lexical scope block holding statement 'G'.
  11132. -- GIMPLE function: tree gimple_expr_type (gimple stmt)
  11133. Return the type of the main expression computed by 'STMT'. Return
  11134. 'void_type_node' if 'STMT' computes nothing. This will only return
  11135. something meaningful for 'GIMPLE_ASSIGN', 'GIMPLE_COND' and
  11136. 'GIMPLE_CALL'. For all other tuple codes, it will return
  11137. 'void_type_node'.
  11138. -- GIMPLE function: enum tree_code gimple_expr_code (gimple stmt)
  11139. Return the tree code for the expression computed by 'STMT'. This
  11140. is only meaningful for 'GIMPLE_CALL', 'GIMPLE_ASSIGN' and
  11141. 'GIMPLE_COND'. If 'STMT' is 'GIMPLE_CALL', it will return
  11142. 'CALL_EXPR'. For 'GIMPLE_COND', it returns the code of the
  11143. comparison predicate. For 'GIMPLE_ASSIGN' it returns the code of
  11144. the operation performed by the 'RHS' of the assignment.
  11145. -- GIMPLE function: void gimple_set_block (gimple g, tree block)
  11146. Set the lexical scope block of 'G' to 'BLOCK'.
  11147. -- GIMPLE function: location_t gimple_locus (gimple g)
  11148. Return locus information for statement 'G'.
  11149. -- GIMPLE function: void gimple_set_locus (gimple g, location_t locus)
  11150. Set locus information for statement 'G'.
  11151. -- GIMPLE function: bool gimple_locus_empty_p (gimple g)
  11152. Return true if 'G' does not have locus information.
  11153. -- GIMPLE function: bool gimple_no_warning_p (gimple stmt)
  11154. Return true if no warnings should be emitted for statement 'STMT'.
  11155. -- GIMPLE function: void gimple_set_visited (gimple stmt, bool
  11156. visited_p)
  11157. Set the visited status on statement 'STMT' to 'VISITED_P'.
  11158. -- GIMPLE function: bool gimple_visited_p (gimple stmt)
  11159. Return the visited status on statement 'STMT'.
  11160. -- GIMPLE function: void gimple_set_plf (gimple stmt, enum plf_mask
  11161. plf, bool val_p)
  11162. Set pass local flag 'PLF' on statement 'STMT' to 'VAL_P'.
  11163. -- GIMPLE function: unsigned int gimple_plf (gimple stmt, enum plf_mask
  11164. plf)
  11165. Return the value of pass local flag 'PLF' on statement 'STMT'.
  11166. -- GIMPLE function: bool gimple_has_ops (gimple g)
  11167. Return true if statement 'G' has register or memory operands.
  11168. -- GIMPLE function: bool gimple_has_mem_ops (gimple g)
  11169. Return true if statement 'G' has memory operands.
  11170. -- GIMPLE function: unsigned gimple_num_ops (gimple g)
  11171. Return the number of operands for statement 'G'.
  11172. -- GIMPLE function: tree * gimple_ops (gimple g)
  11173. Return the array of operands for statement 'G'.
  11174. -- GIMPLE function: tree gimple_op (gimple g, unsigned i)
  11175. Return operand 'I' for statement 'G'.
  11176. -- GIMPLE function: tree * gimple_op_ptr (gimple g, unsigned i)
  11177. Return a pointer to operand 'I' for statement 'G'.
  11178. -- GIMPLE function: void gimple_set_op (gimple g, unsigned i, tree op)
  11179. Set operand 'I' of statement 'G' to 'OP'.
  11180. -- GIMPLE function: bitmap gimple_addresses_taken (gimple stmt)
  11181. Return the set of symbols that have had their address taken by
  11182. 'STMT'.
  11183. -- GIMPLE function: struct def_optype_d * gimple_def_ops (gimple g)
  11184. Return the set of 'DEF' operands for statement 'G'.
  11185. -- GIMPLE function: void gimple_set_def_ops (gimple g, struct
  11186. def_optype_d *def)
  11187. Set 'DEF' to be the set of 'DEF' operands for statement 'G'.
  11188. -- GIMPLE function: struct use_optype_d * gimple_use_ops (gimple g)
  11189. Return the set of 'USE' operands for statement 'G'.
  11190. -- GIMPLE function: void gimple_set_use_ops (gimple g, struct
  11191. use_optype_d *use)
  11192. Set 'USE' to be the set of 'USE' operands for statement 'G'.
  11193. -- GIMPLE function: struct voptype_d * gimple_vuse_ops (gimple g)
  11194. Return the set of 'VUSE' operands for statement 'G'.
  11195. -- GIMPLE function: void gimple_set_vuse_ops (gimple g, struct
  11196. voptype_d *ops)
  11197. Set 'OPS' to be the set of 'VUSE' operands for statement 'G'.
  11198. -- GIMPLE function: struct voptype_d * gimple_vdef_ops (gimple g)
  11199. Return the set of 'VDEF' operands for statement 'G'.
  11200. -- GIMPLE function: void gimple_set_vdef_ops (gimple g, struct
  11201. voptype_d *ops)
  11202. Set 'OPS' to be the set of 'VDEF' operands for statement 'G'.
  11203. -- GIMPLE function: bitmap gimple_loaded_syms (gimple g)
  11204. Return the set of symbols loaded by statement 'G'. Each element of
  11205. the set is the 'DECL_UID' of the corresponding symbol.
  11206. -- GIMPLE function: bitmap gimple_stored_syms (gimple g)
  11207. Return the set of symbols stored by statement 'G'. Each element of
  11208. the set is the 'DECL_UID' of the corresponding symbol.
  11209. -- GIMPLE function: bool gimple_modified_p (gimple g)
  11210. Return true if statement 'G' has operands and the modified field
  11211. has been set.
  11212. -- GIMPLE function: bool gimple_has_volatile_ops (gimple stmt)
  11213. Return true if statement 'STMT' contains volatile operands.
  11214. -- GIMPLE function: void gimple_set_has_volatile_ops (gimple stmt, bool
  11215. volatilep)
  11216. Return true if statement 'STMT' contains volatile operands.
  11217. -- GIMPLE function: void update_stmt (gimple s)
  11218. Mark statement 'S' as modified, and update it.
  11219. -- GIMPLE function: void update_stmt_if_modified (gimple s)
  11220. Update statement 'S' if it has been marked modified.
  11221. -- GIMPLE function: gimple gimple_copy (gimple stmt)
  11222. Return a deep copy of statement 'STMT'.
  11223. 
  11224. File: gccint.info, Node: Tuple specific accessors, Next: GIMPLE sequences, Prev: Manipulating GIMPLE statements, Up: GIMPLE
  11225. 12.8 Tuple specific accessors
  11226. =============================
  11227. * Menu:
  11228. * GIMPLE_ASM::
  11229. * GIMPLE_ASSIGN::
  11230. * GIMPLE_BIND::
  11231. * GIMPLE_CALL::
  11232. * GIMPLE_CATCH::
  11233. * GIMPLE_COND::
  11234. * GIMPLE_DEBUG::
  11235. * GIMPLE_EH_FILTER::
  11236. * GIMPLE_LABEL::
  11237. * GIMPLE_GOTO::
  11238. * GIMPLE_NOP::
  11239. * GIMPLE_OMP_ATOMIC_LOAD::
  11240. * GIMPLE_OMP_ATOMIC_STORE::
  11241. * GIMPLE_OMP_CONTINUE::
  11242. * GIMPLE_OMP_CRITICAL::
  11243. * GIMPLE_OMP_FOR::
  11244. * GIMPLE_OMP_MASTER::
  11245. * GIMPLE_OMP_ORDERED::
  11246. * GIMPLE_OMP_PARALLEL::
  11247. * GIMPLE_OMP_RETURN::
  11248. * GIMPLE_OMP_SECTION::
  11249. * GIMPLE_OMP_SECTIONS::
  11250. * GIMPLE_OMP_SINGLE::
  11251. * GIMPLE_PHI::
  11252. * GIMPLE_RESX::
  11253. * GIMPLE_RETURN::
  11254. * GIMPLE_SWITCH::
  11255. * GIMPLE_TRY::
  11256. * GIMPLE_WITH_CLEANUP_EXPR::
  11257. 
  11258. File: gccint.info, Node: GIMPLE_ASM, Next: GIMPLE_ASSIGN, Up: Tuple specific accessors
  11259. 12.8.1 'GIMPLE_ASM'
  11260. -------------------
  11261. -- GIMPLE function: gasm *gimple_build_asm_vec ( const char *string,
  11262. vec<tree, va_gc> *inputs, vec<tree, va_gc> *outputs, vec<tree,
  11263. va_gc> *clobbers, vec<tree, va_gc> *labels)
  11264. Build a 'GIMPLE_ASM' statement. This statement is used for
  11265. building in-line assembly constructs. 'STRING' is the assembly
  11266. code. 'INPUTS', 'OUTPUTS', 'CLOBBERS' and 'LABELS' are the inputs,
  11267. outputs, clobbered registers and labels.
  11268. -- GIMPLE function: unsigned gimple_asm_ninputs (const gasm *g)
  11269. Return the number of input operands for 'GIMPLE_ASM' 'G'.
  11270. -- GIMPLE function: unsigned gimple_asm_noutputs (const gasm *g)
  11271. Return the number of output operands for 'GIMPLE_ASM' 'G'.
  11272. -- GIMPLE function: unsigned gimple_asm_nclobbers (const gasm *g)
  11273. Return the number of clobber operands for 'GIMPLE_ASM' 'G'.
  11274. -- GIMPLE function: tree gimple_asm_input_op (const gasm *g, unsigned
  11275. index)
  11276. Return input operand 'INDEX' of 'GIMPLE_ASM' 'G'.
  11277. -- GIMPLE function: void gimple_asm_set_input_op (gasm *g, unsigned
  11278. index, tree in_op)
  11279. Set 'IN_OP' to be input operand 'INDEX' in 'GIMPLE_ASM' 'G'.
  11280. -- GIMPLE function: tree gimple_asm_output_op (const gasm *g, unsigned
  11281. index)
  11282. Return output operand 'INDEX' of 'GIMPLE_ASM' 'G'.
  11283. -- GIMPLE function: void gimple_asm_set_output_op (gasm *g, unsigned
  11284. index, tree out_op)
  11285. Set 'OUT_OP' to be output operand 'INDEX' in 'GIMPLE_ASM' 'G'.
  11286. -- GIMPLE function: tree gimple_asm_clobber_op (const gasm *g, unsigned
  11287. index)
  11288. Return clobber operand 'INDEX' of 'GIMPLE_ASM' 'G'.
  11289. -- GIMPLE function: void gimple_asm_set_clobber_op (gasm *g, unsigned
  11290. index, tree clobber_op)
  11291. Set 'CLOBBER_OP' to be clobber operand 'INDEX' in 'GIMPLE_ASM' 'G'.
  11292. -- GIMPLE function: const char * gimple_asm_string (const gasm *g)
  11293. Return the string representing the assembly instruction in
  11294. 'GIMPLE_ASM' 'G'.
  11295. -- GIMPLE function: bool gimple_asm_volatile_p (const gasm *g)
  11296. Return true if 'G' is an asm statement marked volatile.
  11297. -- GIMPLE function: void gimple_asm_set_volatile (gasm *g, bool
  11298. volatile_p)
  11299. Mark asm statement 'G' as volatile or non-volatile based on
  11300. 'VOLATILE_P'.
  11301. 
  11302. File: gccint.info, Node: GIMPLE_ASSIGN, Next: GIMPLE_BIND, Prev: GIMPLE_ASM, Up: Tuple specific accessors
  11303. 12.8.2 'GIMPLE_ASSIGN'
  11304. ----------------------
  11305. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, tree rhs)
  11306. Build a 'GIMPLE_ASSIGN' statement. The left-hand side is an lvalue
  11307. passed in lhs. The right-hand side can be either a unary or binary
  11308. tree expression. The expression tree rhs will be flattened and its
  11309. operands assigned to the corresponding operand slots in the new
  11310. statement. This function is useful when you already have a tree
  11311. expression that you want to convert into a tuple. However, try to
  11312. avoid building expression trees for the sole purpose of calling
  11313. this function. If you already have the operands in separate trees,
  11314. it is better to use 'gimple_build_assign' with 'enum tree_code'
  11315. argument and separate arguments for each operand.
  11316. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, enum
  11317. tree_code subcode, tree op1, tree op2, tree op3)
  11318. This function is similar to two operand 'gimple_build_assign', but
  11319. is used to build a 'GIMPLE_ASSIGN' statement when the operands of
  11320. the right-hand side of the assignment are already split into
  11321. different operands.
  11322. The left-hand side is an lvalue passed in lhs. Subcode is the
  11323. 'tree_code' for the right-hand side of the assignment. Op1, op2
  11324. and op3 are the operands.
  11325. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, enum
  11326. tree_code subcode, tree op1, tree op2)
  11327. Like the above 5 operand 'gimple_build_assign', but with the last
  11328. argument 'NULL' - this overload should not be used for
  11329. 'GIMPLE_TERNARY_RHS' assignments.
  11330. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, enum
  11331. tree_code subcode, tree op1)
  11332. Like the above 4 operand 'gimple_build_assign', but with the last
  11333. argument 'NULL' - this overload should be used only for
  11334. 'GIMPLE_UNARY_RHS' and 'GIMPLE_SINGLE_RHS' assignments.
  11335. -- GIMPLE function: gimple gimplify_assign (tree dst, tree src,
  11336. gimple_seq *seq_p)
  11337. Build a new 'GIMPLE_ASSIGN' tuple and append it to the end of
  11338. '*SEQ_P'.
  11339. 'DST'/'SRC' are the destination and source respectively. You can pass
  11340. ungimplified trees in 'DST' or 'SRC', in which case they will be
  11341. converted to a gimple operand if necessary.
  11342. This function returns the newly created 'GIMPLE_ASSIGN' tuple.
  11343. -- GIMPLE function: enum tree_code gimple_assign_rhs_code (gimple g)
  11344. Return the code of the expression computed on the 'RHS' of
  11345. assignment statement 'G'.
  11346. -- GIMPLE function: enum gimple_rhs_class gimple_assign_rhs_class
  11347. (gimple g)
  11348. Return the gimple rhs class of the code for the expression computed
  11349. on the rhs of assignment statement 'G'. This will never return
  11350. 'GIMPLE_INVALID_RHS'.
  11351. -- GIMPLE function: tree gimple_assign_lhs (gimple g)
  11352. Return the 'LHS' of assignment statement 'G'.
  11353. -- GIMPLE function: tree * gimple_assign_lhs_ptr (gimple g)
  11354. Return a pointer to the 'LHS' of assignment statement 'G'.
  11355. -- GIMPLE function: tree gimple_assign_rhs1 (gimple g)
  11356. Return the first operand on the 'RHS' of assignment statement 'G'.
  11357. -- GIMPLE function: tree * gimple_assign_rhs1_ptr (gimple g)
  11358. Return the address of the first operand on the 'RHS' of assignment
  11359. statement 'G'.
  11360. -- GIMPLE function: tree gimple_assign_rhs2 (gimple g)
  11361. Return the second operand on the 'RHS' of assignment statement 'G'.
  11362. -- GIMPLE function: tree * gimple_assign_rhs2_ptr (gimple g)
  11363. Return the address of the second operand on the 'RHS' of assignment
  11364. statement 'G'.
  11365. -- GIMPLE function: tree gimple_assign_rhs3 (gimple g)
  11366. Return the third operand on the 'RHS' of assignment statement 'G'.
  11367. -- GIMPLE function: tree * gimple_assign_rhs3_ptr (gimple g)
  11368. Return the address of the third operand on the 'RHS' of assignment
  11369. statement 'G'.
  11370. -- GIMPLE function: void gimple_assign_set_lhs (gimple g, tree lhs)
  11371. Set 'LHS' to be the 'LHS' operand of assignment statement 'G'.
  11372. -- GIMPLE function: void gimple_assign_set_rhs1 (gimple g, tree rhs)
  11373. Set 'RHS' to be the first operand on the 'RHS' of assignment
  11374. statement 'G'.
  11375. -- GIMPLE function: void gimple_assign_set_rhs2 (gimple g, tree rhs)
  11376. Set 'RHS' to be the second operand on the 'RHS' of assignment
  11377. statement 'G'.
  11378. -- GIMPLE function: void gimple_assign_set_rhs3 (gimple g, tree rhs)
  11379. Set 'RHS' to be the third operand on the 'RHS' of assignment
  11380. statement 'G'.
  11381. -- GIMPLE function: bool gimple_assign_cast_p (const_gimple s)
  11382. Return true if 'S' is a type-cast assignment.
  11383. 
  11384. File: gccint.info, Node: GIMPLE_BIND, Next: GIMPLE_CALL, Prev: GIMPLE_ASSIGN, Up: Tuple specific accessors
  11385. 12.8.3 'GIMPLE_BIND'
  11386. --------------------
  11387. -- GIMPLE function: gbind *gimple_build_bind (tree vars, gimple_seq
  11388. body)
  11389. Build a 'GIMPLE_BIND' statement with a list of variables in 'VARS'
  11390. and a body of statements in sequence 'BODY'.
  11391. -- GIMPLE function: tree gimple_bind_vars (const gbind *g)
  11392. Return the variables declared in the 'GIMPLE_BIND' statement 'G'.
  11393. -- GIMPLE function: void gimple_bind_set_vars (gbind *g, tree vars)
  11394. Set 'VARS' to be the set of variables declared in the 'GIMPLE_BIND'
  11395. statement 'G'.
  11396. -- GIMPLE function: void gimple_bind_append_vars (gbind *g, tree vars)
  11397. Append 'VARS' to the set of variables declared in the 'GIMPLE_BIND'
  11398. statement 'G'.
  11399. -- GIMPLE function: gimple_seq gimple_bind_body (gbind *g)
  11400. Return the GIMPLE sequence contained in the 'GIMPLE_BIND' statement
  11401. 'G'.
  11402. -- GIMPLE function: void gimple_bind_set_body (gbind *g, gimple_seq
  11403. seq)
  11404. Set 'SEQ' to be sequence contained in the 'GIMPLE_BIND' statement
  11405. 'G'.
  11406. -- GIMPLE function: void gimple_bind_add_stmt (gbind *gs, gimple stmt)
  11407. Append a statement to the end of a 'GIMPLE_BIND''s body.
  11408. -- GIMPLE function: void gimple_bind_add_seq (gbind *gs, gimple_seq
  11409. seq)
  11410. Append a sequence of statements to the end of a 'GIMPLE_BIND''s
  11411. body.
  11412. -- GIMPLE function: tree gimple_bind_block (const gbind *g)
  11413. Return the 'TREE_BLOCK' node associated with 'GIMPLE_BIND'
  11414. statement 'G'. This is analogous to the 'BIND_EXPR_BLOCK' field in
  11415. trees.
  11416. -- GIMPLE function: void gimple_bind_set_block (gbind *g, tree block)
  11417. Set 'BLOCK' to be the 'TREE_BLOCK' node associated with
  11418. 'GIMPLE_BIND' statement 'G'.
  11419. 
  11420. File: gccint.info, Node: GIMPLE_CALL, Next: GIMPLE_CATCH, Prev: GIMPLE_BIND, Up: Tuple specific accessors
  11421. 12.8.4 'GIMPLE_CALL'
  11422. --------------------
  11423. -- GIMPLE function: gcall *gimple_build_call (tree fn, unsigned nargs,
  11424. ...)
  11425. Build a 'GIMPLE_CALL' statement to function 'FN'. The argument
  11426. 'FN' must be either a 'FUNCTION_DECL' or a gimple call address as
  11427. determined by 'is_gimple_call_addr'. 'NARGS' are the number of
  11428. arguments. The rest of the arguments follow the argument 'NARGS',
  11429. and must be trees that are valid as rvalues in gimple (i.e., each
  11430. operand is validated with 'is_gimple_operand').
  11431. -- GIMPLE function: gcall *gimple_build_call_from_tree (tree call_expr,
  11432. tree fnptrtype)
  11433. Build a 'GIMPLE_CALL' from a 'CALL_EXPR' node. The arguments and
  11434. the function are taken from the expression directly. The type of
  11435. the 'GIMPLE_CALL' is set from the second parameter passed by a
  11436. caller. This routine assumes that 'call_expr' is already in GIMPLE
  11437. form. That is, its operands are GIMPLE values and the function
  11438. call needs no further simplification. All the call flags in
  11439. 'call_expr' are copied over to the new 'GIMPLE_CALL'.
  11440. -- GIMPLE function: gcall *gimple_build_call_vec (tree fn, vec<tree>
  11441. args)
  11442. Identical to 'gimple_build_call' but the arguments are stored in a
  11443. 'vec<tree>'.
  11444. -- GIMPLE function: tree gimple_call_lhs (gimple g)
  11445. Return the 'LHS' of call statement 'G'.
  11446. -- GIMPLE function: tree * gimple_call_lhs_ptr (gimple g)
  11447. Return a pointer to the 'LHS' of call statement 'G'.
  11448. -- GIMPLE function: void gimple_call_set_lhs (gimple g, tree lhs)
  11449. Set 'LHS' to be the 'LHS' operand of call statement 'G'.
  11450. -- GIMPLE function: tree gimple_call_fn (gimple g)
  11451. Return the tree node representing the function called by call
  11452. statement 'G'.
  11453. -- GIMPLE function: void gimple_call_set_fn (gcall *g, tree fn)
  11454. Set 'FN' to be the function called by call statement 'G'. This has
  11455. to be a gimple value specifying the address of the called function.
  11456. -- GIMPLE function: tree gimple_call_fndecl (gimple g)
  11457. If a given 'GIMPLE_CALL''s callee is a 'FUNCTION_DECL', return it.
  11458. Otherwise return 'NULL'. This function is analogous to
  11459. 'get_callee_fndecl' in 'GENERIC'.
  11460. -- GIMPLE function: tree gimple_call_set_fndecl (gimple g, tree fndecl)
  11461. Set the called function to 'FNDECL'.
  11462. -- GIMPLE function: tree gimple_call_return_type (const gcall *g)
  11463. Return the type returned by call statement 'G'.
  11464. -- GIMPLE function: tree gimple_call_chain (gimple g)
  11465. Return the static chain for call statement 'G'.
  11466. -- GIMPLE function: void gimple_call_set_chain (gcall *g, tree chain)
  11467. Set 'CHAIN' to be the static chain for call statement 'G'.
  11468. -- GIMPLE function: unsigned gimple_call_num_args (gimple g)
  11469. Return the number of arguments used by call statement 'G'.
  11470. -- GIMPLE function: tree gimple_call_arg (gimple g, unsigned index)
  11471. Return the argument at position 'INDEX' for call statement 'G'.
  11472. The first argument is 0.
  11473. -- GIMPLE function: tree * gimple_call_arg_ptr (gimple g, unsigned
  11474. index)
  11475. Return a pointer to the argument at position 'INDEX' for call
  11476. statement 'G'.
  11477. -- GIMPLE function: void gimple_call_set_arg (gimple g, unsigned index,
  11478. tree arg)
  11479. Set 'ARG' to be the argument at position 'INDEX' for call statement
  11480. 'G'.
  11481. -- GIMPLE function: void gimple_call_set_tail (gcall *s)
  11482. Mark call statement 'S' as being a tail call (i.e., a call just
  11483. before the exit of a function). These calls are candidate for tail
  11484. call optimization.
  11485. -- GIMPLE function: bool gimple_call_tail_p (gcall *s)
  11486. Return true if 'GIMPLE_CALL' 'S' is marked as a tail call.
  11487. -- GIMPLE function: bool gimple_call_noreturn_p (gimple s)
  11488. Return true if 'S' is a noreturn call.
  11489. -- GIMPLE function: gimple gimple_call_copy_skip_args (gcall *stmt,
  11490. bitmap args_to_skip)
  11491. Build a 'GIMPLE_CALL' identical to 'STMT' but skipping the
  11492. arguments in the positions marked by the set 'ARGS_TO_SKIP'.
  11493. 
  11494. File: gccint.info, Node: GIMPLE_CATCH, Next: GIMPLE_COND, Prev: GIMPLE_CALL, Up: Tuple specific accessors
  11495. 12.8.5 'GIMPLE_CATCH'
  11496. ---------------------
  11497. -- GIMPLE function: gcatch *gimple_build_catch (tree types, gimple_seq
  11498. handler)
  11499. Build a 'GIMPLE_CATCH' statement. 'TYPES' are the tree types this
  11500. catch handles. 'HANDLER' is a sequence of statements with the code
  11501. for the handler.
  11502. -- GIMPLE function: tree gimple_catch_types (const gcatch *g)
  11503. Return the types handled by 'GIMPLE_CATCH' statement 'G'.
  11504. -- GIMPLE function: tree * gimple_catch_types_ptr (gcatch *g)
  11505. Return a pointer to the types handled by 'GIMPLE_CATCH' statement
  11506. 'G'.
  11507. -- GIMPLE function: gimple_seq gimple_catch_handler (gcatch *g)
  11508. Return the GIMPLE sequence representing the body of the handler of
  11509. 'GIMPLE_CATCH' statement 'G'.
  11510. -- GIMPLE function: void gimple_catch_set_types (gcatch *g, tree t)
  11511. Set 'T' to be the set of types handled by 'GIMPLE_CATCH' 'G'.
  11512. -- GIMPLE function: void gimple_catch_set_handler (gcatch *g,
  11513. gimple_seq handler)
  11514. Set 'HANDLER' to be the body of 'GIMPLE_CATCH' 'G'.
  11515. 
  11516. File: gccint.info, Node: GIMPLE_COND, Next: GIMPLE_DEBUG, Prev: GIMPLE_CATCH, Up: Tuple specific accessors
  11517. 12.8.6 'GIMPLE_COND'
  11518. --------------------
  11519. -- GIMPLE function: gcond *gimple_build_cond ( enum tree_code
  11520. pred_code, tree lhs, tree rhs, tree t_label, tree f_label)
  11521. Build a 'GIMPLE_COND' statement. 'A' 'GIMPLE_COND' statement
  11522. compares 'LHS' and 'RHS' and if the condition in 'PRED_CODE' is
  11523. true, jump to the label in 't_label', otherwise jump to the label
  11524. in 'f_label'. 'PRED_CODE' are relational operator tree codes like
  11525. 'EQ_EXPR', 'LT_EXPR', 'LE_EXPR', 'NE_EXPR', etc.
  11526. -- GIMPLE function: gcond *gimple_build_cond_from_tree (tree cond, tree
  11527. t_label, tree f_label)
  11528. Build a 'GIMPLE_COND' statement from the conditional expression
  11529. tree 'COND'. 'T_LABEL' and 'F_LABEL' are as in
  11530. 'gimple_build_cond'.
  11531. -- GIMPLE function: enum tree_code gimple_cond_code (gimple g)
  11532. Return the code of the predicate computed by conditional statement
  11533. 'G'.
  11534. -- GIMPLE function: void gimple_cond_set_code (gcond *g, enum tree_code
  11535. code)
  11536. Set 'CODE' to be the predicate code for the conditional statement
  11537. 'G'.
  11538. -- GIMPLE function: tree gimple_cond_lhs (gimple g)
  11539. Return the 'LHS' of the predicate computed by conditional statement
  11540. 'G'.
  11541. -- GIMPLE function: void gimple_cond_set_lhs (gcond *g, tree lhs)
  11542. Set 'LHS' to be the 'LHS' operand of the predicate computed by
  11543. conditional statement 'G'.
  11544. -- GIMPLE function: tree gimple_cond_rhs (gimple g)
  11545. Return the 'RHS' operand of the predicate computed by conditional
  11546. 'G'.
  11547. -- GIMPLE function: void gimple_cond_set_rhs (gcond *g, tree rhs)
  11548. Set 'RHS' to be the 'RHS' operand of the predicate computed by
  11549. conditional statement 'G'.
  11550. -- GIMPLE function: tree gimple_cond_true_label (const gcond *g)
  11551. Return the label used by conditional statement 'G' when its
  11552. predicate evaluates to true.
  11553. -- GIMPLE function: void gimple_cond_set_true_label (gcond *g, tree
  11554. label)
  11555. Set 'LABEL' to be the label used by conditional statement 'G' when
  11556. its predicate evaluates to true.
  11557. -- GIMPLE function: void gimple_cond_set_false_label (gcond *g, tree
  11558. label)
  11559. Set 'LABEL' to be the label used by conditional statement 'G' when
  11560. its predicate evaluates to false.
  11561. -- GIMPLE function: tree gimple_cond_false_label (const gcond *g)
  11562. Return the label used by conditional statement 'G' when its
  11563. predicate evaluates to false.
  11564. -- GIMPLE function: void gimple_cond_make_false (gcond *g)
  11565. Set the conditional 'COND_STMT' to be of the form 'if (1 == 0)'.
  11566. -- GIMPLE function: void gimple_cond_make_true (gcond *g)
  11567. Set the conditional 'COND_STMT' to be of the form 'if (1 == 1)'.
  11568. 
  11569. File: gccint.info, Node: GIMPLE_DEBUG, Next: GIMPLE_EH_FILTER, Prev: GIMPLE_COND, Up: Tuple specific accessors
  11570. 12.8.7 'GIMPLE_DEBUG'
  11571. ---------------------
  11572. -- GIMPLE function: gdebug *gimple_build_debug_bind (tree var, tree
  11573. value, gimple stmt)
  11574. Build a 'GIMPLE_DEBUG' statement with 'GIMPLE_DEBUG_BIND'
  11575. 'subcode'. The effect of this statement is to tell debug
  11576. information generation machinery that the value of user variable
  11577. 'var' is given by 'value' at that point, and to remain with that
  11578. value until 'var' runs out of scope, a dynamically-subsequent debug
  11579. bind statement overrides the binding, or conflicting values reach a
  11580. control flow merge point. Even if components of the 'value'
  11581. expression change afterwards, the variable is supposed to retain
  11582. the same value, though not necessarily the same location.
  11583. It is expected that 'var' be most often a tree for automatic user
  11584. variables ('VAR_DECL' or 'PARM_DECL') that satisfy the requirements
  11585. for gimple registers, but it may also be a tree for a scalarized
  11586. component of a user variable ('ARRAY_REF', 'COMPONENT_REF'), or a
  11587. debug temporary ('DEBUG_EXPR_DECL').
  11588. As for 'value', it can be an arbitrary tree expression, but it is
  11589. recommended that it be in a suitable form for a gimple assignment
  11590. 'RHS'. It is not expected that user variables that could appear as
  11591. 'var' ever appear in 'value', because in the latter we'd have their
  11592. 'SSA_NAME's instead, but even if they were not in SSA form, user
  11593. variables appearing in 'value' are to be regarded as part of the
  11594. executable code space, whereas those in 'var' are to be regarded as
  11595. part of the source code space. There is no way to refer to the
  11596. value bound to a user variable within a 'value' expression.
  11597. If 'value' is 'GIMPLE_DEBUG_BIND_NOVALUE', debug information
  11598. generation machinery is informed that the variable 'var' is
  11599. unbound, i.e., that its value is indeterminate, which sometimes
  11600. means it is really unavailable, and other times that the compiler
  11601. could not keep track of it.
  11602. Block and location information for the newly-created stmt are taken
  11603. from 'stmt', if given.
  11604. -- GIMPLE function: tree gimple_debug_bind_get_var (gimple stmt)
  11605. Return the user variable VAR that is bound at 'stmt'.
  11606. -- GIMPLE function: tree gimple_debug_bind_get_value (gimple stmt)
  11607. Return the value expression that is bound to a user variable at
  11608. 'stmt'.
  11609. -- GIMPLE function: tree * gimple_debug_bind_get_value_ptr (gimple
  11610. stmt)
  11611. Return a pointer to the value expression that is bound to a user
  11612. variable at 'stmt'.
  11613. -- GIMPLE function: void gimple_debug_bind_set_var (gimple stmt, tree
  11614. var)
  11615. Modify the user variable bound at 'stmt' to VAR.
  11616. -- GIMPLE function: void gimple_debug_bind_set_value (gimple stmt, tree
  11617. var)
  11618. Modify the value bound to the user variable bound at 'stmt' to
  11619. VALUE.
  11620. -- GIMPLE function: void gimple_debug_bind_reset_value (gimple stmt)
  11621. Modify the value bound to the user variable bound at 'stmt' so that
  11622. the variable becomes unbound.
  11623. -- GIMPLE function: bool gimple_debug_bind_has_value_p (gimple stmt)
  11624. Return 'TRUE' if 'stmt' binds a user variable to a value, and
  11625. 'FALSE' if it unbinds the variable.
  11626. -- GIMPLE function: gimple gimple_build_debug_begin_stmt (tree block,
  11627. location_t location)
  11628. Build a 'GIMPLE_DEBUG' statement with 'GIMPLE_DEBUG_BEGIN_STMT'
  11629. 'subcode'. The effect of this statement is to tell debug
  11630. information generation machinery that the user statement at the
  11631. given 'location' and 'block' starts at the point at which the
  11632. statement is inserted. The intent is that side effects (e.g.
  11633. variable bindings) of all prior user statements are observable, and
  11634. that none of the side effects of subsequent user statements are.
  11635. -- GIMPLE function: gimple gimple_build_debug_inline_entry (tree block,
  11636. location_t location)
  11637. Build a 'GIMPLE_DEBUG' statement with 'GIMPLE_DEBUG_INLINE_ENTRY'
  11638. 'subcode'. The effect of this statement is to tell debug
  11639. information generation machinery that a function call at 'location'
  11640. underwent inline substitution, that 'block' is the enclosing
  11641. lexical block created for the substitution, and that at the point
  11642. of the program in which the stmt is inserted, all parameters for
  11643. the inlined function are bound to the respective arguments, and
  11644. none of the side effects of its stmts are observable.
  11645. 
  11646. File: gccint.info, Node: GIMPLE_EH_FILTER, Next: GIMPLE_LABEL, Prev: GIMPLE_DEBUG, Up: Tuple specific accessors
  11647. 12.8.8 'GIMPLE_EH_FILTER'
  11648. -------------------------
  11649. -- GIMPLE function: geh_filter *gimple_build_eh_filter (tree types,
  11650. gimple_seq failure)
  11651. Build a 'GIMPLE_EH_FILTER' statement. 'TYPES' are the filter's
  11652. types. 'FAILURE' is a sequence with the filter's failure action.
  11653. -- GIMPLE function: tree gimple_eh_filter_types (gimple g)
  11654. Return the types handled by 'GIMPLE_EH_FILTER' statement 'G'.
  11655. -- GIMPLE function: tree * gimple_eh_filter_types_ptr (gimple g)
  11656. Return a pointer to the types handled by 'GIMPLE_EH_FILTER'
  11657. statement 'G'.
  11658. -- GIMPLE function: gimple_seq gimple_eh_filter_failure (gimple g)
  11659. Return the sequence of statement to execute when 'GIMPLE_EH_FILTER'
  11660. statement fails.
  11661. -- GIMPLE function: void gimple_eh_filter_set_types (geh_filter *g,
  11662. tree types)
  11663. Set 'TYPES' to be the set of types handled by 'GIMPLE_EH_FILTER'
  11664. 'G'.
  11665. -- GIMPLE function: void gimple_eh_filter_set_failure (geh_filter *g,
  11666. gimple_seq failure)
  11667. Set 'FAILURE' to be the sequence of statements to execute on
  11668. failure for 'GIMPLE_EH_FILTER' 'G'.
  11669. -- GIMPLE function: tree gimple_eh_must_not_throw_fndecl ( geh_mnt
  11670. *eh_mnt_stmt)
  11671. Get the function decl to be called by the MUST_NOT_THROW region.
  11672. -- GIMPLE function: void gimple_eh_must_not_throw_set_fndecl ( geh_mnt
  11673. *eh_mnt_stmt, tree decl)
  11674. Set the function decl to be called by GS to DECL.
  11675. 
  11676. File: gccint.info, Node: GIMPLE_LABEL, Next: GIMPLE_GOTO, Prev: GIMPLE_EH_FILTER, Up: Tuple specific accessors
  11677. 12.8.9 'GIMPLE_LABEL'
  11678. ---------------------
  11679. -- GIMPLE function: glabel *gimple_build_label (tree label)
  11680. Build a 'GIMPLE_LABEL' statement with corresponding to the tree
  11681. label, 'LABEL'.
  11682. -- GIMPLE function: tree gimple_label_label (const glabel *g)
  11683. Return the 'LABEL_DECL' node used by 'GIMPLE_LABEL' statement 'G'.
  11684. -- GIMPLE function: void gimple_label_set_label (glabel *g, tree label)
  11685. Set 'LABEL' to be the 'LABEL_DECL' node used by 'GIMPLE_LABEL'
  11686. statement 'G'.
  11687. 
  11688. File: gccint.info, Node: GIMPLE_GOTO, Next: GIMPLE_NOP, Prev: GIMPLE_LABEL, Up: Tuple specific accessors
  11689. 12.8.10 'GIMPLE_GOTO'
  11690. ---------------------
  11691. -- GIMPLE function: ggoto *gimple_build_goto (tree dest)
  11692. Build a 'GIMPLE_GOTO' statement to label 'DEST'.
  11693. -- GIMPLE function: tree gimple_goto_dest (gimple g)
  11694. Return the destination of the unconditional jump 'G'.
  11695. -- GIMPLE function: void gimple_goto_set_dest (ggoto *g, tree dest)
  11696. Set 'DEST' to be the destination of the unconditional jump 'G'.
  11697. 
  11698. File: gccint.info, Node: GIMPLE_NOP, Next: GIMPLE_OMP_ATOMIC_LOAD, Prev: GIMPLE_GOTO, Up: Tuple specific accessors
  11699. 12.8.11 'GIMPLE_NOP'
  11700. --------------------
  11701. -- GIMPLE function: gimple gimple_build_nop (void)
  11702. Build a 'GIMPLE_NOP' statement.
  11703. -- GIMPLE function: bool gimple_nop_p (gimple g)
  11704. Returns 'TRUE' if statement 'G' is a 'GIMPLE_NOP'.
  11705. 
  11706. File: gccint.info, Node: GIMPLE_OMP_ATOMIC_LOAD, Next: GIMPLE_OMP_ATOMIC_STORE, Prev: GIMPLE_NOP, Up: Tuple specific accessors
  11707. 12.8.12 'GIMPLE_OMP_ATOMIC_LOAD'
  11708. --------------------------------
  11709. -- GIMPLE function: gomp_atomic_load *gimple_build_omp_atomic_load (
  11710. tree lhs, tree rhs)
  11711. Build a 'GIMPLE_OMP_ATOMIC_LOAD' statement. 'LHS' is the left-hand
  11712. side of the assignment. 'RHS' is the right-hand side of the
  11713. assignment.
  11714. -- GIMPLE function: void gimple_omp_atomic_load_set_lhs (
  11715. gomp_atomic_load *g, tree lhs)
  11716. Set the 'LHS' of an atomic load.
  11717. -- GIMPLE function: tree gimple_omp_atomic_load_lhs ( const
  11718. gomp_atomic_load *g)
  11719. Get the 'LHS' of an atomic load.
  11720. -- GIMPLE function: void gimple_omp_atomic_load_set_rhs (
  11721. gomp_atomic_load *g, tree rhs)
  11722. Set the 'RHS' of an atomic set.
  11723. -- GIMPLE function: tree gimple_omp_atomic_load_rhs ( const
  11724. gomp_atomic_load *g)
  11725. Get the 'RHS' of an atomic set.
  11726. 
  11727. File: gccint.info, Node: GIMPLE_OMP_ATOMIC_STORE, Next: GIMPLE_OMP_CONTINUE, Prev: GIMPLE_OMP_ATOMIC_LOAD, Up: Tuple specific accessors
  11728. 12.8.13 'GIMPLE_OMP_ATOMIC_STORE'
  11729. ---------------------------------
  11730. -- GIMPLE function: gomp_atomic_store *gimple_build_omp_atomic_store (
  11731. tree val)
  11732. Build a 'GIMPLE_OMP_ATOMIC_STORE' statement. 'VAL' is the value to
  11733. be stored.
  11734. -- GIMPLE function: void gimple_omp_atomic_store_set_val (
  11735. gomp_atomic_store *g, tree val)
  11736. Set the value being stored in an atomic store.
  11737. -- GIMPLE function: tree gimple_omp_atomic_store_val ( const
  11738. gomp_atomic_store *g)
  11739. Return the value being stored in an atomic store.
  11740. 
  11741. File: gccint.info, Node: GIMPLE_OMP_CONTINUE, Next: GIMPLE_OMP_CRITICAL, Prev: GIMPLE_OMP_ATOMIC_STORE, Up: Tuple specific accessors
  11742. 12.8.14 'GIMPLE_OMP_CONTINUE'
  11743. -----------------------------
  11744. -- GIMPLE function: gomp_continue *gimple_build_omp_continue ( tree
  11745. control_def, tree control_use)
  11746. Build a 'GIMPLE_OMP_CONTINUE' statement. 'CONTROL_DEF' is the
  11747. definition of the control variable. 'CONTROL_USE' is the use of
  11748. the control variable.
  11749. -- GIMPLE function: tree gimple_omp_continue_control_def ( const
  11750. gomp_continue *s)
  11751. Return the definition of the control variable on a
  11752. 'GIMPLE_OMP_CONTINUE' in 'S'.
  11753. -- GIMPLE function: tree gimple_omp_continue_control_def_ptr (
  11754. gomp_continue *s)
  11755. Same as above, but return the pointer.
  11756. -- GIMPLE function: tree gimple_omp_continue_set_control_def (
  11757. gomp_continue *s)
  11758. Set the control variable definition for a 'GIMPLE_OMP_CONTINUE'
  11759. statement in 'S'.
  11760. -- GIMPLE function: tree gimple_omp_continue_control_use ( const
  11761. gomp_continue *s)
  11762. Return the use of the control variable on a 'GIMPLE_OMP_CONTINUE'
  11763. in 'S'.
  11764. -- GIMPLE function: tree gimple_omp_continue_control_use_ptr (
  11765. gomp_continue *s)
  11766. Same as above, but return the pointer.
  11767. -- GIMPLE function: tree gimple_omp_continue_set_control_use (
  11768. gomp_continue *s)
  11769. Set the control variable use for a 'GIMPLE_OMP_CONTINUE' statement
  11770. in 'S'.
  11771. 
  11772. File: gccint.info, Node: GIMPLE_OMP_CRITICAL, Next: GIMPLE_OMP_FOR, Prev: GIMPLE_OMP_CONTINUE, Up: Tuple specific accessors
  11773. 12.8.15 'GIMPLE_OMP_CRITICAL'
  11774. -----------------------------
  11775. -- GIMPLE function: gomp_critical *gimple_build_omp_critical (
  11776. gimple_seq body, tree name)
  11777. Build a 'GIMPLE_OMP_CRITICAL' statement. 'BODY' is the sequence of
  11778. statements for which only one thread can execute. 'NAME' is an
  11779. optional identifier for this critical block.
  11780. -- GIMPLE function: tree gimple_omp_critical_name ( const gomp_critical
  11781. *g)
  11782. Return the name associated with 'OMP_CRITICAL' statement 'G'.
  11783. -- GIMPLE function: tree * gimple_omp_critical_name_ptr ( gomp_critical
  11784. *g)
  11785. Return a pointer to the name associated with 'OMP' critical
  11786. statement 'G'.
  11787. -- GIMPLE function: void gimple_omp_critical_set_name ( gomp_critical
  11788. *g, tree name)
  11789. Set 'NAME' to be the name associated with 'OMP' critical statement
  11790. 'G'.
  11791. 
  11792. File: gccint.info, Node: GIMPLE_OMP_FOR, Next: GIMPLE_OMP_MASTER, Prev: GIMPLE_OMP_CRITICAL, Up: Tuple specific accessors
  11793. 12.8.16 'GIMPLE_OMP_FOR'
  11794. ------------------------
  11795. -- GIMPLE function: gomp_for *gimple_build_omp_for (gimple_seq body,
  11796. tree clauses, tree index, tree initial, tree final, tree incr,
  11797. gimple_seq pre_body, enum tree_code omp_for_cond)
  11798. Build a 'GIMPLE_OMP_FOR' statement. 'BODY' is sequence of
  11799. statements inside the for loop. 'CLAUSES', are any of the loop
  11800. construct's clauses. 'PRE_BODY' is the sequence of statements that
  11801. are loop invariant. 'INDEX' is the index variable. 'INITIAL' is
  11802. the initial value of 'INDEX'. 'FINAL' is final value of 'INDEX'.
  11803. OMP_FOR_COND is the predicate used to compare 'INDEX' and 'FINAL'.
  11804. 'INCR' is the increment expression.
  11805. -- GIMPLE function: tree gimple_omp_for_clauses (gimple g)
  11806. Return the clauses associated with 'OMP_FOR' 'G'.
  11807. -- GIMPLE function: tree * gimple_omp_for_clauses_ptr (gimple g)
  11808. Return a pointer to the 'OMP_FOR' 'G'.
  11809. -- GIMPLE function: void gimple_omp_for_set_clauses (gimple g, tree
  11810. clauses)
  11811. Set 'CLAUSES' to be the list of clauses associated with 'OMP_FOR'
  11812. 'G'.
  11813. -- GIMPLE function: tree gimple_omp_for_index (gimple g)
  11814. Return the index variable for 'OMP_FOR' 'G'.
  11815. -- GIMPLE function: tree * gimple_omp_for_index_ptr (gimple g)
  11816. Return a pointer to the index variable for 'OMP_FOR' 'G'.
  11817. -- GIMPLE function: void gimple_omp_for_set_index (gimple g, tree
  11818. index)
  11819. Set 'INDEX' to be the index variable for 'OMP_FOR' 'G'.
  11820. -- GIMPLE function: tree gimple_omp_for_initial (gimple g)
  11821. Return the initial value for 'OMP_FOR' 'G'.
  11822. -- GIMPLE function: tree * gimple_omp_for_initial_ptr (gimple g)
  11823. Return a pointer to the initial value for 'OMP_FOR' 'G'.
  11824. -- GIMPLE function: void gimple_omp_for_set_initial (gimple g, tree
  11825. initial)
  11826. Set 'INITIAL' to be the initial value for 'OMP_FOR' 'G'.
  11827. -- GIMPLE function: tree gimple_omp_for_final (gimple g)
  11828. Return the final value for 'OMP_FOR' 'G'.
  11829. -- GIMPLE function: tree * gimple_omp_for_final_ptr (gimple g)
  11830. turn a pointer to the final value for 'OMP_FOR' 'G'.
  11831. -- GIMPLE function: void gimple_omp_for_set_final (gimple g, tree
  11832. final)
  11833. Set 'FINAL' to be the final value for 'OMP_FOR' 'G'.
  11834. -- GIMPLE function: tree gimple_omp_for_incr (gimple g)
  11835. Return the increment value for 'OMP_FOR' 'G'.
  11836. -- GIMPLE function: tree * gimple_omp_for_incr_ptr (gimple g)
  11837. Return a pointer to the increment value for 'OMP_FOR' 'G'.
  11838. -- GIMPLE function: void gimple_omp_for_set_incr (gimple g, tree incr)
  11839. Set 'INCR' to be the increment value for 'OMP_FOR' 'G'.
  11840. -- GIMPLE function: gimple_seq gimple_omp_for_pre_body (gimple g)
  11841. Return the sequence of statements to execute before the 'OMP_FOR'
  11842. statement 'G' starts.
  11843. -- GIMPLE function: void gimple_omp_for_set_pre_body (gimple g,
  11844. gimple_seq pre_body)
  11845. Set 'PRE_BODY' to be the sequence of statements to execute before
  11846. the 'OMP_FOR' statement 'G' starts.
  11847. -- GIMPLE function: void gimple_omp_for_set_cond (gimple g, enum
  11848. tree_code cond)
  11849. Set 'COND' to be the condition code for 'OMP_FOR' 'G'.
  11850. -- GIMPLE function: enum tree_code gimple_omp_for_cond (gimple g)
  11851. Return the condition code associated with 'OMP_FOR' 'G'.
  11852. 
  11853. File: gccint.info, Node: GIMPLE_OMP_MASTER, Next: GIMPLE_OMP_ORDERED, Prev: GIMPLE_OMP_FOR, Up: Tuple specific accessors
  11854. 12.8.17 'GIMPLE_OMP_MASTER'
  11855. ---------------------------
  11856. -- GIMPLE function: gimple gimple_build_omp_master (gimple_seq body)
  11857. Build a 'GIMPLE_OMP_MASTER' statement. 'BODY' is the sequence of
  11858. statements to be executed by just the master.
  11859. 
  11860. File: gccint.info, Node: GIMPLE_OMP_ORDERED, Next: GIMPLE_OMP_PARALLEL, Prev: GIMPLE_OMP_MASTER, Up: Tuple specific accessors
  11861. 12.8.18 'GIMPLE_OMP_ORDERED'
  11862. ----------------------------
  11863. -- GIMPLE function: gimple gimple_build_omp_ordered (gimple_seq body)
  11864. Build a 'GIMPLE_OMP_ORDERED' statement.
  11865. 'BODY' is the sequence of statements inside a loop that will executed
  11866. in sequence.
  11867. 
  11868. File: gccint.info, Node: GIMPLE_OMP_PARALLEL, Next: GIMPLE_OMP_RETURN, Prev: GIMPLE_OMP_ORDERED, Up: Tuple specific accessors
  11869. 12.8.19 'GIMPLE_OMP_PARALLEL'
  11870. -----------------------------
  11871. -- GIMPLE function: gomp_parallel *gimple_build_omp_parallel
  11872. (gimple_seq body, tree clauses, tree child_fn, tree data_arg)
  11873. Build a 'GIMPLE_OMP_PARALLEL' statement.
  11874. 'BODY' is sequence of statements which are executed in parallel.
  11875. 'CLAUSES', are the 'OMP' parallel construct's clauses. 'CHILD_FN' is
  11876. the function created for the parallel threads to execute. 'DATA_ARG'
  11877. are the shared data argument(s).
  11878. -- GIMPLE function: bool gimple_omp_parallel_combined_p (gimple g)
  11879. Return true if 'OMP' parallel statement 'G' has the
  11880. 'GF_OMP_PARALLEL_COMBINED' flag set.
  11881. -- GIMPLE function: void gimple_omp_parallel_set_combined_p (gimple g)
  11882. Set the 'GF_OMP_PARALLEL_COMBINED' field in 'OMP' parallel
  11883. statement 'G'.
  11884. -- GIMPLE function: gimple_seq gimple_omp_body (gimple g)
  11885. Return the body for the 'OMP' statement 'G'.
  11886. -- GIMPLE function: void gimple_omp_set_body (gimple g, gimple_seq
  11887. body)
  11888. Set 'BODY' to be the body for the 'OMP' statement 'G'.
  11889. -- GIMPLE function: tree gimple_omp_parallel_clauses (gimple g)
  11890. Return the clauses associated with 'OMP_PARALLEL' 'G'.
  11891. -- GIMPLE function: tree * gimple_omp_parallel_clauses_ptr (
  11892. gomp_parallel *g)
  11893. Return a pointer to the clauses associated with 'OMP_PARALLEL' 'G'.
  11894. -- GIMPLE function: void gimple_omp_parallel_set_clauses (
  11895. gomp_parallel *g, tree clauses)
  11896. Set 'CLAUSES' to be the list of clauses associated with
  11897. 'OMP_PARALLEL' 'G'.
  11898. -- GIMPLE function: tree gimple_omp_parallel_child_fn ( const
  11899. gomp_parallel *g)
  11900. Return the child function used to hold the body of 'OMP_PARALLEL'
  11901. 'G'.
  11902. -- GIMPLE function: tree * gimple_omp_parallel_child_fn_ptr (
  11903. gomp_parallel *g)
  11904. Return a pointer to the child function used to hold the body of
  11905. 'OMP_PARALLEL' 'G'.
  11906. -- GIMPLE function: void gimple_omp_parallel_set_child_fn (
  11907. gomp_parallel *g, tree child_fn)
  11908. Set 'CHILD_FN' to be the child function for 'OMP_PARALLEL' 'G'.
  11909. -- GIMPLE function: tree gimple_omp_parallel_data_arg ( const
  11910. gomp_parallel *g)
  11911. Return the artificial argument used to send variables and values
  11912. from the parent to the children threads in 'OMP_PARALLEL' 'G'.
  11913. -- GIMPLE function: tree * gimple_omp_parallel_data_arg_ptr (
  11914. gomp_parallel *g)
  11915. Return a pointer to the data argument for 'OMP_PARALLEL' 'G'.
  11916. -- GIMPLE function: void gimple_omp_parallel_set_data_arg (
  11917. gomp_parallel *g, tree data_arg)
  11918. Set 'DATA_ARG' to be the data argument for 'OMP_PARALLEL' 'G'.
  11919. 
  11920. File: gccint.info, Node: GIMPLE_OMP_RETURN, Next: GIMPLE_OMP_SECTION, Prev: GIMPLE_OMP_PARALLEL, Up: Tuple specific accessors
  11921. 12.8.20 'GIMPLE_OMP_RETURN'
  11922. ---------------------------
  11923. -- GIMPLE function: gimple gimple_build_omp_return (bool wait_p)
  11924. Build a 'GIMPLE_OMP_RETURN' statement. 'WAIT_P' is true if this is
  11925. a non-waiting return.
  11926. -- GIMPLE function: void gimple_omp_return_set_nowait (gimple s)
  11927. Set the nowait flag on 'GIMPLE_OMP_RETURN' statement 'S'.
  11928. -- GIMPLE function: bool gimple_omp_return_nowait_p (gimple g)
  11929. Return true if 'OMP' return statement 'G' has the
  11930. 'GF_OMP_RETURN_NOWAIT' flag set.
  11931. 
  11932. File: gccint.info, Node: GIMPLE_OMP_SECTION, Next: GIMPLE_OMP_SECTIONS, Prev: GIMPLE_OMP_RETURN, Up: Tuple specific accessors
  11933. 12.8.21 'GIMPLE_OMP_SECTION'
  11934. ----------------------------
  11935. -- GIMPLE function: gimple gimple_build_omp_section (gimple_seq body)
  11936. Build a 'GIMPLE_OMP_SECTION' statement for a sections statement.
  11937. 'BODY' is the sequence of statements in the section.
  11938. -- GIMPLE function: bool gimple_omp_section_last_p (gimple g)
  11939. Return true if 'OMP' section statement 'G' has the
  11940. 'GF_OMP_SECTION_LAST' flag set.
  11941. -- GIMPLE function: void gimple_omp_section_set_last (gimple g)
  11942. Set the 'GF_OMP_SECTION_LAST' flag on 'G'.
  11943. 
  11944. File: gccint.info, Node: GIMPLE_OMP_SECTIONS, Next: GIMPLE_OMP_SINGLE, Prev: GIMPLE_OMP_SECTION, Up: Tuple specific accessors
  11945. 12.8.22 'GIMPLE_OMP_SECTIONS'
  11946. -----------------------------
  11947. -- GIMPLE function: gomp_sections *gimple_build_omp_sections (
  11948. gimple_seq body, tree clauses)
  11949. Build a 'GIMPLE_OMP_SECTIONS' statement. 'BODY' is a sequence of
  11950. section statements. 'CLAUSES' are any of the 'OMP' sections
  11951. construct's clauses: private, firstprivate, lastprivate, reduction,
  11952. and nowait.
  11953. -- GIMPLE function: gimple gimple_build_omp_sections_switch (void)
  11954. Build a 'GIMPLE_OMP_SECTIONS_SWITCH' statement.
  11955. -- GIMPLE function: tree gimple_omp_sections_control (gimple g)
  11956. Return the control variable associated with the
  11957. 'GIMPLE_OMP_SECTIONS' in 'G'.
  11958. -- GIMPLE function: tree * gimple_omp_sections_control_ptr (gimple g)
  11959. Return a pointer to the clauses associated with the
  11960. 'GIMPLE_OMP_SECTIONS' in 'G'.
  11961. -- GIMPLE function: void gimple_omp_sections_set_control (gimple g,
  11962. tree control)
  11963. Set 'CONTROL' to be the set of clauses associated with the
  11964. 'GIMPLE_OMP_SECTIONS' in 'G'.
  11965. -- GIMPLE function: tree gimple_omp_sections_clauses (gimple g)
  11966. Return the clauses associated with 'OMP_SECTIONS' 'G'.
  11967. -- GIMPLE function: tree * gimple_omp_sections_clauses_ptr (gimple g)
  11968. Return a pointer to the clauses associated with 'OMP_SECTIONS' 'G'.
  11969. -- GIMPLE function: void gimple_omp_sections_set_clauses (gimple g,
  11970. tree clauses)
  11971. Set 'CLAUSES' to be the set of clauses associated with
  11972. 'OMP_SECTIONS' 'G'.
  11973. 
  11974. File: gccint.info, Node: GIMPLE_OMP_SINGLE, Next: GIMPLE_PHI, Prev: GIMPLE_OMP_SECTIONS, Up: Tuple specific accessors
  11975. 12.8.23 'GIMPLE_OMP_SINGLE'
  11976. ---------------------------
  11977. -- GIMPLE function: gomp_single *gimple_build_omp_single ( gimple_seq
  11978. body, tree clauses)
  11979. Build a 'GIMPLE_OMP_SINGLE' statement. 'BODY' is the sequence of
  11980. statements that will be executed once. 'CLAUSES' are any of the
  11981. 'OMP' single construct's clauses: private, firstprivate,
  11982. copyprivate, nowait.
  11983. -- GIMPLE function: tree gimple_omp_single_clauses (gimple g)
  11984. Return the clauses associated with 'OMP_SINGLE' 'G'.
  11985. -- GIMPLE function: tree * gimple_omp_single_clauses_ptr (gimple g)
  11986. Return a pointer to the clauses associated with 'OMP_SINGLE' 'G'.
  11987. -- GIMPLE function: void gimple_omp_single_set_clauses ( gomp_single
  11988. *g, tree clauses)
  11989. Set 'CLAUSES' to be the clauses associated with 'OMP_SINGLE' 'G'.
  11990. 
  11991. File: gccint.info, Node: GIMPLE_PHI, Next: GIMPLE_RESX, Prev: GIMPLE_OMP_SINGLE, Up: Tuple specific accessors
  11992. 12.8.24 'GIMPLE_PHI'
  11993. --------------------
  11994. -- GIMPLE function: unsigned gimple_phi_capacity (gimple g)
  11995. Return the maximum number of arguments supported by 'GIMPLE_PHI'
  11996. 'G'.
  11997. -- GIMPLE function: unsigned gimple_phi_num_args (gimple g)
  11998. Return the number of arguments in 'GIMPLE_PHI' 'G'. This must
  11999. always be exactly the number of incoming edges for the basic block
  12000. holding 'G'.
  12001. -- GIMPLE function: tree gimple_phi_result (gimple g)
  12002. Return the 'SSA' name created by 'GIMPLE_PHI' 'G'.
  12003. -- GIMPLE function: tree * gimple_phi_result_ptr (gimple g)
  12004. Return a pointer to the 'SSA' name created by 'GIMPLE_PHI' 'G'.
  12005. -- GIMPLE function: void gimple_phi_set_result (gphi *g, tree result)
  12006. Set 'RESULT' to be the 'SSA' name created by 'GIMPLE_PHI' 'G'.
  12007. -- GIMPLE function: struct phi_arg_d * gimple_phi_arg (gimple g, index)
  12008. Return the 'PHI' argument corresponding to incoming edge 'INDEX'
  12009. for 'GIMPLE_PHI' 'G'.
  12010. -- GIMPLE function: void gimple_phi_set_arg (gphi *g, index, struct
  12011. phi_arg_d * phiarg)
  12012. Set 'PHIARG' to be the argument corresponding to incoming edge
  12013. 'INDEX' for 'GIMPLE_PHI' 'G'.
  12014. 
  12015. File: gccint.info, Node: GIMPLE_RESX, Next: GIMPLE_RETURN, Prev: GIMPLE_PHI, Up: Tuple specific accessors
  12016. 12.8.25 'GIMPLE_RESX'
  12017. ---------------------
  12018. -- GIMPLE function: gresx *gimple_build_resx (int region)
  12019. Build a 'GIMPLE_RESX' statement which is a statement. This
  12020. statement is a placeholder for _Unwind_Resume before we know if a
  12021. function call or a branch is needed. 'REGION' is the exception
  12022. region from which control is flowing.
  12023. -- GIMPLE function: int gimple_resx_region (const gresx *g)
  12024. Return the region number for 'GIMPLE_RESX' 'G'.
  12025. -- GIMPLE function: void gimple_resx_set_region (gresx *g, int region)
  12026. Set 'REGION' to be the region number for 'GIMPLE_RESX' 'G'.
  12027. 
  12028. File: gccint.info, Node: GIMPLE_RETURN, Next: GIMPLE_SWITCH, Prev: GIMPLE_RESX, Up: Tuple specific accessors
  12029. 12.8.26 'GIMPLE_RETURN'
  12030. -----------------------
  12031. -- GIMPLE function: greturn *gimple_build_return (tree retval)
  12032. Build a 'GIMPLE_RETURN' statement whose return value is retval.
  12033. -- GIMPLE function: tree gimple_return_retval (const greturn *g)
  12034. Return the return value for 'GIMPLE_RETURN' 'G'.
  12035. -- GIMPLE function: void gimple_return_set_retval (greturn *g, tree
  12036. retval)
  12037. Set 'RETVAL' to be the return value for 'GIMPLE_RETURN' 'G'.
  12038. 
  12039. File: gccint.info, Node: GIMPLE_SWITCH, Next: GIMPLE_TRY, Prev: GIMPLE_RETURN, Up: Tuple specific accessors
  12040. 12.8.27 'GIMPLE_SWITCH'
  12041. -----------------------
  12042. -- GIMPLE function: gswitch *gimple_build_switch (tree index, tree
  12043. default_label, vec<tree> *args)
  12044. Build a 'GIMPLE_SWITCH' statement. 'INDEX' is the index variable
  12045. to switch on, and 'DEFAULT_LABEL' represents the default label.
  12046. 'ARGS' is a vector of 'CASE_LABEL_EXPR' trees that contain the
  12047. non-default case labels. Each label is a tree of code
  12048. 'CASE_LABEL_EXPR'.
  12049. -- GIMPLE function: unsigned gimple_switch_num_labels ( const gswitch
  12050. *g)
  12051. Return the number of labels associated with the switch statement
  12052. 'G'.
  12053. -- GIMPLE function: void gimple_switch_set_num_labels (gswitch *g,
  12054. unsigned nlabels)
  12055. Set 'NLABELS' to be the number of labels for the switch statement
  12056. 'G'.
  12057. -- GIMPLE function: tree gimple_switch_index (const gswitch *g)
  12058. Return the index variable used by the switch statement 'G'.
  12059. -- GIMPLE function: void gimple_switch_set_index (gswitch *g, tree
  12060. index)
  12061. Set 'INDEX' to be the index variable for switch statement 'G'.
  12062. -- GIMPLE function: tree gimple_switch_label (const gswitch *g,
  12063. unsigned index)
  12064. Return the label numbered 'INDEX'. The default label is 0,
  12065. followed by any labels in a switch statement.
  12066. -- GIMPLE function: void gimple_switch_set_label (gswitch *g, unsigned
  12067. index, tree label)
  12068. Set the label number 'INDEX' to 'LABEL'. 0 is always the default
  12069. label.
  12070. -- GIMPLE function: tree gimple_switch_default_label ( const gswitch
  12071. *g)
  12072. Return the default label for a switch statement.
  12073. -- GIMPLE function: void gimple_switch_set_default_label (gswitch *g,
  12074. tree label)
  12075. Set the default label for a switch statement.
  12076. 
  12077. File: gccint.info, Node: GIMPLE_TRY, Next: GIMPLE_WITH_CLEANUP_EXPR, Prev: GIMPLE_SWITCH, Up: Tuple specific accessors
  12078. 12.8.28 'GIMPLE_TRY'
  12079. --------------------
  12080. -- GIMPLE function: gtry *gimple_build_try (gimple_seq eval, gimple_seq
  12081. cleanup, unsigned int kind)
  12082. Build a 'GIMPLE_TRY' statement. 'EVAL' is a sequence with the
  12083. expression to evaluate. 'CLEANUP' is a sequence of statements to
  12084. run at clean-up time. 'KIND' is the enumeration value
  12085. 'GIMPLE_TRY_CATCH' if this statement denotes a try/catch construct
  12086. or 'GIMPLE_TRY_FINALLY' if this statement denotes a try/finally
  12087. construct.
  12088. -- GIMPLE function: enum gimple_try_flags gimple_try_kind (gimple g)
  12089. Return the kind of try block represented by 'GIMPLE_TRY' 'G'. This
  12090. is either 'GIMPLE_TRY_CATCH' or 'GIMPLE_TRY_FINALLY'.
  12091. -- GIMPLE function: bool gimple_try_catch_is_cleanup (gimple g)
  12092. Return the 'GIMPLE_TRY_CATCH_IS_CLEANUP' flag.
  12093. -- GIMPLE function: gimple_seq gimple_try_eval (gimple g)
  12094. Return the sequence of statements used as the body for 'GIMPLE_TRY'
  12095. 'G'.
  12096. -- GIMPLE function: gimple_seq gimple_try_cleanup (gimple g)
  12097. Return the sequence of statements used as the cleanup body for
  12098. 'GIMPLE_TRY' 'G'.
  12099. -- GIMPLE function: void gimple_try_set_catch_is_cleanup (gimple g,
  12100. bool catch_is_cleanup)
  12101. Set the 'GIMPLE_TRY_CATCH_IS_CLEANUP' flag.
  12102. -- GIMPLE function: void gimple_try_set_eval (gtry *g, gimple_seq eval)
  12103. Set 'EVAL' to be the sequence of statements to use as the body for
  12104. 'GIMPLE_TRY' 'G'.
  12105. -- GIMPLE function: void gimple_try_set_cleanup (gtry *g, gimple_seq
  12106. cleanup)
  12107. Set 'CLEANUP' to be the sequence of statements to use as the
  12108. cleanup body for 'GIMPLE_TRY' 'G'.
  12109. 
  12110. File: gccint.info, Node: GIMPLE_WITH_CLEANUP_EXPR, Prev: GIMPLE_TRY, Up: Tuple specific accessors
  12111. 12.8.29 'GIMPLE_WITH_CLEANUP_EXPR'
  12112. ----------------------------------
  12113. -- GIMPLE function: gimple gimple_build_wce (gimple_seq cleanup)
  12114. Build a 'GIMPLE_WITH_CLEANUP_EXPR' statement. 'CLEANUP' is the
  12115. clean-up expression.
  12116. -- GIMPLE function: gimple_seq gimple_wce_cleanup (gimple g)
  12117. Return the cleanup sequence for cleanup statement 'G'.
  12118. -- GIMPLE function: void gimple_wce_set_cleanup (gimple g, gimple_seq
  12119. cleanup)
  12120. Set 'CLEANUP' to be the cleanup sequence for 'G'.
  12121. -- GIMPLE function: bool gimple_wce_cleanup_eh_only (gimple g)
  12122. Return the 'CLEANUP_EH_ONLY' flag for a 'WCE' tuple.
  12123. -- GIMPLE function: void gimple_wce_set_cleanup_eh_only (gimple g, bool
  12124. eh_only_p)
  12125. Set the 'CLEANUP_EH_ONLY' flag for a 'WCE' tuple.
  12126. 
  12127. File: gccint.info, Node: GIMPLE sequences, Next: Sequence iterators, Prev: Tuple specific accessors, Up: GIMPLE
  12128. 12.9 GIMPLE sequences
  12129. =====================
  12130. GIMPLE sequences are the tuple equivalent of 'STATEMENT_LIST''s used in
  12131. 'GENERIC'. They are used to chain statements together, and when used in
  12132. conjunction with sequence iterators, provide a framework for iterating
  12133. through statements.
  12134. GIMPLE sequences are of type struct 'gimple_sequence', but are more
  12135. commonly passed by reference to functions dealing with sequences. The
  12136. type for a sequence pointer is 'gimple_seq' which is the same as struct
  12137. 'gimple_sequence' *. When declaring a local sequence, you can define a
  12138. local variable of type struct 'gimple_sequence'. When declaring a
  12139. sequence allocated on the garbage collected heap, use the function
  12140. 'gimple_seq_alloc' documented below.
  12141. There are convenience functions for iterating through sequences in the
  12142. section entitled Sequence Iterators.
  12143. Below is a list of functions to manipulate and query sequences.
  12144. -- GIMPLE function: void gimple_seq_add_stmt (gimple_seq *seq, gimple
  12145. g)
  12146. Link a gimple statement to the end of the sequence *'SEQ' if 'G' is
  12147. not 'NULL'. If *'SEQ' is 'NULL', allocate a sequence before
  12148. linking.
  12149. -- GIMPLE function: void gimple_seq_add_seq (gimple_seq *dest,
  12150. gimple_seq src)
  12151. Append sequence 'SRC' to the end of sequence *'DEST' if 'SRC' is
  12152. not 'NULL'. If *'DEST' is 'NULL', allocate a new sequence before
  12153. appending.
  12154. -- GIMPLE function: gimple_seq gimple_seq_deep_copy (gimple_seq src)
  12155. Perform a deep copy of sequence 'SRC' and return the result.
  12156. -- GIMPLE function: gimple_seq gimple_seq_reverse (gimple_seq seq)
  12157. Reverse the order of the statements in the sequence 'SEQ'. Return
  12158. 'SEQ'.
  12159. -- GIMPLE function: gimple gimple_seq_first (gimple_seq s)
  12160. Return the first statement in sequence 'S'.
  12161. -- GIMPLE function: gimple gimple_seq_last (gimple_seq s)
  12162. Return the last statement in sequence 'S'.
  12163. -- GIMPLE function: void gimple_seq_set_last (gimple_seq s, gimple
  12164. last)
  12165. Set the last statement in sequence 'S' to the statement in 'LAST'.
  12166. -- GIMPLE function: void gimple_seq_set_first (gimple_seq s, gimple
  12167. first)
  12168. Set the first statement in sequence 'S' to the statement in
  12169. 'FIRST'.
  12170. -- GIMPLE function: void gimple_seq_init (gimple_seq s)
  12171. Initialize sequence 'S' to an empty sequence.
  12172. -- GIMPLE function: gimple_seq gimple_seq_alloc (void)
  12173. Allocate a new sequence in the garbage collected store and return
  12174. it.
  12175. -- GIMPLE function: void gimple_seq_copy (gimple_seq dest, gimple_seq
  12176. src)
  12177. Copy the sequence 'SRC' into the sequence 'DEST'.
  12178. -- GIMPLE function: bool gimple_seq_empty_p (gimple_seq s)
  12179. Return true if the sequence 'S' is empty.
  12180. -- GIMPLE function: gimple_seq bb_seq (basic_block bb)
  12181. Returns the sequence of statements in 'BB'.
  12182. -- GIMPLE function: void set_bb_seq (basic_block bb, gimple_seq seq)
  12183. Sets the sequence of statements in 'BB' to 'SEQ'.
  12184. -- GIMPLE function: bool gimple_seq_singleton_p (gimple_seq seq)
  12185. Determine whether 'SEQ' contains exactly one statement.
  12186. 
  12187. File: gccint.info, Node: Sequence iterators, Next: Adding a new GIMPLE statement code, Prev: GIMPLE sequences, Up: GIMPLE
  12188. 12.10 Sequence iterators
  12189. ========================
  12190. Sequence iterators are convenience constructs for iterating through
  12191. statements in a sequence. Given a sequence 'SEQ', here is a typical use
  12192. of gimple sequence iterators:
  12193. gimple_stmt_iterator gsi;
  12194. for (gsi = gsi_start (seq); !gsi_end_p (gsi); gsi_next (&gsi))
  12195. {
  12196. gimple g = gsi_stmt (gsi);
  12197. /* Do something with gimple statement G. */
  12198. }
  12199. Backward iterations are possible:
  12200. for (gsi = gsi_last (seq); !gsi_end_p (gsi); gsi_prev (&gsi))
  12201. Forward and backward iterations on basic blocks are possible with
  12202. 'gsi_start_bb' and 'gsi_last_bb'.
  12203. In the documentation below we sometimes refer to enum
  12204. 'gsi_iterator_update'. The valid options for this enumeration are:
  12205. * 'GSI_NEW_STMT' Only valid when a single statement is added. Move
  12206. the iterator to it.
  12207. * 'GSI_SAME_STMT' Leave the iterator at the same statement.
  12208. * 'GSI_CONTINUE_LINKING' Move iterator to whatever position is
  12209. suitable for linking other statements in the same direction.
  12210. Below is a list of the functions used to manipulate and use statement
  12211. iterators.
  12212. -- GIMPLE function: gimple_stmt_iterator gsi_start (gimple_seq seq)
  12213. Return a new iterator pointing to the sequence 'SEQ''s first
  12214. statement. If 'SEQ' is empty, the iterator's basic block is
  12215. 'NULL'. Use 'gsi_start_bb' instead when the iterator needs to
  12216. always have the correct basic block set.
  12217. -- GIMPLE function: gimple_stmt_iterator gsi_start_bb (basic_block bb)
  12218. Return a new iterator pointing to the first statement in basic
  12219. block 'BB'.
  12220. -- GIMPLE function: gimple_stmt_iterator gsi_last (gimple_seq seq)
  12221. Return a new iterator initially pointing to the last statement of
  12222. sequence 'SEQ'. If 'SEQ' is empty, the iterator's basic block is
  12223. 'NULL'. Use 'gsi_last_bb' instead when the iterator needs to
  12224. always have the correct basic block set.
  12225. -- GIMPLE function: gimple_stmt_iterator gsi_last_bb (basic_block bb)
  12226. Return a new iterator pointing to the last statement in basic block
  12227. 'BB'.
  12228. -- GIMPLE function: bool gsi_end_p (gimple_stmt_iterator i)
  12229. Return 'TRUE' if at the end of 'I'.
  12230. -- GIMPLE function: bool gsi_one_before_end_p (gimple_stmt_iterator i)
  12231. Return 'TRUE' if we're one statement before the end of 'I'.
  12232. -- GIMPLE function: void gsi_next (gimple_stmt_iterator *i)
  12233. Advance the iterator to the next gimple statement.
  12234. -- GIMPLE function: void gsi_prev (gimple_stmt_iterator *i)
  12235. Advance the iterator to the previous gimple statement.
  12236. -- GIMPLE function: gimple gsi_stmt (gimple_stmt_iterator i)
  12237. Return the current stmt.
  12238. -- GIMPLE function: gimple_stmt_iterator gsi_after_labels (basic_block
  12239. bb)
  12240. Return a block statement iterator that points to the first
  12241. non-label statement in block 'BB'.
  12242. -- GIMPLE function: gimple * gsi_stmt_ptr (gimple_stmt_iterator *i)
  12243. Return a pointer to the current stmt.
  12244. -- GIMPLE function: basic_block gsi_bb (gimple_stmt_iterator i)
  12245. Return the basic block associated with this iterator.
  12246. -- GIMPLE function: gimple_seq gsi_seq (gimple_stmt_iterator i)
  12247. Return the sequence associated with this iterator.
  12248. -- GIMPLE function: void gsi_remove (gimple_stmt_iterator *i, bool
  12249. remove_eh_info)
  12250. Remove the current stmt from the sequence. The iterator is updated
  12251. to point to the next statement. When 'REMOVE_EH_INFO' is true we
  12252. remove the statement pointed to by iterator 'I' from the 'EH'
  12253. tables. Otherwise we do not modify the 'EH' tables. Generally,
  12254. 'REMOVE_EH_INFO' should be true when the statement is going to be
  12255. removed from the 'IL' and not reinserted elsewhere.
  12256. -- GIMPLE function: void gsi_link_seq_before (gimple_stmt_iterator *i,
  12257. gimple_seq seq, enum gsi_iterator_update mode)
  12258. Links the sequence of statements 'SEQ' before the statement pointed
  12259. by iterator 'I'. 'MODE' indicates what to do with the iterator
  12260. after insertion (see 'enum gsi_iterator_update' above).
  12261. -- GIMPLE function: void gsi_link_before (gimple_stmt_iterator *i,
  12262. gimple g, enum gsi_iterator_update mode)
  12263. Links statement 'G' before the statement pointed-to by iterator
  12264. 'I'. Updates iterator 'I' according to 'MODE'.
  12265. -- GIMPLE function: void gsi_link_seq_after (gimple_stmt_iterator *i,
  12266. gimple_seq seq, enum gsi_iterator_update mode)
  12267. Links sequence 'SEQ' after the statement pointed-to by iterator
  12268. 'I'. 'MODE' is as in 'gsi_insert_after'.
  12269. -- GIMPLE function: void gsi_link_after (gimple_stmt_iterator *i,
  12270. gimple g, enum gsi_iterator_update mode)
  12271. Links statement 'G' after the statement pointed-to by iterator 'I'.
  12272. 'MODE' is as in 'gsi_insert_after'.
  12273. -- GIMPLE function: gimple_seq gsi_split_seq_after
  12274. (gimple_stmt_iterator i)
  12275. Move all statements in the sequence after 'I' to a new sequence.
  12276. Return this new sequence.
  12277. -- GIMPLE function: gimple_seq gsi_split_seq_before
  12278. (gimple_stmt_iterator *i)
  12279. Move all statements in the sequence before 'I' to a new sequence.
  12280. Return this new sequence.
  12281. -- GIMPLE function: void gsi_replace (gimple_stmt_iterator *i, gimple
  12282. stmt, bool update_eh_info)
  12283. Replace the statement pointed-to by 'I' to 'STMT'. If
  12284. 'UPDATE_EH_INFO' is true, the exception handling information of the
  12285. original statement is moved to the new statement.
  12286. -- GIMPLE function: void gsi_insert_before (gimple_stmt_iterator *i,
  12287. gimple stmt, enum gsi_iterator_update mode)
  12288. Insert statement 'STMT' before the statement pointed-to by iterator
  12289. 'I', update 'STMT''s basic block and scan it for new operands.
  12290. 'MODE' specifies how to update iterator 'I' after insertion (see
  12291. enum 'gsi_iterator_update').
  12292. -- GIMPLE function: void gsi_insert_seq_before (gimple_stmt_iterator
  12293. *i, gimple_seq seq, enum gsi_iterator_update mode)
  12294. Like 'gsi_insert_before', but for all the statements in 'SEQ'.
  12295. -- GIMPLE function: void gsi_insert_after (gimple_stmt_iterator *i,
  12296. gimple stmt, enum gsi_iterator_update mode)
  12297. Insert statement 'STMT' after the statement pointed-to by iterator
  12298. 'I', update 'STMT''s basic block and scan it for new operands.
  12299. 'MODE' specifies how to update iterator 'I' after insertion (see
  12300. enum 'gsi_iterator_update').
  12301. -- GIMPLE function: void gsi_insert_seq_after (gimple_stmt_iterator *i,
  12302. gimple_seq seq, enum gsi_iterator_update mode)
  12303. Like 'gsi_insert_after', but for all the statements in 'SEQ'.
  12304. -- GIMPLE function: gimple_stmt_iterator gsi_for_stmt (gimple stmt)
  12305. Finds iterator for 'STMT'.
  12306. -- GIMPLE function: void gsi_move_after (gimple_stmt_iterator *from,
  12307. gimple_stmt_iterator *to)
  12308. Move the statement at 'FROM' so it comes right after the statement
  12309. at 'TO'.
  12310. -- GIMPLE function: void gsi_move_before (gimple_stmt_iterator *from,
  12311. gimple_stmt_iterator *to)
  12312. Move the statement at 'FROM' so it comes right before the statement
  12313. at 'TO'.
  12314. -- GIMPLE function: void gsi_move_to_bb_end (gimple_stmt_iterator
  12315. *from, basic_block bb)
  12316. Move the statement at 'FROM' to the end of basic block 'BB'.
  12317. -- GIMPLE function: void gsi_insert_on_edge (edge e, gimple stmt)
  12318. Add 'STMT' to the pending list of edge 'E'. No actual insertion is
  12319. made until a call to 'gsi_commit_edge_inserts'() is made.
  12320. -- GIMPLE function: void gsi_insert_seq_on_edge (edge e, gimple_seq
  12321. seq)
  12322. Add the sequence of statements in 'SEQ' to the pending list of edge
  12323. 'E'. No actual insertion is made until a call to
  12324. 'gsi_commit_edge_inserts'() is made.
  12325. -- GIMPLE function: basic_block gsi_insert_on_edge_immediate (edge e,
  12326. gimple stmt)
  12327. Similar to 'gsi_insert_on_edge'+'gsi_commit_edge_inserts'. If a
  12328. new block has to be created, it is returned.
  12329. -- GIMPLE function: void gsi_commit_one_edge_insert (edge e,
  12330. basic_block *new_bb)
  12331. Commit insertions pending at edge 'E'. If a new block is created,
  12332. set 'NEW_BB' to this block, otherwise set it to 'NULL'.
  12333. -- GIMPLE function: void gsi_commit_edge_inserts (void)
  12334. This routine will commit all pending edge insertions, creating any
  12335. new basic blocks which are necessary.
  12336. 
  12337. File: gccint.info, Node: Adding a new GIMPLE statement code, Next: Statement and operand traversals, Prev: Sequence iterators, Up: GIMPLE
  12338. 12.11 Adding a new GIMPLE statement code
  12339. ========================================
  12340. The first step in adding a new GIMPLE statement code, is modifying the
  12341. file 'gimple.def', which contains all the GIMPLE codes. Then you must
  12342. add a corresponding gimple subclass located in 'gimple.h'. This in
  12343. turn, will require you to add a corresponding 'GTY' tag in
  12344. 'gsstruct.def', and code to handle this tag in 'gss_for_code' which is
  12345. located in 'gimple.c'.
  12346. In order for the garbage collector to know the size of the structure
  12347. you created in 'gimple.h', you need to add a case to handle your new
  12348. GIMPLE statement in 'gimple_size' which is located in 'gimple.c'.
  12349. You will probably want to create a function to build the new gimple
  12350. statement in 'gimple.c'. The function should be called
  12351. 'gimple_build_NEW-TUPLE-NAME', and should return the new tuple as a
  12352. pointer to the appropriate gimple subclass.
  12353. If your new statement requires accessors for any members or operands it
  12354. may have, put simple inline accessors in 'gimple.h' and any non-trivial
  12355. accessors in 'gimple.c' with a corresponding prototype in 'gimple.h'.
  12356. You should add the new statement subclass to the class hierarchy
  12357. diagram in 'gimple.texi'.
  12358. 
  12359. File: gccint.info, Node: Statement and operand traversals, Prev: Adding a new GIMPLE statement code, Up: GIMPLE
  12360. 12.12 Statement and operand traversals
  12361. ======================================
  12362. There are two functions available for walking statements and sequences:
  12363. 'walk_gimple_stmt' and 'walk_gimple_seq', accordingly, and a third
  12364. function for walking the operands in a statement: 'walk_gimple_op'.
  12365. -- GIMPLE function: tree walk_gimple_stmt (gimple_stmt_iterator *gsi,
  12366. walk_stmt_fn callback_stmt, walk_tree_fn callback_op, struct
  12367. walk_stmt_info *wi)
  12368. This function is used to walk the current statement in 'GSI',
  12369. optionally using traversal state stored in 'WI'. If 'WI' is
  12370. 'NULL', no state is kept during the traversal.
  12371. The callback 'CALLBACK_STMT' is called. If 'CALLBACK_STMT' returns
  12372. true, it means that the callback function has handled all the
  12373. operands of the statement and it is not necessary to walk its
  12374. operands.
  12375. If 'CALLBACK_STMT' is 'NULL' or it returns false, 'CALLBACK_OP' is
  12376. called on each operand of the statement via 'walk_gimple_op'. If
  12377. 'walk_gimple_op' returns non-'NULL' for any operand, the remaining
  12378. operands are not scanned.
  12379. The return value is that returned by the last call to
  12380. 'walk_gimple_op', or 'NULL_TREE' if no 'CALLBACK_OP' is specified.
  12381. -- GIMPLE function: tree walk_gimple_op (gimple stmt, walk_tree_fn
  12382. callback_op, struct walk_stmt_info *wi)
  12383. Use this function to walk the operands of statement 'STMT'. Every
  12384. operand is walked via 'walk_tree' with optional state information
  12385. in 'WI'.
  12386. 'CALLBACK_OP' is called on each operand of 'STMT' via 'walk_tree'.
  12387. Additional parameters to 'walk_tree' must be stored in 'WI'. For
  12388. each operand 'OP', 'walk_tree' is called as:
  12389. walk_tree (&OP, CALLBACK_OP, WI, PSET)
  12390. If 'CALLBACK_OP' returns non-'NULL' for an operand, the remaining
  12391. operands are not scanned. The return value is that returned by the
  12392. last call to 'walk_tree', or 'NULL_TREE' if no 'CALLBACK_OP' is
  12393. specified.
  12394. -- GIMPLE function: tree walk_gimple_seq (gimple_seq seq, walk_stmt_fn
  12395. callback_stmt, walk_tree_fn callback_op, struct walk_stmt_info
  12396. *wi)
  12397. This function walks all the statements in the sequence 'SEQ'
  12398. calling 'walk_gimple_stmt' on each one. 'WI' is as in
  12399. 'walk_gimple_stmt'. If 'walk_gimple_stmt' returns non-'NULL', the
  12400. walk is stopped and the value returned. Otherwise, all the
  12401. statements are walked and 'NULL_TREE' returned.
  12402. 
  12403. File: gccint.info, Node: Tree SSA, Next: RTL, Prev: GIMPLE, Up: Top
  12404. 13 Analysis and Optimization of GIMPLE tuples
  12405. *********************************************
  12406. GCC uses three main intermediate languages to represent the program
  12407. during compilation: GENERIC, GIMPLE and RTL. GENERIC is a
  12408. language-independent representation generated by each front end. It is
  12409. used to serve as an interface between the parser and optimizer. GENERIC
  12410. is a common representation that is able to represent programs written in
  12411. all the languages supported by GCC.
  12412. GIMPLE and RTL are used to optimize the program. GIMPLE is used for
  12413. target and language independent optimizations (e.g., inlining, constant
  12414. propagation, tail call elimination, redundancy elimination, etc). Much
  12415. like GENERIC, GIMPLE is a language independent, tree based
  12416. representation. However, it differs from GENERIC in that the GIMPLE
  12417. grammar is more restrictive: expressions contain no more than 3 operands
  12418. (except function calls), it has no control flow structures and
  12419. expressions with side effects are only allowed on the right hand side of
  12420. assignments. See the chapter describing GENERIC and GIMPLE for more
  12421. details.
  12422. This chapter describes the data structures and functions used in the
  12423. GIMPLE optimizers (also known as "tree optimizers" or "middle end"). In
  12424. particular, it focuses on all the macros, data structures, functions and
  12425. programming constructs needed to implement optimization passes for
  12426. GIMPLE.
  12427. * Menu:
  12428. * Annotations:: Attributes for variables.
  12429. * SSA Operands:: SSA names referenced by GIMPLE statements.
  12430. * SSA:: Static Single Assignment representation.
  12431. * Alias analysis:: Representing aliased loads and stores.
  12432. * Memory model:: Memory model used by the middle-end.
  12433. 
  12434. File: gccint.info, Node: Annotations, Next: SSA Operands, Up: Tree SSA
  12435. 13.1 Annotations
  12436. ================
  12437. The optimizers need to associate attributes with variables during the
  12438. optimization process. For instance, we need to know whether a variable
  12439. has aliases. All these attributes are stored in data structures called
  12440. annotations which are then linked to the field 'ann' in 'struct
  12441. tree_common'.
  12442. 
  12443. File: gccint.info, Node: SSA Operands, Next: SSA, Prev: Annotations, Up: Tree SSA
  12444. 13.2 SSA Operands
  12445. =================
  12446. Almost every GIMPLE statement will contain a reference to a variable or
  12447. memory location. Since statements come in different shapes and sizes,
  12448. their operands are going to be located at various spots inside the
  12449. statement's tree. To facilitate access to the statement's operands,
  12450. they are organized into lists associated inside each statement's
  12451. annotation. Each element in an operand list is a pointer to a
  12452. 'VAR_DECL', 'PARM_DECL' or 'SSA_NAME' tree node. This provides a very
  12453. convenient way of examining and replacing operands.
  12454. Data flow analysis and optimization is done on all tree nodes
  12455. representing variables. Any node for which 'SSA_VAR_P' returns nonzero
  12456. is considered when scanning statement operands. However, not all
  12457. 'SSA_VAR_P' variables are processed in the same way. For the purposes
  12458. of optimization, we need to distinguish between references to local
  12459. scalar variables and references to globals, statics, structures, arrays,
  12460. aliased variables, etc. The reason is simple, the compiler can gather
  12461. complete data flow information for a local scalar. On the other hand, a
  12462. global variable may be modified by a function call, it may not be
  12463. possible to keep track of all the elements of an array or the fields of
  12464. a structure, etc.
  12465. The operand scanner gathers two kinds of operands: "real" and
  12466. "virtual". An operand for which 'is_gimple_reg' returns true is
  12467. considered real, otherwise it is a virtual operand. We also distinguish
  12468. between uses and definitions. An operand is used if its value is loaded
  12469. by the statement (e.g., the operand at the RHS of an assignment). If
  12470. the statement assigns a new value to the operand, the operand is
  12471. considered a definition (e.g., the operand at the LHS of an assignment).
  12472. Virtual and real operands also have very different data flow
  12473. properties. Real operands are unambiguous references to the full object
  12474. that they represent. For instance, given
  12475. {
  12476. int a, b;
  12477. a = b
  12478. }
  12479. Since 'a' and 'b' are non-aliased locals, the statement 'a = b' will
  12480. have one real definition and one real use because variable 'a' is
  12481. completely modified with the contents of variable 'b'. Real definition
  12482. are also known as "killing definitions". Similarly, the use of 'b'
  12483. reads all its bits.
  12484. In contrast, virtual operands are used with variables that can have a
  12485. partial or ambiguous reference. This includes structures, arrays,
  12486. globals, and aliased variables. In these cases, we have two types of
  12487. definitions. For globals, structures, and arrays, we can determine from
  12488. a statement whether a variable of these types has a killing definition.
  12489. If the variable does, then the statement is marked as having a "must
  12490. definition" of that variable. However, if a statement is only defining
  12491. a part of the variable (i.e. a field in a structure), or if we know that
  12492. a statement might define the variable but we cannot say for sure, then
  12493. we mark that statement as having a "may definition". For instance,
  12494. given
  12495. {
  12496. int a, b, *p;
  12497. if (...)
  12498. p = &a;
  12499. else
  12500. p = &b;
  12501. *p = 5;
  12502. return *p;
  12503. }
  12504. The assignment '*p = 5' may be a definition of 'a' or 'b'. If we
  12505. cannot determine statically where 'p' is pointing to at the time of the
  12506. store operation, we create virtual definitions to mark that statement as
  12507. a potential definition site for 'a' and 'b'. Memory loads are similarly
  12508. marked with virtual use operands. Virtual operands are shown in tree
  12509. dumps right before the statement that contains them. To request a tree
  12510. dump with virtual operands, use the '-vops' option to '-fdump-tree':
  12511. {
  12512. int a, b, *p;
  12513. if (...)
  12514. p = &a;
  12515. else
  12516. p = &b;
  12517. # a = VDEF <a>
  12518. # b = VDEF <b>
  12519. *p = 5;
  12520. # VUSE <a>
  12521. # VUSE <b>
  12522. return *p;
  12523. }
  12524. Notice that 'VDEF' operands have two copies of the referenced variable.
  12525. This indicates that this is not a killing definition of that variable.
  12526. In this case we refer to it as a "may definition" or "aliased store".
  12527. The presence of the second copy of the variable in the 'VDEF' operand
  12528. will become important when the function is converted into SSA form.
  12529. This will be used to link all the non-killing definitions to prevent
  12530. optimizations from making incorrect assumptions about them.
  12531. Operands are updated as soon as the statement is finished via a call to
  12532. 'update_stmt'. If statement elements are changed via 'SET_USE' or
  12533. 'SET_DEF', then no further action is required (i.e., those macros take
  12534. care of updating the statement). If changes are made by manipulating
  12535. the statement's tree directly, then a call must be made to 'update_stmt'
  12536. when complete. Calling one of the 'bsi_insert' routines or
  12537. 'bsi_replace' performs an implicit call to 'update_stmt'.
  12538. 13.2.1 Operand Iterators And Access Routines
  12539. --------------------------------------------
  12540. Operands are collected by 'tree-ssa-operands.c'. They are stored inside
  12541. each statement's annotation and can be accessed through either the
  12542. operand iterators or an access routine.
  12543. The following access routines are available for examining operands:
  12544. 1. 'SINGLE_SSA_{USE,DEF,TREE}_OPERAND': These accessors will return
  12545. NULL unless there is exactly one operand matching the specified
  12546. flags. If there is exactly one operand, the operand is returned as
  12547. either a 'tree', 'def_operand_p', or 'use_operand_p'.
  12548. tree t = SINGLE_SSA_TREE_OPERAND (stmt, flags);
  12549. use_operand_p u = SINGLE_SSA_USE_OPERAND (stmt, SSA_ALL_VIRTUAL_USES);
  12550. def_operand_p d = SINGLE_SSA_DEF_OPERAND (stmt, SSA_OP_ALL_DEFS);
  12551. 2. 'ZERO_SSA_OPERANDS': This macro returns true if there are no
  12552. operands matching the specified flags.
  12553. if (ZERO_SSA_OPERANDS (stmt, SSA_OP_ALL_VIRTUALS))
  12554. return;
  12555. 3. 'NUM_SSA_OPERANDS': This macro Returns the number of operands
  12556. matching 'flags'. This actually executes a loop to perform the
  12557. count, so only use this if it is really needed.
  12558. int count = NUM_SSA_OPERANDS (stmt, flags)
  12559. If you wish to iterate over some or all operands, use the
  12560. 'FOR_EACH_SSA_{USE,DEF,TREE}_OPERAND' iterator. For example, to print
  12561. all the operands for a statement:
  12562. void
  12563. print_ops (tree stmt)
  12564. {
  12565. ssa_op_iter;
  12566. tree var;
  12567. FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_OPERANDS)
  12568. print_generic_expr (stderr, var, TDF_SLIM);
  12569. }
  12570. How to choose the appropriate iterator:
  12571. 1. Determine whether you are need to see the operand pointers, or just
  12572. the trees, and choose the appropriate macro:
  12573. Need Macro:
  12574. ---- -------
  12575. use_operand_p FOR_EACH_SSA_USE_OPERAND
  12576. def_operand_p FOR_EACH_SSA_DEF_OPERAND
  12577. tree FOR_EACH_SSA_TREE_OPERAND
  12578. 2. You need to declare a variable of the type you are interested in,
  12579. and an ssa_op_iter structure which serves as the loop controlling
  12580. variable.
  12581. 3. Determine which operands you wish to use, and specify the flags of
  12582. those you are interested in. They are documented in
  12583. 'tree-ssa-operands.h':
  12584. #define SSA_OP_USE 0x01 /* Real USE operands. */
  12585. #define SSA_OP_DEF 0x02 /* Real DEF operands. */
  12586. #define SSA_OP_VUSE 0x04 /* VUSE operands. */
  12587. #define SSA_OP_VDEF 0x08 /* VDEF operands. */
  12588. /* These are commonly grouped operand flags. */
  12589. #define SSA_OP_VIRTUAL_USES (SSA_OP_VUSE)
  12590. #define SSA_OP_VIRTUAL_DEFS (SSA_OP_VDEF)
  12591. #define SSA_OP_ALL_VIRTUALS (SSA_OP_VIRTUAL_USES | SSA_OP_VIRTUAL_DEFS)
  12592. #define SSA_OP_ALL_USES (SSA_OP_VIRTUAL_USES | SSA_OP_USE)
  12593. #define SSA_OP_ALL_DEFS (SSA_OP_VIRTUAL_DEFS | SSA_OP_DEF)
  12594. #define SSA_OP_ALL_OPERANDS (SSA_OP_ALL_USES | SSA_OP_ALL_DEFS)
  12595. So if you want to look at the use pointers for all the 'USE' and 'VUSE'
  12596. operands, you would do something like:
  12597. use_operand_p use_p;
  12598. ssa_op_iter iter;
  12599. FOR_EACH_SSA_USE_OPERAND (use_p, stmt, iter, (SSA_OP_USE | SSA_OP_VUSE))
  12600. {
  12601. process_use_ptr (use_p);
  12602. }
  12603. The 'TREE' macro is basically the same as the 'USE' and 'DEF' macros,
  12604. only with the use or def dereferenced via 'USE_FROM_PTR (use_p)' and
  12605. 'DEF_FROM_PTR (def_p)'. Since we aren't using operand pointers, use and
  12606. defs flags can be mixed.
  12607. tree var;
  12608. ssa_op_iter iter;
  12609. FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_VUSE)
  12610. {
  12611. print_generic_expr (stderr, var, TDF_SLIM);
  12612. }
  12613. 'VDEF's are broken into two flags, one for the 'DEF' portion
  12614. ('SSA_OP_VDEF') and one for the USE portion ('SSA_OP_VUSE').
  12615. There are many examples in the code, in addition to the documentation
  12616. in 'tree-ssa-operands.h' and 'ssa-iterators.h'.
  12617. There are also a couple of variants on the stmt iterators regarding PHI
  12618. nodes.
  12619. 'FOR_EACH_PHI_ARG' Works exactly like 'FOR_EACH_SSA_USE_OPERAND',
  12620. except it works over 'PHI' arguments instead of statement operands.
  12621. /* Look at every virtual PHI use. */
  12622. FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_VIRTUAL_USES)
  12623. {
  12624. my_code;
  12625. }
  12626. /* Look at every real PHI use. */
  12627. FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_USES)
  12628. my_code;
  12629. /* Look at every PHI use. */
  12630. FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_ALL_USES)
  12631. my_code;
  12632. 'FOR_EACH_PHI_OR_STMT_{USE,DEF}' works exactly like
  12633. 'FOR_EACH_SSA_{USE,DEF}_OPERAND', except it will function on either a
  12634. statement or a 'PHI' node. These should be used when it is appropriate
  12635. but they are not quite as efficient as the individual 'FOR_EACH_PHI' and
  12636. 'FOR_EACH_SSA' routines.
  12637. FOR_EACH_PHI_OR_STMT_USE (use_operand_p, stmt, iter, flags)
  12638. {
  12639. my_code;
  12640. }
  12641. FOR_EACH_PHI_OR_STMT_DEF (def_operand_p, phi, iter, flags)
  12642. {
  12643. my_code;
  12644. }
  12645. 13.2.2 Immediate Uses
  12646. ---------------------
  12647. Immediate use information is now always available. Using the immediate
  12648. use iterators, you may examine every use of any 'SSA_NAME'. For
  12649. instance, to change each use of 'ssa_var' to 'ssa_var2' and call
  12650. fold_stmt on each stmt after that is done:
  12651. use_operand_p imm_use_p;
  12652. imm_use_iterator iterator;
  12653. tree ssa_var, stmt;
  12654. FOR_EACH_IMM_USE_STMT (stmt, iterator, ssa_var)
  12655. {
  12656. FOR_EACH_IMM_USE_ON_STMT (imm_use_p, iterator)
  12657. SET_USE (imm_use_p, ssa_var_2);
  12658. fold_stmt (stmt);
  12659. }
  12660. There are 2 iterators which can be used. 'FOR_EACH_IMM_USE_FAST' is
  12661. used when the immediate uses are not changed, i.e., you are looking at
  12662. the uses, but not setting them.
  12663. If they do get changed, then care must be taken that things are not
  12664. changed under the iterators, so use the 'FOR_EACH_IMM_USE_STMT' and
  12665. 'FOR_EACH_IMM_USE_ON_STMT' iterators. They attempt to preserve the
  12666. sanity of the use list by moving all the uses for a statement into a
  12667. controlled position, and then iterating over those uses. Then the
  12668. optimization can manipulate the stmt when all the uses have been
  12669. processed. This is a little slower than the FAST version since it adds
  12670. a placeholder element and must sort through the list a bit for each
  12671. statement. This placeholder element must be also be removed if the loop
  12672. is terminated early; a destructor takes care of that when leaving the
  12673. 'FOR_EACH_IMM_USE_STMT' scope.
  12674. There are checks in 'verify_ssa' which verify that the immediate use
  12675. list is up to date, as well as checking that an optimization didn't
  12676. break from the loop without using this macro. It is safe to simply
  12677. 'break'; from a 'FOR_EACH_IMM_USE_FAST' traverse.
  12678. Some useful functions and macros:
  12679. 1. 'has_zero_uses (ssa_var)' : Returns true if there are no uses of
  12680. 'ssa_var'.
  12681. 2. 'has_single_use (ssa_var)' : Returns true if there is only a single
  12682. use of 'ssa_var'.
  12683. 3. 'single_imm_use (ssa_var, use_operand_p *ptr, tree *stmt)' :
  12684. Returns true if there is only a single use of 'ssa_var', and also
  12685. returns the use pointer and statement it occurs in, in the second
  12686. and third parameters.
  12687. 4. 'num_imm_uses (ssa_var)' : Returns the number of immediate uses of
  12688. 'ssa_var'. It is better not to use this if possible since it
  12689. simply utilizes a loop to count the uses.
  12690. 5. 'PHI_ARG_INDEX_FROM_USE (use_p)' : Given a use within a 'PHI' node,
  12691. return the index number for the use. An assert is triggered if the
  12692. use isn't located in a 'PHI' node.
  12693. 6. 'USE_STMT (use_p)' : Return the statement a use occurs in.
  12694. Note that uses are not put into an immediate use list until their
  12695. statement is actually inserted into the instruction stream via a 'bsi_*'
  12696. routine.
  12697. It is also still possible to utilize lazy updating of statements, but
  12698. this should be used only when absolutely required. Both alias analysis
  12699. and the dominator optimizations currently do this.
  12700. When lazy updating is being used, the immediate use information is out
  12701. of date and cannot be used reliably. Lazy updating is achieved by
  12702. simply marking statements modified via calls to 'gimple_set_modified'
  12703. instead of 'update_stmt'. When lazy updating is no longer required, all
  12704. the modified statements must have 'update_stmt' called in order to bring
  12705. them up to date. This must be done before the optimization is finished,
  12706. or 'verify_ssa' will trigger an abort.
  12707. This is done with a simple loop over the instruction stream:
  12708. block_stmt_iterator bsi;
  12709. basic_block bb;
  12710. FOR_EACH_BB (bb)
  12711. {
  12712. for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
  12713. update_stmt_if_modified (bsi_stmt (bsi));
  12714. }
  12715. 
  12716. File: gccint.info, Node: SSA, Next: Alias analysis, Prev: SSA Operands, Up: Tree SSA
  12717. 13.3 Static Single Assignment
  12718. =============================
  12719. Most of the tree optimizers rely on the data flow information provided
  12720. by the Static Single Assignment (SSA) form. We implement the SSA form
  12721. as described in 'R. Cytron, J. Ferrante, B. Rosen, M. Wegman, and K.
  12722. Zadeck. Efficiently Computing Static Single Assignment Form and the
  12723. Control Dependence Graph. ACM Transactions on Programming Languages and
  12724. Systems, 13(4):451-490, October 1991'.
  12725. The SSA form is based on the premise that program variables are
  12726. assigned in exactly one location in the program. Multiple assignments
  12727. to the same variable create new versions of that variable. Naturally,
  12728. actual programs are seldom in SSA form initially because variables tend
  12729. to be assigned multiple times. The compiler modifies the program
  12730. representation so that every time a variable is assigned in the code, a
  12731. new version of the variable is created. Different versions of the same
  12732. variable are distinguished by subscripting the variable name with its
  12733. version number. Variables used in the right-hand side of expressions
  12734. are renamed so that their version number matches that of the most recent
  12735. assignment.
  12736. We represent variable versions using 'SSA_NAME' nodes. The renaming
  12737. process in 'tree-ssa.c' wraps every real and virtual operand with an
  12738. 'SSA_NAME' node which contains the version number and the statement that
  12739. created the 'SSA_NAME'. Only definitions and virtual definitions may
  12740. create new 'SSA_NAME' nodes.
  12741. Sometimes, flow of control makes it impossible to determine the most
  12742. recent version of a variable. In these cases, the compiler inserts an
  12743. artificial definition for that variable called "PHI function" or "PHI
  12744. node". This new definition merges all the incoming versions of the
  12745. variable to create a new name for it. For instance,
  12746. if (...)
  12747. a_1 = 5;
  12748. else if (...)
  12749. a_2 = 2;
  12750. else
  12751. a_3 = 13;
  12752. # a_4 = PHI <a_1, a_2, a_3>
  12753. return a_4;
  12754. Since it is not possible to determine which of the three branches will
  12755. be taken at runtime, we don't know which of 'a_1', 'a_2' or 'a_3' to use
  12756. at the return statement. So, the SSA renamer creates a new version
  12757. 'a_4' which is assigned the result of "merging" 'a_1', 'a_2' and 'a_3'.
  12758. Hence, PHI nodes mean "one of these operands. I don't know which".
  12759. The following functions can be used to examine PHI nodes
  12760. -- Function: gimple_phi_result (PHI)
  12761. Returns the 'SSA_NAME' created by PHI node PHI (i.e., PHI's LHS).
  12762. -- Function: gimple_phi_num_args (PHI)
  12763. Returns the number of arguments in PHI. This number is exactly the
  12764. number of incoming edges to the basic block holding PHI.
  12765. -- Function: gimple_phi_arg (PHI, I)
  12766. Returns Ith argument of PHI.
  12767. -- Function: gimple_phi_arg_edge (PHI, I)
  12768. Returns the incoming edge for the Ith argument of PHI.
  12769. -- Function: gimple_phi_arg_def (PHI, I)
  12770. Returns the 'SSA_NAME' for the Ith argument of PHI.
  12771. 13.3.1 Preserving the SSA form
  12772. ------------------------------
  12773. Some optimization passes make changes to the function that invalidate
  12774. the SSA property. This can happen when a pass has added new symbols or
  12775. changed the program so that variables that were previously aliased
  12776. aren't anymore. Whenever something like this happens, the affected
  12777. symbols must be renamed into SSA form again. Transformations that emit
  12778. new code or replicate existing statements will also need to update the
  12779. SSA form.
  12780. Since GCC implements two different SSA forms for register and virtual
  12781. variables, keeping the SSA form up to date depends on whether you are
  12782. updating register or virtual names. In both cases, the general idea
  12783. behind incremental SSA updates is similar: when new SSA names are
  12784. created, they typically are meant to replace other existing names in the
  12785. program.
  12786. For instance, given the following code:
  12787. 1 L0:
  12788. 2 x_1 = PHI (0, x_5)
  12789. 3 if (x_1 < 10)
  12790. 4 if (x_1 > 7)
  12791. 5 y_2 = 0
  12792. 6 else
  12793. 7 y_3 = x_1 + x_7
  12794. 8 endif
  12795. 9 x_5 = x_1 + 1
  12796. 10 goto L0;
  12797. 11 endif
  12798. Suppose that we insert new names 'x_10' and 'x_11' (lines '4' and '8').
  12799. 1 L0:
  12800. 2 x_1 = PHI (0, x_5)
  12801. 3 if (x_1 < 10)
  12802. 4 x_10 = ...
  12803. 5 if (x_1 > 7)
  12804. 6 y_2 = 0
  12805. 7 else
  12806. 8 x_11 = ...
  12807. 9 y_3 = x_1 + x_7
  12808. 10 endif
  12809. 11 x_5 = x_1 + 1
  12810. 12 goto L0;
  12811. 13 endif
  12812. We want to replace all the uses of 'x_1' with the new definitions of
  12813. 'x_10' and 'x_11'. Note that the only uses that should be replaced are
  12814. those at lines '5', '9' and '11'. Also, the use of 'x_7' at line '9'
  12815. should _not_ be replaced (this is why we cannot just mark symbol 'x' for
  12816. renaming).
  12817. Additionally, we may need to insert a PHI node at line '11' because
  12818. that is a merge point for 'x_10' and 'x_11'. So the use of 'x_1' at
  12819. line '11' will be replaced with the new PHI node. The insertion of PHI
  12820. nodes is optional. They are not strictly necessary to preserve the SSA
  12821. form, and depending on what the caller inserted, they may not even be
  12822. useful for the optimizers.
  12823. Updating the SSA form is a two step process. First, the pass has to
  12824. identify which names need to be updated and/or which symbols need to be
  12825. renamed into SSA form for the first time. When new names are introduced
  12826. to replace existing names in the program, the mapping between the old
  12827. and the new names are registered by calling 'register_new_name_mapping'
  12828. (note that if your pass creates new code by duplicating basic blocks,
  12829. the call to 'tree_duplicate_bb' will set up the necessary mappings
  12830. automatically).
  12831. After the replacement mappings have been registered and new symbols
  12832. marked for renaming, a call to 'update_ssa' makes the registered
  12833. changes. This can be done with an explicit call or by creating 'TODO'
  12834. flags in the 'tree_opt_pass' structure for your pass. There are several
  12835. 'TODO' flags that control the behavior of 'update_ssa':
  12836. * 'TODO_update_ssa'. Update the SSA form inserting PHI nodes for
  12837. newly exposed symbols and virtual names marked for updating. When
  12838. updating real names, only insert PHI nodes for a real name 'O_j' in
  12839. blocks reached by all the new and old definitions for 'O_j'. If
  12840. the iterated dominance frontier for 'O_j' is not pruned, we may end
  12841. up inserting PHI nodes in blocks that have one or more edges with
  12842. no incoming definition for 'O_j'. This would lead to uninitialized
  12843. warnings for 'O_j''s symbol.
  12844. * 'TODO_update_ssa_no_phi'. Update the SSA form without inserting
  12845. any new PHI nodes at all. This is used by passes that have either
  12846. inserted all the PHI nodes themselves or passes that need only to
  12847. patch use-def and def-def chains for virtuals (e.g., DCE).
  12848. * 'TODO_update_ssa_full_phi'. Insert PHI nodes everywhere they are
  12849. needed. No pruning of the IDF is done. This is used by passes
  12850. that need the PHI nodes for 'O_j' even if it means that some
  12851. arguments will come from the default definition of 'O_j''s symbol
  12852. (e.g., 'pass_linear_transform').
  12853. WARNING: If you need to use this flag, chances are that your pass
  12854. may be doing something wrong. Inserting PHI nodes for an old name
  12855. where not all edges carry a new replacement may lead to silent
  12856. codegen errors or spurious uninitialized warnings.
  12857. * 'TODO_update_ssa_only_virtuals'. Passes that update the SSA form
  12858. on their own may want to delegate the updating of virtual names to
  12859. the generic updater. Since FUD chains are easier to maintain, this
  12860. simplifies the work they need to do. NOTE: If this flag is used,
  12861. any OLD->NEW mappings for real names are explicitly destroyed and
  12862. only the symbols marked for renaming are processed.
  12863. 13.3.2 Examining 'SSA_NAME' nodes
  12864. ---------------------------------
  12865. The following macros can be used to examine 'SSA_NAME' nodes
  12866. -- Macro: SSA_NAME_DEF_STMT (VAR)
  12867. Returns the statement S that creates the 'SSA_NAME' VAR. If S is
  12868. an empty statement (i.e., 'IS_EMPTY_STMT (S)' returns 'true'), it
  12869. means that the first reference to this variable is a USE or a VUSE.
  12870. -- Macro: SSA_NAME_VERSION (VAR)
  12871. Returns the version number of the 'SSA_NAME' object VAR.
  12872. 13.3.3 Walking the dominator tree
  12873. ---------------------------------
  12874. -- Tree SSA function: void walk_dominator_tree (WALK_DATA, BB)
  12875. This function walks the dominator tree for the current CFG calling
  12876. a set of callback functions defined in STRUCT DOM_WALK_DATA in
  12877. 'domwalk.h'. The call back functions you need to define give you
  12878. hooks to execute custom code at various points during traversal:
  12879. 1. Once to initialize any local data needed while processing BB
  12880. and its children. This local data is pushed into an internal
  12881. stack which is automatically pushed and popped as the walker
  12882. traverses the dominator tree.
  12883. 2. Once before traversing all the statements in the BB.
  12884. 3. Once for every statement inside BB.
  12885. 4. Once after traversing all the statements and before recursing
  12886. into BB's dominator children.
  12887. 5. It then recurses into all the dominator children of BB.
  12888. 6. After recursing into all the dominator children of BB it can,
  12889. optionally, traverse every statement in BB again (i.e.,
  12890. repeating steps 2 and 3).
  12891. 7. Once after walking the statements in BB and BB's dominator
  12892. children. At this stage, the block local data stack is
  12893. popped.
  12894. 
  12895. File: gccint.info, Node: Alias analysis, Next: Memory model, Prev: SSA, Up: Tree SSA
  12896. 13.4 Alias analysis
  12897. ===================
  12898. Alias analysis in GIMPLE SSA form consists of two pieces. First the
  12899. virtual SSA web ties conflicting memory accesses and provides a SSA
  12900. use-def chain and SSA immediate-use chains for walking possibly
  12901. dependent memory accesses. Second an alias-oracle can be queried to
  12902. disambiguate explicit and implicit memory references.
  12903. 1. Memory SSA form.
  12904. All statements that may use memory have exactly one accompanied use
  12905. of a virtual SSA name that represents the state of memory at the
  12906. given point in the IL.
  12907. All statements that may define memory have exactly one accompanied
  12908. definition of a virtual SSA name using the previous state of memory
  12909. and defining the new state of memory after the given point in the
  12910. IL.
  12911. int i;
  12912. int foo (void)
  12913. {
  12914. # .MEM_3 = VDEF <.MEM_2(D)>
  12915. i = 1;
  12916. # VUSE <.MEM_3>
  12917. return i;
  12918. }
  12919. The virtual SSA names in this case are '.MEM_2(D)' and '.MEM_3'.
  12920. The store to the global variable 'i' defines '.MEM_3' invalidating
  12921. '.MEM_2(D)'. The load from 'i' uses that new state '.MEM_3'.
  12922. The virtual SSA web serves as constraints to SSA optimizers
  12923. preventing illegitimate code-motion and optimization. It also
  12924. provides a way to walk related memory statements.
  12925. 2. Points-to and escape analysis.
  12926. Points-to analysis builds a set of constraints from the GIMPLE SSA
  12927. IL representing all pointer operations and facts we do or do not
  12928. know about pointers. Solving this set of constraints yields a
  12929. conservatively correct solution for each pointer variable in the
  12930. program (though we are only interested in SSA name pointers) as to
  12931. what it may possibly point to.
  12932. This points-to solution for a given SSA name pointer is stored in
  12933. the 'pt_solution' sub-structure of the 'SSA_NAME_PTR_INFO' record.
  12934. The following accessor functions are available:
  12935. * 'pt_solution_includes'
  12936. * 'pt_solutions_intersect'
  12937. Points-to analysis also computes the solution for two special set
  12938. of pointers, 'ESCAPED' and 'CALLUSED'. Those represent all memory
  12939. that has escaped the scope of analysis or that is used by pure or
  12940. nested const calls.
  12941. 3. Type-based alias analysis
  12942. Type-based alias analysis is frontend dependent though generic
  12943. support is provided by the middle-end in 'alias.c'. TBAA code is
  12944. used by both tree optimizers and RTL optimizers.
  12945. Every language that wishes to perform language-specific alias
  12946. analysis should define a function that computes, given a 'tree'
  12947. node, an alias set for the node. Nodes in different alias sets are
  12948. not allowed to alias. For an example, see the C front-end function
  12949. 'c_get_alias_set'.
  12950. 4. Tree alias-oracle
  12951. The tree alias-oracle provides means to disambiguate two memory
  12952. references and memory references against statements. The following
  12953. queries are available:
  12954. * 'refs_may_alias_p'
  12955. * 'ref_maybe_used_by_stmt_p'
  12956. * 'stmt_may_clobber_ref_p'
  12957. In addition to those two kind of statement walkers are available
  12958. walking statements related to a reference ref.
  12959. 'walk_non_aliased_vuses' walks over dominating memory defining
  12960. statements and calls back if the statement does not clobber ref
  12961. providing the non-aliased VUSE. The walk stops at the first
  12962. clobbering statement or if asked to. 'walk_aliased_vdefs' walks
  12963. over dominating memory defining statements and calls back on each
  12964. statement clobbering ref providing its aliasing VDEF. The walk
  12965. stops if asked to.
  12966. 
  12967. File: gccint.info, Node: Memory model, Prev: Alias analysis, Up: Tree SSA
  12968. 13.5 Memory model
  12969. =================
  12970. The memory model used by the middle-end models that of the C/C++
  12971. languages. The middle-end has the notion of an effective type of a
  12972. memory region which is used for type-based alias analysis.
  12973. The following is a refinement of ISO C99 6.5/6, clarifying the block
  12974. copy case to follow common sense and extending the concept of a dynamic
  12975. effective type to objects with a declared type as required for C++.
  12976. The effective type of an object for an access to its stored value is
  12977. the declared type of the object or the effective type determined by
  12978. a previous store to it. If a value is stored into an object through
  12979. an lvalue having a type that is not a character type, then the
  12980. type of the lvalue becomes the effective type of the object for that
  12981. access and for subsequent accesses that do not modify the stored value.
  12982. If a value is copied into an object using memcpy or memmove,
  12983. or is copied as an array of character type, then the effective type
  12984. of the modified object for that access and for subsequent accesses that
  12985. do not modify the value is undetermined. For all other accesses to an
  12986. object, the effective type of the object is simply the type of the
  12987. lvalue used for the access.
  12988. 
  12989. File: gccint.info, Node: RTL, Next: Control Flow, Prev: Tree SSA, Up: Top
  12990. 14 RTL Representation
  12991. *********************
  12992. The last part of the compiler work is done on a low-level intermediate
  12993. representation called Register Transfer Language. In this language, the
  12994. instructions to be output are described, pretty much one by one, in an
  12995. algebraic form that describes what the instruction does.
  12996. RTL is inspired by Lisp lists. It has both an internal form, made up
  12997. of structures that point at other structures, and a textual form that is
  12998. used in the machine description and in printed debugging dumps. The
  12999. textual form uses nested parentheses to indicate the pointers in the
  13000. internal form.
  13001. * Menu:
  13002. * RTL Objects:: Expressions vs vectors vs strings vs integers.
  13003. * RTL Classes:: Categories of RTL expression objects, and their structure.
  13004. * Accessors:: Macros to access expression operands or vector elts.
  13005. * Special Accessors:: Macros to access specific annotations on RTL.
  13006. * Flags:: Other flags in an RTL expression.
  13007. * Machine Modes:: Describing the size and format of a datum.
  13008. * Constants:: Expressions with constant values.
  13009. * Regs and Memory:: Expressions representing register contents or memory.
  13010. * Arithmetic:: Expressions representing arithmetic on other expressions.
  13011. * Comparisons:: Expressions representing comparison of expressions.
  13012. * Bit-Fields:: Expressions representing bit-fields in memory or reg.
  13013. * Vector Operations:: Expressions involving vector datatypes.
  13014. * Conversions:: Extending, truncating, floating or fixing.
  13015. * RTL Declarations:: Declaring volatility, constancy, etc.
  13016. * Side Effects:: Expressions for storing in registers, etc.
  13017. * Incdec:: Embedded side-effects for autoincrement addressing.
  13018. * Assembler:: Representing 'asm' with operands.
  13019. * Debug Information:: Expressions representing debugging information.
  13020. * Insns:: Expression types for entire insns.
  13021. * Calls:: RTL representation of function call insns.
  13022. * RTL SSA:: An on-the-side SSA form for RTL
  13023. * Sharing:: Some expressions are unique; others *must* be copied.
  13024. * Reading RTL:: Reading textual RTL from a file.
  13025. 
  13026. File: gccint.info, Node: RTL Objects, Next: RTL Classes, Up: RTL
  13027. 14.1 RTL Object Types
  13028. =====================
  13029. RTL uses five kinds of objects: expressions, integers, wide integers,
  13030. strings and vectors. Expressions are the most important ones. An RTL
  13031. expression ("RTX", for short) is a C structure, but it is usually
  13032. referred to with a pointer; a type that is given the typedef name 'rtx'.
  13033. An integer is simply an 'int'; their written form uses decimal digits.
  13034. A wide integer is an integral object whose type is 'HOST_WIDE_INT';
  13035. their written form uses decimal digits.
  13036. A string is a sequence of characters. In core it is represented as a
  13037. 'char *' in usual C fashion, and it is written in C syntax as well.
  13038. However, strings in RTL may never be null. If you write an empty string
  13039. in a machine description, it is represented in core as a null pointer
  13040. rather than as a pointer to a null character. In certain contexts,
  13041. these null pointers instead of strings are valid. Within RTL code,
  13042. strings are most commonly found inside 'symbol_ref' expressions, but
  13043. they appear in other contexts in the RTL expressions that make up
  13044. machine descriptions.
  13045. In a machine description, strings are normally written with double
  13046. quotes, as you would in C. However, strings in machine descriptions may
  13047. extend over many lines, which is invalid C, and adjacent string
  13048. constants are not concatenated as they are in C. Any string constant
  13049. may be surrounded with a single set of parentheses. Sometimes this
  13050. makes the machine description easier to read.
  13051. There is also a special syntax for strings, which can be useful when C
  13052. code is embedded in a machine description. Wherever a string can
  13053. appear, it is also valid to write a C-style brace block. The entire
  13054. brace block, including the outermost pair of braces, is considered to be
  13055. the string constant. Double quote characters inside the braces are not
  13056. special. Therefore, if you write string constants in the C code, you
  13057. need not escape each quote character with a backslash.
  13058. A vector contains an arbitrary number of pointers to expressions. The
  13059. number of elements in the vector is explicitly present in the vector.
  13060. The written form of a vector consists of square brackets ('[...]')
  13061. surrounding the elements, in sequence and with whitespace separating
  13062. them. Vectors of length zero are not created; null pointers are used
  13063. instead.
  13064. Expressions are classified by "expression codes" (also called RTX
  13065. codes). The expression code is a name defined in 'rtl.def', which is
  13066. also (in uppercase) a C enumeration constant. The possible expression
  13067. codes and their meanings are machine-independent. The code of an RTX
  13068. can be extracted with the macro 'GET_CODE (X)' and altered with
  13069. 'PUT_CODE (X, NEWCODE)'.
  13070. The expression code determines how many operands the expression
  13071. contains, and what kinds of objects they are. In RTL, unlike Lisp, you
  13072. cannot tell by looking at an operand what kind of object it is.
  13073. Instead, you must know from its context--from the expression code of the
  13074. containing expression. For example, in an expression of code 'subreg',
  13075. the first operand is to be regarded as an expression and the second
  13076. operand as a polynomial integer. In an expression of code 'plus', there
  13077. are two operands, both of which are to be regarded as expressions. In a
  13078. 'symbol_ref' expression, there is one operand, which is to be regarded
  13079. as a string.
  13080. Expressions are written as parentheses containing the name of the
  13081. expression type, its flags and machine mode if any, and then the
  13082. operands of the expression (separated by spaces).
  13083. Expression code names in the 'md' file are written in lowercase, but
  13084. when they appear in C code they are written in uppercase. In this
  13085. manual, they are shown as follows: 'const_int'.
  13086. In a few contexts a null pointer is valid where an expression is
  13087. normally wanted. The written form of this is '(nil)'.
  13088. 
  13089. File: gccint.info, Node: RTL Classes, Next: Accessors, Prev: RTL Objects, Up: RTL
  13090. 14.2 RTL Classes and Formats
  13091. ============================
  13092. The various expression codes are divided into several "classes", which
  13093. are represented by single characters. You can determine the class of an
  13094. RTX code with the macro 'GET_RTX_CLASS (CODE)'. Currently, 'rtl.def'
  13095. defines these classes:
  13096. 'RTX_OBJ'
  13097. An RTX code that represents an actual object, such as a register
  13098. ('REG') or a memory location ('MEM', 'SYMBOL_REF'). 'LO_SUM') is
  13099. also included; instead, 'SUBREG' and 'STRICT_LOW_PART' are not in
  13100. this class, but in class 'RTX_EXTRA'.
  13101. 'RTX_CONST_OBJ'
  13102. An RTX code that represents a constant object. 'HIGH' is also
  13103. included in this class.
  13104. 'RTX_COMPARE'
  13105. An RTX code for a non-symmetric comparison, such as 'GEU' or 'LT'.
  13106. 'RTX_COMM_COMPARE'
  13107. An RTX code for a symmetric (commutative) comparison, such as 'EQ'
  13108. or 'ORDERED'.
  13109. 'RTX_UNARY'
  13110. An RTX code for a unary arithmetic operation, such as 'NEG', 'NOT',
  13111. or 'ABS'. This category also includes value extension (sign or
  13112. zero) and conversions between integer and floating point.
  13113. 'RTX_COMM_ARITH'
  13114. An RTX code for a commutative binary operation, such as 'PLUS' or
  13115. 'AND'. 'NE' and 'EQ' are comparisons, so they have class
  13116. 'RTX_COMM_COMPARE'.
  13117. 'RTX_BIN_ARITH'
  13118. An RTX code for a non-commutative binary operation, such as
  13119. 'MINUS', 'DIV', or 'ASHIFTRT'.
  13120. 'RTX_BITFIELD_OPS'
  13121. An RTX code for a bit-field operation. Currently only
  13122. 'ZERO_EXTRACT' and 'SIGN_EXTRACT'. These have three inputs and are
  13123. lvalues (so they can be used for insertion as well). *Note
  13124. Bit-Fields::.
  13125. 'RTX_TERNARY'
  13126. An RTX code for other three input operations. Currently only
  13127. 'IF_THEN_ELSE', 'VEC_MERGE', 'SIGN_EXTRACT', 'ZERO_EXTRACT', and
  13128. 'FMA'.
  13129. 'RTX_INSN'
  13130. An RTX code for an entire instruction: 'INSN', 'JUMP_INSN', and
  13131. 'CALL_INSN'. *Note Insns::.
  13132. 'RTX_MATCH'
  13133. An RTX code for something that matches in insns, such as
  13134. 'MATCH_DUP'. These only occur in machine descriptions.
  13135. 'RTX_AUTOINC'
  13136. An RTX code for an auto-increment addressing mode, such as
  13137. 'POST_INC'. 'XEXP (X, 0)' gives the auto-modified register.
  13138. 'RTX_EXTRA'
  13139. All other RTX codes. This category includes the remaining codes
  13140. used only in machine descriptions ('DEFINE_*', etc.). It also
  13141. includes all the codes describing side effects ('SET', 'USE',
  13142. 'CLOBBER', etc.) and the non-insns that may appear on an insn
  13143. chain, such as 'NOTE', 'BARRIER', and 'CODE_LABEL'. 'SUBREG' is
  13144. also part of this class.
  13145. For each expression code, 'rtl.def' specifies the number of contained
  13146. objects and their kinds using a sequence of characters called the
  13147. "format" of the expression code. For example, the format of 'subreg' is
  13148. 'ep'.
  13149. These are the most commonly used format characters:
  13150. 'e'
  13151. An expression (actually a pointer to an expression).
  13152. 'i'
  13153. An integer.
  13154. 'w'
  13155. A wide integer.
  13156. 's'
  13157. A string.
  13158. 'E'
  13159. A vector of expressions.
  13160. A few other format characters are used occasionally:
  13161. 'u'
  13162. 'u' is equivalent to 'e' except that it is printed differently in
  13163. debugging dumps. It is used for pointers to insns.
  13164. 'n'
  13165. 'n' is equivalent to 'i' except that it is printed differently in
  13166. debugging dumps. It is used for the line number or code number of
  13167. a 'note' insn.
  13168. 'S'
  13169. 'S' indicates a string which is optional. In the RTL objects in
  13170. core, 'S' is equivalent to 's', but when the object is read, from
  13171. an 'md' file, the string value of this operand may be omitted. An
  13172. omitted string is taken to be the null string.
  13173. 'V'
  13174. 'V' indicates a vector which is optional. In the RTL objects in
  13175. core, 'V' is equivalent to 'E', but when the object is read from an
  13176. 'md' file, the vector value of this operand may be omitted. An
  13177. omitted vector is effectively the same as a vector of no elements.
  13178. 'B'
  13179. 'B' indicates a pointer to basic block structure.
  13180. 'p'
  13181. A polynomial integer. At present this is used only for
  13182. 'SUBREG_BYTE'.
  13183. '0'
  13184. '0' means a slot whose contents do not fit any normal category.
  13185. '0' slots are not printed at all in dumps, and are often used in
  13186. special ways by small parts of the compiler.
  13187. There are macros to get the number of operands and the format of an
  13188. expression code:
  13189. 'GET_RTX_LENGTH (CODE)'
  13190. Number of operands of an RTX of code CODE.
  13191. 'GET_RTX_FORMAT (CODE)'
  13192. The format of an RTX of code CODE, as a C string.
  13193. Some classes of RTX codes always have the same format. For example, it
  13194. is safe to assume that all comparison operations have format 'ee'.
  13195. 'RTX_UNARY'
  13196. All codes of this class have format 'e'.
  13197. 'RTX_BIN_ARITH'
  13198. 'RTX_COMM_ARITH'
  13199. 'RTX_COMM_COMPARE'
  13200. 'RTX_COMPARE'
  13201. All codes of these classes have format 'ee'.
  13202. 'RTX_BITFIELD_OPS'
  13203. 'RTX_TERNARY'
  13204. All codes of these classes have format 'eee'.
  13205. 'RTX_INSN'
  13206. All codes of this class have formats that begin with 'iuueiee'.
  13207. *Note Insns::. Note that not all RTL objects linked onto an insn
  13208. chain are of class 'RTX_INSN'.
  13209. 'RTX_CONST_OBJ'
  13210. 'RTX_OBJ'
  13211. 'RTX_MATCH'
  13212. 'RTX_EXTRA'
  13213. You can make no assumptions about the format of these codes.
  13214. 
  13215. File: gccint.info, Node: Accessors, Next: Special Accessors, Prev: RTL Classes, Up: RTL
  13216. 14.3 Access to Operands
  13217. =======================
  13218. Operands of expressions are accessed using the macros 'XEXP', 'XINT',
  13219. 'XWINT' and 'XSTR'. Each of these macros takes two arguments: an
  13220. expression-pointer (RTX) and an operand number (counting from zero).
  13221. Thus,
  13222. XEXP (X, 2)
  13223. accesses operand 2 of expression X, as an expression.
  13224. XINT (X, 2)
  13225. accesses the same operand as an integer. 'XSTR', used in the same
  13226. fashion, would access it as a string.
  13227. Any operand can be accessed as an integer, as an expression or as a
  13228. string. You must choose the correct method of access for the kind of
  13229. value actually stored in the operand. You would do this based on the
  13230. expression code of the containing expression. That is also how you
  13231. would know how many operands there are.
  13232. For example, if X is an 'int_list' expression, you know that it has two
  13233. operands which can be correctly accessed as 'XINT (X, 0)' and 'XEXP (X,
  13234. 1)'. Incorrect accesses like 'XEXP (X, 0)' and 'XINT (X, 1)' would
  13235. compile, but would trigger an internal compiler error when rtl checking
  13236. is enabled. Nothing stops you from writing 'XEXP (X, 28)' either, but
  13237. this will access memory past the end of the expression with
  13238. unpredictable results.
  13239. Access to operands which are vectors is more complicated. You can use
  13240. the macro 'XVEC' to get the vector-pointer itself, or the macros
  13241. 'XVECEXP' and 'XVECLEN' to access the elements and length of a vector.
  13242. 'XVEC (EXP, IDX)'
  13243. Access the vector-pointer which is operand number IDX in EXP.
  13244. 'XVECLEN (EXP, IDX)'
  13245. Access the length (number of elements) in the vector which is in
  13246. operand number IDX in EXP. This value is an 'int'.
  13247. 'XVECEXP (EXP, IDX, ELTNUM)'
  13248. Access element number ELTNUM in the vector which is in operand
  13249. number IDX in EXP. This value is an RTX.
  13250. It is up to you to make sure that ELTNUM is not negative and is
  13251. less than 'XVECLEN (EXP, IDX)'.
  13252. All the macros defined in this section expand into lvalues and
  13253. therefore can be used to assign the operands, lengths and vector
  13254. elements as well as to access them.
  13255. 
  13256. File: gccint.info, Node: Special Accessors, Next: Flags, Prev: Accessors, Up: RTL
  13257. 14.4 Access to Special Operands
  13258. ===============================
  13259. Some RTL nodes have special annotations associated with them.
  13260. 'MEM'
  13261. 'MEM_ALIAS_SET (X)'
  13262. If 0, X is not in any alias set, and may alias anything.
  13263. Otherwise, X can only alias 'MEM's in a conflicting alias set.
  13264. This value is set in a language-dependent manner in the
  13265. front-end, and should not be altered in the back-end. In some
  13266. front-ends, these numbers may correspond in some way to types,
  13267. or other language-level entities, but they need not, and the
  13268. back-end makes no such assumptions. These set numbers are
  13269. tested with 'alias_sets_conflict_p'.
  13270. 'MEM_EXPR (X)'
  13271. If this register is known to hold the value of some user-level
  13272. declaration, this is that tree node. It may also be a
  13273. 'COMPONENT_REF', in which case this is some field reference,
  13274. and 'TREE_OPERAND (X, 0)' contains the declaration, or another
  13275. 'COMPONENT_REF', or null if there is no compile-time object
  13276. associated with the reference.
  13277. 'MEM_OFFSET_KNOWN_P (X)'
  13278. True if the offset of the memory reference from 'MEM_EXPR' is
  13279. known. 'MEM_OFFSET (X)' provides the offset if so.
  13280. 'MEM_OFFSET (X)'
  13281. The offset from the start of 'MEM_EXPR'. The value is only
  13282. valid if 'MEM_OFFSET_KNOWN_P (X)' is true.
  13283. 'MEM_SIZE_KNOWN_P (X)'
  13284. True if the size of the memory reference is known. 'MEM_SIZE
  13285. (X)' provides its size if so.
  13286. 'MEM_SIZE (X)'
  13287. The size in bytes of the memory reference. This is mostly
  13288. relevant for 'BLKmode' references as otherwise the size is
  13289. implied by the mode. The value is only valid if
  13290. 'MEM_SIZE_KNOWN_P (X)' is true.
  13291. 'MEM_ALIGN (X)'
  13292. The known alignment in bits of the memory reference.
  13293. 'MEM_ADDR_SPACE (X)'
  13294. The address space of the memory reference. This will commonly
  13295. be zero for the generic address space.
  13296. 'REG'
  13297. 'ORIGINAL_REGNO (X)'
  13298. This field holds the number the register "originally" had; for
  13299. a pseudo register turned into a hard reg this will hold the
  13300. old pseudo register number.
  13301. 'REG_EXPR (X)'
  13302. If this register is known to hold the value of some user-level
  13303. declaration, this is that tree node.
  13304. 'REG_OFFSET (X)'
  13305. If this register is known to hold the value of some user-level
  13306. declaration, this is the offset into that logical storage.
  13307. 'SYMBOL_REF'
  13308. 'SYMBOL_REF_DECL (X)'
  13309. If the 'symbol_ref' X was created for a 'VAR_DECL' or a
  13310. 'FUNCTION_DECL', that tree is recorded here. If this value is
  13311. null, then X was created by back end code generation routines,
  13312. and there is no associated front end symbol table entry.
  13313. 'SYMBOL_REF_DECL' may also point to a tree of class ''c'',
  13314. that is, some sort of constant. In this case, the
  13315. 'symbol_ref' is an entry in the per-file constant pool; again,
  13316. there is no associated front end symbol table entry.
  13317. 'SYMBOL_REF_CONSTANT (X)'
  13318. If 'CONSTANT_POOL_ADDRESS_P (X)' is true, this is the constant
  13319. pool entry for X. It is null otherwise.
  13320. 'SYMBOL_REF_DATA (X)'
  13321. A field of opaque type used to store 'SYMBOL_REF_DECL' or
  13322. 'SYMBOL_REF_CONSTANT'.
  13323. 'SYMBOL_REF_FLAGS (X)'
  13324. In a 'symbol_ref', this is used to communicate various
  13325. predicates about the symbol. Some of these are common enough
  13326. to be computed by common code, some are specific to the
  13327. target. The common bits are:
  13328. 'SYMBOL_FLAG_FUNCTION'
  13329. Set if the symbol refers to a function.
  13330. 'SYMBOL_FLAG_LOCAL'
  13331. Set if the symbol is local to this "module". See
  13332. 'TARGET_BINDS_LOCAL_P'.
  13333. 'SYMBOL_FLAG_EXTERNAL'
  13334. Set if this symbol is not defined in this translation
  13335. unit. Note that this is not the inverse of
  13336. 'SYMBOL_FLAG_LOCAL'.
  13337. 'SYMBOL_FLAG_SMALL'
  13338. Set if the symbol is located in the small data section.
  13339. See 'TARGET_IN_SMALL_DATA_P'.
  13340. 'SYMBOL_REF_TLS_MODEL (X)'
  13341. This is a multi-bit field accessor that returns the
  13342. 'tls_model' to be used for a thread-local storage symbol.
  13343. It returns zero for non-thread-local symbols.
  13344. 'SYMBOL_FLAG_HAS_BLOCK_INFO'
  13345. Set if the symbol has 'SYMBOL_REF_BLOCK' and
  13346. 'SYMBOL_REF_BLOCK_OFFSET' fields.
  13347. 'SYMBOL_FLAG_ANCHOR'
  13348. Set if the symbol is used as a section anchor. "Section
  13349. anchors" are symbols that have a known position within an
  13350. 'object_block' and that can be used to access nearby
  13351. members of that block. They are used to implement
  13352. '-fsection-anchors'.
  13353. If this flag is set, then 'SYMBOL_FLAG_HAS_BLOCK_INFO'
  13354. will be too.
  13355. Bits beginning with 'SYMBOL_FLAG_MACH_DEP' are available for
  13356. the target's use.
  13357. 'SYMBOL_REF_BLOCK (X)'
  13358. If 'SYMBOL_REF_HAS_BLOCK_INFO_P (X)', this is the 'object_block'
  13359. structure to which the symbol belongs, or 'NULL' if it has not been
  13360. assigned a block.
  13361. 'SYMBOL_REF_BLOCK_OFFSET (X)'
  13362. If 'SYMBOL_REF_HAS_BLOCK_INFO_P (X)', this is the offset of X from
  13363. the first object in 'SYMBOL_REF_BLOCK (X)'. The value is negative
  13364. if X has not yet been assigned to a block, or it has not been given
  13365. an offset within that block.
  13366. 
  13367. File: gccint.info, Node: Flags, Next: Machine Modes, Prev: Special Accessors, Up: RTL
  13368. 14.5 Flags in an RTL Expression
  13369. ===============================
  13370. RTL expressions contain several flags (one-bit bit-fields) that are used
  13371. in certain types of expression. Most often they are accessed with the
  13372. following macros, which expand into lvalues.
  13373. 'CROSSING_JUMP_P (X)'
  13374. Nonzero in a 'jump_insn' if it crosses between hot and cold
  13375. sections, which could potentially be very far apart in the
  13376. executable. The presence of this flag indicates to other
  13377. optimizations that this branching instruction should not be
  13378. "collapsed" into a simpler branching construct. It is used when
  13379. the optimization to partition basic blocks into hot and cold
  13380. sections is turned on.
  13381. 'CONSTANT_POOL_ADDRESS_P (X)'
  13382. Nonzero in a 'symbol_ref' if it refers to part of the current
  13383. function's constant pool. For most targets these addresses are in
  13384. a '.rodata' section entirely separate from the function, but for
  13385. some targets the addresses are close to the beginning of the
  13386. function. In either case GCC assumes these addresses can be
  13387. addressed directly, perhaps with the help of base registers.
  13388. Stored in the 'unchanging' field and printed as '/u'.
  13389. 'INSN_ANNULLED_BRANCH_P (X)'
  13390. In a 'jump_insn', 'call_insn', or 'insn' indicates that the branch
  13391. is an annulling one. See the discussion under 'sequence' below.
  13392. Stored in the 'unchanging' field and printed as '/u'.
  13393. 'INSN_DELETED_P (X)'
  13394. In an 'insn', 'call_insn', 'jump_insn', 'code_label',
  13395. 'jump_table_data', 'barrier', or 'note', nonzero if the insn has
  13396. been deleted. Stored in the 'volatil' field and printed as '/v'.
  13397. 'INSN_FROM_TARGET_P (X)'
  13398. In an 'insn' or 'jump_insn' or 'call_insn' in a delay slot of a
  13399. branch, indicates that the insn is from the target of the branch.
  13400. If the branch insn has 'INSN_ANNULLED_BRANCH_P' set, this insn will
  13401. only be executed if the branch is taken. For annulled branches
  13402. with 'INSN_FROM_TARGET_P' clear, the insn will be executed only if
  13403. the branch is not taken. When 'INSN_ANNULLED_BRANCH_P' is not set,
  13404. this insn will always be executed. Stored in the 'in_struct' field
  13405. and printed as '/s'.
  13406. 'LABEL_PRESERVE_P (X)'
  13407. In a 'code_label' or 'note', indicates that the label is referenced
  13408. by code or data not visible to the RTL of a given function. Labels
  13409. referenced by a non-local goto will have this bit set. Stored in
  13410. the 'in_struct' field and printed as '/s'.
  13411. 'LABEL_REF_NONLOCAL_P (X)'
  13412. In 'label_ref' and 'reg_label' expressions, nonzero if this is a
  13413. reference to a non-local label. Stored in the 'volatil' field and
  13414. printed as '/v'.
  13415. 'MEM_KEEP_ALIAS_SET_P (X)'
  13416. In 'mem' expressions, 1 if we should keep the alias set for this
  13417. mem unchanged when we access a component. Set to 1, for example,
  13418. when we are already in a non-addressable component of an aggregate.
  13419. Stored in the 'jump' field and printed as '/j'.
  13420. 'MEM_VOLATILE_P (X)'
  13421. In 'mem', 'asm_operands', and 'asm_input' expressions, nonzero for
  13422. volatile memory references. Stored in the 'volatil' field and
  13423. printed as '/v'.
  13424. 'MEM_NOTRAP_P (X)'
  13425. In 'mem', nonzero for memory references that will not trap. Stored
  13426. in the 'call' field and printed as '/c'.
  13427. 'MEM_POINTER (X)'
  13428. Nonzero in a 'mem' if the memory reference holds a pointer. Stored
  13429. in the 'frame_related' field and printed as '/f'.
  13430. 'MEM_READONLY_P (X)'
  13431. Nonzero in a 'mem', if the memory is statically allocated and
  13432. read-only.
  13433. Read-only in this context means never modified during the lifetime
  13434. of the program, not necessarily in ROM or in write-disabled pages.
  13435. A common example of the later is a shared library's global offset
  13436. table. This table is initialized by the runtime loader, so the
  13437. memory is technically writable, but after control is transferred
  13438. from the runtime loader to the application, this memory will never
  13439. be subsequently modified.
  13440. Stored in the 'unchanging' field and printed as '/u'.
  13441. 'PREFETCH_SCHEDULE_BARRIER_P (X)'
  13442. In a 'prefetch', indicates that the prefetch is a scheduling
  13443. barrier. No other INSNs will be moved over it. Stored in the
  13444. 'volatil' field and printed as '/v'.
  13445. 'REG_FUNCTION_VALUE_P (X)'
  13446. Nonzero in a 'reg' if it is the place in which this function's
  13447. value is going to be returned. (This happens only in a hard
  13448. register.) Stored in the 'return_val' field and printed as '/i'.
  13449. 'REG_POINTER (X)'
  13450. Nonzero in a 'reg' if the register holds a pointer. Stored in the
  13451. 'frame_related' field and printed as '/f'.
  13452. 'REG_USERVAR_P (X)'
  13453. In a 'reg', nonzero if it corresponds to a variable present in the
  13454. user's source code. Zero for temporaries generated internally by
  13455. the compiler. Stored in the 'volatil' field and printed as '/v'.
  13456. The same hard register may be used also for collecting the values
  13457. of functions called by this one, but 'REG_FUNCTION_VALUE_P' is zero
  13458. in this kind of use.
  13459. 'RTL_CONST_CALL_P (X)'
  13460. In a 'call_insn' indicates that the insn represents a call to a
  13461. const function. Stored in the 'unchanging' field and printed as
  13462. '/u'.
  13463. 'RTL_PURE_CALL_P (X)'
  13464. In a 'call_insn' indicates that the insn represents a call to a
  13465. pure function. Stored in the 'return_val' field and printed as
  13466. '/i'.
  13467. 'RTL_CONST_OR_PURE_CALL_P (X)'
  13468. In a 'call_insn', true if 'RTL_CONST_CALL_P' or 'RTL_PURE_CALL_P'
  13469. is true.
  13470. 'RTL_LOOPING_CONST_OR_PURE_CALL_P (X)'
  13471. In a 'call_insn' indicates that the insn represents a possibly
  13472. infinite looping call to a const or pure function. Stored in the
  13473. 'call' field and printed as '/c'. Only true if one of
  13474. 'RTL_CONST_CALL_P' or 'RTL_PURE_CALL_P' is true.
  13475. 'RTX_FRAME_RELATED_P (X)'
  13476. Nonzero in an 'insn', 'call_insn', 'jump_insn', 'barrier', or 'set'
  13477. which is part of a function prologue and sets the stack pointer,
  13478. sets the frame pointer, or saves a register. This flag should also
  13479. be set on an instruction that sets up a temporary register to use
  13480. in place of the frame pointer. Stored in the 'frame_related' field
  13481. and printed as '/f'.
  13482. In particular, on RISC targets where there are limits on the sizes
  13483. of immediate constants, it is sometimes impossible to reach the
  13484. register save area directly from the stack pointer. In that case,
  13485. a temporary register is used that is near enough to the register
  13486. save area, and the Canonical Frame Address, i.e., DWARF2's logical
  13487. frame pointer, register must (temporarily) be changed to be this
  13488. temporary register. So, the instruction that sets this temporary
  13489. register must be marked as 'RTX_FRAME_RELATED_P'.
  13490. If the marked instruction is overly complex (defined in terms of
  13491. what 'dwarf2out_frame_debug_expr' can handle), you will also have
  13492. to create a 'REG_FRAME_RELATED_EXPR' note and attach it to the
  13493. instruction. This note should contain a simple expression of the
  13494. computation performed by this instruction, i.e., one that
  13495. 'dwarf2out_frame_debug_expr' can handle.
  13496. This flag is required for exception handling support on targets
  13497. with RTL prologues.
  13498. 'SCHED_GROUP_P (X)'
  13499. During instruction scheduling, in an 'insn', 'call_insn',
  13500. 'jump_insn' or 'jump_table_data', indicates that the previous insn
  13501. must be scheduled together with this insn. This is used to ensure
  13502. that certain groups of instructions will not be split up by the
  13503. instruction scheduling pass, for example, 'use' insns before a
  13504. 'call_insn' may not be separated from the 'call_insn'. Stored in
  13505. the 'in_struct' field and printed as '/s'.
  13506. 'SET_IS_RETURN_P (X)'
  13507. For a 'set', nonzero if it is for a return. Stored in the 'jump'
  13508. field and printed as '/j'.
  13509. 'SIBLING_CALL_P (X)'
  13510. For a 'call_insn', nonzero if the insn is a sibling call. Stored
  13511. in the 'jump' field and printed as '/j'.
  13512. 'STRING_POOL_ADDRESS_P (X)'
  13513. For a 'symbol_ref' expression, nonzero if it addresses this
  13514. function's string constant pool. Stored in the 'frame_related'
  13515. field and printed as '/f'.
  13516. 'SUBREG_PROMOTED_UNSIGNED_P (X)'
  13517. Returns a value greater then zero for a 'subreg' that has
  13518. 'SUBREG_PROMOTED_VAR_P' nonzero if the object being referenced is
  13519. kept zero-extended, zero if it is kept sign-extended, and less then
  13520. zero if it is extended some other way via the 'ptr_extend'
  13521. instruction. Stored in the 'unchanging' field and 'volatil' field,
  13522. printed as '/u' and '/v'. This macro may only be used to get the
  13523. value it may not be used to change the value. Use
  13524. 'SUBREG_PROMOTED_UNSIGNED_SET' to change the value.
  13525. 'SUBREG_PROMOTED_UNSIGNED_SET (X)'
  13526. Set the 'unchanging' and 'volatil' fields in a 'subreg' to reflect
  13527. zero, sign, or other extension. If 'volatil' is zero, then
  13528. 'unchanging' as nonzero means zero extension and as zero means sign
  13529. extension. If 'volatil' is nonzero then some other type of
  13530. extension was done via the 'ptr_extend' instruction.
  13531. 'SUBREG_PROMOTED_VAR_P (X)'
  13532. Nonzero in a 'subreg' if it was made when accessing an object that
  13533. was promoted to a wider mode in accord with the 'PROMOTED_MODE'
  13534. machine description macro (*note Storage Layout::). In this case,
  13535. the mode of the 'subreg' is the declared mode of the object and the
  13536. mode of 'SUBREG_REG' is the mode of the register that holds the
  13537. object. Promoted variables are always either sign- or
  13538. zero-extended to the wider mode on every assignment. Stored in the
  13539. 'in_struct' field and printed as '/s'.
  13540. 'SYMBOL_REF_USED (X)'
  13541. In a 'symbol_ref', indicates that X has been used. This is
  13542. normally only used to ensure that X is only declared external once.
  13543. Stored in the 'used' field.
  13544. 'SYMBOL_REF_WEAK (X)'
  13545. In a 'symbol_ref', indicates that X has been declared weak. Stored
  13546. in the 'return_val' field and printed as '/i'.
  13547. 'SYMBOL_REF_FLAG (X)'
  13548. In a 'symbol_ref', this is used as a flag for machine-specific
  13549. purposes. Stored in the 'volatil' field and printed as '/v'.
  13550. Most uses of 'SYMBOL_REF_FLAG' are historic and may be subsumed by
  13551. 'SYMBOL_REF_FLAGS'. Certainly use of 'SYMBOL_REF_FLAGS' is
  13552. mandatory if the target requires more than one bit of storage.
  13553. These are the fields to which the above macros refer:
  13554. 'call'
  13555. In a 'mem', 1 means that the memory reference will not trap.
  13556. In a 'call', 1 means that this pure or const call may possibly
  13557. infinite loop.
  13558. In an RTL dump, this flag is represented as '/c'.
  13559. 'frame_related'
  13560. In an 'insn' or 'set' expression, 1 means that it is part of a
  13561. function prologue and sets the stack pointer, sets the frame
  13562. pointer, saves a register, or sets up a temporary register to use
  13563. in place of the frame pointer.
  13564. In 'reg' expressions, 1 means that the register holds a pointer.
  13565. In 'mem' expressions, 1 means that the memory reference holds a
  13566. pointer.
  13567. In 'symbol_ref' expressions, 1 means that the reference addresses
  13568. this function's string constant pool.
  13569. In an RTL dump, this flag is represented as '/f'.
  13570. 'in_struct'
  13571. In 'reg' expressions, it is 1 if the register has its entire life
  13572. contained within the test expression of some loop.
  13573. In 'subreg' expressions, 1 means that the 'subreg' is accessing an
  13574. object that has had its mode promoted from a wider mode.
  13575. In 'label_ref' expressions, 1 means that the referenced label is
  13576. outside the innermost loop containing the insn in which the
  13577. 'label_ref' was found.
  13578. In 'code_label' expressions, it is 1 if the label may never be
  13579. deleted. This is used for labels which are the target of non-local
  13580. gotos. Such a label that would have been deleted is replaced with
  13581. a 'note' of type 'NOTE_INSN_DELETED_LABEL'.
  13582. In an 'insn' during dead-code elimination, 1 means that the insn is
  13583. dead code.
  13584. In an 'insn' or 'jump_insn' during reorg for an insn in the delay
  13585. slot of a branch, 1 means that this insn is from the target of the
  13586. branch.
  13587. In an 'insn' during instruction scheduling, 1 means that this insn
  13588. must be scheduled as part of a group together with the previous
  13589. insn.
  13590. In an RTL dump, this flag is represented as '/s'.
  13591. 'return_val'
  13592. In 'reg' expressions, 1 means the register contains the value to be
  13593. returned by the current function. On machines that pass parameters
  13594. in registers, the same register number may be used for parameters
  13595. as well, but this flag is not set on such uses.
  13596. In 'symbol_ref' expressions, 1 means the referenced symbol is weak.
  13597. In 'call' expressions, 1 means the call is pure.
  13598. In an RTL dump, this flag is represented as '/i'.
  13599. 'jump'
  13600. In a 'mem' expression, 1 means we should keep the alias set for
  13601. this mem unchanged when we access a component.
  13602. In a 'set', 1 means it is for a return.
  13603. In a 'call_insn', 1 means it is a sibling call.
  13604. In a 'jump_insn', 1 means it is a crossing jump.
  13605. In an RTL dump, this flag is represented as '/j'.
  13606. 'unchanging'
  13607. In 'reg' and 'mem' expressions, 1 means that the value of the
  13608. expression never changes.
  13609. In 'subreg' expressions, it is 1 if the 'subreg' references an
  13610. unsigned object whose mode has been promoted to a wider mode.
  13611. In an 'insn' or 'jump_insn' in the delay slot of a branch
  13612. instruction, 1 means an annulling branch should be used.
  13613. In a 'symbol_ref' expression, 1 means that this symbol addresses
  13614. something in the per-function constant pool.
  13615. In a 'call_insn' 1 means that this instruction is a call to a const
  13616. function.
  13617. In an RTL dump, this flag is represented as '/u'.
  13618. 'used'
  13619. This flag is used directly (without an access macro) at the end of
  13620. RTL generation for a function, to count the number of times an
  13621. expression appears in insns. Expressions that appear more than
  13622. once are copied, according to the rules for shared structure (*note
  13623. Sharing::).
  13624. For a 'reg', it is used directly (without an access macro) by the
  13625. leaf register renumbering code to ensure that each register is only
  13626. renumbered once.
  13627. In a 'symbol_ref', it indicates that an external declaration for
  13628. the symbol has already been written.
  13629. 'volatil'
  13630. In a 'mem', 'asm_operands', or 'asm_input' expression, it is 1 if
  13631. the memory reference is volatile. Volatile memory references may
  13632. not be deleted, reordered or combined.
  13633. In a 'symbol_ref' expression, it is used for machine-specific
  13634. purposes.
  13635. In a 'reg' expression, it is 1 if the value is a user-level
  13636. variable. 0 indicates an internal compiler temporary.
  13637. In an 'insn', 1 means the insn has been deleted.
  13638. In 'label_ref' and 'reg_label' expressions, 1 means a reference to
  13639. a non-local label.
  13640. In 'prefetch' expressions, 1 means that the containing insn is a
  13641. scheduling barrier.
  13642. In an RTL dump, this flag is represented as '/v'.
  13643. 
  13644. File: gccint.info, Node: Machine Modes, Next: Constants, Prev: Flags, Up: RTL
  13645. 14.6 Machine Modes
  13646. ==================
  13647. A machine mode describes a size of data object and the representation
  13648. used for it. In the C code, machine modes are represented by an
  13649. enumeration type, 'machine_mode', defined in 'machmode.def'. Each RTL
  13650. expression has room for a machine mode and so do certain kinds of tree
  13651. expressions (declarations and types, to be precise).
  13652. In debugging dumps and machine descriptions, the machine mode of an RTL
  13653. expression is written after the expression code with a colon to separate
  13654. them. The letters 'mode' which appear at the end of each machine mode
  13655. name are omitted. For example, '(reg:SI 38)' is a 'reg' expression with
  13656. machine mode 'SImode'. If the mode is 'VOIDmode', it is not written at
  13657. all.
  13658. Here is a table of machine modes. The term "byte" below refers to an
  13659. object of 'BITS_PER_UNIT' bits (*note Storage Layout::).
  13660. 'BImode'
  13661. "Bit" mode represents a single bit, for predicate registers.
  13662. 'QImode'
  13663. "Quarter-Integer" mode represents a single byte treated as an
  13664. integer.
  13665. 'HImode'
  13666. "Half-Integer" mode represents a two-byte integer.
  13667. 'PSImode'
  13668. "Partial Single Integer" mode represents an integer which occupies
  13669. four bytes but which doesn't really use all four. On some
  13670. machines, this is the right mode to use for pointers.
  13671. 'SImode'
  13672. "Single Integer" mode represents a four-byte integer.
  13673. 'PDImode'
  13674. "Partial Double Integer" mode represents an integer which occupies
  13675. eight bytes but which doesn't really use all eight. On some
  13676. machines, this is the right mode to use for certain pointers.
  13677. 'DImode'
  13678. "Double Integer" mode represents an eight-byte integer.
  13679. 'TImode'
  13680. "Tetra Integer" (?) mode represents a sixteen-byte integer.
  13681. 'OImode'
  13682. "Octa Integer" (?) mode represents a thirty-two-byte integer.
  13683. 'XImode'
  13684. "Hexadeca Integer" (?) mode represents a sixty-four-byte integer.
  13685. 'QFmode'
  13686. "Quarter-Floating" mode represents a quarter-precision (single
  13687. byte) floating point number.
  13688. 'HFmode'
  13689. "Half-Floating" mode represents a half-precision (two byte)
  13690. floating point number.
  13691. 'TQFmode'
  13692. "Three-Quarter-Floating" (?) mode represents a
  13693. three-quarter-precision (three byte) floating point number.
  13694. 'SFmode'
  13695. "Single Floating" mode represents a four byte floating point
  13696. number. In the common case, of a processor with IEEE arithmetic
  13697. and 8-bit bytes, this is a single-precision IEEE floating point
  13698. number; it can also be used for double-precision (on processors
  13699. with 16-bit bytes) and single-precision VAX and IBM types.
  13700. 'DFmode'
  13701. "Double Floating" mode represents an eight byte floating point
  13702. number. In the common case, of a processor with IEEE arithmetic
  13703. and 8-bit bytes, this is a double-precision IEEE floating point
  13704. number.
  13705. 'XFmode'
  13706. "Extended Floating" mode represents an IEEE extended floating point
  13707. number. This mode only has 80 meaningful bits (ten bytes). Some
  13708. processors require such numbers to be padded to twelve bytes,
  13709. others to sixteen; this mode is used for either.
  13710. 'SDmode'
  13711. "Single Decimal Floating" mode represents a four byte decimal
  13712. floating point number (as distinct from conventional binary
  13713. floating point).
  13714. 'DDmode'
  13715. "Double Decimal Floating" mode represents an eight byte decimal
  13716. floating point number.
  13717. 'TDmode'
  13718. "Tetra Decimal Floating" mode represents a sixteen byte decimal
  13719. floating point number all 128 of whose bits are meaningful.
  13720. 'TFmode'
  13721. "Tetra Floating" mode represents a sixteen byte floating point
  13722. number all 128 of whose bits are meaningful. One common use is the
  13723. IEEE quad-precision format.
  13724. 'QQmode'
  13725. "Quarter-Fractional" mode represents a single byte treated as a
  13726. signed fractional number. The default format is "s.7".
  13727. 'HQmode'
  13728. "Half-Fractional" mode represents a two-byte signed fractional
  13729. number. The default format is "s.15".
  13730. 'SQmode'
  13731. "Single Fractional" mode represents a four-byte signed fractional
  13732. number. The default format is "s.31".
  13733. 'DQmode'
  13734. "Double Fractional" mode represents an eight-byte signed fractional
  13735. number. The default format is "s.63".
  13736. 'TQmode'
  13737. "Tetra Fractional" mode represents a sixteen-byte signed fractional
  13738. number. The default format is "s.127".
  13739. 'UQQmode'
  13740. "Unsigned Quarter-Fractional" mode represents a single byte treated
  13741. as an unsigned fractional number. The default format is ".8".
  13742. 'UHQmode'
  13743. "Unsigned Half-Fractional" mode represents a two-byte unsigned
  13744. fractional number. The default format is ".16".
  13745. 'USQmode'
  13746. "Unsigned Single Fractional" mode represents a four-byte unsigned
  13747. fractional number. The default format is ".32".
  13748. 'UDQmode'
  13749. "Unsigned Double Fractional" mode represents an eight-byte unsigned
  13750. fractional number. The default format is ".64".
  13751. 'UTQmode'
  13752. "Unsigned Tetra Fractional" mode represents a sixteen-byte unsigned
  13753. fractional number. The default format is ".128".
  13754. 'HAmode'
  13755. "Half-Accumulator" mode represents a two-byte signed accumulator.
  13756. The default format is "s8.7".
  13757. 'SAmode'
  13758. "Single Accumulator" mode represents a four-byte signed
  13759. accumulator. The default format is "s16.15".
  13760. 'DAmode'
  13761. "Double Accumulator" mode represents an eight-byte signed
  13762. accumulator. The default format is "s32.31".
  13763. 'TAmode'
  13764. "Tetra Accumulator" mode represents a sixteen-byte signed
  13765. accumulator. The default format is "s64.63".
  13766. 'UHAmode'
  13767. "Unsigned Half-Accumulator" mode represents a two-byte unsigned
  13768. accumulator. The default format is "8.8".
  13769. 'USAmode'
  13770. "Unsigned Single Accumulator" mode represents a four-byte unsigned
  13771. accumulator. The default format is "16.16".
  13772. 'UDAmode'
  13773. "Unsigned Double Accumulator" mode represents an eight-byte
  13774. unsigned accumulator. The default format is "32.32".
  13775. 'UTAmode'
  13776. "Unsigned Tetra Accumulator" mode represents a sixteen-byte
  13777. unsigned accumulator. The default format is "64.64".
  13778. 'CCmode'
  13779. "Condition Code" mode represents the value of a condition code,
  13780. which is a machine-specific set of bits used to represent the
  13781. result of a comparison operation. Other machine-specific modes may
  13782. also be used for the condition code. These modes are not used on
  13783. machines that use 'cc0' (*note Condition Code::).
  13784. 'BLKmode'
  13785. "Block" mode represents values that are aggregates to which none of
  13786. the other modes apply. In RTL, only memory references can have
  13787. this mode, and only if they appear in string-move or vector
  13788. instructions. On machines which have no such instructions,
  13789. 'BLKmode' will not appear in RTL.
  13790. 'VOIDmode'
  13791. Void mode means the absence of a mode or an unspecified mode. For
  13792. example, RTL expressions of code 'const_int' have mode 'VOIDmode'
  13793. because they can be taken to have whatever mode the context
  13794. requires. In debugging dumps of RTL, 'VOIDmode' is expressed by
  13795. the absence of any mode.
  13796. 'QCmode, HCmode, SCmode, DCmode, XCmode, TCmode'
  13797. These modes stand for a complex number represented as a pair of
  13798. floating point values. The floating point values are in 'QFmode',
  13799. 'HFmode', 'SFmode', 'DFmode', 'XFmode', and 'TFmode', respectively.
  13800. 'CQImode, CHImode, CSImode, CDImode, CTImode, COImode, CPSImode'
  13801. These modes stand for a complex number represented as a pair of
  13802. integer values. The integer values are in 'QImode', 'HImode',
  13803. 'SImode', 'DImode', 'TImode', 'OImode', and 'PSImode',
  13804. respectively.
  13805. 'BND32mode BND64mode'
  13806. These modes stand for bounds for pointer of 32 and 64 bit size
  13807. respectively. Mode size is double pointer mode size.
  13808. The machine description defines 'Pmode' as a C macro which expands into
  13809. the machine mode used for addresses. Normally this is the mode whose
  13810. size is 'BITS_PER_WORD', 'SImode' on 32-bit machines.
  13811. The only modes which a machine description must support are 'QImode',
  13812. and the modes corresponding to 'BITS_PER_WORD', 'FLOAT_TYPE_SIZE' and
  13813. 'DOUBLE_TYPE_SIZE'. The compiler will attempt to use 'DImode' for
  13814. 8-byte structures and unions, but this can be prevented by overriding
  13815. the definition of 'MAX_FIXED_MODE_SIZE'. Alternatively, you can have
  13816. the compiler use 'TImode' for 16-byte structures and unions. Likewise,
  13817. you can arrange for the C type 'short int' to avoid using 'HImode'.
  13818. Very few explicit references to machine modes remain in the compiler
  13819. and these few references will soon be removed. Instead, the machine
  13820. modes are divided into mode classes. These are represented by the
  13821. enumeration type 'enum mode_class' defined in 'machmode.h'. The
  13822. possible mode classes are:
  13823. 'MODE_INT'
  13824. Integer modes. By default these are 'BImode', 'QImode', 'HImode',
  13825. 'SImode', 'DImode', 'TImode', and 'OImode'.
  13826. 'MODE_PARTIAL_INT'
  13827. The "partial integer" modes, 'PQImode', 'PHImode', 'PSImode' and
  13828. 'PDImode'.
  13829. 'MODE_FLOAT'
  13830. Floating point modes. By default these are 'QFmode', 'HFmode',
  13831. 'TQFmode', 'SFmode', 'DFmode', 'XFmode' and 'TFmode'.
  13832. 'MODE_DECIMAL_FLOAT'
  13833. Decimal floating point modes. By default these are 'SDmode',
  13834. 'DDmode' and 'TDmode'.
  13835. 'MODE_FRACT'
  13836. Signed fractional modes. By default these are 'QQmode', 'HQmode',
  13837. 'SQmode', 'DQmode' and 'TQmode'.
  13838. 'MODE_UFRACT'
  13839. Unsigned fractional modes. By default these are 'UQQmode',
  13840. 'UHQmode', 'USQmode', 'UDQmode' and 'UTQmode'.
  13841. 'MODE_ACCUM'
  13842. Signed accumulator modes. By default these are 'HAmode', 'SAmode',
  13843. 'DAmode' and 'TAmode'.
  13844. 'MODE_UACCUM'
  13845. Unsigned accumulator modes. By default these are 'UHAmode',
  13846. 'USAmode', 'UDAmode' and 'UTAmode'.
  13847. 'MODE_COMPLEX_INT'
  13848. Complex integer modes. (These are not currently implemented).
  13849. 'MODE_COMPLEX_FLOAT'
  13850. Complex floating point modes. By default these are 'QCmode',
  13851. 'HCmode', 'SCmode', 'DCmode', 'XCmode', and 'TCmode'.
  13852. 'MODE_CC'
  13853. Modes representing condition code values. These are 'CCmode' plus
  13854. any 'CC_MODE' modes listed in the 'MACHINE-modes.def'. *Note Jump
  13855. Patterns::, also see *note Condition Code::.
  13856. 'MODE_POINTER_BOUNDS'
  13857. Pointer bounds modes. Used to represent values of pointer bounds
  13858. type. Operations in these modes may be executed as NOPs depending
  13859. on hardware features and environment setup.
  13860. 'MODE_OPAQUE'
  13861. This is a mode class for modes that don't want to provide
  13862. operations other than register moves, memory moves, loads, stores,
  13863. and 'unspec's. They have a size and precision and that's all.
  13864. 'MODE_RANDOM'
  13865. This is a catchall mode class for modes which don't fit into the
  13866. above classes. Currently 'VOIDmode' and 'BLKmode' are in
  13867. 'MODE_RANDOM'.
  13868. 'machmode.h' also defines various wrapper classes that combine a
  13869. 'machine_mode' with a static assertion that a particular condition
  13870. holds. The classes are:
  13871. 'scalar_int_mode'
  13872. A mode that has class 'MODE_INT' or 'MODE_PARTIAL_INT'.
  13873. 'scalar_float_mode'
  13874. A mode that has class 'MODE_FLOAT' or 'MODE_DECIMAL_FLOAT'.
  13875. 'scalar_mode'
  13876. A mode that holds a single numerical value. In practice this means
  13877. that the mode is a 'scalar_int_mode', is a 'scalar_float_mode', or
  13878. has class 'MODE_FRACT', 'MODE_UFRACT', 'MODE_ACCUM', 'MODE_UACCUM'
  13879. or 'MODE_POINTER_BOUNDS'.
  13880. 'complex_mode'
  13881. A mode that has class 'MODE_COMPLEX_INT' or 'MODE_COMPLEX_FLOAT'.
  13882. 'fixed_size_mode'
  13883. A mode whose size is known at compile time.
  13884. Named modes use the most constrained of the available wrapper classes,
  13885. if one exists, otherwise they use 'machine_mode'. For example, 'QImode'
  13886. is a 'scalar_int_mode', 'SFmode' is a 'scalar_float_mode' and 'BLKmode'
  13887. is a plain 'machine_mode'. It is possible to refer to any mode as a raw
  13888. 'machine_mode' by adding the 'E_' prefix, where 'E' stands for
  13889. "enumeration". For example, the raw 'machine_mode' names of the modes
  13890. just mentioned are 'E_QImode', 'E_SFmode' and 'E_BLKmode' respectively.
  13891. The wrapper classes implicitly convert to 'machine_mode' and to any
  13892. wrapper class that represents a more general condition; for example
  13893. 'scalar_int_mode' and 'scalar_float_mode' both convert to 'scalar_mode'
  13894. and all three convert to 'fixed_size_mode'. The classes act like
  13895. 'machine_mode's that accept only certain named modes.
  13896. 'machmode.h' also defines a template class 'opt_mode<T>' that holds a
  13897. 'T' or nothing, where 'T' can be either 'machine_mode' or one of the
  13898. wrapper classes above. The main operations on an 'opt_mode<T>' X are as
  13899. follows:
  13900. 'X.exists ()'
  13901. Return true if X holds a mode rather than nothing.
  13902. 'X.exists (&Y)'
  13903. Return true if X holds a mode rather than nothing, storing the mode
  13904. in Y if so. Y must be assignment-compatible with T.
  13905. 'X.require ()'
  13906. Assert that X holds a mode rather than nothing and return that
  13907. mode.
  13908. 'X = Y'
  13909. Set X to Y, where Y is a T or implicitly converts to a T.
  13910. The default constructor sets an 'opt_mode<T>' to nothing. There is
  13911. also a constructor that takes an initial value of type T.
  13912. It is possible to use the 'is-a.h' accessors on a 'machine_mode' or
  13913. machine mode wrapper X:
  13914. 'is_a <T> (X)'
  13915. Return true if X meets the conditions for wrapper class T.
  13916. 'is_a <T> (X, &Y)'
  13917. Return true if X meets the conditions for wrapper class T, storing
  13918. it in Y if so. Y must be assignment-compatible with T.
  13919. 'as_a <T> (X)'
  13920. Assert that X meets the conditions for wrapper class T and return
  13921. it as a T.
  13922. 'dyn_cast <T> (X)'
  13923. Return an 'opt_mode<T>' that holds X if X meets the conditions for
  13924. wrapper class T and that holds nothing otherwise.
  13925. The purpose of these wrapper classes is to give stronger static type
  13926. checking. For example, if a function takes a 'scalar_int_mode', a
  13927. caller that has a general 'machine_mode' must either check or assert
  13928. that the code is indeed a scalar integer first, using one of the
  13929. functions above.
  13930. The wrapper classes are normal C++ classes, with user-defined
  13931. constructors. Sometimes it is useful to have a POD version of the same
  13932. type, particularly if the type appears in a 'union'. The template class
  13933. 'pod_mode<T>' provides a POD version of wrapper class T. It is
  13934. assignment-compatible with T and implicitly converts to both
  13935. 'machine_mode' and T.
  13936. Here are some C macros that relate to machine modes:
  13937. 'GET_MODE (X)'
  13938. Returns the machine mode of the RTX X.
  13939. 'PUT_MODE (X, NEWMODE)'
  13940. Alters the machine mode of the RTX X to be NEWMODE.
  13941. 'NUM_MACHINE_MODES'
  13942. Stands for the number of machine modes available on the target
  13943. machine. This is one greater than the largest numeric value of any
  13944. machine mode.
  13945. 'GET_MODE_NAME (M)'
  13946. Returns the name of mode M as a string.
  13947. 'GET_MODE_CLASS (M)'
  13948. Returns the mode class of mode M.
  13949. 'GET_MODE_WIDER_MODE (M)'
  13950. Returns the next wider natural mode. For example, the expression
  13951. 'GET_MODE_WIDER_MODE (QImode)' returns 'HImode'.
  13952. 'GET_MODE_SIZE (M)'
  13953. Returns the size in bytes of a datum of mode M.
  13954. 'GET_MODE_BITSIZE (M)'
  13955. Returns the size in bits of a datum of mode M.
  13956. 'GET_MODE_IBIT (M)'
  13957. Returns the number of integral bits of a datum of fixed-point mode
  13958. M.
  13959. 'GET_MODE_FBIT (M)'
  13960. Returns the number of fractional bits of a datum of fixed-point
  13961. mode M.
  13962. 'GET_MODE_MASK (M)'
  13963. Returns a bitmask containing 1 for all bits in a word that fit
  13964. within mode M. This macro can only be used for modes whose bitsize
  13965. is less than or equal to 'HOST_BITS_PER_INT'.
  13966. 'GET_MODE_ALIGNMENT (M)'
  13967. Return the required alignment, in bits, for an object of mode M.
  13968. 'GET_MODE_UNIT_SIZE (M)'
  13969. Returns the size in bytes of the subunits of a datum of mode M.
  13970. This is the same as 'GET_MODE_SIZE' except in the case of complex
  13971. modes. For them, the unit size is the size of the real or
  13972. imaginary part.
  13973. 'GET_MODE_NUNITS (M)'
  13974. Returns the number of units contained in a mode, i.e.,
  13975. 'GET_MODE_SIZE' divided by 'GET_MODE_UNIT_SIZE'.
  13976. 'GET_CLASS_NARROWEST_MODE (C)'
  13977. Returns the narrowest mode in mode class C.
  13978. The following 3 variables are defined on every target. They can be
  13979. used to allocate buffers that are guaranteed to be large enough to hold
  13980. any value that can be represented on the target. The first two can be
  13981. overridden by defining them in the target's mode.def file, however, the
  13982. value must be a constant that can determined very early in the
  13983. compilation process. The third symbol cannot be overridden.
  13984. 'BITS_PER_UNIT'
  13985. The number of bits in an addressable storage unit (byte). If you
  13986. do not define this, the default is 8.
  13987. 'MAX_BITSIZE_MODE_ANY_INT'
  13988. The maximum bitsize of any mode that is used in integer math. This
  13989. should be overridden by the target if it uses large integers as
  13990. containers for larger vectors but otherwise never uses the contents
  13991. to compute integer values.
  13992. 'MAX_BITSIZE_MODE_ANY_MODE'
  13993. The bitsize of the largest mode on the target. The default value
  13994. is the largest mode size given in the mode definition file, which
  13995. is always correct for targets whose modes have a fixed size.
  13996. Targets that might increase the size of a mode beyond this default
  13997. should define 'MAX_BITSIZE_MODE_ANY_MODE' to the actual upper limit
  13998. in 'MACHINE-modes.def'.
  13999. The global variables 'byte_mode' and 'word_mode' contain modes whose
  14000. classes are 'MODE_INT' and whose bitsizes are either 'BITS_PER_UNIT' or
  14001. 'BITS_PER_WORD', respectively. On 32-bit machines, these are 'QImode'
  14002. and 'SImode', respectively.
  14003. 
  14004. File: gccint.info, Node: Constants, Next: Regs and Memory, Prev: Machine Modes, Up: RTL
  14005. 14.7 Constant Expression Types
  14006. ==============================
  14007. The simplest RTL expressions are those that represent constant values.
  14008. '(const_int I)'
  14009. This type of expression represents the integer value I. I is
  14010. customarily accessed with the macro 'INTVAL' as in 'INTVAL (EXP)',
  14011. which is equivalent to 'XWINT (EXP, 0)'.
  14012. Constants generated for modes with fewer bits than in
  14013. 'HOST_WIDE_INT' must be sign extended to full width (e.g., with
  14014. 'gen_int_mode'). For constants for modes with more bits than in
  14015. 'HOST_WIDE_INT' the implied high order bits of that constant are
  14016. copies of the top bit. Note however that values are neither
  14017. inherently signed nor inherently unsigned; where necessary,
  14018. signedness is determined by the rtl operation instead.
  14019. There is only one expression object for the integer value zero; it
  14020. is the value of the variable 'const0_rtx'. Likewise, the only
  14021. expression for integer value one is found in 'const1_rtx', the only
  14022. expression for integer value two is found in 'const2_rtx', and the
  14023. only expression for integer value negative one is found in
  14024. 'constm1_rtx'. Any attempt to create an expression of code
  14025. 'const_int' and value zero, one, two or negative one will return
  14026. 'const0_rtx', 'const1_rtx', 'const2_rtx' or 'constm1_rtx' as
  14027. appropriate.
  14028. Similarly, there is only one object for the integer whose value is
  14029. 'STORE_FLAG_VALUE'. It is found in 'const_true_rtx'. If
  14030. 'STORE_FLAG_VALUE' is one, 'const_true_rtx' and 'const1_rtx' will
  14031. point to the same object. If 'STORE_FLAG_VALUE' is -1,
  14032. 'const_true_rtx' and 'constm1_rtx' will point to the same object.
  14033. '(const_double:M I0 I1 ...)'
  14034. This represents either a floating-point constant of mode M or (on
  14035. older ports that do not define 'TARGET_SUPPORTS_WIDE_INT') an
  14036. integer constant too large to fit into 'HOST_BITS_PER_WIDE_INT'
  14037. bits but small enough to fit within twice that number of bits. In
  14038. the latter case, M will be 'VOIDmode'. For integral values
  14039. constants for modes with more bits than twice the number in
  14040. 'HOST_WIDE_INT' the implied high order bits of that constant are
  14041. copies of the top bit of 'CONST_DOUBLE_HIGH'. Note however that
  14042. integral values are neither inherently signed nor inherently
  14043. unsigned; where necessary, signedness is determined by the rtl
  14044. operation instead.
  14045. On more modern ports, 'CONST_DOUBLE' only represents floating point
  14046. values. New ports define 'TARGET_SUPPORTS_WIDE_INT' to make this
  14047. designation.
  14048. If M is 'VOIDmode', the bits of the value are stored in I0 and I1.
  14049. I0 is customarily accessed with the macro 'CONST_DOUBLE_LOW' and I1
  14050. with 'CONST_DOUBLE_HIGH'.
  14051. If the constant is floating point (regardless of its precision),
  14052. then the number of integers used to store the value depends on the
  14053. size of 'REAL_VALUE_TYPE' (*note Floating Point::). The integers
  14054. represent a floating point number, but not precisely in the target
  14055. machine's or host machine's floating point format. To convert them
  14056. to the precise bit pattern used by the target machine, use the
  14057. macro 'REAL_VALUE_TO_TARGET_DOUBLE' and friends (*note Data
  14058. Output::).
  14059. The host dependency for the number of integers used to store a
  14060. double value makes it problematic for machine descriptions to use
  14061. expressions of code 'const_double' and therefore a syntactic alias
  14062. has been provided:
  14063. (const_double_zero:M)
  14064. standing for:
  14065. (const_double:M 0 0 ...)
  14066. for matching the floating-point value zero, possibly the only
  14067. useful one.
  14068. '(const_wide_int:M NUNITS ELT0 ...)'
  14069. This contains an array of 'HOST_WIDE_INT's that is large enough to
  14070. hold any constant that can be represented on the target. This form
  14071. of rtl is only used on targets that define
  14072. 'TARGET_SUPPORTS_WIDE_INT' to be nonzero and then 'CONST_DOUBLE's
  14073. are only used to hold floating-point values. If the target leaves
  14074. 'TARGET_SUPPORTS_WIDE_INT' defined as 0, 'CONST_WIDE_INT's are not
  14075. used and 'CONST_DOUBLE's are as they were before.
  14076. The values are stored in a compressed format. The higher-order 0s
  14077. or -1s are not represented if they are just the logical sign
  14078. extension of the number that is represented.
  14079. 'CONST_WIDE_INT_VEC (CODE)'
  14080. Returns the entire array of 'HOST_WIDE_INT's that are used to store
  14081. the value. This macro should be rarely used.
  14082. 'CONST_WIDE_INT_NUNITS (CODE)'
  14083. The number of 'HOST_WIDE_INT's used to represent the number. Note
  14084. that this generally is smaller than the number of 'HOST_WIDE_INT's
  14085. implied by the mode size.
  14086. 'CONST_WIDE_INT_ELT (CODE,I)'
  14087. Returns the 'i'th element of the array. Element 0 is contains the
  14088. low order bits of the constant.
  14089. '(const_fixed:M ...)'
  14090. Represents a fixed-point constant of mode M. The operand is a data
  14091. structure of type 'struct fixed_value' and is accessed with the
  14092. macro 'CONST_FIXED_VALUE'. The high part of data is accessed with
  14093. 'CONST_FIXED_VALUE_HIGH'; the low part is accessed with
  14094. 'CONST_FIXED_VALUE_LOW'.
  14095. '(const_poly_int:M [C0 C1 ...])'
  14096. Represents a 'poly_int'-style polynomial integer with coefficients
  14097. C0, C1, .... The coefficients are 'wide_int'-based integers rather
  14098. than rtxes. 'CONST_POLY_INT_COEFFS' gives the values of individual
  14099. coefficients (which is mostly only useful in low-level routines)
  14100. and 'const_poly_int_value' gives the full 'poly_int' value.
  14101. '(const_vector:M [X0 X1 ...])'
  14102. Represents a vector constant. The values in square brackets are
  14103. elements of the vector, which are always 'const_int',
  14104. 'const_wide_int', 'const_double' or 'const_fixed' expressions.
  14105. Each vector constant V is treated as a specific instance of an
  14106. arbitrary-length sequence that itself contains
  14107. 'CONST_VECTOR_NPATTERNS (V)' interleaved patterns. Each pattern
  14108. has the form:
  14109. { BASE0, BASE1, BASE1 + STEP, BASE1 + STEP * 2, ... }
  14110. The first three elements in each pattern are enough to determine
  14111. the values of the other elements. However, if all STEPs are zero,
  14112. only the first two elements are needed. If in addition each BASE1
  14113. is equal to the corresponding BASE0, only the first element in each
  14114. pattern is needed. The number of determining elements per pattern
  14115. is given by 'CONST_VECTOR_NELTS_PER_PATTERN (V)'.
  14116. For example, the constant:
  14117. { 0, 1, 2, 6, 3, 8, 4, 10, 5, 12, 6, 14, 7, 16, 8, 18 }
  14118. is interpreted as an interleaving of the sequences:
  14119. { 0, 2, 3, 4, 5, 6, 7, 8 }
  14120. { 1, 6, 8, 10, 12, 14, 16, 18 }
  14121. where the sequences are represented by the following patterns:
  14122. BASE0 == 0, BASE1 == 2, STEP == 1
  14123. BASE0 == 1, BASE1 == 6, STEP == 2
  14124. In this case:
  14125. CONST_VECTOR_NPATTERNS (V) == 2
  14126. CONST_VECTOR_NELTS_PER_PATTERN (V) == 3
  14127. Thus the first 6 elements ('{ 0, 1, 2, 6, 3, 8 }') are enough to
  14128. determine the whole sequence; we refer to them as the "encoded"
  14129. elements. They are the only elements present in the square
  14130. brackets for variable-length 'const_vector's (i.e. for
  14131. 'const_vector's whose mode M has a variable number of elements).
  14132. However, as a convenience to code that needs to handle both
  14133. 'const_vector's and 'parallel's, all elements are present in the
  14134. square brackets for fixed-length 'const_vector's; the encoding
  14135. scheme simply reduces the amount of work involved in processing
  14136. constants that follow a regular pattern.
  14137. Sometimes this scheme can create two possible encodings of the same
  14138. vector. For example { 0, 1 } could be seen as two patterns with
  14139. one element each or one pattern with two elements (BASE0 and
  14140. BASE1). The canonical encoding is always the one with the fewest
  14141. patterns or (if both encodings have the same number of petterns)
  14142. the one with the fewest encoded elements.
  14143. 'const_vector_encoding_nelts (V)' gives the total number of encoded
  14144. elements in V, which is 6 in the example above.
  14145. 'CONST_VECTOR_ENCODED_ELT (V, I)' accesses the value of encoded
  14146. element I.
  14147. 'CONST_VECTOR_DUPLICATE_P (V)' is true if V simply contains
  14148. repeated instances of 'CONST_VECTOR_NPATTERNS (V)' values. This is
  14149. a shorthand for testing 'CONST_VECTOR_NELTS_PER_PATTERN (V) == 1'.
  14150. 'CONST_VECTOR_STEPPED_P (V)' is true if at least one pattern in V
  14151. has a nonzero step. This is a shorthand for testing
  14152. 'CONST_VECTOR_NELTS_PER_PATTERN (V) == 3'.
  14153. 'CONST_VECTOR_NUNITS (V)' gives the total number of elements in V;
  14154. it is a shorthand for getting the number of units in 'GET_MODE
  14155. (V)'.
  14156. The utility function 'const_vector_elt' gives the value of an
  14157. arbitrary element as an 'rtx'. 'const_vector_int_elt' gives the
  14158. same value as a 'wide_int'.
  14159. '(const_string STR)'
  14160. Represents a constant string with value STR. Currently this is
  14161. used only for insn attributes (*note Insn Attributes::) since
  14162. constant strings in C are placed in memory.
  14163. '(symbol_ref:MODE SYMBOL)'
  14164. Represents the value of an assembler label for data. SYMBOL is a
  14165. string that describes the name of the assembler label. If it
  14166. starts with a '*', the label is the rest of SYMBOL not including
  14167. the '*'. Otherwise, the label is SYMBOL, usually prefixed with
  14168. '_'.
  14169. The 'symbol_ref' contains a mode, which is usually 'Pmode'.
  14170. Usually that is the only mode for which a symbol is directly valid.
  14171. '(label_ref:MODE LABEL)'
  14172. Represents the value of an assembler label for code. It contains
  14173. one operand, an expression, which must be a 'code_label' or a
  14174. 'note' of type 'NOTE_INSN_DELETED_LABEL' that appears in the
  14175. instruction sequence to identify the place where the label should
  14176. go.
  14177. The reason for using a distinct expression type for code label
  14178. references is so that jump optimization can distinguish them.
  14179. The 'label_ref' contains a mode, which is usually 'Pmode'. Usually
  14180. that is the only mode for which a label is directly valid.
  14181. '(const:M EXP)'
  14182. Represents a constant that is the result of an assembly-time
  14183. arithmetic computation. The operand, EXP, contains only
  14184. 'const_int', 'symbol_ref', 'label_ref' or 'unspec' expressions,
  14185. combined with 'plus' and 'minus'. Any such 'unspec's are
  14186. target-specific and typically represent some form of relocation
  14187. operator. M should be a valid address mode.
  14188. '(high:M EXP)'
  14189. Represents the high-order bits of EXP. The number of bits is
  14190. machine-dependent and is normally the number of bits specified in
  14191. an instruction that initializes the high order bits of a register.
  14192. It is used with 'lo_sum' to represent the typical two-instruction
  14193. sequence used in RISC machines to reference large immediate values
  14194. and/or link-time constants such as global memory addresses. In the
  14195. latter case, M is 'Pmode' and EXP is usually a constant expression
  14196. involving 'symbol_ref'.
  14197. The macro 'CONST0_RTX (MODE)' refers to an expression with value 0 in
  14198. mode MODE. If mode MODE is of mode class 'MODE_INT', it returns
  14199. 'const0_rtx'. If mode MODE is of mode class 'MODE_FLOAT', it returns a
  14200. 'CONST_DOUBLE' expression in mode MODE. Otherwise, it returns a
  14201. 'CONST_VECTOR' expression in mode MODE. Similarly, the macro
  14202. 'CONST1_RTX (MODE)' refers to an expression with value 1 in mode MODE
  14203. and similarly for 'CONST2_RTX'. The 'CONST1_RTX' and 'CONST2_RTX'
  14204. macros are undefined for vector modes.
  14205. 
  14206. File: gccint.info, Node: Regs and Memory, Next: Arithmetic, Prev: Constants, Up: RTL
  14207. 14.8 Registers and Memory
  14208. =========================
  14209. Here are the RTL expression types for describing access to machine
  14210. registers and to main memory.
  14211. '(reg:M N)'
  14212. For small values of the integer N (those that are less than
  14213. 'FIRST_PSEUDO_REGISTER'), this stands for a reference to machine
  14214. register number N: a "hard register". For larger values of N, it
  14215. stands for a temporary value or "pseudo register". The compiler's
  14216. strategy is to generate code assuming an unlimited number of such
  14217. pseudo registers, and later convert them into hard registers or
  14218. into memory references.
  14219. M is the machine mode of the reference. It is necessary because
  14220. machines can generally refer to each register in more than one
  14221. mode. For example, a register may contain a full word but there
  14222. may be instructions to refer to it as a half word or as a single
  14223. byte, as well as instructions to refer to it as a floating point
  14224. number of various precisions.
  14225. Even for a register that the machine can access in only one mode,
  14226. the mode must always be specified.
  14227. The symbol 'FIRST_PSEUDO_REGISTER' is defined by the machine
  14228. description, since the number of hard registers on the machine is
  14229. an invariant characteristic of the machine. Note, however, that
  14230. not all of the machine registers must be general registers. All
  14231. the machine registers that can be used for storage of data are
  14232. given hard register numbers, even those that can be used only in
  14233. certain instructions or can hold only certain types of data.
  14234. A hard register may be accessed in various modes throughout one
  14235. function, but each pseudo register is given a natural mode and is
  14236. accessed only in that mode. When it is necessary to describe an
  14237. access to a pseudo register using a nonnatural mode, a 'subreg'
  14238. expression is used.
  14239. A 'reg' expression with a machine mode that specifies more than one
  14240. word of data may actually stand for several consecutive registers.
  14241. If in addition the register number specifies a hardware register,
  14242. then it actually represents several consecutive hardware registers
  14243. starting with the specified one.
  14244. Each pseudo register number used in a function's RTL code is
  14245. represented by a unique 'reg' expression.
  14246. Some pseudo register numbers, those within the range of
  14247. 'FIRST_VIRTUAL_REGISTER' to 'LAST_VIRTUAL_REGISTER' only appear
  14248. during the RTL generation phase and are eliminated before the
  14249. optimization phases. These represent locations in the stack frame
  14250. that cannot be determined until RTL generation for the function has
  14251. been completed. The following virtual register numbers are
  14252. defined:
  14253. 'VIRTUAL_INCOMING_ARGS_REGNUM'
  14254. This points to the first word of the incoming arguments passed
  14255. on the stack. Normally these arguments are placed there by
  14256. the caller, but the callee may have pushed some arguments that
  14257. were previously passed in registers.
  14258. When RTL generation is complete, this virtual register is
  14259. replaced by the sum of the register given by
  14260. 'ARG_POINTER_REGNUM' and the value of 'FIRST_PARM_OFFSET'.
  14261. 'VIRTUAL_STACK_VARS_REGNUM'
  14262. If 'FRAME_GROWS_DOWNWARD' is defined to a nonzero value, this
  14263. points to immediately above the first variable on the stack.
  14264. Otherwise, it points to the first variable on the stack.
  14265. 'VIRTUAL_STACK_VARS_REGNUM' is replaced with the sum of the
  14266. register given by 'FRAME_POINTER_REGNUM' and the value
  14267. 'TARGET_STARTING_FRAME_OFFSET'.
  14268. 'VIRTUAL_STACK_DYNAMIC_REGNUM'
  14269. This points to the location of dynamically allocated memory on
  14270. the stack immediately after the stack pointer has been
  14271. adjusted by the amount of memory desired.
  14272. This virtual register is replaced by the sum of the register
  14273. given by 'STACK_POINTER_REGNUM' and the value
  14274. 'STACK_DYNAMIC_OFFSET'.
  14275. 'VIRTUAL_OUTGOING_ARGS_REGNUM'
  14276. This points to the location in the stack at which outgoing
  14277. arguments should be written when the stack is pre-pushed
  14278. (arguments pushed using push insns should always use
  14279. 'STACK_POINTER_REGNUM').
  14280. This virtual register is replaced by the sum of the register
  14281. given by 'STACK_POINTER_REGNUM' and the value
  14282. 'STACK_POINTER_OFFSET'.
  14283. '(subreg:M1 REG:M2 BYTENUM)'
  14284. 'subreg' expressions are used to refer to a register in a machine
  14285. mode other than its natural one, or to refer to one register of a
  14286. multi-part 'reg' that actually refers to several registers.
  14287. Each pseudo register has a natural mode. If it is necessary to
  14288. operate on it in a different mode, the register must be enclosed in
  14289. a 'subreg'.
  14290. There are currently three supported types for the first operand of
  14291. a 'subreg':
  14292. * pseudo registers This is the most common case. Most 'subreg's
  14293. have pseudo 'reg's as their first operand.
  14294. * mem 'subreg's of 'mem' were common in earlier versions of GCC
  14295. and are still supported. During the reload pass these are
  14296. replaced by plain 'mem's. On machines that do not do
  14297. instruction scheduling, use of 'subreg's of 'mem' are still
  14298. used, but this is no longer recommended. Such 'subreg's are
  14299. considered to be 'register_operand's rather than
  14300. 'memory_operand's before and during reload. Because of this,
  14301. the scheduling passes cannot properly schedule instructions
  14302. with 'subreg's of 'mem', so for machines that do scheduling,
  14303. 'subreg's of 'mem' should never be used. To support this, the
  14304. combine and recog passes have explicit code to inhibit the
  14305. creation of 'subreg's of 'mem' when 'INSN_SCHEDULING' is
  14306. defined.
  14307. The use of 'subreg's of 'mem' after the reload pass is an area
  14308. that is not well understood and should be avoided. There is
  14309. still some code in the compiler to support this, but this code
  14310. has possibly rotted. This use of 'subreg's is discouraged and
  14311. will most likely not be supported in the future.
  14312. * hard registers It is seldom necessary to wrap hard registers
  14313. in 'subreg's; such registers would normally reduce to a single
  14314. 'reg' rtx. This use of 'subreg's is discouraged and may not
  14315. be supported in the future.
  14316. 'subreg's of 'subreg's are not supported. Using
  14317. 'simplify_gen_subreg' is the recommended way to avoid this problem.
  14318. 'subreg's come in two distinct flavors, each having its own usage
  14319. and rules:
  14320. Paradoxical subregs
  14321. When M1 is strictly wider than M2, the 'subreg' expression is
  14322. called "paradoxical". The canonical test for this class of
  14323. 'subreg' is:
  14324. paradoxical_subreg_p (M1, M2)
  14325. Paradoxical 'subreg's can be used as both lvalues and rvalues.
  14326. When used as an lvalue, the low-order bits of the source value
  14327. are stored in REG and the high-order bits are discarded. When
  14328. used as an rvalue, the low-order bits of the 'subreg' are
  14329. taken from REG while the high-order bits may or may not be
  14330. defined.
  14331. The high-order bits of rvalues are defined in the following
  14332. circumstances:
  14333. * 'subreg's of 'mem' When M2 is smaller than a word, the
  14334. macro 'LOAD_EXTEND_OP', can control how the high-order
  14335. bits are defined.
  14336. * 'subreg' of 'reg's The upper bits are defined when
  14337. 'SUBREG_PROMOTED_VAR_P' is true.
  14338. 'SUBREG_PROMOTED_UNSIGNED_P' describes what the upper
  14339. bits hold. Such subregs usually represent local
  14340. variables, register variables and parameter pseudo
  14341. variables that have been promoted to a wider mode.
  14342. BYTENUM is always zero for a paradoxical 'subreg', even on
  14343. big-endian targets.
  14344. For example, the paradoxical 'subreg':
  14345. (set (subreg:SI (reg:HI X) 0) Y)
  14346. stores the lower 2 bytes of Y in X and discards the upper 2
  14347. bytes. A subsequent:
  14348. (set Z (subreg:SI (reg:HI X) 0))
  14349. would set the lower two bytes of Z to Y and set the upper two
  14350. bytes to an unknown value assuming 'SUBREG_PROMOTED_VAR_P' is
  14351. false.
  14352. Normal subregs
  14353. When M1 is at least as narrow as M2 the 'subreg' expression is
  14354. called "normal".
  14355. Normal 'subreg's restrict consideration to certain bits of
  14356. REG. For this purpose, REG is divided into
  14357. individually-addressable blocks in which each block has:
  14358. REGMODE_NATURAL_SIZE (M2)
  14359. bytes. Usually the value is 'UNITS_PER_WORD'; that is, most
  14360. targets usually treat each word of a register as being
  14361. independently addressable.
  14362. There are two types of normal 'subreg'. If M1 is known to be
  14363. no bigger than a block, the 'subreg' refers to the
  14364. least-significant part (or "lowpart") of one block of REG. If
  14365. M1 is known to be larger than a block, the 'subreg' refers to
  14366. two or more complete blocks.
  14367. When used as an lvalue, 'subreg' is a block-based accessor.
  14368. Storing to a 'subreg' modifies all the blocks of REG that
  14369. overlap the 'subreg', but it leaves the other blocks of REG
  14370. alone.
  14371. When storing to a normal 'subreg' that is smaller than a
  14372. block, the other bits of the referenced block are usually left
  14373. in an undefined state. This laxity makes it easier to
  14374. generate efficient code for such instructions. To represent
  14375. an instruction that preserves all the bits outside of those in
  14376. the 'subreg', use 'strict_low_part' or 'zero_extract' around
  14377. the 'subreg'.
  14378. BYTENUM must identify the offset of the first byte of the
  14379. 'subreg' from the start of REG, assuming that REG is laid out
  14380. in memory order. The memory order of bytes is defined by two
  14381. target macros, 'WORDS_BIG_ENDIAN' and 'BYTES_BIG_ENDIAN':
  14382. * 'WORDS_BIG_ENDIAN', if set to 1, says that byte number
  14383. zero is part of the most significant word; otherwise, it
  14384. is part of the least significant word.
  14385. * 'BYTES_BIG_ENDIAN', if set to 1, says that byte number
  14386. zero is the most significant byte within a word;
  14387. otherwise, it is the least significant byte within a
  14388. word.
  14389. On a few targets, 'FLOAT_WORDS_BIG_ENDIAN' disagrees with
  14390. 'WORDS_BIG_ENDIAN'. However, most parts of the compiler treat
  14391. floating point values as if they had the same endianness as
  14392. integer values. This works because they handle them solely as
  14393. a collection of integer values, with no particular numerical
  14394. value. Only real.c and the runtime libraries care about
  14395. 'FLOAT_WORDS_BIG_ENDIAN'.
  14396. Thus,
  14397. (subreg:HI (reg:SI X) 2)
  14398. on a 'BYTES_BIG_ENDIAN', 'UNITS_PER_WORD == 4' target is the
  14399. same as
  14400. (subreg:HI (reg:SI X) 0)
  14401. on a little-endian, 'UNITS_PER_WORD == 4' target. Both
  14402. 'subreg's access the lower two bytes of register X.
  14403. Note that the byte offset is a polynomial integer; it may not
  14404. be a compile-time constant on targets with variable-sized
  14405. modes. However, the restrictions above mean that there are
  14406. only a certain set of acceptable offsets for a given
  14407. combination of M1 and M2. The compiler can always tell which
  14408. blocks a valid subreg occupies, and whether the subreg is a
  14409. lowpart of a block.
  14410. A 'MODE_PARTIAL_INT' mode behaves as if it were as wide as the
  14411. corresponding 'MODE_INT' mode, except that it has a number of
  14412. undefined bits, which are determined by the precision of the mode.
  14413. For example, on a little-endian target which defines 'PSImode' to
  14414. have a precision of 20 bits:
  14415. (subreg:PSI (reg:SI 0) 0)
  14416. accesses the low 20 bits of '(reg:SI 0)'.
  14417. Continuing with a 'PSImode' precision of 20 bits, if we assume
  14418. 'REGMODE_NATURAL_SIZE (DImode) <= 4', then the following two
  14419. 'subreg's:
  14420. (subreg:PSI (reg:DI 0) 0)
  14421. (subreg:PSI (reg:DI 0) 4)
  14422. represent accesses to the low 20 bits of the two halves of '(reg:DI
  14423. 0)'.
  14424. If 'REGMODE_NATURAL_SIZE (PSImode) <= 2' then these two 'subreg's:
  14425. (subreg:HI (reg:PSI 0) 0)
  14426. (subreg:HI (reg:PSI 0) 2)
  14427. represent independent 2-byte accesses that together span the whole
  14428. of '(reg:PSI 0)'. Storing to the first 'subreg' does not affect
  14429. the value of the second, and vice versa, so the assignment:
  14430. (set (subreg:HI (reg:PSI 0) 0) (reg:HI 4))
  14431. sets the low 16 bits of '(reg:PSI 0)' to '(reg:HI 4)', and the high
  14432. 4 defined bits of '(reg:PSI 0)' retain their original value. The
  14433. behavior here is the same as for normal 'subreg's, when there are
  14434. no 'MODE_PARTIAL_INT' modes involved.
  14435. The rules above apply to both pseudo REGs and hard REGs. If the
  14436. semantics are not correct for particular combinations of M1, M2 and
  14437. hard REG, the target-specific code must ensure that those
  14438. combinations are never used. For example:
  14439. TARGET_CAN_CHANGE_MODE_CLASS (M2, M1, CLASS)
  14440. must be false for every class CLASS that includes REG.
  14441. GCC must be able to determine at compile time whether a subreg is
  14442. paradoxical, whether it occupies a whole number of blocks, or
  14443. whether it is a lowpart of a block. This means that certain
  14444. combinations of variable-sized mode are not permitted. For
  14445. example, if M2 holds N 'SI' values, where N is greater than zero,
  14446. it is not possible to form a 'DI' 'subreg' of it; such a 'subreg'
  14447. would be paradoxical when N is 1 but not when N is greater than 1.
  14448. The first operand of a 'subreg' expression is customarily accessed
  14449. with the 'SUBREG_REG' macro and the second operand is customarily
  14450. accessed with the 'SUBREG_BYTE' macro.
  14451. It has been several years since a platform in which
  14452. 'BYTES_BIG_ENDIAN' not equal to 'WORDS_BIG_ENDIAN' has been tested.
  14453. Anyone wishing to support such a platform in the future may be
  14454. confronted with code rot.
  14455. '(scratch:M)'
  14456. This represents a scratch register that will be required for the
  14457. execution of a single instruction and not used subsequently. It is
  14458. converted into a 'reg' by either the local register allocator or
  14459. the reload pass.
  14460. 'scratch' is usually present inside a 'clobber' operation (*note
  14461. Side Effects::).
  14462. '(cc0)'
  14463. This refers to the machine's condition code register. It has no
  14464. operands and may not have a machine mode. There are two ways to
  14465. use it:
  14466. * To stand for a complete set of condition code flags. This is
  14467. best on most machines, where each comparison sets the entire
  14468. series of flags.
  14469. With this technique, '(cc0)' may be validly used in only two
  14470. contexts: as the destination of an assignment (in test and
  14471. compare instructions) and in comparison operators comparing
  14472. against zero ('const_int' with value zero; that is to say,
  14473. 'const0_rtx').
  14474. * To stand for a single flag that is the result of a single
  14475. condition. This is useful on machines that have only a single
  14476. flag bit, and in which comparison instructions must specify
  14477. the condition to test.
  14478. With this technique, '(cc0)' may be validly used in only two
  14479. contexts: as the destination of an assignment (in test and
  14480. compare instructions) where the source is a comparison
  14481. operator, and as the first operand of 'if_then_else' (in a
  14482. conditional branch).
  14483. There is only one expression object of code 'cc0'; it is the value
  14484. of the variable 'cc0_rtx'. Any attempt to create an expression of
  14485. code 'cc0' will return 'cc0_rtx'.
  14486. Instructions can set the condition code implicitly. On many
  14487. machines, nearly all instructions set the condition code based on
  14488. the value that they compute or store. It is not necessary to
  14489. record these actions explicitly in the RTL because the machine
  14490. description includes a prescription for recognizing the
  14491. instructions that do so (by means of the macro 'NOTICE_UPDATE_CC').
  14492. *Note Condition Code::. Only instructions whose sole purpose is to
  14493. set the condition code, and instructions that use the condition
  14494. code, need mention '(cc0)'.
  14495. On some machines, the condition code register is given a register
  14496. number and a 'reg' is used instead of '(cc0)'. This is usually the
  14497. preferable approach if only a small subset of instructions modify
  14498. the condition code. Other machines store condition codes in
  14499. general registers; in such cases a pseudo register should be used.
  14500. Some machines, such as the SPARC and RS/6000, have two sets of
  14501. arithmetic instructions, one that sets and one that does not set
  14502. the condition code. This is best handled by normally generating
  14503. the instruction that does not set the condition code, and making a
  14504. pattern that both performs the arithmetic and sets the condition
  14505. code register (which would not be '(cc0)' in this case). For
  14506. examples, search for 'addcc' and 'andcc' in 'sparc.md'.
  14507. '(pc)'
  14508. This represents the machine's program counter. It has no operands
  14509. and may not have a machine mode. '(pc)' may be validly used only
  14510. in certain specific contexts in jump instructions.
  14511. There is only one expression object of code 'pc'; it is the value
  14512. of the variable 'pc_rtx'. Any attempt to create an expression of
  14513. code 'pc' will return 'pc_rtx'.
  14514. All instructions that do not jump alter the program counter
  14515. implicitly by incrementing it, but there is no need to mention this
  14516. in the RTL.
  14517. '(mem:M ADDR ALIAS)'
  14518. This RTX represents a reference to main memory at an address
  14519. represented by the expression ADDR. M specifies how large a unit
  14520. of memory is accessed. ALIAS specifies an alias set for the
  14521. reference. In general two items are in different alias sets if
  14522. they cannot reference the same memory address.
  14523. The construct '(mem:BLK (scratch))' is considered to alias all
  14524. other memories. Thus it may be used as a memory barrier in
  14525. epilogue stack deallocation patterns.
  14526. '(concatM RTX RTX)'
  14527. This RTX represents the concatenation of two other RTXs. This is
  14528. used for complex values. It should only appear in the RTL attached
  14529. to declarations and during RTL generation. It should not appear in
  14530. the ordinary insn chain.
  14531. '(concatnM [RTX ...])'
  14532. This RTX represents the concatenation of all the RTX to make a
  14533. single value. Like 'concat', this should only appear in
  14534. declarations, and not in the insn chain.
  14535. 
  14536. File: gccint.info, Node: Arithmetic, Next: Comparisons, Prev: Regs and Memory, Up: RTL
  14537. 14.9 RTL Expressions for Arithmetic
  14538. ===================================
  14539. Unless otherwise specified, all the operands of arithmetic expressions
  14540. must be valid for mode M. An operand is valid for mode M if it has mode
  14541. M, or if it is a 'const_int' or 'const_double' and M is a mode of class
  14542. 'MODE_INT'.
  14543. For commutative binary operations, constants should be placed in the
  14544. second operand.
  14545. '(plus:M X Y)'
  14546. '(ss_plus:M X Y)'
  14547. '(us_plus:M X Y)'
  14548. These three expressions all represent the sum of the values
  14549. represented by X and Y carried out in machine mode M. They differ
  14550. in their behavior on overflow of integer modes. 'plus' wraps round
  14551. modulo the width of M; 'ss_plus' saturates at the maximum signed
  14552. value representable in M; 'us_plus' saturates at the maximum
  14553. unsigned value.
  14554. '(lo_sum:M X Y)'
  14555. This expression represents the sum of X and the low-order bits of
  14556. Y. It is used with 'high' (*note Constants::) to represent the
  14557. typical two-instruction sequence used in RISC machines to reference
  14558. large immediate values and/or link-time constants such as global
  14559. memory addresses. In the latter case, M is 'Pmode' and Y is
  14560. usually a constant expression involving 'symbol_ref'.
  14561. The number of low order bits is machine-dependent but is normally
  14562. the number of bits in mode M minus the number of bits set by
  14563. 'high'.
  14564. '(minus:M X Y)'
  14565. '(ss_minus:M X Y)'
  14566. '(us_minus:M X Y)'
  14567. These three expressions represent the result of subtracting Y from
  14568. X, carried out in mode M. Behavior on overflow is the same as for
  14569. the three variants of 'plus' (see above).
  14570. '(compare:M X Y)'
  14571. Represents the result of subtracting Y from X for purposes of
  14572. comparison. The result is computed without overflow, as if with
  14573. infinite precision.
  14574. Of course, machines cannot really subtract with infinite precision.
  14575. However, they can pretend to do so when only the sign of the result
  14576. will be used, which is the case when the result is stored in the
  14577. condition code. And that is the _only_ way this kind of expression
  14578. may validly be used: as a value to be stored in the condition
  14579. codes, either '(cc0)' or a register. *Note Comparisons::.
  14580. The mode M is not related to the modes of X and Y, but instead is
  14581. the mode of the condition code value. If '(cc0)' is used, it is
  14582. 'VOIDmode'. Otherwise it is some mode in class 'MODE_CC', often
  14583. 'CCmode'. *Note Condition Code::. If M is 'VOIDmode' or 'CCmode',
  14584. the operation returns sufficient information (in an unspecified
  14585. format) so that any comparison operator can be applied to the
  14586. result of the 'COMPARE' operation. For other modes in class
  14587. 'MODE_CC', the operation only returns a subset of this information.
  14588. Normally, X and Y must have the same mode. Otherwise, 'compare' is
  14589. valid only if the mode of X is in class 'MODE_INT' and Y is a
  14590. 'const_int' or 'const_double' with mode 'VOIDmode'. The mode of X
  14591. determines what mode the comparison is to be done in; thus it must
  14592. not be 'VOIDmode'.
  14593. If one of the operands is a constant, it should be placed in the
  14594. second operand and the comparison code adjusted as appropriate.
  14595. A 'compare' specifying two 'VOIDmode' constants is not valid since
  14596. there is no way to know in what mode the comparison is to be
  14597. performed; the comparison must either be folded during the
  14598. compilation or the first operand must be loaded into a register
  14599. while its mode is still known.
  14600. '(neg:M X)'
  14601. '(ss_neg:M X)'
  14602. '(us_neg:M X)'
  14603. These two expressions represent the negation (subtraction from
  14604. zero) of the value represented by X, carried out in mode M. They
  14605. differ in the behavior on overflow of integer modes. In the case
  14606. of 'neg', the negation of the operand may be a number not
  14607. representable in mode M, in which case it is truncated to M.
  14608. 'ss_neg' and 'us_neg' ensure that an out-of-bounds result saturates
  14609. to the maximum or minimum signed or unsigned value.
  14610. '(mult:M X Y)'
  14611. '(ss_mult:M X Y)'
  14612. '(us_mult:M X Y)'
  14613. Represents the signed product of the values represented by X and Y
  14614. carried out in machine mode M. 'ss_mult' and 'us_mult' ensure that
  14615. an out-of-bounds result saturates to the maximum or minimum signed
  14616. or unsigned value.
  14617. Some machines support a multiplication that generates a product
  14618. wider than the operands. Write the pattern for this as
  14619. (mult:M (sign_extend:M X) (sign_extend:M Y))
  14620. where M is wider than the modes of X and Y, which need not be the
  14621. same.
  14622. For unsigned widening multiplication, use the same idiom, but with
  14623. 'zero_extend' instead of 'sign_extend'.
  14624. '(fma:M X Y Z)'
  14625. Represents the 'fma', 'fmaf', and 'fmal' builtin functions, which
  14626. compute 'X * Y + Z' without doing an intermediate rounding step.
  14627. '(div:M X Y)'
  14628. '(ss_div:M X Y)'
  14629. Represents the quotient in signed division of X by Y, carried out
  14630. in machine mode M. If M is a floating point mode, it represents
  14631. the exact quotient; otherwise, the integerized quotient. 'ss_div'
  14632. ensures that an out-of-bounds result saturates to the maximum or
  14633. minimum signed value.
  14634. Some machines have division instructions in which the operands and
  14635. quotient widths are not all the same; you should represent such
  14636. instructions using 'truncate' and 'sign_extend' as in,
  14637. (truncate:M1 (div:M2 X (sign_extend:M2 Y)))
  14638. '(udiv:M X Y)'
  14639. '(us_div:M X Y)'
  14640. Like 'div' but represents unsigned division. 'us_div' ensures that
  14641. an out-of-bounds result saturates to the maximum or minimum
  14642. unsigned value.
  14643. '(mod:M X Y)'
  14644. '(umod:M X Y)'
  14645. Like 'div' and 'udiv' but represent the remainder instead of the
  14646. quotient.
  14647. '(smin:M X Y)'
  14648. '(smax:M X Y)'
  14649. Represents the smaller (for 'smin') or larger (for 'smax') of X and
  14650. Y, interpreted as signed values in mode M. When used with floating
  14651. point, if both operands are zeros, or if either operand is 'NaN',
  14652. then it is unspecified which of the two operands is returned as the
  14653. result.
  14654. '(umin:M X Y)'
  14655. '(umax:M X Y)'
  14656. Like 'smin' and 'smax', but the values are interpreted as unsigned
  14657. integers.
  14658. '(not:M X)'
  14659. Represents the bitwise complement of the value represented by X,
  14660. carried out in mode M, which must be a fixed-point machine mode.
  14661. '(and:M X Y)'
  14662. Represents the bitwise logical-and of the values represented by X
  14663. and Y, carried out in machine mode M, which must be a fixed-point
  14664. machine mode.
  14665. '(ior:M X Y)'
  14666. Represents the bitwise inclusive-or of the values represented by X
  14667. and Y, carried out in machine mode M, which must be a fixed-point
  14668. mode.
  14669. '(xor:M X Y)'
  14670. Represents the bitwise exclusive-or of the values represented by X
  14671. and Y, carried out in machine mode M, which must be a fixed-point
  14672. mode.
  14673. '(ashift:M X C)'
  14674. '(ss_ashift:M X C)'
  14675. '(us_ashift:M X C)'
  14676. These three expressions represent the result of arithmetically
  14677. shifting X left by C places. They differ in their behavior on
  14678. overflow of integer modes. An 'ashift' operation is a plain shift
  14679. with no special behavior in case of a change in the sign bit;
  14680. 'ss_ashift' and 'us_ashift' saturates to the minimum or maximum
  14681. representable value if any of the bits shifted out differs from the
  14682. final sign bit.
  14683. X have mode M, a fixed-point machine mode. C be a fixed-point mode
  14684. or be a constant with mode 'VOIDmode'; which mode is determined by
  14685. the mode called for in the machine description entry for the
  14686. left-shift instruction. For example, on the VAX, the mode of C is
  14687. 'QImode' regardless of M.
  14688. '(lshiftrt:M X C)'
  14689. '(ashiftrt:M X C)'
  14690. Like 'ashift' but for right shift. Unlike the case for left shift,
  14691. these two operations are distinct.
  14692. '(rotate:M X C)'
  14693. '(rotatert:M X C)'
  14694. Similar but represent left and right rotate. If C is a constant,
  14695. use 'rotate'.
  14696. '(abs:M X)'
  14697. '(ss_abs:M X)'
  14698. Represents the absolute value of X, computed in mode M. 'ss_abs'
  14699. ensures that an out-of-bounds result saturates to the maximum
  14700. signed value.
  14701. '(sqrt:M X)'
  14702. Represents the square root of X, computed in mode M. Most often M
  14703. will be a floating point mode.
  14704. '(ffs:M X)'
  14705. Represents one plus the index of the least significant 1-bit in X,
  14706. represented as an integer of mode M. (The value is zero if X is
  14707. zero.) The mode of X must be M or 'VOIDmode'.
  14708. '(clrsb:M X)'
  14709. Represents the number of redundant leading sign bits in X,
  14710. represented as an integer of mode M, starting at the most
  14711. significant bit position. This is one less than the number of
  14712. leading sign bits (either 0 or 1), with no special cases. The mode
  14713. of X must be M or 'VOIDmode'.
  14714. '(clz:M X)'
  14715. Represents the number of leading 0-bits in X, represented as an
  14716. integer of mode M, starting at the most significant bit position.
  14717. If X is zero, the value is determined by
  14718. 'CLZ_DEFINED_VALUE_AT_ZERO' (*note Misc::). Note that this is one
  14719. of the few expressions that is not invariant under widening. The
  14720. mode of X must be M or 'VOIDmode'.
  14721. '(ctz:M X)'
  14722. Represents the number of trailing 0-bits in X, represented as an
  14723. integer of mode M, starting at the least significant bit position.
  14724. If X is zero, the value is determined by
  14725. 'CTZ_DEFINED_VALUE_AT_ZERO' (*note Misc::). Except for this case,
  14726. 'ctz(x)' is equivalent to 'ffs(X) - 1'. The mode of X must be M or
  14727. 'VOIDmode'.
  14728. '(popcount:M X)'
  14729. Represents the number of 1-bits in X, represented as an integer of
  14730. mode M. The mode of X must be M or 'VOIDmode'.
  14731. '(parity:M X)'
  14732. Represents the number of 1-bits modulo 2 in X, represented as an
  14733. integer of mode M. The mode of X must be M or 'VOIDmode'.
  14734. '(bswap:M X)'
  14735. Represents the value X with the order of bytes reversed, carried
  14736. out in mode M, which must be a fixed-point machine mode. The mode
  14737. of X must be M or 'VOIDmode'.
  14738. 
  14739. File: gccint.info, Node: Comparisons, Next: Bit-Fields, Prev: Arithmetic, Up: RTL
  14740. 14.10 Comparison Operations
  14741. ===========================
  14742. Comparison operators test a relation on two operands and are considered
  14743. to represent a machine-dependent nonzero value described by, but not
  14744. necessarily equal to, 'STORE_FLAG_VALUE' (*note Misc::) if the relation
  14745. holds, or zero if it does not, for comparison operators whose results
  14746. have a 'MODE_INT' mode, 'FLOAT_STORE_FLAG_VALUE' (*note Misc::) if the
  14747. relation holds, or zero if it does not, for comparison operators that
  14748. return floating-point values, and a vector of either
  14749. 'VECTOR_STORE_FLAG_VALUE' (*note Misc::) if the relation holds, or of
  14750. zeros if it does not, for comparison operators that return vector
  14751. results. The mode of the comparison operation is independent of the
  14752. mode of the data being compared. If the comparison operation is being
  14753. tested (e.g., the first operand of an 'if_then_else'), the mode must be
  14754. 'VOIDmode'.
  14755. There are two ways that comparison operations may be used. The
  14756. comparison operators may be used to compare the condition codes '(cc0)'
  14757. against zero, as in '(eq (cc0) (const_int 0))'. Such a construct
  14758. actually refers to the result of the preceding instruction in which the
  14759. condition codes were set. The instruction setting the condition code
  14760. must be adjacent to the instruction using the condition code; only
  14761. 'note' insns may separate them.
  14762. Alternatively, a comparison operation may directly compare two data
  14763. objects. The mode of the comparison is determined by the operands; they
  14764. must both be valid for a common machine mode. A comparison with both
  14765. operands constant would be invalid as the machine mode could not be
  14766. deduced from it, but such a comparison should never exist in RTL due to
  14767. constant folding.
  14768. In the example above, if '(cc0)' were last set to '(compare X Y)', the
  14769. comparison operation is identical to '(eq X Y)'. Usually only one style
  14770. of comparisons is supported on a particular machine, but the combine
  14771. pass will try to merge the operations to produce the 'eq' shown in case
  14772. it exists in the context of the particular insn involved.
  14773. Inequality comparisons come in two flavors, signed and unsigned. Thus,
  14774. there are distinct expression codes 'gt' and 'gtu' for signed and
  14775. unsigned greater-than. These can produce different results for the same
  14776. pair of integer values: for example, 1 is signed greater-than -1 but not
  14777. unsigned greater-than, because -1 when regarded as unsigned is actually
  14778. '0xffffffff' which is greater than 1.
  14779. The signed comparisons are also used for floating point values.
  14780. Floating point comparisons are distinguished by the machine modes of the
  14781. operands.
  14782. '(eq:M X Y)'
  14783. 'STORE_FLAG_VALUE' if the values represented by X and Y are equal,
  14784. otherwise 0.
  14785. '(ne:M X Y)'
  14786. 'STORE_FLAG_VALUE' if the values represented by X and Y are not
  14787. equal, otherwise 0.
  14788. '(gt:M X Y)'
  14789. 'STORE_FLAG_VALUE' if the X is greater than Y. If they are
  14790. fixed-point, the comparison is done in a signed sense.
  14791. '(gtu:M X Y)'
  14792. Like 'gt' but does unsigned comparison, on fixed-point numbers
  14793. only.
  14794. '(lt:M X Y)'
  14795. '(ltu:M X Y)'
  14796. Like 'gt' and 'gtu' but test for "less than".
  14797. '(ge:M X Y)'
  14798. '(geu:M X Y)'
  14799. Like 'gt' and 'gtu' but test for "greater than or equal".
  14800. '(le:M X Y)'
  14801. '(leu:M X Y)'
  14802. Like 'gt' and 'gtu' but test for "less than or equal".
  14803. '(if_then_else COND THEN ELSE)'
  14804. This is not a comparison operation but is listed here because it is
  14805. always used in conjunction with a comparison operation. To be
  14806. precise, COND is a comparison expression. This expression
  14807. represents a choice, according to COND, between the value
  14808. represented by THEN and the one represented by ELSE.
  14809. On most machines, 'if_then_else' expressions are valid only to
  14810. express conditional jumps.
  14811. '(cond [TEST1 VALUE1 TEST2 VALUE2 ...] DEFAULT)'
  14812. Similar to 'if_then_else', but more general. Each of TEST1, TEST2,
  14813. ... is performed in turn. The result of this expression is the
  14814. VALUE corresponding to the first nonzero test, or DEFAULT if none
  14815. of the tests are nonzero expressions.
  14816. This is currently not valid for instruction patterns and is
  14817. supported only for insn attributes. *Note Insn Attributes::.
  14818. 
  14819. File: gccint.info, Node: Bit-Fields, Next: Vector Operations, Prev: Comparisons, Up: RTL
  14820. 14.11 Bit-Fields
  14821. ================
  14822. Special expression codes exist to represent bit-field instructions.
  14823. '(sign_extract:M LOC SIZE POS)'
  14824. This represents a reference to a sign-extended bit-field contained
  14825. or starting in LOC (a memory or register reference). The bit-field
  14826. is SIZE bits wide and starts at bit POS. The compilation option
  14827. 'BITS_BIG_ENDIAN' says which end of the memory unit POS counts
  14828. from.
  14829. If LOC is in memory, its mode must be a single-byte integer mode.
  14830. If LOC is in a register, the mode to use is specified by the
  14831. operand of the 'insv' or 'extv' pattern (*note Standard Names::)
  14832. and is usually a full-word integer mode, which is the default if
  14833. none is specified.
  14834. The mode of POS is machine-specific and is also specified in the
  14835. 'insv' or 'extv' pattern.
  14836. The mode M is the same as the mode that would be used for LOC if it
  14837. were a register.
  14838. A 'sign_extract' cannot appear as an lvalue, or part thereof, in
  14839. RTL.
  14840. '(zero_extract:M LOC SIZE POS)'
  14841. Like 'sign_extract' but refers to an unsigned or zero-extended
  14842. bit-field. The same sequence of bits are extracted, but they are
  14843. filled to an entire word with zeros instead of by sign-extension.
  14844. Unlike 'sign_extract', this type of expressions can be lvalues in
  14845. RTL; they may appear on the left side of an assignment, indicating
  14846. insertion of a value into the specified bit-field.
  14847. 
  14848. File: gccint.info, Node: Vector Operations, Next: Conversions, Prev: Bit-Fields, Up: RTL
  14849. 14.12 Vector Operations
  14850. =======================
  14851. All normal RTL expressions can be used with vector modes; they are
  14852. interpreted as operating on each part of the vector independently.
  14853. Additionally, there are a few new expressions to describe specific
  14854. vector operations.
  14855. '(vec_merge:M VEC1 VEC2 ITEMS)'
  14856. This describes a merge operation between two vectors. The result
  14857. is a vector of mode M; its elements are selected from either VEC1
  14858. or VEC2. Which elements are selected is described by ITEMS, which
  14859. is a bit mask represented by a 'const_int'; a zero bit indicates
  14860. the corresponding element in the result vector is taken from VEC2
  14861. while a set bit indicates it is taken from VEC1.
  14862. '(vec_select:M VEC1 SELECTION)'
  14863. This describes an operation that selects parts of a vector. VEC1
  14864. is the source vector, and SELECTION is a 'parallel' that contains a
  14865. 'const_int' (or another expression, if the selection can be made at
  14866. runtime) for each of the subparts of the result vector, giving the
  14867. number of the source subpart that should be stored into it. The
  14868. result mode M is either the submode for a single element of VEC1
  14869. (if only one subpart is selected), or another vector mode with that
  14870. element submode (if multiple subparts are selected).
  14871. '(vec_concat:M X1 X2)'
  14872. Describes a vector concat operation. The result is a concatenation
  14873. of the vectors or scalars X1 and X2; its length is the sum of the
  14874. lengths of the two inputs.
  14875. '(vec_duplicate:M X)'
  14876. This operation converts a scalar into a vector or a small vector
  14877. into a larger one by duplicating the input values. The output
  14878. vector mode must have the same submodes as the input vector mode or
  14879. the scalar modes, and the number of output parts must be an integer
  14880. multiple of the number of input parts.
  14881. '(vec_series:M BASE STEP)'
  14882. This operation creates a vector in which element I is equal to
  14883. 'BASE + I*STEP'. M must be a vector integer mode.
  14884. 
  14885. File: gccint.info, Node: Conversions, Next: RTL Declarations, Prev: Vector Operations, Up: RTL
  14886. 14.13 Conversions
  14887. =================
  14888. All conversions between machine modes must be represented by explicit
  14889. conversion operations. For example, an expression which is the sum of a
  14890. byte and a full word cannot be written as '(plus:SI (reg:QI 34) (reg:SI
  14891. 80))' because the 'plus' operation requires two operands of the same
  14892. machine mode. Therefore, the byte-sized operand is enclosed in a
  14893. conversion operation, as in
  14894. (plus:SI (sign_extend:SI (reg:QI 34)) (reg:SI 80))
  14895. The conversion operation is not a mere placeholder, because there may
  14896. be more than one way of converting from a given starting mode to the
  14897. desired final mode. The conversion operation code says how to do it.
  14898. For all conversion operations, X must not be 'VOIDmode' because the
  14899. mode in which to do the conversion would not be known. The conversion
  14900. must either be done at compile-time or X must be placed into a register.
  14901. '(sign_extend:M X)'
  14902. Represents the result of sign-extending the value X to machine mode
  14903. M. M must be a fixed-point mode and X a fixed-point value of a
  14904. mode narrower than M.
  14905. '(zero_extend:M X)'
  14906. Represents the result of zero-extending the value X to machine mode
  14907. M. M must be a fixed-point mode and X a fixed-point value of a
  14908. mode narrower than M.
  14909. '(float_extend:M X)'
  14910. Represents the result of extending the value X to machine mode M.
  14911. M must be a floating point mode and X a floating point value of a
  14912. mode narrower than M.
  14913. '(truncate:M X)'
  14914. Represents the result of truncating the value X to machine mode M.
  14915. M must be a fixed-point mode and X a fixed-point value of a mode
  14916. wider than M.
  14917. '(ss_truncate:M X)'
  14918. Represents the result of truncating the value X to machine mode M,
  14919. using signed saturation in the case of overflow. Both M and the
  14920. mode of X must be fixed-point modes.
  14921. '(us_truncate:M X)'
  14922. Represents the result of truncating the value X to machine mode M,
  14923. using unsigned saturation in the case of overflow. Both M and the
  14924. mode of X must be fixed-point modes.
  14925. '(float_truncate:M X)'
  14926. Represents the result of truncating the value X to machine mode M.
  14927. M must be a floating point mode and X a floating point value of a
  14928. mode wider than M.
  14929. '(float:M X)'
  14930. Represents the result of converting fixed point value X, regarded
  14931. as signed, to floating point mode M.
  14932. '(unsigned_float:M X)'
  14933. Represents the result of converting fixed point value X, regarded
  14934. as unsigned, to floating point mode M.
  14935. '(fix:M X)'
  14936. When M is a floating-point mode, represents the result of
  14937. converting floating point value X (valid for mode M) to an integer,
  14938. still represented in floating point mode M, by rounding towards
  14939. zero.
  14940. When M is a fixed-point mode, represents the result of converting
  14941. floating point value X to mode M, regarded as signed. How rounding
  14942. is done is not specified, so this operation may be used validly in
  14943. compiling C code only for integer-valued operands.
  14944. '(unsigned_fix:M X)'
  14945. Represents the result of converting floating point value X to fixed
  14946. point mode M, regarded as unsigned. How rounding is done is not
  14947. specified.
  14948. '(fract_convert:M X)'
  14949. Represents the result of converting fixed-point value X to
  14950. fixed-point mode M, signed integer value X to fixed-point mode M,
  14951. floating-point value X to fixed-point mode M, fixed-point value X
  14952. to integer mode M regarded as signed, or fixed-point value X to
  14953. floating-point mode M. When overflows or underflows happen, the
  14954. results are undefined.
  14955. '(sat_fract:M X)'
  14956. Represents the result of converting fixed-point value X to
  14957. fixed-point mode M, signed integer value X to fixed-point mode M,
  14958. or floating-point value X to fixed-point mode M. When overflows or
  14959. underflows happen, the results are saturated to the maximum or the
  14960. minimum.
  14961. '(unsigned_fract_convert:M X)'
  14962. Represents the result of converting fixed-point value X to integer
  14963. mode M regarded as unsigned, or unsigned integer value X to
  14964. fixed-point mode M. When overflows or underflows happen, the
  14965. results are undefined.
  14966. '(unsigned_sat_fract:M X)'
  14967. Represents the result of converting unsigned integer value X to
  14968. fixed-point mode M. When overflows or underflows happen, the
  14969. results are saturated to the maximum or the minimum.
  14970. 
  14971. File: gccint.info, Node: RTL Declarations, Next: Side Effects, Prev: Conversions, Up: RTL
  14972. 14.14 Declarations
  14973. ==================
  14974. Declaration expression codes do not represent arithmetic operations but
  14975. rather state assertions about their operands.
  14976. '(strict_low_part (subreg:M (reg:N R) 0))'
  14977. This expression code is used in only one context: as the
  14978. destination operand of a 'set' expression. In addition, the
  14979. operand of this expression must be a non-paradoxical 'subreg'
  14980. expression.
  14981. The presence of 'strict_low_part' says that the part of the
  14982. register which is meaningful in mode N, but is not part of mode M,
  14983. is not to be altered. Normally, an assignment to such a subreg is
  14984. allowed to have undefined effects on the rest of the register when
  14985. M is smaller than 'REGMODE_NATURAL_SIZE (N)'.
  14986. 
  14987. File: gccint.info, Node: Side Effects, Next: Incdec, Prev: RTL Declarations, Up: RTL
  14988. 14.15 Side Effect Expressions
  14989. =============================
  14990. The expression codes described so far represent values, not actions.
  14991. But machine instructions never produce values; they are meaningful only
  14992. for their side effects on the state of the machine. Special expression
  14993. codes are used to represent side effects.
  14994. The body of an instruction is always one of these side effect codes;
  14995. the codes described above, which represent values, appear only as the
  14996. operands of these.
  14997. '(set LVAL X)'
  14998. Represents the action of storing the value of X into the place
  14999. represented by LVAL. LVAL must be an expression representing a
  15000. place that can be stored in: 'reg' (or 'subreg', 'strict_low_part'
  15001. or 'zero_extract'), 'mem', 'pc', 'parallel', or 'cc0'.
  15002. If LVAL is a 'reg', 'subreg' or 'mem', it has a machine mode; then
  15003. X must be valid for that mode.
  15004. If LVAL is a 'reg' whose machine mode is less than the full width
  15005. of the register, then it means that the part of the register
  15006. specified by the machine mode is given the specified value and the
  15007. rest of the register receives an undefined value. Likewise, if
  15008. LVAL is a 'subreg' whose machine mode is narrower than the mode of
  15009. the register, the rest of the register can be changed in an
  15010. undefined way.
  15011. If LVAL is a 'strict_low_part' of a subreg, then the part of the
  15012. register specified by the machine mode of the 'subreg' is given the
  15013. value X and the rest of the register is not changed.
  15014. If LVAL is a 'zero_extract', then the referenced part of the
  15015. bit-field (a memory or register reference) specified by the
  15016. 'zero_extract' is given the value X and the rest of the bit-field
  15017. is not changed. Note that 'sign_extract' cannot appear in LVAL.
  15018. If LVAL is '(cc0)', it has no machine mode, and X may be either a
  15019. 'compare' expression or a value that may have any mode. The latter
  15020. case represents a "test" instruction. The expression '(set (cc0)
  15021. (reg:M N))' is equivalent to '(set (cc0) (compare (reg:M N)
  15022. (const_int 0)))'. Use the former expression to save space during
  15023. the compilation.
  15024. If LVAL is a 'parallel', it is used to represent the case of a
  15025. function returning a structure in multiple registers. Each element
  15026. of the 'parallel' is an 'expr_list' whose first operand is a 'reg'
  15027. and whose second operand is a 'const_int' representing the offset
  15028. (in bytes) into the structure at which the data in that register
  15029. corresponds. The first element may be null to indicate that the
  15030. structure is also passed partly in memory.
  15031. If LVAL is '(pc)', we have a jump instruction, and the
  15032. possibilities for X are very limited. It may be a 'label_ref'
  15033. expression (unconditional jump). It may be an 'if_then_else'
  15034. (conditional jump), in which case either the second or the third
  15035. operand must be '(pc)' (for the case which does not jump) and the
  15036. other of the two must be a 'label_ref' (for the case which does
  15037. jump). X may also be a 'mem' or '(plus:SI (pc) Y)', where Y may be
  15038. a 'reg' or a 'mem'; these unusual patterns are used to represent
  15039. jumps through branch tables.
  15040. If LVAL is neither '(cc0)' nor '(pc)', the mode of LVAL must not be
  15041. 'VOIDmode' and the mode of X must be valid for the mode of LVAL.
  15042. LVAL is customarily accessed with the 'SET_DEST' macro and X with
  15043. the 'SET_SRC' macro.
  15044. '(return)'
  15045. As the sole expression in a pattern, represents a return from the
  15046. current function, on machines where this can be done with one
  15047. instruction, such as VAXen. On machines where a multi-instruction
  15048. "epilogue" must be executed in order to return from the function,
  15049. returning is done by jumping to a label which precedes the
  15050. epilogue, and the 'return' expression code is never used.
  15051. Inside an 'if_then_else' expression, represents the value to be
  15052. placed in 'pc' to return to the caller.
  15053. Note that an insn pattern of '(return)' is logically equivalent to
  15054. '(set (pc) (return))', but the latter form is never used.
  15055. '(simple_return)'
  15056. Like '(return)', but truly represents only a function return, while
  15057. '(return)' may represent an insn that also performs other functions
  15058. of the function epilogue. Like '(return)', this may also occur in
  15059. conditional jumps.
  15060. '(call FUNCTION NARGS)'
  15061. Represents a function call. FUNCTION is a 'mem' expression whose
  15062. address is the address of the function to be called. NARGS is an
  15063. expression which can be used for two purposes: on some machines it
  15064. represents the number of bytes of stack argument; on others, it
  15065. represents the number of argument registers.
  15066. Each machine has a standard machine mode which FUNCTION must have.
  15067. The machine description defines macro 'FUNCTION_MODE' to expand
  15068. into the requisite mode name. The purpose of this mode is to
  15069. specify what kind of addressing is allowed, on machines where the
  15070. allowed kinds of addressing depend on the machine mode being
  15071. addressed.
  15072. '(clobber X)'
  15073. Represents the storing or possible storing of an unpredictable,
  15074. undescribed value into X, which must be a 'reg', 'scratch',
  15075. 'parallel' or 'mem' expression.
  15076. One place this is used is in string instructions that store
  15077. standard values into particular hard registers. It may not be
  15078. worth the trouble to describe the values that are stored, but it is
  15079. essential to inform the compiler that the registers will be
  15080. altered, lest it attempt to keep data in them across the string
  15081. instruction.
  15082. If X is '(mem:BLK (const_int 0))' or '(mem:BLK (scratch))', it
  15083. means that all memory locations must be presumed clobbered. If X
  15084. is a 'parallel', it has the same meaning as a 'parallel' in a 'set'
  15085. expression.
  15086. Note that the machine description classifies certain hard registers
  15087. as "call-clobbered". All function call instructions are assumed by
  15088. default to clobber these registers, so there is no need to use
  15089. 'clobber' expressions to indicate this fact. Also, each function
  15090. call is assumed to have the potential to alter any memory location,
  15091. unless the function is declared 'const'.
  15092. If the last group of expressions in a 'parallel' are each a
  15093. 'clobber' expression whose arguments are 'reg' or 'match_scratch'
  15094. (*note RTL Template::) expressions, the combiner phase can add the
  15095. appropriate 'clobber' expressions to an insn it has constructed
  15096. when doing so will cause a pattern to be matched.
  15097. This feature can be used, for example, on a machine that whose
  15098. multiply and add instructions don't use an MQ register but which
  15099. has an add-accumulate instruction that does clobber the MQ
  15100. register. Similarly, a combined instruction might require a
  15101. temporary register while the constituent instructions might not.
  15102. When a 'clobber' expression for a register appears inside a
  15103. 'parallel' with other side effects, the register allocator
  15104. guarantees that the register is unoccupied both before and after
  15105. that insn if it is a hard register clobber. For pseudo-register
  15106. clobber, the register allocator and the reload pass do not assign
  15107. the same hard register to the clobber and the input operands if
  15108. there is an insn alternative containing the '&' constraint (*note
  15109. Modifiers::) for the clobber and the hard register is in register
  15110. classes of the clobber in the alternative. You can clobber either
  15111. a specific hard register, a pseudo register, or a 'scratch'
  15112. expression; in the latter two cases, GCC will allocate a hard
  15113. register that is available there for use as a temporary.
  15114. For instructions that require a temporary register, you should use
  15115. 'scratch' instead of a pseudo-register because this will allow the
  15116. combiner phase to add the 'clobber' when required. You do this by
  15117. coding ('clobber' ('match_scratch' ...)). If you do clobber a
  15118. pseudo register, use one which appears nowhere else--generate a new
  15119. one each time. Otherwise, you may confuse CSE.
  15120. There is one other known use for clobbering a pseudo register in a
  15121. 'parallel': when one of the input operands of the insn is also
  15122. clobbered by the insn. In this case, using the same pseudo
  15123. register in the clobber and elsewhere in the insn produces the
  15124. expected results.
  15125. '(use X)'
  15126. Represents the use of the value of X. It indicates that the value
  15127. in X at this point in the program is needed, even though it may not
  15128. be apparent why this is so. Therefore, the compiler will not
  15129. attempt to delete previous instructions whose only effect is to
  15130. store a value in X. X must be a 'reg' expression.
  15131. In some situations, it may be tempting to add a 'use' of a register
  15132. in a 'parallel' to describe a situation where the value of a
  15133. special register will modify the behavior of the instruction. A
  15134. hypothetical example might be a pattern for an addition that can
  15135. either wrap around or use saturating addition depending on the
  15136. value of a special control register:
  15137. (parallel [(set (reg:SI 2) (unspec:SI [(reg:SI 3)
  15138. (reg:SI 4)] 0))
  15139. (use (reg:SI 1))])
  15140. This will not work, several of the optimizers only look at
  15141. expressions locally; it is very likely that if you have multiple
  15142. insns with identical inputs to the 'unspec', they will be optimized
  15143. away even if register 1 changes in between.
  15144. This means that 'use' can _only_ be used to describe that the
  15145. register is live. You should think twice before adding 'use'
  15146. statements, more often you will want to use 'unspec' instead. The
  15147. 'use' RTX is most commonly useful to describe that a fixed register
  15148. is implicitly used in an insn. It is also safe to use in patterns
  15149. where the compiler knows for other reasons that the result of the
  15150. whole pattern is variable, such as 'cpymemM' or 'call' patterns.
  15151. During the reload phase, an insn that has a 'use' as pattern can
  15152. carry a reg_equal note. These 'use' insns will be deleted before
  15153. the reload phase exits.
  15154. During the delayed branch scheduling phase, X may be an insn. This
  15155. indicates that X previously was located at this place in the code
  15156. and its data dependencies need to be taken into account. These
  15157. 'use' insns will be deleted before the delayed branch scheduling
  15158. phase exits.
  15159. '(parallel [X0 X1 ...])'
  15160. Represents several side effects performed in parallel. The square
  15161. brackets stand for a vector; the operand of 'parallel' is a vector
  15162. of expressions. X0, X1 and so on are individual side effect
  15163. expressions--expressions of code 'set', 'call', 'return',
  15164. 'simple_return', 'clobber' or 'use'.
  15165. "In parallel" means that first all the values used in the
  15166. individual side-effects are computed, and second all the actual
  15167. side-effects are performed. For example,
  15168. (parallel [(set (reg:SI 1) (mem:SI (reg:SI 1)))
  15169. (set (mem:SI (reg:SI 1)) (reg:SI 1))])
  15170. says unambiguously that the values of hard register 1 and the
  15171. memory location addressed by it are interchanged. In both places
  15172. where '(reg:SI 1)' appears as a memory address it refers to the
  15173. value in register 1 _before_ the execution of the insn.
  15174. It follows that it is _incorrect_ to use 'parallel' and expect the
  15175. result of one 'set' to be available for the next one. For example,
  15176. people sometimes attempt to represent a jump-if-zero instruction
  15177. this way:
  15178. (parallel [(set (cc0) (reg:SI 34))
  15179. (set (pc) (if_then_else
  15180. (eq (cc0) (const_int 0))
  15181. (label_ref ...)
  15182. (pc)))])
  15183. But this is incorrect, because it says that the jump condition
  15184. depends on the condition code value _before_ this instruction, not
  15185. on the new value that is set by this instruction.
  15186. Peephole optimization, which takes place together with final
  15187. assembly code output, can produce insns whose patterns consist of a
  15188. 'parallel' whose elements are the operands needed to output the
  15189. resulting assembler code--often 'reg', 'mem' or constant
  15190. expressions. This would not be well-formed RTL at any other stage
  15191. in compilation, but it is OK then because no further optimization
  15192. remains to be done. However, the definition of the macro
  15193. 'NOTICE_UPDATE_CC', if any, must deal with such insns if you define
  15194. any peephole optimizations.
  15195. '(cond_exec [COND EXPR])'
  15196. Represents a conditionally executed expression. The EXPR is
  15197. executed only if the COND is nonzero. The COND expression must not
  15198. have side-effects, but the EXPR may very well have side-effects.
  15199. '(sequence [INSNS ...])'
  15200. Represents a sequence of insns. If a 'sequence' appears in the
  15201. chain of insns, then each of the INSNS that appears in the sequence
  15202. must be suitable for appearing in the chain of insns, i.e. must
  15203. satisfy the 'INSN_P' predicate.
  15204. After delay-slot scheduling is completed, an insn and all the insns
  15205. that reside in its delay slots are grouped together into a
  15206. 'sequence'. The insn requiring the delay slot is the first insn in
  15207. the vector; subsequent insns are to be placed in the delay slot.
  15208. 'INSN_ANNULLED_BRANCH_P' is set on an insn in a delay slot to
  15209. indicate that a branch insn should be used that will conditionally
  15210. annul the effect of the insns in the delay slots. In such a case,
  15211. 'INSN_FROM_TARGET_P' indicates that the insn is from the target of
  15212. the branch and should be executed only if the branch is taken;
  15213. otherwise the insn should be executed only if the branch is not
  15214. taken. *Note Delay Slots::.
  15215. Some back ends also use 'sequence' objects for purposes other than
  15216. delay-slot groups. This is not supported in the common parts of
  15217. the compiler, which treat such sequences as delay-slot groups.
  15218. DWARF2 Call Frame Address (CFA) adjustments are sometimes also
  15219. expressed using 'sequence' objects as the value of a
  15220. 'RTX_FRAME_RELATED_P' note. This only happens if the CFA
  15221. adjustments cannot be easily derived from the pattern of the
  15222. instruction to which the note is attached. In such cases, the
  15223. value of the note is used instead of best-guesing the semantics of
  15224. the instruction. The back end can attach notes containing a
  15225. 'sequence' of 'set' patterns that express the effect of the parent
  15226. instruction.
  15227. These expression codes appear in place of a side effect, as the body of
  15228. an insn, though strictly speaking they do not always describe side
  15229. effects as such:
  15230. '(asm_input S)'
  15231. Represents literal assembler code as described by the string S.
  15232. '(unspec [OPERANDS ...] INDEX)'
  15233. '(unspec_volatile [OPERANDS ...] INDEX)'
  15234. Represents a machine-specific operation on OPERANDS. INDEX selects
  15235. between multiple machine-specific operations. 'unspec_volatile' is
  15236. used for volatile operations and operations that may trap; 'unspec'
  15237. is used for other operations.
  15238. These codes may appear inside a 'pattern' of an insn, inside a
  15239. 'parallel', or inside an expression.
  15240. '(addr_vec:M [LR0 LR1 ...])'
  15241. Represents a table of jump addresses. The vector elements LR0,
  15242. etc., are 'label_ref' expressions. The mode M specifies how much
  15243. space is given to each address; normally M would be 'Pmode'.
  15244. '(addr_diff_vec:M BASE [LR0 LR1 ...] MIN MAX FLAGS)'
  15245. Represents a table of jump addresses expressed as offsets from
  15246. BASE. The vector elements LR0, etc., are 'label_ref' expressions
  15247. and so is BASE. The mode M specifies how much space is given to
  15248. each address-difference. MIN and MAX are set up by branch
  15249. shortening and hold a label with a minimum and a maximum address,
  15250. respectively. FLAGS indicates the relative position of BASE, MIN
  15251. and MAX to the containing insn and of MIN and MAX to BASE. See
  15252. rtl.def for details.
  15253. '(prefetch:M ADDR RW LOCALITY)'
  15254. Represents prefetch of memory at address ADDR. Operand RW is 1 if
  15255. the prefetch is for data to be written, 0 otherwise; targets that
  15256. do not support write prefetches should treat this as a normal
  15257. prefetch. Operand LOCALITY specifies the amount of temporal
  15258. locality; 0 if there is none or 1, 2, or 3 for increasing levels of
  15259. temporal locality; targets that do not support locality hints
  15260. should ignore this.
  15261. This insn is used to minimize cache-miss latency by moving data
  15262. into a cache before it is accessed. It should use only
  15263. non-faulting data prefetch instructions.
  15264. 
  15265. File: gccint.info, Node: Incdec, Next: Assembler, Prev: Side Effects, Up: RTL
  15266. 14.16 Embedded Side-Effects on Addresses
  15267. ========================================
  15268. Six special side-effect expression codes appear as memory addresses.
  15269. '(pre_dec:M X)'
  15270. Represents the side effect of decrementing X by a standard amount
  15271. and represents also the value that X has after being decremented.
  15272. X must be a 'reg' or 'mem', but most machines allow only a 'reg'.
  15273. M must be the machine mode for pointers on the machine in use. The
  15274. amount X is decremented by is the length in bytes of the machine
  15275. mode of the containing memory reference of which this expression
  15276. serves as the address. Here is an example of its use:
  15277. (mem:DF (pre_dec:SI (reg:SI 39)))
  15278. This says to decrement pseudo register 39 by the length of a
  15279. 'DFmode' value and use the result to address a 'DFmode' value.
  15280. '(pre_inc:M X)'
  15281. Similar, but specifies incrementing X instead of decrementing it.
  15282. '(post_dec:M X)'
  15283. Represents the same side effect as 'pre_dec' but a different value.
  15284. The value represented here is the value X has before being
  15285. decremented.
  15286. '(post_inc:M X)'
  15287. Similar, but specifies incrementing X instead of decrementing it.
  15288. '(post_modify:M X Y)'
  15289. Represents the side effect of setting X to Y and represents X
  15290. before X is modified. X must be a 'reg' or 'mem', but most
  15291. machines allow only a 'reg'. M must be the machine mode for
  15292. pointers on the machine in use.
  15293. The expression Y must be one of three forms: '(plus:M X Z)',
  15294. '(minus:M X Z)', or '(plus:M X I)', where Z is an index register
  15295. and I is a constant.
  15296. Here is an example of its use:
  15297. (mem:SF (post_modify:SI (reg:SI 42) (plus (reg:SI 42)
  15298. (reg:SI 48))))
  15299. This says to modify pseudo register 42 by adding the contents of
  15300. pseudo register 48 to it, after the use of what ever 42 points to.
  15301. '(pre_modify:M X EXPR)'
  15302. Similar except side effects happen before the use.
  15303. These embedded side effect expressions must be used with care.
  15304. Instruction patterns may not use them. Until the 'flow' pass of the
  15305. compiler, they may occur only to represent pushes onto the stack. The
  15306. 'flow' pass finds cases where registers are incremented or decremented
  15307. in one instruction and used as an address shortly before or after; these
  15308. cases are then transformed to use pre- or post-increment or -decrement.
  15309. If a register used as the operand of these expressions is used in
  15310. another address in an insn, the original value of the register is used.
  15311. Uses of the register outside of an address are not permitted within the
  15312. same insn as a use in an embedded side effect expression because such
  15313. insns behave differently on different machines and hence must be treated
  15314. as ambiguous and disallowed.
  15315. An instruction that can be represented with an embedded side effect
  15316. could also be represented using 'parallel' containing an additional
  15317. 'set' to describe how the address register is altered. This is not done
  15318. because machines that allow these operations at all typically allow them
  15319. wherever a memory address is called for. Describing them as additional
  15320. parallel stores would require doubling the number of entries in the
  15321. machine description.
  15322. 
  15323. File: gccint.info, Node: Assembler, Next: Debug Information, Prev: Incdec, Up: RTL
  15324. 14.17 Assembler Instructions as Expressions
  15325. ===========================================
  15326. The RTX code 'asm_operands' represents a value produced by a
  15327. user-specified assembler instruction. It is used to represent an 'asm'
  15328. statement with arguments. An 'asm' statement with a single output
  15329. operand, like this:
  15330. asm ("foo %1,%2,%0" : "=a" (outputvar) : "g" (x + y), "di" (*z));
  15331. is represented using a single 'asm_operands' RTX which represents the
  15332. value that is stored in 'outputvar':
  15333. (set RTX-FOR-OUTPUTVAR
  15334. (asm_operands "foo %1,%2,%0" "a" 0
  15335. [RTX-FOR-ADDITION-RESULT RTX-FOR-*Z]
  15336. [(asm_input:M1 "g")
  15337. (asm_input:M2 "di")]))
  15338. Here the operands of the 'asm_operands' RTX are the assembler template
  15339. string, the output-operand's constraint, the index-number of the output
  15340. operand among the output operands specified, a vector of input operand
  15341. RTX's, and a vector of input-operand modes and constraints. The mode M1
  15342. is the mode of the sum 'x+y'; M2 is that of '*z'.
  15343. When an 'asm' statement has multiple output values, its insn has
  15344. several such 'set' RTX's inside of a 'parallel'. Each 'set' contains an
  15345. 'asm_operands'; all of these share the same assembler template and
  15346. vectors, but each contains the constraint for the respective output
  15347. operand. They are also distinguished by the output-operand index
  15348. number, which is 0, 1, ... for successive output operands.
  15349. 
  15350. File: gccint.info, Node: Debug Information, Next: Insns, Prev: Assembler, Up: RTL
  15351. 14.18 Variable Location Debug Information in RTL
  15352. ================================================
  15353. Variable tracking relies on 'MEM_EXPR' and 'REG_EXPR' annotations to
  15354. determine what user variables memory and register references refer to.
  15355. Variable tracking at assignments uses these notes only when they refer
  15356. to variables that live at fixed locations (e.g., addressable variables,
  15357. global non-automatic variables). For variables whose location may vary,
  15358. it relies on the following types of notes.
  15359. '(var_location:MODE VAR EXP STAT)'
  15360. Binds variable 'var', a tree, to value EXP, an RTL expression. It
  15361. appears only in 'NOTE_INSN_VAR_LOCATION' and 'DEBUG_INSN's, with
  15362. slightly different meanings. MODE, if present, represents the mode
  15363. of EXP, which is useful if it is a modeless expression. STAT is
  15364. only meaningful in notes, indicating whether the variable is known
  15365. to be initialized or uninitialized.
  15366. '(debug_expr:MODE DECL)'
  15367. Stands for the value bound to the 'DEBUG_EXPR_DECL' DECL, that
  15368. points back to it, within value expressions in 'VAR_LOCATION'
  15369. nodes.
  15370. '(debug_implicit_ptr:MODE DECL)'
  15371. Stands for the location of a DECL that is no longer addressable.
  15372. '(entry_value:MODE DECL)'
  15373. Stands for the value a DECL had at the entry point of the
  15374. containing function.
  15375. '(debug_parameter_ref:MODE DECL)'
  15376. Refers to a parameter that was completely optimized out.
  15377. '(debug_marker:MODE)'
  15378. Marks a program location. With 'VOIDmode', it stands for the
  15379. beginning of a statement, a recommended inspection point logically
  15380. after all prior side effects, and before any subsequent side
  15381. effects. With 'BLKmode', it indicates an inline entry point: the
  15382. lexical block encoded in the 'INSN_LOCATION' is the enclosing block
  15383. that encloses the inlined function.
  15384. 
  15385. File: gccint.info, Node: Insns, Next: Calls, Prev: Debug Information, Up: RTL
  15386. 14.19 Insns
  15387. ===========
  15388. The RTL representation of the code for a function is a doubly-linked
  15389. chain of objects called "insns". Insns are expressions with special
  15390. codes that are used for no other purpose. Some insns are actual
  15391. instructions; others represent dispatch tables for 'switch' statements;
  15392. others represent labels to jump to or various sorts of declarative
  15393. information.
  15394. In addition to its own specific data, each insn must have a unique
  15395. id-number that distinguishes it from all other insns in the current
  15396. function (after delayed branch scheduling, copies of an insn with the
  15397. same id-number may be present in multiple places in a function, but
  15398. these copies will always be identical and will only appear inside a
  15399. 'sequence'), and chain pointers to the preceding and following insns.
  15400. These three fields occupy the same position in every insn, independent
  15401. of the expression code of the insn. They could be accessed with 'XEXP'
  15402. and 'XINT', but instead three special macros are always used:
  15403. 'INSN_UID (I)'
  15404. Accesses the unique id of insn I.
  15405. 'PREV_INSN (I)'
  15406. Accesses the chain pointer to the insn preceding I. If I is the
  15407. first insn, this is a null pointer.
  15408. 'NEXT_INSN (I)'
  15409. Accesses the chain pointer to the insn following I. If I is the
  15410. last insn, this is a null pointer.
  15411. The first insn in the chain is obtained by calling 'get_insns'; the
  15412. last insn is the result of calling 'get_last_insn'. Within the chain
  15413. delimited by these insns, the 'NEXT_INSN' and 'PREV_INSN' pointers must
  15414. always correspond: if INSN is not the first insn,
  15415. NEXT_INSN (PREV_INSN (INSN)) == INSN
  15416. is always true and if INSN is not the last insn,
  15417. PREV_INSN (NEXT_INSN (INSN)) == INSN
  15418. is always true.
  15419. After delay slot scheduling, some of the insns in the chain might be
  15420. 'sequence' expressions, which contain a vector of insns. The value of
  15421. 'NEXT_INSN' in all but the last of these insns is the next insn in the
  15422. vector; the value of 'NEXT_INSN' of the last insn in the vector is the
  15423. same as the value of 'NEXT_INSN' for the 'sequence' in which it is
  15424. contained. Similar rules apply for 'PREV_INSN'.
  15425. This means that the above invariants are not necessarily true for insns
  15426. inside 'sequence' expressions. Specifically, if INSN is the first insn
  15427. in a 'sequence', 'NEXT_INSN (PREV_INSN (INSN))' is the insn containing
  15428. the 'sequence' expression, as is the value of 'PREV_INSN (NEXT_INSN
  15429. (INSN))' if INSN is the last insn in the 'sequence' expression. You can
  15430. use these expressions to find the containing 'sequence' expression.
  15431. Every insn has one of the following expression codes:
  15432. 'insn'
  15433. The expression code 'insn' is used for instructions that do not
  15434. jump and do not do function calls. 'sequence' expressions are
  15435. always contained in insns with code 'insn' even if one of those
  15436. insns should jump or do function calls.
  15437. Insns with code 'insn' have four additional fields beyond the three
  15438. mandatory ones listed above. These four are described in a table
  15439. below.
  15440. 'jump_insn'
  15441. The expression code 'jump_insn' is used for instructions that may
  15442. jump (or, more generally, may contain 'label_ref' expressions to
  15443. which 'pc' can be set in that instruction). If there is an
  15444. instruction to return from the current function, it is recorded as
  15445. a 'jump_insn'.
  15446. 'jump_insn' insns have the same extra fields as 'insn' insns,
  15447. accessed in the same way and in addition contain a field
  15448. 'JUMP_LABEL' which is defined once jump optimization has completed.
  15449. For simple conditional and unconditional jumps, this field contains
  15450. the 'code_label' to which this insn will (possibly conditionally)
  15451. branch. In a more complex jump, 'JUMP_LABEL' records one of the
  15452. labels that the insn refers to; other jump target labels are
  15453. recorded as 'REG_LABEL_TARGET' notes. The exception is 'addr_vec'
  15454. and 'addr_diff_vec', where 'JUMP_LABEL' is 'NULL_RTX' and the only
  15455. way to find the labels is to scan the entire body of the insn.
  15456. Return insns count as jumps, but their 'JUMP_LABEL' is 'RETURN' or
  15457. 'SIMPLE_RETURN'.
  15458. 'call_insn'
  15459. The expression code 'call_insn' is used for instructions that may
  15460. do function calls. It is important to distinguish these
  15461. instructions because they imply that certain registers and memory
  15462. locations may be altered unpredictably.
  15463. 'call_insn' insns have the same extra fields as 'insn' insns,
  15464. accessed in the same way and in addition contain a field
  15465. 'CALL_INSN_FUNCTION_USAGE', which contains a list (chain of
  15466. 'expr_list' expressions) containing 'use', 'clobber' and sometimes
  15467. 'set' expressions that denote hard registers and 'mem's used or
  15468. clobbered by the called function.
  15469. A 'mem' generally points to a stack slot in which arguments passed
  15470. to the libcall by reference (*note TARGET_PASS_BY_REFERENCE:
  15471. Register Arguments.) are stored. If the argument is caller-copied
  15472. (*note TARGET_CALLEE_COPIES: Register Arguments.), the stack slot
  15473. will be mentioned in 'clobber' and 'use' entries; if it's
  15474. callee-copied, only a 'use' will appear, and the 'mem' may point to
  15475. addresses that are not stack slots.
  15476. Registers occurring inside a 'clobber' in this list augment
  15477. registers specified in 'CALL_USED_REGISTERS' (*note Register
  15478. Basics::).
  15479. If the list contains a 'set' involving two registers, it indicates
  15480. that the function returns one of its arguments. Such a 'set' may
  15481. look like a no-op if the same register holds the argument and the
  15482. return value.
  15483. 'code_label'
  15484. A 'code_label' insn represents a label that a jump insn can jump
  15485. to. It contains two special fields of data in addition to the
  15486. three standard ones. 'CODE_LABEL_NUMBER' is used to hold the
  15487. "label number", a number that identifies this label uniquely among
  15488. all the labels in the compilation (not just in the current
  15489. function). Ultimately, the label is represented in the assembler
  15490. output as an assembler label, usually of the form 'LN' where N is
  15491. the label number.
  15492. When a 'code_label' appears in an RTL expression, it normally
  15493. appears within a 'label_ref' which represents the address of the
  15494. label, as a number.
  15495. Besides as a 'code_label', a label can also be represented as a
  15496. 'note' of type 'NOTE_INSN_DELETED_LABEL'.
  15497. The field 'LABEL_NUSES' is only defined once the jump optimization
  15498. phase is completed. It contains the number of times this label is
  15499. referenced in the current function.
  15500. The field 'LABEL_KIND' differentiates four different types of
  15501. labels: 'LABEL_NORMAL', 'LABEL_STATIC_ENTRY', 'LABEL_GLOBAL_ENTRY',
  15502. and 'LABEL_WEAK_ENTRY'. The only labels that do not have type
  15503. 'LABEL_NORMAL' are "alternate entry points" to the current
  15504. function. These may be static (visible only in the containing
  15505. translation unit), global (exposed to all translation units), or
  15506. weak (global, but can be overridden by another symbol with the same
  15507. name).
  15508. Much of the compiler treats all four kinds of label identically.
  15509. Some of it needs to know whether or not a label is an alternate
  15510. entry point; for this purpose, the macro 'LABEL_ALT_ENTRY_P' is
  15511. provided. It is equivalent to testing whether 'LABEL_KIND (label)
  15512. == LABEL_NORMAL'. The only place that cares about the distinction
  15513. between static, global, and weak alternate entry points, besides
  15514. the front-end code that creates them, is the function
  15515. 'output_alternate_entry_point', in 'final.c'.
  15516. To set the kind of a label, use the 'SET_LABEL_KIND' macro.
  15517. 'jump_table_data'
  15518. A 'jump_table_data' insn is a placeholder for the jump-table data
  15519. of a 'casesi' or 'tablejump' insn. They are placed after a
  15520. 'tablejump_p' insn. A 'jump_table_data' insn is not part o a basic
  15521. blockm but it is associated with the basic block that ends with the
  15522. 'tablejump_p' insn. The 'PATTERN' of a 'jump_table_data' is always
  15523. either an 'addr_vec' or an 'addr_diff_vec', and a 'jump_table_data'
  15524. insn is always preceded by a 'code_label'. The 'tablejump_p' insn
  15525. refers to that 'code_label' via its 'JUMP_LABEL'.
  15526. 'barrier'
  15527. Barriers are placed in the instruction stream when control cannot
  15528. flow past them. They are placed after unconditional jump
  15529. instructions to indicate that the jumps are unconditional and after
  15530. calls to 'volatile' functions, which do not return (e.g., 'exit').
  15531. They contain no information beyond the three standard fields.
  15532. 'note'
  15533. 'note' insns are used to represent additional debugging and
  15534. declarative information. They contain two nonstandard fields, an
  15535. integer which is accessed with the macro 'NOTE_LINE_NUMBER' and a
  15536. string accessed with 'NOTE_SOURCE_FILE'.
  15537. If 'NOTE_LINE_NUMBER' is positive, the note represents the position
  15538. of a source line and 'NOTE_SOURCE_FILE' is the source file name
  15539. that the line came from. These notes control generation of line
  15540. number data in the assembler output.
  15541. Otherwise, 'NOTE_LINE_NUMBER' is not really a line number but a
  15542. code with one of the following values (and 'NOTE_SOURCE_FILE' must
  15543. contain a null pointer):
  15544. 'NOTE_INSN_DELETED'
  15545. Such a note is completely ignorable. Some passes of the
  15546. compiler delete insns by altering them into notes of this
  15547. kind.
  15548. 'NOTE_INSN_DELETED_LABEL'
  15549. This marks what used to be a 'code_label', but was not used
  15550. for other purposes than taking its address and was transformed
  15551. to mark that no code jumps to it.
  15552. 'NOTE_INSN_BLOCK_BEG'
  15553. 'NOTE_INSN_BLOCK_END'
  15554. These types of notes indicate the position of the beginning
  15555. and end of a level of scoping of variable names. They control
  15556. the output of debugging information.
  15557. 'NOTE_INSN_EH_REGION_BEG'
  15558. 'NOTE_INSN_EH_REGION_END'
  15559. These types of notes indicate the position of the beginning
  15560. and end of a level of scoping for exception handling.
  15561. 'NOTE_EH_HANDLER' identifies which region is associated with
  15562. these notes.
  15563. 'NOTE_INSN_FUNCTION_BEG'
  15564. Appears at the start of the function body, after the function
  15565. prologue.
  15566. 'NOTE_INSN_VAR_LOCATION'
  15567. This note is used to generate variable location debugging
  15568. information. It indicates that the user variable in its
  15569. 'VAR_LOCATION' operand is at the location given in the RTL
  15570. expression, or holds a value that can be computed by
  15571. evaluating the RTL expression from that static point in the
  15572. program up to the next such note for the same user variable.
  15573. 'NOTE_INSN_BEGIN_STMT'
  15574. This note is used to generate 'is_stmt' markers in line number
  15575. debugging information. It indicates the beginning of a user
  15576. statement.
  15577. 'NOTE_INSN_INLINE_ENTRY'
  15578. This note is used to generate 'entry_pc' for inlined
  15579. subroutines in debugging information. It indicates an
  15580. inspection point at which all arguments for the inlined
  15581. function have been bound, and before its first statement.
  15582. These codes are printed symbolically when they appear in debugging
  15583. dumps.
  15584. 'debug_insn'
  15585. The expression code 'debug_insn' is used for pseudo-instructions
  15586. that hold debugging information for variable tracking at
  15587. assignments (see '-fvar-tracking-assignments' option). They are
  15588. the RTL representation of 'GIMPLE_DEBUG' statements (*note
  15589. GIMPLE_DEBUG::), with a 'VAR_LOCATION' operand that binds a user
  15590. variable tree to an RTL representation of the 'value' in the
  15591. corresponding statement. A 'DEBUG_EXPR' in it stands for the value
  15592. bound to the corresponding 'DEBUG_EXPR_DECL'.
  15593. 'GIMPLE_DEBUG_BEGIN_STMT' and 'GIMPLE_DEBUG_INLINE_ENTRY' are
  15594. expanded to RTL as a 'DEBUG_INSN' with a 'DEBUG_MARKER' 'PATTERN';
  15595. the difference is the RTL mode: the former's 'DEBUG_MARKER' is
  15596. 'VOIDmode', whereas the latter is 'BLKmode'; information about the
  15597. inlined function can be taken from the lexical block encoded in the
  15598. 'INSN_LOCATION'. These 'DEBUG_INSN's, that do not carry
  15599. 'VAR_LOCATION' information, just 'DEBUG_MARKER's, can be detected
  15600. by testing 'DEBUG_MARKER_INSN_P', whereas those that do can be
  15601. recognized as 'DEBUG_BIND_INSN_P'.
  15602. Throughout optimization passes, 'DEBUG_INSN's are not reordered
  15603. with respect to each other, particularly during scheduling.
  15604. Binding information is kept in pseudo-instruction form, so that,
  15605. unlike notes, it gets the same treatment and adjustments that
  15606. regular instructions would. It is the variable tracking pass that
  15607. turns these pseudo-instructions into 'NOTE_INSN_VAR_LOCATION',
  15608. 'NOTE_INSN_BEGIN_STMT' and 'NOTE_INSN_INLINE_ENTRY' notes,
  15609. analyzing control flow, value equivalences and changes to registers
  15610. and memory referenced in value expressions, propagating the values
  15611. of debug temporaries and determining expressions that can be used
  15612. to compute the value of each user variable at as many points
  15613. (ranges, actually) in the program as possible.
  15614. Unlike 'NOTE_INSN_VAR_LOCATION', the value expression in an
  15615. 'INSN_VAR_LOCATION' denotes a value at that specific point in the
  15616. program, rather than an expression that can be evaluated at any
  15617. later point before an overriding 'VAR_LOCATION' is encountered.
  15618. E.g., if a user variable is bound to a 'REG' and then a subsequent
  15619. insn modifies the 'REG', the note location would keep mapping the
  15620. user variable to the register across the insn, whereas the insn
  15621. location would keep the variable bound to the value, so that the
  15622. variable tracking pass would emit another location note for the
  15623. variable at the point in which the register is modified.
  15624. The machine mode of an insn is normally 'VOIDmode', but some phases use
  15625. the mode for various purposes.
  15626. The common subexpression elimination pass sets the mode of an insn to
  15627. 'QImode' when it is the first insn in a block that has already been
  15628. processed.
  15629. The second Haifa scheduling pass, for targets that can multiple issue,
  15630. sets the mode of an insn to 'TImode' when it is believed that the
  15631. instruction begins an issue group. That is, when the instruction cannot
  15632. issue simultaneously with the previous. This may be relied on by later
  15633. passes, in particular machine-dependent reorg.
  15634. Here is a table of the extra fields of 'insn', 'jump_insn' and
  15635. 'call_insn' insns:
  15636. 'PATTERN (I)'
  15637. An expression for the side effect performed by this insn. This
  15638. must be one of the following codes: 'set', 'call', 'use',
  15639. 'clobber', 'return', 'simple_return', 'asm_input', 'asm_output',
  15640. 'addr_vec', 'addr_diff_vec', 'trap_if', 'unspec',
  15641. 'unspec_volatile', 'parallel', 'cond_exec', or 'sequence'. If it
  15642. is a 'parallel', each element of the 'parallel' must be one these
  15643. codes, except that 'parallel' expressions cannot be nested and
  15644. 'addr_vec' and 'addr_diff_vec' are not permitted inside a
  15645. 'parallel' expression.
  15646. 'INSN_CODE (I)'
  15647. An integer that says which pattern in the machine description
  15648. matches this insn, or -1 if the matching has not yet been
  15649. attempted.
  15650. Such matching is never attempted and this field remains -1 on an
  15651. insn whose pattern consists of a single 'use', 'clobber',
  15652. 'asm_input', 'addr_vec' or 'addr_diff_vec' expression.
  15653. Matching is also never attempted on insns that result from an 'asm'
  15654. statement. These contain at least one 'asm_operands' expression.
  15655. The function 'asm_noperands' returns a non-negative value for such
  15656. insns.
  15657. In the debugging output, this field is printed as a number followed
  15658. by a symbolic representation that locates the pattern in the 'md'
  15659. file as some small positive or negative offset from a named
  15660. pattern.
  15661. 'LOG_LINKS (I)'
  15662. A list (chain of 'insn_list' expressions) giving information about
  15663. dependencies between instructions within a basic block. Neither a
  15664. jump nor a label may come between the related insns. These are
  15665. only used by the schedulers and by combine. This is a deprecated
  15666. data structure. Def-use and use-def chains are now preferred.
  15667. 'REG_NOTES (I)'
  15668. A list (chain of 'expr_list', 'insn_list' and 'int_list'
  15669. expressions) giving miscellaneous information about the insn. It
  15670. is often information pertaining to the registers used in this insn.
  15671. The 'LOG_LINKS' field of an insn is a chain of 'insn_list' expressions.
  15672. Each of these has two operands: the first is an insn, and the second is
  15673. another 'insn_list' expression (the next one in the chain). The last
  15674. 'insn_list' in the chain has a null pointer as second operand. The
  15675. significant thing about the chain is which insns appear in it (as first
  15676. operands of 'insn_list' expressions). Their order is not significant.
  15677. This list is originally set up by the flow analysis pass; it is a null
  15678. pointer until then. Flow only adds links for those data dependencies
  15679. which can be used for instruction combination. For each insn, the flow
  15680. analysis pass adds a link to insns which store into registers values
  15681. that are used for the first time in this insn.
  15682. The 'REG_NOTES' field of an insn is a chain similar to the 'LOG_LINKS'
  15683. field but it includes 'expr_list' and 'int_list' expressions in addition
  15684. to 'insn_list' expressions. There are several kinds of register notes,
  15685. which are distinguished by the machine mode, which in a register note is
  15686. really understood as being an 'enum reg_note'. The first operand OP of
  15687. the note is data whose meaning depends on the kind of note.
  15688. The macro 'REG_NOTE_KIND (X)' returns the kind of register note. Its
  15689. counterpart, the macro 'PUT_REG_NOTE_KIND (X, NEWKIND)' sets the
  15690. register note type of X to be NEWKIND.
  15691. Register notes are of three classes: They may say something about an
  15692. input to an insn, they may say something about an output of an insn, or
  15693. they may create a linkage between two insns. There are also a set of
  15694. values that are only used in 'LOG_LINKS'.
  15695. These register notes annotate inputs to an insn:
  15696. 'REG_DEAD'
  15697. The value in OP dies in this insn; that is to say, altering the
  15698. value immediately after this insn would not affect the future
  15699. behavior of the program.
  15700. It does not follow that the register OP has no useful value after
  15701. this insn since OP is not necessarily modified by this insn.
  15702. Rather, no subsequent instruction uses the contents of OP.
  15703. 'REG_UNUSED'
  15704. The register OP being set by this insn will not be used in a
  15705. subsequent insn. This differs from a 'REG_DEAD' note, which
  15706. indicates that the value in an input will not be used subsequently.
  15707. These two notes are independent; both may be present for the same
  15708. register.
  15709. 'REG_INC'
  15710. The register OP is incremented (or decremented; at this level there
  15711. is no distinction) by an embedded side effect inside this insn.
  15712. This means it appears in a 'post_inc', 'pre_inc', 'post_dec' or
  15713. 'pre_dec' expression.
  15714. 'REG_NONNEG'
  15715. The register OP is known to have a nonnegative value when this insn
  15716. is reached. This is used by special looping instructions that
  15717. terminate when the register goes negative.
  15718. The 'REG_NONNEG' note is added only to 'doloop_end' insns, if its
  15719. pattern uses a 'ge' condition.
  15720. 'REG_LABEL_OPERAND'
  15721. This insn uses OP, a 'code_label' or a 'note' of type
  15722. 'NOTE_INSN_DELETED_LABEL', but is not a 'jump_insn', or it is a
  15723. 'jump_insn' that refers to the operand as an ordinary operand. The
  15724. label may still eventually be a jump target, but if so in an
  15725. indirect jump in a subsequent insn. The presence of this note
  15726. allows jump optimization to be aware that OP is, in fact, being
  15727. used, and flow optimization to build an accurate flow graph.
  15728. 'REG_LABEL_TARGET'
  15729. This insn is a 'jump_insn' but not an 'addr_vec' or
  15730. 'addr_diff_vec'. It uses OP, a 'code_label' as a direct or
  15731. indirect jump target. Its purpose is similar to that of
  15732. 'REG_LABEL_OPERAND'. This note is only present if the insn has
  15733. multiple targets; the last label in the insn (in the highest
  15734. numbered insn-field) goes into the 'JUMP_LABEL' field and does not
  15735. have a 'REG_LABEL_TARGET' note. *Note JUMP_LABEL: Insns.
  15736. 'REG_SETJMP'
  15737. Appears attached to each 'CALL_INSN' to 'setjmp' or a related
  15738. function.
  15739. The following notes describe attributes of outputs of an insn:
  15740. 'REG_EQUIV'
  15741. 'REG_EQUAL'
  15742. This note is only valid on an insn that sets only one register and
  15743. indicates that that register will be equal to OP at run time; the
  15744. scope of this equivalence differs between the two types of notes.
  15745. The value which the insn explicitly copies into the register may
  15746. look different from OP, but they will be equal at run time. If the
  15747. output of the single 'set' is a 'strict_low_part' or 'zero_extract'
  15748. expression, the note refers to the register that is contained in
  15749. its first operand.
  15750. For 'REG_EQUIV', the register is equivalent to OP throughout the
  15751. entire function, and could validly be replaced in all its
  15752. occurrences by OP. ("Validly" here refers to the data flow of the
  15753. program; simple replacement may make some insns invalid.) For
  15754. example, when a constant is loaded into a register that is never
  15755. assigned any other value, this kind of note is used.
  15756. When a parameter is copied into a pseudo-register at entry to a
  15757. function, a note of this kind records that the register is
  15758. equivalent to the stack slot where the parameter was passed.
  15759. Although in this case the register may be set by other insns, it is
  15760. still valid to replace the register by the stack slot throughout
  15761. the function.
  15762. A 'REG_EQUIV' note is also used on an instruction which copies a
  15763. register parameter into a pseudo-register at entry to a function,
  15764. if there is a stack slot where that parameter could be stored.
  15765. Although other insns may set the pseudo-register, it is valid for
  15766. the compiler to replace the pseudo-register by stack slot
  15767. throughout the function, provided the compiler ensures that the
  15768. stack slot is properly initialized by making the replacement in the
  15769. initial copy instruction as well. This is used on machines for
  15770. which the calling convention allocates stack space for register
  15771. parameters. See 'REG_PARM_STACK_SPACE' in *note Stack Arguments::.
  15772. In the case of 'REG_EQUAL', the register that is set by this insn
  15773. will be equal to OP at run time at the end of this insn but not
  15774. necessarily elsewhere in the function. In this case, OP is
  15775. typically an arithmetic expression. For example, when a sequence
  15776. of insns such as a library call is used to perform an arithmetic
  15777. operation, this kind of note is attached to the insn that produces
  15778. or copies the final value.
  15779. These two notes are used in different ways by the compiler passes.
  15780. 'REG_EQUAL' is used by passes prior to register allocation (such as
  15781. common subexpression elimination and loop optimization) to tell
  15782. them how to think of that value. 'REG_EQUIV' notes are used by
  15783. register allocation to indicate that there is an available
  15784. substitute expression (either a constant or a 'mem' expression for
  15785. the location of a parameter on the stack) that may be used in place
  15786. of a register if insufficient registers are available.
  15787. Except for stack homes for parameters, which are indicated by a
  15788. 'REG_EQUIV' note and are not useful to the early optimization
  15789. passes and pseudo registers that are equivalent to a memory
  15790. location throughout their entire life, which is not detected until
  15791. later in the compilation, all equivalences are initially indicated
  15792. by an attached 'REG_EQUAL' note. In the early stages of register
  15793. allocation, a 'REG_EQUAL' note is changed into a 'REG_EQUIV' note
  15794. if OP is a constant and the insn represents the only set of its
  15795. destination register.
  15796. Thus, compiler passes prior to register allocation need only check
  15797. for 'REG_EQUAL' notes and passes subsequent to register allocation
  15798. need only check for 'REG_EQUIV' notes.
  15799. These notes describe linkages between insns. They occur in pairs: one
  15800. insn has one of a pair of notes that points to a second insn, which has
  15801. the inverse note pointing back to the first insn.
  15802. 'REG_CC_SETTER'
  15803. 'REG_CC_USER'
  15804. On machines that use 'cc0', the insns which set and use 'cc0' set
  15805. and use 'cc0' are adjacent. However, when branch delay slot
  15806. filling is done, this may no longer be true. In this case a
  15807. 'REG_CC_USER' note will be placed on the insn setting 'cc0' to
  15808. point to the insn using 'cc0' and a 'REG_CC_SETTER' note will be
  15809. placed on the insn using 'cc0' to point to the insn setting 'cc0'.
  15810. These values are only used in the 'LOG_LINKS' field, and indicate the
  15811. type of dependency that each link represents. Links which indicate a
  15812. data dependence (a read after write dependence) do not use any code,
  15813. they simply have mode 'VOIDmode', and are printed without any
  15814. descriptive text.
  15815. 'REG_DEP_TRUE'
  15816. This indicates a true dependence (a read after write dependence).
  15817. 'REG_DEP_OUTPUT'
  15818. This indicates an output dependence (a write after write
  15819. dependence).
  15820. 'REG_DEP_ANTI'
  15821. This indicates an anti dependence (a write after read dependence).
  15822. These notes describe information gathered from gcov profile data. They
  15823. are stored in the 'REG_NOTES' field of an insn.
  15824. 'REG_BR_PROB'
  15825. This is used to specify the ratio of branches to non-branches of a
  15826. branch insn according to the profile data. The note is represented
  15827. as an 'int_list' expression whose integer value is an encoding of
  15828. 'profile_probability' type. 'profile_probability' provide member
  15829. function 'from_reg_br_prob_note' and 'to_reg_br_prob_note' to
  15830. extract and store the probability into the RTL encoding.
  15831. 'REG_BR_PRED'
  15832. These notes are found in JUMP insns after delayed branch scheduling
  15833. has taken place. They indicate both the direction and the
  15834. likelihood of the JUMP. The format is a bitmask of ATTR_FLAG_*
  15835. values.
  15836. 'REG_FRAME_RELATED_EXPR'
  15837. This is used on an RTX_FRAME_RELATED_P insn wherein the attached
  15838. expression is used in place of the actual insn pattern. This is
  15839. done in cases where the pattern is either complex or misleading.
  15840. The note 'REG_CALL_NOCF_CHECK' is used in conjunction with the
  15841. '-fcf-protection=branch' option. The note is set if a 'nocf_check'
  15842. attribute is specified for a function type or a pointer to function
  15843. type. The note is stored in the 'REG_NOTES' field of an insn.
  15844. 'REG_CALL_NOCF_CHECK'
  15845. Users have control through the 'nocf_check' attribute to identify
  15846. which calls to a function should be skipped from control-flow
  15847. instrumentation when the option '-fcf-protection=branch' is
  15848. specified. The compiler puts a 'REG_CALL_NOCF_CHECK' note on each
  15849. 'CALL_INSN' instruction that has a function type marked with a
  15850. 'nocf_check' attribute.
  15851. For convenience, the machine mode in an 'insn_list' or 'expr_list' is
  15852. printed using these symbolic codes in debugging dumps.
  15853. The only difference between the expression codes 'insn_list' and
  15854. 'expr_list' is that the first operand of an 'insn_list' is assumed to be
  15855. an insn and is printed in debugging dumps as the insn's unique id; the
  15856. first operand of an 'expr_list' is printed in the ordinary way as an
  15857. expression.
  15858. 
  15859. File: gccint.info, Node: Calls, Next: RTL SSA, Prev: Insns, Up: RTL
  15860. 14.20 RTL Representation of Function-Call Insns
  15861. ===============================================
  15862. Insns that call subroutines have the RTL expression code 'call_insn'.
  15863. These insns must satisfy special rules, and their bodies must use a
  15864. special RTL expression code, 'call'.
  15865. A 'call' expression has two operands, as follows:
  15866. (call (mem:FM ADDR) NBYTES)
  15867. Here NBYTES is an operand that represents the number of bytes of
  15868. argument data being passed to the subroutine, FM is a machine mode
  15869. (which must equal as the definition of the 'FUNCTION_MODE' macro in the
  15870. machine description) and ADDR represents the address of the subroutine.
  15871. For a subroutine that returns no value, the 'call' expression as shown
  15872. above is the entire body of the insn, except that the insn might also
  15873. contain 'use' or 'clobber' expressions.
  15874. For a subroutine that returns a value whose mode is not 'BLKmode', the
  15875. value is returned in a hard register. If this register's number is R,
  15876. then the body of the call insn looks like this:
  15877. (set (reg:M R)
  15878. (call (mem:FM ADDR) NBYTES))
  15879. This RTL expression makes it clear (to the optimizer passes) that the
  15880. appropriate register receives a useful value in this insn.
  15881. When a subroutine returns a 'BLKmode' value, it is handled by passing
  15882. to the subroutine the address of a place to store the value. So the
  15883. call insn itself does not "return" any value, and it has the same RTL
  15884. form as a call that returns nothing.
  15885. On some machines, the call instruction itself clobbers some register,
  15886. for example to contain the return address. 'call_insn' insns on these
  15887. machines should have a body which is a 'parallel' that contains both the
  15888. 'call' expression and 'clobber' expressions that indicate which
  15889. registers are destroyed. Similarly, if the call instruction requires
  15890. some register other than the stack pointer that is not explicitly
  15891. mentioned in its RTL, a 'use' subexpression should mention that
  15892. register.
  15893. Functions that are called are assumed to modify all registers listed in
  15894. the configuration macro 'CALL_USED_REGISTERS' (*note Register Basics::)
  15895. and, with the exception of 'const' functions and library calls, to
  15896. modify all of memory.
  15897. Insns containing just 'use' expressions directly precede the
  15898. 'call_insn' insn to indicate which registers contain inputs to the
  15899. function. Similarly, if registers other than those in
  15900. 'CALL_USED_REGISTERS' are clobbered by the called function, insns
  15901. containing a single 'clobber' follow immediately after the call to
  15902. indicate which registers.
  15903. 
  15904. File: gccint.info, Node: RTL SSA, Next: Sharing, Prev: Calls, Up: RTL
  15905. 14.21 On-the-Side SSA Form for RTL
  15906. ==================================
  15907. The patterns of an individual RTL instruction describe which registers
  15908. are inputs to that instruction and which registers are outputs from that
  15909. instruction. However, it is often useful to know where the definition
  15910. of a register input comes from and where the result of a register output
  15911. is used. One way of obtaining this information is to use the RTL SSA
  15912. form, which provides a Static Single Assignment representation of the
  15913. RTL instructions.
  15914. The RTL SSA code is located in the 'rtl-ssa' subdirectory of the GCC
  15915. source tree. This section only gives a brief overview of it; please see
  15916. the comments in the source code for more details.
  15917. * Menu:
  15918. * Using RTL SSA:: What a pass needs to do to use the RTL SSA form
  15919. * RTL SSA Instructions:: How instructions are represented and organized
  15920. * RTL SSA Basic Blocks:: How instructions are grouped into blocks
  15921. * RTL SSA Resources:: How registers and memory are represented
  15922. * RTL SSA Accesses:: How register and memory accesses are represented
  15923. * RTL SSA Phi Nodes:: How multiple sources are combined into one
  15924. * RTL SSA Access Lists:: How accesses are chained together
  15925. * Changing RTL Instructions:: How to use the RTL SSA framework to change insns
  15926. 
  15927. File: gccint.info, Node: Using RTL SSA, Next: RTL SSA Instructions, Up: RTL SSA
  15928. 14.21.1 Using RTL SSA in a pass
  15929. -------------------------------
  15930. A pass that wants to use the RTL SSA form should start with the
  15931. following:
  15932. #define INCLUDE_ALGORITHM
  15933. #define INCLUDE_FUNCTIONAL
  15934. #include "config.h"
  15935. #include "system.h"
  15936. #include "coretypes.h"
  15937. #include "backend.h"
  15938. #include "rtl.h"
  15939. #include "df.h"
  15940. #include "rtl-ssa.h"
  15941. All the RTL SSA code is contained in the 'rtl_ssa' namespace, so most
  15942. passes will then want to do:
  15943. using namespace rtl_ssa;
  15944. However, this is purely a matter of taste, and the examples in the rest
  15945. of this section do not require it.
  15946. The RTL SSA represention is an optional on-the-side feature that
  15947. applies on top of the normal RTL instructions. It is currently local to
  15948. individual RTL passes and is not maintained across passes.
  15949. However, in order to allow the RTL SSA information to be preserved
  15950. across passes in future, 'crtl->ssa' points to the current function's
  15951. SSA form (if any). Passes that want to use the RTL SSA form should
  15952. first do:
  15953. crtl->ssa = new rtl_ssa::function_info (FN);
  15954. where FN is the function that the pass is processing. (Passes that are
  15955. 'using namespace rtl_ssa' do not need the 'rtl_ssa::'.)
  15956. Once the pass has finished with the SSA form, it should do the
  15957. following:
  15958. free_dominance_info (CDI_DOMINATORS);
  15959. if (crtl->ssa->perform_pending_updates ())
  15960. cleanup_cfg (0);
  15961. delete crtl->ssa;
  15962. crtl->ssa = nullptr;
  15963. The 'free_dominance_info' call is necessary because dominance
  15964. information is not currently maintained between RTL passes. The next
  15965. two lines commit any changes to the RTL instructions that were queued
  15966. for later; see the comment above the declaration of
  15967. 'perform_pending_updates' for details. The final two lines discard the
  15968. RTL SSA form and free the associated memory.
  15969. 
  15970. File: gccint.info, Node: RTL SSA Instructions, Next: RTL SSA Basic Blocks, Prev: Using RTL SSA, Up: RTL SSA
  15971. 14.21.2 RTL SSA Instructions
  15972. ----------------------------
  15973. RTL SSA instructions are represented by an 'rtl_ssa::insn_info'. These
  15974. instructions are chained together in a single list that follows a
  15975. reverse postorder (RPO) traversal of the function. This means that if
  15976. any path through the function can execute an instruction I1 and then
  15977. later execute an instruction I2 for the first time, I1 appears before I2
  15978. in the list(1).
  15979. Two RTL SSA instructions can be compared to find which instruction
  15980. occurs earlier than the other in the RPO. One way to do this is to use
  15981. the C++ comparison operators, such as:
  15982. *INSN1 < *INSN2
  15983. Another way is to use the 'compare_with' function:
  15984. INSN1->compare_with (INSN2)
  15985. This expression is greater than zero if INSN1 comes after INSN2 in the
  15986. RPO, less than zero if INSN1 comes before INSN2 in the RPO, or zero if
  15987. INSN1 and INSN2 are the same. This order is maintained even if
  15988. instructions are added to the function or moved around.
  15989. The main purpose of 'rtl_ssa::insn_info' is to hold SSA information
  15990. about an instruction. However, it also caches certain properties of the
  15991. instruction, such as whether it is an inline assembly instruction,
  15992. whether it has volatile accesses, and so on.
  15993. ---------- Footnotes ----------
  15994. (1) Note that this order is different from the order of the
  15995. underlying RTL instructions, which follow machine code order instead.
  15996. 
  15997. File: gccint.info, Node: RTL SSA Basic Blocks, Next: RTL SSA Resources, Prev: RTL SSA Instructions, Up: RTL SSA
  15998. 14.21.3 RTL SSA Basic Blocks
  15999. ----------------------------
  16000. RTL SSA instructions (*note RTL SSA Instructions::) are organized into
  16001. basic blocks, with each block being represented by an 'rtl_ssa:bb_info'.
  16002. There is a one-to-one mapping between these 'rtl_ssa:bb_info' structures
  16003. and the underlying CFG 'basic_block' structures (*note Basic Blocks::).
  16004. If a CFG basic block BB contains an RTL instruction INSN, the RTL SSA
  16005. represenation of BB also contains an RTL SSA representation of INSN(1).
  16006. Within RTL SSA, these instructions are referred to as "real"
  16007. instructions. These real instructions fall into two groups: debug
  16008. instructions and nondebug instructions. Only nondebug instructions
  16009. should affect code generation decisions.
  16010. In addition, each RTL SSA basic block has two "artificial"
  16011. instructions: a "head" instruction that comes before all the real
  16012. instructions and an "end" instruction that comes after all real
  16013. instructions. These instructions exist to represent things that are
  16014. conceptually defined or used at the start and end of a basic block. The
  16015. instructions always exist, even if they do not currently do anything.
  16016. Like instructions, these blocks are chained together in a reverse
  16017. postorder. This list includes the entry block (which always comes
  16018. first) and the exit block (which always comes last).
  16019. RTL SSA basic blocks are chained together into "extended basic blocks"
  16020. (EBBs), represented by an 'rtl_ssa::ebb_info'. Extended basic blocks
  16021. contain one or more basic blocks. They have the property that if a
  16022. block BBY comes immediately after a block BBX in an EBB, then BBY can
  16023. only be reached by BBX; in other words, BBX is the sole predecessor of
  16024. BBY.
  16025. Each extended basic block starts with an artificial "phi node"
  16026. instruction. This instruction defines all phi nodes for the EBB (*note
  16027. RTL SSA Phi Nodes::). (Individual blocks in an EBB do not need phi
  16028. nodes because their live values can only come from one source.)
  16029. The contents of a function are therefore represented using a four-level
  16030. hierarchy:
  16031. * functions ('rtl_ssa::function_info'), which contain ...
  16032. * extended basic blocks ('rtl_ssa::ebb_info'), which contain ...
  16033. * basic blocks ('rtl_ssa::bb_info'), which contain ...
  16034. * instructions ('rtl_ssa::insn_info')
  16035. In dumps, a basic block is identified as 'bbN', where N is the index of
  16036. the associated CFG 'basic_block' structure. An EBB is in turn
  16037. identified by the index of its first block. For example, an EBB that
  16038. contains 'bb10', 'bb5', 'bb6' and 'bb9' is identified as EBB10.
  16039. ---------- Footnotes ----------
  16040. (1) Note that this excludes non-instruction things like 'note's and
  16041. 'barrier's that also appear in the chain of RTL instructions.
  16042. 
  16043. File: gccint.info, Node: RTL SSA Resources, Next: RTL SSA Accesses, Prev: RTL SSA Basic Blocks, Up: RTL SSA
  16044. 14.21.4 RTL SSA Resources
  16045. -------------------------
  16046. The RTL SSA form tracks two types of "resource": registers and memory.
  16047. Each hard and pseudo register is a separate resource. Memory is a
  16048. single unified resource, like it is in GIMPLE (*note GIMPLE::).
  16049. Each resource has a unique identifier. The unique identifier for a
  16050. register is simply its register number. The unique identifier for
  16051. memory is a special register number called 'MEM_REGNO'.
  16052. Since resource numbers so closely match register numbers, it is
  16053. sometimes convenient to refer to them simply as register numbers, or
  16054. "regnos" for short. However, the RTL SSA form also provides an
  16055. abstraction of resources in the form of 'rtl_ssa::resource_info'. This
  16056. is a lightweight class that records both the regno of a resource and the
  16057. 'machine_mode' that the resource has (*note Machine Modes::). It has
  16058. functions for testing whether a resource is a register or memory. In
  16059. principle it could be extended to other kinds of resource in future.
  16060. 
  16061. File: gccint.info, Node: RTL SSA Accesses, Next: RTL SSA Phi Nodes, Prev: RTL SSA Resources, Up: RTL SSA
  16062. 14.21.5 RTL SSA Register and Memory Accesses
  16063. --------------------------------------------
  16064. In the RTL SSA form, most reads or writes of a resource are represented
  16065. as a 'rtl_ssa::access_info'(1). These 'rtl_ssa::access_info's are
  16066. organized into the following class hierarchy:
  16067. rtl_ssa::access_info
  16068. |
  16069. +-- rtl_ssa::use_info
  16070. |
  16071. +-- rtl_ssa::def_info
  16072. |
  16073. +-- rtl_ssa::clobber_info
  16074. |
  16075. +-- rtl_ssa::set_info
  16076. |
  16077. +-- rtl_ssa::phi_info
  16078. A 'rtl_ssa::use_info' represents a read or use of a resource and a
  16079. 'rtl_ssa::def_info' represents a write or definition of a resource. As
  16080. in the main RTL representation, there are two basic types of definition:
  16081. clobbers and sets. The difference is that a clobber leaves the register
  16082. with an unspecified value that cannot be used or relied on by later
  16083. instructions, while a set leaves the register with a known value that
  16084. later instructions could use if they wanted to. A
  16085. 'rtl_ssa::clobber_info' represents a clobber and a 'rtl_ssa::set_info'
  16086. represent a set.
  16087. Each 'rtl_ssa::use_info' records which single 'rtl_ssa::set_info'
  16088. provides the value of the resource; this is null if the resource is
  16089. completely undefined at the point of use. Each 'rtl_ssa::set_info' in
  16090. turn records all the 'rtl_ssa::use_info's that use its value.
  16091. If a value of a resource can come from multiple sources, a
  16092. 'rtl_ssa::phi_info' brings those multiple sources together into a single
  16093. definition (*note RTL SSA Phi Nodes::).
  16094. ---------- Footnotes ----------
  16095. (1) The exceptions are call clobbers, which are generally represented
  16096. separately. See the comment above 'rtl_ssa::insn_info' for details.
  16097. 
  16098. File: gccint.info, Node: RTL SSA Phi Nodes, Next: RTL SSA Access Lists, Prev: RTL SSA Accesses, Up: RTL SSA
  16099. 14.21.6 RTL SSA Phi Nodes
  16100. -------------------------
  16101. If a resource is live on entry to an extended basic block and if the
  16102. resource's value can come from multiple sources, the extended basic
  16103. block has a "phi node" that collects together these multiple sources.
  16104. The phi node conceptually has one input for each incoming edge of the
  16105. extended basic block, with the input specifying the value of the
  16106. resource on that edge. For example, suppose a function contains the
  16107. following RTL:
  16108. ;; Basic block bb3
  16109. ...
  16110. (set (reg:SI R1) (const_int 0)) ;; A
  16111. (set (pc) (label_ref bb5))
  16112. ;; Basic block bb4
  16113. ...
  16114. (set (reg:SI R1) (const_int 1)) ;; B
  16115. ;; Fall through
  16116. ;; Basic block bb5
  16117. ;; preds: bb3, bb4
  16118. ;; live in: R1 ...
  16119. (code_label bb5)
  16120. ...
  16121. (set (reg:SI R2)
  16122. (plus:SI (reg:SI R1) ...)) ;; C
  16123. The value of R1 on entry to block 5 can come from either A or B. The
  16124. extended basic block that contains block 5 would therefore have a phi
  16125. node with two inputs: the first input would have the value of R1 defined
  16126. by A and the second input would have the value of R1 defined by B. This
  16127. phi node would then provide the value of R1 for C (assuming that R1 does
  16128. not change again between the start of block 5 and C).
  16129. Since RTL is not a "native" SSA representation, these phi nodes simply
  16130. collect together definitions that already exist. Each input to a phi
  16131. node for a resource R is itself a definition of resource R (or is null
  16132. if the resource is completely undefined for a particular incoming edge).
  16133. This is in contrast to a native SSA representation like GIMPLE, where
  16134. the phi inputs can be arbitrary expressions. As a result, RTL SSA phi
  16135. nodes never involve "hidden" moves: all moves are instead explicit.
  16136. Phi nodes are represented as a 'rtl_ssa::phi_node'. Each input to a
  16137. phi node is represented as an 'rtl_ssa::use_info'.
  16138. 
  16139. File: gccint.info, Node: RTL SSA Access Lists, Next: Changing RTL Instructions, Prev: RTL SSA Phi Nodes, Up: RTL SSA
  16140. 14.21.7 RTL SSA Access Lists
  16141. ----------------------------
  16142. All the definitions of a resource are chained together in reverse
  16143. postorder. In general, this list can contain an arbitrary mix of both
  16144. sets ('rtl_ssa::set_info') and clobbers ('rtl_ssa::clobber_info').
  16145. However, it is often useful to skip over all intervening clobbers of a
  16146. resource in order to find the next set. The list is constructed in such
  16147. a way that this can be done in amortized constant time.
  16148. All uses ('rtl_ssa::use_info') of a given set are also chained together
  16149. into a list. This list of uses is divided into three parts:
  16150. 1. uses by "real" nondebug instructions (*note real RTL SSA insns::)
  16151. 2. uses by real debug instructions
  16152. 3. uses by phi nodes (*note RTL SSA Phi Nodes::)
  16153. The first and second parts individually follow reverse postorder. The
  16154. third part has no particular order.
  16155. The last use by a real nondebug instruction always comes earlier in the
  16156. reverse postorder than the next definition of the resource (if any).
  16157. This means that the accesses follow a linear sequence of the form:
  16158. * first definition of resource R
  16159. * first use by a real nondebug instruction of the first
  16160. definition of resource R
  16161. * ...
  16162. * last use by a real nondebug instruction of the first
  16163. definition of resource R
  16164. * second definition of resource R
  16165. * first use by a real nondebug instruction of the second
  16166. definition of resource R
  16167. * ...
  16168. * last use by a real nondebug instruction of the second
  16169. definition of resource R
  16170. * ...
  16171. * last definition of resource R
  16172. * first use by a real nondebug instruction of the last
  16173. definition of resource R
  16174. * ...
  16175. * last use by a real nondebug instruction of the last definition
  16176. of resource R
  16177. (Note that clobbers never have uses; only sets do.)
  16178. This linear view is easy to achieve when there is only a single
  16179. definition of a resource, which is commonly true for pseudo registers.
  16180. However, things are more complex if code has a structure like the
  16181. following:
  16182. // ebb2, bb2
  16183. R = VA; // A
  16184. if (...)
  16185. {
  16186. // ebb2, bb3
  16187. use1 (R); // B
  16188. ...
  16189. R = VC; // C
  16190. }
  16191. else
  16192. {
  16193. // ebb4, bb4
  16194. use2 (R); // D
  16195. }
  16196. The list of accesses would begin as follows:
  16197. * definition of R by A
  16198. * use of A's definition of R by B
  16199. * definition of R by C
  16200. The next access to R is in D, but the value of R that D uses comes from
  16201. A rather than C.
  16202. This is resolved by adding a phi node for 'ebb4'. All inputs to this
  16203. phi node have the same value, which in the example above is A's
  16204. definition of R. In other circumstances, it would not be necessary to
  16205. create a phi node when all inputs are equal, so these phi nodes are
  16206. referred to as "degenerate" phi nodes.
  16207. The full list of accesses to R is therefore:
  16208. * definition of R by A
  16209. * use of A's definition of R by B
  16210. * definition of R by C
  16211. * definition of R by ebb4's phi instruction, with the input coming
  16212. from A
  16213. * use of the ebb4's R phi definition of R by B
  16214. Note that A's definition is also used by ebb4's phi node, but this use
  16215. belongs to the third part of the use list described above and so does
  16216. not form part of the linear sequence.
  16217. It is possible to "look through" any degenerate phi to the ultimate
  16218. definition using the function 'look_through_degenerate_phi'. Note that
  16219. the input to a degenerate phi is never itself provided by a degenerate
  16220. phi.
  16221. At present, the SSA form takes this principle one step further and
  16222. guarantees that, for any given resource RES, one of the following is
  16223. true:
  16224. * The resource has a single definition DEF, which is not a phi node.
  16225. Excluding uses of undefined registers, all uses of RES by real
  16226. nondebug instructions use the value provided by DEF.
  16227. * Excluding uses of undefined registers, all uses of RES use values
  16228. provided by definitions that occur earlier in the same extended
  16229. basic block. These definitions might come from phi nodes or from
  16230. real instructions.
  16231. 
  16232. File: gccint.info, Node: Changing RTL Instructions, Prev: RTL SSA Access Lists, Up: RTL SSA
  16233. 14.21.8 Using the RTL SSA framework to change instructions
  16234. ----------------------------------------------------------
  16235. There are various routines that help to change a single RTL instruction
  16236. or a group of RTL instructions while keeping the RTL SSA form
  16237. up-to-date. This section first describes the process for changing a
  16238. single instruction, then goes on to describe the differences when
  16239. changing multiple instructions.
  16240. * Menu:
  16241. * Changing One RTL SSA Instruction::
  16242. * Changing Multiple RTL SSA Instructions::
  16243. 
  16244. File: gccint.info, Node: Changing One RTL SSA Instruction, Next: Changing Multiple RTL SSA Instructions, Up: Changing RTL Instructions
  16245. 14.21.8.1 Changing One RTL SSA Instruction
  16246. ..........................................
  16247. Before making a change, passes should first use a statement like the
  16248. following:
  16249. auto attempt = crtl->ssa->new_change_attempt ();
  16250. Here, 'attempt' is an RAII object that should remain in scope for the
  16251. entire change attempt. It automatically frees temporary memory related
  16252. to the changes when it goes out of scope.
  16253. Next, the pass should create an 'rtl_ssa::insn_change' object for the
  16254. instruction that it wants to change. This object specifies several
  16255. things:
  16256. * what the instruction's new list of uses should be ('new_uses'). By
  16257. default this is the same as the instruction's current list of uses.
  16258. * what the instruction's new list of definitions should be
  16259. ('new_defs'). By default this is the same as the instruction's
  16260. current list of definitions.
  16261. * where the instruction should be located ('move_range'). This is a
  16262. range of instructions after which the instruction could be placed,
  16263. represented as an 'rtl_ssa::insn_range'. By default the
  16264. instruction must remain at its current position.
  16265. If a pass was attempting to change all these properties of an
  16266. instruction 'insn', it might do something like this:
  16267. rtl_ssa::insn_change change (insn);
  16268. change.new_defs = ...;
  16269. change.new_uses = ...;
  16270. change.move_range = ...;
  16271. This 'rtl_ssa::insn_change' only describes something that the pass
  16272. _might_ do; at this stage, nothing has actually changed.
  16273. As noted above, the default 'move_range' requires the instruction to
  16274. remain where it is. At the other extreme, it is possible to allow the
  16275. instruction to move anywhere within its extended basic block, provided
  16276. that all the new uses and definitions can be performed at the new
  16277. location. The way to do this is:
  16278. change.move_range = insn->ebb ()->insn_range ();
  16279. In either case, the next step is to make sure that move range is
  16280. consistent with the new uses and definitions. The way to do this is:
  16281. if (!rtl_ssa::restrict_movement (change))
  16282. return false;
  16283. This function tries to limit 'move_range' to a range of instructions at
  16284. which 'new_uses' and 'new_defs' can be correctly performed. It returns
  16285. true on success or false if no suitable location exists.
  16286. The pass should also tentatively change the pattern of the instruction
  16287. to whatever form the pass wants the instruction to have. This should
  16288. use the facilities provided by 'recog.c'. For example:
  16289. rtl_insn *rtl = insn->rtl ();
  16290. insn_change_watermark watermark;
  16291. validate_change (rtl, &PATTERN (rtl), new_pat, 1);
  16292. will tentatively replace 'insn''s pattern with 'new_pat'.
  16293. These changes and the construction of the 'rtl_ssa::insn_change' can
  16294. happen in either order or be interleaved.
  16295. After the tentative changes to the instruction are complete, the pass
  16296. should check whether the new pattern matches a target instruction or
  16297. satisfies the requirements of an inline asm:
  16298. if (!rtl_ssa::recog (change))
  16299. return false;
  16300. This step might change the instruction pattern further in order to make
  16301. it match. It might also add new definitions or restrict the range of
  16302. the move. For example, if the new pattern did not match in its original
  16303. form, but could be made to match by adding a clobber of the flags
  16304. register, 'rtl_ssa::recog' will check whether the flags register is free
  16305. at an appropriate point. If so, it will add a clobber of the flags
  16306. register to 'new_defs' and restrict 'move_range' to the locations at
  16307. which the flags register can be safely clobbered.
  16308. Even if the proposed new instruction is valid according to
  16309. 'rtl_ssa::recog', the change might not be worthwhile. For example, when
  16310. optimizing for speed, the new instruction might turn out to be slower
  16311. than the original one. When optimizing for size, the new instruction
  16312. might turn out to be bigger than the original one.
  16313. Passes should check for this case using 'change_is_worthwhile'. For
  16314. example:
  16315. if (!rtl_ssa::change_is_worthwhile (change))
  16316. return false;
  16317. If the change passes this test too then the pass can perform the change
  16318. using:
  16319. confirm_change_group ();
  16320. crtl->ssa->change_insn (change);
  16321. Putting all this together, the change has the following form:
  16322. auto attempt = crtl->ssa->new_change_attempt ();
  16323. rtl_ssa::insn_change change (insn);
  16324. change.new_defs = ...;
  16325. change.new_uses = ...;
  16326. change.move_range = ...;
  16327. if (!rtl_ssa::restrict_movement (change))
  16328. return false;
  16329. insn_change_watermark watermark;
  16330. // Use validate_change etc. to change INSN's pattern.
  16331. ...
  16332. if (!rtl_ssa::recog (change)
  16333. || !rtl_ssa::change_is_worthwhile (change))
  16334. return false;
  16335. confirm_change_group ();
  16336. crtl->ssa->change_insn (change);
  16337. 
  16338. File: gccint.info, Node: Changing Multiple RTL SSA Instructions, Prev: Changing One RTL SSA Instruction, Up: Changing RTL Instructions
  16339. 14.21.8.2 Changing Multiple RTL SSA Instructions
  16340. ................................................
  16341. The process for changing multiple instructions is similar to the process
  16342. for changing single instructions (*note Changing One RTL SSA
  16343. Instruction::). The pass should again start the change attempt with:
  16344. auto attempt = crtl->ssa->new_change_attempt ();
  16345. and keep 'attempt' in scope for the duration of the change attempt. It
  16346. should then construct an 'rtl_ssa::insn_change' for each change that it
  16347. wants to make.
  16348. After this, it should combine the changes into a sequence of
  16349. 'rtl_ssa::insn_change' pointers. This sequence must be in reverse
  16350. postorder; the instructions will remain strictly in the order that the
  16351. sequence specifies.
  16352. For example, if a pass is changing exactly two instructions, it might
  16353. do:
  16354. rtl_ssa::insn_change *changes[] = { &change1, change2 };
  16355. where 'change1''s instruction must come before 'change2''s.
  16356. Alternatively, if the pass is changing a variable number of
  16357. instructions, it might build up the sequence in a
  16358. 'vec<rtl_ssa::insn_change *>'.
  16359. By default, 'rtl_ssa::restrict_movement' assumes that all instructions
  16360. other than the one passed to it will remain in their current positions
  16361. and will retain their current uses and definitions. When changing
  16362. multiple instructions, it is usually more effective to ignore the other
  16363. instructions that are changing. The sequencing described above ensures
  16364. that the changing instructions remain in the correct order with respect
  16365. to each other. The way to do this is:
  16366. if (!rtl_ssa::restrict_movement (change, insn_is_changing (changes)))
  16367. return false;
  16368. Similarly, when 'rtl_ssa::restrict_movement' is detecting whether a
  16369. register can be clobbered, it by default assumes that all other
  16370. instructions will remain in their current positions and retain their
  16371. current form. It is again more effective to ignore changing
  16372. instructions (which might, for example, no longer need to clobber the
  16373. flags register). The way to do this is:
  16374. if (!rtl_ssa::recog (change, insn_is_changing (changes)))
  16375. return false;
  16376. When changing multiple instructions, the important question is usually
  16377. not whether each individual change is worthwhile, but whether the
  16378. changes as a whole are worthwhile. The way to test this is:
  16379. if (!rtl_ssa::changes_are_worthwhile (changes))
  16380. return false;
  16381. The process for changing single instructions makes sure that one
  16382. 'rtl_ssa::insn_change' in isolation is valid. But when changing
  16383. multiple instructions, it is also necessary to test whether the sequence
  16384. as a whole is valid. For example, it might be impossible to satisfy all
  16385. of the 'move_range's at once.
  16386. Therefore, once the pass has a sequence of changes that are
  16387. individually correct, it should use:
  16388. if (!crtl->ssa->verify_insn_changes (changes))
  16389. return false;
  16390. to check whether the sequence as a whole is valid. If all checks pass,
  16391. the final step is:
  16392. confirm_change_group ();
  16393. crtl->ssa->change_insns (changes);
  16394. Putting all this together, the process for a two-instruction change is:
  16395. auto attempt = crtl->ssa->new_change_attempt ();
  16396. rtl_ssa::insn_change change (insn1);
  16397. change1.new_defs = ...;
  16398. change1.new_uses = ...;
  16399. change1.move_range = ...;
  16400. rtl_ssa::insn_change change (insn2);
  16401. change2.new_defs = ...;
  16402. change2.new_uses = ...;
  16403. change2.move_range = ...;
  16404. rtl_ssa::insn_change *changes[] = { &change1, change2 };
  16405. auto is_changing = insn_is_changing (changes);
  16406. if (!rtl_ssa::restrict_movement (change1, is_changing)
  16407. || !rtl_ssa::restrict_movement (change2, is_changing))
  16408. return false;
  16409. insn_change_watermark watermark;
  16410. // Use validate_change etc. to change INSN1's and INSN2's patterns.
  16411. ...
  16412. if (!rtl_ssa::recog (change1, is_changing)
  16413. || !rtl_ssa::recog (change2, is_changing)
  16414. || !rtl_ssa::changes_are_worthwhile (changes)
  16415. || !crtl->ssa->verify_insn_changes (changes))
  16416. return false;
  16417. confirm_change_group ();
  16418. crtl->ssa->change_insns (changes);
  16419. 
  16420. File: gccint.info, Node: Sharing, Next: Reading RTL, Prev: RTL SSA, Up: RTL
  16421. 14.22 Structure Sharing Assumptions
  16422. ===================================
  16423. The compiler assumes that certain kinds of RTL expressions are unique;
  16424. there do not exist two distinct objects representing the same value. In
  16425. other cases, it makes an opposite assumption: that no RTL expression
  16426. object of a certain kind appears in more than one place in the
  16427. containing structure.
  16428. These assumptions refer to a single function; except for the RTL
  16429. objects that describe global variables and external functions, and a few
  16430. standard objects such as small integer constants, no RTL objects are
  16431. common to two functions.
  16432. * Each pseudo-register has only a single 'reg' object to represent
  16433. it, and therefore only a single machine mode.
  16434. * For any symbolic label, there is only one 'symbol_ref' object
  16435. referring to it.
  16436. * All 'const_int' expressions with equal values are shared.
  16437. * All 'const_poly_int' expressions with equal modes and values are
  16438. shared.
  16439. * There is only one 'pc' expression.
  16440. * There is only one 'cc0' expression.
  16441. * There is only one 'const_double' expression with value 0 for each
  16442. floating point mode. Likewise for values 1 and 2.
  16443. * There is only one 'const_vector' expression with value 0 for each
  16444. vector mode, be it an integer or a double constant vector.
  16445. * No 'label_ref' or 'scratch' appears in more than one place in the
  16446. RTL structure; in other words, it is safe to do a tree-walk of all
  16447. the insns in the function and assume that each time a 'label_ref'
  16448. or 'scratch' is seen it is distinct from all others that are seen.
  16449. * Only one 'mem' object is normally created for each static variable
  16450. or stack slot, so these objects are frequently shared in all the
  16451. places they appear. However, separate but equal objects for these
  16452. variables are occasionally made.
  16453. * When a single 'asm' statement has multiple output operands, a
  16454. distinct 'asm_operands' expression is made for each output operand.
  16455. However, these all share the vector which contains the sequence of
  16456. input operands. This sharing is used later on to test whether two
  16457. 'asm_operands' expressions come from the same statement, so all
  16458. optimizations must carefully preserve the sharing if they copy the
  16459. vector at all.
  16460. * No RTL object appears in more than one place in the RTL structure
  16461. except as described above. Many passes of the compiler rely on
  16462. this by assuming that they can modify RTL objects in place without
  16463. unwanted side-effects on other insns.
  16464. * During initial RTL generation, shared structure is freely
  16465. introduced. After all the RTL for a function has been generated,
  16466. all shared structure is copied by 'unshare_all_rtl' in
  16467. 'emit-rtl.c', after which the above rules are guaranteed to be
  16468. followed.
  16469. * During the combiner pass, shared structure within an insn can exist
  16470. temporarily. However, the shared structure is copied before the
  16471. combiner is finished with the insn. This is done by calling
  16472. 'copy_rtx_if_shared', which is a subroutine of 'unshare_all_rtl'.
  16473. 
  16474. File: gccint.info, Node: Reading RTL, Prev: Sharing, Up: RTL
  16475. 14.23 Reading RTL
  16476. =================
  16477. To read an RTL object from a file, call 'read_rtx'. It takes one
  16478. argument, a stdio stream, and returns a single RTL object. This routine
  16479. is defined in 'read-rtl.c'. It is not available in the compiler itself,
  16480. only the various programs that generate the compiler back end from the
  16481. machine description.
  16482. People frequently have the idea of using RTL stored as text in a file
  16483. as an interface between a language front end and the bulk of GCC. This
  16484. idea is not feasible.
  16485. GCC was designed to use RTL internally only. Correct RTL for a given
  16486. program is very dependent on the particular target machine. And the RTL
  16487. does not contain all the information about the program.
  16488. The proper way to interface GCC to a new language front end is with the
  16489. "tree" data structure, described in the files 'tree.h' and 'tree.def'.
  16490. The documentation for this structure (*note GENERIC::) is incomplete.
  16491. 
  16492. File: gccint.info, Node: Control Flow, Next: Loop Analysis and Representation, Prev: RTL, Up: Top
  16493. 15 Control Flow Graph
  16494. *********************
  16495. A control flow graph (CFG) is a data structure built on top of the
  16496. intermediate code representation (the RTL or 'GIMPLE' instruction
  16497. stream) abstracting the control flow behavior of a function that is
  16498. being compiled. The CFG is a directed graph where the vertices
  16499. represent basic blocks and edges represent possible transfer of control
  16500. flow from one basic block to another. The data structures used to
  16501. represent the control flow graph are defined in 'basic-block.h'.
  16502. In GCC, the representation of control flow is maintained throughout the
  16503. compilation process, from constructing the CFG early in 'pass_build_cfg'
  16504. to 'pass_free_cfg' (see 'passes.def'). The CFG takes various different
  16505. modes and may undergo extensive manipulations, but the graph is always
  16506. valid between its construction and its release. This way, transfer of
  16507. information such as data flow, a measured profile, or the loop tree, can
  16508. be propagated through the passes pipeline, and even from 'GIMPLE' to
  16509. 'RTL'.
  16510. Often the CFG may be better viewed as integral part of instruction
  16511. chain, than structure built on the top of it. Updating the compiler's
  16512. intermediate representation for instructions cannot be easily done
  16513. without proper maintenance of the CFG simultaneously.
  16514. * Menu:
  16515. * Basic Blocks:: The definition and representation of basic blocks.
  16516. * Edges:: Types of edges and their representation.
  16517. * Profile information:: Representation of frequencies and probabilities.
  16518. * Maintaining the CFG:: Keeping the control flow graph and up to date.
  16519. * Liveness information:: Using and maintaining liveness information.
  16520. 
  16521. File: gccint.info, Node: Basic Blocks, Next: Edges, Up: Control Flow
  16522. 15.1 Basic Blocks
  16523. =================
  16524. A basic block is a straight-line sequence of code with only one entry
  16525. point and only one exit. In GCC, basic blocks are represented using the
  16526. 'basic_block' data type.
  16527. Special basic blocks represent possible entry and exit points of a
  16528. function. These blocks are called 'ENTRY_BLOCK_PTR' and
  16529. 'EXIT_BLOCK_PTR'. These blocks do not contain any code.
  16530. The 'BASIC_BLOCK' array contains all basic blocks in an unspecified
  16531. order. Each 'basic_block' structure has a field that holds a unique
  16532. integer identifier 'index' that is the index of the block in the
  16533. 'BASIC_BLOCK' array. The total number of basic blocks in the function
  16534. is 'n_basic_blocks'. Both the basic block indices and the total number
  16535. of basic blocks may vary during the compilation process, as passes
  16536. reorder, create, duplicate, and destroy basic blocks. The index for any
  16537. block should never be greater than 'last_basic_block'. The indices 0
  16538. and 1 are special codes reserved for 'ENTRY_BLOCK' and 'EXIT_BLOCK', the
  16539. indices of 'ENTRY_BLOCK_PTR' and 'EXIT_BLOCK_PTR'.
  16540. Two pointer members of the 'basic_block' structure are the pointers
  16541. 'next_bb' and 'prev_bb'. These are used to keep doubly linked chain of
  16542. basic blocks in the same order as the underlying instruction stream.
  16543. The chain of basic blocks is updated transparently by the provided API
  16544. for manipulating the CFG. The macro 'FOR_EACH_BB' can be used to visit
  16545. all the basic blocks in lexicographical order, except 'ENTRY_BLOCK' and
  16546. 'EXIT_BLOCK'. The macro 'FOR_ALL_BB' also visits all basic blocks in
  16547. lexicographical order, including 'ENTRY_BLOCK' and 'EXIT_BLOCK'.
  16548. The functions 'post_order_compute' and 'inverted_post_order_compute'
  16549. can be used to compute topological orders of the CFG. The orders are
  16550. stored as vectors of basic block indices. The 'BASIC_BLOCK' array can
  16551. be used to iterate each basic block by index. Dominator traversals are
  16552. also possible using 'walk_dominator_tree'. Given two basic blocks A and
  16553. B, block A dominates block B if A is _always_ executed before B.
  16554. Each 'basic_block' also contains pointers to the first instruction (the
  16555. "head") and the last instruction (the "tail") or "end" of the
  16556. instruction stream contained in a basic block. In fact, since the
  16557. 'basic_block' data type is used to represent blocks in both major
  16558. intermediate representations of GCC ('GIMPLE' and RTL), there are
  16559. pointers to the head and end of a basic block for both representations,
  16560. stored in intermediate representation specific data in the 'il' field of
  16561. 'struct basic_block_def'.
  16562. For RTL, these pointers are 'BB_HEAD' and 'BB_END'.
  16563. In the RTL representation of a function, the instruction stream
  16564. contains not only the "real" instructions, but also "notes" or "insn
  16565. notes" (to distinguish them from "reg notes"). Any function that moves
  16566. or duplicates the basic blocks needs to take care of updating of these
  16567. notes. Many of these notes expect that the instruction stream consists
  16568. of linear regions, so updating can sometimes be tedious. All types of
  16569. insn notes are defined in 'insn-notes.def'.
  16570. In the RTL function representation, the instructions contained in a
  16571. basic block always follow a 'NOTE_INSN_BASIC_BLOCK', but zero or more
  16572. 'CODE_LABEL' nodes can precede the block note. A basic block ends with
  16573. a control flow instruction or with the last instruction before the next
  16574. 'CODE_LABEL' or 'NOTE_INSN_BASIC_BLOCK'. By definition, a 'CODE_LABEL'
  16575. cannot appear in the middle of the instruction stream of a basic block.
  16576. In addition to notes, the jump table vectors are also represented as
  16577. "pseudo-instructions" inside the insn stream. These vectors never
  16578. appear in the basic block and should always be placed just after the
  16579. table jump instructions referencing them. After removing the table-jump
  16580. it is often difficult to eliminate the code computing the address and
  16581. referencing the vector, so cleaning up these vectors is postponed until
  16582. after liveness analysis. Thus the jump table vectors may appear in the
  16583. insn stream unreferenced and without any purpose. Before any edge is
  16584. made "fall-thru", the existence of such construct in the way needs to be
  16585. checked by calling 'can_fallthru' function.
  16586. For the 'GIMPLE' representation, the PHI nodes and statements contained
  16587. in a basic block are in a 'gimple_seq' pointed to by the basic block
  16588. intermediate language specific pointers. Abstract containers and
  16589. iterators are used to access the PHI nodes and statements in a basic
  16590. blocks. These iterators are called "GIMPLE statement iterators" (GSIs).
  16591. Grep for '^gsi' in the various 'gimple-*' and 'tree-*' files. There is
  16592. a 'gimple_stmt_iterator' type for iterating over all kinds of statement,
  16593. and a 'gphi_iterator' subclass for iterating over PHI nodes. The
  16594. following snippet will pretty-print all PHI nodes the statements of the
  16595. current function in the GIMPLE representation.
  16596. basic_block bb;
  16597. FOR_EACH_BB (bb)
  16598. {
  16599. gphi_iterator pi;
  16600. gimple_stmt_iterator si;
  16601. for (pi = gsi_start_phis (bb); !gsi_end_p (pi); gsi_next (&pi))
  16602. {
  16603. gphi *phi = pi.phi ();
  16604. print_gimple_stmt (dump_file, phi, 0, TDF_SLIM);
  16605. }
  16606. for (si = gsi_start_bb (bb); !gsi_end_p (si); gsi_next (&si))
  16607. {
  16608. gimple stmt = gsi_stmt (si);
  16609. print_gimple_stmt (dump_file, stmt, 0, TDF_SLIM);
  16610. }
  16611. }
  16612. 
  16613. File: gccint.info, Node: Edges, Next: Profile information, Prev: Basic Blocks, Up: Control Flow
  16614. 15.2 Edges
  16615. ==========
  16616. Edges represent possible control flow transfers from the end of some
  16617. basic block A to the head of another basic block B. We say that A is a
  16618. predecessor of B, and B is a successor of A. Edges are represented in
  16619. GCC with the 'edge' data type. Each 'edge' acts as a link between two
  16620. basic blocks: The 'src' member of an edge points to the predecessor
  16621. basic block of the 'dest' basic block. The members 'preds' and 'succs'
  16622. of the 'basic_block' data type point to type-safe vectors of edges to
  16623. the predecessors and successors of the block.
  16624. When walking the edges in an edge vector, "edge iterators" should be
  16625. used. Edge iterators are constructed using the 'edge_iterator' data
  16626. structure and several methods are available to operate on them:
  16627. 'ei_start'
  16628. This function initializes an 'edge_iterator' that points to the
  16629. first edge in a vector of edges.
  16630. 'ei_last'
  16631. This function initializes an 'edge_iterator' that points to the
  16632. last edge in a vector of edges.
  16633. 'ei_end_p'
  16634. This predicate is 'true' if an 'edge_iterator' represents the last
  16635. edge in an edge vector.
  16636. 'ei_one_before_end_p'
  16637. This predicate is 'true' if an 'edge_iterator' represents the
  16638. second last edge in an edge vector.
  16639. 'ei_next'
  16640. This function takes a pointer to an 'edge_iterator' and makes it
  16641. point to the next edge in the sequence.
  16642. 'ei_prev'
  16643. This function takes a pointer to an 'edge_iterator' and makes it
  16644. point to the previous edge in the sequence.
  16645. 'ei_edge'
  16646. This function returns the 'edge' currently pointed to by an
  16647. 'edge_iterator'.
  16648. 'ei_safe_safe'
  16649. This function returns the 'edge' currently pointed to by an
  16650. 'edge_iterator', but returns 'NULL' if the iterator is pointing at
  16651. the end of the sequence. This function has been provided for
  16652. existing code makes the assumption that a 'NULL' edge indicates the
  16653. end of the sequence.
  16654. The convenience macro 'FOR_EACH_EDGE' can be used to visit all of the
  16655. edges in a sequence of predecessor or successor edges. It must not be
  16656. used when an element might be removed during the traversal, otherwise
  16657. elements will be missed. Here is an example of how to use the macro:
  16658. edge e;
  16659. edge_iterator ei;
  16660. FOR_EACH_EDGE (e, ei, bb->succs)
  16661. {
  16662. if (e->flags & EDGE_FALLTHRU)
  16663. break;
  16664. }
  16665. There are various reasons why control flow may transfer from one block
  16666. to another. One possibility is that some instruction, for example a
  16667. 'CODE_LABEL', in a linearized instruction stream just always starts a
  16668. new basic block. In this case a "fall-thru" edge links the basic block
  16669. to the first following basic block. But there are several other reasons
  16670. why edges may be created. The 'flags' field of the 'edge' data type is
  16671. used to store information about the type of edge we are dealing with.
  16672. Each edge is of one of the following types:
  16673. _jump_
  16674. No type flags are set for edges corresponding to jump instructions.
  16675. These edges are used for unconditional or conditional jumps and in
  16676. RTL also for table jumps. They are the easiest to manipulate as
  16677. they may be freely redirected when the flow graph is not in SSA
  16678. form.
  16679. _fall-thru_
  16680. Fall-thru edges are present in case where the basic block may
  16681. continue execution to the following one without branching. These
  16682. edges have the 'EDGE_FALLTHRU' flag set. Unlike other types of
  16683. edges, these edges must come into the basic block immediately
  16684. following in the instruction stream. The function
  16685. 'force_nonfallthru' is available to insert an unconditional jump in
  16686. the case that redirection is needed. Note that this may require
  16687. creation of a new basic block.
  16688. _exception handling_
  16689. Exception handling edges represent possible control transfers from
  16690. a trapping instruction to an exception handler. The definition of
  16691. "trapping" varies. In C++, only function calls can throw, but for
  16692. Ada exceptions like division by zero or segmentation fault are
  16693. defined and thus each instruction possibly throwing this kind of
  16694. exception needs to be handled as control flow instruction.
  16695. Exception edges have the 'EDGE_ABNORMAL' and 'EDGE_EH' flags set.
  16696. When updating the instruction stream it is easy to change possibly
  16697. trapping instruction to non-trapping, by simply removing the
  16698. exception edge. The opposite conversion is difficult, but should
  16699. not happen anyway. The edges can be eliminated via
  16700. 'purge_dead_edges' call.
  16701. In the RTL representation, the destination of an exception edge is
  16702. specified by 'REG_EH_REGION' note attached to the insn. In case of
  16703. a trapping call the 'EDGE_ABNORMAL_CALL' flag is set too. In the
  16704. 'GIMPLE' representation, this extra flag is not set.
  16705. In the RTL representation, the predicate 'may_trap_p' may be used
  16706. to check whether instruction still may trap or not. For the tree
  16707. representation, the 'tree_could_trap_p' predicate is available, but
  16708. this predicate only checks for possible memory traps, as in
  16709. dereferencing an invalid pointer location.
  16710. _sibling calls_
  16711. Sibling calls or tail calls terminate the function in a
  16712. non-standard way and thus an edge to the exit must be present.
  16713. 'EDGE_SIBCALL' and 'EDGE_ABNORMAL' are set in such case. These
  16714. edges only exist in the RTL representation.
  16715. _computed jumps_
  16716. Computed jumps contain edges to all labels in the function
  16717. referenced from the code. All those edges have 'EDGE_ABNORMAL'
  16718. flag set. The edges used to represent computed jumps often cause
  16719. compile time performance problems, since functions consisting of
  16720. many taken labels and many computed jumps may have _very_ dense
  16721. flow graphs, so these edges need to be handled with special care.
  16722. During the earlier stages of the compilation process, GCC tries to
  16723. avoid such dense flow graphs by factoring computed jumps. For
  16724. example, given the following series of jumps,
  16725. goto *x;
  16726. [ ... ]
  16727. goto *x;
  16728. [ ... ]
  16729. goto *x;
  16730. [ ... ]
  16731. factoring the computed jumps results in the following code sequence
  16732. which has a much simpler flow graph:
  16733. goto y;
  16734. [ ... ]
  16735. goto y;
  16736. [ ... ]
  16737. goto y;
  16738. [ ... ]
  16739. y:
  16740. goto *x;
  16741. However, the classic problem with this transformation is that it
  16742. has a runtime cost in there resulting code: An extra jump.
  16743. Therefore, the computed jumps are un-factored in the later passes
  16744. of the compiler (in the pass called
  16745. 'pass_duplicate_computed_gotos'). Be aware of that when you work
  16746. on passes in that area. There have been numerous examples already
  16747. where the compile time for code with unfactored computed jumps
  16748. caused some serious headaches.
  16749. _nonlocal goto handlers_
  16750. GCC allows nested functions to return into caller using a 'goto' to
  16751. a label passed to as an argument to the callee. The labels passed
  16752. to nested functions contain special code to cleanup after function
  16753. call. Such sections of code are referred to as "nonlocal goto
  16754. receivers". If a function contains such nonlocal goto receivers,
  16755. an edge from the call to the label is created with the
  16756. 'EDGE_ABNORMAL' and 'EDGE_ABNORMAL_CALL' flags set.
  16757. _function entry points_
  16758. By definition, execution of function starts at basic block 0, so
  16759. there is always an edge from the 'ENTRY_BLOCK_PTR' to basic block
  16760. 0. There is no 'GIMPLE' representation for alternate entry points
  16761. at this moment. In RTL, alternate entry points are specified by
  16762. 'CODE_LABEL' with 'LABEL_ALTERNATE_NAME' defined. This feature is
  16763. currently used for multiple entry point prologues and is limited to
  16764. post-reload passes only. This can be used by back-ends to emit
  16765. alternate prologues for functions called from different contexts.
  16766. In future full support for multiple entry functions defined by
  16767. Fortran 90 needs to be implemented.
  16768. _function exits_
  16769. In the pre-reload representation a function terminates after the
  16770. last instruction in the insn chain and no explicit return
  16771. instructions are used. This corresponds to the fall-thru edge into
  16772. exit block. After reload, optimal RTL epilogues are used that use
  16773. explicit (conditional) return instructions that are represented by
  16774. edges with no flags set.
  16775. 
  16776. File: gccint.info, Node: Profile information, Next: Maintaining the CFG, Prev: Edges, Up: Control Flow
  16777. 15.3 Profile information
  16778. ========================
  16779. In many cases a compiler must make a choice whether to trade speed in
  16780. one part of code for speed in another, or to trade code size for code
  16781. speed. In such cases it is useful to know information about how often
  16782. some given block will be executed. That is the purpose for maintaining
  16783. profile within the flow graph. GCC can handle profile information
  16784. obtained through "profile feedback", but it can also estimate branch
  16785. probabilities based on statics and heuristics.
  16786. The feedback based profile is produced by compiling the program with
  16787. instrumentation, executing it on a train run and reading the numbers of
  16788. executions of basic blocks and edges back to the compiler while
  16789. re-compiling the program to produce the final executable. This method
  16790. provides very accurate information about where a program spends most of
  16791. its time on the train run. Whether it matches the average run of course
  16792. depends on the choice of train data set, but several studies have shown
  16793. that the behavior of a program usually changes just marginally over
  16794. different data sets.
  16795. When profile feedback is not available, the compiler may be asked to
  16796. attempt to predict the behavior of each branch in the program using a
  16797. set of heuristics (see 'predict.def' for details) and compute estimated
  16798. frequencies of each basic block by propagating the probabilities over
  16799. the graph.
  16800. Each 'basic_block' contains two integer fields to represent profile
  16801. information: 'frequency' and 'count'. The 'frequency' is an estimation
  16802. how often is basic block executed within a function. It is represented
  16803. as an integer scaled in the range from 0 to 'BB_FREQ_BASE'. The most
  16804. frequently executed basic block in function is initially set to
  16805. 'BB_FREQ_BASE' and the rest of frequencies are scaled accordingly.
  16806. During optimization, the frequency of the most frequent basic block can
  16807. both decrease (for instance by loop unrolling) or grow (for instance by
  16808. cross-jumping optimization), so scaling sometimes has to be performed
  16809. multiple times.
  16810. The 'count' contains hard-counted numbers of execution measured during
  16811. training runs and is nonzero only when profile feedback is available.
  16812. This value is represented as the host's widest integer (typically a 64
  16813. bit integer) of the special type 'gcov_type'.
  16814. Most optimization passes can use only the frequency information of a
  16815. basic block, but a few passes may want to know hard execution counts.
  16816. The frequencies should always match the counts after scaling, however
  16817. during updating of the profile information numerical error may
  16818. accumulate into quite large errors.
  16819. Each edge also contains a branch probability field: an integer in the
  16820. range from 0 to 'REG_BR_PROB_BASE'. It represents probability of
  16821. passing control from the end of the 'src' basic block to the 'dest'
  16822. basic block, i.e. the probability that control will flow along this
  16823. edge. The 'EDGE_FREQUENCY' macro is available to compute how frequently
  16824. a given edge is taken. There is a 'count' field for each edge as well,
  16825. representing same information as for a basic block.
  16826. The basic block frequencies are not represented in the instruction
  16827. stream, but in the RTL representation the edge frequencies are
  16828. represented for conditional jumps (via the 'REG_BR_PROB' macro) since
  16829. they are used when instructions are output to the assembly file and the
  16830. flow graph is no longer maintained.
  16831. The probability that control flow arrives via a given edge to its
  16832. destination basic block is called "reverse probability" and is not
  16833. directly represented, but it may be easily computed from frequencies of
  16834. basic blocks.
  16835. Updating profile information is a delicate task that can unfortunately
  16836. not be easily integrated with the CFG manipulation API. Many of the
  16837. functions and hooks to modify the CFG, such as
  16838. 'redirect_edge_and_branch', do not have enough information to easily
  16839. update the profile, so updating it is in the majority of cases left up
  16840. to the caller. It is difficult to uncover bugs in the profile updating
  16841. code, because they manifest themselves only by producing worse code, and
  16842. checking profile consistency is not possible because of numeric error
  16843. accumulation. Hence special attention needs to be given to this issue
  16844. in each pass that modifies the CFG.
  16845. It is important to point out that 'REG_BR_PROB_BASE' and 'BB_FREQ_BASE'
  16846. are both set low enough to be possible to compute second power of any
  16847. frequency or probability in the flow graph, it is not possible to even
  16848. square the 'count' field, as modern CPUs are fast enough to execute
  16849. $2^32$ operations quickly.
  16850. 
  16851. File: gccint.info, Node: Maintaining the CFG, Next: Liveness information, Prev: Profile information, Up: Control Flow
  16852. 15.4 Maintaining the CFG
  16853. ========================
  16854. An important task of each compiler pass is to keep both the control flow
  16855. graph and all profile information up-to-date. Reconstruction of the
  16856. control flow graph after each pass is not an option, since it may be
  16857. very expensive and lost profile information cannot be reconstructed at
  16858. all.
  16859. GCC has two major intermediate representations, and both use the
  16860. 'basic_block' and 'edge' data types to represent control flow. Both
  16861. representations share as much of the CFG maintenance code as possible.
  16862. For each representation, a set of "hooks" is defined so that each
  16863. representation can provide its own implementation of CFG manipulation
  16864. routines when necessary. These hooks are defined in 'cfghooks.h'.
  16865. There are hooks for almost all common CFG manipulations, including block
  16866. splitting and merging, edge redirection and creating and deleting basic
  16867. blocks. These hooks should provide everything you need to maintain and
  16868. manipulate the CFG in both the RTL and 'GIMPLE' representation.
  16869. At the moment, the basic block boundaries are maintained transparently
  16870. when modifying instructions, so there rarely is a need to move them
  16871. manually (such as in case someone wants to output instruction outside
  16872. basic block explicitly).
  16873. In the RTL representation, each instruction has a 'BLOCK_FOR_INSN'
  16874. value that represents pointer to the basic block that contains the
  16875. instruction. In the 'GIMPLE' representation, the function 'gimple_bb'
  16876. returns a pointer to the basic block containing the queried statement.
  16877. When changes need to be applied to a function in its 'GIMPLE'
  16878. representation, "GIMPLE statement iterators" should be used. These
  16879. iterators provide an integrated abstraction of the flow graph and the
  16880. instruction stream. Block statement iterators are constructed using the
  16881. 'gimple_stmt_iterator' data structure and several modifiers are
  16882. available, including the following:
  16883. 'gsi_start'
  16884. This function initializes a 'gimple_stmt_iterator' that points to
  16885. the first non-empty statement in a basic block.
  16886. 'gsi_last'
  16887. This function initializes a 'gimple_stmt_iterator' that points to
  16888. the last statement in a basic block.
  16889. 'gsi_end_p'
  16890. This predicate is 'true' if a 'gimple_stmt_iterator' represents the
  16891. end of a basic block.
  16892. 'gsi_next'
  16893. This function takes a 'gimple_stmt_iterator' and makes it point to
  16894. its successor.
  16895. 'gsi_prev'
  16896. This function takes a 'gimple_stmt_iterator' and makes it point to
  16897. its predecessor.
  16898. 'gsi_insert_after'
  16899. This function inserts a statement after the 'gimple_stmt_iterator'
  16900. passed in. The final parameter determines whether the statement
  16901. iterator is updated to point to the newly inserted statement, or
  16902. left pointing to the original statement.
  16903. 'gsi_insert_before'
  16904. This function inserts a statement before the 'gimple_stmt_iterator'
  16905. passed in. The final parameter determines whether the statement
  16906. iterator is updated to point to the newly inserted statement, or
  16907. left pointing to the original statement.
  16908. 'gsi_remove'
  16909. This function removes the 'gimple_stmt_iterator' passed in and
  16910. rechains the remaining statements in a basic block, if any.
  16911. In the RTL representation, the macros 'BB_HEAD' and 'BB_END' may be
  16912. used to get the head and end 'rtx' of a basic block. No abstract
  16913. iterators are defined for traversing the insn chain, but you can just
  16914. use 'NEXT_INSN' and 'PREV_INSN' instead. *Note Insns::.
  16915. Usually a code manipulating pass simplifies the instruction stream and
  16916. the flow of control, possibly eliminating some edges. This may for
  16917. example happen when a conditional jump is replaced with an unconditional
  16918. jump. Updating of edges is not transparent and each optimization pass
  16919. is required to do so manually. However only few cases occur in
  16920. practice. The pass may call 'purge_dead_edges' on a given basic block
  16921. to remove superfluous edges, if any.
  16922. Another common scenario is redirection of branch instructions, but this
  16923. is best modeled as redirection of edges in the control flow graph and
  16924. thus use of 'redirect_edge_and_branch' is preferred over more low level
  16925. functions, such as 'redirect_jump' that operate on RTL chain only. The
  16926. CFG hooks defined in 'cfghooks.h' should provide the complete API
  16927. required for manipulating and maintaining the CFG.
  16928. It is also possible that a pass has to insert control flow instruction
  16929. into the middle of a basic block, thus creating an entry point in the
  16930. middle of the basic block, which is impossible by definition: The block
  16931. must be split to make sure it only has one entry point, i.e. the head of
  16932. the basic block. The CFG hook 'split_block' may be used when an
  16933. instruction in the middle of a basic block has to become the target of a
  16934. jump or branch instruction.
  16935. For a global optimizer, a common operation is to split edges in the
  16936. flow graph and insert instructions on them. In the RTL representation,
  16937. this can be easily done using the 'insert_insn_on_edge' function that
  16938. emits an instruction "on the edge", caching it for a later
  16939. 'commit_edge_insertions' call that will take care of moving the inserted
  16940. instructions off the edge into the instruction stream contained in a
  16941. basic block. This includes the creation of new basic blocks where
  16942. needed. In the 'GIMPLE' representation, the equivalent functions are
  16943. 'gsi_insert_on_edge' which inserts a block statement iterator on an
  16944. edge, and 'gsi_commit_edge_inserts' which flushes the instruction to
  16945. actual instruction stream.
  16946. While debugging the optimization pass, the 'verify_flow_info' function
  16947. may be useful to find bugs in the control flow graph updating code.
  16948. 
  16949. File: gccint.info, Node: Liveness information, Prev: Maintaining the CFG, Up: Control Flow
  16950. 15.5 Liveness information
  16951. =========================
  16952. Liveness information is useful to determine whether some register is
  16953. "live" at given point of program, i.e. that it contains a value that may
  16954. be used at a later point in the program. This information is used, for
  16955. instance, during register allocation, as the pseudo registers only need
  16956. to be assigned to a unique hard register or to a stack slot if they are
  16957. live. The hard registers and stack slots may be freely reused for other
  16958. values when a register is dead.
  16959. Liveness information is available in the back end starting with
  16960. 'pass_df_initialize' and ending with 'pass_df_finish'. Three flavors of
  16961. live analysis are available: With 'LR', it is possible to determine at
  16962. any point 'P' in the function if the register may be used on some path
  16963. from 'P' to the end of the function. With 'UR', it is possible to
  16964. determine if there is a path from the beginning of the function to 'P'
  16965. that defines the variable. 'LIVE' is the intersection of the 'LR' and
  16966. 'UR' and a variable is live at 'P' if there is both an assignment that
  16967. reaches it from the beginning of the function and a use that can be
  16968. reached on some path from 'P' to the end of the function.
  16969. In general 'LIVE' is the most useful of the three. The macros
  16970. 'DF_[LR,UR,LIVE]_[IN,OUT]' can be used to access this information. The
  16971. macros take a basic block number and return a bitmap that is indexed by
  16972. the register number. This information is only guaranteed to be up to
  16973. date after calls are made to 'df_analyze'. See the file 'df-core.c' for
  16974. details on using the dataflow.
  16975. The liveness information is stored partly in the RTL instruction stream
  16976. and partly in the flow graph. Local information is stored in the
  16977. instruction stream: Each instruction may contain 'REG_DEAD' notes
  16978. representing that the value of a given register is no longer needed, or
  16979. 'REG_UNUSED' notes representing that the value computed by the
  16980. instruction is never used. The second is useful for instructions
  16981. computing multiple values at once.
  16982. 
  16983. File: gccint.info, Node: Loop Analysis and Representation, Next: Machine Desc, Prev: Control Flow, Up: Top
  16984. 16 Analysis and Representation of Loops
  16985. ***************************************
  16986. GCC provides extensive infrastructure for work with natural loops, i.e.,
  16987. strongly connected components of CFG with only one entry block. This
  16988. chapter describes representation of loops in GCC, both on GIMPLE and in
  16989. RTL, as well as the interfaces to loop-related analyses (induction
  16990. variable analysis and number of iterations analysis).
  16991. * Menu:
  16992. * Loop representation:: Representation and analysis of loops.
  16993. * Loop querying:: Getting information about loops.
  16994. * Loop manipulation:: Loop manipulation functions.
  16995. * LCSSA:: Loop-closed SSA form.
  16996. * Scalar evolutions:: Induction variables on GIMPLE.
  16997. * loop-iv:: Induction variables on RTL.
  16998. * Number of iterations:: Number of iterations analysis.
  16999. * Dependency analysis:: Data dependency analysis.
  17000. 
  17001. File: gccint.info, Node: Loop representation, Next: Loop querying, Up: Loop Analysis and Representation
  17002. 16.1 Loop representation
  17003. ========================
  17004. This chapter describes the representation of loops in GCC, and functions
  17005. that can be used to build, modify and analyze this representation. Most
  17006. of the interfaces and data structures are declared in 'cfgloop.h'. Loop
  17007. structures are analyzed and this information disposed or updated at the
  17008. discretion of individual passes. Still most of the generic CFG
  17009. manipulation routines are aware of loop structures and try to keep them
  17010. up-to-date. By this means an increasing part of the compilation
  17011. pipeline is setup to maintain loop structure across passes to allow
  17012. attaching meta information to individual loops for consumption by later
  17013. passes.
  17014. In general, a natural loop has one entry block (header) and possibly
  17015. several back edges (latches) leading to the header from the inside of
  17016. the loop. Loops with several latches may appear if several loops share
  17017. a single header, or if there is a branching in the middle of the loop.
  17018. The representation of loops in GCC however allows only loops with a
  17019. single latch. During loop analysis, headers of such loops are split and
  17020. forwarder blocks are created in order to disambiguate their structures.
  17021. Heuristic based on profile information and structure of the induction
  17022. variables in the loops is used to determine whether the latches
  17023. correspond to sub-loops or to control flow in a single loop. This means
  17024. that the analysis sometimes changes the CFG, and if you run it in the
  17025. middle of an optimization pass, you must be able to deal with the new
  17026. blocks. You may avoid CFG changes by passing
  17027. 'LOOPS_MAY_HAVE_MULTIPLE_LATCHES' flag to the loop discovery, note
  17028. however that most other loop manipulation functions will not work
  17029. correctly for loops with multiple latch edges (the functions that only
  17030. query membership of blocks to loops and subloop relationships, or
  17031. enumerate and test loop exits, can be expected to work).
  17032. Body of the loop is the set of blocks that are dominated by its header,
  17033. and reachable from its latch against the direction of edges in CFG. The
  17034. loops are organized in a containment hierarchy (tree) such that all the
  17035. loops immediately contained inside loop L are the children of L in the
  17036. tree. This tree is represented by the 'struct loops' structure. The
  17037. root of this tree is a fake loop that contains all blocks in the
  17038. function. Each of the loops is represented in a 'struct loop'
  17039. structure. Each loop is assigned an index ('num' field of the 'struct
  17040. loop' structure), and the pointer to the loop is stored in the
  17041. corresponding field of the 'larray' vector in the loops structure. The
  17042. indices do not have to be continuous, there may be empty ('NULL')
  17043. entries in the 'larray' created by deleting loops. Also, there is no
  17044. guarantee on the relative order of a loop and its subloops in the
  17045. numbering. The index of a loop never changes.
  17046. The entries of the 'larray' field should not be accessed directly. The
  17047. function 'get_loop' returns the loop description for a loop with the
  17048. given index. 'number_of_loops' function returns number of loops in the
  17049. function. To traverse all loops, use 'FOR_EACH_LOOP' macro. The
  17050. 'flags' argument of the macro is used to determine the direction of
  17051. traversal and the set of loops visited. Each loop is guaranteed to be
  17052. visited exactly once, regardless of the changes to the loop tree, and
  17053. the loops may be removed during the traversal. The newly created loops
  17054. are never traversed, if they need to be visited, this must be done
  17055. separately after their creation.
  17056. Each basic block contains the reference to the innermost loop it
  17057. belongs to ('loop_father'). For this reason, it is only possible to
  17058. have one 'struct loops' structure initialized at the same time for each
  17059. CFG. The global variable 'current_loops' contains the 'struct loops'
  17060. structure. Many of the loop manipulation functions assume that
  17061. dominance information is up-to-date.
  17062. The loops are analyzed through 'loop_optimizer_init' function. The
  17063. argument of this function is a set of flags represented in an integer
  17064. bitmask. These flags specify what other properties of the loop
  17065. structures should be calculated/enforced and preserved later:
  17066. * 'LOOPS_MAY_HAVE_MULTIPLE_LATCHES': If this flag is set, no changes
  17067. to CFG will be performed in the loop analysis, in particular, loops
  17068. with multiple latch edges will not be disambiguated. If a loop has
  17069. multiple latches, its latch block is set to NULL. Most of the loop
  17070. manipulation functions will not work for loops in this shape. No
  17071. other flags that require CFG changes can be passed to
  17072. loop_optimizer_init.
  17073. * 'LOOPS_HAVE_PREHEADERS': Forwarder blocks are created in such a way
  17074. that each loop has only one entry edge, and additionally, the
  17075. source block of this entry edge has only one successor. This
  17076. creates a natural place where the code can be moved out of the
  17077. loop, and ensures that the entry edge of the loop leads from its
  17078. immediate super-loop.
  17079. * 'LOOPS_HAVE_SIMPLE_LATCHES': Forwarder blocks are created to force
  17080. the latch block of each loop to have only one successor. This
  17081. ensures that the latch of the loop does not belong to any of its
  17082. sub-loops, and makes manipulation with the loops significantly
  17083. easier. Most of the loop manipulation functions assume that the
  17084. loops are in this shape. Note that with this flag, the "normal"
  17085. loop without any control flow inside and with one exit consists of
  17086. two basic blocks.
  17087. * 'LOOPS_HAVE_MARKED_IRREDUCIBLE_REGIONS': Basic blocks and edges in
  17088. the strongly connected components that are not natural loops (have
  17089. more than one entry block) are marked with 'BB_IRREDUCIBLE_LOOP'
  17090. and 'EDGE_IRREDUCIBLE_LOOP' flags. The flag is not set for blocks
  17091. and edges that belong to natural loops that are in such an
  17092. irreducible region (but it is set for the entry and exit edges of
  17093. such a loop, if they lead to/from this region).
  17094. * 'LOOPS_HAVE_RECORDED_EXITS': The lists of exits are recorded and
  17095. updated for each loop. This makes some functions (e.g.,
  17096. 'get_loop_exit_edges') more efficient. Some functions (e.g.,
  17097. 'single_exit') can be used only if the lists of exits are recorded.
  17098. These properties may also be computed/enforced later, using functions
  17099. 'create_preheaders', 'force_single_succ_latches',
  17100. 'mark_irreducible_loops' and 'record_loop_exits'. The properties can be
  17101. queried using 'loops_state_satisfies_p'.
  17102. The memory occupied by the loops structures should be freed with
  17103. 'loop_optimizer_finalize' function. When loop structures are setup to
  17104. be preserved across passes this function reduces the information to be
  17105. kept up-to-date to a minimum (only 'LOOPS_MAY_HAVE_MULTIPLE_LATCHES'
  17106. set).
  17107. The CFG manipulation functions in general do not update loop
  17108. structures. Specialized versions that additionally do so are provided
  17109. for the most common tasks. On GIMPLE, 'cleanup_tree_cfg_loop' function
  17110. can be used to cleanup CFG while updating the loops structures if
  17111. 'current_loops' is set.
  17112. At the moment loop structure is preserved from the start of GIMPLE loop
  17113. optimizations until the end of RTL loop optimizations. During this time
  17114. a loop can be tracked by its 'struct loop' and number.
  17115. 
  17116. File: gccint.info, Node: Loop querying, Next: Loop manipulation, Prev: Loop representation, Up: Loop Analysis and Representation
  17117. 16.2 Loop querying
  17118. ==================
  17119. The functions to query the information about loops are declared in
  17120. 'cfgloop.h'. Some of the information can be taken directly from the
  17121. structures. 'loop_father' field of each basic block contains the
  17122. innermost loop to that the block belongs. The most useful fields of
  17123. loop structure (that are kept up-to-date at all times) are:
  17124. * 'header', 'latch': Header and latch basic blocks of the loop.
  17125. * 'num_nodes': Number of basic blocks in the loop (including the
  17126. basic blocks of the sub-loops).
  17127. * 'outer', 'inner', 'next': The super-loop, the first sub-loop, and
  17128. the sibling of the loop in the loops tree.
  17129. There are other fields in the loop structures, many of them used only
  17130. by some of the passes, or not updated during CFG changes; in general,
  17131. they should not be accessed directly.
  17132. The most important functions to query loop structures are:
  17133. * 'loop_depth': The depth of the loop in the loops tree, i.e., the
  17134. number of super-loops of the loop.
  17135. * 'flow_loops_dump': Dumps the information about loops to a file.
  17136. * 'verify_loop_structure': Checks consistency of the loop structures.
  17137. * 'loop_latch_edge': Returns the latch edge of a loop.
  17138. * 'loop_preheader_edge': If loops have preheaders, returns the
  17139. preheader edge of a loop.
  17140. * 'flow_loop_nested_p': Tests whether loop is a sub-loop of another
  17141. loop.
  17142. * 'flow_bb_inside_loop_p': Tests whether a basic block belongs to a
  17143. loop (including its sub-loops).
  17144. * 'find_common_loop': Finds the common super-loop of two loops.
  17145. * 'superloop_at_depth': Returns the super-loop of a loop with the
  17146. given depth.
  17147. * 'tree_num_loop_insns', 'num_loop_insns': Estimates the number of
  17148. insns in the loop, on GIMPLE and on RTL.
  17149. * 'loop_exit_edge_p': Tests whether edge is an exit from a loop.
  17150. * 'mark_loop_exit_edges': Marks all exit edges of all loops with
  17151. 'EDGE_LOOP_EXIT' flag.
  17152. * 'get_loop_body', 'get_loop_body_in_dom_order',
  17153. 'get_loop_body_in_bfs_order': Enumerates the basic blocks in the
  17154. loop in depth-first search order in reversed CFG, ordered by
  17155. dominance relation, and breath-first search order, respectively.
  17156. * 'single_exit': Returns the single exit edge of the loop, or 'NULL'
  17157. if the loop has more than one exit. You can only use this function
  17158. if LOOPS_HAVE_MARKED_SINGLE_EXITS property is used.
  17159. * 'get_loop_exit_edges': Enumerates the exit edges of a loop.
  17160. * 'just_once_each_iteration_p': Returns true if the basic block is
  17161. executed exactly once during each iteration of a loop (that is, it
  17162. does not belong to a sub-loop, and it dominates the latch of the
  17163. loop).
  17164. 
  17165. File: gccint.info, Node: Loop manipulation, Next: LCSSA, Prev: Loop querying, Up: Loop Analysis and Representation
  17166. 16.3 Loop manipulation
  17167. ======================
  17168. The loops tree can be manipulated using the following functions:
  17169. * 'flow_loop_tree_node_add': Adds a node to the tree.
  17170. * 'flow_loop_tree_node_remove': Removes a node from the tree.
  17171. * 'add_bb_to_loop': Adds a basic block to a loop.
  17172. * 'remove_bb_from_loops': Removes a basic block from loops.
  17173. Most low-level CFG functions update loops automatically. The following
  17174. functions handle some more complicated cases of CFG manipulations:
  17175. * 'remove_path': Removes an edge and all blocks it dominates.
  17176. * 'split_loop_exit_edge': Splits exit edge of the loop, ensuring that
  17177. PHI node arguments remain in the loop (this ensures that
  17178. loop-closed SSA form is preserved). Only useful on GIMPLE.
  17179. Finally, there are some higher-level loop transformations implemented.
  17180. While some of them are written so that they should work on non-innermost
  17181. loops, they are mostly untested in that case, and at the moment, they
  17182. are only reliable for the innermost loops:
  17183. * 'create_iv': Creates a new induction variable. Only works on
  17184. GIMPLE. 'standard_iv_increment_position' can be used to find a
  17185. suitable place for the iv increment.
  17186. * 'duplicate_loop_to_header_edge',
  17187. 'tree_duplicate_loop_to_header_edge': These functions (on RTL and
  17188. on GIMPLE) duplicate the body of the loop prescribed number of
  17189. times on one of the edges entering loop header, thus performing
  17190. either loop unrolling or loop peeling. 'can_duplicate_loop_p'
  17191. ('can_unroll_loop_p' on GIMPLE) must be true for the duplicated
  17192. loop.
  17193. * 'loop_version': This function creates a copy of a loop, and a
  17194. branch before them that selects one of them depending on the
  17195. prescribed condition. This is useful for optimizations that need
  17196. to verify some assumptions in runtime (one of the copies of the
  17197. loop is usually left unchanged, while the other one is transformed
  17198. in some way).
  17199. * 'tree_unroll_loop': Unrolls the loop, including peeling the extra
  17200. iterations to make the number of iterations divisible by unroll
  17201. factor, updating the exit condition, and removing the exits that
  17202. now cannot be taken. Works only on GIMPLE.
  17203. 
  17204. File: gccint.info, Node: LCSSA, Next: Scalar evolutions, Prev: Loop manipulation, Up: Loop Analysis and Representation
  17205. 16.4 Loop-closed SSA form
  17206. =========================
  17207. Throughout the loop optimizations on tree level, one extra condition is
  17208. enforced on the SSA form: No SSA name is used outside of the loop in
  17209. that it is defined. The SSA form satisfying this condition is called
  17210. "loop-closed SSA form" - LCSSA. To enforce LCSSA, PHI nodes must be
  17211. created at the exits of the loops for the SSA names that are used
  17212. outside of them. Only the real operands (not virtual SSA names) are
  17213. held in LCSSA, in order to save memory.
  17214. There are various benefits of LCSSA:
  17215. * Many optimizations (value range analysis, final value replacement)
  17216. are interested in the values that are defined in the loop and used
  17217. outside of it, i.e., exactly those for that we create new PHI
  17218. nodes.
  17219. * In induction variable analysis, it is not necessary to specify the
  17220. loop in that the analysis should be performed - the scalar
  17221. evolution analysis always returns the results with respect to the
  17222. loop in that the SSA name is defined.
  17223. * It makes updating of SSA form during loop transformations simpler.
  17224. Without LCSSA, operations like loop unrolling may force creation of
  17225. PHI nodes arbitrarily far from the loop, while in LCSSA, the SSA
  17226. form can be updated locally. However, since we only keep real
  17227. operands in LCSSA, we cannot use this advantage (we could have
  17228. local updating of real operands, but it is not much more efficient
  17229. than to use generic SSA form updating for it as well; the amount of
  17230. changes to SSA is the same).
  17231. However, it also means LCSSA must be updated. This is usually
  17232. straightforward, unless you create a new value in loop and use it
  17233. outside, or unless you manipulate loop exit edges (functions are
  17234. provided to make these manipulations simple).
  17235. 'rewrite_into_loop_closed_ssa' is used to rewrite SSA form to LCSSA, and
  17236. 'verify_loop_closed_ssa' to check that the invariant of LCSSA is
  17237. preserved.
  17238. 
  17239. File: gccint.info, Node: Scalar evolutions, Next: loop-iv, Prev: LCSSA, Up: Loop Analysis and Representation
  17240. 16.5 Scalar evolutions
  17241. ======================
  17242. Scalar evolutions (SCEV) are used to represent results of induction
  17243. variable analysis on GIMPLE. They enable us to represent variables with
  17244. complicated behavior in a simple and consistent way (we only use it to
  17245. express values of polynomial induction variables, but it is possible to
  17246. extend it). The interfaces to SCEV analysis are declared in
  17247. 'tree-scalar-evolution.h'. To use scalar evolutions analysis,
  17248. 'scev_initialize' must be used. To stop using SCEV, 'scev_finalize'
  17249. should be used. SCEV analysis caches results in order to save time and
  17250. memory. This cache however is made invalid by most of the loop
  17251. transformations, including removal of code. If such a transformation is
  17252. performed, 'scev_reset' must be called to clean the caches.
  17253. Given an SSA name, its behavior in loops can be analyzed using the
  17254. 'analyze_scalar_evolution' function. The returned SCEV however does not
  17255. have to be fully analyzed and it may contain references to other SSA
  17256. names defined in the loop. To resolve these (potentially recursive)
  17257. references, 'instantiate_parameters' or 'resolve_mixers' functions must
  17258. be used. 'instantiate_parameters' is useful when you use the results of
  17259. SCEV only for some analysis, and when you work with whole nest of loops
  17260. at once. It will try replacing all SSA names by their SCEV in all
  17261. loops, including the super-loops of the current loop, thus providing a
  17262. complete information about the behavior of the variable in the loop
  17263. nest. 'resolve_mixers' is useful if you work with only one loop at a
  17264. time, and if you possibly need to create code based on the value of the
  17265. induction variable. It will only resolve the SSA names defined in the
  17266. current loop, leaving the SSA names defined outside unchanged, even if
  17267. their evolution in the outer loops is known.
  17268. The SCEV is a normal tree expression, except for the fact that it may
  17269. contain several special tree nodes. One of them is 'SCEV_NOT_KNOWN',
  17270. used for SSA names whose value cannot be expressed. The other one is
  17271. 'POLYNOMIAL_CHREC'. Polynomial chrec has three arguments - base, step
  17272. and loop (both base and step may contain further polynomial chrecs).
  17273. Type of the expression and of base and step must be the same. A
  17274. variable has evolution 'POLYNOMIAL_CHREC(base, step, loop)' if it is (in
  17275. the specified loop) equivalent to 'x_1' in the following example
  17276. while (...)
  17277. {
  17278. x_1 = phi (base, x_2);
  17279. x_2 = x_1 + step;
  17280. }
  17281. Note that this includes the language restrictions on the operations.
  17282. For example, if we compile C code and 'x' has signed type, then the
  17283. overflow in addition would cause undefined behavior, and we may assume
  17284. that this does not happen. Hence, the value with this SCEV cannot
  17285. overflow (which restricts the number of iterations of such a loop).
  17286. In many cases, one wants to restrict the attention just to affine
  17287. induction variables. In this case, the extra expressive power of SCEV
  17288. is not useful, and may complicate the optimizations. In this case,
  17289. 'simple_iv' function may be used to analyze a value - the result is a
  17290. loop-invariant base and step.
  17291. 
  17292. File: gccint.info, Node: loop-iv, Next: Number of iterations, Prev: Scalar evolutions, Up: Loop Analysis and Representation
  17293. 16.6 IV analysis on RTL
  17294. =======================
  17295. The induction variable on RTL is simple and only allows analysis of
  17296. affine induction variables, and only in one loop at once. The interface
  17297. is declared in 'cfgloop.h'. Before analyzing induction variables in a
  17298. loop L, 'iv_analysis_loop_init' function must be called on L. After the
  17299. analysis (possibly calling 'iv_analysis_loop_init' for several loops) is
  17300. finished, 'iv_analysis_done' should be called. The following functions
  17301. can be used to access the results of the analysis:
  17302. * 'iv_analyze': Analyzes a single register used in the given insn.
  17303. If no use of the register in this insn is found, the following
  17304. insns are scanned, so that this function can be called on the insn
  17305. returned by get_condition.
  17306. * 'iv_analyze_result': Analyzes result of the assignment in the given
  17307. insn.
  17308. * 'iv_analyze_expr': Analyzes a more complicated expression. All its
  17309. operands are analyzed by 'iv_analyze', and hence they must be used
  17310. in the specified insn or one of the following insns.
  17311. The description of the induction variable is provided in 'struct
  17312. rtx_iv'. In order to handle subregs, the representation is a bit
  17313. complicated; if the value of the 'extend' field is not 'UNKNOWN', the
  17314. value of the induction variable in the i-th iteration is
  17315. delta + mult * extend_{extend_mode} (subreg_{mode} (base + i * step)),
  17316. with the following exception: if 'first_special' is true, then the
  17317. value in the first iteration (when 'i' is zero) is 'delta + mult *
  17318. base'. However, if 'extend' is equal to 'UNKNOWN', then 'first_special'
  17319. must be false, 'delta' 0, 'mult' 1 and the value in the i-th iteration
  17320. is
  17321. subreg_{mode} (base + i * step)
  17322. The function 'get_iv_value' can be used to perform these calculations.
  17323. 
  17324. File: gccint.info, Node: Number of iterations, Next: Dependency analysis, Prev: loop-iv, Up: Loop Analysis and Representation
  17325. 16.7 Number of iterations analysis
  17326. ==================================
  17327. Both on GIMPLE and on RTL, there are functions available to determine
  17328. the number of iterations of a loop, with a similar interface. The
  17329. number of iterations of a loop in GCC is defined as the number of
  17330. executions of the loop latch. In many cases, it is not possible to
  17331. determine the number of iterations unconditionally - the determined
  17332. number is correct only if some assumptions are satisfied. The analysis
  17333. tries to verify these conditions using the information contained in the
  17334. program; if it fails, the conditions are returned together with the
  17335. result. The following information and conditions are provided by the
  17336. analysis:
  17337. * 'assumptions': If this condition is false, the rest of the
  17338. information is invalid.
  17339. * 'noloop_assumptions' on RTL, 'may_be_zero' on GIMPLE: If this
  17340. condition is true, the loop exits in the first iteration.
  17341. * 'infinite': If this condition is true, the loop is infinite. This
  17342. condition is only available on RTL. On GIMPLE, conditions for
  17343. finiteness of the loop are included in 'assumptions'.
  17344. * 'niter_expr' on RTL, 'niter' on GIMPLE: The expression that gives
  17345. number of iterations. The number of iterations is defined as the
  17346. number of executions of the loop latch.
  17347. Both on GIMPLE and on RTL, it necessary for the induction variable
  17348. analysis framework to be initialized (SCEV on GIMPLE, loop-iv on RTL).
  17349. On GIMPLE, the results are stored to 'struct tree_niter_desc' structure.
  17350. Number of iterations before the loop is exited through a given exit can
  17351. be determined using 'number_of_iterations_exit' function. On RTL, the
  17352. results are returned in 'struct niter_desc' structure. The
  17353. corresponding function is named 'check_simple_exit'. There are also
  17354. functions that pass through all the exits of a loop and try to find one
  17355. with easy to determine number of iterations - 'find_loop_niter' on
  17356. GIMPLE and 'find_simple_exit' on RTL. Finally, there are functions that
  17357. provide the same information, but additionally cache it, so that
  17358. repeated calls to number of iterations are not so costly -
  17359. 'number_of_latch_executions' on GIMPLE and 'get_simple_loop_desc' on
  17360. RTL.
  17361. Note that some of these functions may behave slightly differently than
  17362. others - some of them return only the expression for the number of
  17363. iterations, and fail if there are some assumptions. The function
  17364. 'number_of_latch_executions' works only for single-exit loops. The
  17365. function 'number_of_cond_exit_executions' can be used to determine
  17366. number of executions of the exit condition of a single-exit loop (i.e.,
  17367. the 'number_of_latch_executions' increased by one).
  17368. On GIMPLE, below constraint flags affect semantics of some APIs of
  17369. number of iterations analyzer:
  17370. * 'LOOP_C_INFINITE': If this constraint flag is set, the loop is
  17371. known to be infinite. APIs like 'number_of_iterations_exit' can
  17372. return false directly without doing any analysis.
  17373. * 'LOOP_C_FINITE': If this constraint flag is set, the loop is known
  17374. to be finite, in other words, loop's number of iterations can be
  17375. computed with 'assumptions' be true.
  17376. Generally, the constraint flags are set/cleared by consumers which are
  17377. loop optimizers. It's also the consumers' responsibility to set/clear
  17378. constraints correctly. Failing to do that might result in hard to track
  17379. down bugs in scev/niter consumers. One typical use case is vectorizer:
  17380. it drives number of iterations analyzer by setting 'LOOP_C_FINITE' and
  17381. vectorizes possibly infinite loop by versioning loop with analysis
  17382. result. In return, constraints set by consumers can also help number of
  17383. iterations analyzer in following optimizers. For example, 'niter' of a
  17384. loop versioned under 'assumptions' is valid unconditionally.
  17385. Other constraints may be added in the future, for example, a constraint
  17386. indicating that loops' latch must roll thus 'may_be_zero' would be false
  17387. unconditionally.
  17388. 
  17389. File: gccint.info, Node: Dependency analysis, Prev: Number of iterations, Up: Loop Analysis and Representation
  17390. 16.8 Data Dependency Analysis
  17391. =============================
  17392. The code for the data dependence analysis can be found in
  17393. 'tree-data-ref.c' and its interface and data structures are described in
  17394. 'tree-data-ref.h'. The function that computes the data dependences for
  17395. all the array and pointer references for a given loop is
  17396. 'compute_data_dependences_for_loop'. This function is currently used by
  17397. the linear loop transform and the vectorization passes. Before calling
  17398. this function, one has to allocate two vectors: a first vector will
  17399. contain the set of data references that are contained in the analyzed
  17400. loop body, and the second vector will contain the dependence relations
  17401. between the data references. Thus if the vector of data references is
  17402. of size 'n', the vector containing the dependence relations will contain
  17403. 'n*n' elements. However if the analyzed loop contains side effects,
  17404. such as calls that potentially can interfere with the data references in
  17405. the current analyzed loop, the analysis stops while scanning the loop
  17406. body for data references, and inserts a single 'chrec_dont_know' in the
  17407. dependence relation array.
  17408. The data references are discovered in a particular order during the
  17409. scanning of the loop body: the loop body is analyzed in execution order,
  17410. and the data references of each statement are pushed at the end of the
  17411. data reference array. Two data references syntactically occur in the
  17412. program in the same order as in the array of data references. This
  17413. syntactic order is important in some classical data dependence tests,
  17414. and mapping this order to the elements of this array avoids costly
  17415. queries to the loop body representation.
  17416. Three types of data references are currently handled: ARRAY_REF,
  17417. INDIRECT_REF and COMPONENT_REF. The data structure for the data
  17418. reference is 'data_reference', where 'data_reference_p' is a name of a
  17419. pointer to the data reference structure. The structure contains the
  17420. following elements:
  17421. * 'base_object_info': Provides information about the base object of
  17422. the data reference and its access functions. These access
  17423. functions represent the evolution of the data reference in the loop
  17424. relative to its base, in keeping with the classical meaning of the
  17425. data reference access function for the support of arrays. For
  17426. example, for a reference 'a.b[i][j]', the base object is 'a.b' and
  17427. the access functions, one for each array subscript, are: '{i_init,
  17428. + i_step}_1, {j_init, +, j_step}_2'.
  17429. * 'first_location_in_loop': Provides information about the first
  17430. location accessed by the data reference in the loop and about the
  17431. access function used to represent evolution relative to this
  17432. location. This data is used to support pointers, and is not used
  17433. for arrays (for which we have base objects). Pointer accesses are
  17434. represented as a one-dimensional access that starts from the first
  17435. location accessed in the loop. For example:
  17436. for1 i
  17437. for2 j
  17438. *((int *)p + i + j) = a[i][j];
  17439. The access function of the pointer access is '{0, + 4B}_for2'
  17440. relative to 'p + i'. The access functions of the array are
  17441. '{i_init, + i_step}_for1' and '{j_init, +, j_step}_for2' relative
  17442. to 'a'.
  17443. Usually, the object the pointer refers to is either unknown, or we
  17444. cannot prove that the access is confined to the boundaries of a
  17445. certain object.
  17446. Two data references can be compared only if at least one of these
  17447. two representations has all its fields filled for both data
  17448. references.
  17449. The current strategy for data dependence tests is as follows: If
  17450. both 'a' and 'b' are represented as arrays, compare 'a.base_object'
  17451. and 'b.base_object'; if they are equal, apply dependence tests (use
  17452. access functions based on base_objects). Else if both 'a' and 'b'
  17453. are represented as pointers, compare 'a.first_location' and
  17454. 'b.first_location'; if they are equal, apply dependence tests (use
  17455. access functions based on first location). However, if 'a' and 'b'
  17456. are represented differently, only try to prove that the bases are
  17457. definitely different.
  17458. * Aliasing information.
  17459. * Alignment information.
  17460. The structure describing the relation between two data references is
  17461. 'data_dependence_relation' and the shorter name for a pointer to such a
  17462. structure is 'ddr_p'. This structure contains:
  17463. * a pointer to each data reference,
  17464. * a tree node 'are_dependent' that is set to 'chrec_known' if the
  17465. analysis has proved that there is no dependence between these two
  17466. data references, 'chrec_dont_know' if the analysis was not able to
  17467. determine any useful result and potentially there could exist a
  17468. dependence between these data references, and 'are_dependent' is
  17469. set to 'NULL_TREE' if there exist a dependence relation between the
  17470. data references, and the description of this dependence relation is
  17471. given in the 'subscripts', 'dir_vects', and 'dist_vects' arrays,
  17472. * a boolean that determines whether the dependence relation can be
  17473. represented by a classical distance vector,
  17474. * an array 'subscripts' that contains a description of each subscript
  17475. of the data references. Given two array accesses a subscript is
  17476. the tuple composed of the access functions for a given dimension.
  17477. For example, given 'A[f1][f2][f3]' and 'B[g1][g2][g3]', there are
  17478. three subscripts: '(f1, g1), (f2, g2), (f3, g3)'.
  17479. * two arrays 'dir_vects' and 'dist_vects' that contain classical
  17480. representations of the data dependences under the form of direction
  17481. and distance dependence vectors,
  17482. * an array of loops 'loop_nest' that contains the loops to which the
  17483. distance and direction vectors refer to.
  17484. Several functions for pretty printing the information extracted by the
  17485. data dependence analysis are available: 'dump_ddrs' prints with a
  17486. maximum verbosity the details of a data dependence relations array,
  17487. 'dump_dist_dir_vectors' prints only the classical distance and direction
  17488. vectors for a data dependence relations array, and
  17489. 'dump_data_references' prints the details of the data references
  17490. contained in a data reference array.
  17491. 
  17492. File: gccint.info, Node: Machine Desc, Next: Target Macros, Prev: Loop Analysis and Representation, Up: Top
  17493. 17 Machine Descriptions
  17494. ***********************
  17495. A machine description has two parts: a file of instruction patterns
  17496. ('.md' file) and a C header file of macro definitions.
  17497. The '.md' file for a target machine contains a pattern for each
  17498. instruction that the target machine supports (or at least each
  17499. instruction that is worth telling the compiler about). It may also
  17500. contain comments. A semicolon causes the rest of the line to be a
  17501. comment, unless the semicolon is inside a quoted string.
  17502. See the next chapter for information on the C header file.
  17503. * Menu:
  17504. * Overview:: How the machine description is used.
  17505. * Patterns:: How to write instruction patterns.
  17506. * Example:: An explained example of a 'define_insn' pattern.
  17507. * RTL Template:: The RTL template defines what insns match a pattern.
  17508. * Output Template:: The output template says how to make assembler code
  17509. from such an insn.
  17510. * Output Statement:: For more generality, write C code to output
  17511. the assembler code.
  17512. * Predicates:: Controlling what kinds of operands can be used
  17513. for an insn.
  17514. * Constraints:: Fine-tuning operand selection.
  17515. * Standard Names:: Names mark patterns to use for code generation.
  17516. * Pattern Ordering:: When the order of patterns makes a difference.
  17517. * Dependent Patterns:: Having one pattern may make you need another.
  17518. * Jump Patterns:: Special considerations for patterns for jump insns.
  17519. * Looping Patterns:: How to define patterns for special looping insns.
  17520. * Insn Canonicalizations::Canonicalization of Instructions
  17521. * Expander Definitions::Generating a sequence of several RTL insns
  17522. for a standard operation.
  17523. * Insn Splitting:: Splitting Instructions into Multiple Instructions.
  17524. * Including Patterns:: Including Patterns in Machine Descriptions.
  17525. * Peephole Definitions::Defining machine-specific peephole optimizations.
  17526. * Insn Attributes:: Specifying the value of attributes for generated insns.
  17527. * Conditional Execution::Generating 'define_insn' patterns for
  17528. predication.
  17529. * Define Subst:: Generating 'define_insn' and 'define_expand'
  17530. patterns from other patterns.
  17531. * Constant Definitions::Defining symbolic constants that can be used in the
  17532. md file.
  17533. * Iterators:: Using iterators to generate patterns from a template.
  17534. 
  17535. File: gccint.info, Node: Overview, Next: Patterns, Up: Machine Desc
  17536. 17.1 Overview of How the Machine Description is Used
  17537. ====================================================
  17538. There are three main conversions that happen in the compiler:
  17539. 1. The front end reads the source code and builds a parse tree.
  17540. 2. The parse tree is used to generate an RTL insn list based on named
  17541. instruction patterns.
  17542. 3. The insn list is matched against the RTL templates to produce
  17543. assembler code.
  17544. For the generate pass, only the names of the insns matter, from either
  17545. a named 'define_insn' or a 'define_expand'. The compiler will choose
  17546. the pattern with the right name and apply the operands according to the
  17547. documentation later in this chapter, without regard for the RTL template
  17548. or operand constraints. Note that the names the compiler looks for are
  17549. hard-coded in the compiler--it will ignore unnamed patterns and patterns
  17550. with names it doesn't know about, but if you don't provide a named
  17551. pattern it needs, it will abort.
  17552. If a 'define_insn' is used, the template given is inserted into the
  17553. insn list. If a 'define_expand' is used, one of three things happens,
  17554. based on the condition logic. The condition logic may manually create
  17555. new insns for the insn list, say via 'emit_insn()', and invoke 'DONE'.
  17556. For certain named patterns, it may invoke 'FAIL' to tell the compiler to
  17557. use an alternate way of performing that task. If it invokes neither
  17558. 'DONE' nor 'FAIL', the template given in the pattern is inserted, as if
  17559. the 'define_expand' were a 'define_insn'.
  17560. Once the insn list is generated, various optimization passes convert,
  17561. replace, and rearrange the insns in the insn list. This is where the
  17562. 'define_split' and 'define_peephole' patterns get used, for example.
  17563. Finally, the insn list's RTL is matched up with the RTL templates in
  17564. the 'define_insn' patterns, and those patterns are used to emit the
  17565. final assembly code. For this purpose, each named 'define_insn' acts
  17566. like it's unnamed, since the names are ignored.
  17567. 
  17568. File: gccint.info, Node: Patterns, Next: Example, Prev: Overview, Up: Machine Desc
  17569. 17.2 Everything about Instruction Patterns
  17570. ==========================================
  17571. A 'define_insn' expression is used to define instruction patterns to
  17572. which insns may be matched. A 'define_insn' expression contains an
  17573. incomplete RTL expression, with pieces to be filled in later, operand
  17574. constraints that restrict how the pieces can be filled in, and an output
  17575. template or C code to generate the assembler output.
  17576. A 'define_insn' is an RTL expression containing four or five operands:
  17577. 1. An optional name N. When a name is present, the compiler
  17578. automically generates a C++ function 'gen_N' that takes the
  17579. operands of the instruction as arguments and returns the
  17580. instruction's rtx pattern. The compiler also assigns the
  17581. instruction a unique code 'CODE_FOR_N', with all such codes
  17582. belonging to an enum called 'insn_code'.
  17583. These names serve one of two purposes. The first is to indicate
  17584. that the instruction performs a certain standard job for the
  17585. RTL-generation pass of the compiler, such as a move, an addition,
  17586. or a conditional jump. The second is to help the target generate
  17587. certain target-specific operations, such as when implementing
  17588. target-specific intrinsic functions.
  17589. It is better to prefix target-specific names with the name of the
  17590. target, to avoid any clash with current or future standard names.
  17591. The absence of a name is indicated by writing an empty string where
  17592. the name should go. Nameless instruction patterns are never used
  17593. for generating RTL code, but they may permit several simpler insns
  17594. to be combined later on.
  17595. For the purpose of debugging the compiler, you may also specify a
  17596. name beginning with the '*' character. Such a name is used only
  17597. for identifying the instruction in RTL dumps; it is equivalent to
  17598. having a nameless pattern for all other purposes. Names beginning
  17599. with the '*' character are not required to be unique.
  17600. The name may also have the form '@N'. This has the same effect as
  17601. a name 'N', but in addition tells the compiler to generate further
  17602. helper functions; see *note Parameterized Names:: for details.
  17603. 2. The "RTL template": This is a vector of incomplete RTL expressions
  17604. which describe the semantics of the instruction (*note RTL
  17605. Template::). It is incomplete because it may contain
  17606. 'match_operand', 'match_operator', and 'match_dup' expressions that
  17607. stand for operands of the instruction.
  17608. If the vector has multiple elements, the RTL template is treated as
  17609. a 'parallel' expression.
  17610. 3. The condition: This is a string which contains a C expression.
  17611. When the compiler attempts to match RTL against a pattern, the
  17612. condition is evaluated. If the condition evaluates to 'true', the
  17613. match is permitted. The condition may be an empty string, which is
  17614. treated as always 'true'.
  17615. For a named pattern, the condition may not depend on the data in
  17616. the insn being matched, but only the target-machine-type flags.
  17617. The compiler needs to test these conditions during initialization
  17618. in order to learn exactly which named instructions are available in
  17619. a particular run.
  17620. For nameless patterns, the condition is applied only when matching
  17621. an individual insn, and only after the insn has matched the
  17622. pattern's recognition template. The insn's operands may be found
  17623. in the vector 'operands'.
  17624. An instruction condition cannot become more restrictive as
  17625. compilation progresses. If the condition accepts a particular RTL
  17626. instruction at one stage of compilation, it must continue to accept
  17627. that instruction until the final pass. For example,
  17628. '!reload_completed' and 'can_create_pseudo_p ()' are both invalid
  17629. instruction conditions, because they are true during the earlier
  17630. RTL passes and false during the later ones. For the same reason,
  17631. if a condition accepts an instruction before register allocation,
  17632. it cannot later try to control register allocation by excluding
  17633. certain register or value combinations.
  17634. Although a condition cannot become more restrictive as compilation
  17635. progresses, the condition for a nameless pattern _can_ become more
  17636. permissive. For example, a nameless instruction can require
  17637. 'reload_completed' to be true, in which case it only matches after
  17638. register allocation.
  17639. 4. The "output template" or "output statement": This is either a
  17640. string, or a fragment of C code which returns a string.
  17641. When simple substitution isn't general enough, you can specify a
  17642. piece of C code to compute the output. *Note Output Statement::.
  17643. 5. The "insn attributes": This is an optional vector containing the
  17644. values of attributes for insns matching this pattern (*note Insn
  17645. Attributes::).
  17646. 
  17647. File: gccint.info, Node: Example, Next: RTL Template, Prev: Patterns, Up: Machine Desc
  17648. 17.3 Example of 'define_insn'
  17649. =============================
  17650. Here is an example of an instruction pattern, taken from the machine
  17651. description for the 68000/68020.
  17652. (define_insn "tstsi"
  17653. [(set (cc0)
  17654. (match_operand:SI 0 "general_operand" "rm"))]
  17655. ""
  17656. "*
  17657. {
  17658. if (TARGET_68020 || ! ADDRESS_REG_P (operands[0]))
  17659. return \"tstl %0\";
  17660. return \"cmpl #0,%0\";
  17661. }")
  17662. This can also be written using braced strings:
  17663. (define_insn "tstsi"
  17664. [(set (cc0)
  17665. (match_operand:SI 0 "general_operand" "rm"))]
  17666. ""
  17667. {
  17668. if (TARGET_68020 || ! ADDRESS_REG_P (operands[0]))
  17669. return "tstl %0";
  17670. return "cmpl #0,%0";
  17671. })
  17672. This describes an instruction which sets the condition codes based on
  17673. the value of a general operand. It has no condition, so any insn with
  17674. an RTL description of the form shown may be matched to this pattern.
  17675. The name 'tstsi' means "test a 'SImode' value" and tells the RTL
  17676. generation pass that, when it is necessary to test such a value, an insn
  17677. to do so can be constructed using this pattern.
  17678. The output control string is a piece of C code which chooses which
  17679. output template to return based on the kind of operand and the specific
  17680. type of CPU for which code is being generated.
  17681. '"rm"' is an operand constraint. Its meaning is explained below.
  17682. 
  17683. File: gccint.info, Node: RTL Template, Next: Output Template, Prev: Example, Up: Machine Desc
  17684. 17.4 RTL Template
  17685. =================
  17686. The RTL template is used to define which insns match the particular
  17687. pattern and how to find their operands. For named patterns, the RTL
  17688. template also says how to construct an insn from specified operands.
  17689. Construction involves substituting specified operands into a copy of
  17690. the template. Matching involves determining the values that serve as
  17691. the operands in the insn being matched. Both of these activities are
  17692. controlled by special expression types that direct matching and
  17693. substitution of the operands.
  17694. '(match_operand:M N PREDICATE CONSTRAINT)'
  17695. This expression is a placeholder for operand number N of the insn.
  17696. When constructing an insn, operand number N will be substituted at
  17697. this point. When matching an insn, whatever appears at this
  17698. position in the insn will be taken as operand number N; but it must
  17699. satisfy PREDICATE or this instruction pattern will not match at
  17700. all.
  17701. Operand numbers must be chosen consecutively counting from zero in
  17702. each instruction pattern. There may be only one 'match_operand'
  17703. expression in the pattern for each operand number. Usually
  17704. operands are numbered in the order of appearance in 'match_operand'
  17705. expressions. In the case of a 'define_expand', any operand numbers
  17706. used only in 'match_dup' expressions have higher values than all
  17707. other operand numbers.
  17708. PREDICATE is a string that is the name of a function that accepts
  17709. two arguments, an expression and a machine mode. *Note
  17710. Predicates::. During matching, the function will be called with
  17711. the putative operand as the expression and M as the mode argument
  17712. (if M is not specified, 'VOIDmode' will be used, which normally
  17713. causes PREDICATE to accept any mode). If it returns zero, this
  17714. instruction pattern fails to match. PREDICATE may be an empty
  17715. string; then it means no test is to be done on the operand, so
  17716. anything which occurs in this position is valid.
  17717. Most of the time, PREDICATE will reject modes other than M--but not
  17718. always. For example, the predicate 'address_operand' uses M as the
  17719. mode of memory ref that the address should be valid for. Many
  17720. predicates accept 'const_int' nodes even though their mode is
  17721. 'VOIDmode'.
  17722. CONSTRAINT controls reloading and the choice of the best register
  17723. class to use for a value, as explained later (*note Constraints::).
  17724. If the constraint would be an empty string, it can be omitted.
  17725. People are often unclear on the difference between the constraint
  17726. and the predicate. The predicate helps decide whether a given insn
  17727. matches the pattern. The constraint plays no role in this
  17728. decision; instead, it controls various decisions in the case of an
  17729. insn which does match.
  17730. '(match_scratch:M N CONSTRAINT)'
  17731. This expression is also a placeholder for operand number N and
  17732. indicates that operand must be a 'scratch' or 'reg' expression.
  17733. When matching patterns, this is equivalent to
  17734. (match_operand:M N "scratch_operand" CONSTRAINT)
  17735. but, when generating RTL, it produces a ('scratch':M) expression.
  17736. If the last few expressions in a 'parallel' are 'clobber'
  17737. expressions whose operands are either a hard register or
  17738. 'match_scratch', the combiner can add or delete them when
  17739. necessary. *Note Side Effects::.
  17740. '(match_dup N)'
  17741. This expression is also a placeholder for operand number N. It is
  17742. used when the operand needs to appear more than once in the insn.
  17743. In construction, 'match_dup' acts just like 'match_operand': the
  17744. operand is substituted into the insn being constructed. But in
  17745. matching, 'match_dup' behaves differently. It assumes that operand
  17746. number N has already been determined by a 'match_operand' appearing
  17747. earlier in the recognition template, and it matches only an
  17748. identical-looking expression.
  17749. Note that 'match_dup' should not be used to tell the compiler that
  17750. a particular register is being used for two operands (example:
  17751. 'add' that adds one register to another; the second register is
  17752. both an input operand and the output operand). Use a matching
  17753. constraint (*note Simple Constraints::) for those. 'match_dup' is
  17754. for the cases where one operand is used in two places in the
  17755. template, such as an instruction that computes both a quotient and
  17756. a remainder, where the opcode takes two input operands but the RTL
  17757. template has to refer to each of those twice; once for the quotient
  17758. pattern and once for the remainder pattern.
  17759. '(match_operator:M N PREDICATE [OPERANDS...])'
  17760. This pattern is a kind of placeholder for a variable RTL expression
  17761. code.
  17762. When constructing an insn, it stands for an RTL expression whose
  17763. expression code is taken from that of operand N, and whose operands
  17764. are constructed from the patterns OPERANDS.
  17765. When matching an expression, it matches an expression if the
  17766. function PREDICATE returns nonzero on that expression _and_ the
  17767. patterns OPERANDS match the operands of the expression.
  17768. Suppose that the function 'commutative_operator' is defined as
  17769. follows, to match any expression whose operator is one of the
  17770. commutative arithmetic operators of RTL and whose mode is MODE:
  17771. int
  17772. commutative_integer_operator (x, mode)
  17773. rtx x;
  17774. machine_mode mode;
  17775. {
  17776. enum rtx_code code = GET_CODE (x);
  17777. if (GET_MODE (x) != mode)
  17778. return 0;
  17779. return (GET_RTX_CLASS (code) == RTX_COMM_ARITH
  17780. || code == EQ || code == NE);
  17781. }
  17782. Then the following pattern will match any RTL expression consisting
  17783. of a commutative operator applied to two general operands:
  17784. (match_operator:SI 3 "commutative_operator"
  17785. [(match_operand:SI 1 "general_operand" "g")
  17786. (match_operand:SI 2 "general_operand" "g")])
  17787. Here the vector '[OPERANDS...]' contains two patterns because the
  17788. expressions to be matched all contain two operands.
  17789. When this pattern does match, the two operands of the commutative
  17790. operator are recorded as operands 1 and 2 of the insn. (This is
  17791. done by the two instances of 'match_operand'.) Operand 3 of the
  17792. insn will be the entire commutative expression: use 'GET_CODE
  17793. (operands[3])' to see which commutative operator was used.
  17794. The machine mode M of 'match_operator' works like that of
  17795. 'match_operand': it is passed as the second argument to the
  17796. predicate function, and that function is solely responsible for
  17797. deciding whether the expression to be matched "has" that mode.
  17798. When constructing an insn, argument 3 of the gen-function will
  17799. specify the operation (i.e. the expression code) for the expression
  17800. to be made. It should be an RTL expression, whose expression code
  17801. is copied into a new expression whose operands are arguments 1 and
  17802. 2 of the gen-function. The subexpressions of argument 3 are not
  17803. used; only its expression code matters.
  17804. When 'match_operator' is used in a pattern for matching an insn, it
  17805. usually best if the operand number of the 'match_operator' is
  17806. higher than that of the actual operands of the insn. This improves
  17807. register allocation because the register allocator often looks at
  17808. operands 1 and 2 of insns to see if it can do register tying.
  17809. There is no way to specify constraints in 'match_operator'. The
  17810. operand of the insn which corresponds to the 'match_operator' never
  17811. has any constraints because it is never reloaded as a whole.
  17812. However, if parts of its OPERANDS are matched by 'match_operand'
  17813. patterns, those parts may have constraints of their own.
  17814. '(match_op_dup:M N[OPERANDS...])'
  17815. Like 'match_dup', except that it applies to operators instead of
  17816. operands. When constructing an insn, operand number N will be
  17817. substituted at this point. But in matching, 'match_op_dup' behaves
  17818. differently. It assumes that operand number N has already been
  17819. determined by a 'match_operator' appearing earlier in the
  17820. recognition template, and it matches only an identical-looking
  17821. expression.
  17822. '(match_parallel N PREDICATE [SUBPAT...])'
  17823. This pattern is a placeholder for an insn that consists of a
  17824. 'parallel' expression with a variable number of elements. This
  17825. expression should only appear at the top level of an insn pattern.
  17826. When constructing an insn, operand number N will be substituted at
  17827. this point. When matching an insn, it matches if the body of the
  17828. insn is a 'parallel' expression with at least as many elements as
  17829. the vector of SUBPAT expressions in the 'match_parallel', if each
  17830. SUBPAT matches the corresponding element of the 'parallel', _and_
  17831. the function PREDICATE returns nonzero on the 'parallel' that is
  17832. the body of the insn. It is the responsibility of the predicate to
  17833. validate elements of the 'parallel' beyond those listed in the
  17834. 'match_parallel'.
  17835. A typical use of 'match_parallel' is to match load and store
  17836. multiple expressions, which can contain a variable number of
  17837. elements in a 'parallel'. For example,
  17838. (define_insn ""
  17839. [(match_parallel 0 "load_multiple_operation"
  17840. [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
  17841. (match_operand:SI 2 "memory_operand" "m"))
  17842. (use (reg:SI 179))
  17843. (clobber (reg:SI 179))])]
  17844. ""
  17845. "loadm 0,0,%1,%2")
  17846. This example comes from 'a29k.md'. The function
  17847. 'load_multiple_operation' is defined in 'a29k.c' and checks that
  17848. subsequent elements in the 'parallel' are the same as the 'set' in
  17849. the pattern, except that they are referencing subsequent registers
  17850. and memory locations.
  17851. An insn that matches this pattern might look like:
  17852. (parallel
  17853. [(set (reg:SI 20) (mem:SI (reg:SI 100)))
  17854. (use (reg:SI 179))
  17855. (clobber (reg:SI 179))
  17856. (set (reg:SI 21)
  17857. (mem:SI (plus:SI (reg:SI 100)
  17858. (const_int 4))))
  17859. (set (reg:SI 22)
  17860. (mem:SI (plus:SI (reg:SI 100)
  17861. (const_int 8))))])
  17862. '(match_par_dup N [SUBPAT...])'
  17863. Like 'match_op_dup', but for 'match_parallel' instead of
  17864. 'match_operator'.
  17865. 
  17866. File: gccint.info, Node: Output Template, Next: Output Statement, Prev: RTL Template, Up: Machine Desc
  17867. 17.5 Output Templates and Operand Substitution
  17868. ==============================================
  17869. The "output template" is a string which specifies how to output the
  17870. assembler code for an instruction pattern. Most of the template is a
  17871. fixed string which is output literally. The character '%' is used to
  17872. specify where to substitute an operand; it can also be used to identify
  17873. places where different variants of the assembler require different
  17874. syntax.
  17875. In the simplest case, a '%' followed by a digit N says to output
  17876. operand N at that point in the string.
  17877. '%' followed by a letter and a digit says to output an operand in an
  17878. alternate fashion. Four letters have standard, built-in meanings
  17879. described below. The machine description macro 'PRINT_OPERAND' can
  17880. define additional letters with nonstandard meanings.
  17881. '%cDIGIT' can be used to substitute an operand that is a constant value
  17882. without the syntax that normally indicates an immediate operand.
  17883. '%nDIGIT' is like '%cDIGIT' except that the value of the constant is
  17884. negated before printing.
  17885. '%aDIGIT' can be used to substitute an operand as if it were a memory
  17886. reference, with the actual operand treated as the address. This may be
  17887. useful when outputting a "load address" instruction, because often the
  17888. assembler syntax for such an instruction requires you to write the
  17889. operand as if it were a memory reference.
  17890. '%lDIGIT' is used to substitute a 'label_ref' into a jump instruction.
  17891. '%=' outputs a number which is unique to each instruction in the entire
  17892. compilation. This is useful for making local labels to be referred to
  17893. more than once in a single template that generates multiple assembler
  17894. instructions.
  17895. '%' followed by a punctuation character specifies a substitution that
  17896. does not use an operand. Only one case is standard: '%%' outputs a '%'
  17897. into the assembler code. Other nonstandard cases can be defined in the
  17898. 'PRINT_OPERAND' macro. You must also define which punctuation
  17899. characters are valid with the 'PRINT_OPERAND_PUNCT_VALID_P' macro.
  17900. The template may generate multiple assembler instructions. Write the
  17901. text for the instructions, with '\;' between them.
  17902. When the RTL contains two operands which are required by constraint to
  17903. match each other, the output template must refer only to the
  17904. lower-numbered operand. Matching operands are not always identical, and
  17905. the rest of the compiler arranges to put the proper RTL expression for
  17906. printing into the lower-numbered operand.
  17907. One use of nonstandard letters or punctuation following '%' is to
  17908. distinguish between different assembler languages for the same machine;
  17909. for example, Motorola syntax versus MIT syntax for the 68000. Motorola
  17910. syntax requires periods in most opcode names, while MIT syntax does not.
  17911. For example, the opcode 'movel' in MIT syntax is 'move.l' in Motorola
  17912. syntax. The same file of patterns is used for both kinds of output
  17913. syntax, but the character sequence '%.' is used in each place where
  17914. Motorola syntax wants a period. The 'PRINT_OPERAND' macro for Motorola
  17915. syntax defines the sequence to output a period; the macro for MIT syntax
  17916. defines it to do nothing.
  17917. As a special case, a template consisting of the single character '#'
  17918. instructs the compiler to first split the insn, and then output the
  17919. resulting instructions separately. This helps eliminate redundancy in
  17920. the output templates. If you have a 'define_insn' that needs to emit
  17921. multiple assembler instructions, and there is a matching 'define_split'
  17922. already defined, then you can simply use '#' as the output template
  17923. instead of writing an output template that emits the multiple assembler
  17924. instructions.
  17925. Note that '#' only has an effect while generating assembly code; it
  17926. does not affect whether a split occurs earlier. An associated
  17927. 'define_split' must exist and it must be suitable for use after register
  17928. allocation.
  17929. If the macro 'ASSEMBLER_DIALECT' is defined, you can use construct of
  17930. the form '{option0|option1|option2}' in the templates. These describe
  17931. multiple variants of assembler language syntax. *Note Instruction
  17932. Output::.
  17933. 
  17934. File: gccint.info, Node: Output Statement, Next: Predicates, Prev: Output Template, Up: Machine Desc
  17935. 17.6 C Statements for Assembler Output
  17936. ======================================
  17937. Often a single fixed template string cannot produce correct and
  17938. efficient assembler code for all the cases that are recognized by a
  17939. single instruction pattern. For example, the opcodes may depend on the
  17940. kinds of operands; or some unfortunate combinations of operands may
  17941. require extra machine instructions.
  17942. If the output control string starts with a '@', then it is actually a
  17943. series of templates, each on a separate line. (Blank lines and leading
  17944. spaces and tabs are ignored.) The templates correspond to the pattern's
  17945. constraint alternatives (*note Multi-Alternative::). For example, if a
  17946. target machine has a two-address add instruction 'addr' to add into a
  17947. register and another 'addm' to add a register to memory, you might write
  17948. this pattern:
  17949. (define_insn "addsi3"
  17950. [(set (match_operand:SI 0 "general_operand" "=r,m")
  17951. (plus:SI (match_operand:SI 1 "general_operand" "0,0")
  17952. (match_operand:SI 2 "general_operand" "g,r")))]
  17953. ""
  17954. "@
  17955. addr %2,%0
  17956. addm %2,%0")
  17957. If the output control string starts with a '*', then it is not an
  17958. output template but rather a piece of C program that should compute a
  17959. template. It should execute a 'return' statement to return the
  17960. template-string you want. Most such templates use C string literals,
  17961. which require doublequote characters to delimit them. To include these
  17962. doublequote characters in the string, prefix each one with '\'.
  17963. If the output control string is written as a brace block instead of a
  17964. double-quoted string, it is automatically assumed to be C code. In that
  17965. case, it is not necessary to put in a leading asterisk, or to escape the
  17966. doublequotes surrounding C string literals.
  17967. The operands may be found in the array 'operands', whose C data type is
  17968. 'rtx []'.
  17969. It is very common to select different ways of generating assembler code
  17970. based on whether an immediate operand is within a certain range. Be
  17971. careful when doing this, because the result of 'INTVAL' is an integer on
  17972. the host machine. If the host machine has more bits in an 'int' than
  17973. the target machine has in the mode in which the constant will be used,
  17974. then some of the bits you get from 'INTVAL' will be superfluous. For
  17975. proper results, you must carefully disregard the values of those bits.
  17976. It is possible to output an assembler instruction and then go on to
  17977. output or compute more of them, using the subroutine 'output_asm_insn'.
  17978. This receives two arguments: a template-string and a vector of operands.
  17979. The vector may be 'operands', or it may be another array of 'rtx' that
  17980. you declare locally and initialize yourself.
  17981. When an insn pattern has multiple alternatives in its constraints,
  17982. often the appearance of the assembler code is determined mostly by which
  17983. alternative was matched. When this is so, the C code can test the
  17984. variable 'which_alternative', which is the ordinal number of the
  17985. alternative that was actually satisfied (0 for the first, 1 for the
  17986. second alternative, etc.).
  17987. For example, suppose there are two opcodes for storing zero, 'clrreg'
  17988. for registers and 'clrmem' for memory locations. Here is how a pattern
  17989. could use 'which_alternative' to choose between them:
  17990. (define_insn ""
  17991. [(set (match_operand:SI 0 "general_operand" "=r,m")
  17992. (const_int 0))]
  17993. ""
  17994. {
  17995. return (which_alternative == 0
  17996. ? "clrreg %0" : "clrmem %0");
  17997. })
  17998. The example above, where the assembler code to generate was _solely_
  17999. determined by the alternative, could also have been specified as
  18000. follows, having the output control string start with a '@':
  18001. (define_insn ""
  18002. [(set (match_operand:SI 0 "general_operand" "=r,m")
  18003. (const_int 0))]
  18004. ""
  18005. "@
  18006. clrreg %0
  18007. clrmem %0")
  18008. If you just need a little bit of C code in one (or a few) alternatives,
  18009. you can use '*' inside of a '@' multi-alternative template:
  18010. (define_insn ""
  18011. [(set (match_operand:SI 0 "general_operand" "=r,<,m")
  18012. (const_int 0))]
  18013. ""
  18014. "@
  18015. clrreg %0
  18016. * return stack_mem_p (operands[0]) ? \"push 0\" : \"clrmem %0\";
  18017. clrmem %0")
  18018. 
  18019. File: gccint.info, Node: Predicates, Next: Constraints, Prev: Output Statement, Up: Machine Desc
  18020. 17.7 Predicates
  18021. ===============
  18022. A predicate determines whether a 'match_operand' or 'match_operator'
  18023. expression matches, and therefore whether the surrounding instruction
  18024. pattern will be used for that combination of operands. GCC has a number
  18025. of machine-independent predicates, and you can define machine-specific
  18026. predicates as needed. By convention, predicates used with
  18027. 'match_operand' have names that end in '_operand', and those used with
  18028. 'match_operator' have names that end in '_operator'.
  18029. All predicates are boolean functions (in the mathematical sense) of two
  18030. arguments: the RTL expression that is being considered at that position
  18031. in the instruction pattern, and the machine mode that the
  18032. 'match_operand' or 'match_operator' specifies. In this section, the
  18033. first argument is called OP and the second argument MODE. Predicates
  18034. can be called from C as ordinary two-argument functions; this can be
  18035. useful in output templates or other machine-specific code.
  18036. Operand predicates can allow operands that are not actually acceptable
  18037. to the hardware, as long as the constraints give reload the ability to
  18038. fix them up (*note Constraints::). However, GCC will usually generate
  18039. better code if the predicates specify the requirements of the machine
  18040. instructions as closely as possible. Reload cannot fix up operands that
  18041. must be constants ("immediate operands"); you must use a predicate that
  18042. allows only constants, or else enforce the requirement in the extra
  18043. condition.
  18044. Most predicates handle their MODE argument in a uniform manner. If
  18045. MODE is 'VOIDmode' (unspecified), then OP can have any mode. If MODE is
  18046. anything else, then OP must have the same mode, unless OP is a
  18047. 'CONST_INT' or integer 'CONST_DOUBLE'. These RTL expressions always
  18048. have 'VOIDmode', so it would be counterproductive to check that their
  18049. mode matches. Instead, predicates that accept 'CONST_INT' and/or
  18050. integer 'CONST_DOUBLE' check that the value stored in the constant will
  18051. fit in the requested mode.
  18052. Predicates with this behavior are called "normal". 'genrecog' can
  18053. optimize the instruction recognizer based on knowledge of how normal
  18054. predicates treat modes. It can also diagnose certain kinds of common
  18055. errors in the use of normal predicates; for instance, it is almost
  18056. always an error to use a normal predicate without specifying a mode.
  18057. Predicates that do something different with their MODE argument are
  18058. called "special". The generic predicates 'address_operand' and
  18059. 'pmode_register_operand' are special predicates. 'genrecog' does not do
  18060. any optimizations or diagnosis when special predicates are used.
  18061. * Menu:
  18062. * Machine-Independent Predicates:: Predicates available to all back ends.
  18063. * Defining Predicates:: How to write machine-specific predicate
  18064. functions.
  18065. 
  18066. File: gccint.info, Node: Machine-Independent Predicates, Next: Defining Predicates, Up: Predicates
  18067. 17.7.1 Machine-Independent Predicates
  18068. -------------------------------------
  18069. These are the generic predicates available to all back ends. They are
  18070. defined in 'recog.c'. The first category of predicates allow only
  18071. constant, or "immediate", operands.
  18072. -- Function: immediate_operand
  18073. This predicate allows any sort of constant that fits in MODE. It
  18074. is an appropriate choice for instructions that take operands that
  18075. must be constant.
  18076. -- Function: const_int_operand
  18077. This predicate allows any 'CONST_INT' expression that fits in MODE.
  18078. It is an appropriate choice for an immediate operand that does not
  18079. allow a symbol or label.
  18080. -- Function: const_double_operand
  18081. This predicate accepts any 'CONST_DOUBLE' expression that has
  18082. exactly MODE. If MODE is 'VOIDmode', it will also accept
  18083. 'CONST_INT'. It is intended for immediate floating point
  18084. constants.
  18085. The second category of predicates allow only some kind of machine
  18086. register.
  18087. -- Function: register_operand
  18088. This predicate allows any 'REG' or 'SUBREG' expression that is
  18089. valid for MODE. It is often suitable for arithmetic instruction
  18090. operands on a RISC machine.
  18091. -- Function: pmode_register_operand
  18092. This is a slight variant on 'register_operand' which works around a
  18093. limitation in the machine-description reader.
  18094. (match_operand N "pmode_register_operand" CONSTRAINT)
  18095. means exactly what
  18096. (match_operand:P N "register_operand" CONSTRAINT)
  18097. would mean, if the machine-description reader accepted ':P' mode
  18098. suffixes. Unfortunately, it cannot, because 'Pmode' is an alias
  18099. for some other mode, and might vary with machine-specific options.
  18100. *Note Misc::.
  18101. -- Function: scratch_operand
  18102. This predicate allows hard registers and 'SCRATCH' expressions, but
  18103. not pseudo-registers. It is used internally by 'match_scratch'; it
  18104. should not be used directly.
  18105. The third category of predicates allow only some kind of memory
  18106. reference.
  18107. -- Function: memory_operand
  18108. This predicate allows any valid reference to a quantity of mode
  18109. MODE in memory, as determined by the weak form of
  18110. 'GO_IF_LEGITIMATE_ADDRESS' (*note Addressing Modes::).
  18111. -- Function: address_operand
  18112. This predicate is a little unusual; it allows any operand that is a
  18113. valid expression for the _address_ of a quantity of mode MODE,
  18114. again determined by the weak form of 'GO_IF_LEGITIMATE_ADDRESS'.
  18115. To first order, if '(mem:MODE (EXP))' is acceptable to
  18116. 'memory_operand', then EXP is acceptable to 'address_operand'.
  18117. Note that EXP does not necessarily have the mode MODE.
  18118. -- Function: indirect_operand
  18119. This is a stricter form of 'memory_operand' which allows only
  18120. memory references with a 'general_operand' as the address
  18121. expression. New uses of this predicate are discouraged, because
  18122. 'general_operand' is very permissive, so it's hard to tell what an
  18123. 'indirect_operand' does or does not allow. If a target has
  18124. different requirements for memory operands for different
  18125. instructions, it is better to define target-specific predicates
  18126. which enforce the hardware's requirements explicitly.
  18127. -- Function: push_operand
  18128. This predicate allows a memory reference suitable for pushing a
  18129. value onto the stack. This will be a 'MEM' which refers to
  18130. 'stack_pointer_rtx', with a side effect in its address expression
  18131. (*note Incdec::); which one is determined by the 'STACK_PUSH_CODE'
  18132. macro (*note Frame Layout::).
  18133. -- Function: pop_operand
  18134. This predicate allows a memory reference suitable for popping a
  18135. value off the stack. Again, this will be a 'MEM' referring to
  18136. 'stack_pointer_rtx', with a side effect in its address expression.
  18137. However, this time 'STACK_POP_CODE' is expected.
  18138. The fourth category of predicates allow some combination of the above
  18139. operands.
  18140. -- Function: nonmemory_operand
  18141. This predicate allows any immediate or register operand valid for
  18142. MODE.
  18143. -- Function: nonimmediate_operand
  18144. This predicate allows any register or memory operand valid for
  18145. MODE.
  18146. -- Function: general_operand
  18147. This predicate allows any immediate, register, or memory operand
  18148. valid for MODE.
  18149. Finally, there are two generic operator predicates.
  18150. -- Function: comparison_operator
  18151. This predicate matches any expression which performs an arithmetic
  18152. comparison in MODE; that is, 'COMPARISON_P' is true for the
  18153. expression code.
  18154. -- Function: ordered_comparison_operator
  18155. This predicate matches any expression which performs an arithmetic
  18156. comparison in MODE and whose expression code is valid for integer
  18157. modes; that is, the expression code will be one of 'eq', 'ne',
  18158. 'lt', 'ltu', 'le', 'leu', 'gt', 'gtu', 'ge', 'geu'.
  18159. 
  18160. File: gccint.info, Node: Defining Predicates, Prev: Machine-Independent Predicates, Up: Predicates
  18161. 17.7.2 Defining Machine-Specific Predicates
  18162. -------------------------------------------
  18163. Many machines have requirements for their operands that cannot be
  18164. expressed precisely using the generic predicates. You can define
  18165. additional predicates using 'define_predicate' and
  18166. 'define_special_predicate' expressions. These expressions have three
  18167. operands:
  18168. * The name of the predicate, as it will be referred to in
  18169. 'match_operand' or 'match_operator' expressions.
  18170. * An RTL expression which evaluates to true if the predicate allows
  18171. the operand OP, false if it does not. This expression can only use
  18172. the following RTL codes:
  18173. 'MATCH_OPERAND'
  18174. When written inside a predicate expression, a 'MATCH_OPERAND'
  18175. expression evaluates to true if the predicate it names would
  18176. allow OP. The operand number and constraint are ignored. Due
  18177. to limitations in 'genrecog', you can only refer to generic
  18178. predicates and predicates that have already been defined.
  18179. 'MATCH_CODE'
  18180. This expression evaluates to true if OP or a specified
  18181. subexpression of OP has one of a given list of RTX codes.
  18182. The first operand of this expression is a string constant
  18183. containing a comma-separated list of RTX code names (in lower
  18184. case). These are the codes for which the 'MATCH_CODE' will be
  18185. true.
  18186. The second operand is a string constant which indicates what
  18187. subexpression of OP to examine. If it is absent or the empty
  18188. string, OP itself is examined. Otherwise, the string constant
  18189. must be a sequence of digits and/or lowercase letters. Each
  18190. character indicates a subexpression to extract from the
  18191. current expression; for the first character this is OP, for
  18192. the second and subsequent characters it is the result of the
  18193. previous character. A digit N extracts 'XEXP (E, N)'; a
  18194. letter L extracts 'XVECEXP (E, 0, N)' where N is the
  18195. alphabetic ordinal of L (0 for 'a', 1 for 'b', and so on).
  18196. The 'MATCH_CODE' then examines the RTX code of the
  18197. subexpression extracted by the complete string. It is not
  18198. possible to extract components of an 'rtvec' that is not at
  18199. position 0 within its RTX object.
  18200. 'MATCH_TEST'
  18201. This expression has one operand, a string constant containing
  18202. a C expression. The predicate's arguments, OP and MODE, are
  18203. available with those names in the C expression. The
  18204. 'MATCH_TEST' evaluates to true if the C expression evaluates
  18205. to a nonzero value. 'MATCH_TEST' expressions must not have
  18206. side effects.
  18207. 'AND'
  18208. 'IOR'
  18209. 'NOT'
  18210. 'IF_THEN_ELSE'
  18211. The basic 'MATCH_' expressions can be combined using these
  18212. logical operators, which have the semantics of the C operators
  18213. '&&', '||', '!', and '? :' respectively. As in Common Lisp,
  18214. you may give an 'AND' or 'IOR' expression an arbitrary number
  18215. of arguments; this has exactly the same effect as writing a
  18216. chain of two-argument 'AND' or 'IOR' expressions.
  18217. * An optional block of C code, which should execute 'return true' if
  18218. the predicate is found to match and 'return false' if it does not.
  18219. It must not have any side effects. The predicate arguments, OP and
  18220. MODE, are available with those names.
  18221. If a code block is present in a predicate definition, then the RTL
  18222. expression must evaluate to true _and_ the code block must execute
  18223. 'return true' for the predicate to allow the operand. The RTL
  18224. expression is evaluated first; do not re-check anything in the code
  18225. block that was checked in the RTL expression.
  18226. The program 'genrecog' scans 'define_predicate' and
  18227. 'define_special_predicate' expressions to determine which RTX codes are
  18228. possibly allowed. You should always make this explicit in the RTL
  18229. predicate expression, using 'MATCH_OPERAND' and 'MATCH_CODE'.
  18230. Here is an example of a simple predicate definition, from the IA64
  18231. machine description:
  18232. ;; True if OP is a 'SYMBOL_REF' which refers to the sdata section.
  18233. (define_predicate "small_addr_symbolic_operand"
  18234. (and (match_code "symbol_ref")
  18235. (match_test "SYMBOL_REF_SMALL_ADDR_P (op)")))
  18236. And here is another, showing the use of the C block.
  18237. ;; True if OP is a register operand that is (or could be) a GR reg.
  18238. (define_predicate "gr_register_operand"
  18239. (match_operand 0 "register_operand")
  18240. {
  18241. unsigned int regno;
  18242. if (GET_CODE (op) == SUBREG)
  18243. op = SUBREG_REG (op);
  18244. regno = REGNO (op);
  18245. return (regno >= FIRST_PSEUDO_REGISTER || GENERAL_REGNO_P (regno));
  18246. })
  18247. Predicates written with 'define_predicate' automatically include a test
  18248. that MODE is 'VOIDmode', or OP has the same mode as MODE, or OP is a
  18249. 'CONST_INT' or 'CONST_DOUBLE'. They do _not_ check specifically for
  18250. integer 'CONST_DOUBLE', nor do they test that the value of either kind
  18251. of constant fits in the requested mode. This is because target-specific
  18252. predicates that take constants usually have to do more stringent value
  18253. checks anyway. If you need the exact same treatment of 'CONST_INT' or
  18254. 'CONST_DOUBLE' that the generic predicates provide, use a
  18255. 'MATCH_OPERAND' subexpression to call 'const_int_operand',
  18256. 'const_double_operand', or 'immediate_operand'.
  18257. Predicates written with 'define_special_predicate' do not get any
  18258. automatic mode checks, and are treated as having special mode handling
  18259. by 'genrecog'.
  18260. The program 'genpreds' is responsible for generating code to test
  18261. predicates. It also writes a header file containing function
  18262. declarations for all machine-specific predicates. It is not necessary
  18263. to declare these predicates in 'CPU-protos.h'.
  18264. 
  18265. File: gccint.info, Node: Constraints, Next: Standard Names, Prev: Predicates, Up: Machine Desc
  18266. 17.8 Operand Constraints
  18267. ========================
  18268. Each 'match_operand' in an instruction pattern can specify constraints
  18269. for the operands allowed. The constraints allow you to fine-tune
  18270. matching within the set of operands allowed by the predicate.
  18271. Constraints can say whether an operand may be in a register, and which
  18272. kinds of register; whether the operand can be a memory reference, and
  18273. which kinds of address; whether the operand may be an immediate
  18274. constant, and which possible values it may have. Constraints can also
  18275. require two operands to match. Side-effects aren't allowed in operands
  18276. of inline 'asm', unless '<' or '>' constraints are used, because there
  18277. is no guarantee that the side effects will happen exactly once in an
  18278. instruction that can update the addressing register.
  18279. * Menu:
  18280. * Simple Constraints:: Basic use of constraints.
  18281. * Multi-Alternative:: When an insn has two alternative constraint-patterns.
  18282. * Class Preferences:: Constraints guide which hard register to put things in.
  18283. * Modifiers:: More precise control over effects of constraints.
  18284. * Machine Constraints:: Existing constraints for some particular machines.
  18285. * Disable Insn Alternatives:: Disable insn alternatives using attributes.
  18286. * Define Constraints:: How to define machine-specific constraints.
  18287. * C Constraint Interface:: How to test constraints from C code.
  18288. 
  18289. File: gccint.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
  18290. 17.8.1 Simple Constraints
  18291. -------------------------
  18292. The simplest kind of constraint is a string full of letters, each of
  18293. which describes one kind of operand that is permitted. Here are the
  18294. letters that are allowed:
  18295. whitespace
  18296. Whitespace characters are ignored and can be inserted at any
  18297. position except the first. This enables each alternative for
  18298. different operands to be visually aligned in the machine
  18299. description even if they have different number of constraints and
  18300. modifiers.
  18301. 'm'
  18302. A memory operand is allowed, with any kind of address that the
  18303. machine supports in general. Note that the letter used for the
  18304. general memory constraint can be re-defined by a back end using the
  18305. 'TARGET_MEM_CONSTRAINT' macro.
  18306. 'o'
  18307. A memory operand is allowed, but only if the address is
  18308. "offsettable". This means that adding a small integer (actually,
  18309. the width in bytes of the operand, as determined by its machine
  18310. mode) may be added to the address and the result is also a valid
  18311. memory address.
  18312. For example, an address which is constant is offsettable; so is an
  18313. address that is the sum of a register and a constant (as long as a
  18314. slightly larger constant is also within the range of
  18315. address-offsets supported by the machine); but an autoincrement or
  18316. autodecrement address is not offsettable. More complicated
  18317. indirect/indexed addresses may or may not be offsettable depending
  18318. on the other addressing modes that the machine supports.
  18319. Note that in an output operand which can be matched by another
  18320. operand, the constraint letter 'o' is valid only when accompanied
  18321. by both '<' (if the target machine has predecrement addressing) and
  18322. '>' (if the target machine has preincrement addressing).
  18323. 'V'
  18324. A memory operand that is not offsettable. In other words, anything
  18325. that would fit the 'm' constraint but not the 'o' constraint.
  18326. '<'
  18327. A memory operand with autodecrement addressing (either predecrement
  18328. or postdecrement) is allowed. In inline 'asm' this constraint is
  18329. only allowed if the operand is used exactly once in an instruction
  18330. that can handle the side effects. Not using an operand with '<' in
  18331. constraint string in the inline 'asm' pattern at all or using it in
  18332. multiple instructions isn't valid, because the side effects
  18333. wouldn't be performed or would be performed more than once.
  18334. Furthermore, on some targets the operand with '<' in constraint
  18335. string must be accompanied by special instruction suffixes like
  18336. '%U0' instruction suffix on PowerPC or '%P0' on IA-64.
  18337. '>'
  18338. A memory operand with autoincrement addressing (either preincrement
  18339. or postincrement) is allowed. In inline 'asm' the same
  18340. restrictions as for '<' apply.
  18341. 'r'
  18342. A register operand is allowed provided that it is in a general
  18343. register.
  18344. 'i'
  18345. An immediate integer operand (one with constant value) is allowed.
  18346. This includes symbolic constants whose values will be known only at
  18347. assembly time or later.
  18348. 'n'
  18349. An immediate integer operand with a known numeric value is allowed.
  18350. Many systems cannot support assembly-time constants for operands
  18351. less than a word wide. Constraints for these operands should use
  18352. 'n' rather than 'i'.
  18353. 'I', 'J', 'K', ... 'P'
  18354. Other letters in the range 'I' through 'P' may be defined in a
  18355. machine-dependent fashion to permit immediate integer operands with
  18356. explicit integer values in specified ranges. For example, on the
  18357. 68000, 'I' is defined to stand for the range of values 1 to 8.
  18358. This is the range permitted as a shift count in the shift
  18359. instructions.
  18360. 'E'
  18361. An immediate floating operand (expression code 'const_double') is
  18362. allowed, but only if the target floating point format is the same
  18363. as that of the host machine (on which the compiler is running).
  18364. 'F'
  18365. An immediate floating operand (expression code 'const_double' or
  18366. 'const_vector') is allowed.
  18367. 'G', 'H'
  18368. 'G' and 'H' may be defined in a machine-dependent fashion to permit
  18369. immediate floating operands in particular ranges of values.
  18370. 's'
  18371. An immediate integer operand whose value is not an explicit integer
  18372. is allowed.
  18373. This might appear strange; if an insn allows a constant operand
  18374. with a value not known at compile time, it certainly must allow any
  18375. known value. So why use 's' instead of 'i'? Sometimes it allows
  18376. better code to be generated.
  18377. For example, on the 68000 in a fullword instruction it is possible
  18378. to use an immediate operand; but if the immediate value is between
  18379. -128 and 127, better code results from loading the value into a
  18380. register and using the register. This is because the load into the
  18381. register can be done with a 'moveq' instruction. We arrange for
  18382. this to happen by defining the letter 'K' to mean "any integer
  18383. outside the range -128 to 127", and then specifying 'Ks' in the
  18384. operand constraints.
  18385. 'g'
  18386. Any register, memory or immediate integer operand is allowed,
  18387. except for registers that are not general registers.
  18388. 'X'
  18389. Any operand whatsoever is allowed, even if it does not satisfy
  18390. 'general_operand'. This is normally used in the constraint of a
  18391. 'match_scratch' when certain alternatives will not actually require
  18392. a scratch register.
  18393. '0', '1', '2', ... '9'
  18394. An operand that matches the specified operand number is allowed.
  18395. If a digit is used together with letters within the same
  18396. alternative, the digit should come last.
  18397. This number is allowed to be more than a single digit. If multiple
  18398. digits are encountered consecutively, they are interpreted as a
  18399. single decimal integer. There is scant chance for ambiguity, since
  18400. to-date it has never been desirable that '10' be interpreted as
  18401. matching either operand 1 _or_ operand 0. Should this be desired,
  18402. one can use multiple alternatives instead.
  18403. This is called a "matching constraint" and what it really means is
  18404. that the assembler has only a single operand that fills two roles
  18405. considered separate in the RTL insn. For example, an add insn has
  18406. two input operands and one output operand in the RTL, but on most
  18407. CISC machines an add instruction really has only two operands, one
  18408. of them an input-output operand:
  18409. addl #35,r12
  18410. Matching constraints are used in these circumstances. More
  18411. precisely, the two operands that match must include one input-only
  18412. operand and one output-only operand. Moreover, the digit must be a
  18413. smaller number than the number of the operand that uses it in the
  18414. constraint.
  18415. For operands to match in a particular case usually means that they
  18416. are identical-looking RTL expressions. But in a few special cases
  18417. specific kinds of dissimilarity are allowed. For example, '*x' as
  18418. an input operand will match '*x++' as an output operand. For
  18419. proper results in such cases, the output template should always use
  18420. the output-operand's number when printing the operand.
  18421. 'p'
  18422. An operand that is a valid memory address is allowed. This is for
  18423. "load address" and "push address" instructions.
  18424. 'p' in the constraint must be accompanied by 'address_operand' as
  18425. the predicate in the 'match_operand'. This predicate interprets
  18426. the mode specified in the 'match_operand' as the mode of the memory
  18427. reference for which the address would be valid.
  18428. OTHER-LETTERS
  18429. Other letters can be defined in machine-dependent fashion to stand
  18430. for particular classes of registers or other arbitrary operand
  18431. types. 'd', 'a' and 'f' are defined on the 68000/68020 to stand
  18432. for data, address and floating point registers.
  18433. In order to have valid assembler code, each operand must satisfy its
  18434. constraint. But a failure to do so does not prevent the pattern from
  18435. applying to an insn. Instead, it directs the compiler to modify the
  18436. code so that the constraint will be satisfied. Usually this is done by
  18437. copying an operand into a register.
  18438. Contrast, therefore, the two instruction patterns that follow:
  18439. (define_insn ""
  18440. [(set (match_operand:SI 0 "general_operand" "=r")
  18441. (plus:SI (match_dup 0)
  18442. (match_operand:SI 1 "general_operand" "r")))]
  18443. ""
  18444. "...")
  18445. which has two operands, one of which must appear in two places, and
  18446. (define_insn ""
  18447. [(set (match_operand:SI 0 "general_operand" "=r")
  18448. (plus:SI (match_operand:SI 1 "general_operand" "0")
  18449. (match_operand:SI 2 "general_operand" "r")))]
  18450. ""
  18451. "...")
  18452. which has three operands, two of which are required by a constraint to
  18453. be identical. If we are considering an insn of the form
  18454. (insn N PREV NEXT
  18455. (set (reg:SI 3)
  18456. (plus:SI (reg:SI 6) (reg:SI 109)))
  18457. ...)
  18458. the first pattern would not apply at all, because this insn does not
  18459. contain two identical subexpressions in the right place. The pattern
  18460. would say, "That does not look like an add instruction; try other
  18461. patterns". The second pattern would say, "Yes, that's an add
  18462. instruction, but there is something wrong with it". It would direct the
  18463. reload pass of the compiler to generate additional insns to make the
  18464. constraint true. The results might look like this:
  18465. (insn N2 PREV N
  18466. (set (reg:SI 3) (reg:SI 6))
  18467. ...)
  18468. (insn N N2 NEXT
  18469. (set (reg:SI 3)
  18470. (plus:SI (reg:SI 3) (reg:SI 109)))
  18471. ...)
  18472. It is up to you to make sure that each operand, in each pattern, has
  18473. constraints that can handle any RTL expression that could be present for
  18474. that operand. (When multiple alternatives are in use, each pattern
  18475. must, for each possible combination of operand expressions, have at
  18476. least one alternative which can handle that combination of operands.)
  18477. The constraints don't need to _allow_ any possible operand--when this is
  18478. the case, they do not constrain--but they must at least point the way to
  18479. reloading any possible operand so that it will fit.
  18480. * If the constraint accepts whatever operands the predicate permits,
  18481. there is no problem: reloading is never necessary for this operand.
  18482. For example, an operand whose constraints permit everything except
  18483. registers is safe provided its predicate rejects registers.
  18484. An operand whose predicate accepts only constant values is safe
  18485. provided its constraints include the letter 'i'. If any possible
  18486. constant value is accepted, then nothing less than 'i' will do; if
  18487. the predicate is more selective, then the constraints may also be
  18488. more selective.
  18489. * Any operand expression can be reloaded by copying it into a
  18490. register. So if an operand's constraints allow some kind of
  18491. register, it is certain to be safe. It need not permit all classes
  18492. of registers; the compiler knows how to copy a register into
  18493. another register of the proper class in order to make an
  18494. instruction valid.
  18495. * A nonoffsettable memory reference can be reloaded by copying the
  18496. address into a register. So if the constraint uses the letter 'o',
  18497. all memory references are taken care of.
  18498. * A constant operand can be reloaded by allocating space in memory to
  18499. hold it as preinitialized data. Then the memory reference can be
  18500. used in place of the constant. So if the constraint uses the
  18501. letters 'o' or 'm', constant operands are not a problem.
  18502. * If the constraint permits a constant and a pseudo register used in
  18503. an insn was not allocated to a hard register and is equivalent to a
  18504. constant, the register will be replaced with the constant. If the
  18505. predicate does not permit a constant and the insn is re-recognized
  18506. for some reason, the compiler will crash. Thus the predicate must
  18507. always recognize any objects allowed by the constraint.
  18508. If the operand's predicate can recognize registers, but the constraint
  18509. does not permit them, it can make the compiler crash. When this operand
  18510. happens to be a register, the reload pass will be stymied, because it
  18511. does not know how to copy a register temporarily into memory.
  18512. If the predicate accepts a unary operator, the constraint applies to
  18513. the operand. For example, the MIPS processor at ISA level 3 supports an
  18514. instruction which adds two registers in 'SImode' to produce a 'DImode'
  18515. result, but only if the registers are correctly sign extended. This
  18516. predicate for the input operands accepts a 'sign_extend' of an 'SImode'
  18517. register. Write the constraint to indicate the type of register that is
  18518. required for the operand of the 'sign_extend'.
  18519. 
  18520. File: gccint.info, Node: Multi-Alternative, Next: Class Preferences, Prev: Simple Constraints, Up: Constraints
  18521. 17.8.2 Multiple Alternative Constraints
  18522. ---------------------------------------
  18523. Sometimes a single instruction has multiple alternative sets of possible
  18524. operands. For example, on the 68000, a logical-or instruction can
  18525. combine register or an immediate value into memory, or it can combine
  18526. any kind of operand into a register; but it cannot combine one memory
  18527. location into another.
  18528. These constraints are represented as multiple alternatives. An
  18529. alternative can be described by a series of letters for each operand.
  18530. The overall constraint for an operand is made from the letters for this
  18531. operand from the first alternative, a comma, the letters for this
  18532. operand from the second alternative, a comma, and so on until the last
  18533. alternative. All operands for a single instruction must have the same
  18534. number of alternatives. Here is how it is done for fullword logical-or
  18535. on the 68000:
  18536. (define_insn "iorsi3"
  18537. [(set (match_operand:SI 0 "general_operand" "=m,d")
  18538. (ior:SI (match_operand:SI 1 "general_operand" "%0,0")
  18539. (match_operand:SI 2 "general_operand" "dKs,dmKs")))]
  18540. ...)
  18541. The first alternative has 'm' (memory) for operand 0, '0' for operand 1
  18542. (meaning it must match operand 0), and 'dKs' for operand 2. The second
  18543. alternative has 'd' (data register) for operand 0, '0' for operand 1,
  18544. and 'dmKs' for operand 2. The '=' and '%' in the constraints apply to
  18545. all the alternatives; their meaning is explained in the next section
  18546. (*note Class Preferences::).
  18547. If all the operands fit any one alternative, the instruction is valid.
  18548. Otherwise, for each alternative, the compiler counts how many
  18549. instructions must be added to copy the operands so that that alternative
  18550. applies. The alternative requiring the least copying is chosen. If two
  18551. alternatives need the same amount of copying, the one that comes first
  18552. is chosen. These choices can be altered with the '?' and '!'
  18553. characters:
  18554. '?'
  18555. Disparage slightly the alternative that the '?' appears in, as a
  18556. choice when no alternative applies exactly. The compiler regards
  18557. this alternative as one unit more costly for each '?' that appears
  18558. in it.
  18559. '!'
  18560. Disparage severely the alternative that the '!' appears in. This
  18561. alternative can still be used if it fits without reloading, but if
  18562. reloading is needed, some other alternative will be used.
  18563. '^'
  18564. This constraint is analogous to '?' but it disparages slightly the
  18565. alternative only if the operand with the '^' needs a reload.
  18566. '$'
  18567. This constraint is analogous to '!' but it disparages severely the
  18568. alternative only if the operand with the '$' needs a reload.
  18569. When an insn pattern has multiple alternatives in its constraints,
  18570. often the appearance of the assembler code is determined mostly by which
  18571. alternative was matched. When this is so, the C code for writing the
  18572. assembler code can use the variable 'which_alternative', which is the
  18573. ordinal number of the alternative that was actually satisfied (0 for the
  18574. first, 1 for the second alternative, etc.). *Note Output Statement::.
  18575. 
  18576. File: gccint.info, Node: Class Preferences, Next: Modifiers, Prev: Multi-Alternative, Up: Constraints
  18577. 17.8.3 Register Class Preferences
  18578. ---------------------------------
  18579. The operand constraints have another function: they enable the compiler
  18580. to decide which kind of hardware register a pseudo register is best
  18581. allocated to. The compiler examines the constraints that apply to the
  18582. insns that use the pseudo register, looking for the machine-dependent
  18583. letters such as 'd' and 'a' that specify classes of registers. The
  18584. pseudo register is put in whichever class gets the most "votes". The
  18585. constraint letters 'g' and 'r' also vote: they vote in favor of a
  18586. general register. The machine description says which registers are
  18587. considered general.
  18588. Of course, on some machines all registers are equivalent, and no
  18589. register classes are defined. Then none of this complexity is relevant.
  18590. 
  18591. File: gccint.info, Node: Modifiers, Next: Machine Constraints, Prev: Class Preferences, Up: Constraints
  18592. 17.8.4 Constraint Modifier Characters
  18593. -------------------------------------
  18594. Here are constraint modifier characters.
  18595. '='
  18596. Means that this operand is written to by this instruction: the
  18597. previous value is discarded and replaced by new data.
  18598. '+'
  18599. Means that this operand is both read and written by the
  18600. instruction.
  18601. When the compiler fixes up the operands to satisfy the constraints,
  18602. it needs to know which operands are read by the instruction and
  18603. which are written by it. '=' identifies an operand which is only
  18604. written; '+' identifies an operand that is both read and written;
  18605. all other operands are assumed to only be read.
  18606. If you specify '=' or '+' in a constraint, you put it in the first
  18607. character of the constraint string.
  18608. '&'
  18609. Means (in a particular alternative) that this operand is an
  18610. "earlyclobber" operand, which is written before the instruction is
  18611. finished using the input operands. Therefore, this operand may not
  18612. lie in a register that is read by the instruction or as part of any
  18613. memory address.
  18614. '&' applies only to the alternative in which it is written. In
  18615. constraints with multiple alternatives, sometimes one alternative
  18616. requires '&' while others do not. See, for example, the 'movdf'
  18617. insn of the 68000.
  18618. An operand which is read by the instruction can be tied to an
  18619. earlyclobber operand if its only use as an input occurs before the
  18620. early result is written. Adding alternatives of this form often
  18621. allows GCC to produce better code when only some of the read
  18622. operands can be affected by the earlyclobber. See, for example,
  18623. the 'mulsi3' insn of the ARM.
  18624. Furthermore, if the "earlyclobber" operand is also a read/write
  18625. operand, then that operand is written only after it's used.
  18626. '&' does not obviate the need to write '=' or '+'. As
  18627. "earlyclobber" operands are always written, a read-only
  18628. "earlyclobber" operand is ill-formed and will be rejected by the
  18629. compiler.
  18630. '%'
  18631. Declares the instruction to be commutative for this operand and the
  18632. following operand. This means that the compiler may interchange
  18633. the two operands if that is the cheapest way to make all operands
  18634. fit the constraints. '%' applies to all alternatives and must
  18635. appear as the first character in the constraint. Only read-only
  18636. operands can use '%'.
  18637. This is often used in patterns for addition instructions that
  18638. really have only two operands: the result must go in one of the
  18639. arguments. Here for example, is how the 68000 halfword-add
  18640. instruction is defined:
  18641. (define_insn "addhi3"
  18642. [(set (match_operand:HI 0 "general_operand" "=m,r")
  18643. (plus:HI (match_operand:HI 1 "general_operand" "%0,0")
  18644. (match_operand:HI 2 "general_operand" "di,g")))]
  18645. ...)
  18646. GCC can only handle one commutative pair in an asm; if you use
  18647. more, the compiler may fail. Note that you need not use the
  18648. modifier if the two alternatives are strictly identical; this would
  18649. only waste time in the reload pass. The modifier is not
  18650. operational after register allocation, so the result of
  18651. 'define_peephole2' and 'define_split's performed after reload
  18652. cannot rely on '%' to make the intended insn match.
  18653. '#'
  18654. Says that all following characters, up to the next comma, are to be
  18655. ignored as a constraint. They are significant only for choosing
  18656. register preferences.
  18657. '*'
  18658. Says that the following character should be ignored when choosing
  18659. register preferences. '*' has no effect on the meaning of the
  18660. constraint as a constraint, and no effect on reloading. For LRA
  18661. '*' additionally disparages slightly the alternative if the
  18662. following character matches the operand.
  18663. Here is an example: the 68000 has an instruction to sign-extend a
  18664. halfword in a data register, and can also sign-extend a value by
  18665. copying it into an address register. While either kind of register
  18666. is acceptable, the constraints on an address-register destination
  18667. are less strict, so it is best if register allocation makes an
  18668. address register its goal. Therefore, '*' is used so that the 'd'
  18669. constraint letter (for data register) is ignored when computing
  18670. register preferences.
  18671. (define_insn "extendhisi2"
  18672. [(set (match_operand:SI 0 "general_operand" "=*d,a")
  18673. (sign_extend:SI
  18674. (match_operand:HI 1 "general_operand" "0,g")))]
  18675. ...)
  18676. 
  18677. File: gccint.info, Node: Machine Constraints, Next: Disable Insn Alternatives, Prev: Modifiers, Up: Constraints
  18678. 17.8.5 Constraints for Particular Machines
  18679. ------------------------------------------
  18680. Whenever possible, you should use the general-purpose constraint letters
  18681. in 'asm' arguments, since they will convey meaning more readily to
  18682. people reading your code. Failing that, use the constraint letters that
  18683. usually have very similar meanings across architectures. The most
  18684. commonly used constraints are 'm' and 'r' (for memory and
  18685. general-purpose registers respectively; *note Simple Constraints::), and
  18686. 'I', usually the letter indicating the most common immediate-constant
  18687. format.
  18688. Each architecture defines additional constraints. These constraints
  18689. are used by the compiler itself for instruction generation, as well as
  18690. for 'asm' statements; therefore, some of the constraints are not
  18691. particularly useful for 'asm'. Here is a summary of some of the
  18692. machine-dependent constraints available on some particular machines; it
  18693. includes both constraints that are useful for 'asm' and constraints that
  18694. aren't. The compiler source file mentioned in the table heading for
  18695. each architecture is the definitive reference for the meanings of that
  18696. architecture's constraints.
  18697. _AArch64 family--'config/aarch64/constraints.md'_
  18698. 'k'
  18699. The stack pointer register ('SP')
  18700. 'w'
  18701. Floating point register, Advanced SIMD vector register or SVE
  18702. vector register
  18703. 'x'
  18704. Like 'w', but restricted to registers 0 to 15 inclusive.
  18705. 'y'
  18706. Like 'w', but restricted to registers 0 to 7 inclusive.
  18707. 'Upl'
  18708. One of the low eight SVE predicate registers ('P0' to 'P7')
  18709. 'Upa'
  18710. Any of the SVE predicate registers ('P0' to 'P15')
  18711. 'I'
  18712. Integer constant that is valid as an immediate operand in an
  18713. 'ADD' instruction
  18714. 'J'
  18715. Integer constant that is valid as an immediate operand in a
  18716. 'SUB' instruction (once negated)
  18717. 'K'
  18718. Integer constant that can be used with a 32-bit logical
  18719. instruction
  18720. 'L'
  18721. Integer constant that can be used with a 64-bit logical
  18722. instruction
  18723. 'M'
  18724. Integer constant that is valid as an immediate operand in a
  18725. 32-bit 'MOV' pseudo instruction. The 'MOV' may be assembled
  18726. to one of several different machine instructions depending on
  18727. the value
  18728. 'N'
  18729. Integer constant that is valid as an immediate operand in a
  18730. 64-bit 'MOV' pseudo instruction
  18731. 'S'
  18732. An absolute symbolic address or a label reference
  18733. 'Y'
  18734. Floating point constant zero
  18735. 'Z'
  18736. Integer constant zero
  18737. 'Ush'
  18738. The high part (bits 12 and upwards) of the pc-relative address
  18739. of a symbol within 4GB of the instruction
  18740. 'Q'
  18741. A memory address which uses a single base register with no
  18742. offset
  18743. 'Ump'
  18744. A memory address suitable for a load/store pair instruction in
  18745. SI, DI, SF and DF modes
  18746. _AMD GCN --'config/gcn/constraints.md'_
  18747. 'I'
  18748. Immediate integer in the range -16 to 64
  18749. 'J'
  18750. Immediate 16-bit signed integer
  18751. 'Kf'
  18752. Immediate constant -1
  18753. 'L'
  18754. Immediate 15-bit unsigned integer
  18755. 'A'
  18756. Immediate constant that can be inlined in an instruction
  18757. encoding: integer -16..64, or float 0.0, +/-0.5, +/-1.0,
  18758. +/-2.0, +/-4.0, 1.0/(2.0*PI)
  18759. 'B'
  18760. Immediate 32-bit signed integer that can be attached to an
  18761. instruction encoding
  18762. 'C'
  18763. Immediate 32-bit integer in range -16..4294967295 (i.e.
  18764. 32-bit unsigned integer or 'A' constraint)
  18765. 'DA'
  18766. Immediate 64-bit constant that can be split into two 'A'
  18767. constants
  18768. 'DB'
  18769. Immediate 64-bit constant that can be split into two 'B'
  18770. constants
  18771. 'U'
  18772. Any 'unspec'
  18773. 'Y'
  18774. Any 'symbol_ref' or 'label_ref'
  18775. 'v'
  18776. VGPR register
  18777. 'Sg'
  18778. SGPR register
  18779. 'SD'
  18780. SGPR registers valid for instruction destinations, including
  18781. VCC, M0 and EXEC
  18782. 'SS'
  18783. SGPR registers valid for instruction sources, including VCC,
  18784. M0, EXEC and SCC
  18785. 'Sm'
  18786. SGPR registers valid as a source for scalar memory
  18787. instructions (excludes M0 and EXEC)
  18788. 'Sv'
  18789. SGPR registers valid as a source or destination for vector
  18790. instructions (excludes EXEC)
  18791. 'ca'
  18792. All condition registers: SCC, VCCZ, EXECZ
  18793. 'cs'
  18794. Scalar condition register: SCC
  18795. 'cV'
  18796. Vector condition register: VCC, VCC_LO, VCC_HI
  18797. 'e'
  18798. EXEC register (EXEC_LO and EXEC_HI)
  18799. 'RB'
  18800. Memory operand with address space suitable for 'buffer_*'
  18801. instructions
  18802. 'RF'
  18803. Memory operand with address space suitable for 'flat_*'
  18804. instructions
  18805. 'RS'
  18806. Memory operand with address space suitable for 's_*'
  18807. instructions
  18808. 'RL'
  18809. Memory operand with address space suitable for 'ds_*' LDS
  18810. instructions
  18811. 'RG'
  18812. Memory operand with address space suitable for 'ds_*' GDS
  18813. instructions
  18814. 'RD'
  18815. Memory operand with address space suitable for any 'ds_*'
  18816. instructions
  18817. 'RM'
  18818. Memory operand with address space suitable for 'global_*'
  18819. instructions
  18820. _ARC --'config/arc/constraints.md'_
  18821. 'q'
  18822. Registers usable in ARCompact 16-bit instructions: 'r0'-'r3',
  18823. 'r12'-'r15'. This constraint can only match when the '-mq'
  18824. option is in effect.
  18825. 'e'
  18826. Registers usable as base-regs of memory addresses in ARCompact
  18827. 16-bit memory instructions: 'r0'-'r3', 'r12'-'r15', 'sp'.
  18828. This constraint can only match when the '-mq' option is in
  18829. effect.
  18830. 'D'
  18831. ARC FPX (dpfp) 64-bit registers. 'D0', 'D1'.
  18832. 'I'
  18833. A signed 12-bit integer constant.
  18834. 'Cal'
  18835. constant for arithmetic/logical operations. This might be any
  18836. constant that can be put into a long immediate by the assmbler
  18837. or linker without involving a PIC relocation.
  18838. 'K'
  18839. A 3-bit unsigned integer constant.
  18840. 'L'
  18841. A 6-bit unsigned integer constant.
  18842. 'CnL'
  18843. One's complement of a 6-bit unsigned integer constant.
  18844. 'CmL'
  18845. Two's complement of a 6-bit unsigned integer constant.
  18846. 'M'
  18847. A 5-bit unsigned integer constant.
  18848. 'O'
  18849. A 7-bit unsigned integer constant.
  18850. 'P'
  18851. A 8-bit unsigned integer constant.
  18852. 'H'
  18853. Any const_double value.
  18854. _ARM family--'config/arm/constraints.md'_
  18855. 'h'
  18856. In Thumb state, the core registers 'r8'-'r15'.
  18857. 'k'
  18858. The stack pointer register.
  18859. 'l'
  18860. In Thumb State the core registers 'r0'-'r7'. In ARM state
  18861. this is an alias for the 'r' constraint.
  18862. 't'
  18863. VFP floating-point registers 's0'-'s31'. Used for 32 bit
  18864. values.
  18865. 'w'
  18866. VFP floating-point registers 'd0'-'d31' and the appropriate
  18867. subset 'd0'-'d15' based on command line options. Used for 64
  18868. bit values only. Not valid for Thumb1.
  18869. 'y'
  18870. The iWMMX co-processor registers.
  18871. 'z'
  18872. The iWMMX GR registers.
  18873. 'G'
  18874. The floating-point constant 0.0
  18875. 'I'
  18876. Integer that is valid as an immediate operand in a data
  18877. processing instruction. That is, an integer in the range 0 to
  18878. 255 rotated by a multiple of 2
  18879. 'J'
  18880. Integer in the range -4095 to 4095
  18881. 'K'
  18882. Integer that satisfies constraint 'I' when inverted (ones
  18883. complement)
  18884. 'L'
  18885. Integer that satisfies constraint 'I' when negated (twos
  18886. complement)
  18887. 'M'
  18888. Integer in the range 0 to 32
  18889. 'Q'
  18890. A memory reference where the exact address is in a single
  18891. register (''m'' is preferable for 'asm' statements)
  18892. 'R'
  18893. An item in the constant pool
  18894. 'S'
  18895. A symbol in the text segment of the current file
  18896. 'Uv'
  18897. A memory reference suitable for VFP load/store insns
  18898. (reg+constant offset)
  18899. 'Uy'
  18900. A memory reference suitable for iWMMXt load/store
  18901. instructions.
  18902. 'Uq'
  18903. A memory reference suitable for the ARMv4 ldrsb instruction.
  18904. _AVR family--'config/avr/constraints.md'_
  18905. 'l'
  18906. Registers from r0 to r15
  18907. 'a'
  18908. Registers from r16 to r23
  18909. 'd'
  18910. Registers from r16 to r31
  18911. 'w'
  18912. Registers from r24 to r31. These registers can be used in
  18913. 'adiw' command
  18914. 'e'
  18915. Pointer register (r26-r31)
  18916. 'b'
  18917. Base pointer register (r28-r31)
  18918. 'q'
  18919. Stack pointer register (SPH:SPL)
  18920. 't'
  18921. Temporary register r0
  18922. 'x'
  18923. Register pair X (r27:r26)
  18924. 'y'
  18925. Register pair Y (r29:r28)
  18926. 'z'
  18927. Register pair Z (r31:r30)
  18928. 'I'
  18929. Constant greater than -1, less than 64
  18930. 'J'
  18931. Constant greater than -64, less than 1
  18932. 'K'
  18933. Constant integer 2
  18934. 'L'
  18935. Constant integer 0
  18936. 'M'
  18937. Constant that fits in 8 bits
  18938. 'N'
  18939. Constant integer -1
  18940. 'O'
  18941. Constant integer 8, 16, or 24
  18942. 'P'
  18943. Constant integer 1
  18944. 'G'
  18945. A floating point constant 0.0
  18946. 'Q'
  18947. A memory address based on Y or Z pointer with displacement.
  18948. _Blackfin family--'config/bfin/constraints.md'_
  18949. 'a'
  18950. P register
  18951. 'd'
  18952. D register
  18953. 'z'
  18954. A call clobbered P register.
  18955. 'qN'
  18956. A single register. If N is in the range 0 to 7, the
  18957. corresponding D register. If it is 'A', then the register P0.
  18958. 'D'
  18959. Even-numbered D register
  18960. 'W'
  18961. Odd-numbered D register
  18962. 'e'
  18963. Accumulator register.
  18964. 'A'
  18965. Even-numbered accumulator register.
  18966. 'B'
  18967. Odd-numbered accumulator register.
  18968. 'b'
  18969. I register
  18970. 'v'
  18971. B register
  18972. 'f'
  18973. M register
  18974. 'c'
  18975. Registers used for circular buffering, i.e. I, B, or L
  18976. registers.
  18977. 'C'
  18978. The CC register.
  18979. 't'
  18980. LT0 or LT1.
  18981. 'k'
  18982. LC0 or LC1.
  18983. 'u'
  18984. LB0 or LB1.
  18985. 'x'
  18986. Any D, P, B, M, I or L register.
  18987. 'y'
  18988. Additional registers typically used only in prologues and
  18989. epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
  18990. USP.
  18991. 'w'
  18992. Any register except accumulators or CC.
  18993. 'Ksh'
  18994. Signed 16 bit integer (in the range -32768 to 32767)
  18995. 'Kuh'
  18996. Unsigned 16 bit integer (in the range 0 to 65535)
  18997. 'Ks7'
  18998. Signed 7 bit integer (in the range -64 to 63)
  18999. 'Ku7'
  19000. Unsigned 7 bit integer (in the range 0 to 127)
  19001. 'Ku5'
  19002. Unsigned 5 bit integer (in the range 0 to 31)
  19003. 'Ks4'
  19004. Signed 4 bit integer (in the range -8 to 7)
  19005. 'Ks3'
  19006. Signed 3 bit integer (in the range -3 to 4)
  19007. 'Ku3'
  19008. Unsigned 3 bit integer (in the range 0 to 7)
  19009. 'PN'
  19010. Constant N, where N is a single-digit constant in the range 0
  19011. to 4.
  19012. 'PA'
  19013. An integer equal to one of the MACFLAG_XXX constants that is
  19014. suitable for use with either accumulator.
  19015. 'PB'
  19016. An integer equal to one of the MACFLAG_XXX constants that is
  19017. suitable for use only with accumulator A1.
  19018. 'M1'
  19019. Constant 255.
  19020. 'M2'
  19021. Constant 65535.
  19022. 'J'
  19023. An integer constant with exactly a single bit set.
  19024. 'L'
  19025. An integer constant with all bits set except exactly one.
  19026. 'H'
  19027. 'Q'
  19028. Any SYMBOL_REF.
  19029. _CR16 Architecture--'config/cr16/cr16.h'_
  19030. 'b'
  19031. Registers from r0 to r14 (registers without stack pointer)
  19032. 't'
  19033. Register from r0 to r11 (all 16-bit registers)
  19034. 'p'
  19035. Register from r12 to r15 (all 32-bit registers)
  19036. 'I'
  19037. Signed constant that fits in 4 bits
  19038. 'J'
  19039. Signed constant that fits in 5 bits
  19040. 'K'
  19041. Signed constant that fits in 6 bits
  19042. 'L'
  19043. Unsigned constant that fits in 4 bits
  19044. 'M'
  19045. Signed constant that fits in 32 bits
  19046. 'N'
  19047. Check for 64 bits wide constants for add/sub instructions
  19048. 'G'
  19049. Floating point constant that is legal for store immediate
  19050. _C-SKY--'config/csky/constraints.md'_
  19051. 'a'
  19052. The mini registers r0 - r7.
  19053. 'b'
  19054. The low registers r0 - r15.
  19055. 'c'
  19056. C register.
  19057. 'y'
  19058. HI and LO registers.
  19059. 'l'
  19060. LO register.
  19061. 'h'
  19062. HI register.
  19063. 'v'
  19064. Vector registers.
  19065. 'z'
  19066. Stack pointer register (SP).
  19067. The C-SKY back end supports a large set of additional constraints
  19068. that are only useful for instruction selection or splitting rather
  19069. than inline asm, such as constraints representing constant integer
  19070. ranges accepted by particular instruction encodings. Refer to the
  19071. source code for details.
  19072. _Epiphany--'config/epiphany/constraints.md'_
  19073. 'U16'
  19074. An unsigned 16-bit constant.
  19075. 'K'
  19076. An unsigned 5-bit constant.
  19077. 'L'
  19078. A signed 11-bit constant.
  19079. 'Cm1'
  19080. A signed 11-bit constant added to -1. Can only match when the
  19081. '-m1reg-REG' option is active.
  19082. 'Cl1'
  19083. Left-shift of -1, i.e., a bit mask with a block of leading
  19084. ones, the rest being a block of trailing zeroes. Can only
  19085. match when the '-m1reg-REG' option is active.
  19086. 'Cr1'
  19087. Right-shift of -1, i.e., a bit mask with a trailing block of
  19088. ones, the rest being zeroes. Or to put it another way, one
  19089. less than a power of two. Can only match when the
  19090. '-m1reg-REG' option is active.
  19091. 'Cal'
  19092. Constant for arithmetic/logical operations. This is like 'i',
  19093. except that for position independent code, no symbols /
  19094. expressions needing relocations are allowed.
  19095. 'Csy'
  19096. Symbolic constant for call/jump instruction.
  19097. 'Rcs'
  19098. The register class usable in short insns. This is a register
  19099. class constraint, and can thus drive register allocation.
  19100. This constraint won't match unless '-mprefer-short-insn-regs'
  19101. is in effect.
  19102. 'Rsc'
  19103. The the register class of registers that can be used to hold a
  19104. sibcall call address. I.e., a caller-saved register.
  19105. 'Rct'
  19106. Core control register class.
  19107. 'Rgs'
  19108. The register group usable in short insns. This constraint
  19109. does not use a register class, so that it only passively
  19110. matches suitable registers, and doesn't drive register
  19111. allocation.
  19112. 'Car'
  19113. Constant suitable for the addsi3_r pattern. This is a valid
  19114. offset For byte, halfword, or word addressing.
  19115. 'Rra'
  19116. Matches the return address if it can be replaced with the link
  19117. register.
  19118. 'Rcc'
  19119. Matches the integer condition code register.
  19120. 'Sra'
  19121. Matches the return address if it is in a stack slot.
  19122. 'Cfm'
  19123. Matches control register values to switch fp mode, which are
  19124. encapsulated in 'UNSPEC_FP_MODE'.
  19125. _FRV--'config/frv/frv.h'_
  19126. 'a'
  19127. Register in the class 'ACC_REGS' ('acc0' to 'acc7').
  19128. 'b'
  19129. Register in the class 'EVEN_ACC_REGS' ('acc0' to 'acc7').
  19130. 'c'
  19131. Register in the class 'CC_REGS' ('fcc0' to 'fcc3' and 'icc0'
  19132. to 'icc3').
  19133. 'd'
  19134. Register in the class 'GPR_REGS' ('gr0' to 'gr63').
  19135. 'e'
  19136. Register in the class 'EVEN_REGS' ('gr0' to 'gr63'). Odd
  19137. registers are excluded not in the class but through the use of
  19138. a machine mode larger than 4 bytes.
  19139. 'f'
  19140. Register in the class 'FPR_REGS' ('fr0' to 'fr63').
  19141. 'h'
  19142. Register in the class 'FEVEN_REGS' ('fr0' to 'fr63'). Odd
  19143. registers are excluded not in the class but through the use of
  19144. a machine mode larger than 4 bytes.
  19145. 'l'
  19146. Register in the class 'LR_REG' (the 'lr' register).
  19147. 'q'
  19148. Register in the class 'QUAD_REGS' ('gr2' to 'gr63'). Register
  19149. numbers not divisible by 4 are excluded not in the class but
  19150. through the use of a machine mode larger than 8 bytes.
  19151. 't'
  19152. Register in the class 'ICC_REGS' ('icc0' to 'icc3').
  19153. 'u'
  19154. Register in the class 'FCC_REGS' ('fcc0' to 'fcc3').
  19155. 'v'
  19156. Register in the class 'ICR_REGS' ('cc4' to 'cc7').
  19157. 'w'
  19158. Register in the class 'FCR_REGS' ('cc0' to 'cc3').
  19159. 'x'
  19160. Register in the class 'QUAD_FPR_REGS' ('fr0' to 'fr63').
  19161. Register numbers not divisible by 4 are excluded not in the
  19162. class but through the use of a machine mode larger than 8
  19163. bytes.
  19164. 'z'
  19165. Register in the class 'SPR_REGS' ('lcr' and 'lr').
  19166. 'A'
  19167. Register in the class 'QUAD_ACC_REGS' ('acc0' to 'acc7').
  19168. 'B'
  19169. Register in the class 'ACCG_REGS' ('accg0' to 'accg7').
  19170. 'C'
  19171. Register in the class 'CR_REGS' ('cc0' to 'cc7').
  19172. 'G'
  19173. Floating point constant zero
  19174. 'I'
  19175. 6-bit signed integer constant
  19176. 'J'
  19177. 10-bit signed integer constant
  19178. 'L'
  19179. 16-bit signed integer constant
  19180. 'M'
  19181. 16-bit unsigned integer constant
  19182. 'N'
  19183. 12-bit signed integer constant that is negative--i.e. in the
  19184. range of -2048 to -1
  19185. 'O'
  19186. Constant zero
  19187. 'P'
  19188. 12-bit signed integer constant that is greater than zero--i.e.
  19189. in the range of 1 to 2047.
  19190. _FT32--'config/ft32/constraints.md'_
  19191. 'A'
  19192. An absolute address
  19193. 'B'
  19194. An offset address
  19195. 'W'
  19196. A register indirect memory operand
  19197. 'e'
  19198. An offset address.
  19199. 'f'
  19200. An offset address.
  19201. 'O'
  19202. The constant zero or one
  19203. 'I'
  19204. A 16-bit signed constant (-32768 ... 32767)
  19205. 'w'
  19206. A bitfield mask suitable for bext or bins
  19207. 'x'
  19208. An inverted bitfield mask suitable for bext or bins
  19209. 'L'
  19210. A 16-bit unsigned constant, multiple of 4 (0 ... 65532)
  19211. 'S'
  19212. A 20-bit signed constant (-524288 ... 524287)
  19213. 'b'
  19214. A constant for a bitfield width (1 ... 16)
  19215. 'KA'
  19216. A 10-bit signed constant (-512 ... 511)
  19217. _Hewlett-Packard PA-RISC--'config/pa/pa.h'_
  19218. 'a'
  19219. General register 1
  19220. 'f'
  19221. Floating point register
  19222. 'q'
  19223. Shift amount register
  19224. 'x'
  19225. Floating point register (deprecated)
  19226. 'y'
  19227. Upper floating point register (32-bit), floating point
  19228. register (64-bit)
  19229. 'Z'
  19230. Any register
  19231. 'I'
  19232. Signed 11-bit integer constant
  19233. 'J'
  19234. Signed 14-bit integer constant
  19235. 'K'
  19236. Integer constant that can be deposited with a 'zdepi'
  19237. instruction
  19238. 'L'
  19239. Signed 5-bit integer constant
  19240. 'M'
  19241. Integer constant 0
  19242. 'N'
  19243. Integer constant that can be loaded with a 'ldil' instruction
  19244. 'O'
  19245. Integer constant whose value plus one is a power of 2
  19246. 'P'
  19247. Integer constant that can be used for 'and' operations in
  19248. 'depi' and 'extru' instructions
  19249. 'S'
  19250. Integer constant 31
  19251. 'U'
  19252. Integer constant 63
  19253. 'G'
  19254. Floating-point constant 0.0
  19255. 'A'
  19256. A 'lo_sum' data-linkage-table memory operand
  19257. 'Q'
  19258. A memory operand that can be used as the destination operand
  19259. of an integer store instruction
  19260. 'R'
  19261. A scaled or unscaled indexed memory operand
  19262. 'T'
  19263. A memory operand for floating-point loads and stores
  19264. 'W'
  19265. A register indirect memory operand
  19266. _Intel IA-64--'config/ia64/ia64.h'_
  19267. 'a'
  19268. General register 'r0' to 'r3' for 'addl' instruction
  19269. 'b'
  19270. Branch register
  19271. 'c'
  19272. Predicate register ('c' as in "conditional")
  19273. 'd'
  19274. Application register residing in M-unit
  19275. 'e'
  19276. Application register residing in I-unit
  19277. 'f'
  19278. Floating-point register
  19279. 'm'
  19280. Memory operand. If used together with '<' or '>', the operand
  19281. can have postincrement and postdecrement which require
  19282. printing with '%Pn' on IA-64.
  19283. 'G'
  19284. Floating-point constant 0.0 or 1.0
  19285. 'I'
  19286. 14-bit signed integer constant
  19287. 'J'
  19288. 22-bit signed integer constant
  19289. 'K'
  19290. 8-bit signed integer constant for logical instructions
  19291. 'L'
  19292. 8-bit adjusted signed integer constant for compare pseudo-ops
  19293. 'M'
  19294. 6-bit unsigned integer constant for shift counts
  19295. 'N'
  19296. 9-bit signed integer constant for load and store
  19297. postincrements
  19298. 'O'
  19299. The constant zero
  19300. 'P'
  19301. 0 or -1 for 'dep' instruction
  19302. 'Q'
  19303. Non-volatile memory for floating-point loads and stores
  19304. 'R'
  19305. Integer constant in the range 1 to 4 for 'shladd' instruction
  19306. 'S'
  19307. Memory operand except postincrement and postdecrement. This
  19308. is now roughly the same as 'm' when not used together with '<'
  19309. or '>'.
  19310. _M32C--'config/m32c/m32c.c'_
  19311. 'Rsp'
  19312. 'Rfb'
  19313. 'Rsb'
  19314. '$sp', '$fb', '$sb'.
  19315. 'Rcr'
  19316. Any control register, when they're 16 bits wide (nothing if
  19317. control registers are 24 bits wide)
  19318. 'Rcl'
  19319. Any control register, when they're 24 bits wide.
  19320. 'R0w'
  19321. 'R1w'
  19322. 'R2w'
  19323. 'R3w'
  19324. $r0, $r1, $r2, $r3.
  19325. 'R02'
  19326. $r0 or $r2, or $r2r0 for 32 bit values.
  19327. 'R13'
  19328. $r1 or $r3, or $r3r1 for 32 bit values.
  19329. 'Rdi'
  19330. A register that can hold a 64 bit value.
  19331. 'Rhl'
  19332. $r0 or $r1 (registers with addressable high/low bytes)
  19333. 'R23'
  19334. $r2 or $r3
  19335. 'Raa'
  19336. Address registers
  19337. 'Raw'
  19338. Address registers when they're 16 bits wide.
  19339. 'Ral'
  19340. Address registers when they're 24 bits wide.
  19341. 'Rqi'
  19342. Registers that can hold QI values.
  19343. 'Rad'
  19344. Registers that can be used with displacements ($a0, $a1, $sb).
  19345. 'Rsi'
  19346. Registers that can hold 32 bit values.
  19347. 'Rhi'
  19348. Registers that can hold 16 bit values.
  19349. 'Rhc'
  19350. Registers chat can hold 16 bit values, including all control
  19351. registers.
  19352. 'Rra'
  19353. $r0 through R1, plus $a0 and $a1.
  19354. 'Rfl'
  19355. The flags register.
  19356. 'Rmm'
  19357. The memory-based pseudo-registers $mem0 through $mem15.
  19358. 'Rpi'
  19359. Registers that can hold pointers (16 bit registers for r8c,
  19360. m16c; 24 bit registers for m32cm, m32c).
  19361. 'Rpa'
  19362. Matches multiple registers in a PARALLEL to form a larger
  19363. register. Used to match function return values.
  19364. 'Is3'
  19365. -8 ... 7
  19366. 'IS1'
  19367. -128 ... 127
  19368. 'IS2'
  19369. -32768 ... 32767
  19370. 'IU2'
  19371. 0 ... 65535
  19372. 'In4'
  19373. -8 ... -1 or 1 ... 8
  19374. 'In5'
  19375. -16 ... -1 or 1 ... 16
  19376. 'In6'
  19377. -32 ... -1 or 1 ... 32
  19378. 'IM2'
  19379. -65536 ... -1
  19380. 'Ilb'
  19381. An 8 bit value with exactly one bit set.
  19382. 'Ilw'
  19383. A 16 bit value with exactly one bit set.
  19384. 'Sd'
  19385. The common src/dest memory addressing modes.
  19386. 'Sa'
  19387. Memory addressed using $a0 or $a1.
  19388. 'Si'
  19389. Memory addressed with immediate addresses.
  19390. 'Ss'
  19391. Memory addressed using the stack pointer ($sp).
  19392. 'Sf'
  19393. Memory addressed using the frame base register ($fb).
  19394. 'Ss'
  19395. Memory addressed using the small base register ($sb).
  19396. 'S1'
  19397. $r1h
  19398. _MicroBlaze--'config/microblaze/constraints.md'_
  19399. 'd'
  19400. A general register ('r0' to 'r31').
  19401. 'z'
  19402. A status register ('rmsr', '$fcc1' to '$fcc7').
  19403. _MIPS--'config/mips/constraints.md'_
  19404. 'd'
  19405. A general-purpose register. This is equivalent to 'r' unless
  19406. generating MIPS16 code, in which case the MIPS16 register set
  19407. is used.
  19408. 'f'
  19409. A floating-point register (if available).
  19410. 'h'
  19411. Formerly the 'hi' register. This constraint is no longer
  19412. supported.
  19413. 'l'
  19414. The 'lo' register. Use this register to store values that are
  19415. no bigger than a word.
  19416. 'x'
  19417. The concatenated 'hi' and 'lo' registers. Use this register
  19418. to store doubleword values.
  19419. 'c'
  19420. A register suitable for use in an indirect jump. This will
  19421. always be '$25' for '-mabicalls'.
  19422. 'v'
  19423. Register '$3'. Do not use this constraint in new code; it is
  19424. retained only for compatibility with glibc.
  19425. 'y'
  19426. Equivalent to 'r'; retained for backwards compatibility.
  19427. 'z'
  19428. A floating-point condition code register.
  19429. 'I'
  19430. A signed 16-bit constant (for arithmetic instructions).
  19431. 'J'
  19432. Integer zero.
  19433. 'K'
  19434. An unsigned 16-bit constant (for logic instructions).
  19435. 'L'
  19436. A signed 32-bit constant in which the lower 16 bits are zero.
  19437. Such constants can be loaded using 'lui'.
  19438. 'M'
  19439. A constant that cannot be loaded using 'lui', 'addiu' or
  19440. 'ori'.
  19441. 'N'
  19442. A constant in the range -65535 to -1 (inclusive).
  19443. 'O'
  19444. A signed 15-bit constant.
  19445. 'P'
  19446. A constant in the range 1 to 65535 (inclusive).
  19447. 'G'
  19448. Floating-point zero.
  19449. 'R'
  19450. An address that can be used in a non-macro load or store.
  19451. 'ZC'
  19452. A memory operand whose address is formed by a base register
  19453. and offset that is suitable for use in instructions with the
  19454. same addressing mode as 'll' and 'sc'.
  19455. 'ZD'
  19456. An address suitable for a 'prefetch' instruction, or for any
  19457. other instruction with the same addressing mode as 'prefetch'.
  19458. _Motorola 680x0--'config/m68k/constraints.md'_
  19459. 'a'
  19460. Address register
  19461. 'd'
  19462. Data register
  19463. 'f'
  19464. 68881 floating-point register, if available
  19465. 'I'
  19466. Integer in the range 1 to 8
  19467. 'J'
  19468. 16-bit signed number
  19469. 'K'
  19470. Signed number whose magnitude is greater than 0x80
  19471. 'L'
  19472. Integer in the range -8 to -1
  19473. 'M'
  19474. Signed number whose magnitude is greater than 0x100
  19475. 'N'
  19476. Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  19477. 'O'
  19478. 16 (for rotate using swap)
  19479. 'P'
  19480. Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  19481. 'R'
  19482. Numbers that mov3q can handle
  19483. 'G'
  19484. Floating point constant that is not a 68881 constant
  19485. 'S'
  19486. Operands that satisfy 'm' when -mpcrel is in effect
  19487. 'T'
  19488. Operands that satisfy 's' when -mpcrel is not in effect
  19489. 'Q'
  19490. Address register indirect addressing mode
  19491. 'U'
  19492. Register offset addressing
  19493. 'W'
  19494. const_call_operand
  19495. 'Cs'
  19496. symbol_ref or const
  19497. 'Ci'
  19498. const_int
  19499. 'C0'
  19500. const_int 0
  19501. 'Cj'
  19502. Range of signed numbers that don't fit in 16 bits
  19503. 'Cmvq'
  19504. Integers valid for mvq
  19505. 'Capsw'
  19506. Integers valid for a moveq followed by a swap
  19507. 'Cmvz'
  19508. Integers valid for mvz
  19509. 'Cmvs'
  19510. Integers valid for mvs
  19511. 'Ap'
  19512. push_operand
  19513. 'Ac'
  19514. Non-register operands allowed in clr
  19515. _Moxie--'config/moxie/constraints.md'_
  19516. 'A'
  19517. An absolute address
  19518. 'B'
  19519. An offset address
  19520. 'W'
  19521. A register indirect memory operand
  19522. 'I'
  19523. A constant in the range of 0 to 255.
  19524. 'N'
  19525. A constant in the range of 0 to -255.
  19526. _MSP430-'config/msp430/constraints.md'_
  19527. 'R12'
  19528. Register R12.
  19529. 'R13'
  19530. Register R13.
  19531. 'K'
  19532. Integer constant 1.
  19533. 'L'
  19534. Integer constant -1^20..1^19.
  19535. 'M'
  19536. Integer constant 1-4.
  19537. 'Ya'
  19538. Memory references which do not require an extended MOVX
  19539. instruction.
  19540. 'Yl'
  19541. Memory reference, labels only.
  19542. 'Ys'
  19543. Memory reference, stack only.
  19544. _NDS32--'config/nds32/constraints.md'_
  19545. 'w'
  19546. LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  19547. 'l'
  19548. LOW register class $r0 to $r7.
  19549. 'd'
  19550. MIDDLE register class $r0 to $r11, $r16 to $r19.
  19551. 'h'
  19552. HIGH register class $r12 to $r14, $r20 to $r31.
  19553. 't'
  19554. Temporary assist register $ta (i.e. $r15).
  19555. 'k'
  19556. Stack register $sp.
  19557. 'Iu03'
  19558. Unsigned immediate 3-bit value.
  19559. 'In03'
  19560. Negative immediate 3-bit value in the range of -7-0.
  19561. 'Iu04'
  19562. Unsigned immediate 4-bit value.
  19563. 'Is05'
  19564. Signed immediate 5-bit value.
  19565. 'Iu05'
  19566. Unsigned immediate 5-bit value.
  19567. 'In05'
  19568. Negative immediate 5-bit value in the range of -31-0.
  19569. 'Ip05'
  19570. Unsigned immediate 5-bit value for movpi45 instruction with
  19571. range 16-47.
  19572. 'Iu06'
  19573. Unsigned immediate 6-bit value constraint for addri36.sp
  19574. instruction.
  19575. 'Iu08'
  19576. Unsigned immediate 8-bit value.
  19577. 'Iu09'
  19578. Unsigned immediate 9-bit value.
  19579. 'Is10'
  19580. Signed immediate 10-bit value.
  19581. 'Is11'
  19582. Signed immediate 11-bit value.
  19583. 'Is15'
  19584. Signed immediate 15-bit value.
  19585. 'Iu15'
  19586. Unsigned immediate 15-bit value.
  19587. 'Ic15'
  19588. A constant which is not in the range of imm15u but ok for bclr
  19589. instruction.
  19590. 'Ie15'
  19591. A constant which is not in the range of imm15u but ok for bset
  19592. instruction.
  19593. 'It15'
  19594. A constant which is not in the range of imm15u but ok for btgl
  19595. instruction.
  19596. 'Ii15'
  19597. A constant whose compliment value is in the range of imm15u
  19598. and ok for bitci instruction.
  19599. 'Is16'
  19600. Signed immediate 16-bit value.
  19601. 'Is17'
  19602. Signed immediate 17-bit value.
  19603. 'Is19'
  19604. Signed immediate 19-bit value.
  19605. 'Is20'
  19606. Signed immediate 20-bit value.
  19607. 'Ihig'
  19608. The immediate value that can be simply set high 20-bit.
  19609. 'Izeb'
  19610. The immediate value 0xff.
  19611. 'Izeh'
  19612. The immediate value 0xffff.
  19613. 'Ixls'
  19614. The immediate value 0x01.
  19615. 'Ix11'
  19616. The immediate value 0x7ff.
  19617. 'Ibms'
  19618. The immediate value with power of 2.
  19619. 'Ifex'
  19620. The immediate value with power of 2 minus 1.
  19621. 'U33'
  19622. Memory constraint for 333 format.
  19623. 'U45'
  19624. Memory constraint for 45 format.
  19625. 'U37'
  19626. Memory constraint for 37 format.
  19627. _Nios II family--'config/nios2/constraints.md'_
  19628. 'I'
  19629. Integer that is valid as an immediate operand in an
  19630. instruction taking a signed 16-bit number. Range -32768 to
  19631. 32767.
  19632. 'J'
  19633. Integer that is valid as an immediate operand in an
  19634. instruction taking an unsigned 16-bit number. Range 0 to
  19635. 65535.
  19636. 'K'
  19637. Integer that is valid as an immediate operand in an
  19638. instruction taking only the upper 16-bits of a 32-bit number.
  19639. Range 32-bit numbers with the lower 16-bits being 0.
  19640. 'L'
  19641. Integer that is valid as an immediate operand for a shift
  19642. instruction. Range 0 to 31.
  19643. 'M'
  19644. Integer that is valid as an immediate operand for only the
  19645. value 0. Can be used in conjunction with the format modifier
  19646. 'z' to use 'r0' instead of '0' in the assembly output.
  19647. 'N'
  19648. Integer that is valid as an immediate operand for a custom
  19649. instruction opcode. Range 0 to 255.
  19650. 'P'
  19651. An immediate operand for R2 andchi/andci instructions.
  19652. 'S'
  19653. Matches immediates which are addresses in the small data
  19654. section and therefore can be added to 'gp' as a 16-bit
  19655. immediate to re-create their 32-bit value.
  19656. 'U'
  19657. Matches constants suitable as an operand for the rdprs and
  19658. cache instructions.
  19659. 'v'
  19660. A memory operand suitable for Nios II R2 load/store exclusive
  19661. instructions.
  19662. 'w'
  19663. A memory operand suitable for load/store IO and cache
  19664. instructions.
  19665. 'T'
  19666. A 'const' wrapped 'UNSPEC' expression, representing a
  19667. supported PIC or TLS relocation.
  19668. _OpenRISC--'config/or1k/constraints.md'_
  19669. 'I'
  19670. Integer that is valid as an immediate operand in an
  19671. instruction taking a signed 16-bit number. Range -32768 to
  19672. 32767.
  19673. 'K'
  19674. Integer that is valid as an immediate operand in an
  19675. instruction taking an unsigned 16-bit number. Range 0 to
  19676. 65535.
  19677. 'M'
  19678. Signed 16-bit constant shifted left 16 bits. (Used with
  19679. 'l.movhi')
  19680. 'O'
  19681. Zero
  19682. 'c'
  19683. Register usable for sibcalls.
  19684. _PDP-11--'config/pdp11/constraints.md'_
  19685. 'a'
  19686. Floating point registers AC0 through AC3. These can be loaded
  19687. from/to memory with a single instruction.
  19688. 'd'
  19689. Odd numbered general registers (R1, R3, R5). These are used
  19690. for 16-bit multiply operations.
  19691. 'D'
  19692. A memory reference that is encoded within the opcode, but not
  19693. auto-increment or auto-decrement.
  19694. 'f'
  19695. Any of the floating point registers (AC0 through AC5).
  19696. 'G'
  19697. Floating point constant 0.
  19698. 'h'
  19699. Floating point registers AC4 and AC5. These cannot be loaded
  19700. from/to memory with a single instruction.
  19701. 'I'
  19702. An integer constant that fits in 16 bits.
  19703. 'J'
  19704. An integer constant whose low order 16 bits are zero.
  19705. 'K'
  19706. An integer constant that does not meet the constraints for
  19707. codes 'I' or 'J'.
  19708. 'L'
  19709. The integer constant 1.
  19710. 'M'
  19711. The integer constant -1.
  19712. 'N'
  19713. The integer constant 0.
  19714. 'O'
  19715. Integer constants 0 through 3; shifts by these amounts are
  19716. handled as multiple single-bit shifts rather than a single
  19717. variable-length shift.
  19718. 'Q'
  19719. A memory reference which requires an additional word (address
  19720. or offset) after the opcode.
  19721. 'R'
  19722. A memory reference that is encoded within the opcode.
  19723. _PowerPC and IBM RS6000--'config/rs6000/constraints.md'_
  19724. 'r'
  19725. A general purpose register (GPR), 'r0'...'r31'.
  19726. 'b'
  19727. A base register. Like 'r', but 'r0' is not allowed, so
  19728. 'r1'...'r31'.
  19729. 'f'
  19730. A floating point register (FPR), 'f0'...'f31'.
  19731. 'd'
  19732. A floating point register. This is the same as 'f' nowadays;
  19733. historically 'f' was for single-precision and 'd' was for
  19734. double-precision floating point.
  19735. 'v'
  19736. An Altivec vector register (VR), 'v0'...'v31'.
  19737. 'wa'
  19738. A VSX register (VSR), 'vs0'...'vs63'. This is either an FPR
  19739. ('vs0'...'vs31' are 'f0'...'f31') or a VR ('vs32'...'vs63' are
  19740. 'v0'...'v31').
  19741. When using 'wa', you should use the '%x' output modifier, so
  19742. that the correct register number is printed. For example:
  19743. asm ("xvadddp %x0,%x1,%x2"
  19744. : "=wa" (v1)
  19745. : "wa" (v2), "wa" (v3));
  19746. You should not use '%x' for 'v' operands:
  19747. asm ("xsaddqp %0,%1,%2"
  19748. : "=v" (v1)
  19749. : "v" (v2), "v" (v3));
  19750. 'h'
  19751. A special register ('vrsave', 'ctr', or 'lr').
  19752. 'c'
  19753. The count register, 'ctr'.
  19754. 'l'
  19755. The link register, 'lr'.
  19756. 'x'
  19757. Condition register field 0, 'cr0'.
  19758. 'y'
  19759. Any condition register field, 'cr0'...'cr7'.
  19760. 'z'
  19761. The carry bit, 'XER[CA]'.
  19762. 'we'
  19763. Like 'wa', if '-mpower9-vector' and '-m64' are used;
  19764. otherwise, 'NO_REGS'.
  19765. 'wn'
  19766. No register ('NO_REGS').
  19767. 'wr'
  19768. Like 'r', if '-mpowerpc64' is used; otherwise, 'NO_REGS'.
  19769. 'wx'
  19770. Like 'd', if '-mpowerpc-gfxopt' is used; otherwise, 'NO_REGS'.
  19771. 'wA'
  19772. Like 'b', if '-mpowerpc64' is used; otherwise, 'NO_REGS'.
  19773. 'wB'
  19774. Signed 5-bit constant integer that can be loaded into an
  19775. Altivec register.
  19776. 'wD'
  19777. Int constant that is the element number of the 64-bit scalar
  19778. in a vector.
  19779. 'wE'
  19780. Vector constant that can be loaded with the XXSPLTIB
  19781. instruction.
  19782. 'wF'
  19783. Memory operand suitable for power8 GPR load fusion.
  19784. 'wL'
  19785. Int constant that is the element number mfvsrld accesses in a
  19786. vector.
  19787. 'wM'
  19788. Match vector constant with all 1's if the XXLORC instruction
  19789. is available.
  19790. 'wO'
  19791. Memory operand suitable for the ISA 3.0 vector d-form
  19792. instructions.
  19793. 'wQ'
  19794. Memory operand suitable for the load/store quad instructions.
  19795. 'wS'
  19796. Vector constant that can be loaded with XXSPLTIB & sign
  19797. extension.
  19798. 'wY'
  19799. A memory operand for a DS-form instruction.
  19800. 'wZ'
  19801. An indexed or indirect memory operand, ignoring the bottom 4
  19802. bits.
  19803. 'I'
  19804. A signed 16-bit constant.
  19805. 'J'
  19806. An unsigned 16-bit constant shifted left 16 bits (use 'L'
  19807. instead for 'SImode' constants).
  19808. 'K'
  19809. An unsigned 16-bit constant.
  19810. 'L'
  19811. A signed 16-bit constant shifted left 16 bits.
  19812. 'M'
  19813. An integer constant greater than 31.
  19814. 'N'
  19815. An exact power of 2.
  19816. 'O'
  19817. The integer constant zero.
  19818. 'P'
  19819. A constant whose negation is a signed 16-bit constant.
  19820. 'eI'
  19821. A signed 34-bit integer constant if prefixed instructions are
  19822. supported.
  19823. 'G'
  19824. A floating point constant that can be loaded into a register
  19825. with one instruction per word.
  19826. 'H'
  19827. A floating point constant that can be loaded into a register
  19828. using three instructions.
  19829. 'm'
  19830. A memory operand. Normally, 'm' does not allow addresses that
  19831. update the base register. If the '<' or '>' constraint is
  19832. also used, they are allowed and therefore on PowerPC targets
  19833. in that case it is only safe to use 'm<>' in an 'asm'
  19834. statement if that 'asm' statement accesses the operand exactly
  19835. once. The 'asm' statement must also use '%U<OPNO>' as a
  19836. placeholder for the "update" flag in the corresponding load or
  19837. store instruction. For example:
  19838. asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));
  19839. is correct but:
  19840. asm ("st %1,%0" : "=m<>" (mem) : "r" (val));
  19841. is not.
  19842. 'es'
  19843. A "stable" memory operand; that is, one which does not include
  19844. any automodification of the base register. This used to be
  19845. useful when 'm' allowed automodification of the base register,
  19846. but as those are now only allowed when '<' or '>' is used,
  19847. 'es' is basically the same as 'm' without '<' and '>'.
  19848. 'Q'
  19849. A memory operand addressed by just a base register.
  19850. 'Y'
  19851. A memory operand for a DQ-form instruction.
  19852. 'Z'
  19853. A memory operand accessed with indexed or indirect addressing.
  19854. 'R'
  19855. An AIX TOC entry.
  19856. 'a'
  19857. An indexed or indirect address.
  19858. 'U'
  19859. A V.4 small data reference.
  19860. 'W'
  19861. A vector constant that does not require memory.
  19862. 'j'
  19863. The zero vector constant.
  19864. _PRU--'config/pru/constraints.md'_
  19865. 'I'
  19866. An unsigned 8-bit integer constant.
  19867. 'J'
  19868. An unsigned 16-bit integer constant.
  19869. 'L'
  19870. An unsigned 5-bit integer constant (for shift counts).
  19871. 'T'
  19872. A text segment (program memory) constant label.
  19873. 'Z'
  19874. Integer constant zero.
  19875. _RL78--'config/rl78/constraints.md'_
  19876. 'Int3'
  19877. An integer constant in the range 1 ... 7.
  19878. 'Int8'
  19879. An integer constant in the range 0 ... 255.
  19880. 'J'
  19881. An integer constant in the range -255 ... 0
  19882. 'K'
  19883. The integer constant 1.
  19884. 'L'
  19885. The integer constant -1.
  19886. 'M'
  19887. The integer constant 0.
  19888. 'N'
  19889. The integer constant 2.
  19890. 'O'
  19891. The integer constant -2.
  19892. 'P'
  19893. An integer constant in the range 1 ... 15.
  19894. 'Qbi'
  19895. The built-in compare types-eq, ne, gtu, ltu, geu, and leu.
  19896. 'Qsc'
  19897. The synthetic compare types-gt, lt, ge, and le.
  19898. 'Wab'
  19899. A memory reference with an absolute address.
  19900. 'Wbc'
  19901. A memory reference using 'BC' as a base register, with an
  19902. optional offset.
  19903. 'Wca'
  19904. A memory reference using 'AX', 'BC', 'DE', or 'HL' for the
  19905. address, for calls.
  19906. 'Wcv'
  19907. A memory reference using any 16-bit register pair for the
  19908. address, for calls.
  19909. 'Wd2'
  19910. A memory reference using 'DE' as a base register, with an
  19911. optional offset.
  19912. 'Wde'
  19913. A memory reference using 'DE' as a base register, without any
  19914. offset.
  19915. 'Wfr'
  19916. Any memory reference to an address in the far address space.
  19917. 'Wh1'
  19918. A memory reference using 'HL' as a base register, with an
  19919. optional one-byte offset.
  19920. 'Whb'
  19921. A memory reference using 'HL' as a base register, with 'B' or
  19922. 'C' as the index register.
  19923. 'Whl'
  19924. A memory reference using 'HL' as a base register, without any
  19925. offset.
  19926. 'Ws1'
  19927. A memory reference using 'SP' as a base register, with an
  19928. optional one-byte offset.
  19929. 'Y'
  19930. Any memory reference to an address in the near address space.
  19931. 'A'
  19932. The 'AX' register.
  19933. 'B'
  19934. The 'BC' register.
  19935. 'D'
  19936. The 'DE' register.
  19937. 'R'
  19938. 'A' through 'L' registers.
  19939. 'S'
  19940. The 'SP' register.
  19941. 'T'
  19942. The 'HL' register.
  19943. 'Z08W'
  19944. The 16-bit 'R8' register.
  19945. 'Z10W'
  19946. The 16-bit 'R10' register.
  19947. 'Zint'
  19948. The registers reserved for interrupts ('R24' to 'R31').
  19949. 'a'
  19950. The 'A' register.
  19951. 'b'
  19952. The 'B' register.
  19953. 'c'
  19954. The 'C' register.
  19955. 'd'
  19956. The 'D' register.
  19957. 'e'
  19958. The 'E' register.
  19959. 'h'
  19960. The 'H' register.
  19961. 'l'
  19962. The 'L' register.
  19963. 'v'
  19964. The virtual registers.
  19965. 'w'
  19966. The 'PSW' register.
  19967. 'x'
  19968. The 'X' register.
  19969. _RISC-V--'config/riscv/constraints.md'_
  19970. 'f'
  19971. A floating-point register (if available).
  19972. 'I'
  19973. An I-type 12-bit signed immediate.
  19974. 'J'
  19975. Integer zero.
  19976. 'K'
  19977. A 5-bit unsigned immediate for CSR access instructions.
  19978. 'A'
  19979. An address that is held in a general-purpose register.
  19980. _RX--'config/rx/constraints.md'_
  19981. 'Q'
  19982. An address which does not involve register indirect addressing
  19983. or pre/post increment/decrement addressing.
  19984. 'Symbol'
  19985. A symbol reference.
  19986. 'Int08'
  19987. A constant in the range -256 to 255, inclusive.
  19988. 'Sint08'
  19989. A constant in the range -128 to 127, inclusive.
  19990. 'Sint16'
  19991. A constant in the range -32768 to 32767, inclusive.
  19992. 'Sint24'
  19993. A constant in the range -8388608 to 8388607, inclusive.
  19994. 'Uint04'
  19995. A constant in the range 0 to 15, inclusive.
  19996. _S/390 and zSeries--'config/s390/s390.h'_
  19997. 'a'
  19998. Address register (general purpose register except r0)
  19999. 'c'
  20000. Condition code register
  20001. 'd'
  20002. Data register (arbitrary general purpose register)
  20003. 'f'
  20004. Floating-point register
  20005. 'I'
  20006. Unsigned 8-bit constant (0-255)
  20007. 'J'
  20008. Unsigned 12-bit constant (0-4095)
  20009. 'K'
  20010. Signed 16-bit constant (-32768-32767)
  20011. 'L'
  20012. Value appropriate as displacement.
  20013. '(0..4095)'
  20014. for short displacement
  20015. '(-524288..524287)'
  20016. for long displacement
  20017. 'M'
  20018. Constant integer with a value of 0x7fffffff.
  20019. 'N'
  20020. Multiple letter constraint followed by 4 parameter letters.
  20021. '0..9:'
  20022. number of the part counting from most to least
  20023. significant
  20024. 'H,Q:'
  20025. mode of the part
  20026. 'D,S,H:'
  20027. mode of the containing operand
  20028. '0,F:'
  20029. value of the other parts (F--all bits set)
  20030. The constraint matches if the specified part of a constant has
  20031. a value different from its other parts.
  20032. 'Q'
  20033. Memory reference without index register and with short
  20034. displacement.
  20035. 'R'
  20036. Memory reference with index register and short displacement.
  20037. 'S'
  20038. Memory reference without index register but with long
  20039. displacement.
  20040. 'T'
  20041. Memory reference with index register and long displacement.
  20042. 'U'
  20043. Pointer with short displacement.
  20044. 'W'
  20045. Pointer with long displacement.
  20046. 'Y'
  20047. Shift count operand.
  20048. _SPARC--'config/sparc/sparc.h'_
  20049. 'f'
  20050. Floating-point register on the SPARC-V8 architecture and lower
  20051. floating-point register on the SPARC-V9 architecture.
  20052. 'e'
  20053. Floating-point register. It is equivalent to 'f' on the
  20054. SPARC-V8 architecture and contains both lower and upper
  20055. floating-point registers on the SPARC-V9 architecture.
  20056. 'c'
  20057. Floating-point condition code register.
  20058. 'd'
  20059. Lower floating-point register. It is only valid on the
  20060. SPARC-V9 architecture when the Visual Instruction Set is
  20061. available.
  20062. 'b'
  20063. Floating-point register. It is only valid on the SPARC-V9
  20064. architecture when the Visual Instruction Set is available.
  20065. 'h'
  20066. 64-bit global or out register for the SPARC-V8+ architecture.
  20067. 'C'
  20068. The constant all-ones, for floating-point.
  20069. 'A'
  20070. Signed 5-bit constant
  20071. 'D'
  20072. A vector constant
  20073. 'I'
  20074. Signed 13-bit constant
  20075. 'J'
  20076. Zero
  20077. 'K'
  20078. 32-bit constant with the low 12 bits clear (a constant that
  20079. can be loaded with the 'sethi' instruction)
  20080. 'L'
  20081. A constant in the range supported by 'movcc' instructions
  20082. (11-bit signed immediate)
  20083. 'M'
  20084. A constant in the range supported by 'movrcc' instructions
  20085. (10-bit signed immediate)
  20086. 'N'
  20087. Same as 'K', except that it verifies that bits that are not in
  20088. the lower 32-bit range are all zero. Must be used instead of
  20089. 'K' for modes wider than 'SImode'
  20090. 'O'
  20091. The constant 4096
  20092. 'G'
  20093. Floating-point zero
  20094. 'H'
  20095. Signed 13-bit constant, sign-extended to 32 or 64 bits
  20096. 'P'
  20097. The constant -1
  20098. 'Q'
  20099. Floating-point constant whose integral representation can be
  20100. moved into an integer register using a single sethi
  20101. instruction
  20102. 'R'
  20103. Floating-point constant whose integral representation can be
  20104. moved into an integer register using a single mov instruction
  20105. 'S'
  20106. Floating-point constant whose integral representation can be
  20107. moved into an integer register using a high/lo_sum instruction
  20108. sequence
  20109. 'T'
  20110. Memory address aligned to an 8-byte boundary
  20111. 'U'
  20112. Even register
  20113. 'W'
  20114. Memory address for 'e' constraint registers
  20115. 'w'
  20116. Memory address with only a base register
  20117. 'Y'
  20118. Vector zero
  20119. _TI C6X family--'config/c6x/constraints.md'_
  20120. 'a'
  20121. Register file A (A0-A31).
  20122. 'b'
  20123. Register file B (B0-B31).
  20124. 'A'
  20125. Predicate registers in register file A (A0-A2 on C64X and
  20126. higher, A1 and A2 otherwise).
  20127. 'B'
  20128. Predicate registers in register file B (B0-B2).
  20129. 'C'
  20130. A call-used register in register file B (B0-B9, B16-B31).
  20131. 'Da'
  20132. Register file A, excluding predicate registers (A3-A31, plus
  20133. A0 if not C64X or higher).
  20134. 'Db'
  20135. Register file B, excluding predicate registers (B3-B31).
  20136. 'Iu4'
  20137. Integer constant in the range 0 ... 15.
  20138. 'Iu5'
  20139. Integer constant in the range 0 ... 31.
  20140. 'In5'
  20141. Integer constant in the range -31 ... 0.
  20142. 'Is5'
  20143. Integer constant in the range -16 ... 15.
  20144. 'I5x'
  20145. Integer constant that can be the operand of an ADDA or a SUBA
  20146. insn.
  20147. 'IuB'
  20148. Integer constant in the range 0 ... 65535.
  20149. 'IsB'
  20150. Integer constant in the range -32768 ... 32767.
  20151. 'IsC'
  20152. Integer constant in the range -2^{20} ... 2^{20} - 1.
  20153. 'Jc'
  20154. Integer constant that is a valid mask for the clr instruction.
  20155. 'Js'
  20156. Integer constant that is a valid mask for the set instruction.
  20157. 'Q'
  20158. Memory location with A base register.
  20159. 'R'
  20160. Memory location with B base register.
  20161. 'S0'
  20162. On C64x+ targets, a GP-relative small data reference.
  20163. 'S1'
  20164. Any kind of 'SYMBOL_REF', for use in a call address.
  20165. 'Si'
  20166. Any kind of immediate operand, unless it matches the S0
  20167. constraint.
  20168. 'T'
  20169. Memory location with B base register, but not using a long
  20170. offset.
  20171. 'W'
  20172. A memory operand with an address that cannot be used in an
  20173. unaligned access.
  20174. 'Z'
  20175. Register B14 (aka DP).
  20176. _TILE-Gx--'config/tilegx/constraints.md'_
  20177. 'R00'
  20178. 'R01'
  20179. 'R02'
  20180. 'R03'
  20181. 'R04'
  20182. 'R05'
  20183. 'R06'
  20184. 'R07'
  20185. 'R08'
  20186. 'R09'
  20187. 'R10'
  20188. Each of these represents a register constraint for an
  20189. individual register, from r0 to r10.
  20190. 'I'
  20191. Signed 8-bit integer constant.
  20192. 'J'
  20193. Signed 16-bit integer constant.
  20194. 'K'
  20195. Unsigned 16-bit integer constant.
  20196. 'L'
  20197. Integer constant that fits in one signed byte when incremented
  20198. by one (-129 ... 126).
  20199. 'm'
  20200. Memory operand. If used together with '<' or '>', the operand
  20201. can have postincrement which requires printing with '%In' and
  20202. '%in' on TILE-Gx. For example:
  20203. asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));
  20204. 'M'
  20205. A bit mask suitable for the BFINS instruction.
  20206. 'N'
  20207. Integer constant that is a byte tiled out eight times.
  20208. 'O'
  20209. The integer zero constant.
  20210. 'P'
  20211. Integer constant that is a sign-extended byte tiled out as
  20212. four shorts.
  20213. 'Q'
  20214. Integer constant that fits in one signed byte when incremented
  20215. (-129 ... 126), but excluding -1.
  20216. 'S'
  20217. Integer constant that has all 1 bits consecutive and starting
  20218. at bit 0.
  20219. 'T'
  20220. A 16-bit fragment of a got, tls, or pc-relative reference.
  20221. 'U'
  20222. Memory operand except postincrement. This is roughly the same
  20223. as 'm' when not used together with '<' or '>'.
  20224. 'W'
  20225. An 8-element vector constant with identical elements.
  20226. 'Y'
  20227. A 4-element vector constant with identical elements.
  20228. 'Z0'
  20229. The integer constant 0xffffffff.
  20230. 'Z1'
  20231. The integer constant 0xffffffff00000000.
  20232. _TILEPro--'config/tilepro/constraints.md'_
  20233. 'R00'
  20234. 'R01'
  20235. 'R02'
  20236. 'R03'
  20237. 'R04'
  20238. 'R05'
  20239. 'R06'
  20240. 'R07'
  20241. 'R08'
  20242. 'R09'
  20243. 'R10'
  20244. Each of these represents a register constraint for an
  20245. individual register, from r0 to r10.
  20246. 'I'
  20247. Signed 8-bit integer constant.
  20248. 'J'
  20249. Signed 16-bit integer constant.
  20250. 'K'
  20251. Nonzero integer constant with low 16 bits zero.
  20252. 'L'
  20253. Integer constant that fits in one signed byte when incremented
  20254. by one (-129 ... 126).
  20255. 'm'
  20256. Memory operand. If used together with '<' or '>', the operand
  20257. can have postincrement which requires printing with '%In' and
  20258. '%in' on TILEPro. For example:
  20259. asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));
  20260. 'M'
  20261. A bit mask suitable for the MM instruction.
  20262. 'N'
  20263. Integer constant that is a byte tiled out four times.
  20264. 'O'
  20265. The integer zero constant.
  20266. 'P'
  20267. Integer constant that is a sign-extended byte tiled out as two
  20268. shorts.
  20269. 'Q'
  20270. Integer constant that fits in one signed byte when incremented
  20271. (-129 ... 126), but excluding -1.
  20272. 'T'
  20273. A symbolic operand, or a 16-bit fragment of a got, tls, or
  20274. pc-relative reference.
  20275. 'U'
  20276. Memory operand except postincrement. This is roughly the same
  20277. as 'm' when not used together with '<' or '>'.
  20278. 'W'
  20279. A 4-element vector constant with identical elements.
  20280. 'Y'
  20281. A 2-element vector constant with identical elements.
  20282. _Visium--'config/visium/constraints.md'_
  20283. 'b'
  20284. EAM register 'mdb'
  20285. 'c'
  20286. EAM register 'mdc'
  20287. 'f'
  20288. Floating point register
  20289. 'k'
  20290. Register for sibcall optimization
  20291. 'l'
  20292. General register, but not 'r29', 'r30' and 'r31'
  20293. 't'
  20294. Register 'r1'
  20295. 'u'
  20296. Register 'r2'
  20297. 'v'
  20298. Register 'r3'
  20299. 'G'
  20300. Floating-point constant 0.0
  20301. 'J'
  20302. Integer constant in the range 0 .. 65535 (16-bit immediate)
  20303. 'K'
  20304. Integer constant in the range 1 .. 31 (5-bit immediate)
  20305. 'L'
  20306. Integer constant in the range -65535 .. -1 (16-bit negative
  20307. immediate)
  20308. 'M'
  20309. Integer constant -1
  20310. 'O'
  20311. Integer constant 0
  20312. 'P'
  20313. Integer constant 32
  20314. _x86 family--'config/i386/constraints.md'_
  20315. 'R'
  20316. Legacy register--the eight integer registers available on all
  20317. i386 processors ('a', 'b', 'c', 'd', 'si', 'di', 'bp', 'sp').
  20318. 'q'
  20319. Any register accessible as 'Rl'. In 32-bit mode, 'a', 'b',
  20320. 'c', and 'd'; in 64-bit mode, any integer register.
  20321. 'Q'
  20322. Any register accessible as 'Rh': 'a', 'b', 'c', and 'd'.
  20323. 'l'
  20324. Any register that can be used as the index in a base+index
  20325. memory access: that is, any general register except the stack
  20326. pointer.
  20327. 'a'
  20328. The 'a' register.
  20329. 'b'
  20330. The 'b' register.
  20331. 'c'
  20332. The 'c' register.
  20333. 'd'
  20334. The 'd' register.
  20335. 'S'
  20336. The 'si' register.
  20337. 'D'
  20338. The 'di' register.
  20339. 'A'
  20340. The 'a' and 'd' registers. This class is used for
  20341. instructions that return double word results in the 'ax:dx'
  20342. register pair. Single word values will be allocated either in
  20343. 'ax' or 'dx'. For example on i386 the following implements
  20344. 'rdtsc':
  20345. unsigned long long rdtsc (void)
  20346. {
  20347. unsigned long long tick;
  20348. __asm__ __volatile__("rdtsc":"=A"(tick));
  20349. return tick;
  20350. }
  20351. This is not correct on x86-64 as it would allocate tick in
  20352. either 'ax' or 'dx'. You have to use the following variant
  20353. instead:
  20354. unsigned long long rdtsc (void)
  20355. {
  20356. unsigned int tickl, tickh;
  20357. __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh));
  20358. return ((unsigned long long)tickh << 32)|tickl;
  20359. }
  20360. 'U'
  20361. The call-clobbered integer registers.
  20362. 'f'
  20363. Any 80387 floating-point (stack) register.
  20364. 't'
  20365. Top of 80387 floating-point stack ('%st(0)').
  20366. 'u'
  20367. Second from top of 80387 floating-point stack ('%st(1)').
  20368. 'Yk'
  20369. Any mask register that can be used as a predicate, i.e.
  20370. 'k1-k7'.
  20371. 'k'
  20372. Any mask register.
  20373. 'y'
  20374. Any MMX register.
  20375. 'x'
  20376. Any SSE register.
  20377. 'v'
  20378. Any EVEX encodable SSE register ('%xmm0-%xmm31').
  20379. 'w'
  20380. Any bound register.
  20381. 'Yz'
  20382. First SSE register ('%xmm0').
  20383. 'Yi'
  20384. Any SSE register, when SSE2 and inter-unit moves are enabled.
  20385. 'Yj'
  20386. Any SSE register, when SSE2 and inter-unit moves from vector
  20387. registers are enabled.
  20388. 'Ym'
  20389. Any MMX register, when inter-unit moves are enabled.
  20390. 'Yn'
  20391. Any MMX register, when inter-unit moves from vector registers
  20392. are enabled.
  20393. 'Yp'
  20394. Any integer register when 'TARGET_PARTIAL_REG_STALL' is
  20395. disabled.
  20396. 'Ya'
  20397. Any integer register when zero extensions with 'AND' are
  20398. disabled.
  20399. 'Yb'
  20400. Any register that can be used as the GOT base when calling
  20401. '___tls_get_addr': that is, any general register except 'a'
  20402. and 'sp' registers, for '-fno-plt' if linker supports it.
  20403. Otherwise, 'b' register.
  20404. 'Yf'
  20405. Any x87 register when 80387 floating-point arithmetic is
  20406. enabled.
  20407. 'Yr'
  20408. Lower SSE register when avoiding REX prefix and all SSE
  20409. registers otherwise.
  20410. 'Yv'
  20411. For AVX512VL, any EVEX-encodable SSE register
  20412. ('%xmm0-%xmm31'), otherwise any SSE register.
  20413. 'Yh'
  20414. Any EVEX-encodable SSE register, that has number factor of
  20415. four.
  20416. 'Bf'
  20417. Flags register operand.
  20418. 'Bg'
  20419. GOT memory operand.
  20420. 'Bm'
  20421. Vector memory operand.
  20422. 'Bc'
  20423. Constant memory operand.
  20424. 'Bn'
  20425. Memory operand without REX prefix.
  20426. 'Bs'
  20427. Sibcall memory operand.
  20428. 'Bw'
  20429. Call memory operand.
  20430. 'Bz'
  20431. Constant call address operand.
  20432. 'BC'
  20433. SSE constant -1 operand.
  20434. 'I'
  20435. Integer constant in the range 0 ... 31, for 32-bit shifts.
  20436. 'J'
  20437. Integer constant in the range 0 ... 63, for 64-bit shifts.
  20438. 'K'
  20439. Signed 8-bit integer constant.
  20440. 'L'
  20441. '0xFF' or '0xFFFF', for andsi as a zero-extending move.
  20442. 'M'
  20443. 0, 1, 2, or 3 (shifts for the 'lea' instruction).
  20444. 'N'
  20445. Unsigned 8-bit integer constant (for 'in' and 'out'
  20446. instructions).
  20447. 'O'
  20448. Integer constant in the range 0 ... 127, for 128-bit shifts.
  20449. 'G'
  20450. Standard 80387 floating point constant.
  20451. 'C'
  20452. SSE constant zero operand.
  20453. 'e'
  20454. 32-bit signed integer constant, or a symbolic reference known
  20455. to fit that range (for immediate operands in sign-extending
  20456. x86-64 instructions).
  20457. 'We'
  20458. 32-bit signed integer constant, or a symbolic reference known
  20459. to fit that range (for sign-extending conversion operations
  20460. that require non-'VOIDmode' immediate operands).
  20461. 'Wz'
  20462. 32-bit unsigned integer constant, or a symbolic reference
  20463. known to fit that range (for zero-extending conversion
  20464. operations that require non-'VOIDmode' immediate operands).
  20465. 'Wd'
  20466. 128-bit integer constant where both the high and low 64-bit
  20467. word satisfy the 'e' constraint.
  20468. 'Z'
  20469. 32-bit unsigned integer constant, or a symbolic reference
  20470. known to fit that range (for immediate operands in
  20471. zero-extending x86-64 instructions).
  20472. 'Tv'
  20473. VSIB address operand.
  20474. 'Ts'
  20475. Address operand without segment register.
  20476. _Xstormy16--'config/stormy16/stormy16.h'_
  20477. 'a'
  20478. Register r0.
  20479. 'b'
  20480. Register r1.
  20481. 'c'
  20482. Register r2.
  20483. 'd'
  20484. Register r8.
  20485. 'e'
  20486. Registers r0 through r7.
  20487. 't'
  20488. Registers r0 and r1.
  20489. 'y'
  20490. The carry register.
  20491. 'z'
  20492. Registers r8 and r9.
  20493. 'I'
  20494. A constant between 0 and 3 inclusive.
  20495. 'J'
  20496. A constant that has exactly one bit set.
  20497. 'K'
  20498. A constant that has exactly one bit clear.
  20499. 'L'
  20500. A constant between 0 and 255 inclusive.
  20501. 'M'
  20502. A constant between -255 and 0 inclusive.
  20503. 'N'
  20504. A constant between -3 and 0 inclusive.
  20505. 'O'
  20506. A constant between 1 and 4 inclusive.
  20507. 'P'
  20508. A constant between -4 and -1 inclusive.
  20509. 'Q'
  20510. A memory reference that is a stack push.
  20511. 'R'
  20512. A memory reference that is a stack pop.
  20513. 'S'
  20514. A memory reference that refers to a constant address of known
  20515. value.
  20516. 'T'
  20517. The register indicated by Rx (not implemented yet).
  20518. 'U'
  20519. A constant that is not between 2 and 15 inclusive.
  20520. 'Z'
  20521. The constant 0.
  20522. _Xtensa--'config/xtensa/constraints.md'_
  20523. 'a'
  20524. General-purpose 32-bit register
  20525. 'b'
  20526. One-bit boolean register
  20527. 'A'
  20528. MAC16 40-bit accumulator register
  20529. 'I'
  20530. Signed 12-bit integer constant, for use in MOVI instructions
  20531. 'J'
  20532. Signed 8-bit integer constant, for use in ADDI instructions
  20533. 'K'
  20534. Integer constant valid for BccI instructions
  20535. 'L'
  20536. Unsigned constant valid for BccUI instructions
  20537. 
  20538. File: gccint.info, Node: Disable Insn Alternatives, Next: Define Constraints, Prev: Machine Constraints, Up: Constraints
  20539. 17.8.6 Disable insn alternatives using the 'enabled' attribute
  20540. --------------------------------------------------------------
  20541. There are three insn attributes that may be used to selectively disable
  20542. instruction alternatives:
  20543. 'enabled'
  20544. Says whether an alternative is available on the current subtarget.
  20545. 'preferred_for_size'
  20546. Says whether an enabled alternative should be used in code that is
  20547. optimized for size.
  20548. 'preferred_for_speed'
  20549. Says whether an enabled alternative should be used in code that is
  20550. optimized for speed.
  20551. All these attributes should use '(const_int 1)' to allow an alternative
  20552. or '(const_int 0)' to disallow it. The attributes must be a static
  20553. property of the subtarget; they cannot for example depend on the current
  20554. operands, on the current optimization level, on the location of the insn
  20555. within the body of a loop, on whether register allocation has finished,
  20556. or on the current compiler pass.
  20557. The 'enabled' attribute is a correctness property. It tells GCC to act
  20558. as though the disabled alternatives were never defined in the first
  20559. place. This is useful when adding new instructions to an existing
  20560. pattern in cases where the new instructions are only available for
  20561. certain cpu architecture levels (typically mapped to the '-march='
  20562. command-line option).
  20563. In contrast, the 'preferred_for_size' and 'preferred_for_speed'
  20564. attributes are strong optimization hints rather than correctness
  20565. properties. 'preferred_for_size' tells GCC which alternatives to
  20566. consider when adding or modifying an instruction that GCC wants to
  20567. optimize for size. 'preferred_for_speed' does the same thing for speed.
  20568. Note that things like code motion can lead to cases where code optimized
  20569. for size uses alternatives that are not preferred for size, and
  20570. similarly for speed.
  20571. Although 'define_insn's can in principle specify the 'enabled'
  20572. attribute directly, it is often clearer to have subsiduary attributes
  20573. for each architectural feature of interest. The 'define_insn's can then
  20574. use these subsiduary attributes to say which alternatives require which
  20575. features. The example below does this for 'cpu_facility'.
  20576. E.g. the following two patterns could easily be merged using the
  20577. 'enabled' attribute:
  20578. (define_insn "*movdi_old"
  20579. [(set (match_operand:DI 0 "register_operand" "=d")
  20580. (match_operand:DI 1 "register_operand" " d"))]
  20581. "!TARGET_NEW"
  20582. "lgr %0,%1")
  20583. (define_insn "*movdi_new"
  20584. [(set (match_operand:DI 0 "register_operand" "=d,f,d")
  20585. (match_operand:DI 1 "register_operand" " d,d,f"))]
  20586. "TARGET_NEW"
  20587. "@
  20588. lgr %0,%1
  20589. ldgr %0,%1
  20590. lgdr %0,%1")
  20591. to:
  20592. (define_insn "*movdi_combined"
  20593. [(set (match_operand:DI 0 "register_operand" "=d,f,d")
  20594. (match_operand:DI 1 "register_operand" " d,d,f"))]
  20595. ""
  20596. "@
  20597. lgr %0,%1
  20598. ldgr %0,%1
  20599. lgdr %0,%1"
  20600. [(set_attr "cpu_facility" "*,new,new")])
  20601. with the 'enabled' attribute defined like this:
  20602. (define_attr "cpu_facility" "standard,new" (const_string "standard"))
  20603. (define_attr "enabled" ""
  20604. (cond [(eq_attr "cpu_facility" "standard") (const_int 1)
  20605. (and (eq_attr "cpu_facility" "new")
  20606. (ne (symbol_ref "TARGET_NEW") (const_int 0)))
  20607. (const_int 1)]
  20608. (const_int 0)))
  20609. 
  20610. File: gccint.info, Node: Define Constraints, Next: C Constraint Interface, Prev: Disable Insn Alternatives, Up: Constraints
  20611. 17.8.7 Defining Machine-Specific Constraints
  20612. --------------------------------------------
  20613. Machine-specific constraints fall into two categories: register and
  20614. non-register constraints. Within the latter category, constraints which
  20615. allow subsets of all possible memory or address operands should be
  20616. specially marked, to give 'reload' more information.
  20617. Machine-specific constraints can be given names of arbitrary length,
  20618. but they must be entirely composed of letters, digits, underscores
  20619. ('_'), and angle brackets ('< >'). Like C identifiers, they must begin
  20620. with a letter or underscore.
  20621. In order to avoid ambiguity in operand constraint strings, no
  20622. constraint can have a name that begins with any other constraint's name.
  20623. For example, if 'x' is defined as a constraint name, 'xy' may not be,
  20624. and vice versa. As a consequence of this rule, no constraint may begin
  20625. with one of the generic constraint letters: 'E F V X g i m n o p r s'.
  20626. Register constraints correspond directly to register classes. *Note
  20627. Register Classes::. There is thus not much flexibility in their
  20628. definitions.
  20629. -- MD Expression: define_register_constraint name regclass docstring
  20630. All three arguments are string constants. NAME is the name of the
  20631. constraint, as it will appear in 'match_operand' expressions. If
  20632. NAME is a multi-letter constraint its length shall be the same for
  20633. all constraints starting with the same letter. REGCLASS can be
  20634. either the name of the corresponding register class (*note Register
  20635. Classes::), or a C expression which evaluates to the appropriate
  20636. register class. If it is an expression, it must have no side
  20637. effects, and it cannot look at the operand. The usual use of
  20638. expressions is to map some register constraints to 'NO_REGS' when
  20639. the register class is not available on a given subarchitecture.
  20640. DOCSTRING is a sentence documenting the meaning of the constraint.
  20641. Docstrings are explained further below.
  20642. Non-register constraints are more like predicates: the constraint
  20643. definition gives a boolean expression which indicates whether the
  20644. constraint matches.
  20645. -- MD Expression: define_constraint name docstring exp
  20646. The NAME and DOCSTRING arguments are the same as for
  20647. 'define_register_constraint', but note that the docstring comes
  20648. immediately after the name for these expressions. EXP is an RTL
  20649. expression, obeying the same rules as the RTL expressions in
  20650. predicate definitions. *Note Defining Predicates::, for details.
  20651. If it evaluates true, the constraint matches; if it evaluates
  20652. false, it doesn't. Constraint expressions should indicate which
  20653. RTL codes they might match, just like predicate expressions.
  20654. 'match_test' C expressions have access to the following variables:
  20655. OP
  20656. The RTL object defining the operand.
  20657. MODE
  20658. The machine mode of OP.
  20659. IVAL
  20660. 'INTVAL (OP)', if OP is a 'const_int'.
  20661. HVAL
  20662. 'CONST_DOUBLE_HIGH (OP)', if OP is an integer 'const_double'.
  20663. LVAL
  20664. 'CONST_DOUBLE_LOW (OP)', if OP is an integer 'const_double'.
  20665. RVAL
  20666. 'CONST_DOUBLE_REAL_VALUE (OP)', if OP is a floating-point
  20667. 'const_double'.
  20668. The *VAL variables should only be used once another piece of the
  20669. expression has verified that OP is the appropriate kind of RTL
  20670. object.
  20671. Most non-register constraints should be defined with
  20672. 'define_constraint'. The remaining two definition expressions are only
  20673. appropriate for constraints that should be handled specially by 'reload'
  20674. if they fail to match.
  20675. -- MD Expression: define_memory_constraint name docstring exp
  20676. Use this expression for constraints that match a subset of all
  20677. memory operands: that is, 'reload' can make them match by
  20678. converting the operand to the form '(mem (reg X))', where X is a
  20679. base register (from the register class specified by
  20680. 'BASE_REG_CLASS', *note Register Classes::).
  20681. For example, on the S/390, some instructions do not accept
  20682. arbitrary memory references, but only those that do not make use of
  20683. an index register. The constraint letter 'Q' is defined to
  20684. represent a memory address of this type. If 'Q' is defined with
  20685. 'define_memory_constraint', a 'Q' constraint can handle any memory
  20686. operand, because 'reload' knows it can simply copy the memory
  20687. address into a base register if required. This is analogous to the
  20688. way an 'o' constraint can handle any memory operand.
  20689. The syntax and semantics are otherwise identical to
  20690. 'define_constraint'.
  20691. -- MD Expression: define_special_memory_constraint name docstring exp
  20692. Use this expression for constraints that match a subset of all
  20693. memory operands: that is, 'reload' cannot make them match by
  20694. reloading the address as it is described for
  20695. 'define_memory_constraint' or such address reload is undesirable
  20696. with the performance point of view.
  20697. For example, 'define_special_memory_constraint' can be useful if
  20698. specifically aligned memory is necessary or desirable for some insn
  20699. operand.
  20700. The syntax and semantics are otherwise identical to
  20701. 'define_memory_constraint'.
  20702. -- MD Expression: define_relaxed_memory_constraint name docstring exp
  20703. The test expression in a 'define_memory_constraint' can assume that
  20704. 'TARGET_LEGITIMATE_ADDRESS_P' holds for the address inside a 'mem'
  20705. rtx and so it does not need to test this condition itself. In
  20706. other words, a 'define_memory_constraint' test of the form:
  20707. (match_test "mem")
  20708. is enough to test whether an rtx is a 'mem' _and_ whether its
  20709. address satisfies 'TARGET_MEM_CONSTRAINT' (which is usually ''m'').
  20710. Thus the conditions imposed by a 'define_memory_constraint' always
  20711. apply on top of the conditions imposed by 'TARGET_MEM_CONSTRAINT'.
  20712. However, it is sometimes useful to define memory constraints that
  20713. allow addresses beyond those accepted by
  20714. 'TARGET_LEGITIMATE_ADDRESS_P'. 'define_relaxed_memory_constraint'
  20715. exists for this case. The test expression in a
  20716. 'define_relaxed_memory_constraint' is applied with no
  20717. preconditions, so that the expression can determine "from scratch"
  20718. exactly which addresses are valid and which are not.
  20719. The syntax and semantics are otherwise identical to
  20720. 'define_memory_constraint'.
  20721. -- MD Expression: define_address_constraint name docstring exp
  20722. Use this expression for constraints that match a subset of all
  20723. address operands: that is, 'reload' can make the constraint match
  20724. by converting the operand to the form '(reg X)', again with X a
  20725. base register.
  20726. Constraints defined with 'define_address_constraint' can only be
  20727. used with the 'address_operand' predicate, or machine-specific
  20728. predicates that work the same way. They are treated analogously to
  20729. the generic 'p' constraint.
  20730. The syntax and semantics are otherwise identical to
  20731. 'define_constraint'.
  20732. For historical reasons, names beginning with the letters 'G H' are
  20733. reserved for constraints that match only 'const_double's, and names
  20734. beginning with the letters 'I J K L M N O P' are reserved for
  20735. constraints that match only 'const_int's. This may change in the
  20736. future. For the time being, constraints with these names must be
  20737. written in a stylized form, so that 'genpreds' can tell you did it
  20738. correctly:
  20739. (define_constraint "[GHIJKLMNOP]..."
  20740. "DOC..."
  20741. (and (match_code "const_int") ; 'const_double' for G/H
  20742. CONDITION...)) ; usually a 'match_test'
  20743. It is fine to use names beginning with other letters for constraints
  20744. that match 'const_double's or 'const_int's.
  20745. Each docstring in a constraint definition should be one or more
  20746. complete sentences, marked up in Texinfo format. _They are currently
  20747. unused._ In the future they will be copied into the GCC manual, in
  20748. *note Machine Constraints::, replacing the hand-maintained tables
  20749. currently found in that section. Also, in the future the compiler may
  20750. use this to give more helpful diagnostics when poor choice of 'asm'
  20751. constraints causes a reload failure.
  20752. If you put the pseudo-Texinfo directive '@internal' at the beginning of
  20753. a docstring, then (in the future) it will appear only in the internals
  20754. manual's version of the machine-specific constraint tables. Use this
  20755. for constraints that should not appear in 'asm' statements.
  20756. 
  20757. File: gccint.info, Node: C Constraint Interface, Prev: Define Constraints, Up: Constraints
  20758. 17.8.8 Testing constraints from C
  20759. ---------------------------------
  20760. It is occasionally useful to test a constraint from C code rather than
  20761. implicitly via the constraint string in a 'match_operand'. The
  20762. generated file 'tm_p.h' declares a few interfaces for working with
  20763. constraints. At present these are defined for all constraints except
  20764. 'g' (which is equivalent to 'general_operand').
  20765. Some valid constraint names are not valid C identifiers, so there is a
  20766. mangling scheme for referring to them from C. Constraint names that do
  20767. not contain angle brackets or underscores are left unchanged.
  20768. Underscores are doubled, each '<' is replaced with '_l', and each '>'
  20769. with '_g'. Here are some examples:
  20770. *Original* *Mangled*
  20771. x x
  20772. P42x P42x
  20773. P4_x P4__x
  20774. P4>x P4_gx
  20775. P4>> P4_g_g
  20776. P4_g> P4__g_g
  20777. Throughout this section, the variable C is either a constraint in the
  20778. abstract sense, or a constant from 'enum constraint_num'; the variable M
  20779. is a mangled constraint name (usually as part of a larger identifier).
  20780. -- Enum: constraint_num
  20781. For each constraint except 'g', there is a corresponding
  20782. enumeration constant: 'CONSTRAINT_' plus the mangled name of the
  20783. constraint. Functions that take an 'enum constraint_num' as an
  20784. argument expect one of these constants.
  20785. -- Function: inline bool satisfies_constraint_M (rtx EXP)
  20786. For each non-register constraint M except 'g', there is one of
  20787. these functions; it returns 'true' if EXP satisfies the constraint.
  20788. These functions are only visible if 'rtl.h' was included before
  20789. 'tm_p.h'.
  20790. -- Function: bool constraint_satisfied_p (rtx EXP, enum constraint_num
  20791. C)
  20792. Like the 'satisfies_constraint_M' functions, but the constraint to
  20793. test is given as an argument, C. If C specifies a register
  20794. constraint, this function will always return 'false'.
  20795. -- Function: enum reg_class reg_class_for_constraint (enum
  20796. constraint_num C)
  20797. Returns the register class associated with C. If C is not a
  20798. register constraint, or those registers are not available for the
  20799. currently selected subtarget, returns 'NO_REGS'.
  20800. Here is an example use of 'satisfies_constraint_M'. In peephole
  20801. optimizations (*note Peephole Definitions::), operand constraint strings
  20802. are ignored, so if there are relevant constraints, they must be tested
  20803. in the C condition. In the example, the optimization is applied if
  20804. operand 2 does _not_ satisfy the 'K' constraint. (This is a simplified
  20805. version of a peephole definition from the i386 machine description.)
  20806. (define_peephole2
  20807. [(match_scratch:SI 3 "r")
  20808. (set (match_operand:SI 0 "register_operand" "")
  20809. (mult:SI (match_operand:SI 1 "memory_operand" "")
  20810. (match_operand:SI 2 "immediate_operand" "")))]
  20811. "!satisfies_constraint_K (operands[2])"
  20812. [(set (match_dup 3) (match_dup 1))
  20813. (set (match_dup 0) (mult:SI (match_dup 3) (match_dup 2)))]
  20814. "")
  20815. 
  20816. File: gccint.info, Node: Standard Names, Next: Pattern Ordering, Prev: Constraints, Up: Machine Desc
  20817. 17.9 Standard Pattern Names For Generation
  20818. ==========================================
  20819. Here is a table of the instruction names that are meaningful in the RTL
  20820. generation pass of the compiler. Giving one of these names to an
  20821. instruction pattern tells the RTL generation pass that it can use the
  20822. pattern to accomplish a certain task.
  20823. 'movM'
  20824. Here M stands for a two-letter machine mode name, in lowercase.
  20825. This instruction pattern moves data with that machine mode from
  20826. operand 1 to operand 0. For example, 'movsi' moves full-word data.
  20827. If operand 0 is a 'subreg' with mode M of a register whose own mode
  20828. is wider than M, the effect of this instruction is to store the
  20829. specified value in the part of the register that corresponds to
  20830. mode M. Bits outside of M, but which are within the same target
  20831. word as the 'subreg' are undefined. Bits which are outside the
  20832. target word are left unchanged.
  20833. This class of patterns is special in several ways. First of all,
  20834. each of these names up to and including full word size _must_ be
  20835. defined, because there is no other way to copy a datum from one
  20836. place to another. If there are patterns accepting operands in
  20837. larger modes, 'movM' must be defined for integer modes of those
  20838. sizes.
  20839. Second, these patterns are not used solely in the RTL generation
  20840. pass. Even the reload pass can generate move insns to copy values
  20841. from stack slots into temporary registers. When it does so, one of
  20842. the operands is a hard register and the other is an operand that
  20843. can need to be reloaded into a register.
  20844. Therefore, when given such a pair of operands, the pattern must
  20845. generate RTL which needs no reloading and needs no temporary
  20846. registers--no registers other than the operands. For example, if
  20847. you support the pattern with a 'define_expand', then in such a case
  20848. the 'define_expand' mustn't call 'force_reg' or any other such
  20849. function which might generate new pseudo registers.
  20850. This requirement exists even for subword modes on a RISC machine
  20851. where fetching those modes from memory normally requires several
  20852. insns and some temporary registers.
  20853. During reload a memory reference with an invalid address may be
  20854. passed as an operand. Such an address will be replaced with a
  20855. valid address later in the reload pass. In this case, nothing may
  20856. be done with the address except to use it as it stands. If it is
  20857. copied, it will not be replaced with a valid address. No attempt
  20858. should be made to make such an address into a valid address and no
  20859. routine (such as 'change_address') that will do so may be called.
  20860. Note that 'general_operand' will fail when applied to such an
  20861. address.
  20862. The global variable 'reload_in_progress' (which must be explicitly
  20863. declared if required) can be used to determine whether such special
  20864. handling is required.
  20865. The variety of operands that have reloads depends on the rest of
  20866. the machine description, but typically on a RISC machine these can
  20867. only be pseudo registers that did not get hard registers, while on
  20868. other machines explicit memory references will get optional
  20869. reloads.
  20870. If a scratch register is required to move an object to or from
  20871. memory, it can be allocated using 'gen_reg_rtx' prior to life
  20872. analysis.
  20873. If there are cases which need scratch registers during or after
  20874. reload, you must provide an appropriate secondary_reload target
  20875. hook.
  20876. The macro 'can_create_pseudo_p' can be used to determine if it is
  20877. unsafe to create new pseudo registers. If this variable is
  20878. nonzero, then it is unsafe to call 'gen_reg_rtx' to allocate a new
  20879. pseudo.
  20880. The constraints on a 'movM' must permit moving any hard register to
  20881. any other hard register provided that 'TARGET_HARD_REGNO_MODE_OK'
  20882. permits mode M in both registers and 'TARGET_REGISTER_MOVE_COST'
  20883. applied to their classes returns a value of 2.
  20884. It is obligatory to support floating point 'movM' instructions into
  20885. and out of any registers that can hold fixed point values, because
  20886. unions and structures (which have modes 'SImode' or 'DImode') can
  20887. be in those registers and they may have floating point members.
  20888. There may also be a need to support fixed point 'movM' instructions
  20889. in and out of floating point registers. Unfortunately, I have
  20890. forgotten why this was so, and I don't know whether it is still
  20891. true. If 'TARGET_HARD_REGNO_MODE_OK' rejects fixed point values in
  20892. floating point registers, then the constraints of the fixed point
  20893. 'movM' instructions must be designed to avoid ever trying to reload
  20894. into a floating point register.
  20895. 'reload_inM'
  20896. 'reload_outM'
  20897. These named patterns have been obsoleted by the target hook
  20898. 'secondary_reload'.
  20899. Like 'movM', but used when a scratch register is required to move
  20900. between operand 0 and operand 1. Operand 2 describes the scratch
  20901. register. See the discussion of the 'SECONDARY_RELOAD_CLASS' macro
  20902. in *note Register Classes::.
  20903. There are special restrictions on the form of the 'match_operand's
  20904. used in these patterns. First, only the predicate for the reload
  20905. operand is examined, i.e., 'reload_in' examines operand 1, but not
  20906. the predicates for operand 0 or 2. Second, there may be only one
  20907. alternative in the constraints. Third, only a single register
  20908. class letter may be used for the constraint; subsequent constraint
  20909. letters are ignored. As a special exception, an empty constraint
  20910. string matches the 'ALL_REGS' register class. This may relieve
  20911. ports of the burden of defining an 'ALL_REGS' constraint letter
  20912. just for these patterns.
  20913. 'movstrictM'
  20914. Like 'movM' except that if operand 0 is a 'subreg' with mode M of a
  20915. register whose natural mode is wider, the 'movstrictM' instruction
  20916. is guaranteed not to alter any of the register except the part
  20917. which belongs to mode M.
  20918. 'movmisalignM'
  20919. This variant of a move pattern is designed to load or store a value
  20920. from a memory address that is not naturally aligned for its mode.
  20921. For a store, the memory will be in operand 0; for a load, the
  20922. memory will be in operand 1. The other operand is guaranteed not
  20923. to be a memory, so that it's easy to tell whether this is a load or
  20924. store.
  20925. This pattern is used by the autovectorizer, and when expanding a
  20926. 'MISALIGNED_INDIRECT_REF' expression.
  20927. 'load_multiple'
  20928. Load several consecutive memory locations into consecutive
  20929. registers. Operand 0 is the first of the consecutive registers,
  20930. operand 1 is the first memory location, and operand 2 is a
  20931. constant: the number of consecutive registers.
  20932. Define this only if the target machine really has such an
  20933. instruction; do not define this if the most efficient way of
  20934. loading consecutive registers from memory is to do them one at a
  20935. time.
  20936. On some machines, there are restrictions as to which consecutive
  20937. registers can be stored into memory, such as particular starting or
  20938. ending register numbers or only a range of valid counts. For those
  20939. machines, use a 'define_expand' (*note Expander Definitions::) and
  20940. make the pattern fail if the restrictions are not met.
  20941. Write the generated insn as a 'parallel' with elements being a
  20942. 'set' of one register from the appropriate memory location (you may
  20943. also need 'use' or 'clobber' elements). Use a 'match_parallel'
  20944. (*note RTL Template::) to recognize the insn. See 'rs6000.md' for
  20945. examples of the use of this insn pattern.
  20946. 'store_multiple'
  20947. Similar to 'load_multiple', but store several consecutive registers
  20948. into consecutive memory locations. Operand 0 is the first of the
  20949. consecutive memory locations, operand 1 is the first register, and
  20950. operand 2 is a constant: the number of consecutive registers.
  20951. 'vec_load_lanesMN'
  20952. Perform an interleaved load of several vectors from memory operand
  20953. 1 into register operand 0. Both operands have mode M. The
  20954. register operand is viewed as holding consecutive vectors of mode
  20955. N, while the memory operand is a flat array that contains the same
  20956. number of elements. The operation is equivalent to:
  20957. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  20958. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  20959. for (i = 0; i < c; i++)
  20960. operand0[i][j] = operand1[j * c + i];
  20961. For example, 'vec_load_lanestiv4hi' loads 8 16-bit values from
  20962. memory into a register of mode 'TI'. The register contains two
  20963. consecutive vectors of mode 'V4HI'.
  20964. This pattern can only be used if:
  20965. TARGET_ARRAY_MODE_SUPPORTED_P (N, C)
  20966. is true. GCC assumes that, if a target supports this kind of
  20967. instruction for some mode N, it also supports unaligned loads for
  20968. vectors of mode N.
  20969. This pattern is not allowed to 'FAIL'.
  20970. 'vec_mask_load_lanesMN'
  20971. Like 'vec_load_lanesMN', but takes an additional mask operand
  20972. (operand 2) that specifies which elements of the destination
  20973. vectors should be loaded. Other elements of the destination
  20974. vectors are set to zero. The operation is equivalent to:
  20975. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  20976. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  20977. if (operand2[j])
  20978. for (i = 0; i < c; i++)
  20979. operand0[i][j] = operand1[j * c + i];
  20980. else
  20981. for (i = 0; i < c; i++)
  20982. operand0[i][j] = 0;
  20983. This pattern is not allowed to 'FAIL'.
  20984. 'vec_store_lanesMN'
  20985. Equivalent to 'vec_load_lanesMN', with the memory and register
  20986. operands reversed. That is, the instruction is equivalent to:
  20987. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  20988. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  20989. for (i = 0; i < c; i++)
  20990. operand0[j * c + i] = operand1[i][j];
  20991. for a memory operand 0 and register operand 1.
  20992. This pattern is not allowed to 'FAIL'.
  20993. 'vec_mask_store_lanesMN'
  20994. Like 'vec_store_lanesMN', but takes an additional mask operand
  20995. (operand 2) that specifies which elements of the source vectors
  20996. should be stored. The operation is equivalent to:
  20997. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  20998. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  20999. if (operand2[j])
  21000. for (i = 0; i < c; i++)
  21001. operand0[j * c + i] = operand1[i][j];
  21002. This pattern is not allowed to 'FAIL'.
  21003. 'gather_loadMN'
  21004. Load several separate memory locations into a vector of mode M.
  21005. Operand 1 is a scalar base address and operand 2 is a vector of
  21006. mode N containing offsets from that base. Operand 0 is a
  21007. destination vector with the same number of elements as N. For each
  21008. element index I:
  21009. * extend the offset element I to address width, using zero
  21010. extension if operand 3 is 1 and sign extension if operand 3 is
  21011. zero;
  21012. * multiply the extended offset by operand 4;
  21013. * add the result to the base; and
  21014. * load the value at that address into element I of operand 0.
  21015. The value of operand 3 does not matter if the offsets are already
  21016. address width.
  21017. 'mask_gather_loadMN'
  21018. Like 'gather_loadMN', but takes an extra mask operand as operand 5.
  21019. Bit I of the mask is set if element I of the result should be
  21020. loaded from memory and clear if element I of the result should be
  21021. set to zero.
  21022. 'scatter_storeMN'
  21023. Store a vector of mode M into several distinct memory locations.
  21024. Operand 0 is a scalar base address and operand 1 is a vector of
  21025. mode N containing offsets from that base. Operand 4 is the vector
  21026. of values that should be stored, which has the same number of
  21027. elements as N. For each element index I:
  21028. * extend the offset element I to address width, using zero
  21029. extension if operand 2 is 1 and sign extension if operand 2 is
  21030. zero;
  21031. * multiply the extended offset by operand 3;
  21032. * add the result to the base; and
  21033. * store element I of operand 4 to that address.
  21034. The value of operand 2 does not matter if the offsets are already
  21035. address width.
  21036. 'mask_scatter_storeMN'
  21037. Like 'scatter_storeMN', but takes an extra mask operand as operand
  21038. 5. Bit I of the mask is set if element I of the result should be
  21039. stored to memory.
  21040. 'vec_setM'
  21041. Set given field in the vector value. Operand 0 is the vector to
  21042. modify, operand 1 is new value of field and operand 2 specify the
  21043. field index.
  21044. 'vec_extractMN'
  21045. Extract given field from the vector value. Operand 1 is the
  21046. vector, operand 2 specify field index and operand 0 place to store
  21047. value into. The N mode is the mode of the field or vector of
  21048. fields that should be extracted, should be either element mode of
  21049. the vector mode M, or a vector mode with the same element mode and
  21050. smaller number of elements. If N is a vector mode, the index is
  21051. counted in units of that mode.
  21052. 'vec_initMN'
  21053. Initialize the vector to given values. Operand 0 is the vector to
  21054. initialize and operand 1 is parallel containing values for
  21055. individual fields. The N mode is the mode of the elements, should
  21056. be either element mode of the vector mode M, or a vector mode with
  21057. the same element mode and smaller number of elements.
  21058. 'vec_duplicateM'
  21059. Initialize vector output operand 0 so that each element has the
  21060. value given by scalar input operand 1. The vector has mode M and
  21061. the scalar has the mode appropriate for one element of M.
  21062. This pattern only handles duplicates of non-constant inputs.
  21063. Constant vectors go through the 'movM' pattern instead.
  21064. This pattern is not allowed to 'FAIL'.
  21065. 'vec_seriesM'
  21066. Initialize vector output operand 0 so that element I is equal to
  21067. operand 1 plus I times operand 2. In other words, create a linear
  21068. series whose base value is operand 1 and whose step is operand 2.
  21069. The vector output has mode M and the scalar inputs have the mode
  21070. appropriate for one element of M. This pattern is not used for
  21071. floating-point vectors, in order to avoid having to specify the
  21072. rounding behavior for I > 1.
  21073. This pattern is not allowed to 'FAIL'.
  21074. 'while_ultMN'
  21075. Set operand 0 to a mask that is true while incrementing operand 1
  21076. gives a value that is less than operand 2. Operand 0 has mode N
  21077. and operands 1 and 2 are scalar integers of mode M. The operation
  21078. is equivalent to:
  21079. operand0[0] = operand1 < operand2;
  21080. for (i = 1; i < GET_MODE_NUNITS (N); i++)
  21081. operand0[i] = operand0[i - 1] && (operand1 + i < operand2);
  21082. 'check_raw_ptrsM'
  21083. Check whether, given two pointers A and B and a length LEN, a write
  21084. of LEN bytes at A followed by a read of LEN bytes at B can be split
  21085. into interleaved byte accesses 'A[0], B[0], A[1], B[1], ...'
  21086. without affecting the dependencies between the bytes. Set operand
  21087. 0 to true if the split is possible and false otherwise.
  21088. Operands 1, 2 and 3 provide the values of A, B and LEN
  21089. respectively. Operand 4 is a constant integer that provides the
  21090. known common alignment of A and B. All inputs have mode M.
  21091. This split is possible if:
  21092. A == B || A + LEN <= B || B + LEN <= A
  21093. You should only define this pattern if the target has a way of
  21094. accelerating the test without having to do the individual
  21095. comparisons.
  21096. 'check_war_ptrsM'
  21097. Like 'check_raw_ptrsM', but with the read and write swapped round.
  21098. The split is possible in this case if:
  21099. B <= A || A + LEN <= B
  21100. 'vec_cmpMN'
  21101. Output a vector comparison. Operand 0 of mode N is the destination
  21102. for predicate in operand 1 which is a signed vector comparison with
  21103. operands of mode M in operands 2 and 3. Predicate is computed by
  21104. element-wise evaluation of the vector comparison with a truth value
  21105. of all-ones and a false value of all-zeros.
  21106. 'vec_cmpuMN'
  21107. Similar to 'vec_cmpMN' but perform unsigned vector comparison.
  21108. 'vec_cmpeqMN'
  21109. Similar to 'vec_cmpMN' but perform equality or non-equality vector
  21110. comparison only. If 'vec_cmpMN' or 'vec_cmpuMN' instruction
  21111. pattern is supported, it will be preferred over 'vec_cmpeqMN', so
  21112. there is no need to define this instruction pattern if the others
  21113. are supported.
  21114. 'vcondMN'
  21115. Output a conditional vector move. Operand 0 is the destination to
  21116. receive a combination of operand 1 and operand 2, which are of mode
  21117. M, dependent on the outcome of the predicate in operand 3 which is
  21118. a signed vector comparison with operands of mode N in operands 4
  21119. and 5. The modes M and N should have the same size. Operand 0
  21120. will be set to the value OP1 & MSK | OP2 & ~MSK where MSK is
  21121. computed by element-wise evaluation of the vector comparison with a
  21122. truth value of all-ones and a false value of all-zeros.
  21123. 'vconduMN'
  21124. Similar to 'vcondMN' but performs unsigned vector comparison.
  21125. 'vcondeqMN'
  21126. Similar to 'vcondMN' but performs equality or non-equality vector
  21127. comparison only. If 'vcondMN' or 'vconduMN' instruction pattern is
  21128. supported, it will be preferred over 'vcondeqMN', so there is no
  21129. need to define this instruction pattern if the others are
  21130. supported.
  21131. 'vcond_mask_MN'
  21132. Similar to 'vcondMN' but operand 3 holds a pre-computed result of
  21133. vector comparison.
  21134. 'maskloadMN'
  21135. Perform a masked load of vector from memory operand 1 of mode M
  21136. into register operand 0. Mask is provided in register operand 2 of
  21137. mode N.
  21138. This pattern is not allowed to 'FAIL'.
  21139. 'maskstoreMN'
  21140. Perform a masked store of vector from register operand 1 of mode M
  21141. into memory operand 0. Mask is provided in register operand 2 of
  21142. mode N.
  21143. This pattern is not allowed to 'FAIL'.
  21144. 'len_load_M'
  21145. Load the number of vector elements specified by operand 2 from
  21146. memory operand 1 into vector register operand 0, setting the other
  21147. elements of operand 0 to undefined values. Operands 0 and 1 have
  21148. mode M, which must be a vector mode. Operand 2 has whichever
  21149. integer mode the target prefers. If operand 2 exceeds the number
  21150. of elements in mode M, the behavior is undefined. If the target
  21151. prefers the length to be measured in bytes rather than elements, it
  21152. should only implement this pattern for vectors of 'QI' elements.
  21153. This pattern is not allowed to 'FAIL'.
  21154. 'len_store_M'
  21155. Store the number of vector elements specified by operand 2 from
  21156. vector register operand 1 into memory operand 0, leaving the other
  21157. elements of operand 0 unchanged. Operands 0 and 1 have mode M,
  21158. which must be a vector mode. Operand 2 has whichever integer mode
  21159. the target prefers. If operand 2 exceeds the number of elements in
  21160. mode M, the behavior is undefined. If the target prefers the
  21161. length to be measured in bytes rather than elements, it should only
  21162. implement this pattern for vectors of 'QI' elements.
  21163. This pattern is not allowed to 'FAIL'.
  21164. 'vec_permM'
  21165. Output a (variable) vector permutation. Operand 0 is the
  21166. destination to receive elements from operand 1 and operand 2, which
  21167. are of mode M. Operand 3 is the "selector". It is an integral
  21168. mode vector of the same width and number of elements as mode M.
  21169. The input elements are numbered from 0 in operand 1 through 2*N-1
  21170. in operand 2. The elements of the selector must be computed modulo
  21171. 2*N. Note that if 'rtx_equal_p(operand1, operand2)', this can be
  21172. implemented with just operand 1 and selector elements modulo N.
  21173. In order to make things easy for a number of targets, if there is
  21174. no 'vec_perm' pattern for mode M, but there is for mode Q where Q
  21175. is a vector of 'QImode' of the same width as M, the middle-end will
  21176. lower the mode M 'VEC_PERM_EXPR' to mode Q.
  21177. See also 'TARGET_VECTORIZER_VEC_PERM_CONST', which performs the
  21178. analogous operation for constant selectors.
  21179. 'pushM1'
  21180. Output a push instruction. Operand 0 is value to push. Used only
  21181. when 'PUSH_ROUNDING' is defined. For historical reason, this
  21182. pattern may be missing and in such case an 'mov' expander is used
  21183. instead, with a 'MEM' expression forming the push operation. The
  21184. 'mov' expander method is deprecated.
  21185. 'addM3'
  21186. Add operand 2 and operand 1, storing the result in operand 0. All
  21187. operands must have mode M. This can be used even on two-address
  21188. machines, by means of constraints requiring operands 1 and 0 to be
  21189. the same location.
  21190. 'ssaddM3', 'usaddM3'
  21191. 'subM3', 'sssubM3', 'ussubM3'
  21192. 'mulM3', 'ssmulM3', 'usmulM3'
  21193. 'divM3', 'ssdivM3'
  21194. 'udivM3', 'usdivM3'
  21195. 'modM3', 'umodM3'
  21196. 'uminM3', 'umaxM3'
  21197. 'andM3', 'iorM3', 'xorM3'
  21198. Similar, for other arithmetic operations.
  21199. 'addvM4'
  21200. Like 'addM3' but takes a 'code_label' as operand 3 and emits code
  21201. to jump to it if signed overflow occurs during the addition. This
  21202. pattern is used to implement the built-in functions performing
  21203. signed integer addition with overflow checking.
  21204. 'subvM4', 'mulvM4'
  21205. Similar, for other signed arithmetic operations.
  21206. 'uaddvM4'
  21207. Like 'addvM4' but for unsigned addition. That is to say, the
  21208. operation is the same as signed addition but the jump is taken only
  21209. on unsigned overflow.
  21210. 'usubvM4', 'umulvM4'
  21211. Similar, for other unsigned arithmetic operations.
  21212. 'addptrM3'
  21213. Like 'addM3' but is guaranteed to only be used for address
  21214. calculations. The expanded code is not allowed to clobber the
  21215. condition code. It only needs to be defined if 'addM3' sets the
  21216. condition code. If adds used for address calculations and normal
  21217. adds are not compatible it is required to expand a distinct pattern
  21218. (e.g. using an unspec). The pattern is used by LRA to emit address
  21219. calculations. 'addM3' is used if 'addptrM3' is not defined.
  21220. 'fmaM4'
  21221. Multiply operand 2 and operand 1, then add operand 3, storing the
  21222. result in operand 0 without doing an intermediate rounding step.
  21223. All operands must have mode M. This pattern is used to implement
  21224. the 'fma', 'fmaf', and 'fmal' builtin functions from the ISO C99
  21225. standard.
  21226. 'fmsM4'
  21227. Like 'fmaM4', except operand 3 subtracted from the product instead
  21228. of added to the product. This is represented in the rtl as
  21229. (fma:M OP1 OP2 (neg:M OP3))
  21230. 'fnmaM4'
  21231. Like 'fmaM4' except that the intermediate product is negated before
  21232. being added to operand 3. This is represented in the rtl as
  21233. (fma:M (neg:M OP1) OP2 OP3)
  21234. 'fnmsM4'
  21235. Like 'fmsM4' except that the intermediate product is negated before
  21236. subtracting operand 3. This is represented in the rtl as
  21237. (fma:M (neg:M OP1) OP2 (neg:M OP3))
  21238. 'sminM3', 'smaxM3'
  21239. Signed minimum and maximum operations. When used with floating
  21240. point, if both operands are zeros, or if either operand is 'NaN',
  21241. then it is unspecified which of the two operands is returned as the
  21242. result.
  21243. 'fminM3', 'fmaxM3'
  21244. IEEE-conformant minimum and maximum operations. If one operand is
  21245. a quiet 'NaN', then the other operand is returned. If both
  21246. operands are quiet 'NaN', then a quiet 'NaN' is returned. In the
  21247. case when gcc supports signaling 'NaN' (-fsignaling-nans) an
  21248. invalid floating point exception is raised and a quiet 'NaN' is
  21249. returned.
  21250. All operands have mode M, which is a scalar or vector
  21251. floating-point mode. These patterns are not allowed to 'FAIL'.
  21252. 'reduc_smin_scal_M', 'reduc_smax_scal_M'
  21253. Find the signed minimum/maximum of the elements of a vector. The
  21254. vector is operand 1, and operand 0 is the scalar result, with mode
  21255. equal to the mode of the elements of the input vector.
  21256. 'reduc_umin_scal_M', 'reduc_umax_scal_M'
  21257. Find the unsigned minimum/maximum of the elements of a vector. The
  21258. vector is operand 1, and operand 0 is the scalar result, with mode
  21259. equal to the mode of the elements of the input vector.
  21260. 'reduc_plus_scal_M'
  21261. Compute the sum of the elements of a vector. The vector is operand
  21262. 1, and operand 0 is the scalar result, with mode equal to the mode
  21263. of the elements of the input vector.
  21264. 'reduc_and_scal_M'
  21265. 'reduc_ior_scal_M'
  21266. 'reduc_xor_scal_M'
  21267. Compute the bitwise 'AND'/'IOR'/'XOR' reduction of the elements of
  21268. a vector of mode M. Operand 1 is the vector input and operand 0 is
  21269. the scalar result. The mode of the scalar result is the same as
  21270. one element of M.
  21271. 'extract_last_M'
  21272. Find the last set bit in mask operand 1 and extract the associated
  21273. element of vector operand 2. Store the result in scalar operand 0.
  21274. Operand 2 has vector mode M while operand 0 has the mode
  21275. appropriate for one element of M. Operand 1 has the usual mask
  21276. mode for vectors of mode M; see 'TARGET_VECTORIZE_GET_MASK_MODE'.
  21277. 'fold_extract_last_M'
  21278. If any bits of mask operand 2 are set, find the last set bit,
  21279. extract the associated element from vector operand 3, and store the
  21280. result in operand 0. Store operand 1 in operand 0 otherwise.
  21281. Operand 3 has mode M and operands 0 and 1 have the mode appropriate
  21282. for one element of M. Operand 2 has the usual mask mode for
  21283. vectors of mode M; see 'TARGET_VECTORIZE_GET_MASK_MODE'.
  21284. 'fold_left_plus_M'
  21285. Take scalar operand 1 and successively add each element from vector
  21286. operand 2. Store the result in scalar operand 0. The vector has
  21287. mode M and the scalars have the mode appropriate for one element of
  21288. M. The operation is strictly in-order: there is no reassociation.
  21289. 'mask_fold_left_plus_M'
  21290. Like 'fold_left_plus_M', but takes an additional mask operand
  21291. (operand 3) that specifies which elements of the source vector
  21292. should be added.
  21293. 'sdot_prodM'
  21294. 'udot_prodM'
  21295. Compute the sum of the products of two signed/unsigned elements.
  21296. Operand 1 and operand 2 are of the same mode. Their product, which
  21297. is of a wider mode, is computed and added to operand 3. Operand 3
  21298. is of a mode equal or wider than the mode of the product. The
  21299. result is placed in operand 0, which is of the same mode as operand
  21300. 3.
  21301. 'ssadM'
  21302. 'usadM'
  21303. Compute the sum of absolute differences of two signed/unsigned
  21304. elements. Operand 1 and operand 2 are of the same mode. Their
  21305. absolute difference, which is of a wider mode, is computed and
  21306. added to operand 3. Operand 3 is of a mode equal or wider than the
  21307. mode of the absolute difference. The result is placed in operand
  21308. 0, which is of the same mode as operand 3.
  21309. 'widen_ssumM3'
  21310. 'widen_usumM3'
  21311. Operands 0 and 2 are of the same mode, which is wider than the mode
  21312. of operand 1. Add operand 1 to operand 2 and place the widened
  21313. result in operand 0. (This is used express accumulation of
  21314. elements into an accumulator of a wider mode.)
  21315. 'smulhsM3'
  21316. 'umulhsM3'
  21317. Signed/unsigned multiply high with scale. This is equivalent to
  21318. the C code:
  21319. narrow op0, op1, op2;
  21320. ...
  21321. op0 = (narrow) (((wide) op1 * (wide) op2) >> (N / 2 - 1));
  21322. where the sign of 'narrow' determines whether this is a signed or
  21323. unsigned operation, and N is the size of 'wide' in bits.
  21324. 'smulhrsM3'
  21325. 'umulhrsM3'
  21326. Signed/unsigned multiply high with round and scale. This is
  21327. equivalent to the C code:
  21328. narrow op0, op1, op2;
  21329. ...
  21330. op0 = (narrow) (((((wide) op1 * (wide) op2) >> (N / 2 - 2)) + 1) >> 1);
  21331. where the sign of 'narrow' determines whether this is a signed or
  21332. unsigned operation, and N is the size of 'wide' in bits.
  21333. 'sdiv_pow2M3'
  21334. 'sdiv_pow2M3'
  21335. Signed division by power-of-2 immediate. Equivalent to:
  21336. signed op0, op1;
  21337. ...
  21338. op0 = op1 / (1 << imm);
  21339. 'vec_shl_insert_M'
  21340. Shift the elements in vector input operand 1 left one element (i.e.
  21341. away from element 0) and fill the vacated element 0 with the scalar
  21342. in operand 2. Store the result in vector output operand 0.
  21343. Operands 0 and 1 have mode M and operand 2 has the mode appropriate
  21344. for one element of M.
  21345. 'vec_shl_M'
  21346. Whole vector left shift in bits, i.e. away from element 0. Operand
  21347. 1 is a vector to be shifted. Operand 2 is an integer shift amount
  21348. in bits. Operand 0 is where the resulting shifted vector is
  21349. stored. The output and input vectors should have the same modes.
  21350. 'vec_shr_M'
  21351. Whole vector right shift in bits, i.e. towards element 0. Operand
  21352. 1 is a vector to be shifted. Operand 2 is an integer shift amount
  21353. in bits. Operand 0 is where the resulting shifted vector is
  21354. stored. The output and input vectors should have the same modes.
  21355. 'vec_pack_trunc_M'
  21356. Narrow (demote) and merge the elements of two vectors. Operands 1
  21357. and 2 are vectors of the same mode having N integral or floating
  21358. point elements of size S. Operand 0 is the resulting vector in
  21359. which 2*N elements of size S/2 are concatenated after narrowing
  21360. them down using truncation.
  21361. 'vec_pack_sbool_trunc_M'
  21362. Narrow and merge the elements of two vectors. Operands 1 and 2 are
  21363. vectors of the same type having N boolean elements. Operand 0 is
  21364. the resulting vector in which 2*N elements are concatenated. The
  21365. last operand (operand 3) is the number of elements in the output
  21366. vector 2*N as a 'CONST_INT'. This instruction pattern is used when
  21367. all the vector input and output operands have the same scalar mode
  21368. M and thus using 'vec_pack_trunc_M' would be ambiguous.
  21369. 'vec_pack_ssat_M', 'vec_pack_usat_M'
  21370. Narrow (demote) and merge the elements of two vectors. Operands 1
  21371. and 2 are vectors of the same mode having N integral elements of
  21372. size S. Operand 0 is the resulting vector in which the elements of
  21373. the two input vectors are concatenated after narrowing them down
  21374. using signed/unsigned saturating arithmetic.
  21375. 'vec_pack_sfix_trunc_M', 'vec_pack_ufix_trunc_M'
  21376. Narrow, convert to signed/unsigned integral type and merge the
  21377. elements of two vectors. Operands 1 and 2 are vectors of the same
  21378. mode having N floating point elements of size S. Operand 0 is the
  21379. resulting vector in which 2*N elements of size S/2 are
  21380. concatenated.
  21381. 'vec_packs_float_M', 'vec_packu_float_M'
  21382. Narrow, convert to floating point type and merge the elements of
  21383. two vectors. Operands 1 and 2 are vectors of the same mode having
  21384. N signed/unsigned integral elements of size S. Operand 0 is the
  21385. resulting vector in which 2*N elements of size S/2 are
  21386. concatenated.
  21387. 'vec_unpacks_hi_M', 'vec_unpacks_lo_M'
  21388. Extract and widen (promote) the high/low part of a vector of signed
  21389. integral or floating point elements. The input vector (operand 1)
  21390. has N elements of size S. Widen (promote) the high/low elements of
  21391. the vector using signed or floating point extension and place the
  21392. resulting N/2 values of size 2*S in the output vector (operand 0).
  21393. 'vec_unpacku_hi_M', 'vec_unpacku_lo_M'
  21394. Extract and widen (promote) the high/low part of a vector of
  21395. unsigned integral elements. The input vector (operand 1) has N
  21396. elements of size S. Widen (promote) the high/low elements of the
  21397. vector using zero extension and place the resulting N/2 values of
  21398. size 2*S in the output vector (operand 0).
  21399. 'vec_unpacks_sbool_hi_M', 'vec_unpacks_sbool_lo_M'
  21400. Extract the high/low part of a vector of boolean elements that have
  21401. scalar mode M. The input vector (operand 1) has N elements, the
  21402. output vector (operand 0) has N/2 elements. The last operand
  21403. (operand 2) is the number of elements of the input vector N as a
  21404. 'CONST_INT'. These patterns are used if both the input and output
  21405. vectors have the same scalar mode M and thus using
  21406. 'vec_unpacks_hi_M' or 'vec_unpacks_lo_M' would be ambiguous.
  21407. 'vec_unpacks_float_hi_M', 'vec_unpacks_float_lo_M'
  21408. 'vec_unpacku_float_hi_M', 'vec_unpacku_float_lo_M'
  21409. Extract, convert to floating point type and widen the high/low part
  21410. of a vector of signed/unsigned integral elements. The input vector
  21411. (operand 1) has N elements of size S. Convert the high/low
  21412. elements of the vector using floating point conversion and place
  21413. the resulting N/2 values of size 2*S in the output vector (operand
  21414. 0).
  21415. 'vec_unpack_sfix_trunc_hi_M',
  21416. 'vec_unpack_sfix_trunc_lo_M'
  21417. 'vec_unpack_ufix_trunc_hi_M'
  21418. 'vec_unpack_ufix_trunc_lo_M'
  21419. Extract, convert to signed/unsigned integer type and widen the
  21420. high/low part of a vector of floating point elements. The input
  21421. vector (operand 1) has N elements of size S. Convert the high/low
  21422. elements of the vector to integers and place the resulting N/2
  21423. values of size 2*S in the output vector (operand 0).
  21424. 'vec_widen_umult_hi_M', 'vec_widen_umult_lo_M'
  21425. 'vec_widen_smult_hi_M', 'vec_widen_smult_lo_M'
  21426. 'vec_widen_umult_even_M', 'vec_widen_umult_odd_M'
  21427. 'vec_widen_smult_even_M', 'vec_widen_smult_odd_M'
  21428. Signed/Unsigned widening multiplication. The two inputs (operands
  21429. 1 and 2) are vectors with N signed/unsigned elements of size S.
  21430. Multiply the high/low or even/odd elements of the two vectors, and
  21431. put the N/2 products of size 2*S in the output vector (operand 0).
  21432. A target shouldn't implement even/odd pattern pair if it is less
  21433. efficient than lo/hi one.
  21434. 'vec_widen_ushiftl_hi_M', 'vec_widen_ushiftl_lo_M'
  21435. 'vec_widen_sshiftl_hi_M', 'vec_widen_sshiftl_lo_M'
  21436. Signed/Unsigned widening shift left. The first input (operand 1)
  21437. is a vector with N signed/unsigned elements of size S. Operand 2
  21438. is a constant. Shift the high/low elements of operand 1, and put
  21439. the N/2 results of size 2*S in the output vector (operand 0).
  21440. 'vec_widen_uaddl_hi_M', 'vec_widen_uaddl_lo_M'
  21441. 'vec_widen_saddl_hi_M', 'vec_widen_saddl_lo_M'
  21442. Signed/Unsigned widening add long. Operands 1 and 2 are vectors
  21443. with N signed/unsigned elements of size S. Add the high/low
  21444. elements of 1 and 2 together, widen the resulting elements and put
  21445. the N/2 results of size 2*S in the output vector (operand 0).
  21446. 'vec_widen_usubl_hi_M', 'vec_widen_usubl_lo_M'
  21447. 'vec_widen_ssubl_hi_M', 'vec_widen_ssubl_lo_M'
  21448. Signed/Unsigned widening subtract long. Operands 1 and 2 are
  21449. vectors with N signed/unsigned elements of size S. Subtract the
  21450. high/low elements of 2 from 1 and widen the resulting elements.
  21451. Put the N/2 results of size 2*S in the output vector (operand 0).
  21452. 'mulhisi3'
  21453. Multiply operands 1 and 2, which have mode 'HImode', and store a
  21454. 'SImode' product in operand 0.
  21455. 'mulqihi3', 'mulsidi3'
  21456. Similar widening-multiplication instructions of other widths.
  21457. 'umulqihi3', 'umulhisi3', 'umulsidi3'
  21458. Similar widening-multiplication instructions that do unsigned
  21459. multiplication.
  21460. 'usmulqihi3', 'usmulhisi3', 'usmulsidi3'
  21461. Similar widening-multiplication instructions that interpret the
  21462. first operand as unsigned and the second operand as signed, then do
  21463. a signed multiplication.
  21464. 'smulM3_highpart'
  21465. Perform a signed multiplication of operands 1 and 2, which have
  21466. mode M, and store the most significant half of the product in
  21467. operand 0. The least significant half of the product is discarded.
  21468. 'umulM3_highpart'
  21469. Similar, but the multiplication is unsigned.
  21470. 'maddMN4'
  21471. Multiply operands 1 and 2, sign-extend them to mode N, add operand
  21472. 3, and store the result in operand 0. Operands 1 and 2 have mode M
  21473. and operands 0 and 3 have mode N. Both modes must be integer or
  21474. fixed-point modes and N must be twice the size of M.
  21475. In other words, 'maddMN4' is like 'mulMN3' except that it also adds
  21476. operand 3.
  21477. These instructions are not allowed to 'FAIL'.
  21478. 'umaddMN4'
  21479. Like 'maddMN4', but zero-extend the multiplication operands instead
  21480. of sign-extending them.
  21481. 'ssmaddMN4'
  21482. Like 'maddMN4', but all involved operations must be
  21483. signed-saturating.
  21484. 'usmaddMN4'
  21485. Like 'umaddMN4', but all involved operations must be
  21486. unsigned-saturating.
  21487. 'msubMN4'
  21488. Multiply operands 1 and 2, sign-extend them to mode N, subtract the
  21489. result from operand 3, and store the result in operand 0. Operands
  21490. 1 and 2 have mode M and operands 0 and 3 have mode N. Both modes
  21491. must be integer or fixed-point modes and N must be twice the size
  21492. of M.
  21493. In other words, 'msubMN4' is like 'mulMN3' except that it also
  21494. subtracts the result from operand 3.
  21495. These instructions are not allowed to 'FAIL'.
  21496. 'umsubMN4'
  21497. Like 'msubMN4', but zero-extend the multiplication operands instead
  21498. of sign-extending them.
  21499. 'ssmsubMN4'
  21500. Like 'msubMN4', but all involved operations must be
  21501. signed-saturating.
  21502. 'usmsubMN4'
  21503. Like 'umsubMN4', but all involved operations must be
  21504. unsigned-saturating.
  21505. 'divmodM4'
  21506. Signed division that produces both a quotient and a remainder.
  21507. Operand 1 is divided by operand 2 to produce a quotient stored in
  21508. operand 0 and a remainder stored in operand 3.
  21509. For machines with an instruction that produces both a quotient and
  21510. a remainder, provide a pattern for 'divmodM4' but do not provide
  21511. patterns for 'divM3' and 'modM3'. This allows optimization in the
  21512. relatively common case when both the quotient and remainder are
  21513. computed.
  21514. If an instruction that just produces a quotient or just a remainder
  21515. exists and is more efficient than the instruction that produces
  21516. both, write the output routine of 'divmodM4' to call
  21517. 'find_reg_note' and look for a 'REG_UNUSED' note on the quotient or
  21518. remainder and generate the appropriate instruction.
  21519. 'udivmodM4'
  21520. Similar, but does unsigned division.
  21521. 'ashlM3', 'ssashlM3', 'usashlM3'
  21522. Arithmetic-shift operand 1 left by a number of bits specified by
  21523. operand 2, and store the result in operand 0. Here M is the mode
  21524. of operand 0 and operand 1; operand 2's mode is specified by the
  21525. instruction pattern, and the compiler will convert the operand to
  21526. that mode before generating the instruction. The shift or rotate
  21527. expander or instruction pattern should explicitly specify the mode
  21528. of the operand 2, it should never be 'VOIDmode'. The meaning of
  21529. out-of-range shift counts can optionally be specified by
  21530. 'TARGET_SHIFT_TRUNCATION_MASK'. *Note
  21531. TARGET_SHIFT_TRUNCATION_MASK::. Operand 2 is always a scalar type.
  21532. 'ashrM3', 'lshrM3', 'rotlM3', 'rotrM3'
  21533. Other shift and rotate instructions, analogous to the 'ashlM3'
  21534. instructions. Operand 2 is always a scalar type.
  21535. 'vashlM3', 'vashrM3', 'vlshrM3', 'vrotlM3', 'vrotrM3'
  21536. Vector shift and rotate instructions that take vectors as operand 2
  21537. instead of a scalar type.
  21538. 'avgM3_floor'
  21539. 'uavgM3_floor'
  21540. Signed and unsigned average instructions. These instructions add
  21541. operands 1 and 2 without truncation, divide the result by 2, round
  21542. towards -Inf, and store the result in operand 0. This is
  21543. equivalent to the C code:
  21544. narrow op0, op1, op2;
  21545. ...
  21546. op0 = (narrow) (((wide) op1 + (wide) op2) >> 1);
  21547. where the sign of 'narrow' determines whether this is a signed or
  21548. unsigned operation.
  21549. 'avgM3_ceil'
  21550. 'uavgM3_ceil'
  21551. Like 'avgM3_floor' and 'uavgM3_floor', but round towards +Inf.
  21552. This is equivalent to the C code:
  21553. narrow op0, op1, op2;
  21554. ...
  21555. op0 = (narrow) (((wide) op1 + (wide) op2 + 1) >> 1);
  21556. 'bswapM2'
  21557. Reverse the order of bytes of operand 1 and store the result in
  21558. operand 0.
  21559. 'negM2', 'ssnegM2', 'usnegM2'
  21560. Negate operand 1 and store the result in operand 0.
  21561. 'negvM3'
  21562. Like 'negM2' but takes a 'code_label' as operand 2 and emits code
  21563. to jump to it if signed overflow occurs during the negation.
  21564. 'absM2'
  21565. Store the absolute value of operand 1 into operand 0.
  21566. 'sqrtM2'
  21567. Store the square root of operand 1 into operand 0. Both operands
  21568. have mode M, which is a scalar or vector floating-point mode.
  21569. This pattern is not allowed to 'FAIL'.
  21570. 'rsqrtM2'
  21571. Store the reciprocal of the square root of operand 1 into operand
  21572. 0. Both operands have mode M, which is a scalar or vector
  21573. floating-point mode.
  21574. On most architectures this pattern is only approximate, so either
  21575. its C condition or the 'TARGET_OPTAB_SUPPORTED_P' hook should check
  21576. for the appropriate math flags. (Using the C condition is more
  21577. direct, but using 'TARGET_OPTAB_SUPPORTED_P' can be useful if a
  21578. target-specific built-in also uses the 'rsqrtM2' pattern.)
  21579. This pattern is not allowed to 'FAIL'.
  21580. 'fmodM3'
  21581. Store the remainder of dividing operand 1 by operand 2 into operand
  21582. 0, rounded towards zero to an integer. All operands have mode M,
  21583. which is a scalar or vector floating-point mode.
  21584. This pattern is not allowed to 'FAIL'.
  21585. 'remainderM3'
  21586. Store the remainder of dividing operand 1 by operand 2 into operand
  21587. 0, rounded to the nearest integer. All operands have mode M, which
  21588. is a scalar or vector floating-point mode.
  21589. This pattern is not allowed to 'FAIL'.
  21590. 'scalbM3'
  21591. Raise 'FLT_RADIX' to the power of operand 2, multiply it by operand
  21592. 1, and store the result in operand 0. All operands have mode M,
  21593. which is a scalar or vector floating-point mode.
  21594. This pattern is not allowed to 'FAIL'.
  21595. 'ldexpM3'
  21596. Raise 2 to the power of operand 2, multiply it by operand 1, and
  21597. store the result in operand 0. Operands 0 and 1 have mode M, which
  21598. is a scalar or vector floating-point mode. Operand 2's mode has
  21599. the same number of elements as M and each element is wide enough to
  21600. store an 'int'. The integers are signed.
  21601. This pattern is not allowed to 'FAIL'.
  21602. 'cosM2'
  21603. Store the cosine of operand 1 into operand 0. Both operands have
  21604. mode M, which is a scalar or vector floating-point mode.
  21605. This pattern is not allowed to 'FAIL'.
  21606. 'sinM2'
  21607. Store the sine of operand 1 into operand 0. Both operands have
  21608. mode M, which is a scalar or vector floating-point mode.
  21609. This pattern is not allowed to 'FAIL'.
  21610. 'sincosM3'
  21611. Store the cosine of operand 2 into operand 0 and the sine of
  21612. operand 2 into operand 1. All operands have mode M, which is a
  21613. scalar or vector floating-point mode.
  21614. Targets that can calculate the sine and cosine simultaneously can
  21615. implement this pattern as opposed to implementing individual
  21616. 'sinM2' and 'cosM2' patterns. The 'sin' and 'cos' built-in
  21617. functions will then be expanded to the 'sincosM3' pattern, with one
  21618. of the output values left unused.
  21619. 'tanM2'
  21620. Store the tangent of operand 1 into operand 0. Both operands have
  21621. mode M, which is a scalar or vector floating-point mode.
  21622. This pattern is not allowed to 'FAIL'.
  21623. 'asinM2'
  21624. Store the arc sine of operand 1 into operand 0. Both operands have
  21625. mode M, which is a scalar or vector floating-point mode.
  21626. This pattern is not allowed to 'FAIL'.
  21627. 'acosM2'
  21628. Store the arc cosine of operand 1 into operand 0. Both operands
  21629. have mode M, which is a scalar or vector floating-point mode.
  21630. This pattern is not allowed to 'FAIL'.
  21631. 'atanM2'
  21632. Store the arc tangent of operand 1 into operand 0. Both operands
  21633. have mode M, which is a scalar or vector floating-point mode.
  21634. This pattern is not allowed to 'FAIL'.
  21635. 'expM2'
  21636. Raise e (the base of natural logarithms) to the power of operand 1
  21637. and store the result in operand 0. Both operands have mode M,
  21638. which is a scalar or vector floating-point mode.
  21639. This pattern is not allowed to 'FAIL'.
  21640. 'expm1M2'
  21641. Raise e (the base of natural logarithms) to the power of operand 1,
  21642. subtract 1, and store the result in operand 0. Both operands have
  21643. mode M, which is a scalar or vector floating-point mode.
  21644. For inputs close to zero, the pattern is expected to be more
  21645. accurate than a separate 'expM2' and 'subM3' would be.
  21646. This pattern is not allowed to 'FAIL'.
  21647. 'exp10M2'
  21648. Raise 10 to the power of operand 1 and store the result in operand
  21649. 0. Both operands have mode M, which is a scalar or vector
  21650. floating-point mode.
  21651. This pattern is not allowed to 'FAIL'.
  21652. 'exp2M2'
  21653. Raise 2 to the power of operand 1 and store the result in operand
  21654. 0. Both operands have mode M, which is a scalar or vector
  21655. floating-point mode.
  21656. This pattern is not allowed to 'FAIL'.
  21657. 'logM2'
  21658. Store the natural logarithm of operand 1 into operand 0. Both
  21659. operands have mode M, which is a scalar or vector floating-point
  21660. mode.
  21661. This pattern is not allowed to 'FAIL'.
  21662. 'log1pM2'
  21663. Add 1 to operand 1, compute the natural logarithm, and store the
  21664. result in operand 0. Both operands have mode M, which is a scalar
  21665. or vector floating-point mode.
  21666. For inputs close to zero, the pattern is expected to be more
  21667. accurate than a separate 'addM3' and 'logM2' would be.
  21668. This pattern is not allowed to 'FAIL'.
  21669. 'log10M2'
  21670. Store the base-10 logarithm of operand 1 into operand 0. Both
  21671. operands have mode M, which is a scalar or vector floating-point
  21672. mode.
  21673. This pattern is not allowed to 'FAIL'.
  21674. 'log2M2'
  21675. Store the base-2 logarithm of operand 1 into operand 0. Both
  21676. operands have mode M, which is a scalar or vector floating-point
  21677. mode.
  21678. This pattern is not allowed to 'FAIL'.
  21679. 'logbM2'
  21680. Store the base-'FLT_RADIX' logarithm of operand 1 into operand 0.
  21681. Both operands have mode M, which is a scalar or vector
  21682. floating-point mode.
  21683. This pattern is not allowed to 'FAIL'.
  21684. 'significandM2'
  21685. Store the significand of floating-point operand 1 in operand 0.
  21686. Both operands have mode M, which is a scalar or vector
  21687. floating-point mode.
  21688. This pattern is not allowed to 'FAIL'.
  21689. 'powM3'
  21690. Store the value of operand 1 raised to the exponent operand 2 into
  21691. operand 0. All operands have mode M, which is a scalar or vector
  21692. floating-point mode.
  21693. This pattern is not allowed to 'FAIL'.
  21694. 'atan2M3'
  21695. Store the arc tangent (inverse tangent) of operand 1 divided by
  21696. operand 2 into operand 0, using the signs of both arguments to
  21697. determine the quadrant of the result. All operands have mode M,
  21698. which is a scalar or vector floating-point mode.
  21699. This pattern is not allowed to 'FAIL'.
  21700. 'floorM2'
  21701. Store the largest integral value not greater than operand 1 in
  21702. operand 0. Both operands have mode M, which is a scalar or vector
  21703. floating-point mode. If '-ffp-int-builtin-inexact' is in effect,
  21704. the "inexact" exception may be raised for noninteger operands;
  21705. otherwise, it may not.
  21706. This pattern is not allowed to 'FAIL'.
  21707. 'btruncM2'
  21708. Round operand 1 to an integer, towards zero, and store the result
  21709. in operand 0. Both operands have mode M, which is a scalar or
  21710. vector floating-point mode. If '-ffp-int-builtin-inexact' is in
  21711. effect, the "inexact" exception may be raised for noninteger
  21712. operands; otherwise, it may not.
  21713. This pattern is not allowed to 'FAIL'.
  21714. 'roundM2'
  21715. Round operand 1 to the nearest integer, rounding away from zero in
  21716. the event of a tie, and store the result in operand 0. Both
  21717. operands have mode M, which is a scalar or vector floating-point
  21718. mode. If '-ffp-int-builtin-inexact' is in effect, the "inexact"
  21719. exception may be raised for noninteger operands; otherwise, it may
  21720. not.
  21721. This pattern is not allowed to 'FAIL'.
  21722. 'ceilM2'
  21723. Store the smallest integral value not less than operand 1 in
  21724. operand 0. Both operands have mode M, which is a scalar or vector
  21725. floating-point mode. If '-ffp-int-builtin-inexact' is in effect,
  21726. the "inexact" exception may be raised for noninteger operands;
  21727. otherwise, it may not.
  21728. This pattern is not allowed to 'FAIL'.
  21729. 'nearbyintM2'
  21730. Round operand 1 to an integer, using the current rounding mode, and
  21731. store the result in operand 0. Do not raise an inexact condition
  21732. when the result is different from the argument. Both operands have
  21733. mode M, which is a scalar or vector floating-point mode.
  21734. This pattern is not allowed to 'FAIL'.
  21735. 'rintM2'
  21736. Round operand 1 to an integer, using the current rounding mode, and
  21737. store the result in operand 0. Raise an inexact condition when the
  21738. result is different from the argument. Both operands have mode M,
  21739. which is a scalar or vector floating-point mode.
  21740. This pattern is not allowed to 'FAIL'.
  21741. 'lrintMN2'
  21742. Convert operand 1 (valid for floating point mode M) to fixed point
  21743. mode N as a signed number according to the current rounding mode
  21744. and store in operand 0 (which has mode N).
  21745. 'lroundMN2'
  21746. Convert operand 1 (valid for floating point mode M) to fixed point
  21747. mode N as a signed number rounding to nearest and away from zero
  21748. and store in operand 0 (which has mode N).
  21749. 'lfloorMN2'
  21750. Convert operand 1 (valid for floating point mode M) to fixed point
  21751. mode N as a signed number rounding down and store in operand 0
  21752. (which has mode N).
  21753. 'lceilMN2'
  21754. Convert operand 1 (valid for floating point mode M) to fixed point
  21755. mode N as a signed number rounding up and store in operand 0 (which
  21756. has mode N).
  21757. 'copysignM3'
  21758. Store a value with the magnitude of operand 1 and the sign of
  21759. operand 2 into operand 0. All operands have mode M, which is a
  21760. scalar or vector floating-point mode.
  21761. This pattern is not allowed to 'FAIL'.
  21762. 'xorsignM3'
  21763. Equivalent to 'op0 = op1 * copysign (1.0, op2)': store a value with
  21764. the magnitude of operand 1 and the sign of operand 2 into operand
  21765. 0. All operands have mode M, which is a scalar or vector
  21766. floating-point mode.
  21767. This pattern is not allowed to 'FAIL'.
  21768. 'cadd90M3'
  21769. Perform vector add and subtract on even/odd number pairs. The
  21770. operation being matched is semantically described as
  21771. for (int i = 0; i < N; i += 2)
  21772. {
  21773. c[i] = a[i] - b[i+1];
  21774. c[i+1] = a[i+1] + b[i];
  21775. }
  21776. This operation is semantically equivalent to performing a vector
  21777. addition of complex numbers in operand 1 with operand 2 rotated by
  21778. 90 degrees around the argand plane and storing the result in
  21779. operand 0.
  21780. In GCC lane ordering the real part of the number must be in the
  21781. even lanes with the imaginary part in the odd lanes.
  21782. The operation is only supported for vector modes M.
  21783. This pattern is not allowed to 'FAIL'.
  21784. 'cadd270M3'
  21785. Perform vector add and subtract on even/odd number pairs. The
  21786. operation being matched is semantically described as
  21787. for (int i = 0; i < N; i += 2)
  21788. {
  21789. c[i] = a[i] + b[i+1];
  21790. c[i+1] = a[i+1] - b[i];
  21791. }
  21792. This operation is semantically equivalent to performing a vector
  21793. addition of complex numbers in operand 1 with operand 2 rotated by
  21794. 270 degrees around the argand plane and storing the result in
  21795. operand 0.
  21796. In GCC lane ordering the real part of the number must be in the
  21797. even lanes with the imaginary part in the odd lanes.
  21798. The operation is only supported for vector modes M.
  21799. This pattern is not allowed to 'FAIL'.
  21800. 'cmlaM4'
  21801. Perform a vector multiply and accumulate that is semantically the
  21802. same as a multiply and accumulate of complex numbers.
  21803. complex TYPE c[N];
  21804. complex TYPE a[N];
  21805. complex TYPE b[N];
  21806. for (int i = 0; i < N; i += 1)
  21807. {
  21808. c[i] += a[i] * b[i];
  21809. }
  21810. In GCC lane ordering the real part of the number must be in the
  21811. even lanes with the imaginary part in the odd lanes.
  21812. The operation is only supported for vector modes M.
  21813. This pattern is not allowed to 'FAIL'.
  21814. 'cmla_conjM4'
  21815. Perform a vector multiply by conjugate and accumulate that is
  21816. semantically the same as a multiply and accumulate of complex
  21817. numbers where the second multiply arguments is conjugated.
  21818. complex TYPE c[N];
  21819. complex TYPE a[N];
  21820. complex TYPE b[N];
  21821. for (int i = 0; i < N; i += 1)
  21822. {
  21823. c[i] += a[i] * conj (b[i]);
  21824. }
  21825. In GCC lane ordering the real part of the number must be in the
  21826. even lanes with the imaginary part in the odd lanes.
  21827. The operation is only supported for vector modes M.
  21828. This pattern is not allowed to 'FAIL'.
  21829. 'cmlsM4'
  21830. Perform a vector multiply and subtract that is semantically the
  21831. same as a multiply and subtract of complex numbers.
  21832. complex TYPE c[N];
  21833. complex TYPE a[N];
  21834. complex TYPE b[N];
  21835. for (int i = 0; i < N; i += 1)
  21836. {
  21837. c[i] -= a[i] * b[i];
  21838. }
  21839. In GCC lane ordering the real part of the number must be in the
  21840. even lanes with the imaginary part in the odd lanes.
  21841. The operation is only supported for vector modes M.
  21842. This pattern is not allowed to 'FAIL'.
  21843. 'cmls_conjM4'
  21844. Perform a vector multiply by conjugate and subtract that is
  21845. semantically the same as a multiply and subtract of complex numbers
  21846. where the second multiply arguments is conjugated.
  21847. complex TYPE c[N];
  21848. complex TYPE a[N];
  21849. complex TYPE b[N];
  21850. for (int i = 0; i < N; i += 1)
  21851. {
  21852. c[i] -= a[i] * conj (b[i]);
  21853. }
  21854. In GCC lane ordering the real part of the number must be in the
  21855. even lanes with the imaginary part in the odd lanes.
  21856. The operation is only supported for vector modes M.
  21857. This pattern is not allowed to 'FAIL'.
  21858. 'cmulM4'
  21859. Perform a vector multiply that is semantically the same as multiply
  21860. of complex numbers.
  21861. complex TYPE c[N];
  21862. complex TYPE a[N];
  21863. complex TYPE b[N];
  21864. for (int i = 0; i < N; i += 1)
  21865. {
  21866. c[i] = a[i] * b[i];
  21867. }
  21868. In GCC lane ordering the real part of the number must be in the
  21869. even lanes with the imaginary part in the odd lanes.
  21870. The operation is only supported for vector modes M.
  21871. This pattern is not allowed to 'FAIL'.
  21872. 'cmul_conjM4'
  21873. Perform a vector multiply by conjugate that is semantically the
  21874. same as a multiply of complex numbers where the second multiply
  21875. arguments is conjugated.
  21876. complex TYPE c[N];
  21877. complex TYPE a[N];
  21878. complex TYPE b[N];
  21879. for (int i = 0; i < N; i += 1)
  21880. {
  21881. c[i] = a[i] * conj (b[i]);
  21882. }
  21883. In GCC lane ordering the real part of the number must be in the
  21884. even lanes with the imaginary part in the odd lanes.
  21885. The operation is only supported for vector modes M.
  21886. This pattern is not allowed to 'FAIL'.
  21887. 'ffsM2'
  21888. Store into operand 0 one plus the index of the least significant
  21889. 1-bit of operand 1. If operand 1 is zero, store zero.
  21890. M is either a scalar or vector integer mode. When it is a scalar,
  21891. operand 1 has mode M but operand 0 can have whatever scalar integer
  21892. mode is suitable for the target. The compiler will insert
  21893. conversion instructions as necessary (typically to convert the
  21894. result to the same width as 'int'). When M is a vector, both
  21895. operands must have mode M.
  21896. This pattern is not allowed to 'FAIL'.
  21897. 'clrsbM2'
  21898. Count leading redundant sign bits. Store into operand 0 the number
  21899. of redundant sign bits in operand 1, starting at the most
  21900. significant bit position. A redundant sign bit is defined as any
  21901. sign bit after the first. As such, this count will be one less
  21902. than the count of leading sign bits.
  21903. M is either a scalar or vector integer mode. When it is a scalar,
  21904. operand 1 has mode M but operand 0 can have whatever scalar integer
  21905. mode is suitable for the target. The compiler will insert
  21906. conversion instructions as necessary (typically to convert the
  21907. result to the same width as 'int'). When M is a vector, both
  21908. operands must have mode M.
  21909. This pattern is not allowed to 'FAIL'.
  21910. 'clzM2'
  21911. Store into operand 0 the number of leading 0-bits in operand 1,
  21912. starting at the most significant bit position. If operand 1 is 0,
  21913. the 'CLZ_DEFINED_VALUE_AT_ZERO' (*note Misc::) macro defines if the
  21914. result is undefined or has a useful value.
  21915. M is either a scalar or vector integer mode. When it is a scalar,
  21916. operand 1 has mode M but operand 0 can have whatever scalar integer
  21917. mode is suitable for the target. The compiler will insert
  21918. conversion instructions as necessary (typically to convert the
  21919. result to the same width as 'int'). When M is a vector, both
  21920. operands must have mode M.
  21921. This pattern is not allowed to 'FAIL'.
  21922. 'ctzM2'
  21923. Store into operand 0 the number of trailing 0-bits in operand 1,
  21924. starting at the least significant bit position. If operand 1 is 0,
  21925. the 'CTZ_DEFINED_VALUE_AT_ZERO' (*note Misc::) macro defines if the
  21926. result is undefined or has a useful value.
  21927. M is either a scalar or vector integer mode. When it is a scalar,
  21928. operand 1 has mode M but operand 0 can have whatever scalar integer
  21929. mode is suitable for the target. The compiler will insert
  21930. conversion instructions as necessary (typically to convert the
  21931. result to the same width as 'int'). When M is a vector, both
  21932. operands must have mode M.
  21933. This pattern is not allowed to 'FAIL'.
  21934. 'popcountM2'
  21935. Store into operand 0 the number of 1-bits in operand 1.
  21936. M is either a scalar or vector integer mode. When it is a scalar,
  21937. operand 1 has mode M but operand 0 can have whatever scalar integer
  21938. mode is suitable for the target. The compiler will insert
  21939. conversion instructions as necessary (typically to convert the
  21940. result to the same width as 'int'). When M is a vector, both
  21941. operands must have mode M.
  21942. This pattern is not allowed to 'FAIL'.
  21943. 'parityM2'
  21944. Store into operand 0 the parity of operand 1, i.e. the number of
  21945. 1-bits in operand 1 modulo 2.
  21946. M is either a scalar or vector integer mode. When it is a scalar,
  21947. operand 1 has mode M but operand 0 can have whatever scalar integer
  21948. mode is suitable for the target. The compiler will insert
  21949. conversion instructions as necessary (typically to convert the
  21950. result to the same width as 'int'). When M is a vector, both
  21951. operands must have mode M.
  21952. This pattern is not allowed to 'FAIL'.
  21953. 'one_cmplM2'
  21954. Store the bitwise-complement of operand 1 into operand 0.
  21955. 'cpymemM'
  21956. Block copy instruction. The destination and source blocks of
  21957. memory are the first two operands, and both are 'mem:BLK's with an
  21958. address in mode 'Pmode'.
  21959. The number of bytes to copy is the third operand, in mode M.
  21960. Usually, you specify 'Pmode' for M. However, if you can generate
  21961. better code knowing the range of valid lengths is smaller than
  21962. those representable in a full Pmode pointer, you should provide a
  21963. pattern with a mode corresponding to the range of values you can
  21964. handle efficiently (e.g., 'QImode' for values in the range 0-127;
  21965. note we avoid numbers that appear negative) and also a pattern with
  21966. 'Pmode'.
  21967. The fourth operand is the known shared alignment of the source and
  21968. destination, in the form of a 'const_int' rtx. Thus, if the
  21969. compiler knows that both source and destination are word-aligned,
  21970. it may provide the value 4 for this operand.
  21971. Optional operands 5 and 6 specify expected alignment and size of
  21972. block respectively. The expected alignment differs from alignment
  21973. in operand 4 in a way that the blocks are not required to be
  21974. aligned according to it in all cases. This expected alignment is
  21975. also in bytes, just like operand 4. Expected size, when unknown,
  21976. is set to '(const_int -1)'.
  21977. Descriptions of multiple 'cpymemM' patterns can only be beneficial
  21978. if the patterns for smaller modes have fewer restrictions on their
  21979. first, second and fourth operands. Note that the mode M in
  21980. 'cpymemM' does not impose any restriction on the mode of
  21981. individually copied data units in the block.
  21982. The 'cpymemM' patterns need not give special consideration to the
  21983. possibility that the source and destination strings might overlap.
  21984. These patterns are used to do inline expansion of
  21985. '__builtin_memcpy'.
  21986. 'movmemM'
  21987. Block move instruction. The destination and source blocks of
  21988. memory are the first two operands, and both are 'mem:BLK's with an
  21989. address in mode 'Pmode'.
  21990. The number of bytes to copy is the third operand, in mode M.
  21991. Usually, you specify 'Pmode' for M. However, if you can generate
  21992. better code knowing the range of valid lengths is smaller than
  21993. those representable in a full Pmode pointer, you should provide a
  21994. pattern with a mode corresponding to the range of values you can
  21995. handle efficiently (e.g., 'QImode' for values in the range 0-127;
  21996. note we avoid numbers that appear negative) and also a pattern with
  21997. 'Pmode'.
  21998. The fourth operand is the known shared alignment of the source and
  21999. destination, in the form of a 'const_int' rtx. Thus, if the
  22000. compiler knows that both source and destination are word-aligned,
  22001. it may provide the value 4 for this operand.
  22002. Optional operands 5 and 6 specify expected alignment and size of
  22003. block respectively. The expected alignment differs from alignment
  22004. in operand 4 in a way that the blocks are not required to be
  22005. aligned according to it in all cases. This expected alignment is
  22006. also in bytes, just like operand 4. Expected size, when unknown,
  22007. is set to '(const_int -1)'.
  22008. Descriptions of multiple 'movmemM' patterns can only be beneficial
  22009. if the patterns for smaller modes have fewer restrictions on their
  22010. first, second and fourth operands. Note that the mode M in
  22011. 'movmemM' does not impose any restriction on the mode of
  22012. individually copied data units in the block.
  22013. The 'movmemM' patterns must correctly handle the case where the
  22014. source and destination strings overlap. These patterns are used to
  22015. do inline expansion of '__builtin_memmove'.
  22016. 'movstr'
  22017. String copy instruction, with 'stpcpy' semantics. Operand 0 is an
  22018. output operand in mode 'Pmode'. The addresses of the destination
  22019. and source strings are operands 1 and 2, and both are 'mem:BLK's
  22020. with addresses in mode 'Pmode'. The execution of the expansion of
  22021. this pattern should store in operand 0 the address in which the
  22022. 'NUL' terminator was stored in the destination string.
  22023. This pattern has also several optional operands that are same as in
  22024. 'setmem'.
  22025. 'setmemM'
  22026. Block set instruction. The destination string is the first
  22027. operand, given as a 'mem:BLK' whose address is in mode 'Pmode'.
  22028. The number of bytes to set is the second operand, in mode M. The
  22029. value to initialize the memory with is the third operand. Targets
  22030. that only support the clearing of memory should reject any value
  22031. that is not the constant 0. See 'cpymemM' for a discussion of the
  22032. choice of mode.
  22033. The fourth operand is the known alignment of the destination, in
  22034. the form of a 'const_int' rtx. Thus, if the compiler knows that
  22035. the destination is word-aligned, it may provide the value 4 for
  22036. this operand.
  22037. Optional operands 5 and 6 specify expected alignment and size of
  22038. block respectively. The expected alignment differs from alignment
  22039. in operand 4 in a way that the blocks are not required to be
  22040. aligned according to it in all cases. This expected alignment is
  22041. also in bytes, just like operand 4. Expected size, when unknown,
  22042. is set to '(const_int -1)'. Operand 7 is the minimal size of the
  22043. block and operand 8 is the maximal size of the block (NULL if it
  22044. cannot be represented as CONST_INT). Operand 9 is the probable
  22045. maximal size (i.e. we cannot rely on it for correctness, but it can
  22046. be used for choosing proper code sequence for a given size).
  22047. The use for multiple 'setmemM' is as for 'cpymemM'.
  22048. 'cmpstrnM'
  22049. String compare instruction, with five operands. Operand 0 is the
  22050. output; it has mode M. The remaining four operands are like the
  22051. operands of 'cpymemM'. The two memory blocks specified are
  22052. compared byte by byte in lexicographic order starting at the
  22053. beginning of each string. The instruction is not allowed to
  22054. prefetch more than one byte at a time since either string may end
  22055. in the first byte and reading past that may access an invalid page
  22056. or segment and cause a fault. The comparison terminates early if
  22057. the fetched bytes are different or if they are equal to zero. The
  22058. effect of the instruction is to store a value in operand 0 whose
  22059. sign indicates the result of the comparison.
  22060. 'cmpstrM'
  22061. String compare instruction, without known maximum length. Operand
  22062. 0 is the output; it has mode M. The second and third operand are
  22063. the blocks of memory to be compared; both are 'mem:BLK' with an
  22064. address in mode 'Pmode'.
  22065. The fourth operand is the known shared alignment of the source and
  22066. destination, in the form of a 'const_int' rtx. Thus, if the
  22067. compiler knows that both source and destination are word-aligned,
  22068. it may provide the value 4 for this operand.
  22069. The two memory blocks specified are compared byte by byte in
  22070. lexicographic order starting at the beginning of each string. The
  22071. instruction is not allowed to prefetch more than one byte at a time
  22072. since either string may end in the first byte and reading past that
  22073. may access an invalid page or segment and cause a fault. The
  22074. comparison will terminate when the fetched bytes are different or
  22075. if they are equal to zero. The effect of the instruction is to
  22076. store a value in operand 0 whose sign indicates the result of the
  22077. comparison.
  22078. 'cmpmemM'
  22079. Block compare instruction, with five operands like the operands of
  22080. 'cmpstrM'. The two memory blocks specified are compared byte by
  22081. byte in lexicographic order starting at the beginning of each
  22082. block. Unlike 'cmpstrM' the instruction can prefetch any bytes in
  22083. the two memory blocks. Also unlike 'cmpstrM' the comparison will
  22084. not stop if both bytes are zero. The effect of the instruction is
  22085. to store a value in operand 0 whose sign indicates the result of
  22086. the comparison.
  22087. 'strlenM'
  22088. Compute the length of a string, with three operands. Operand 0 is
  22089. the result (of mode M), operand 1 is a 'mem' referring to the first
  22090. character of the string, operand 2 is the character to search for
  22091. (normally zero), and operand 3 is a constant describing the known
  22092. alignment of the beginning of the string.
  22093. 'floatMN2'
  22094. Convert signed integer operand 1 (valid for fixed point mode M) to
  22095. floating point mode N and store in operand 0 (which has mode N).
  22096. 'floatunsMN2'
  22097. Convert unsigned integer operand 1 (valid for fixed point mode M)
  22098. to floating point mode N and store in operand 0 (which has mode N).
  22099. 'fixMN2'
  22100. Convert operand 1 (valid for floating point mode M) to fixed point
  22101. mode N as a signed number and store in operand 0 (which has mode
  22102. N). This instruction's result is defined only when the value of
  22103. operand 1 is an integer.
  22104. If the machine description defines this pattern, it also needs to
  22105. define the 'ftrunc' pattern.
  22106. 'fixunsMN2'
  22107. Convert operand 1 (valid for floating point mode M) to fixed point
  22108. mode N as an unsigned number and store in operand 0 (which has mode
  22109. N). This instruction's result is defined only when the value of
  22110. operand 1 is an integer.
  22111. 'ftruncM2'
  22112. Convert operand 1 (valid for floating point mode M) to an integer
  22113. value, still represented in floating point mode M, and store it in
  22114. operand 0 (valid for floating point mode M).
  22115. 'fix_truncMN2'
  22116. Like 'fixMN2' but works for any floating point value of mode M by
  22117. converting the value to an integer.
  22118. 'fixuns_truncMN2'
  22119. Like 'fixunsMN2' but works for any floating point value of mode M
  22120. by converting the value to an integer.
  22121. 'truncMN2'
  22122. Truncate operand 1 (valid for mode M) to mode N and store in
  22123. operand 0 (which has mode N). Both modes must be fixed point or
  22124. both floating point.
  22125. 'extendMN2'
  22126. Sign-extend operand 1 (valid for mode M) to mode N and store in
  22127. operand 0 (which has mode N). Both modes must be fixed point or
  22128. both floating point.
  22129. 'zero_extendMN2'
  22130. Zero-extend operand 1 (valid for mode M) to mode N and store in
  22131. operand 0 (which has mode N). Both modes must be fixed point.
  22132. 'fractMN2'
  22133. Convert operand 1 of mode M to mode N and store in operand 0 (which
  22134. has mode N). Mode M and mode N could be fixed-point to
  22135. fixed-point, signed integer to fixed-point, fixed-point to signed
  22136. integer, floating-point to fixed-point, or fixed-point to
  22137. floating-point. When overflows or underflows happen, the results
  22138. are undefined.
  22139. 'satfractMN2'
  22140. Convert operand 1 of mode M to mode N and store in operand 0 (which
  22141. has mode N). Mode M and mode N could be fixed-point to
  22142. fixed-point, signed integer to fixed-point, or floating-point to
  22143. fixed-point. When overflows or underflows happen, the instruction
  22144. saturates the results to the maximum or the minimum.
  22145. 'fractunsMN2'
  22146. Convert operand 1 of mode M to mode N and store in operand 0 (which
  22147. has mode N). Mode M and mode N could be unsigned integer to
  22148. fixed-point, or fixed-point to unsigned integer. When overflows or
  22149. underflows happen, the results are undefined.
  22150. 'satfractunsMN2'
  22151. Convert unsigned integer operand 1 of mode M to fixed-point mode N
  22152. and store in operand 0 (which has mode N). When overflows or
  22153. underflows happen, the instruction saturates the results to the
  22154. maximum or the minimum.
  22155. 'extvM'
  22156. Extract a bit-field from register operand 1, sign-extend it, and
  22157. store it in operand 0. Operand 2 specifies the width of the field
  22158. in bits and operand 3 the starting bit, which counts from the most
  22159. significant bit if 'BITS_BIG_ENDIAN' is true and from the least
  22160. significant bit otherwise.
  22161. Operands 0 and 1 both have mode M. Operands 2 and 3 have a
  22162. target-specific mode.
  22163. 'extvmisalignM'
  22164. Extract a bit-field from memory operand 1, sign extend it, and
  22165. store it in operand 0. Operand 2 specifies the width in bits and
  22166. operand 3 the starting bit. The starting bit is always somewhere
  22167. in the first byte of operand 1; it counts from the most significant
  22168. bit if 'BITS_BIG_ENDIAN' is true and from the least significant bit
  22169. otherwise.
  22170. Operand 0 has mode M while operand 1 has 'BLK' mode. Operands 2
  22171. and 3 have a target-specific mode.
  22172. The instruction must not read beyond the last byte of the
  22173. bit-field.
  22174. 'extzvM'
  22175. Like 'extvM' except that the bit-field value is zero-extended.
  22176. 'extzvmisalignM'
  22177. Like 'extvmisalignM' except that the bit-field value is
  22178. zero-extended.
  22179. 'insvM'
  22180. Insert operand 3 into a bit-field of register operand 0. Operand 1
  22181. specifies the width of the field in bits and operand 2 the starting
  22182. bit, which counts from the most significant bit if
  22183. 'BITS_BIG_ENDIAN' is true and from the least significant bit
  22184. otherwise.
  22185. Operands 0 and 3 both have mode M. Operands 1 and 2 have a
  22186. target-specific mode.
  22187. 'insvmisalignM'
  22188. Insert operand 3 into a bit-field of memory operand 0. Operand 1
  22189. specifies the width of the field in bits and operand 2 the starting
  22190. bit. The starting bit is always somewhere in the first byte of
  22191. operand 0; it counts from the most significant bit if
  22192. 'BITS_BIG_ENDIAN' is true and from the least significant bit
  22193. otherwise.
  22194. Operand 3 has mode M while operand 0 has 'BLK' mode. Operands 1
  22195. and 2 have a target-specific mode.
  22196. The instruction must not read or write beyond the last byte of the
  22197. bit-field.
  22198. 'extv'
  22199. Extract a bit-field from operand 1 (a register or memory operand),
  22200. where operand 2 specifies the width in bits and operand 3 the
  22201. starting bit, and store it in operand 0. Operand 0 must have mode
  22202. 'word_mode'. Operand 1 may have mode 'byte_mode' or 'word_mode';
  22203. often 'word_mode' is allowed only for registers. Operands 2 and 3
  22204. must be valid for 'word_mode'.
  22205. The RTL generation pass generates this instruction only with
  22206. constants for operands 2 and 3 and the constant is never zero for
  22207. operand 2.
  22208. The bit-field value is sign-extended to a full word integer before
  22209. it is stored in operand 0.
  22210. This pattern is deprecated; please use 'extvM' and 'extvmisalignM'
  22211. instead.
  22212. 'extzv'
  22213. Like 'extv' except that the bit-field value is zero-extended.
  22214. This pattern is deprecated; please use 'extzvM' and
  22215. 'extzvmisalignM' instead.
  22216. 'insv'
  22217. Store operand 3 (which must be valid for 'word_mode') into a
  22218. bit-field in operand 0, where operand 1 specifies the width in bits
  22219. and operand 2 the starting bit. Operand 0 may have mode
  22220. 'byte_mode' or 'word_mode'; often 'word_mode' is allowed only for
  22221. registers. Operands 1 and 2 must be valid for 'word_mode'.
  22222. The RTL generation pass generates this instruction only with
  22223. constants for operands 1 and 2 and the constant is never zero for
  22224. operand 1.
  22225. This pattern is deprecated; please use 'insvM' and 'insvmisalignM'
  22226. instead.
  22227. 'movMODEcc'
  22228. Conditionally move operand 2 or operand 3 into operand 0 according
  22229. to the comparison in operand 1. If the comparison is true, operand
  22230. 2 is moved into operand 0, otherwise operand 3 is moved.
  22231. The mode of the operands being compared need not be the same as the
  22232. operands being moved. Some machines, sparc64 for example, have
  22233. instructions that conditionally move an integer value based on the
  22234. floating point condition codes and vice versa.
  22235. If the machine does not have conditional move instructions, do not
  22236. define these patterns.
  22237. 'addMODEcc'
  22238. Similar to 'movMODEcc' but for conditional addition. Conditionally
  22239. move operand 2 or (operands 2 + operand 3) into operand 0 according
  22240. to the comparison in operand 1. If the comparison is false,
  22241. operand 2 is moved into operand 0, otherwise (operand 2 + operand
  22242. 3) is moved.
  22243. 'cond_addMODE'
  22244. 'cond_subMODE'
  22245. 'cond_mulMODE'
  22246. 'cond_divMODE'
  22247. 'cond_udivMODE'
  22248. 'cond_modMODE'
  22249. 'cond_umodMODE'
  22250. 'cond_andMODE'
  22251. 'cond_iorMODE'
  22252. 'cond_xorMODE'
  22253. 'cond_sminMODE'
  22254. 'cond_smaxMODE'
  22255. 'cond_uminMODE'
  22256. 'cond_umaxMODE'
  22257. When operand 1 is true, perform an operation on operands 2 and 3
  22258. and store the result in operand 0, otherwise store operand 4 in
  22259. operand 0. The operation works elementwise if the operands are
  22260. vectors.
  22261. The scalar case is equivalent to:
  22262. op0 = op1 ? op2 OP op3 : op4;
  22263. while the vector case is equivalent to:
  22264. for (i = 0; i < GET_MODE_NUNITS (M); i++)
  22265. op0[i] = op1[i] ? op2[i] OP op3[i] : op4[i];
  22266. where, for example, OP is '+' for 'cond_addMODE'.
  22267. When defined for floating-point modes, the contents of 'op3[i]' are
  22268. not interpreted if 'op1[i]' is false, just like they would not be
  22269. in a normal C '?:' condition.
  22270. Operands 0, 2, 3 and 4 all have mode M. Operand 1 is a scalar
  22271. integer if M is scalar, otherwise it has the mode returned by
  22272. 'TARGET_VECTORIZE_GET_MASK_MODE'.
  22273. 'cond_fmaMODE'
  22274. 'cond_fmsMODE'
  22275. 'cond_fnmaMODE'
  22276. 'cond_fnmsMODE'
  22277. Like 'cond_addM', except that the conditional operation takes 3
  22278. operands rather than two. For example, the vector form of
  22279. 'cond_fmaMODE' is equivalent to:
  22280. for (i = 0; i < GET_MODE_NUNITS (M); i++)
  22281. op0[i] = op1[i] ? fma (op2[i], op3[i], op4[i]) : op5[i];
  22282. 'negMODEcc'
  22283. Similar to 'movMODEcc' but for conditional negation. Conditionally
  22284. move the negation of operand 2 or the unchanged operand 3 into
  22285. operand 0 according to the comparison in operand 1. If the
  22286. comparison is true, the negation of operand 2 is moved into operand
  22287. 0, otherwise operand 3 is moved.
  22288. 'notMODEcc'
  22289. Similar to 'negMODEcc' but for conditional complement.
  22290. Conditionally move the bitwise complement of operand 2 or the
  22291. unchanged operand 3 into operand 0 according to the comparison in
  22292. operand 1. If the comparison is true, the complement of operand 2
  22293. is moved into operand 0, otherwise operand 3 is moved.
  22294. 'cstoreMODE4'
  22295. Store zero or nonzero in operand 0 according to whether a
  22296. comparison is true. Operand 1 is a comparison operator. Operand 2
  22297. and operand 3 are the first and second operand of the comparison,
  22298. respectively. You specify the mode that operand 0 must have when
  22299. you write the 'match_operand' expression. The compiler
  22300. automatically sees which mode you have used and supplies an operand
  22301. of that mode.
  22302. The value stored for a true condition must have 1 as its low bit,
  22303. or else must be negative. Otherwise the instruction is not
  22304. suitable and you should omit it from the machine description. You
  22305. describe to the compiler exactly which value is stored by defining
  22306. the macro 'STORE_FLAG_VALUE' (*note Misc::). If a description
  22307. cannot be found that can be used for all the possible comparison
  22308. operators, you should pick one and use a 'define_expand' to map all
  22309. results onto the one you chose.
  22310. These operations may 'FAIL', but should do so only in relatively
  22311. uncommon cases; if they would 'FAIL' for common cases involving
  22312. integer comparisons, it is best to restrict the predicates to not
  22313. allow these operands. Likewise if a given comparison operator will
  22314. always fail, independent of the operands (for floating-point modes,
  22315. the 'ordered_comparison_operator' predicate is often useful in this
  22316. case).
  22317. If this pattern is omitted, the compiler will generate a
  22318. conditional branch--for example, it may copy a constant one to the
  22319. target and branching around an assignment of zero to the target--or
  22320. a libcall. If the predicate for operand 1 only rejects some
  22321. operators, it will also try reordering the operands and/or
  22322. inverting the result value (e.g. by an exclusive OR). These
  22323. possibilities could be cheaper or equivalent to the instructions
  22324. used for the 'cstoreMODE4' pattern followed by those required to
  22325. convert a positive result from 'STORE_FLAG_VALUE' to 1; in this
  22326. case, you can and should make operand 1's predicate reject some
  22327. operators in the 'cstoreMODE4' pattern, or remove the pattern
  22328. altogether from the machine description.
  22329. 'cbranchMODE4'
  22330. Conditional branch instruction combined with a compare instruction.
  22331. Operand 0 is a comparison operator. Operand 1 and operand 2 are
  22332. the first and second operands of the comparison, respectively.
  22333. Operand 3 is the 'code_label' to jump to.
  22334. 'jump'
  22335. A jump inside a function; an unconditional branch. Operand 0 is
  22336. the 'code_label' to jump to. This pattern name is mandatory on all
  22337. machines.
  22338. 'call'
  22339. Subroutine call instruction returning no value. Operand 0 is the
  22340. function to call; operand 1 is the number of bytes of arguments
  22341. pushed as a 'const_int'; operand 2 is the number of registers used
  22342. as operands.
  22343. On most machines, operand 2 is not actually stored into the RTL
  22344. pattern. It is supplied for the sake of some RISC machines which
  22345. need to put this information into the assembler code; they can put
  22346. it in the RTL instead of operand 1.
  22347. Operand 0 should be a 'mem' RTX whose address is the address of the
  22348. function. Note, however, that this address can be a 'symbol_ref'
  22349. expression even if it would not be a legitimate memory address on
  22350. the target machine. If it is also not a valid argument for a call
  22351. instruction, the pattern for this operation should be a
  22352. 'define_expand' (*note Expander Definitions::) that places the
  22353. address into a register and uses that register in the call
  22354. instruction.
  22355. 'call_value'
  22356. Subroutine call instruction returning a value. Operand 0 is the
  22357. hard register in which the value is returned. There are three more
  22358. operands, the same as the three operands of the 'call' instruction
  22359. (but with numbers increased by one).
  22360. Subroutines that return 'BLKmode' objects use the 'call' insn.
  22361. 'call_pop', 'call_value_pop'
  22362. Similar to 'call' and 'call_value', except used if defined and if
  22363. 'RETURN_POPS_ARGS' is nonzero. They should emit a 'parallel' that
  22364. contains both the function call and a 'set' to indicate the
  22365. adjustment made to the frame pointer.
  22366. For machines where 'RETURN_POPS_ARGS' can be nonzero, the use of
  22367. these patterns increases the number of functions for which the
  22368. frame pointer can be eliminated, if desired.
  22369. 'untyped_call'
  22370. Subroutine call instruction returning a value of any type. Operand
  22371. 0 is the function to call; operand 1 is a memory location where the
  22372. result of calling the function is to be stored; operand 2 is a
  22373. 'parallel' expression where each element is a 'set' expression that
  22374. indicates the saving of a function return value into the result
  22375. block.
  22376. This instruction pattern should be defined to support
  22377. '__builtin_apply' on machines where special instructions are needed
  22378. to call a subroutine with arbitrary arguments or to save the value
  22379. returned. This instruction pattern is required on machines that
  22380. have multiple registers that can hold a return value (i.e.
  22381. 'FUNCTION_VALUE_REGNO_P' is true for more than one register).
  22382. 'return'
  22383. Subroutine return instruction. This instruction pattern name
  22384. should be defined only if a single instruction can do all the work
  22385. of returning from a function.
  22386. Like the 'movM' patterns, this pattern is also used after the RTL
  22387. generation phase. In this case it is to support machines where
  22388. multiple instructions are usually needed to return from a function,
  22389. but some class of functions only requires one instruction to
  22390. implement a return. Normally, the applicable functions are those
  22391. which do not need to save any registers or allocate stack space.
  22392. It is valid for this pattern to expand to an instruction using
  22393. 'simple_return' if no epilogue is required.
  22394. 'simple_return'
  22395. Subroutine return instruction. This instruction pattern name
  22396. should be defined only if a single instruction can do all the work
  22397. of returning from a function on a path where no epilogue is
  22398. required. This pattern is very similar to the 'return' instruction
  22399. pattern, but it is emitted only by the shrink-wrapping optimization
  22400. on paths where the function prologue has not been executed, and a
  22401. function return should occur without any of the effects of the
  22402. epilogue. Additional uses may be introduced on paths where both
  22403. the prologue and the epilogue have executed.
  22404. For such machines, the condition specified in this pattern should
  22405. only be true when 'reload_completed' is nonzero and the function's
  22406. epilogue would only be a single instruction. For machines with
  22407. register windows, the routine 'leaf_function_p' may be used to
  22408. determine if a register window push is required.
  22409. Machines that have conditional return instructions should define
  22410. patterns such as
  22411. (define_insn ""
  22412. [(set (pc)
  22413. (if_then_else (match_operator
  22414. 0 "comparison_operator"
  22415. [(cc0) (const_int 0)])
  22416. (return)
  22417. (pc)))]
  22418. "CONDITION"
  22419. "...")
  22420. where CONDITION would normally be the same condition specified on
  22421. the named 'return' pattern.
  22422. 'untyped_return'
  22423. Untyped subroutine return instruction. This instruction pattern
  22424. should be defined to support '__builtin_return' on machines where
  22425. special instructions are needed to return a value of any type.
  22426. Operand 0 is a memory location where the result of calling a
  22427. function with '__builtin_apply' is stored; operand 1 is a
  22428. 'parallel' expression where each element is a 'set' expression that
  22429. indicates the restoring of a function return value from the result
  22430. block.
  22431. 'nop'
  22432. No-op instruction. This instruction pattern name should always be
  22433. defined to output a no-op in assembler code. '(const_int 0)' will
  22434. do as an RTL pattern.
  22435. 'indirect_jump'
  22436. An instruction to jump to an address which is operand zero. This
  22437. pattern name is mandatory on all machines.
  22438. 'casesi'
  22439. Instruction to jump through a dispatch table, including bounds
  22440. checking. This instruction takes five operands:
  22441. 1. The index to dispatch on, which has mode 'SImode'.
  22442. 2. The lower bound for indices in the table, an integer constant.
  22443. 3. The total range of indices in the table--the largest index
  22444. minus the smallest one (both inclusive).
  22445. 4. A label that precedes the table itself.
  22446. 5. A label to jump to if the index has a value outside the
  22447. bounds.
  22448. The table is an 'addr_vec' or 'addr_diff_vec' inside of a
  22449. 'jump_table_data'. The number of elements in the table is one plus
  22450. the difference between the upper bound and the lower bound.
  22451. 'tablejump'
  22452. Instruction to jump to a variable address. This is a low-level
  22453. capability which can be used to implement a dispatch table when
  22454. there is no 'casesi' pattern.
  22455. This pattern requires two operands: the address or offset, and a
  22456. label which should immediately precede the jump table. If the
  22457. macro 'CASE_VECTOR_PC_RELATIVE' evaluates to a nonzero value then
  22458. the first operand is an offset which counts from the address of the
  22459. table; otherwise, it is an absolute address to jump to. In either
  22460. case, the first operand has mode 'Pmode'.
  22461. The 'tablejump' insn is always the last insn before the jump table
  22462. it uses. Its assembler code normally has no need to use the second
  22463. operand, but you should incorporate it in the RTL pattern so that
  22464. the jump optimizer will not delete the table as unreachable code.
  22465. 'doloop_end'
  22466. Conditional branch instruction that decrements a register and jumps
  22467. if the register is nonzero. Operand 0 is the register to decrement
  22468. and test; operand 1 is the label to jump to if the register is
  22469. nonzero. *Note Looping Patterns::.
  22470. This optional instruction pattern should be defined for machines
  22471. with low-overhead looping instructions as the loop optimizer will
  22472. try to modify suitable loops to utilize it. The target hook
  22473. 'TARGET_CAN_USE_DOLOOP_P' controls the conditions under which
  22474. low-overhead loops can be used.
  22475. 'doloop_begin'
  22476. Companion instruction to 'doloop_end' required for machines that
  22477. need to perform some initialization, such as loading a special
  22478. counter register. Operand 1 is the associated 'doloop_end' pattern
  22479. and operand 0 is the register that it decrements.
  22480. If initialization insns do not always need to be emitted, use a
  22481. 'define_expand' (*note Expander Definitions::) and make it fail.
  22482. 'canonicalize_funcptr_for_compare'
  22483. Canonicalize the function pointer in operand 1 and store the result
  22484. into operand 0.
  22485. Operand 0 is always a 'reg' and has mode 'Pmode'; operand 1 may be
  22486. a 'reg', 'mem', 'symbol_ref', 'const_int', etc and also has mode
  22487. 'Pmode'.
  22488. Canonicalization of a function pointer usually involves computing
  22489. the address of the function which would be called if the function
  22490. pointer were used in an indirect call.
  22491. Only define this pattern if function pointers on the target machine
  22492. can have different values but still call the same function when
  22493. used in an indirect call.
  22494. 'save_stack_block'
  22495. 'save_stack_function'
  22496. 'save_stack_nonlocal'
  22497. 'restore_stack_block'
  22498. 'restore_stack_function'
  22499. 'restore_stack_nonlocal'
  22500. Most machines save and restore the stack pointer by copying it to
  22501. or from an object of mode 'Pmode'. Do not define these patterns on
  22502. such machines.
  22503. Some machines require special handling for stack pointer saves and
  22504. restores. On those machines, define the patterns corresponding to
  22505. the non-standard cases by using a 'define_expand' (*note Expander
  22506. Definitions::) that produces the required insns. The three types
  22507. of saves and restores are:
  22508. 1. 'save_stack_block' saves the stack pointer at the start of a
  22509. block that allocates a variable-sized object, and
  22510. 'restore_stack_block' restores the stack pointer when the
  22511. block is exited.
  22512. 2. 'save_stack_function' and 'restore_stack_function' do a
  22513. similar job for the outermost block of a function and are used
  22514. when the function allocates variable-sized objects or calls
  22515. 'alloca'. Only the epilogue uses the restored stack pointer,
  22516. allowing a simpler save or restore sequence on some machines.
  22517. 3. 'save_stack_nonlocal' is used in functions that contain labels
  22518. branched to by nested functions. It saves the stack pointer
  22519. in such a way that the inner function can use
  22520. 'restore_stack_nonlocal' to restore the stack pointer. The
  22521. compiler generates code to restore the frame and argument
  22522. pointer registers, but some machines require saving and
  22523. restoring additional data such as register window information
  22524. or stack backchains. Place insns in these patterns to save
  22525. and restore any such required data.
  22526. When saving the stack pointer, operand 0 is the save area and
  22527. operand 1 is the stack pointer. The mode used to allocate the save
  22528. area defaults to 'Pmode' but you can override that choice by
  22529. defining the 'STACK_SAVEAREA_MODE' macro (*note Storage Layout::).
  22530. You must specify an integral mode, or 'VOIDmode' if no save area is
  22531. needed for a particular type of save (either because no save is
  22532. needed or because a machine-specific save area can be used).
  22533. Operand 0 is the stack pointer and operand 1 is the save area for
  22534. restore operations. If 'save_stack_block' is defined, operand 0
  22535. must not be 'VOIDmode' since these saves can be arbitrarily nested.
  22536. A save area is a 'mem' that is at a constant offset from
  22537. 'virtual_stack_vars_rtx' when the stack pointer is saved for use by
  22538. nonlocal gotos and a 'reg' in the other two cases.
  22539. 'allocate_stack'
  22540. Subtract (or add if 'STACK_GROWS_DOWNWARD' is undefined) operand 1
  22541. from the stack pointer to create space for dynamically allocated
  22542. data.
  22543. Store the resultant pointer to this space into operand 0. If you
  22544. are allocating space from the main stack, do this by emitting a
  22545. move insn to copy 'virtual_stack_dynamic_rtx' to operand 0. If you
  22546. are allocating the space elsewhere, generate code to copy the
  22547. location of the space to operand 0. In the latter case, you must
  22548. ensure this space gets freed when the corresponding space on the
  22549. main stack is free.
  22550. Do not define this pattern if all that must be done is the
  22551. subtraction. Some machines require other operations such as stack
  22552. probes or maintaining the back chain. Define this pattern to emit
  22553. those operations in addition to updating the stack pointer.
  22554. 'check_stack'
  22555. If stack checking (*note Stack Checking::) cannot be done on your
  22556. system by probing the stack, define this pattern to perform the
  22557. needed check and signal an error if the stack has overflowed. The
  22558. single operand is the address in the stack farthest from the
  22559. current stack pointer that you need to validate. Normally, on
  22560. platforms where this pattern is needed, you would obtain the stack
  22561. limit from a global or thread-specific variable or register.
  22562. 'probe_stack_address'
  22563. If stack checking (*note Stack Checking::) can be done on your
  22564. system by probing the stack but without the need to actually access
  22565. it, define this pattern and signal an error if the stack has
  22566. overflowed. The single operand is the memory address in the stack
  22567. that needs to be probed.
  22568. 'probe_stack'
  22569. If stack checking (*note Stack Checking::) can be done on your
  22570. system by probing the stack but doing it with a "store zero"
  22571. instruction is not valid or optimal, define this pattern to do the
  22572. probing differently and signal an error if the stack has
  22573. overflowed. The single operand is the memory reference in the
  22574. stack that needs to be probed.
  22575. 'nonlocal_goto'
  22576. Emit code to generate a non-local goto, e.g., a jump from one
  22577. function to a label in an outer function. This pattern has four
  22578. arguments, each representing a value to be used in the jump. The
  22579. first argument is to be loaded into the frame pointer, the second
  22580. is the address to branch to (code to dispatch to the actual label),
  22581. the third is the address of a location where the stack is saved,
  22582. and the last is the address of the label, to be placed in the
  22583. location for the incoming static chain.
  22584. On most machines you need not define this pattern, since GCC will
  22585. already generate the correct code, which is to load the frame
  22586. pointer and static chain, restore the stack (using the
  22587. 'restore_stack_nonlocal' pattern, if defined), and jump indirectly
  22588. to the dispatcher. You need only define this pattern if this code
  22589. will not work on your machine.
  22590. 'nonlocal_goto_receiver'
  22591. This pattern, if defined, contains code needed at the target of a
  22592. nonlocal goto after the code already generated by GCC. You will
  22593. not normally need to define this pattern. A typical reason why you
  22594. might need this pattern is if some value, such as a pointer to a
  22595. global table, must be restored when the frame pointer is restored.
  22596. Note that a nonlocal goto only occurs within a unit-of-translation,
  22597. so a global table pointer that is shared by all functions of a
  22598. given module need not be restored. There are no arguments.
  22599. 'exception_receiver'
  22600. This pattern, if defined, contains code needed at the site of an
  22601. exception handler that isn't needed at the site of a nonlocal goto.
  22602. You will not normally need to define this pattern. A typical
  22603. reason why you might need this pattern is if some value, such as a
  22604. pointer to a global table, must be restored after control flow is
  22605. branched to the handler of an exception. There are no arguments.
  22606. 'builtin_setjmp_setup'
  22607. This pattern, if defined, contains additional code needed to
  22608. initialize the 'jmp_buf'. You will not normally need to define
  22609. this pattern. A typical reason why you might need this pattern is
  22610. if some value, such as a pointer to a global table, must be
  22611. restored. Though it is preferred that the pointer value be
  22612. recalculated if possible (given the address of a label for
  22613. instance). The single argument is a pointer to the 'jmp_buf'.
  22614. Note that the buffer is five words long and that the first three
  22615. are normally used by the generic mechanism.
  22616. 'builtin_setjmp_receiver'
  22617. This pattern, if defined, contains code needed at the site of a
  22618. built-in setjmp that isn't needed at the site of a nonlocal goto.
  22619. You will not normally need to define this pattern. A typical
  22620. reason why you might need this pattern is if some value, such as a
  22621. pointer to a global table, must be restored. It takes one
  22622. argument, which is the label to which builtin_longjmp transferred
  22623. control; this pattern may be emitted at a small offset from that
  22624. label.
  22625. 'builtin_longjmp'
  22626. This pattern, if defined, performs the entire action of the
  22627. longjmp. You will not normally need to define this pattern unless
  22628. you also define 'builtin_setjmp_setup'. The single argument is a
  22629. pointer to the 'jmp_buf'.
  22630. 'eh_return'
  22631. This pattern, if defined, affects the way '__builtin_eh_return',
  22632. and thence the call frame exception handling library routines, are
  22633. built. It is intended to handle non-trivial actions needed along
  22634. the abnormal return path.
  22635. The address of the exception handler to which the function should
  22636. return is passed as operand to this pattern. It will normally need
  22637. to copied by the pattern to some special register or memory
  22638. location. If the pattern needs to determine the location of the
  22639. target call frame in order to do so, it may use
  22640. 'EH_RETURN_STACKADJ_RTX', if defined; it will have already been
  22641. assigned.
  22642. If this pattern is not defined, the default action will be to
  22643. simply copy the return address to 'EH_RETURN_HANDLER_RTX'. Either
  22644. that macro or this pattern needs to be defined if call frame
  22645. exception handling is to be used.
  22646. 'prologue'
  22647. This pattern, if defined, emits RTL for entry to a function. The
  22648. function entry is responsible for setting up the stack frame,
  22649. initializing the frame pointer register, saving callee saved
  22650. registers, etc.
  22651. Using a prologue pattern is generally preferred over defining
  22652. 'TARGET_ASM_FUNCTION_PROLOGUE' to emit assembly code for the
  22653. prologue.
  22654. The 'prologue' pattern is particularly useful for targets which
  22655. perform instruction scheduling.
  22656. 'window_save'
  22657. This pattern, if defined, emits RTL for a register window save. It
  22658. should be defined if the target machine has register windows but
  22659. the window events are decoupled from calls to subroutines. The
  22660. canonical example is the SPARC architecture.
  22661. 'epilogue'
  22662. This pattern emits RTL for exit from a function. The function exit
  22663. is responsible for deallocating the stack frame, restoring callee
  22664. saved registers and emitting the return instruction.
  22665. Using an epilogue pattern is generally preferred over defining
  22666. 'TARGET_ASM_FUNCTION_EPILOGUE' to emit assembly code for the
  22667. epilogue.
  22668. The 'epilogue' pattern is particularly useful for targets which
  22669. perform instruction scheduling or which have delay slots for their
  22670. return instruction.
  22671. 'sibcall_epilogue'
  22672. This pattern, if defined, emits RTL for exit from a function
  22673. without the final branch back to the calling function. This
  22674. pattern will be emitted before any sibling call (aka tail call)
  22675. sites.
  22676. The 'sibcall_epilogue' pattern must not clobber any arguments used
  22677. for parameter passing or any stack slots for arguments passed to
  22678. the current function.
  22679. 'trap'
  22680. This pattern, if defined, signals an error, typically by causing
  22681. some kind of signal to be raised.
  22682. 'ctrapMM4'
  22683. Conditional trap instruction. Operand 0 is a piece of RTL which
  22684. performs a comparison, and operands 1 and 2 are the arms of the
  22685. comparison. Operand 3 is the trap code, an integer.
  22686. A typical 'ctrap' pattern looks like
  22687. (define_insn "ctrapsi4"
  22688. [(trap_if (match_operator 0 "trap_operator"
  22689. [(match_operand 1 "register_operand")
  22690. (match_operand 2 "immediate_operand")])
  22691. (match_operand 3 "const_int_operand" "i"))]
  22692. ""
  22693. "...")
  22694. 'prefetch'
  22695. This pattern, if defined, emits code for a non-faulting data
  22696. prefetch instruction. Operand 0 is the address of the memory to
  22697. prefetch. Operand 1 is a constant 1 if the prefetch is preparing
  22698. for a write to the memory address, or a constant 0 otherwise.
  22699. Operand 2 is the expected degree of temporal locality of the data
  22700. and is a value between 0 and 3, inclusive; 0 means that the data
  22701. has no temporal locality, so it need not be left in the cache after
  22702. the access; 3 means that the data has a high degree of temporal
  22703. locality and should be left in all levels of cache possible; 1 and
  22704. 2 mean, respectively, a low or moderate degree of temporal
  22705. locality.
  22706. Targets that do not support write prefetches or locality hints can
  22707. ignore the values of operands 1 and 2.
  22708. 'blockage'
  22709. This pattern defines a pseudo insn that prevents the instruction
  22710. scheduler and other passes from moving instructions and using
  22711. register equivalences across the boundary defined by the blockage
  22712. insn. This needs to be an UNSPEC_VOLATILE pattern or a volatile
  22713. ASM.
  22714. 'memory_blockage'
  22715. This pattern, if defined, represents a compiler memory barrier, and
  22716. will be placed at points across which RTL passes may not propagate
  22717. memory accesses. This instruction needs to read and write volatile
  22718. BLKmode memory. It does not need to generate any machine
  22719. instruction. If this pattern is not defined, the compiler falls
  22720. back to emitting an instruction corresponding to 'asm volatile (""
  22721. ::: "memory")'.
  22722. 'memory_barrier'
  22723. If the target memory model is not fully synchronous, then this
  22724. pattern should be defined to an instruction that orders both loads
  22725. and stores before the instruction with respect to loads and stores
  22726. after the instruction. This pattern has no operands.
  22727. 'speculation_barrier'
  22728. If the target can support speculative execution, then this pattern
  22729. should be defined to an instruction that will block subsequent
  22730. execution until any prior speculation conditions has been resolved.
  22731. The pattern must also ensure that the compiler cannot move memory
  22732. operations past the barrier, so it needs to be an UNSPEC_VOLATILE
  22733. pattern. The pattern has no operands.
  22734. If this pattern is not defined then the default expansion of
  22735. '__builtin_speculation_safe_value' will emit a warning. You can
  22736. suppress this warning by defining this pattern with a final
  22737. condition of '0' (zero), which tells the compiler that a
  22738. speculation barrier is not needed for this target.
  22739. 'sync_compare_and_swapMODE'
  22740. This pattern, if defined, emits code for an atomic compare-and-swap
  22741. operation. Operand 1 is the memory on which the atomic operation
  22742. is performed. Operand 2 is the "old" value to be compared against
  22743. the current contents of the memory location. Operand 3 is the
  22744. "new" value to store in the memory if the compare succeeds.
  22745. Operand 0 is the result of the operation; it should contain the
  22746. contents of the memory before the operation. If the compare
  22747. succeeds, this should obviously be a copy of operand 2.
  22748. This pattern must show that both operand 0 and operand 1 are
  22749. modified.
  22750. This pattern must issue any memory barrier instructions such that
  22751. all memory operations before the atomic operation occur before the
  22752. atomic operation and all memory operations after the atomic
  22753. operation occur after the atomic operation.
  22754. For targets where the success or failure of the compare-and-swap
  22755. operation is available via the status flags, it is possible to
  22756. avoid a separate compare operation and issue the subsequent branch
  22757. or store-flag operation immediately after the compare-and-swap. To
  22758. this end, GCC will look for a 'MODE_CC' set in the output of
  22759. 'sync_compare_and_swapMODE'; if the machine description includes
  22760. such a set, the target should also define special 'cbranchcc4'
  22761. and/or 'cstorecc4' instructions. GCC will then be able to take the
  22762. destination of the 'MODE_CC' set and pass it to the 'cbranchcc4' or
  22763. 'cstorecc4' pattern as the first operand of the comparison (the
  22764. second will be '(const_int 0)').
  22765. For targets where the operating system may provide support for this
  22766. operation via library calls, the 'sync_compare_and_swap_optab' may
  22767. be initialized to a function with the same interface as the
  22768. '__sync_val_compare_and_swap_N' built-in. If the entire set of
  22769. __SYNC builtins are supported via library calls, the target can
  22770. initialize all of the optabs at once with 'init_sync_libfuncs'.
  22771. For the purposes of C++11 'std::atomic::is_lock_free', it is
  22772. assumed that these library calls do _not_ use any kind of
  22773. interruptable locking.
  22774. 'sync_addMODE', 'sync_subMODE'
  22775. 'sync_iorMODE', 'sync_andMODE'
  22776. 'sync_xorMODE', 'sync_nandMODE'
  22777. These patterns emit code for an atomic operation on memory.
  22778. Operand 0 is the memory on which the atomic operation is performed.
  22779. Operand 1 is the second operand to the binary operator.
  22780. This pattern must issue any memory barrier instructions such that
  22781. all memory operations before the atomic operation occur before the
  22782. atomic operation and all memory operations after the atomic
  22783. operation occur after the atomic operation.
  22784. If these patterns are not defined, the operation will be
  22785. constructed from a compare-and-swap operation, if defined.
  22786. 'sync_old_addMODE', 'sync_old_subMODE'
  22787. 'sync_old_iorMODE', 'sync_old_andMODE'
  22788. 'sync_old_xorMODE', 'sync_old_nandMODE'
  22789. These patterns emit code for an atomic operation on memory, and
  22790. return the value that the memory contained before the operation.
  22791. Operand 0 is the result value, operand 1 is the memory on which the
  22792. atomic operation is performed, and operand 2 is the second operand
  22793. to the binary operator.
  22794. This pattern must issue any memory barrier instructions such that
  22795. all memory operations before the atomic operation occur before the
  22796. atomic operation and all memory operations after the atomic
  22797. operation occur after the atomic operation.
  22798. If these patterns are not defined, the operation will be
  22799. constructed from a compare-and-swap operation, if defined.
  22800. 'sync_new_addMODE', 'sync_new_subMODE'
  22801. 'sync_new_iorMODE', 'sync_new_andMODE'
  22802. 'sync_new_xorMODE', 'sync_new_nandMODE'
  22803. These patterns are like their 'sync_old_OP' counterparts, except
  22804. that they return the value that exists in the memory location after
  22805. the operation, rather than before the operation.
  22806. 'sync_lock_test_and_setMODE'
  22807. This pattern takes two forms, based on the capabilities of the
  22808. target. In either case, operand 0 is the result of the operand,
  22809. operand 1 is the memory on which the atomic operation is performed,
  22810. and operand 2 is the value to set in the lock.
  22811. In the ideal case, this operation is an atomic exchange operation,
  22812. in which the previous value in memory operand is copied into the
  22813. result operand, and the value operand is stored in the memory
  22814. operand.
  22815. For less capable targets, any value operand that is not the
  22816. constant 1 should be rejected with 'FAIL'. In this case the target
  22817. may use an atomic test-and-set bit operation. The result operand
  22818. should contain 1 if the bit was previously set and 0 if the bit was
  22819. previously clear. The true contents of the memory operand are
  22820. implementation defined.
  22821. This pattern must issue any memory barrier instructions such that
  22822. the pattern as a whole acts as an acquire barrier, that is all
  22823. memory operations after the pattern do not occur until the lock is
  22824. acquired.
  22825. If this pattern is not defined, the operation will be constructed
  22826. from a compare-and-swap operation, if defined.
  22827. 'sync_lock_releaseMODE'
  22828. This pattern, if defined, releases a lock set by
  22829. 'sync_lock_test_and_setMODE'. Operand 0 is the memory that
  22830. contains the lock; operand 1 is the value to store in the lock.
  22831. If the target doesn't implement full semantics for
  22832. 'sync_lock_test_and_setMODE', any value operand which is not the
  22833. constant 0 should be rejected with 'FAIL', and the true contents of
  22834. the memory operand are implementation defined.
  22835. This pattern must issue any memory barrier instructions such that
  22836. the pattern as a whole acts as a release barrier, that is the lock
  22837. is released only after all previous memory operations have
  22838. completed.
  22839. If this pattern is not defined, then a 'memory_barrier' pattern
  22840. will be emitted, followed by a store of the value to the memory
  22841. operand.
  22842. 'atomic_compare_and_swapMODE'
  22843. This pattern, if defined, emits code for an atomic compare-and-swap
  22844. operation with memory model semantics. Operand 2 is the memory on
  22845. which the atomic operation is performed. Operand 0 is an output
  22846. operand which is set to true or false based on whether the
  22847. operation succeeded. Operand 1 is an output operand which is set
  22848. to the contents of the memory before the operation was attempted.
  22849. Operand 3 is the value that is expected to be in memory. Operand 4
  22850. is the value to put in memory if the expected value is found there.
  22851. Operand 5 is set to 1 if this compare and swap is to be treated as
  22852. a weak operation. Operand 6 is the memory model to be used if the
  22853. operation is a success. Operand 7 is the memory model to be used
  22854. if the operation fails.
  22855. If memory referred to in operand 2 contains the value in operand 3,
  22856. then operand 4 is stored in memory pointed to by operand 2 and
  22857. fencing based on the memory model in operand 6 is issued.
  22858. If memory referred to in operand 2 does not contain the value in
  22859. operand 3, then fencing based on the memory model in operand 7 is
  22860. issued.
  22861. If a target does not support weak compare-and-swap operations, or
  22862. the port elects not to implement weak operations, the argument in
  22863. operand 5 can be ignored. Note a strong implementation must be
  22864. provided.
  22865. If this pattern is not provided, the '__atomic_compare_exchange'
  22866. built-in functions will utilize the legacy 'sync_compare_and_swap'
  22867. pattern with an '__ATOMIC_SEQ_CST' memory model.
  22868. 'atomic_loadMODE'
  22869. This pattern implements an atomic load operation with memory model
  22870. semantics. Operand 1 is the memory address being loaded from.
  22871. Operand 0 is the result of the load. Operand 2 is the memory model
  22872. to be used for the load operation.
  22873. If not present, the '__atomic_load' built-in function will either
  22874. resort to a normal load with memory barriers, or a compare-and-swap
  22875. operation if a normal load would not be atomic.
  22876. 'atomic_storeMODE'
  22877. This pattern implements an atomic store operation with memory model
  22878. semantics. Operand 0 is the memory address being stored to.
  22879. Operand 1 is the value to be written. Operand 2 is the memory
  22880. model to be used for the operation.
  22881. If not present, the '__atomic_store' built-in function will attempt
  22882. to perform a normal store and surround it with any required memory
  22883. fences. If the store would not be atomic, then an
  22884. '__atomic_exchange' is attempted with the result being ignored.
  22885. 'atomic_exchangeMODE'
  22886. This pattern implements an atomic exchange operation with memory
  22887. model semantics. Operand 1 is the memory location the operation is
  22888. performed on. Operand 0 is an output operand which is set to the
  22889. original value contained in the memory pointed to by operand 1.
  22890. Operand 2 is the value to be stored. Operand 3 is the memory model
  22891. to be used.
  22892. If this pattern is not present, the built-in function
  22893. '__atomic_exchange' will attempt to preform the operation with a
  22894. compare and swap loop.
  22895. 'atomic_addMODE', 'atomic_subMODE'
  22896. 'atomic_orMODE', 'atomic_andMODE'
  22897. 'atomic_xorMODE', 'atomic_nandMODE'
  22898. These patterns emit code for an atomic operation on memory with
  22899. memory model semantics. Operand 0 is the memory on which the
  22900. atomic operation is performed. Operand 1 is the second operand to
  22901. the binary operator. Operand 2 is the memory model to be used by
  22902. the operation.
  22903. If these patterns are not defined, attempts will be made to use
  22904. legacy 'sync' patterns, or equivalent patterns which return a
  22905. result. If none of these are available a compare-and-swap loop
  22906. will be used.
  22907. 'atomic_fetch_addMODE', 'atomic_fetch_subMODE'
  22908. 'atomic_fetch_orMODE', 'atomic_fetch_andMODE'
  22909. 'atomic_fetch_xorMODE', 'atomic_fetch_nandMODE'
  22910. These patterns emit code for an atomic operation on memory with
  22911. memory model semantics, and return the original value. Operand 0
  22912. is an output operand which contains the value of the memory
  22913. location before the operation was performed. Operand 1 is the
  22914. memory on which the atomic operation is performed. Operand 2 is
  22915. the second operand to the binary operator. Operand 3 is the memory
  22916. model to be used by the operation.
  22917. If these patterns are not defined, attempts will be made to use
  22918. legacy 'sync' patterns. If none of these are available a
  22919. compare-and-swap loop will be used.
  22920. 'atomic_add_fetchMODE', 'atomic_sub_fetchMODE'
  22921. 'atomic_or_fetchMODE', 'atomic_and_fetchMODE'
  22922. 'atomic_xor_fetchMODE', 'atomic_nand_fetchMODE'
  22923. These patterns emit code for an atomic operation on memory with
  22924. memory model semantics and return the result after the operation is
  22925. performed. Operand 0 is an output operand which contains the value
  22926. after the operation. Operand 1 is the memory on which the atomic
  22927. operation is performed. Operand 2 is the second operand to the
  22928. binary operator. Operand 3 is the memory model to be used by the
  22929. operation.
  22930. If these patterns are not defined, attempts will be made to use
  22931. legacy 'sync' patterns, or equivalent patterns which return the
  22932. result before the operation followed by the arithmetic operation
  22933. required to produce the result. If none of these are available a
  22934. compare-and-swap loop will be used.
  22935. 'atomic_test_and_set'
  22936. This pattern emits code for '__builtin_atomic_test_and_set'.
  22937. Operand 0 is an output operand which is set to true if the previous
  22938. previous contents of the byte was "set", and false otherwise.
  22939. Operand 1 is the 'QImode' memory to be modified. Operand 2 is the
  22940. memory model to be used.
  22941. The specific value that defines "set" is implementation defined,
  22942. and is normally based on what is performed by the native atomic
  22943. test and set instruction.
  22944. 'atomic_bit_test_and_setMODE'
  22945. 'atomic_bit_test_and_complementMODE'
  22946. 'atomic_bit_test_and_resetMODE'
  22947. These patterns emit code for an atomic bitwise operation on memory
  22948. with memory model semantics, and return the original value of the
  22949. specified bit. Operand 0 is an output operand which contains the
  22950. value of the specified bit from the memory location before the
  22951. operation was performed. Operand 1 is the memory on which the
  22952. atomic operation is performed. Operand 2 is the bit within the
  22953. operand, starting with least significant bit. Operand 3 is the
  22954. memory model to be used by the operation. Operand 4 is a flag - it
  22955. is 'const1_rtx' if operand 0 should contain the original value of
  22956. the specified bit in the least significant bit of the operand, and
  22957. 'const0_rtx' if the bit should be in its original position in the
  22958. operand. 'atomic_bit_test_and_setMODE' atomically sets the
  22959. specified bit after remembering its original value,
  22960. 'atomic_bit_test_and_complementMODE' inverts the specified bit and
  22961. 'atomic_bit_test_and_resetMODE' clears the specified bit.
  22962. If these patterns are not defined, attempts will be made to use
  22963. 'atomic_fetch_orMODE', 'atomic_fetch_xorMODE' or
  22964. 'atomic_fetch_andMODE' instruction patterns, or their 'sync'
  22965. counterparts. If none of these are available a compare-and-swap
  22966. loop will be used.
  22967. 'mem_thread_fence'
  22968. This pattern emits code required to implement a thread fence with
  22969. memory model semantics. Operand 0 is the memory model to be used.
  22970. For the '__ATOMIC_RELAXED' model no instructions need to be issued
  22971. and this expansion is not invoked.
  22972. The compiler always emits a compiler memory barrier regardless of
  22973. what expanding this pattern produced.
  22974. If this pattern is not defined, the compiler falls back to
  22975. expanding the 'memory_barrier' pattern, then to emitting
  22976. '__sync_synchronize' library call, and finally to just placing a
  22977. compiler memory barrier.
  22978. 'get_thread_pointerMODE'
  22979. 'set_thread_pointerMODE'
  22980. These patterns emit code that reads/sets the TLS thread pointer.
  22981. Currently, these are only needed if the target needs to support the
  22982. '__builtin_thread_pointer' and '__builtin_set_thread_pointer'
  22983. builtins.
  22984. The get/set patterns have a single output/input operand
  22985. respectively, with MODE intended to be 'Pmode'.
  22986. 'stack_protect_combined_set'
  22987. This pattern, if defined, moves a 'ptr_mode' value from an address
  22988. whose declaration RTX is given in operand 1 to the memory in
  22989. operand 0 without leaving the value in a register afterward. If
  22990. several instructions are needed by the target to perform the
  22991. operation (eg. to load the address from a GOT entry then load the
  22992. 'ptr_mode' value and finally store it), it is the backend's
  22993. responsibility to ensure no intermediate result gets spilled. This
  22994. is to avoid leaking the value some place that an attacker might use
  22995. to rewrite the stack guard slot after having clobbered it.
  22996. If this pattern is not defined, then the address declaration is
  22997. expanded first in the standard way and a 'stack_protect_set'
  22998. pattern is then generated to move the value from that address to
  22999. the address in operand 0.
  23000. 'stack_protect_set'
  23001. This pattern, if defined, moves a 'ptr_mode' value from the valid
  23002. memory location in operand 1 to the memory in operand 0 without
  23003. leaving the value in a register afterward. This is to avoid
  23004. leaking the value some place that an attacker might use to rewrite
  23005. the stack guard slot after having clobbered it.
  23006. Note: on targets where the addressing modes do not allow to load
  23007. directly from stack guard address, the address is expanded in a
  23008. standard way first which could cause some spills.
  23009. If this pattern is not defined, then a plain move pattern is
  23010. generated.
  23011. 'stack_protect_combined_test'
  23012. This pattern, if defined, compares a 'ptr_mode' value from an
  23013. address whose declaration RTX is given in operand 1 with the memory
  23014. in operand 0 without leaving the value in a register afterward and
  23015. branches to operand 2 if the values were equal. If several
  23016. instructions are needed by the target to perform the operation (eg.
  23017. to load the address from a GOT entry then load the 'ptr_mode' value
  23018. and finally store it), it is the backend's responsibility to ensure
  23019. no intermediate result gets spilled. This is to avoid leaking the
  23020. value some place that an attacker might use to rewrite the stack
  23021. guard slot after having clobbered it.
  23022. If this pattern is not defined, then the address declaration is
  23023. expanded first in the standard way and a 'stack_protect_test'
  23024. pattern is then generated to compare the value from that address to
  23025. the value at the memory in operand 0.
  23026. 'stack_protect_test'
  23027. This pattern, if defined, compares a 'ptr_mode' value from the
  23028. valid memory location in operand 1 with the memory in operand 0
  23029. without leaving the value in a register afterward and branches to
  23030. operand 2 if the values were equal.
  23031. If this pattern is not defined, then a plain compare pattern and
  23032. conditional branch pattern is used.
  23033. 'clear_cache'
  23034. This pattern, if defined, flushes the instruction cache for a
  23035. region of memory. The region is bounded to by the Pmode pointers
  23036. in operand 0 inclusive and operand 1 exclusive.
  23037. If this pattern is not defined, a call to the library function
  23038. '__clear_cache' is used.
  23039. 
  23040. File: gccint.info, Node: Pattern Ordering, Next: Dependent Patterns, Prev: Standard Names, Up: Machine Desc
  23041. 17.10 When the Order of Patterns Matters
  23042. ========================================
  23043. Sometimes an insn can match more than one instruction pattern. Then the
  23044. pattern that appears first in the machine description is the one used.
  23045. Therefore, more specific patterns (patterns that will match fewer
  23046. things) and faster instructions (those that will produce better code
  23047. when they do match) should usually go first in the description.
  23048. In some cases the effect of ordering the patterns can be used to hide a
  23049. pattern when it is not valid. For example, the 68000 has an instruction
  23050. for converting a fullword to floating point and another for converting a
  23051. byte to floating point. An instruction converting an integer to
  23052. floating point could match either one. We put the pattern to convert
  23053. the fullword first to make sure that one will be used rather than the
  23054. other. (Otherwise a large integer might be generated as a single-byte
  23055. immediate quantity, which would not work.) Instead of using this
  23056. pattern ordering it would be possible to make the pattern for
  23057. convert-a-byte smart enough to deal properly with any constant value.
  23058. 
  23059. File: gccint.info, Node: Dependent Patterns, Next: Jump Patterns, Prev: Pattern Ordering, Up: Machine Desc
  23060. 17.11 Interdependence of Patterns
  23061. =================================
  23062. In some cases machines support instructions identical except for the
  23063. machine mode of one or more operands. For example, there may be
  23064. "sign-extend halfword" and "sign-extend byte" instructions whose
  23065. patterns are
  23066. (set (match_operand:SI 0 ...)
  23067. (extend:SI (match_operand:HI 1 ...)))
  23068. (set (match_operand:SI 0 ...)
  23069. (extend:SI (match_operand:QI 1 ...)))
  23070. Constant integers do not specify a machine mode, so an instruction to
  23071. extend a constant value could match either pattern. The pattern it
  23072. actually will match is the one that appears first in the file. For
  23073. correct results, this must be the one for the widest possible mode
  23074. ('HImode', here). If the pattern matches the 'QImode' instruction, the
  23075. results will be incorrect if the constant value does not actually fit
  23076. that mode.
  23077. Such instructions to extend constants are rarely generated because they
  23078. are optimized away, but they do occasionally happen in nonoptimized
  23079. compilations.
  23080. If a constraint in a pattern allows a constant, the reload pass may
  23081. replace a register with a constant permitted by the constraint in some
  23082. cases. Similarly for memory references. Because of this substitution,
  23083. you should not provide separate patterns for increment and decrement
  23084. instructions. Instead, they should be generated from the same pattern
  23085. that supports register-register add insns by examining the operands and
  23086. generating the appropriate machine instruction.
  23087. 
  23088. File: gccint.info, Node: Jump Patterns, Next: Looping Patterns, Prev: Dependent Patterns, Up: Machine Desc
  23089. 17.12 Defining Jump Instruction Patterns
  23090. ========================================
  23091. GCC does not assume anything about how the machine realizes jumps. The
  23092. machine description should define a single pattern, usually a
  23093. 'define_expand', which expands to all the required insns.
  23094. Usually, this would be a comparison insn to set the condition code and
  23095. a separate branch insn testing the condition code and branching or not
  23096. according to its value. For many machines, however, separating compares
  23097. and branches is limiting, which is why the more flexible approach with
  23098. one 'define_expand' is used in GCC. The machine description becomes
  23099. clearer for architectures that have compare-and-branch instructions but
  23100. no condition code. It also works better when different sets of
  23101. comparison operators are supported by different kinds of conditional
  23102. branches (e.g. integer vs. floating-point), or by conditional branches
  23103. with respect to conditional stores.
  23104. Two separate insns are always used if the machine description
  23105. represents a condition code register using the legacy RTL expression
  23106. '(cc0)', and on most machines that use a separate condition code
  23107. register (*note Condition Code::). For machines that use '(cc0)', in
  23108. fact, the set and use of the condition code must be separate and
  23109. adjacent(1), thus allowing flags in 'cc_status' to be used (*note
  23110. Condition Code::) and so that the comparison and branch insns could be
  23111. located from each other by using the functions 'prev_cc0_setter' and
  23112. 'next_cc0_user'.
  23113. Even in this case having a single entry point for conditional branches
  23114. is advantageous, because it handles equally well the case where a single
  23115. comparison instruction records the results of both signed and unsigned
  23116. comparison of the given operands (with the branch insns coming in
  23117. distinct signed and unsigned flavors) as in the x86 or SPARC, and the
  23118. case where there are distinct signed and unsigned compare instructions
  23119. and only one set of conditional branch instructions as in the PowerPC.
  23120. ---------- Footnotes ----------
  23121. (1) 'note' insns can separate them, though.
  23122. 
  23123. File: gccint.info, Node: Looping Patterns, Next: Insn Canonicalizations, Prev: Jump Patterns, Up: Machine Desc
  23124. 17.13 Defining Looping Instruction Patterns
  23125. ===========================================
  23126. Some machines have special jump instructions that can be utilized to
  23127. make loops more efficient. A common example is the 68000 'dbra'
  23128. instruction which performs a decrement of a register and a branch if the
  23129. result was greater than zero. Other machines, in particular digital
  23130. signal processors (DSPs), have special block repeat instructions to
  23131. provide low-overhead loop support. For example, the TI TMS320C3x/C4x
  23132. DSPs have a block repeat instruction that loads special registers to
  23133. mark the top and end of a loop and to count the number of loop
  23134. iterations. This avoids the need for fetching and executing a
  23135. 'dbra'-like instruction and avoids pipeline stalls associated with the
  23136. jump.
  23137. GCC has two special named patterns to support low overhead looping.
  23138. They are 'doloop_begin' and 'doloop_end'. These are emitted by the loop
  23139. optimizer for certain well-behaved loops with a finite number of loop
  23140. iterations using information collected during strength reduction.
  23141. The 'doloop_end' pattern describes the actual looping instruction (or
  23142. the implicit looping operation) and the 'doloop_begin' pattern is an
  23143. optional companion pattern that can be used for initialization needed
  23144. for some low-overhead looping instructions.
  23145. Note that some machines require the actual looping instruction to be
  23146. emitted at the top of the loop (e.g., the TMS320C3x/C4x DSPs). Emitting
  23147. the true RTL for a looping instruction at the top of the loop can cause
  23148. problems with flow analysis. So instead, a dummy 'doloop' insn is
  23149. emitted at the end of the loop. The machine dependent reorg pass checks
  23150. for the presence of this 'doloop' insn and then searches back to the top
  23151. of the loop, where it inserts the true looping insn (provided there are
  23152. no instructions in the loop which would cause problems). Any additional
  23153. labels can be emitted at this point. In addition, if the desired
  23154. special iteration counter register was not allocated, this machine
  23155. dependent reorg pass could emit a traditional compare and jump
  23156. instruction pair.
  23157. For the 'doloop_end' pattern, the loop optimizer allocates an
  23158. additional pseudo register as an iteration counter. This pseudo
  23159. register cannot be used within the loop (i.e., general induction
  23160. variables cannot be derived from it), however, in many cases the loop
  23161. induction variable may become redundant and removed by the flow pass.
  23162. The 'doloop_end' pattern must have a specific structure to be handled
  23163. correctly by GCC. The example below is taken (slightly simplified) from
  23164. the PDP-11 target:
  23165. (define_expand "doloop_end"
  23166. [(parallel [(set (pc)
  23167. (if_then_else
  23168. (ne (match_operand:HI 0 "nonimmediate_operand" "+r,!m")
  23169. (const_int 1))
  23170. (label_ref (match_operand 1 "" ""))
  23171. (pc)))
  23172. (set (match_dup 0)
  23173. (plus:HI (match_dup 0)
  23174. (const_int -1)))])]
  23175. ""
  23176. "{
  23177. if (GET_MODE (operands[0]) != HImode)
  23178. FAIL;
  23179. }")
  23180. (define_insn "doloop_end_insn"
  23181. [(set (pc)
  23182. (if_then_else
  23183. (ne (match_operand:HI 0 "nonimmediate_operand" "+r,!m")
  23184. (const_int 1))
  23185. (label_ref (match_operand 1 "" ""))
  23186. (pc)))
  23187. (set (match_dup 0)
  23188. (plus:HI (match_dup 0)
  23189. (const_int -1)))]
  23190. ""
  23191. {
  23192. if (which_alternative == 0)
  23193. return "sob %0,%l1";
  23194. /* emulate sob */
  23195. output_asm_insn ("dec %0", operands);
  23196. return "bne %l1";
  23197. })
  23198. The first part of the pattern describes the branch condition. GCC
  23199. supports three cases for the way the target machine handles the loop
  23200. counter:
  23201. * Loop terminates when the loop register decrements to zero. This is
  23202. represented by a 'ne' comparison of the register (its old value)
  23203. with constant 1 (as in the example above).
  23204. * Loop terminates when the loop register decrements to -1. This is
  23205. represented by a 'ne' comparison of the register with constant
  23206. zero.
  23207. * Loop terminates when the loop register decrements to a negative
  23208. value. This is represented by a 'ge' comparison of the register
  23209. with constant zero. For this case, GCC will attach a 'REG_NONNEG'
  23210. note to the 'doloop_end' insn if it can determine that the register
  23211. will be non-negative.
  23212. Since the 'doloop_end' insn is a jump insn that also has an output, the
  23213. reload pass does not handle the output operand. Therefore, the
  23214. constraint must allow for that operand to be in memory rather than a
  23215. register. In the example shown above, that is handled (in the
  23216. 'doloop_end_insn' pattern) by using a loop instruction sequence that can
  23217. handle memory operands when the memory alternative appears.
  23218. GCC does not check the mode of the loop register operand when
  23219. generating the 'doloop_end' pattern. If the pattern is only valid for
  23220. some modes but not others, the pattern should be a 'define_expand'
  23221. pattern that checks the operand mode in the preparation code, and issues
  23222. 'FAIL' if an unsupported mode is found. The example above does this,
  23223. since the machine instruction to be used only exists for 'HImode'.
  23224. If the 'doloop_end' pattern is a 'define_expand', there must also be a
  23225. 'define_insn' or 'define_insn_and_split' matching the generated pattern.
  23226. Otherwise, the compiler will fail during loop optimization.
  23227. 
  23228. File: gccint.info, Node: Insn Canonicalizations, Next: Expander Definitions, Prev: Looping Patterns, Up: Machine Desc
  23229. 17.14 Canonicalization of Instructions
  23230. ======================================
  23231. There are often cases where multiple RTL expressions could represent an
  23232. operation performed by a single machine instruction. This situation is
  23233. most commonly encountered with logical, branch, and multiply-accumulate
  23234. instructions. In such cases, the compiler attempts to convert these
  23235. multiple RTL expressions into a single canonical form to reduce the
  23236. number of insn patterns required.
  23237. In addition to algebraic simplifications, following canonicalizations
  23238. are performed:
  23239. * For commutative and comparison operators, a constant is always made
  23240. the second operand. If a machine only supports a constant as the
  23241. second operand, only patterns that match a constant in the second
  23242. operand need be supplied.
  23243. * For associative operators, a sequence of operators will always
  23244. chain to the left; for instance, only the left operand of an
  23245. integer 'plus' can itself be a 'plus'. 'and', 'ior', 'xor',
  23246. 'plus', 'mult', 'smin', 'smax', 'umin', and 'umax' are associative
  23247. when applied to integers, and sometimes to floating-point.
  23248. * For these operators, if only one operand is a 'neg', 'not', 'mult',
  23249. 'plus', or 'minus' expression, it will be the first operand.
  23250. * In combinations of 'neg', 'mult', 'plus', and 'minus', the 'neg'
  23251. operations (if any) will be moved inside the operations as far as
  23252. possible. For instance, '(neg (mult A B))' is canonicalized as
  23253. '(mult (neg A) B)', but '(plus (mult (neg B) C) A)' is
  23254. canonicalized as '(minus A (mult B C))'.
  23255. * For the 'compare' operator, a constant is always the second operand
  23256. if the first argument is a condition code register or '(cc0)'.
  23257. * For instructions that inherently set a condition code register, the
  23258. 'compare' operator is always written as the first RTL expression of
  23259. the 'parallel' instruction pattern. For example,
  23260. (define_insn ""
  23261. [(set (reg:CCZ FLAGS_REG)
  23262. (compare:CCZ
  23263. (plus:SI
  23264. (match_operand:SI 1 "register_operand" "%r")
  23265. (match_operand:SI 2 "register_operand" "r"))
  23266. (const_int 0)))
  23267. (set (match_operand:SI 0 "register_operand" "=r")
  23268. (plus:SI (match_dup 1) (match_dup 2)))]
  23269. ""
  23270. "addl %0, %1, %2")
  23271. * An operand of 'neg', 'not', 'mult', 'plus', or 'minus' is made the
  23272. first operand under the same conditions as above.
  23273. * '(ltu (plus A B) B)' is converted to '(ltu (plus A B) A)'.
  23274. Likewise with 'geu' instead of 'ltu'.
  23275. * '(minus X (const_int N))' is converted to '(plus X (const_int
  23276. -N))'.
  23277. * Within address computations (i.e., inside 'mem'), a left shift is
  23278. converted into the appropriate multiplication by a power of two.
  23279. * De Morgan's Law is used to move bitwise negation inside a bitwise
  23280. logical-and or logical-or operation. If this results in only one
  23281. operand being a 'not' expression, it will be the first one.
  23282. A machine that has an instruction that performs a bitwise
  23283. logical-and of one operand with the bitwise negation of the other
  23284. should specify the pattern for that instruction as
  23285. (define_insn ""
  23286. [(set (match_operand:M 0 ...)
  23287. (and:M (not:M (match_operand:M 1 ...))
  23288. (match_operand:M 2 ...)))]
  23289. "..."
  23290. "...")
  23291. Similarly, a pattern for a "NAND" instruction should be written
  23292. (define_insn ""
  23293. [(set (match_operand:M 0 ...)
  23294. (ior:M (not:M (match_operand:M 1 ...))
  23295. (not:M (match_operand:M 2 ...))))]
  23296. "..."
  23297. "...")
  23298. In both cases, it is not necessary to include patterns for the many
  23299. logically equivalent RTL expressions.
  23300. * The only possible RTL expressions involving both bitwise
  23301. exclusive-or and bitwise negation are '(xor:M X Y)' and '(not:M
  23302. (xor:M X Y))'.
  23303. * The sum of three items, one of which is a constant, will only
  23304. appear in the form
  23305. (plus:M (plus:M X Y) CONSTANT)
  23306. * Equality comparisons of a group of bits (usually a single bit) with
  23307. zero will be written using 'zero_extract' rather than the
  23308. equivalent 'and' or 'sign_extract' operations.
  23309. * '(sign_extend:M1 (mult:M2 (sign_extend:M2 X) (sign_extend:M2 Y)))'
  23310. is converted to '(mult:M1 (sign_extend:M1 X) (sign_extend:M1 Y))',
  23311. and likewise for 'zero_extend'.
  23312. * '(sign_extend:M1 (mult:M2 (ashiftrt:M2 X S) (sign_extend:M2 Y)))'
  23313. is converted to '(mult:M1 (sign_extend:M1 (ashiftrt:M2 X S))
  23314. (sign_extend:M1 Y))', and likewise for patterns using 'zero_extend'
  23315. and 'lshiftrt'. If the second operand of 'mult' is also a shift,
  23316. then that is extended also. This transformation is only applied
  23317. when it can be proven that the original operation had sufficient
  23318. precision to prevent overflow.
  23319. Further canonicalization rules are defined in the function
  23320. 'commutative_operand_precedence' in 'gcc/rtlanal.c'.
  23321. 
  23322. File: gccint.info, Node: Expander Definitions, Next: Insn Splitting, Prev: Insn Canonicalizations, Up: Machine Desc
  23323. 17.15 Defining RTL Sequences for Code Generation
  23324. ================================================
  23325. On some target machines, some standard pattern names for RTL generation
  23326. cannot be handled with single insn, but a sequence of RTL insns can
  23327. represent them. For these target machines, you can write a
  23328. 'define_expand' to specify how to generate the sequence of RTL.
  23329. A 'define_expand' is an RTL expression that looks almost like a
  23330. 'define_insn'; but, unlike the latter, a 'define_expand' is used only
  23331. for RTL generation and it can produce more than one RTL insn.
  23332. A 'define_expand' RTX has four operands:
  23333. * The name. Each 'define_expand' must have a name, since the only
  23334. use for it is to refer to it by name.
  23335. * The RTL template. This is a vector of RTL expressions representing
  23336. a sequence of separate instructions. Unlike 'define_insn', there
  23337. is no implicit surrounding 'PARALLEL'.
  23338. * The condition, a string containing a C expression. This expression
  23339. is used to express how the availability of this pattern depends on
  23340. subclasses of target machine, selected by command-line options when
  23341. GCC is run. This is just like the condition of a 'define_insn'
  23342. that has a standard name. Therefore, the condition (if present)
  23343. may not depend on the data in the insn being matched, but only the
  23344. target-machine-type flags. The compiler needs to test these
  23345. conditions during initialization in order to learn exactly which
  23346. named instructions are available in a particular run.
  23347. * The preparation statements, a string containing zero or more C
  23348. statements which are to be executed before RTL code is generated
  23349. from the RTL template.
  23350. Usually these statements prepare temporary registers for use as
  23351. internal operands in the RTL template, but they can also generate
  23352. RTL insns directly by calling routines such as 'emit_insn', etc.
  23353. Any such insns precede the ones that come from the RTL template.
  23354. * Optionally, a vector containing the values of attributes. *Note
  23355. Insn Attributes::.
  23356. Every RTL insn emitted by a 'define_expand' must match some
  23357. 'define_insn' in the machine description. Otherwise, the compiler will
  23358. crash when trying to generate code for the insn or trying to optimize
  23359. it.
  23360. The RTL template, in addition to controlling generation of RTL insns,
  23361. also describes the operands that need to be specified when this pattern
  23362. is used. In particular, it gives a predicate for each operand.
  23363. A true operand, which needs to be specified in order to generate RTL
  23364. from the pattern, should be described with a 'match_operand' in its
  23365. first occurrence in the RTL template. This enters information on the
  23366. operand's predicate into the tables that record such things. GCC uses
  23367. the information to preload the operand into a register if that is
  23368. required for valid RTL code. If the operand is referred to more than
  23369. once, subsequent references should use 'match_dup'.
  23370. The RTL template may also refer to internal "operands" which are
  23371. temporary registers or labels used only within the sequence made by the
  23372. 'define_expand'. Internal operands are substituted into the RTL
  23373. template with 'match_dup', never with 'match_operand'. The values of
  23374. the internal operands are not passed in as arguments by the compiler
  23375. when it requests use of this pattern. Instead, they are computed within
  23376. the pattern, in the preparation statements. These statements compute
  23377. the values and store them into the appropriate elements of 'operands' so
  23378. that 'match_dup' can find them.
  23379. There are two special macros defined for use in the preparation
  23380. statements: 'DONE' and 'FAIL'. Use them with a following semicolon, as
  23381. a statement.
  23382. 'DONE'
  23383. Use the 'DONE' macro to end RTL generation for the pattern. The
  23384. only RTL insns resulting from the pattern on this occasion will be
  23385. those already emitted by explicit calls to 'emit_insn' within the
  23386. preparation statements; the RTL template will not be generated.
  23387. 'FAIL'
  23388. Make the pattern fail on this occasion. When a pattern fails, it
  23389. means that the pattern was not truly available. The calling
  23390. routines in the compiler will try other strategies for code
  23391. generation using other patterns.
  23392. Failure is currently supported only for binary (addition,
  23393. multiplication, shifting, etc.) and bit-field ('extv', 'extzv',
  23394. and 'insv') operations.
  23395. If the preparation falls through (invokes neither 'DONE' nor 'FAIL'),
  23396. then the 'define_expand' acts like a 'define_insn' in that the RTL
  23397. template is used to generate the insn.
  23398. The RTL template is not used for matching, only for generating the
  23399. initial insn list. If the preparation statement always invokes 'DONE'
  23400. or 'FAIL', the RTL template may be reduced to a simple list of operands,
  23401. such as this example:
  23402. (define_expand "addsi3"
  23403. [(match_operand:SI 0 "register_operand" "")
  23404. (match_operand:SI 1 "register_operand" "")
  23405. (match_operand:SI 2 "register_operand" "")]
  23406. ""
  23407. "
  23408. {
  23409. handle_add (operands[0], operands[1], operands[2]);
  23410. DONE;
  23411. }")
  23412. Here is an example, the definition of left-shift for the SPUR chip:
  23413. (define_expand "ashlsi3"
  23414. [(set (match_operand:SI 0 "register_operand" "")
  23415. (ashift:SI
  23416. (match_operand:SI 1 "register_operand" "")
  23417. (match_operand:SI 2 "nonmemory_operand" "")))]
  23418. ""
  23419. "
  23420. {
  23421. if (GET_CODE (operands[2]) != CONST_INT
  23422. || (unsigned) INTVAL (operands[2]) > 3)
  23423. FAIL;
  23424. }")
  23425. This example uses 'define_expand' so that it can generate an RTL insn
  23426. for shifting when the shift-count is in the supported range of 0 to 3
  23427. but fail in other cases where machine insns aren't available. When it
  23428. fails, the compiler tries another strategy using different patterns
  23429. (such as, a library call).
  23430. If the compiler were able to handle nontrivial condition-strings in
  23431. patterns with names, then it would be possible to use a 'define_insn' in
  23432. that case. Here is another case (zero-extension on the 68000) which
  23433. makes more use of the power of 'define_expand':
  23434. (define_expand "zero_extendhisi2"
  23435. [(set (match_operand:SI 0 "general_operand" "")
  23436. (const_int 0))
  23437. (set (strict_low_part
  23438. (subreg:HI
  23439. (match_dup 0)
  23440. 0))
  23441. (match_operand:HI 1 "general_operand" ""))]
  23442. ""
  23443. "operands[1] = make_safe_from (operands[1], operands[0]);")
  23444. Here two RTL insns are generated, one to clear the entire output operand
  23445. and the other to copy the input operand into its low half. This
  23446. sequence is incorrect if the input operand refers to [the old value of]
  23447. the output operand, so the preparation statement makes sure this isn't
  23448. so. The function 'make_safe_from' copies the 'operands[1]' into a
  23449. temporary register if it refers to 'operands[0]'. It does this by
  23450. emitting another RTL insn.
  23451. Finally, a third example shows the use of an internal operand.
  23452. Zero-extension on the SPUR chip is done by 'and'-ing the result against
  23453. a halfword mask. But this mask cannot be represented by a 'const_int'
  23454. because the constant value is too large to be legitimate on this
  23455. machine. So it must be copied into a register with 'force_reg' and then
  23456. the register used in the 'and'.
  23457. (define_expand "zero_extendhisi2"
  23458. [(set (match_operand:SI 0 "register_operand" "")
  23459. (and:SI (subreg:SI
  23460. (match_operand:HI 1 "register_operand" "")
  23461. 0)
  23462. (match_dup 2)))]
  23463. ""
  23464. "operands[2]
  23465. = force_reg (SImode, GEN_INT (65535)); ")
  23466. _Note:_ If the 'define_expand' is used to serve a standard binary or
  23467. unary arithmetic operation or a bit-field operation, then the last insn
  23468. it generates must not be a 'code_label', 'barrier' or 'note'. It must
  23469. be an 'insn', 'jump_insn' or 'call_insn'. If you don't need a real insn
  23470. at the end, emit an insn to copy the result of the operation into
  23471. itself. Such an insn will generate no code, but it can avoid problems
  23472. in the compiler.
  23473. 
  23474. File: gccint.info, Node: Insn Splitting, Next: Including Patterns, Prev: Expander Definitions, Up: Machine Desc
  23475. 17.16 Defining How to Split Instructions
  23476. ========================================
  23477. There are two cases where you should specify how to split a pattern into
  23478. multiple insns. On machines that have instructions requiring delay
  23479. slots (*note Delay Slots::) or that have instructions whose output is
  23480. not available for multiple cycles (*note Processor pipeline
  23481. description::), the compiler phases that optimize these cases need to be
  23482. able to move insns into one-instruction delay slots. However, some
  23483. insns may generate more than one machine instruction. These insns
  23484. cannot be placed into a delay slot.
  23485. Often you can rewrite the single insn as a list of individual insns,
  23486. each corresponding to one machine instruction. The disadvantage of
  23487. doing so is that it will cause the compilation to be slower and require
  23488. more space. If the resulting insns are too complex, it may also
  23489. suppress some optimizations. The compiler splits the insn if there is a
  23490. reason to believe that it might improve instruction or delay slot
  23491. scheduling.
  23492. The insn combiner phase also splits putative insns. If three insns are
  23493. merged into one insn with a complex expression that cannot be matched by
  23494. some 'define_insn' pattern, the combiner phase attempts to split the
  23495. complex pattern into two insns that are recognized. Usually it can
  23496. break the complex pattern into two patterns by splitting out some
  23497. subexpression. However, in some other cases, such as performing an
  23498. addition of a large constant in two insns on a RISC machine, the way to
  23499. split the addition into two insns is machine-dependent.
  23500. The 'define_split' definition tells the compiler how to split a complex
  23501. insn into several simpler insns. It looks like this:
  23502. (define_split
  23503. [INSN-PATTERN]
  23504. "CONDITION"
  23505. [NEW-INSN-PATTERN-1
  23506. NEW-INSN-PATTERN-2
  23507. ...]
  23508. "PREPARATION-STATEMENTS")
  23509. INSN-PATTERN is a pattern that needs to be split and CONDITION is the
  23510. final condition to be tested, as in a 'define_insn'. When an insn
  23511. matching INSN-PATTERN and satisfying CONDITION is found, it is replaced
  23512. in the insn list with the insns given by NEW-INSN-PATTERN-1,
  23513. NEW-INSN-PATTERN-2, etc.
  23514. The PREPARATION-STATEMENTS are similar to those statements that are
  23515. specified for 'define_expand' (*note Expander Definitions::) and are
  23516. executed before the new RTL is generated to prepare for the generated
  23517. code or emit some insns whose pattern is not fixed. Unlike those in
  23518. 'define_expand', however, these statements must not generate any new
  23519. pseudo-registers. Once reload has completed, they also must not
  23520. allocate any space in the stack frame.
  23521. There are two special macros defined for use in the preparation
  23522. statements: 'DONE' and 'FAIL'. Use them with a following semicolon, as
  23523. a statement.
  23524. 'DONE'
  23525. Use the 'DONE' macro to end RTL generation for the splitter. The
  23526. only RTL insns generated as replacement for the matched input insn
  23527. will be those already emitted by explicit calls to 'emit_insn'
  23528. within the preparation statements; the replacement pattern is not
  23529. used.
  23530. 'FAIL'
  23531. Make the 'define_split' fail on this occasion. When a
  23532. 'define_split' fails, it means that the splitter was not truly
  23533. available for the inputs it was given, and the input insn will not
  23534. be split.
  23535. If the preparation falls through (invokes neither 'DONE' nor 'FAIL'),
  23536. then the 'define_split' uses the replacement template.
  23537. Patterns are matched against INSN-PATTERN in two different
  23538. circumstances. If an insn needs to be split for delay slot scheduling
  23539. or insn scheduling, the insn is already known to be valid, which means
  23540. that it must have been matched by some 'define_insn' and, if
  23541. 'reload_completed' is nonzero, is known to satisfy the constraints of
  23542. that 'define_insn'. In that case, the new insn patterns must also be
  23543. insns that are matched by some 'define_insn' and, if 'reload_completed'
  23544. is nonzero, must also satisfy the constraints of those definitions.
  23545. As an example of this usage of 'define_split', consider the following
  23546. example from 'a29k.md', which splits a 'sign_extend' from 'HImode' to
  23547. 'SImode' into a pair of shift insns:
  23548. (define_split
  23549. [(set (match_operand:SI 0 "gen_reg_operand" "")
  23550. (sign_extend:SI (match_operand:HI 1 "gen_reg_operand" "")))]
  23551. ""
  23552. [(set (match_dup 0)
  23553. (ashift:SI (match_dup 1)
  23554. (const_int 16)))
  23555. (set (match_dup 0)
  23556. (ashiftrt:SI (match_dup 0)
  23557. (const_int 16)))]
  23558. "
  23559. { operands[1] = gen_lowpart (SImode, operands[1]); }")
  23560. When the combiner phase tries to split an insn pattern, it is always
  23561. the case that the pattern is _not_ matched by any 'define_insn'. The
  23562. combiner pass first tries to split a single 'set' expression and then
  23563. the same 'set' expression inside a 'parallel', but followed by a
  23564. 'clobber' of a pseudo-reg to use as a scratch register. In these cases,
  23565. the combiner expects exactly one or two new insn patterns to be
  23566. generated. It will verify that these patterns match some 'define_insn'
  23567. definitions, so you need not do this test in the 'define_split' (of
  23568. course, there is no point in writing a 'define_split' that will never
  23569. produce insns that match).
  23570. Here is an example of this use of 'define_split', taken from
  23571. 'rs6000.md':
  23572. (define_split
  23573. [(set (match_operand:SI 0 "gen_reg_operand" "")
  23574. (plus:SI (match_operand:SI 1 "gen_reg_operand" "")
  23575. (match_operand:SI 2 "non_add_cint_operand" "")))]
  23576. ""
  23577. [(set (match_dup 0) (plus:SI (match_dup 1) (match_dup 3)))
  23578. (set (match_dup 0) (plus:SI (match_dup 0) (match_dup 4)))]
  23579. "
  23580. {
  23581. int low = INTVAL (operands[2]) & 0xffff;
  23582. int high = (unsigned) INTVAL (operands[2]) >> 16;
  23583. if (low & 0x8000)
  23584. high++, low |= 0xffff0000;
  23585. operands[3] = GEN_INT (high << 16);
  23586. operands[4] = GEN_INT (low);
  23587. }")
  23588. Here the predicate 'non_add_cint_operand' matches any 'const_int' that
  23589. is _not_ a valid operand of a single add insn. The add with the smaller
  23590. displacement is written so that it can be substituted into the address
  23591. of a subsequent operation.
  23592. An example that uses a scratch register, from the same file, generates
  23593. an equality comparison of a register and a large constant:
  23594. (define_split
  23595. [(set (match_operand:CC 0 "cc_reg_operand" "")
  23596. (compare:CC (match_operand:SI 1 "gen_reg_operand" "")
  23597. (match_operand:SI 2 "non_short_cint_operand" "")))
  23598. (clobber (match_operand:SI 3 "gen_reg_operand" ""))]
  23599. "find_single_use (operands[0], insn, 0)
  23600. && (GET_CODE (*find_single_use (operands[0], insn, 0)) == EQ
  23601. || GET_CODE (*find_single_use (operands[0], insn, 0)) == NE)"
  23602. [(set (match_dup 3) (xor:SI (match_dup 1) (match_dup 4)))
  23603. (set (match_dup 0) (compare:CC (match_dup 3) (match_dup 5)))]
  23604. "
  23605. {
  23606. /* Get the constant we are comparing against, C, and see what it
  23607. looks like sign-extended to 16 bits. Then see what constant
  23608. could be XOR'ed with C to get the sign-extended value. */
  23609. int c = INTVAL (operands[2]);
  23610. int sextc = (c << 16) >> 16;
  23611. int xorv = c ^ sextc;
  23612. operands[4] = GEN_INT (xorv);
  23613. operands[5] = GEN_INT (sextc);
  23614. }")
  23615. To avoid confusion, don't write a single 'define_split' that accepts
  23616. some insns that match some 'define_insn' as well as some insns that
  23617. don't. Instead, write two separate 'define_split' definitions, one for
  23618. the insns that are valid and one for the insns that are not valid.
  23619. The splitter is allowed to split jump instructions into sequence of
  23620. jumps or create new jumps in while splitting non-jump instructions. As
  23621. the control flow graph and branch prediction information needs to be
  23622. updated, several restriction apply.
  23623. Splitting of jump instruction into sequence that over by another jump
  23624. instruction is always valid, as compiler expect identical behavior of
  23625. new jump. When new sequence contains multiple jump instructions or new
  23626. labels, more assistance is needed. Splitter is required to create only
  23627. unconditional jumps, or simple conditional jump instructions.
  23628. Additionally it must attach a 'REG_BR_PROB' note to each conditional
  23629. jump. A global variable 'split_branch_probability' holds the
  23630. probability of the original branch in case it was a simple conditional
  23631. jump, -1 otherwise. To simplify recomputing of edge frequencies, the
  23632. new sequence is required to have only forward jumps to the newly created
  23633. labels.
  23634. For the common case where the pattern of a define_split exactly matches
  23635. the pattern of a define_insn, use 'define_insn_and_split'. It looks
  23636. like this:
  23637. (define_insn_and_split
  23638. [INSN-PATTERN]
  23639. "CONDITION"
  23640. "OUTPUT-TEMPLATE"
  23641. "SPLIT-CONDITION"
  23642. [NEW-INSN-PATTERN-1
  23643. NEW-INSN-PATTERN-2
  23644. ...]
  23645. "PREPARATION-STATEMENTS"
  23646. [INSN-ATTRIBUTES])
  23647. INSN-PATTERN, CONDITION, OUTPUT-TEMPLATE, and INSN-ATTRIBUTES are used
  23648. as in 'define_insn'. The NEW-INSN-PATTERN vector and the
  23649. PREPARATION-STATEMENTS are used as in a 'define_split'. The
  23650. SPLIT-CONDITION is also used as in 'define_split', with the additional
  23651. behavior that if the condition starts with '&&', the condition used for
  23652. the split will be the constructed as a logical "and" of the split
  23653. condition with the insn condition. For example, from i386.md:
  23654. (define_insn_and_split "zero_extendhisi2_and"
  23655. [(set (match_operand:SI 0 "register_operand" "=r")
  23656. (zero_extend:SI (match_operand:HI 1 "register_operand" "0")))
  23657. (clobber (reg:CC 17))]
  23658. "TARGET_ZERO_EXTEND_WITH_AND && !optimize_size"
  23659. "#"
  23660. "&& reload_completed"
  23661. [(parallel [(set (match_dup 0)
  23662. (and:SI (match_dup 0) (const_int 65535)))
  23663. (clobber (reg:CC 17))])]
  23664. ""
  23665. [(set_attr "type" "alu1")])
  23666. In this case, the actual split condition will be
  23667. 'TARGET_ZERO_EXTEND_WITH_AND && !optimize_size && reload_completed'.
  23668. The 'define_insn_and_split' construction provides exactly the same
  23669. functionality as two separate 'define_insn' and 'define_split' patterns.
  23670. It exists for compactness, and as a maintenance tool to prevent having
  23671. to ensure the two patterns' templates match.
  23672. It is sometimes useful to have a 'define_insn_and_split' that replaces
  23673. specific operands of an instruction but leaves the rest of the
  23674. instruction pattern unchanged. You can do this directly with a
  23675. 'define_insn_and_split', but it requires a NEW-INSN-PATTERN-1 that
  23676. repeats most of the original INSN-PATTERN. There is also the
  23677. complication that an implicit 'parallel' in INSN-PATTERN must become an
  23678. explicit 'parallel' in NEW-INSN-PATTERN-1, which is easy to overlook. A
  23679. simpler alternative is to use 'define_insn_and_rewrite', which is a form
  23680. of 'define_insn_and_split' that automatically generates
  23681. NEW-INSN-PATTERN-1 by replacing each 'match_operand' in INSN-PATTERN
  23682. with a corresponding 'match_dup', and each 'match_operator' in the
  23683. pattern with a corresponding 'match_op_dup'. The arguments are
  23684. otherwise identical to 'define_insn_and_split':
  23685. (define_insn_and_rewrite
  23686. [INSN-PATTERN]
  23687. "CONDITION"
  23688. "OUTPUT-TEMPLATE"
  23689. "SPLIT-CONDITION"
  23690. "PREPARATION-STATEMENTS"
  23691. [INSN-ATTRIBUTES])
  23692. The 'match_dup's and 'match_op_dup's in the new instruction pattern use
  23693. any new operand values that the PREPARATION-STATEMENTS store in the
  23694. 'operands' array, as for a normal 'define_insn_and_split'.
  23695. PREPARATION-STATEMENTS can also emit additional instructions before the
  23696. new instruction. They can even emit an entirely different sequence of
  23697. instructions and use 'DONE' to avoid emitting a new form of the original
  23698. instruction.
  23699. The split in a 'define_insn_and_rewrite' is only intended to apply to
  23700. existing instructions that match INSN-PATTERN. SPLIT-CONDITION must
  23701. therefore start with '&&', so that the split condition applies on top of
  23702. CONDITION.
  23703. Here is an example from the AArch64 SVE port, in which operand 1 is
  23704. known to be equivalent to an all-true constant and isn't used by the
  23705. output template:
  23706. (define_insn_and_rewrite "*while_ult<GPI:mode><PRED_ALL:mode>_cc"
  23707. [(set (reg:CC CC_REGNUM)
  23708. (compare:CC
  23709. (unspec:SI [(match_operand:PRED_ALL 1)
  23710. (unspec:PRED_ALL
  23711. [(match_operand:GPI 2 "aarch64_reg_or_zero" "rZ")
  23712. (match_operand:GPI 3 "aarch64_reg_or_zero" "rZ")]
  23713. UNSPEC_WHILE_LO)]
  23714. UNSPEC_PTEST_PTRUE)
  23715. (const_int 0)))
  23716. (set (match_operand:PRED_ALL 0 "register_operand" "=Upa")
  23717. (unspec:PRED_ALL [(match_dup 2)
  23718. (match_dup 3)]
  23719. UNSPEC_WHILE_LO))]
  23720. "TARGET_SVE"
  23721. "whilelo\t%0.<PRED_ALL:Vetype>, %<w>2, %<w>3"
  23722. ;; Force the compiler to drop the unused predicate operand, so that we
  23723. ;; don't have an unnecessary PTRUE.
  23724. "&& !CONSTANT_P (operands[1])"
  23725. {
  23726. operands[1] = CONSTM1_RTX (<MODE>mode);
  23727. }
  23728. )
  23729. The splitter in this case simply replaces operand 1 with the constant
  23730. value that it is known to have. The equivalent 'define_insn_and_split'
  23731. would be:
  23732. (define_insn_and_split "*while_ult<GPI:mode><PRED_ALL:mode>_cc"
  23733. [(set (reg:CC CC_REGNUM)
  23734. (compare:CC
  23735. (unspec:SI [(match_operand:PRED_ALL 1)
  23736. (unspec:PRED_ALL
  23737. [(match_operand:GPI 2 "aarch64_reg_or_zero" "rZ")
  23738. (match_operand:GPI 3 "aarch64_reg_or_zero" "rZ")]
  23739. UNSPEC_WHILE_LO)]
  23740. UNSPEC_PTEST_PTRUE)
  23741. (const_int 0)))
  23742. (set (match_operand:PRED_ALL 0 "register_operand" "=Upa")
  23743. (unspec:PRED_ALL [(match_dup 2)
  23744. (match_dup 3)]
  23745. UNSPEC_WHILE_LO))]
  23746. "TARGET_SVE"
  23747. "whilelo\t%0.<PRED_ALL:Vetype>, %<w>2, %<w>3"
  23748. ;; Force the compiler to drop the unused predicate operand, so that we
  23749. ;; don't have an unnecessary PTRUE.
  23750. "&& !CONSTANT_P (operands[1])"
  23751. [(parallel
  23752. [(set (reg:CC CC_REGNUM)
  23753. (compare:CC
  23754. (unspec:SI [(match_dup 1)
  23755. (unspec:PRED_ALL [(match_dup 2)
  23756. (match_dup 3)]
  23757. UNSPEC_WHILE_LO)]
  23758. UNSPEC_PTEST_PTRUE)
  23759. (const_int 0)))
  23760. (set (match_dup 0)
  23761. (unspec:PRED_ALL [(match_dup 2)
  23762. (match_dup 3)]
  23763. UNSPEC_WHILE_LO))])]
  23764. {
  23765. operands[1] = CONSTM1_RTX (<MODE>mode);
  23766. }
  23767. )
  23768. 
  23769. File: gccint.info, Node: Including Patterns, Next: Peephole Definitions, Prev: Insn Splitting, Up: Machine Desc
  23770. 17.17 Including Patterns in Machine Descriptions.
  23771. =================================================
  23772. The 'include' pattern tells the compiler tools where to look for
  23773. patterns that are in files other than in the file '.md'. This is used
  23774. only at build time and there is no preprocessing allowed.
  23775. It looks like:
  23776. (include
  23777. PATHNAME)
  23778. For example:
  23779. (include "filestuff")
  23780. Where PATHNAME is a string that specifies the location of the file,
  23781. specifies the include file to be in 'gcc/config/target/filestuff'. The
  23782. directory 'gcc/config/target' is regarded as the default directory.
  23783. Machine descriptions may be split up into smaller more manageable
  23784. subsections and placed into subdirectories.
  23785. By specifying:
  23786. (include "BOGUS/filestuff")
  23787. the include file is specified to be in
  23788. 'gcc/config/TARGET/BOGUS/filestuff'.
  23789. Specifying an absolute path for the include file such as;
  23790. (include "/u2/BOGUS/filestuff")
  23791. is permitted but is not encouraged.
  23792. 17.17.1 RTL Generation Tool Options for Directory Search
  23793. --------------------------------------------------------
  23794. The '-IDIR' option specifies directories to search for machine
  23795. descriptions. For example:
  23796. genrecog -I/p1/abc/proc1 -I/p2/abcd/pro2 target.md
  23797. Add the directory DIR to the head of the list of directories to be
  23798. searched for header files. This can be used to override a system
  23799. machine definition file, substituting your own version, since these
  23800. directories are searched before the default machine description file
  23801. directories. If you use more than one '-I' option, the directories are
  23802. scanned in left-to-right order; the standard default directory come
  23803. after.
  23804. 
  23805. File: gccint.info, Node: Peephole Definitions, Next: Insn Attributes, Prev: Including Patterns, Up: Machine Desc
  23806. 17.18 Machine-Specific Peephole Optimizers
  23807. ==========================================
  23808. In addition to instruction patterns the 'md' file may contain
  23809. definitions of machine-specific peephole optimizations.
  23810. The combiner does not notice certain peephole optimizations when the
  23811. data flow in the program does not suggest that it should try them. For
  23812. example, sometimes two consecutive insns related in purpose can be
  23813. combined even though the second one does not appear to use a register
  23814. computed in the first one. A machine-specific peephole optimizer can
  23815. detect such opportunities.
  23816. There are two forms of peephole definitions that may be used. The
  23817. original 'define_peephole' is run at assembly output time to match insns
  23818. and substitute assembly text. Use of 'define_peephole' is deprecated.
  23819. A newer 'define_peephole2' matches insns and substitutes new insns.
  23820. The 'peephole2' pass is run after register allocation but before
  23821. scheduling, which may result in much better code for targets that do
  23822. scheduling.
  23823. * Menu:
  23824. * define_peephole:: RTL to Text Peephole Optimizers
  23825. * define_peephole2:: RTL to RTL Peephole Optimizers
  23826. 
  23827. File: gccint.info, Node: define_peephole, Next: define_peephole2, Up: Peephole Definitions
  23828. 17.18.1 RTL to Text Peephole Optimizers
  23829. ---------------------------------------
  23830. A definition looks like this:
  23831. (define_peephole
  23832. [INSN-PATTERN-1
  23833. INSN-PATTERN-2
  23834. ...]
  23835. "CONDITION"
  23836. "TEMPLATE"
  23837. "OPTIONAL-INSN-ATTRIBUTES")
  23838. The last string operand may be omitted if you are not using any
  23839. machine-specific information in this machine description. If present,
  23840. it must obey the same rules as in a 'define_insn'.
  23841. In this skeleton, INSN-PATTERN-1 and so on are patterns to match
  23842. consecutive insns. The optimization applies to a sequence of insns when
  23843. INSN-PATTERN-1 matches the first one, INSN-PATTERN-2 matches the next,
  23844. and so on.
  23845. Each of the insns matched by a peephole must also match a
  23846. 'define_insn'. Peepholes are checked only at the last stage just before
  23847. code generation, and only optionally. Therefore, any insn which would
  23848. match a peephole but no 'define_insn' will cause a crash in code
  23849. generation in an unoptimized compilation, or at various optimization
  23850. stages.
  23851. The operands of the insns are matched with 'match_operands',
  23852. 'match_operator', and 'match_dup', as usual. What is not usual is that
  23853. the operand numbers apply to all the insn patterns in the definition.
  23854. So, you can check for identical operands in two insns by using
  23855. 'match_operand' in one insn and 'match_dup' in the other.
  23856. The operand constraints used in 'match_operand' patterns do not have
  23857. any direct effect on the applicability of the peephole, but they will be
  23858. validated afterward, so make sure your constraints are general enough to
  23859. apply whenever the peephole matches. If the peephole matches but the
  23860. constraints are not satisfied, the compiler will crash.
  23861. It is safe to omit constraints in all the operands of the peephole; or
  23862. you can write constraints which serve as a double-check on the criteria
  23863. previously tested.
  23864. Once a sequence of insns matches the patterns, the CONDITION is
  23865. checked. This is a C expression which makes the final decision whether
  23866. to perform the optimization (we do so if the expression is nonzero). If
  23867. CONDITION is omitted (in other words, the string is empty) then the
  23868. optimization is applied to every sequence of insns that matches the
  23869. patterns.
  23870. The defined peephole optimizations are applied after register
  23871. allocation is complete. Therefore, the peephole definition can check
  23872. which operands have ended up in which kinds of registers, just by
  23873. looking at the operands.
  23874. The way to refer to the operands in CONDITION is to write 'operands[I]'
  23875. for operand number I (as matched by '(match_operand I ...)'). Use the
  23876. variable 'insn' to refer to the last of the insns being matched; use
  23877. 'prev_active_insn' to find the preceding insns.
  23878. When optimizing computations with intermediate results, you can use
  23879. CONDITION to match only when the intermediate results are not used
  23880. elsewhere. Use the C expression 'dead_or_set_p (INSN, OP)', where INSN
  23881. is the insn in which you expect the value to be used for the last time
  23882. (from the value of 'insn', together with use of 'prev_nonnote_insn'),
  23883. and OP is the intermediate value (from 'operands[I]').
  23884. Applying the optimization means replacing the sequence of insns with
  23885. one new insn. The TEMPLATE controls ultimate output of assembler code
  23886. for this combined insn. It works exactly like the template of a
  23887. 'define_insn'. Operand numbers in this template are the same ones used
  23888. in matching the original sequence of insns.
  23889. The result of a defined peephole optimizer does not need to match any
  23890. of the insn patterns in the machine description; it does not even have
  23891. an opportunity to match them. The peephole optimizer definition itself
  23892. serves as the insn pattern to control how the insn is output.
  23893. Defined peephole optimizers are run as assembler code is being output,
  23894. so the insns they produce are never combined or rearranged in any way.
  23895. Here is an example, taken from the 68000 machine description:
  23896. (define_peephole
  23897. [(set (reg:SI 15) (plus:SI (reg:SI 15) (const_int 4)))
  23898. (set (match_operand:DF 0 "register_operand" "=f")
  23899. (match_operand:DF 1 "register_operand" "ad"))]
  23900. "FP_REG_P (operands[0]) && ! FP_REG_P (operands[1])"
  23901. {
  23902. rtx xoperands[2];
  23903. xoperands[1] = gen_rtx_REG (SImode, REGNO (operands[1]) + 1);
  23904. #ifdef MOTOROLA
  23905. output_asm_insn ("move.l %1,(sp)", xoperands);
  23906. output_asm_insn ("move.l %1,-(sp)", operands);
  23907. return "fmove.d (sp)+,%0";
  23908. #else
  23909. output_asm_insn ("movel %1,sp@", xoperands);
  23910. output_asm_insn ("movel %1,sp@-", operands);
  23911. return "fmoved sp@+,%0";
  23912. #endif
  23913. })
  23914. The effect of this optimization is to change
  23915. jbsr _foobar
  23916. addql #4,sp
  23917. movel d1,sp@-
  23918. movel d0,sp@-
  23919. fmoved sp@+,fp0
  23920. into
  23921. jbsr _foobar
  23922. movel d1,sp@
  23923. movel d0,sp@-
  23924. fmoved sp@+,fp0
  23925. INSN-PATTERN-1 and so on look _almost_ like the second operand of
  23926. 'define_insn'. There is one important difference: the second operand of
  23927. 'define_insn' consists of one or more RTX's enclosed in square brackets.
  23928. Usually, there is only one: then the same action can be written as an
  23929. element of a 'define_peephole'. But when there are multiple actions in
  23930. a 'define_insn', they are implicitly enclosed in a 'parallel'. Then you
  23931. must explicitly write the 'parallel', and the square brackets within it,
  23932. in the 'define_peephole'. Thus, if an insn pattern looks like this,
  23933. (define_insn "divmodsi4"
  23934. [(set (match_operand:SI 0 "general_operand" "=d")
  23935. (div:SI (match_operand:SI 1 "general_operand" "0")
  23936. (match_operand:SI 2 "general_operand" "dmsK")))
  23937. (set (match_operand:SI 3 "general_operand" "=d")
  23938. (mod:SI (match_dup 1) (match_dup 2)))]
  23939. "TARGET_68020"
  23940. "divsl%.l %2,%3:%0")
  23941. then the way to mention this insn in a peephole is as follows:
  23942. (define_peephole
  23943. [...
  23944. (parallel
  23945. [(set (match_operand:SI 0 "general_operand" "=d")
  23946. (div:SI (match_operand:SI 1 "general_operand" "0")
  23947. (match_operand:SI 2 "general_operand" "dmsK")))
  23948. (set (match_operand:SI 3 "general_operand" "=d")
  23949. (mod:SI (match_dup 1) (match_dup 2)))])
  23950. ...]
  23951. ...)
  23952. 
  23953. File: gccint.info, Node: define_peephole2, Prev: define_peephole, Up: Peephole Definitions
  23954. 17.18.2 RTL to RTL Peephole Optimizers
  23955. --------------------------------------
  23956. The 'define_peephole2' definition tells the compiler how to substitute
  23957. one sequence of instructions for another sequence, what additional
  23958. scratch registers may be needed and what their lifetimes must be.
  23959. (define_peephole2
  23960. [INSN-PATTERN-1
  23961. INSN-PATTERN-2
  23962. ...]
  23963. "CONDITION"
  23964. [NEW-INSN-PATTERN-1
  23965. NEW-INSN-PATTERN-2
  23966. ...]
  23967. "PREPARATION-STATEMENTS")
  23968. The definition is almost identical to 'define_split' (*note Insn
  23969. Splitting::) except that the pattern to match is not a single
  23970. instruction, but a sequence of instructions.
  23971. It is possible to request additional scratch registers for use in the
  23972. output template. If appropriate registers are not free, the pattern
  23973. will simply not match.
  23974. Scratch registers are requested with a 'match_scratch' pattern at the
  23975. top level of the input pattern. The allocated register (initially) will
  23976. be dead at the point requested within the original sequence. If the
  23977. scratch is used at more than a single point, a 'match_dup' pattern at
  23978. the top level of the input pattern marks the last position in the input
  23979. sequence at which the register must be available.
  23980. Here is an example from the IA-32 machine description:
  23981. (define_peephole2
  23982. [(match_scratch:SI 2 "r")
  23983. (parallel [(set (match_operand:SI 0 "register_operand" "")
  23984. (match_operator:SI 3 "arith_or_logical_operator"
  23985. [(match_dup 0)
  23986. (match_operand:SI 1 "memory_operand" "")]))
  23987. (clobber (reg:CC 17))])]
  23988. "! optimize_size && ! TARGET_READ_MODIFY"
  23989. [(set (match_dup 2) (match_dup 1))
  23990. (parallel [(set (match_dup 0)
  23991. (match_op_dup 3 [(match_dup 0) (match_dup 2)]))
  23992. (clobber (reg:CC 17))])]
  23993. "")
  23994. This pattern tries to split a load from its use in the hopes that we'll
  23995. be able to schedule around the memory load latency. It allocates a
  23996. single 'SImode' register of class 'GENERAL_REGS' ('"r"') that needs to
  23997. be live only at the point just before the arithmetic.
  23998. A real example requiring extended scratch lifetimes is harder to come
  23999. by, so here's a silly made-up example:
  24000. (define_peephole2
  24001. [(match_scratch:SI 4 "r")
  24002. (set (match_operand:SI 0 "" "") (match_operand:SI 1 "" ""))
  24003. (set (match_operand:SI 2 "" "") (match_dup 1))
  24004. (match_dup 4)
  24005. (set (match_operand:SI 3 "" "") (match_dup 1))]
  24006. "/* determine 1 does not overlap 0 and 2 */"
  24007. [(set (match_dup 4) (match_dup 1))
  24008. (set (match_dup 0) (match_dup 4))
  24009. (set (match_dup 2) (match_dup 4))
  24010. (set (match_dup 3) (match_dup 4))]
  24011. "")
  24012. There are two special macros defined for use in the preparation
  24013. statements: 'DONE' and 'FAIL'. Use them with a following semicolon, as
  24014. a statement.
  24015. 'DONE'
  24016. Use the 'DONE' macro to end RTL generation for the peephole. The
  24017. only RTL insns generated as replacement for the matched input insn
  24018. will be those already emitted by explicit calls to 'emit_insn'
  24019. within the preparation statements; the replacement pattern is not
  24020. used.
  24021. 'FAIL'
  24022. Make the 'define_peephole2' fail on this occasion. When a
  24023. 'define_peephole2' fails, it means that the replacement was not
  24024. truly available for the particular inputs it was given. In that
  24025. case, GCC may still apply a later 'define_peephole2' that also
  24026. matches the given insn pattern. (Note that this is different from
  24027. 'define_split', where 'FAIL' prevents the input insn from being
  24028. split at all.)
  24029. If the preparation falls through (invokes neither 'DONE' nor 'FAIL'),
  24030. then the 'define_peephole2' uses the replacement template.
  24031. If we had not added the '(match_dup 4)' in the middle of the input
  24032. sequence, it might have been the case that the register we chose at the
  24033. beginning of the sequence is killed by the first or second 'set'.
  24034. 
  24035. File: gccint.info, Node: Insn Attributes, Next: Conditional Execution, Prev: Peephole Definitions, Up: Machine Desc
  24036. 17.19 Instruction Attributes
  24037. ============================
  24038. In addition to describing the instruction supported by the target
  24039. machine, the 'md' file also defines a group of "attributes" and a set of
  24040. values for each. Every generated insn is assigned a value for each
  24041. attribute. One possible attribute would be the effect that the insn has
  24042. on the machine's condition code. This attribute can then be used by
  24043. 'NOTICE_UPDATE_CC' to track the condition codes.
  24044. * Menu:
  24045. * Defining Attributes:: Specifying attributes and their values.
  24046. * Expressions:: Valid expressions for attribute values.
  24047. * Tagging Insns:: Assigning attribute values to insns.
  24048. * Attr Example:: An example of assigning attributes.
  24049. * Insn Lengths:: Computing the length of insns.
  24050. * Constant Attributes:: Defining attributes that are constant.
  24051. * Mnemonic Attribute:: Obtain the instruction mnemonic as attribute value.
  24052. * Delay Slots:: Defining delay slots required for a machine.
  24053. * Processor pipeline description:: Specifying information for insn scheduling.
  24054. 
  24055. File: gccint.info, Node: Defining Attributes, Next: Expressions, Up: Insn Attributes
  24056. 17.19.1 Defining Attributes and their Values
  24057. --------------------------------------------
  24058. The 'define_attr' expression is used to define each attribute required
  24059. by the target machine. It looks like:
  24060. (define_attr NAME LIST-OF-VALUES DEFAULT)
  24061. NAME is a string specifying the name of the attribute being defined.
  24062. Some attributes are used in a special way by the rest of the compiler.
  24063. The 'enabled' attribute can be used to conditionally enable or disable
  24064. insn alternatives (*note Disable Insn Alternatives::). The 'predicable'
  24065. attribute, together with a suitable 'define_cond_exec' (*note
  24066. Conditional Execution::), can be used to automatically generate
  24067. conditional variants of instruction patterns. The 'mnemonic' attribute
  24068. can be used to check for the instruction mnemonic (*note Mnemonic
  24069. Attribute::). The compiler internally uses the names 'ce_enabled' and
  24070. 'nonce_enabled', so they should not be used elsewhere as alternative
  24071. names.
  24072. LIST-OF-VALUES is either a string that specifies a comma-separated list
  24073. of values that can be assigned to the attribute, or a null string to
  24074. indicate that the attribute takes numeric values.
  24075. DEFAULT is an attribute expression that gives the value of this
  24076. attribute for insns that match patterns whose definition does not
  24077. include an explicit value for this attribute. *Note Attr Example::, for
  24078. more information on the handling of defaults. *Note Constant
  24079. Attributes::, for information on attributes that do not depend on any
  24080. particular insn.
  24081. For each defined attribute, a number of definitions are written to the
  24082. 'insn-attr.h' file. For cases where an explicit set of values is
  24083. specified for an attribute, the following are defined:
  24084. * A '#define' is written for the symbol 'HAVE_ATTR_NAME'.
  24085. * An enumerated class is defined for 'attr_NAME' with elements of the
  24086. form 'UPPER-NAME_UPPER-VALUE' where the attribute name and value
  24087. are first converted to uppercase.
  24088. * A function 'get_attr_NAME' is defined that is passed an insn and
  24089. returns the attribute value for that insn.
  24090. For example, if the following is present in the 'md' file:
  24091. (define_attr "type" "branch,fp,load,store,arith" ...)
  24092. the following lines will be written to the file 'insn-attr.h'.
  24093. #define HAVE_ATTR_type 1
  24094. enum attr_type {TYPE_BRANCH, TYPE_FP, TYPE_LOAD,
  24095. TYPE_STORE, TYPE_ARITH};
  24096. extern enum attr_type get_attr_type ();
  24097. If the attribute takes numeric values, no 'enum' type will be defined
  24098. and the function to obtain the attribute's value will return 'int'.
  24099. There are attributes which are tied to a specific meaning. These
  24100. attributes are not free to use for other purposes:
  24101. 'length'
  24102. The 'length' attribute is used to calculate the length of emitted
  24103. code chunks. This is especially important when verifying branch
  24104. distances. *Note Insn Lengths::.
  24105. 'enabled'
  24106. The 'enabled' attribute can be defined to prevent certain
  24107. alternatives of an insn definition from being used during code
  24108. generation. *Note Disable Insn Alternatives::.
  24109. 'mnemonic'
  24110. The 'mnemonic' attribute can be defined to implement instruction
  24111. specific checks in e.g. the pipeline description. *Note Mnemonic
  24112. Attribute::.
  24113. For each of these special attributes, the corresponding
  24114. 'HAVE_ATTR_NAME' '#define' is also written when the attribute is not
  24115. defined; in that case, it is defined as '0'.
  24116. Another way of defining an attribute is to use:
  24117. (define_enum_attr "ATTR" "ENUM" DEFAULT)
  24118. This works in just the same way as 'define_attr', except that the list
  24119. of values is taken from a separate enumeration called ENUM (*note
  24120. define_enum::). This form allows you to use the same list of values for
  24121. several attributes without having to repeat the list each time. For
  24122. example:
  24123. (define_enum "processor" [
  24124. model_a
  24125. model_b
  24126. ...
  24127. ])
  24128. (define_enum_attr "arch" "processor"
  24129. (const (symbol_ref "target_arch")))
  24130. (define_enum_attr "tune" "processor"
  24131. (const (symbol_ref "target_tune")))
  24132. defines the same attributes as:
  24133. (define_attr "arch" "model_a,model_b,..."
  24134. (const (symbol_ref "target_arch")))
  24135. (define_attr "tune" "model_a,model_b,..."
  24136. (const (symbol_ref "target_tune")))
  24137. but without duplicating the processor list. The second example defines
  24138. two separate C enums ('attr_arch' and 'attr_tune') whereas the first
  24139. defines a single C enum ('processor').
  24140. 
  24141. File: gccint.info, Node: Expressions, Next: Tagging Insns, Prev: Defining Attributes, Up: Insn Attributes
  24142. 17.19.2 Attribute Expressions
  24143. -----------------------------
  24144. RTL expressions used to define attributes use the codes described above
  24145. plus a few specific to attribute definitions, to be discussed below.
  24146. Attribute value expressions must have one of the following forms:
  24147. '(const_int I)'
  24148. The integer I specifies the value of a numeric attribute. I must
  24149. be non-negative.
  24150. The value of a numeric attribute can be specified either with a
  24151. 'const_int', or as an integer represented as a string in
  24152. 'const_string', 'eq_attr' (see below), 'attr', 'symbol_ref', simple
  24153. arithmetic expressions, and 'set_attr' overrides on specific
  24154. instructions (*note Tagging Insns::).
  24155. '(const_string VALUE)'
  24156. The string VALUE specifies a constant attribute value. If VALUE is
  24157. specified as '"*"', it means that the default value of the
  24158. attribute is to be used for the insn containing this expression.
  24159. '"*"' obviously cannot be used in the DEFAULT expression of a
  24160. 'define_attr'.
  24161. If the attribute whose value is being specified is numeric, VALUE
  24162. must be a string containing a non-negative integer (normally
  24163. 'const_int' would be used in this case). Otherwise, it must
  24164. contain one of the valid values for the attribute.
  24165. '(if_then_else TEST TRUE-VALUE FALSE-VALUE)'
  24166. TEST specifies an attribute test, whose format is defined below.
  24167. The value of this expression is TRUE-VALUE if TEST is true,
  24168. otherwise it is FALSE-VALUE.
  24169. '(cond [TEST1 VALUE1 ...] DEFAULT)'
  24170. The first operand of this expression is a vector containing an even
  24171. number of expressions and consisting of pairs of TEST and VALUE
  24172. expressions. The value of the 'cond' expression is that of the
  24173. VALUE corresponding to the first true TEST expression. If none of
  24174. the TEST expressions are true, the value of the 'cond' expression
  24175. is that of the DEFAULT expression.
  24176. TEST expressions can have one of the following forms:
  24177. '(const_int I)'
  24178. This test is true if I is nonzero and false otherwise.
  24179. '(not TEST)'
  24180. '(ior TEST1 TEST2)'
  24181. '(and TEST1 TEST2)'
  24182. These tests are true if the indicated logical function is true.
  24183. '(match_operand:M N PRED CONSTRAINTS)'
  24184. This test is true if operand N of the insn whose attribute value is
  24185. being determined has mode M (this part of the test is ignored if M
  24186. is 'VOIDmode') and the function specified by the string PRED
  24187. returns a nonzero value when passed operand N and mode M (this part
  24188. of the test is ignored if PRED is the null string).
  24189. The CONSTRAINTS operand is ignored and should be the null string.
  24190. '(match_test C-EXPR)'
  24191. The test is true if C expression C-EXPR is true. In non-constant
  24192. attributes, C-EXPR has access to the following variables:
  24193. INSN
  24194. The rtl instruction under test.
  24195. WHICH_ALTERNATIVE
  24196. The 'define_insn' alternative that INSN matches. *Note Output
  24197. Statement::.
  24198. OPERANDS
  24199. An array of INSN's rtl operands.
  24200. C-EXPR behaves like the condition in a C 'if' statement, so there
  24201. is no need to explicitly convert the expression into a boolean 0 or
  24202. 1 value. For example, the following two tests are equivalent:
  24203. (match_test "x & 2")
  24204. (match_test "(x & 2) != 0")
  24205. '(le ARITH1 ARITH2)'
  24206. '(leu ARITH1 ARITH2)'
  24207. '(lt ARITH1 ARITH2)'
  24208. '(ltu ARITH1 ARITH2)'
  24209. '(gt ARITH1 ARITH2)'
  24210. '(gtu ARITH1 ARITH2)'
  24211. '(ge ARITH1 ARITH2)'
  24212. '(geu ARITH1 ARITH2)'
  24213. '(ne ARITH1 ARITH2)'
  24214. '(eq ARITH1 ARITH2)'
  24215. These tests are true if the indicated comparison of the two
  24216. arithmetic expressions is true. Arithmetic expressions are formed
  24217. with 'plus', 'minus', 'mult', 'div', 'mod', 'abs', 'neg', 'and',
  24218. 'ior', 'xor', 'not', 'ashift', 'lshiftrt', and 'ashiftrt'
  24219. expressions.
  24220. 'const_int' and 'symbol_ref' are always valid terms (*note Insn
  24221. Lengths::,for additional forms). 'symbol_ref' is a string denoting
  24222. a C expression that yields an 'int' when evaluated by the
  24223. 'get_attr_...' routine. It should normally be a global variable.
  24224. '(eq_attr NAME VALUE)'
  24225. NAME is a string specifying the name of an attribute.
  24226. VALUE is a string that is either a valid value for attribute NAME,
  24227. a comma-separated list of values, or '!' followed by a value or
  24228. list. If VALUE does not begin with a '!', this test is true if the
  24229. value of the NAME attribute of the current insn is in the list
  24230. specified by VALUE. If VALUE begins with a '!', this test is true
  24231. if the attribute's value is _not_ in the specified list.
  24232. For example,
  24233. (eq_attr "type" "load,store")
  24234. is equivalent to
  24235. (ior (eq_attr "type" "load") (eq_attr "type" "store"))
  24236. If NAME specifies an attribute of 'alternative', it refers to the
  24237. value of the compiler variable 'which_alternative' (*note Output
  24238. Statement::) and the values must be small integers. For example,
  24239. (eq_attr "alternative" "2,3")
  24240. is equivalent to
  24241. (ior (eq (symbol_ref "which_alternative") (const_int 2))
  24242. (eq (symbol_ref "which_alternative") (const_int 3)))
  24243. Note that, for most attributes, an 'eq_attr' test is simplified in
  24244. cases where the value of the attribute being tested is known for
  24245. all insns matching a particular pattern. This is by far the most
  24246. common case.
  24247. '(attr_flag NAME)'
  24248. The value of an 'attr_flag' expression is true if the flag
  24249. specified by NAME is true for the 'insn' currently being scheduled.
  24250. NAME is a string specifying one of a fixed set of flags to test.
  24251. Test the flags 'forward' and 'backward' to determine the direction
  24252. of a conditional branch.
  24253. This example describes a conditional branch delay slot which can be
  24254. nullified for forward branches that are taken (annul-true) or for
  24255. backward branches which are not taken (annul-false).
  24256. (define_delay (eq_attr "type" "cbranch")
  24257. [(eq_attr "in_branch_delay" "true")
  24258. (and (eq_attr "in_branch_delay" "true")
  24259. (attr_flag "forward"))
  24260. (and (eq_attr "in_branch_delay" "true")
  24261. (attr_flag "backward"))])
  24262. The 'forward' and 'backward' flags are false if the current 'insn'
  24263. being scheduled is not a conditional branch.
  24264. 'attr_flag' is only used during delay slot scheduling and has no
  24265. meaning to other passes of the compiler.
  24266. '(attr NAME)'
  24267. The value of another attribute is returned. This is most useful
  24268. for numeric attributes, as 'eq_attr' and 'attr_flag' produce more
  24269. efficient code for non-numeric attributes.
  24270. 
  24271. File: gccint.info, Node: Tagging Insns, Next: Attr Example, Prev: Expressions, Up: Insn Attributes
  24272. 17.19.3 Assigning Attribute Values to Insns
  24273. -------------------------------------------
  24274. The value assigned to an attribute of an insn is primarily determined by
  24275. which pattern is matched by that insn (or which 'define_peephole'
  24276. generated it). Every 'define_insn' and 'define_peephole' can have an
  24277. optional last argument to specify the values of attributes for matching
  24278. insns. The value of any attribute not specified in a particular insn is
  24279. set to the default value for that attribute, as specified in its
  24280. 'define_attr'. Extensive use of default values for attributes permits
  24281. the specification of the values for only one or two attributes in the
  24282. definition of most insn patterns, as seen in the example in the next
  24283. section.
  24284. The optional last argument of 'define_insn' and 'define_peephole' is a
  24285. vector of expressions, each of which defines the value for a single
  24286. attribute. The most general way of assigning an attribute's value is to
  24287. use a 'set' expression whose first operand is an 'attr' expression
  24288. giving the name of the attribute being set. The second operand of the
  24289. 'set' is an attribute expression (*note Expressions::) giving the value
  24290. of the attribute.
  24291. When the attribute value depends on the 'alternative' attribute (i.e.,
  24292. which is the applicable alternative in the constraint of the insn), the
  24293. 'set_attr_alternative' expression can be used. It allows the
  24294. specification of a vector of attribute expressions, one for each
  24295. alternative.
  24296. When the generality of arbitrary attribute expressions is not required,
  24297. the simpler 'set_attr' expression can be used, which allows specifying a
  24298. string giving either a single attribute value or a list of attribute
  24299. values, one for each alternative.
  24300. The form of each of the above specifications is shown below. In each
  24301. case, NAME is a string specifying the attribute to be set.
  24302. '(set_attr NAME VALUE-STRING)'
  24303. VALUE-STRING is either a string giving the desired attribute value,
  24304. or a string containing a comma-separated list giving the values for
  24305. succeeding alternatives. The number of elements must match the
  24306. number of alternatives in the constraint of the insn pattern.
  24307. Note that it may be useful to specify '*' for some alternative, in
  24308. which case the attribute will assume its default value for insns
  24309. matching that alternative.
  24310. '(set_attr_alternative NAME [VALUE1 VALUE2 ...])'
  24311. Depending on the alternative of the insn, the value will be one of
  24312. the specified values. This is a shorthand for using a 'cond' with
  24313. tests on the 'alternative' attribute.
  24314. '(set (attr NAME) VALUE)'
  24315. The first operand of this 'set' must be the special RTL expression
  24316. 'attr', whose sole operand is a string giving the name of the
  24317. attribute being set. VALUE is the value of the attribute.
  24318. The following shows three different ways of representing the same
  24319. attribute value specification:
  24320. (set_attr "type" "load,store,arith")
  24321. (set_attr_alternative "type"
  24322. [(const_string "load") (const_string "store")
  24323. (const_string "arith")])
  24324. (set (attr "type")
  24325. (cond [(eq_attr "alternative" "1") (const_string "load")
  24326. (eq_attr "alternative" "2") (const_string "store")]
  24327. (const_string "arith")))
  24328. The 'define_asm_attributes' expression provides a mechanism to specify
  24329. the attributes assigned to insns produced from an 'asm' statement. It
  24330. has the form:
  24331. (define_asm_attributes [ATTR-SETS])
  24332. where ATTR-SETS is specified the same as for both the 'define_insn' and
  24333. the 'define_peephole' expressions.
  24334. These values will typically be the "worst case" attribute values. For
  24335. example, they might indicate that the condition code will be clobbered.
  24336. A specification for a 'length' attribute is handled specially. The way
  24337. to compute the length of an 'asm' insn is to multiply the length
  24338. specified in the expression 'define_asm_attributes' by the number of
  24339. machine instructions specified in the 'asm' statement, determined by
  24340. counting the number of semicolons and newlines in the string.
  24341. Therefore, the value of the 'length' attribute specified in a
  24342. 'define_asm_attributes' should be the maximum possible length of a
  24343. single machine instruction.
  24344. 
  24345. File: gccint.info, Node: Attr Example, Next: Insn Lengths, Prev: Tagging Insns, Up: Insn Attributes
  24346. 17.19.4 Example of Attribute Specifications
  24347. -------------------------------------------
  24348. The judicious use of defaulting is important in the efficient use of
  24349. insn attributes. Typically, insns are divided into "types" and an
  24350. attribute, customarily called 'type', is used to represent this value.
  24351. This attribute is normally used only to define the default value for
  24352. other attributes. An example will clarify this usage.
  24353. Assume we have a RISC machine with a condition code and in which only
  24354. full-word operations are performed in registers. Let us assume that we
  24355. can divide all insns into loads, stores, (integer) arithmetic
  24356. operations, floating point operations, and branches.
  24357. Here we will concern ourselves with determining the effect of an insn
  24358. on the condition code and will limit ourselves to the following possible
  24359. effects: The condition code can be set unpredictably (clobbered), not be
  24360. changed, be set to agree with the results of the operation, or only
  24361. changed if the item previously set into the condition code has been
  24362. modified.
  24363. Here is part of a sample 'md' file for such a machine:
  24364. (define_attr "type" "load,store,arith,fp,branch" (const_string "arith"))
  24365. (define_attr "cc" "clobber,unchanged,set,change0"
  24366. (cond [(eq_attr "type" "load")
  24367. (const_string "change0")
  24368. (eq_attr "type" "store,branch")
  24369. (const_string "unchanged")
  24370. (eq_attr "type" "arith")
  24371. (if_then_else (match_operand:SI 0 "" "")
  24372. (const_string "set")
  24373. (const_string "clobber"))]
  24374. (const_string "clobber")))
  24375. (define_insn ""
  24376. [(set (match_operand:SI 0 "general_operand" "=r,r,m")
  24377. (match_operand:SI 1 "general_operand" "r,m,r"))]
  24378. ""
  24379. "@
  24380. move %0,%1
  24381. load %0,%1
  24382. store %0,%1"
  24383. [(set_attr "type" "arith,load,store")])
  24384. Note that we assume in the above example that arithmetic operations
  24385. performed on quantities smaller than a machine word clobber the
  24386. condition code since they will set the condition code to a value
  24387. corresponding to the full-word result.
  24388. 
  24389. File: gccint.info, Node: Insn Lengths, Next: Constant Attributes, Prev: Attr Example, Up: Insn Attributes
  24390. 17.19.5 Computing the Length of an Insn
  24391. ---------------------------------------
  24392. For many machines, multiple types of branch instructions are provided,
  24393. each for different length branch displacements. In most cases, the
  24394. assembler will choose the correct instruction to use. However, when the
  24395. assembler cannot do so, GCC can when a special attribute, the 'length'
  24396. attribute, is defined. This attribute must be defined to have numeric
  24397. values by specifying a null string in its 'define_attr'.
  24398. In the case of the 'length' attribute, two additional forms of
  24399. arithmetic terms are allowed in test expressions:
  24400. '(match_dup N)'
  24401. This refers to the address of operand N of the current insn, which
  24402. must be a 'label_ref'.
  24403. '(pc)'
  24404. For non-branch instructions and backward branch instructions, this
  24405. refers to the address of the current insn. But for forward branch
  24406. instructions, this refers to the address of the next insn, because
  24407. the length of the current insn is to be computed.
  24408. For normal insns, the length will be determined by value of the
  24409. 'length' attribute. In the case of 'addr_vec' and 'addr_diff_vec' insn
  24410. patterns, the length is computed as the number of vectors multiplied by
  24411. the size of each vector.
  24412. Lengths are measured in addressable storage units (bytes).
  24413. Note that it is possible to call functions via the 'symbol_ref'
  24414. mechanism to compute the length of an insn. However, if you use this
  24415. mechanism you must provide dummy clauses to express the maximum length
  24416. without using the function call. You can an example of this in the 'pa'
  24417. machine description for the 'call_symref' pattern.
  24418. The following macros can be used to refine the length computation:
  24419. 'ADJUST_INSN_LENGTH (INSN, LENGTH)'
  24420. If defined, modifies the length assigned to instruction INSN as a
  24421. function of the context in which it is used. LENGTH is an lvalue
  24422. that contains the initially computed length of the insn and should
  24423. be updated with the correct length of the insn.
  24424. This macro will normally not be required. A case in which it is
  24425. required is the ROMP. On this machine, the size of an 'addr_vec'
  24426. insn must be increased by two to compensate for the fact that
  24427. alignment may be required.
  24428. The routine that returns 'get_attr_length' (the value of the 'length'
  24429. attribute) can be used by the output routine to determine the form of
  24430. the branch instruction to be written, as the example below illustrates.
  24431. As an example of the specification of variable-length branches,
  24432. consider the IBM 360. If we adopt the convention that a register will
  24433. be set to the starting address of a function, we can jump to labels
  24434. within 4k of the start using a four-byte instruction. Otherwise, we
  24435. need a six-byte sequence to load the address from memory and then branch
  24436. to it.
  24437. On such a machine, a pattern for a branch instruction might be
  24438. specified as follows:
  24439. (define_insn "jump"
  24440. [(set (pc)
  24441. (label_ref (match_operand 0 "" "")))]
  24442. ""
  24443. {
  24444. return (get_attr_length (insn) == 4
  24445. ? "b %l0" : "l r15,=a(%l0); br r15");
  24446. }
  24447. [(set (attr "length")
  24448. (if_then_else (lt (match_dup 0) (const_int 4096))
  24449. (const_int 4)
  24450. (const_int 6)))])
  24451. 
  24452. File: gccint.info, Node: Constant Attributes, Next: Mnemonic Attribute, Prev: Insn Lengths, Up: Insn Attributes
  24453. 17.19.6 Constant Attributes
  24454. ---------------------------
  24455. A special form of 'define_attr', where the expression for the default
  24456. value is a 'const' expression, indicates an attribute that is constant
  24457. for a given run of the compiler. Constant attributes may be used to
  24458. specify which variety of processor is used. For example,
  24459. (define_attr "cpu" "m88100,m88110,m88000"
  24460. (const
  24461. (cond [(symbol_ref "TARGET_88100") (const_string "m88100")
  24462. (symbol_ref "TARGET_88110") (const_string "m88110")]
  24463. (const_string "m88000"))))
  24464. (define_attr "memory" "fast,slow"
  24465. (const
  24466. (if_then_else (symbol_ref "TARGET_FAST_MEM")
  24467. (const_string "fast")
  24468. (const_string "slow"))))
  24469. The routine generated for constant attributes has no parameters as it
  24470. does not depend on any particular insn. RTL expressions used to define
  24471. the value of a constant attribute may use the 'symbol_ref' form, but may
  24472. not use either the 'match_operand' form or 'eq_attr' forms involving
  24473. insn attributes.
  24474. 
  24475. File: gccint.info, Node: Mnemonic Attribute, Next: Delay Slots, Prev: Constant Attributes, Up: Insn Attributes
  24476. 17.19.7 Mnemonic Attribute
  24477. --------------------------
  24478. The 'mnemonic' attribute is a string type attribute holding the
  24479. instruction mnemonic for an insn alternative. The attribute values will
  24480. automatically be generated by the machine description parser if there is
  24481. an attribute definition in the md file:
  24482. (define_attr "mnemonic" "unknown" (const_string "unknown"))
  24483. The default value can be freely chosen as long as it does not collide
  24484. with any of the instruction mnemonics. This value will be used whenever
  24485. the machine description parser is not able to determine the mnemonic
  24486. string. This might be the case for output templates containing more
  24487. than a single instruction as in '"mvcle\t%0,%1,0\;jo\t.-4"'.
  24488. The 'mnemonic' attribute set is not generated automatically if the
  24489. instruction string is generated via C code.
  24490. An existing 'mnemonic' attribute set in an insn definition will not be
  24491. overriden by the md file parser. That way it is possible to manually
  24492. set the instruction mnemonics for the cases where the md file parser
  24493. fails to determine it automatically.
  24494. The 'mnemonic' attribute is useful for dealing with instruction
  24495. specific properties in the pipeline description without defining
  24496. additional insn attributes.
  24497. (define_attr "ooo_expanded" ""
  24498. (cond [(eq_attr "mnemonic" "dlr,dsgr,d,dsgf,stam,dsgfr,dlgr")
  24499. (const_int 1)]
  24500. (const_int 0)))
  24501. 
  24502. File: gccint.info, Node: Delay Slots, Next: Processor pipeline description, Prev: Mnemonic Attribute, Up: Insn Attributes
  24503. 17.19.8 Delay Slot Scheduling
  24504. -----------------------------
  24505. The insn attribute mechanism can be used to specify the requirements for
  24506. delay slots, if any, on a target machine. An instruction is said to
  24507. require a "delay slot" if some instructions that are physically after
  24508. the instruction are executed as if they were located before it. Classic
  24509. examples are branch and call instructions, which often execute the
  24510. following instruction before the branch or call is performed.
  24511. On some machines, conditional branch instructions can optionally
  24512. "annul" instructions in the delay slot. This means that the instruction
  24513. will not be executed for certain branch outcomes. Both instructions
  24514. that annul if the branch is true and instructions that annul if the
  24515. branch is false are supported.
  24516. Delay slot scheduling differs from instruction scheduling in that
  24517. determining whether an instruction needs a delay slot is dependent only
  24518. on the type of instruction being generated, not on data flow between the
  24519. instructions. See the next section for a discussion of data-dependent
  24520. instruction scheduling.
  24521. The requirement of an insn needing one or more delay slots is indicated
  24522. via the 'define_delay' expression. It has the following form:
  24523. (define_delay TEST
  24524. [DELAY-1 ANNUL-TRUE-1 ANNUL-FALSE-1
  24525. DELAY-2 ANNUL-TRUE-2 ANNUL-FALSE-2
  24526. ...])
  24527. TEST is an attribute test that indicates whether this 'define_delay'
  24528. applies to a particular insn. If so, the number of required delay slots
  24529. is determined by the length of the vector specified as the second
  24530. argument. An insn placed in delay slot N must satisfy attribute test
  24531. DELAY-N. ANNUL-TRUE-N is an attribute test that specifies which insns
  24532. may be annulled if the branch is true. Similarly, ANNUL-FALSE-N
  24533. specifies which insns in the delay slot may be annulled if the branch is
  24534. false. If annulling is not supported for that delay slot, '(nil)'
  24535. should be coded.
  24536. For example, in the common case where branch and call insns require a
  24537. single delay slot, which may contain any insn other than a branch or
  24538. call, the following would be placed in the 'md' file:
  24539. (define_delay (eq_attr "type" "branch,call")
  24540. [(eq_attr "type" "!branch,call") (nil) (nil)])
  24541. Multiple 'define_delay' expressions may be specified. In this case,
  24542. each such expression specifies different delay slot requirements and
  24543. there must be no insn for which tests in two 'define_delay' expressions
  24544. are both true.
  24545. For example, if we have a machine that requires one delay slot for
  24546. branches but two for calls, no delay slot can contain a branch or call
  24547. insn, and any valid insn in the delay slot for the branch can be
  24548. annulled if the branch is true, we might represent this as follows:
  24549. (define_delay (eq_attr "type" "branch")
  24550. [(eq_attr "type" "!branch,call")
  24551. (eq_attr "type" "!branch,call")
  24552. (nil)])
  24553. (define_delay (eq_attr "type" "call")
  24554. [(eq_attr "type" "!branch,call") (nil) (nil)
  24555. (eq_attr "type" "!branch,call") (nil) (nil)])
  24556. 
  24557. File: gccint.info, Node: Processor pipeline description, Prev: Delay Slots, Up: Insn Attributes
  24558. 17.19.9 Specifying processor pipeline description
  24559. -------------------------------------------------
  24560. To achieve better performance, most modern processors (super-pipelined,
  24561. superscalar RISC, and VLIW processors) have many "functional units" on
  24562. which several instructions can be executed simultaneously. An
  24563. instruction starts execution if its issue conditions are satisfied. If
  24564. not, the instruction is stalled until its conditions are satisfied.
  24565. Such "interlock (pipeline) delay" causes interruption of the fetching of
  24566. successor instructions (or demands nop instructions, e.g. for some MIPS
  24567. processors).
  24568. There are two major kinds of interlock delays in modern processors.
  24569. The first one is a data dependence delay determining "instruction
  24570. latency time". The instruction execution is not started until all
  24571. source data have been evaluated by prior instructions (there are more
  24572. complex cases when the instruction execution starts even when the data
  24573. are not available but will be ready in given time after the instruction
  24574. execution start). Taking the data dependence delays into account is
  24575. simple. The data dependence (true, output, and anti-dependence) delay
  24576. between two instructions is given by a constant. In most cases this
  24577. approach is adequate. The second kind of interlock delays is a
  24578. reservation delay. The reservation delay means that two instructions
  24579. under execution will be in need of shared processors resources, i.e.
  24580. buses, internal registers, and/or functional units, which are reserved
  24581. for some time. Taking this kind of delay into account is complex
  24582. especially for modern RISC processors.
  24583. The task of exploiting more processor parallelism is solved by an
  24584. instruction scheduler. For a better solution to this problem, the
  24585. instruction scheduler has to have an adequate description of the
  24586. processor parallelism (or "pipeline description"). GCC machine
  24587. descriptions describe processor parallelism and functional unit
  24588. reservations for groups of instructions with the aid of "regular
  24589. expressions".
  24590. The GCC instruction scheduler uses a "pipeline hazard recognizer" to
  24591. figure out the possibility of the instruction issue by the processor on
  24592. a given simulated processor cycle. The pipeline hazard recognizer is
  24593. automatically generated from the processor pipeline description. The
  24594. pipeline hazard recognizer generated from the machine description is
  24595. based on a deterministic finite state automaton (DFA): the instruction
  24596. issue is possible if there is a transition from one automaton state to
  24597. another one. This algorithm is very fast, and furthermore, its speed is
  24598. not dependent on processor complexity(1).
  24599. The rest of this section describes the directives that constitute an
  24600. automaton-based processor pipeline description. The order of these
  24601. constructions within the machine description file is not important.
  24602. The following optional construction describes names of automata
  24603. generated and used for the pipeline hazards recognition. Sometimes the
  24604. generated finite state automaton used by the pipeline hazard recognizer
  24605. is large. If we use more than one automaton and bind functional units
  24606. to the automata, the total size of the automata is usually less than the
  24607. size of the single automaton. If there is no one such construction,
  24608. only one finite state automaton is generated.
  24609. (define_automaton AUTOMATA-NAMES)
  24610. AUTOMATA-NAMES is a string giving names of the automata. The names are
  24611. separated by commas. All the automata should have unique names. The
  24612. automaton name is used in the constructions 'define_cpu_unit' and
  24613. 'define_query_cpu_unit'.
  24614. Each processor functional unit used in the description of instruction
  24615. reservations should be described by the following construction.
  24616. (define_cpu_unit UNIT-NAMES [AUTOMATON-NAME])
  24617. UNIT-NAMES is a string giving the names of the functional units
  24618. separated by commas. Don't use name 'nothing', it is reserved for other
  24619. goals.
  24620. AUTOMATON-NAME is a string giving the name of the automaton with which
  24621. the unit is bound. The automaton should be described in construction
  24622. 'define_automaton'. You should give "automaton-name", if there is a
  24623. defined automaton.
  24624. The assignment of units to automata are constrained by the uses of the
  24625. units in insn reservations. The most important constraint is: if a unit
  24626. reservation is present on a particular cycle of an alternative for an
  24627. insn reservation, then some unit from the same automaton must be present
  24628. on the same cycle for the other alternatives of the insn reservation.
  24629. The rest of the constraints are mentioned in the description of the
  24630. subsequent constructions.
  24631. The following construction describes CPU functional units analogously
  24632. to 'define_cpu_unit'. The reservation of such units can be queried for
  24633. an automaton state. The instruction scheduler never queries reservation
  24634. of functional units for given automaton state. So as a rule, you don't
  24635. need this construction. This construction could be used for future code
  24636. generation goals (e.g. to generate VLIW insn templates).
  24637. (define_query_cpu_unit UNIT-NAMES [AUTOMATON-NAME])
  24638. UNIT-NAMES is a string giving names of the functional units separated
  24639. by commas.
  24640. AUTOMATON-NAME is a string giving the name of the automaton with which
  24641. the unit is bound.
  24642. The following construction is the major one to describe pipeline
  24643. characteristics of an instruction.
  24644. (define_insn_reservation INSN-NAME DEFAULT_LATENCY
  24645. CONDITION REGEXP)
  24646. DEFAULT_LATENCY is a number giving latency time of the instruction.
  24647. There is an important difference between the old description and the
  24648. automaton based pipeline description. The latency time is used for all
  24649. dependencies when we use the old description. In the automaton based
  24650. pipeline description, the given latency time is only used for true
  24651. dependencies. The cost of anti-dependencies is always zero and the cost
  24652. of output dependencies is the difference between latency times of the
  24653. producing and consuming insns (if the difference is negative, the cost
  24654. is considered to be zero). You can always change the default costs for
  24655. any description by using the target hook 'TARGET_SCHED_ADJUST_COST'
  24656. (*note Scheduling::).
  24657. INSN-NAME is a string giving the internal name of the insn. The
  24658. internal names are used in constructions 'define_bypass' and in the
  24659. automaton description file generated for debugging. The internal name
  24660. has nothing in common with the names in 'define_insn'. It is a good
  24661. practice to use insn classes described in the processor manual.
  24662. CONDITION defines what RTL insns are described by this construction.
  24663. You should remember that you will be in trouble if CONDITION for two or
  24664. more different 'define_insn_reservation' constructions is TRUE for an
  24665. insn. In this case what reservation will be used for the insn is not
  24666. defined. Such cases are not checked during generation of the pipeline
  24667. hazards recognizer because in general recognizing that two conditions
  24668. may have the same value is quite difficult (especially if the conditions
  24669. contain 'symbol_ref'). It is also not checked during the pipeline
  24670. hazard recognizer work because it would slow down the recognizer
  24671. considerably.
  24672. REGEXP is a string describing the reservation of the cpu's functional
  24673. units by the instruction. The reservations are described by a regular
  24674. expression according to the following syntax:
  24675. regexp = regexp "," oneof
  24676. | oneof
  24677. oneof = oneof "|" allof
  24678. | allof
  24679. allof = allof "+" repeat
  24680. | repeat
  24681. repeat = element "*" number
  24682. | element
  24683. element = cpu_function_unit_name
  24684. | reservation_name
  24685. | result_name
  24686. | "nothing"
  24687. | "(" regexp ")"
  24688. * ',' is used for describing the start of the next cycle in the
  24689. reservation.
  24690. * '|' is used for describing a reservation described by the first
  24691. regular expression *or* a reservation described by the second
  24692. regular expression *or* etc.
  24693. * '+' is used for describing a reservation described by the first
  24694. regular expression *and* a reservation described by the second
  24695. regular expression *and* etc.
  24696. * '*' is used for convenience and simply means a sequence in which
  24697. the regular expression are repeated NUMBER times with cycle
  24698. advancing (see ',').
  24699. * 'cpu_function_unit_name' denotes reservation of the named
  24700. functional unit.
  24701. * 'reservation_name' -- see description of construction
  24702. 'define_reservation'.
  24703. * 'nothing' denotes no unit reservations.
  24704. Sometimes unit reservations for different insns contain common parts.
  24705. In such case, you can simplify the pipeline description by describing
  24706. the common part by the following construction
  24707. (define_reservation RESERVATION-NAME REGEXP)
  24708. RESERVATION-NAME is a string giving name of REGEXP. Functional unit
  24709. names and reservation names are in the same name space. So the
  24710. reservation names should be different from the functional unit names and
  24711. cannot be the reserved name 'nothing'.
  24712. The following construction is used to describe exceptions in the
  24713. latency time for given instruction pair. This is so called bypasses.
  24714. (define_bypass NUMBER OUT_INSN_NAMES IN_INSN_NAMES
  24715. [GUARD])
  24716. NUMBER defines when the result generated by the instructions given in
  24717. string OUT_INSN_NAMES will be ready for the instructions given in string
  24718. IN_INSN_NAMES. Each of these strings is a comma-separated list of
  24719. filename-style globs and they refer to the names of
  24720. 'define_insn_reservation's. For example:
  24721. (define_bypass 1 "cpu1_load_*, cpu1_store_*" "cpu1_load_*")
  24722. defines a bypass between instructions that start with 'cpu1_load_' or
  24723. 'cpu1_store_' and those that start with 'cpu1_load_'.
  24724. GUARD is an optional string giving the name of a C function which
  24725. defines an additional guard for the bypass. The function will get the
  24726. two insns as parameters. If the function returns zero the bypass will
  24727. be ignored for this case. The additional guard is necessary to
  24728. recognize complicated bypasses, e.g. when the consumer is only an
  24729. address of insn 'store' (not a stored value).
  24730. If there are more one bypass with the same output and input insns, the
  24731. chosen bypass is the first bypass with a guard in description whose
  24732. guard function returns nonzero. If there is no such bypass, then bypass
  24733. without the guard function is chosen.
  24734. The following five constructions are usually used to describe VLIW
  24735. processors, or more precisely, to describe a placement of small
  24736. instructions into VLIW instruction slots. They can be used for RISC
  24737. processors, too.
  24738. (exclusion_set UNIT-NAMES UNIT-NAMES)
  24739. (presence_set UNIT-NAMES PATTERNS)
  24740. (final_presence_set UNIT-NAMES PATTERNS)
  24741. (absence_set UNIT-NAMES PATTERNS)
  24742. (final_absence_set UNIT-NAMES PATTERNS)
  24743. UNIT-NAMES is a string giving names of functional units separated by
  24744. commas.
  24745. PATTERNS is a string giving patterns of functional units separated by
  24746. comma. Currently pattern is one unit or units separated by
  24747. white-spaces.
  24748. The first construction ('exclusion_set') means that each functional
  24749. unit in the first string cannot be reserved simultaneously with a unit
  24750. whose name is in the second string and vice versa. For example, the
  24751. construction is useful for describing processors (e.g. some SPARC
  24752. processors) with a fully pipelined floating point functional unit which
  24753. can execute simultaneously only single floating point insns or only
  24754. double floating point insns.
  24755. The second construction ('presence_set') means that each functional
  24756. unit in the first string cannot be reserved unless at least one of
  24757. pattern of units whose names are in the second string is reserved. This
  24758. is an asymmetric relation. For example, it is useful for description
  24759. that VLIW 'slot1' is reserved after 'slot0' reservation. We could
  24760. describe it by the following construction
  24761. (presence_set "slot1" "slot0")
  24762. Or 'slot1' is reserved only after 'slot0' and unit 'b0' reservation.
  24763. In this case we could write
  24764. (presence_set "slot1" "slot0 b0")
  24765. The third construction ('final_presence_set') is analogous to
  24766. 'presence_set'. The difference between them is when checking is done.
  24767. When an instruction is issued in given automaton state reflecting all
  24768. current and planned unit reservations, the automaton state is changed.
  24769. The first state is a source state, the second one is a result state.
  24770. Checking for 'presence_set' is done on the source state reservation,
  24771. checking for 'final_presence_set' is done on the result reservation.
  24772. This construction is useful to describe a reservation which is actually
  24773. two subsequent reservations. For example, if we use
  24774. (presence_set "slot1" "slot0")
  24775. the following insn will be never issued (because 'slot1' requires
  24776. 'slot0' which is absent in the source state).
  24777. (define_reservation "insn_and_nop" "slot0 + slot1")
  24778. but it can be issued if we use analogous 'final_presence_set'.
  24779. The forth construction ('absence_set') means that each functional unit
  24780. in the first string can be reserved only if each pattern of units whose
  24781. names are in the second string is not reserved. This is an asymmetric
  24782. relation (actually 'exclusion_set' is analogous to this one but it is
  24783. symmetric). For example it might be useful in a VLIW description to say
  24784. that 'slot0' cannot be reserved after either 'slot1' or 'slot2' have
  24785. been reserved. This can be described as:
  24786. (absence_set "slot0" "slot1, slot2")
  24787. Or 'slot2' cannot be reserved if 'slot0' and unit 'b0' are reserved or
  24788. 'slot1' and unit 'b1' are reserved. In this case we could write
  24789. (absence_set "slot2" "slot0 b0, slot1 b1")
  24790. All functional units mentioned in a set should belong to the same
  24791. automaton.
  24792. The last construction ('final_absence_set') is analogous to
  24793. 'absence_set' but checking is done on the result (state) reservation.
  24794. See comments for 'final_presence_set'.
  24795. You can control the generator of the pipeline hazard recognizer with
  24796. the following construction.
  24797. (automata_option OPTIONS)
  24798. OPTIONS is a string giving options which affect the generated code.
  24799. Currently there are the following options:
  24800. * "no-minimization" makes no minimization of the automaton. This is
  24801. only worth to do when we are debugging the description and need to
  24802. look more accurately at reservations of states.
  24803. * "time" means printing time statistics about the generation of
  24804. automata.
  24805. * "stats" means printing statistics about the generated automata such
  24806. as the number of DFA states, NDFA states and arcs.
  24807. * "v" means a generation of the file describing the result automata.
  24808. The file has suffix '.dfa' and can be used for the description
  24809. verification and debugging.
  24810. * "w" means a generation of warning instead of error for non-critical
  24811. errors.
  24812. * "no-comb-vect" prevents the automaton generator from generating two
  24813. data structures and comparing them for space efficiency. Using a
  24814. comb vector to represent transitions may be better, but it can be
  24815. very expensive to construct. This option is useful if the build
  24816. process spends an unacceptably long time in genautomata.
  24817. * "ndfa" makes nondeterministic finite state automata. This affects
  24818. the treatment of operator '|' in the regular expressions. The
  24819. usual treatment of the operator is to try the first alternative
  24820. and, if the reservation is not possible, the second alternative.
  24821. The nondeterministic treatment means trying all alternatives, some
  24822. of them may be rejected by reservations in the subsequent insns.
  24823. * "collapse-ndfa" modifies the behavior of the generator when
  24824. producing an automaton. An additional state transition to collapse
  24825. a nondeterministic NDFA state to a deterministic DFA state is
  24826. generated. It can be triggered by passing 'const0_rtx' to
  24827. state_transition. In such an automaton, cycle advance transitions
  24828. are available only for these collapsed states. This option is
  24829. useful for ports that want to use the 'ndfa' option, but also want
  24830. to use 'define_query_cpu_unit' to assign units to insns issued in a
  24831. cycle.
  24832. * "progress" means output of a progress bar showing how many states
  24833. were generated so far for automaton being processed. This is
  24834. useful during debugging a DFA description. If you see too many
  24835. generated states, you could interrupt the generator of the pipeline
  24836. hazard recognizer and try to figure out a reason for generation of
  24837. the huge automaton.
  24838. As an example, consider a superscalar RISC machine which can issue
  24839. three insns (two integer insns and one floating point insn) on the cycle
  24840. but can finish only two insns. To describe this, we define the
  24841. following functional units.
  24842. (define_cpu_unit "i0_pipeline, i1_pipeline, f_pipeline")
  24843. (define_cpu_unit "port0, port1")
  24844. All simple integer insns can be executed in any integer pipeline and
  24845. their result is ready in two cycles. The simple integer insns are
  24846. issued into the first pipeline unless it is reserved, otherwise they are
  24847. issued into the second pipeline. Integer division and multiplication
  24848. insns can be executed only in the second integer pipeline and their
  24849. results are ready correspondingly in 9 and 4 cycles. The integer
  24850. division is not pipelined, i.e. the subsequent integer division insn
  24851. cannot be issued until the current division insn finished. Floating
  24852. point insns are fully pipelined and their results are ready in 3 cycles.
  24853. Where the result of a floating point insn is used by an integer insn, an
  24854. additional delay of one cycle is incurred. To describe all of this we
  24855. could specify
  24856. (define_cpu_unit "div")
  24857. (define_insn_reservation "simple" 2 (eq_attr "type" "int")
  24858. "(i0_pipeline | i1_pipeline), (port0 | port1)")
  24859. (define_insn_reservation "mult" 4 (eq_attr "type" "mult")
  24860. "i1_pipeline, nothing*2, (port0 | port1)")
  24861. (define_insn_reservation "div" 9 (eq_attr "type" "div")
  24862. "i1_pipeline, div*7, div + (port0 | port1)")
  24863. (define_insn_reservation "float" 3 (eq_attr "type" "float")
  24864. "f_pipeline, nothing, (port0 | port1))
  24865. (define_bypass 4 "float" "simple,mult,div")
  24866. To simplify the description we could describe the following reservation
  24867. (define_reservation "finish" "port0|port1")
  24868. and use it in all 'define_insn_reservation' as in the following
  24869. construction
  24870. (define_insn_reservation "simple" 2 (eq_attr "type" "int")
  24871. "(i0_pipeline | i1_pipeline), finish")
  24872. ---------- Footnotes ----------
  24873. (1) However, the size of the automaton depends on processor
  24874. complexity. To limit this effect, machine descriptions can split
  24875. orthogonal parts of the machine description among several automata: but
  24876. then, since each of these must be stepped independently, this does cause
  24877. a small decrease in the algorithm's performance.
  24878. 
  24879. File: gccint.info, Node: Conditional Execution, Next: Define Subst, Prev: Insn Attributes, Up: Machine Desc
  24880. 17.20 Conditional Execution
  24881. ===========================
  24882. A number of architectures provide for some form of conditional
  24883. execution, or predication. The hallmark of this feature is the ability
  24884. to nullify most of the instructions in the instruction set. When the
  24885. instruction set is large and not entirely symmetric, it can be quite
  24886. tedious to describe these forms directly in the '.md' file. An
  24887. alternative is the 'define_cond_exec' template.
  24888. (define_cond_exec
  24889. [PREDICATE-PATTERN]
  24890. "CONDITION"
  24891. "OUTPUT-TEMPLATE"
  24892. "OPTIONAL-INSN-ATTRIBUES")
  24893. PREDICATE-PATTERN is the condition that must be true for the insn to be
  24894. executed at runtime and should match a relational operator. One can use
  24895. 'match_operator' to match several relational operators at once. Any
  24896. 'match_operand' operands must have no more than one alternative.
  24897. CONDITION is a C expression that must be true for the generated pattern
  24898. to match.
  24899. OUTPUT-TEMPLATE is a string similar to the 'define_insn' output
  24900. template (*note Output Template::), except that the '*' and '@' special
  24901. cases do not apply. This is only useful if the assembly text for the
  24902. predicate is a simple prefix to the main insn. In order to handle the
  24903. general case, there is a global variable 'current_insn_predicate' that
  24904. will contain the entire predicate if the current insn is predicated, and
  24905. will otherwise be 'NULL'.
  24906. OPTIONAL-INSN-ATTRIBUTES is an optional vector of attributes that gets
  24907. appended to the insn attributes of the produced cond_exec rtx. It can
  24908. be used to add some distinguishing attribute to cond_exec rtxs produced
  24909. that way. An example usage would be to use this attribute in
  24910. conjunction with attributes on the main pattern to disable particular
  24911. alternatives under certain conditions.
  24912. When 'define_cond_exec' is used, an implicit reference to the
  24913. 'predicable' instruction attribute is made. *Note Insn Attributes::.
  24914. This attribute must be a boolean (i.e. have exactly two elements in its
  24915. LIST-OF-VALUES), with the possible values being 'no' and 'yes'. The
  24916. default and all uses in the insns must be a simple constant, not a
  24917. complex expressions. It may, however, depend on the alternative, by
  24918. using a comma-separated list of values. If that is the case, the port
  24919. should also define an 'enabled' attribute (*note Disable Insn
  24920. Alternatives::), which should also allow only 'no' and 'yes' as its
  24921. values.
  24922. For each 'define_insn' for which the 'predicable' attribute is true, a
  24923. new 'define_insn' pattern will be generated that matches a predicated
  24924. version of the instruction. For example,
  24925. (define_insn "addsi"
  24926. [(set (match_operand:SI 0 "register_operand" "r")
  24927. (plus:SI (match_operand:SI 1 "register_operand" "r")
  24928. (match_operand:SI 2 "register_operand" "r")))]
  24929. "TEST1"
  24930. "add %2,%1,%0")
  24931. (define_cond_exec
  24932. [(ne (match_operand:CC 0 "register_operand" "c")
  24933. (const_int 0))]
  24934. "TEST2"
  24935. "(%0)")
  24936. generates a new pattern
  24937. (define_insn ""
  24938. [(cond_exec
  24939. (ne (match_operand:CC 3 "register_operand" "c") (const_int 0))
  24940. (set (match_operand:SI 0 "register_operand" "r")
  24941. (plus:SI (match_operand:SI 1 "register_operand" "r")
  24942. (match_operand:SI 2 "register_operand" "r"))))]
  24943. "(TEST2) && (TEST1)"
  24944. "(%3) add %2,%1,%0")
  24945. 
  24946. File: gccint.info, Node: Define Subst, Next: Constant Definitions, Prev: Conditional Execution, Up: Machine Desc
  24947. 17.21 RTL Templates Transformations
  24948. ===================================
  24949. For some hardware architectures there are common cases when the RTL
  24950. templates for the instructions can be derived from the other RTL
  24951. templates using simple transformations. E.g., 'i386.md' contains an RTL
  24952. template for the ordinary 'sub' instruction-- '*subsi_1', and for the
  24953. 'sub' instruction with subsequent zero-extension--'*subsi_1_zext'. Such
  24954. cases can be easily implemented by a single meta-template capable of
  24955. generating a modified case based on the initial one:
  24956. (define_subst "NAME"
  24957. [INPUT-TEMPLATE]
  24958. "CONDITION"
  24959. [OUTPUT-TEMPLATE])
  24960. INPUT-TEMPLATE is a pattern describing the source RTL template, which
  24961. will be transformed.
  24962. CONDITION is a C expression that is conjunct with the condition from
  24963. the input-template to generate a condition to be used in the
  24964. output-template.
  24965. OUTPUT-TEMPLATE is a pattern that will be used in the resulting
  24966. template.
  24967. 'define_subst' mechanism is tightly coupled with the notion of the
  24968. subst attribute (*note Subst Iterators::). The use of 'define_subst' is
  24969. triggered by a reference to a subst attribute in the transforming RTL
  24970. template. This reference initiates duplication of the source RTL
  24971. template and substitution of the attributes with their values. The
  24972. source RTL template is left unchanged, while the copy is transformed by
  24973. 'define_subst'. This transformation can fail in the case when the
  24974. source RTL template is not matched against the input-template of the
  24975. 'define_subst'. In such case the copy is deleted.
  24976. 'define_subst' can be used only in 'define_insn' and 'define_expand',
  24977. it cannot be used in other expressions (e.g. in
  24978. 'define_insn_and_split').
  24979. * Menu:
  24980. * Define Subst Example:: Example of 'define_subst' work.
  24981. * Define Subst Pattern Matching:: Process of template comparison.
  24982. * Define Subst Output Template:: Generation of output template.
  24983. 
  24984. File: gccint.info, Node: Define Subst Example, Next: Define Subst Pattern Matching, Up: Define Subst
  24985. 17.21.1 'define_subst' Example
  24986. ------------------------------
  24987. To illustrate how 'define_subst' works, let us examine a simple template
  24988. transformation.
  24989. Suppose there are two kinds of instructions: one that touches flags and
  24990. the other that does not. The instructions of the second type could be
  24991. generated with the following 'define_subst':
  24992. (define_subst "add_clobber_subst"
  24993. [(set (match_operand:SI 0 "" "")
  24994. (match_operand:SI 1 "" ""))]
  24995. ""
  24996. [(set (match_dup 0)
  24997. (match_dup 1))
  24998. (clobber (reg:CC FLAGS_REG))])
  24999. This 'define_subst' can be applied to any RTL pattern containing 'set'
  25000. of mode SI and generates a copy with clobber when it is applied.
  25001. Assume there is an RTL template for a 'max' instruction to be used in
  25002. 'define_subst' mentioned above:
  25003. (define_insn "maxsi"
  25004. [(set (match_operand:SI 0 "register_operand" "=r")
  25005. (max:SI
  25006. (match_operand:SI 1 "register_operand" "r")
  25007. (match_operand:SI 2 "register_operand" "r")))]
  25008. ""
  25009. "max\t{%2, %1, %0|%0, %1, %2}"
  25010. [...])
  25011. To mark the RTL template for 'define_subst' application,
  25012. subst-attributes are used. They should be declared in advance:
  25013. (define_subst_attr "add_clobber_name" "add_clobber_subst" "_noclobber" "_clobber")
  25014. Here 'add_clobber_name' is the attribute name, 'add_clobber_subst' is
  25015. the name of the corresponding 'define_subst', the third argument
  25016. ('_noclobber') is the attribute value that would be substituted into the
  25017. unchanged version of the source RTL template, and the last argument
  25018. ('_clobber') is the value that would be substituted into the second,
  25019. transformed, version of the RTL template.
  25020. Once the subst-attribute has been defined, it should be used in RTL
  25021. templates which need to be processed by the 'define_subst'. So, the
  25022. original RTL template should be changed:
  25023. (define_insn "maxsi<add_clobber_name>"
  25024. [(set (match_operand:SI 0 "register_operand" "=r")
  25025. (max:SI
  25026. (match_operand:SI 1 "register_operand" "r")
  25027. (match_operand:SI 2 "register_operand" "r")))]
  25028. ""
  25029. "max\t{%2, %1, %0|%0, %1, %2}"
  25030. [...])
  25031. The result of the 'define_subst' usage would look like the following:
  25032. (define_insn "maxsi_noclobber"
  25033. [(set (match_operand:SI 0 "register_operand" "=r")
  25034. (max:SI
  25035. (match_operand:SI 1 "register_operand" "r")
  25036. (match_operand:SI 2 "register_operand" "r")))]
  25037. ""
  25038. "max\t{%2, %1, %0|%0, %1, %2}"
  25039. [...])
  25040. (define_insn "maxsi_clobber"
  25041. [(set (match_operand:SI 0 "register_operand" "=r")
  25042. (max:SI
  25043. (match_operand:SI 1 "register_operand" "r")
  25044. (match_operand:SI 2 "register_operand" "r")))
  25045. (clobber (reg:CC FLAGS_REG))]
  25046. ""
  25047. "max\t{%2, %1, %0|%0, %1, %2}"
  25048. [...])
  25049. 
  25050. File: gccint.info, Node: Define Subst Pattern Matching, Next: Define Subst Output Template, Prev: Define Subst Example, Up: Define Subst
  25051. 17.21.2 Pattern Matching in 'define_subst'
  25052. ------------------------------------------
  25053. All expressions, allowed in 'define_insn' or 'define_expand', are
  25054. allowed in the input-template of 'define_subst', except 'match_par_dup',
  25055. 'match_scratch', 'match_parallel'. The meanings of expressions in the
  25056. input-template were changed:
  25057. 'match_operand' matches any expression (possibly, a subtree in
  25058. RTL-template), if modes of the 'match_operand' and this expression are
  25059. the same, or mode of the 'match_operand' is 'VOIDmode', or this
  25060. expression is 'match_dup', 'match_op_dup'. If the expression is
  25061. 'match_operand' too, and predicate of 'match_operand' from the input
  25062. pattern is not empty, then the predicates are compared. That can be
  25063. used for more accurate filtering of accepted RTL-templates.
  25064. 'match_operator' matches common operators (like 'plus', 'minus'),
  25065. 'unspec', 'unspec_volatile' operators and 'match_operator's from the
  25066. original pattern if the modes match and 'match_operator' from the input
  25067. pattern has the same number of operands as the operator from the
  25068. original pattern.
  25069. 
  25070. File: gccint.info, Node: Define Subst Output Template, Prev: Define Subst Pattern Matching, Up: Define Subst
  25071. 17.21.3 Generation of output template in 'define_subst'
  25072. -------------------------------------------------------
  25073. If all necessary checks for 'define_subst' application pass, a new
  25074. RTL-pattern, based on the output-template, is created to replace the old
  25075. template. Like in input-patterns, meanings of some RTL expressions are
  25076. changed when they are used in output-patterns of a 'define_subst'.
  25077. Thus, 'match_dup' is used for copying the whole expression from the
  25078. original pattern, which matched corresponding 'match_operand' from the
  25079. input pattern.
  25080. 'match_dup N' is used in the output template to be replaced with the
  25081. expression from the original pattern, which matched 'match_operand N'
  25082. from the input pattern. As a consequence, 'match_dup' cannot be used to
  25083. point to 'match_operand's from the output pattern, it should always
  25084. refer to a 'match_operand' from the input pattern. If a 'match_dup N'
  25085. occurs more than once in the output template, its first occurrence is
  25086. replaced with the expression from the original pattern, and the
  25087. subsequent expressions are replaced with 'match_dup N', i.e., a
  25088. reference to the first expression.
  25089. In the output template one can refer to the expressions from the
  25090. original pattern and create new ones. For instance, some operands could
  25091. be added by means of standard 'match_operand'.
  25092. After replacing 'match_dup' with some RTL-subtree from the original
  25093. pattern, it could happen that several 'match_operand's in the output
  25094. pattern have the same indexes. It is unknown, how many and what indexes
  25095. would be used in the expression which would replace 'match_dup', so such
  25096. conflicts in indexes are inevitable. To overcome this issue,
  25097. 'match_operands' and 'match_operators', which were introduced into the
  25098. output pattern, are renumerated when all 'match_dup's are replaced.
  25099. Number of alternatives in 'match_operand's introduced into the output
  25100. template 'M' could differ from the number of alternatives in the
  25101. original pattern 'N', so in the resultant pattern there would be 'N*M'
  25102. alternatives. Thus, constraints from the original pattern would be
  25103. duplicated 'N' times, constraints from the output pattern would be
  25104. duplicated 'M' times, producing all possible combinations.
  25105. 
  25106. File: gccint.info, Node: Constant Definitions, Next: Iterators, Prev: Define Subst, Up: Machine Desc
  25107. 17.22 Constant Definitions
  25108. ==========================
  25109. Using literal constants inside instruction patterns reduces legibility
  25110. and can be a maintenance problem.
  25111. To overcome this problem, you may use the 'define_constants'
  25112. expression. It contains a vector of name-value pairs. From that point
  25113. on, wherever any of the names appears in the MD file, it is as if the
  25114. corresponding value had been written instead. You may use
  25115. 'define_constants' multiple times; each appearance adds more constants
  25116. to the table. It is an error to redefine a constant with a different
  25117. value.
  25118. To come back to the a29k load multiple example, instead of
  25119. (define_insn ""
  25120. [(match_parallel 0 "load_multiple_operation"
  25121. [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
  25122. (match_operand:SI 2 "memory_operand" "m"))
  25123. (use (reg:SI 179))
  25124. (clobber (reg:SI 179))])]
  25125. ""
  25126. "loadm 0,0,%1,%2")
  25127. You could write:
  25128. (define_constants [
  25129. (R_BP 177)
  25130. (R_FC 178)
  25131. (R_CR 179)
  25132. (R_Q 180)
  25133. ])
  25134. (define_insn ""
  25135. [(match_parallel 0 "load_multiple_operation"
  25136. [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
  25137. (match_operand:SI 2 "memory_operand" "m"))
  25138. (use (reg:SI R_CR))
  25139. (clobber (reg:SI R_CR))])]
  25140. ""
  25141. "loadm 0,0,%1,%2")
  25142. The constants that are defined with a define_constant are also output
  25143. in the insn-codes.h header file as #defines.
  25144. You can also use the machine description file to define enumerations.
  25145. Like the constants defined by 'define_constant', these enumerations are
  25146. visible to both the machine description file and the main C code.
  25147. The syntax is as follows:
  25148. (define_c_enum "NAME" [
  25149. VALUE0
  25150. VALUE1
  25151. ...
  25152. VALUEN
  25153. ])
  25154. This definition causes the equivalent of the following C code to appear
  25155. in 'insn-constants.h':
  25156. enum NAME {
  25157. VALUE0 = 0,
  25158. VALUE1 = 1,
  25159. ...
  25160. VALUEN = N
  25161. };
  25162. #define NUM_CNAME_VALUES (N + 1)
  25163. where CNAME is the capitalized form of NAME. It also makes each VALUEI
  25164. available in the machine description file, just as if it had been
  25165. declared with:
  25166. (define_constants [(VALUEI I)])
  25167. Each VALUEI is usually an upper-case identifier and usually begins with
  25168. CNAME.
  25169. You can split the enumeration definition into as many statements as you
  25170. like. The above example is directly equivalent to:
  25171. (define_c_enum "NAME" [VALUE0])
  25172. (define_c_enum "NAME" [VALUE1])
  25173. ...
  25174. (define_c_enum "NAME" [VALUEN])
  25175. Splitting the enumeration helps to improve the modularity of each
  25176. individual '.md' file. For example, if a port defines its
  25177. synchronization instructions in a separate 'sync.md' file, it is
  25178. convenient to define all synchronization-specific enumeration values in
  25179. 'sync.md' rather than in the main '.md' file.
  25180. Some enumeration names have special significance to GCC:
  25181. 'unspecv'
  25182. If an enumeration called 'unspecv' is defined, GCC will use it when
  25183. printing out 'unspec_volatile' expressions. For example:
  25184. (define_c_enum "unspecv" [
  25185. UNSPECV_BLOCKAGE
  25186. ])
  25187. causes GCC to print '(unspec_volatile ... 0)' as:
  25188. (unspec_volatile ... UNSPECV_BLOCKAGE)
  25189. 'unspec'
  25190. If an enumeration called 'unspec' is defined, GCC will use it when
  25191. printing out 'unspec' expressions. GCC will also use it when
  25192. printing out 'unspec_volatile' expressions unless an 'unspecv'
  25193. enumeration is also defined. You can therefore decide whether to
  25194. keep separate enumerations for volatile and non-volatile
  25195. expressions or whether to use the same enumeration for both.
  25196. Another way of defining an enumeration is to use 'define_enum':
  25197. (define_enum "NAME" [
  25198. VALUE0
  25199. VALUE1
  25200. ...
  25201. VALUEN
  25202. ])
  25203. This directive implies:
  25204. (define_c_enum "NAME" [
  25205. CNAME_CVALUE0
  25206. CNAME_CVALUE1
  25207. ...
  25208. CNAME_CVALUEN
  25209. ])
  25210. where CVALUEI is the capitalized form of VALUEI. However, unlike
  25211. 'define_c_enum', the enumerations defined by 'define_enum' can be used
  25212. in attribute specifications (*note define_enum_attr::).
  25213. 
  25214. File: gccint.info, Node: Iterators, Prev: Constant Definitions, Up: Machine Desc
  25215. 17.23 Iterators
  25216. ===============
  25217. Ports often need to define similar patterns for more than one machine
  25218. mode or for more than one rtx code. GCC provides some simple iterator
  25219. facilities to make this process easier.
  25220. * Menu:
  25221. * Mode Iterators:: Generating variations of patterns for different modes.
  25222. * Code Iterators:: Doing the same for codes.
  25223. * Int Iterators:: Doing the same for integers.
  25224. * Subst Iterators:: Generating variations of patterns for define_subst.
  25225. * Parameterized Names:: Specifying iterator values in C++ code.
  25226. 
  25227. File: gccint.info, Node: Mode Iterators, Next: Code Iterators, Up: Iterators
  25228. 17.23.1 Mode Iterators
  25229. ----------------------
  25230. Ports often need to define similar patterns for two or more different
  25231. modes. For example:
  25232. * If a processor has hardware support for both single and double
  25233. floating-point arithmetic, the 'SFmode' patterns tend to be very
  25234. similar to the 'DFmode' ones.
  25235. * If a port uses 'SImode' pointers in one configuration and 'DImode'
  25236. pointers in another, it will usually have very similar 'SImode' and
  25237. 'DImode' patterns for manipulating pointers.
  25238. Mode iterators allow several patterns to be instantiated from one '.md'
  25239. file template. They can be used with any type of rtx-based construct,
  25240. such as a 'define_insn', 'define_split', or 'define_peephole2'.
  25241. * Menu:
  25242. * Defining Mode Iterators:: Defining a new mode iterator.
  25243. * Substitutions:: Combining mode iterators with substitutions
  25244. * Examples:: Examples
  25245. 
  25246. File: gccint.info, Node: Defining Mode Iterators, Next: Substitutions, Up: Mode Iterators
  25247. 17.23.1.1 Defining Mode Iterators
  25248. .................................
  25249. The syntax for defining a mode iterator is:
  25250. (define_mode_iterator NAME [(MODE1 "COND1") ... (MODEN "CONDN")])
  25251. This allows subsequent '.md' file constructs to use the mode suffix
  25252. ':NAME'. Every construct that does so will be expanded N times, once
  25253. with every use of ':NAME' replaced by ':MODE1', once with every use
  25254. replaced by ':MODE2', and so on. In the expansion for a particular
  25255. MODEI, every C condition will also require that CONDI be true.
  25256. For example:
  25257. (define_mode_iterator P [(SI "Pmode == SImode") (DI "Pmode == DImode")])
  25258. defines a new mode suffix ':P'. Every construct that uses ':P' will be
  25259. expanded twice, once with every ':P' replaced by ':SI' and once with
  25260. every ':P' replaced by ':DI'. The ':SI' version will only apply if
  25261. 'Pmode == SImode' and the ':DI' version will only apply if 'Pmode ==
  25262. DImode'.
  25263. As with other '.md' conditions, an empty string is treated as "always
  25264. true". '(MODE "")' can also be abbreviated to 'MODE'. For example:
  25265. (define_mode_iterator GPR [SI (DI "TARGET_64BIT")])
  25266. means that the ':DI' expansion only applies if 'TARGET_64BIT' but that
  25267. the ':SI' expansion has no such constraint.
  25268. Iterators are applied in the order they are defined. This can be
  25269. significant if two iterators are used in a construct that requires
  25270. substitutions. *Note Substitutions::.
  25271. 
  25272. File: gccint.info, Node: Substitutions, Next: Examples, Prev: Defining Mode Iterators, Up: Mode Iterators
  25273. 17.23.1.2 Substitution in Mode Iterators
  25274. ........................................
  25275. If an '.md' file construct uses mode iterators, each version of the
  25276. construct will often need slightly different strings or modes. For
  25277. example:
  25278. * When a 'define_expand' defines several 'addM3' patterns (*note
  25279. Standard Names::), each expander will need to use the appropriate
  25280. mode name for M.
  25281. * When a 'define_insn' defines several instruction patterns, each
  25282. instruction will often use a different assembler mnemonic.
  25283. * When a 'define_insn' requires operands with different modes, using
  25284. an iterator for one of the operand modes usually requires a
  25285. specific mode for the other operand(s).
  25286. GCC supports such variations through a system of "mode attributes".
  25287. There are two standard attributes: 'mode', which is the name of the mode
  25288. in lower case, and 'MODE', which is the same thing in upper case. You
  25289. can define other attributes using:
  25290. (define_mode_attr NAME [(MODE1 "VALUE1") ... (MODEN "VALUEN")])
  25291. where NAME is the name of the attribute and VALUEI is the value
  25292. associated with MODEI.
  25293. When GCC replaces some :ITERATOR with :MODE, it will scan each string
  25294. and mode in the pattern for sequences of the form '<ITERATOR:ATTR>',
  25295. where ATTR is the name of a mode attribute. If the attribute is defined
  25296. for MODE, the whole '<...>' sequence will be replaced by the appropriate
  25297. attribute value.
  25298. For example, suppose an '.md' file has:
  25299. (define_mode_iterator P [(SI "Pmode == SImode") (DI "Pmode == DImode")])
  25300. (define_mode_attr load [(SI "lw") (DI "ld")])
  25301. If one of the patterns that uses ':P' contains the string
  25302. '"<P:load>\t%0,%1"', the 'SI' version of that pattern will use
  25303. '"lw\t%0,%1"' and the 'DI' version will use '"ld\t%0,%1"'.
  25304. Here is an example of using an attribute for a mode:
  25305. (define_mode_iterator LONG [SI DI])
  25306. (define_mode_attr SHORT [(SI "HI") (DI "SI")])
  25307. (define_insn ...
  25308. (sign_extend:LONG (match_operand:<LONG:SHORT> ...)) ...)
  25309. The 'ITERATOR:' prefix may be omitted, in which case the substitution
  25310. will be attempted for every iterator expansion.
  25311. 
  25312. File: gccint.info, Node: Examples, Prev: Substitutions, Up: Mode Iterators
  25313. 17.23.1.3 Mode Iterator Examples
  25314. ................................
  25315. Here is an example from the MIPS port. It defines the following modes
  25316. and attributes (among others):
  25317. (define_mode_iterator GPR [SI (DI "TARGET_64BIT")])
  25318. (define_mode_attr d [(SI "") (DI "d")])
  25319. and uses the following template to define both 'subsi3' and 'subdi3':
  25320. (define_insn "sub<mode>3"
  25321. [(set (match_operand:GPR 0 "register_operand" "=d")
  25322. (minus:GPR (match_operand:GPR 1 "register_operand" "d")
  25323. (match_operand:GPR 2 "register_operand" "d")))]
  25324. ""
  25325. "<d>subu\t%0,%1,%2"
  25326. [(set_attr "type" "arith")
  25327. (set_attr "mode" "<MODE>")])
  25328. This is exactly equivalent to:
  25329. (define_insn "subsi3"
  25330. [(set (match_operand:SI 0 "register_operand" "=d")
  25331. (minus:SI (match_operand:SI 1 "register_operand" "d")
  25332. (match_operand:SI 2 "register_operand" "d")))]
  25333. ""
  25334. "subu\t%0,%1,%2"
  25335. [(set_attr "type" "arith")
  25336. (set_attr "mode" "SI")])
  25337. (define_insn "subdi3"
  25338. [(set (match_operand:DI 0 "register_operand" "=d")
  25339. (minus:DI (match_operand:DI 1 "register_operand" "d")
  25340. (match_operand:DI 2 "register_operand" "d")))]
  25341. ""
  25342. "dsubu\t%0,%1,%2"
  25343. [(set_attr "type" "arith")
  25344. (set_attr "mode" "DI")])
  25345. 
  25346. File: gccint.info, Node: Code Iterators, Next: Int Iterators, Prev: Mode Iterators, Up: Iterators
  25347. 17.23.2 Code Iterators
  25348. ----------------------
  25349. Code iterators operate in a similar way to mode iterators. *Note Mode
  25350. Iterators::.
  25351. The construct:
  25352. (define_code_iterator NAME [(CODE1 "COND1") ... (CODEN "CONDN")])
  25353. defines a pseudo rtx code NAME that can be instantiated as CODEI if
  25354. condition CONDI is true. Each CODEI must have the same rtx format.
  25355. *Note RTL Classes::.
  25356. As with mode iterators, each pattern that uses NAME will be expanded N
  25357. times, once with all uses of NAME replaced by CODE1, once with all uses
  25358. replaced by CODE2, and so on. *Note Defining Mode Iterators::.
  25359. It is possible to define attributes for codes as well as for modes.
  25360. There are two standard code attributes: 'code', the name of the code in
  25361. lower case, and 'CODE', the name of the code in upper case. Other
  25362. attributes are defined using:
  25363. (define_code_attr NAME [(CODE1 "VALUE1") ... (CODEN "VALUEN")])
  25364. Instruction patterns can use code attributes as rtx codes, which can be
  25365. useful if two sets of codes act in tandem. For example, the following
  25366. 'define_insn' defines two patterns, one calculating a signed absolute
  25367. difference and another calculating an unsigned absolute difference:
  25368. (define_code_iterator any_max [smax umax])
  25369. (define_code_attr paired_min [(smax "smin") (umax "umin")])
  25370. (define_insn ...
  25371. [(set (match_operand:SI 0 ...)
  25372. (minus:SI (any_max:SI (match_operand:SI 1 ...)
  25373. (match_operand:SI 2 ...))
  25374. (<paired_min>:SI (match_dup 1) (match_dup 2))))]
  25375. ...)
  25376. The signed version of the instruction uses 'smax' and 'smin' while the
  25377. unsigned version uses 'umax' and 'umin'. There are no versions that
  25378. pair 'smax' with 'umin' or 'umax' with 'smin'.
  25379. Here's an example of code iterators in action, taken from the MIPS
  25380. port:
  25381. (define_code_iterator any_cond [unordered ordered unlt unge uneq ltgt unle ungt
  25382. eq ne gt ge lt le gtu geu ltu leu])
  25383. (define_expand "b<code>"
  25384. [(set (pc)
  25385. (if_then_else (any_cond:CC (cc0)
  25386. (const_int 0))
  25387. (label_ref (match_operand 0 ""))
  25388. (pc)))]
  25389. ""
  25390. {
  25391. gen_conditional_branch (operands, <CODE>);
  25392. DONE;
  25393. })
  25394. This is equivalent to:
  25395. (define_expand "bunordered"
  25396. [(set (pc)
  25397. (if_then_else (unordered:CC (cc0)
  25398. (const_int 0))
  25399. (label_ref (match_operand 0 ""))
  25400. (pc)))]
  25401. ""
  25402. {
  25403. gen_conditional_branch (operands, UNORDERED);
  25404. DONE;
  25405. })
  25406. (define_expand "bordered"
  25407. [(set (pc)
  25408. (if_then_else (ordered:CC (cc0)
  25409. (const_int 0))
  25410. (label_ref (match_operand 0 ""))
  25411. (pc)))]
  25412. ""
  25413. {
  25414. gen_conditional_branch (operands, ORDERED);
  25415. DONE;
  25416. })
  25417. ...
  25418. 
  25419. File: gccint.info, Node: Int Iterators, Next: Subst Iterators, Prev: Code Iterators, Up: Iterators
  25420. 17.23.3 Int Iterators
  25421. ---------------------
  25422. Int iterators operate in a similar way to code iterators. *Note Code
  25423. Iterators::.
  25424. The construct:
  25425. (define_int_iterator NAME [(INT1 "COND1") ... (INTN "CONDN")])
  25426. defines a pseudo integer constant NAME that can be instantiated as INTI
  25427. if condition CONDI is true. Each INT must have the same rtx format.
  25428. *Note RTL Classes::. Int iterators can appear in only those rtx fields
  25429. that have 'i', 'n', 'w', or 'p' as the specifier. This means that each
  25430. INT has to be a constant defined using define_constant or define_c_enum.
  25431. As with mode and code iterators, each pattern that uses NAME will be
  25432. expanded N times, once with all uses of NAME replaced by INT1, once with
  25433. all uses replaced by INT2, and so on. *Note Defining Mode Iterators::.
  25434. It is possible to define attributes for ints as well as for codes and
  25435. modes. Attributes are defined using:
  25436. (define_int_attr NAME [(INT1 "VALUE1") ... (INTN "VALUEN")])
  25437. Here's an example of int iterators in action, taken from the ARM port:
  25438. (define_int_iterator QABSNEG [UNSPEC_VQABS UNSPEC_VQNEG])
  25439. (define_int_attr absneg [(UNSPEC_VQABS "abs") (UNSPEC_VQNEG "neg")])
  25440. (define_insn "neon_vq<absneg><mode>"
  25441. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  25442. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  25443. (match_operand:SI 2 "immediate_operand" "i")]
  25444. QABSNEG))]
  25445. "TARGET_NEON"
  25446. "vq<absneg>.<V_s_elem>\t%<V_reg>0, %<V_reg>1"
  25447. [(set_attr "type" "neon_vqneg_vqabs")]
  25448. )
  25449. This is equivalent to:
  25450. (define_insn "neon_vqabs<mode>"
  25451. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  25452. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  25453. (match_operand:SI 2 "immediate_operand" "i")]
  25454. UNSPEC_VQABS))]
  25455. "TARGET_NEON"
  25456. "vqabs.<V_s_elem>\t%<V_reg>0, %<V_reg>1"
  25457. [(set_attr "type" "neon_vqneg_vqabs")]
  25458. )
  25459. (define_insn "neon_vqneg<mode>"
  25460. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  25461. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  25462. (match_operand:SI 2 "immediate_operand" "i")]
  25463. UNSPEC_VQNEG))]
  25464. "TARGET_NEON"
  25465. "vqneg.<V_s_elem>\t%<V_reg>0, %<V_reg>1"
  25466. [(set_attr "type" "neon_vqneg_vqabs")]
  25467. )
  25468. 
  25469. File: gccint.info, Node: Subst Iterators, Next: Parameterized Names, Prev: Int Iterators, Up: Iterators
  25470. 17.23.4 Subst Iterators
  25471. -----------------------
  25472. Subst iterators are special type of iterators with the following
  25473. restrictions: they could not be declared explicitly, they always have
  25474. only two values, and they do not have explicit dedicated name.
  25475. Subst-iterators are triggered only when corresponding subst-attribute is
  25476. used in RTL-pattern.
  25477. Subst iterators transform templates in the following way: the templates
  25478. are duplicated, the subst-attributes in these templates are replaced
  25479. with the corresponding values, and a new attribute is implicitly added
  25480. to the given 'define_insn'/'define_expand'. The name of the added
  25481. attribute matches the name of 'define_subst'. Such attributes are
  25482. declared implicitly, and it is not allowed to have a 'define_attr' named
  25483. as a 'define_subst'.
  25484. Each subst iterator is linked to a 'define_subst'. It is declared
  25485. implicitly by the first appearance of the corresponding
  25486. 'define_subst_attr', and it is not allowed to define it explicitly.
  25487. Declarations of subst-attributes have the following syntax:
  25488. (define_subst_attr "NAME"
  25489. "SUBST-NAME"
  25490. "NO-SUBST-VALUE"
  25491. "SUBST-APPLIED-VALUE")
  25492. NAME is a string with which the given subst-attribute could be referred
  25493. to.
  25494. SUBST-NAME shows which 'define_subst' should be applied to an
  25495. RTL-template if the given subst-attribute is present in the
  25496. RTL-template.
  25497. NO-SUBST-VALUE is a value with which subst-attribute would be replaced
  25498. in the first copy of the original RTL-template.
  25499. SUBST-APPLIED-VALUE is a value with which subst-attribute would be
  25500. replaced in the second copy of the original RTL-template.
  25501. 
  25502. File: gccint.info, Node: Parameterized Names, Prev: Subst Iterators, Up: Iterators
  25503. 17.23.5 Parameterized Names
  25504. ---------------------------
  25505. Ports sometimes need to apply iterators using C++ code, in order to get
  25506. the code or RTL pattern for a specific instruction. For example,
  25507. suppose we have the 'neon_vq<absneg><mode>' pattern given above:
  25508. (define_int_iterator QABSNEG [UNSPEC_VQABS UNSPEC_VQNEG])
  25509. (define_int_attr absneg [(UNSPEC_VQABS "abs") (UNSPEC_VQNEG "neg")])
  25510. (define_insn "neon_vq<absneg><mode>"
  25511. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  25512. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  25513. (match_operand:SI 2 "immediate_operand" "i")]
  25514. QABSNEG))]
  25515. ...
  25516. )
  25517. A port might need to generate this pattern for a variable 'QABSNEG'
  25518. value and a variable 'VDQIW' mode. There are two ways of doing this.
  25519. The first is to build the rtx for the pattern directly from C++ code;
  25520. this is a valid technique and avoids any risk of combinatorial
  25521. explosion. The second is to prefix the instruction name with the
  25522. special character '@', which tells GCC to generate the four additional
  25523. functions below. In each case, NAME is the name of the instruction
  25524. without the leading '@' character, without the '<...>' placeholders, and
  25525. with any underscore before a '<...>' placeholder removed if keeping it
  25526. would lead to a double or trailing underscore.
  25527. 'insn_code maybe_code_for_NAME (I1, I2, ...)'
  25528. See whether replacing the first '<...>' placeholder with iterator
  25529. value I1, the second with iterator value I2, and so on, gives a
  25530. valid instruction. Return its code if so, otherwise return
  25531. 'CODE_FOR_nothing'.
  25532. 'insn_code code_for_NAME (I1, I2, ...)'
  25533. Same, but abort the compiler if the requested instruction does not
  25534. exist.
  25535. 'rtx maybe_gen_NAME (I1, I2, ..., OP0, OP1, ...)'
  25536. Check for a valid instruction in the same way as
  25537. 'maybe_code_for_NAME'. If the instruction exists, generate an
  25538. instance of it using the operand values given by OP0, OP1, and so
  25539. on, otherwise return null.
  25540. 'rtx gen_NAME (I1, I2, ..., OP0, OP1, ...)'
  25541. Same, but abort the compiler if the requested instruction does not
  25542. exist, or if the instruction generator invoked the 'FAIL' macro.
  25543. For example, changing the pattern above to:
  25544. (define_insn "@neon_vq<absneg><mode>"
  25545. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  25546. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  25547. (match_operand:SI 2 "immediate_operand" "i")]
  25548. QABSNEG))]
  25549. ...
  25550. )
  25551. would define the same patterns as before, but in addition would
  25552. generate the four functions below:
  25553. insn_code maybe_code_for_neon_vq (int, machine_mode);
  25554. insn_code code_for_neon_vq (int, machine_mode);
  25555. rtx maybe_gen_neon_vq (int, machine_mode, rtx, rtx, rtx);
  25556. rtx gen_neon_vq (int, machine_mode, rtx, rtx, rtx);
  25557. Calling 'code_for_neon_vq (UNSPEC_VQABS, V8QImode)' would then give
  25558. 'CODE_FOR_neon_vqabsv8qi'.
  25559. It is possible to have multiple '@' patterns with the same name and
  25560. same types of iterator. For example:
  25561. (define_insn "@some_arithmetic_op<mode>"
  25562. [(set (match_operand:INTEGER_MODES 0 "register_operand") ...)]
  25563. ...
  25564. )
  25565. (define_insn "@some_arithmetic_op<mode>"
  25566. [(set (match_operand:FLOAT_MODES 0 "register_operand") ...)]
  25567. ...
  25568. )
  25569. would produce a single set of functions that handles both
  25570. 'INTEGER_MODES' and 'FLOAT_MODES'.
  25571. It is also possible for these '@' patterns to have different numbers of
  25572. operands from each other. For example, patterns with a binary rtl code
  25573. might take three operands (one output and two inputs) while patterns
  25574. with a ternary rtl code might take four operands (one output and three
  25575. inputs). This combination would produce separate 'maybe_gen_NAME' and
  25576. 'gen_NAME' functions for each operand count, but it would still produce
  25577. a single 'maybe_code_for_NAME' and a single 'code_for_NAME'.
  25578. 
  25579. File: gccint.info, Node: Target Macros, Next: Host Config, Prev: Machine Desc, Up: Top
  25580. 18 Target Description Macros and Functions
  25581. ******************************************
  25582. In addition to the file 'MACHINE.md', a machine description includes a C
  25583. header file conventionally given the name 'MACHINE.h' and a C source
  25584. file named 'MACHINE.c'. The header file defines numerous macros that
  25585. convey the information about the target machine that does not fit into
  25586. the scheme of the '.md' file. The file 'tm.h' should be a link to
  25587. 'MACHINE.h'. The header file 'config.h' includes 'tm.h' and most
  25588. compiler source files include 'config.h'. The source file defines a
  25589. variable 'targetm', which is a structure containing pointers to
  25590. functions and data relating to the target machine. 'MACHINE.c' should
  25591. also contain their definitions, if they are not defined elsewhere in
  25592. GCC, and other functions called through the macros defined in the '.h'
  25593. file.
  25594. * Menu:
  25595. * Target Structure:: The 'targetm' variable.
  25596. * Driver:: Controlling how the driver runs the compilation passes.
  25597. * Run-time Target:: Defining '-m' options like '-m68000' and '-m68020'.
  25598. * Per-Function Data:: Defining data structures for per-function information.
  25599. * Storage Layout:: Defining sizes and alignments of data.
  25600. * Type Layout:: Defining sizes and properties of basic user data types.
  25601. * Registers:: Naming and describing the hardware registers.
  25602. * Register Classes:: Defining the classes of hardware registers.
  25603. * Stack and Calling:: Defining which way the stack grows and by how much.
  25604. * Varargs:: Defining the varargs macros.
  25605. * Trampolines:: Code set up at run time to enter a nested function.
  25606. * Library Calls:: Controlling how library routines are implicitly called.
  25607. * Addressing Modes:: Defining addressing modes valid for memory operands.
  25608. * Anchored Addresses:: Defining how '-fsection-anchors' should work.
  25609. * Condition Code:: Defining how insns update the condition code.
  25610. * Costs:: Defining relative costs of different operations.
  25611. * Scheduling:: Adjusting the behavior of the instruction scheduler.
  25612. * Sections:: Dividing storage into text, data, and other sections.
  25613. * PIC:: Macros for position independent code.
  25614. * Assembler Format:: Defining how to write insns and pseudo-ops to output.
  25615. * Debugging Info:: Defining the format of debugging output.
  25616. * Floating Point:: Handling floating point for cross-compilers.
  25617. * Mode Switching:: Insertion of mode-switching instructions.
  25618. * Target Attributes:: Defining target-specific uses of '__attribute__'.
  25619. * Emulated TLS:: Emulated TLS support.
  25620. * MIPS Coprocessors:: MIPS coprocessor support and how to customize it.
  25621. * PCH Target:: Validity checking for precompiled headers.
  25622. * C++ ABI:: Controlling C++ ABI changes.
  25623. * D Language and ABI:: Controlling D ABI changes.
  25624. * Named Address Spaces:: Adding support for named address spaces
  25625. * Misc:: Everything else.
  25626. 
  25627. File: gccint.info, Node: Target Structure, Next: Driver, Up: Target Macros
  25628. 18.1 The Global 'targetm' Variable
  25629. ==================================
  25630. -- Variable: struct gcc_target targetm
  25631. The target '.c' file must define the global 'targetm' variable
  25632. which contains pointers to functions and data relating to the
  25633. target machine. The variable is declared in 'target.h';
  25634. 'target-def.h' defines the macro 'TARGET_INITIALIZER' which is used
  25635. to initialize the variable, and macros for the default initializers
  25636. for elements of the structure. The '.c' file should override those
  25637. macros for which the default definition is inappropriate. For
  25638. example:
  25639. #include "target.h"
  25640. #include "target-def.h"
  25641. /* Initialize the GCC target structure. */
  25642. #undef TARGET_COMP_TYPE_ATTRIBUTES
  25643. #define TARGET_COMP_TYPE_ATTRIBUTES MACHINE_comp_type_attributes
  25644. struct gcc_target targetm = TARGET_INITIALIZER;
  25645. Where a macro should be defined in the '.c' file in this manner to form
  25646. part of the 'targetm' structure, it is documented below as a "Target
  25647. Hook" with a prototype. Many macros will change in future from being
  25648. defined in the '.h' file to being part of the 'targetm' structure.
  25649. Similarly, there is a 'targetcm' variable for hooks that are specific
  25650. to front ends for C-family languages, documented as "C Target Hook".
  25651. This is declared in 'c-family/c-target.h', the initializer
  25652. 'TARGETCM_INITIALIZER' in 'c-family/c-target-def.h'. If targets
  25653. initialize 'targetcm' themselves, they should set
  25654. 'target_has_targetcm=yes' in 'config.gcc'; otherwise a default
  25655. definition is used.
  25656. Similarly, there is a 'targetm_common' variable for hooks that are
  25657. shared between the compiler driver and the compilers proper, documented
  25658. as "Common Target Hook". This is declared in 'common/common-target.h',
  25659. the initializer 'TARGETM_COMMON_INITIALIZER' in
  25660. 'common/common-target-def.h'. If targets initialize 'targetm_common'
  25661. themselves, they should set 'target_has_targetm_common=yes' in
  25662. 'config.gcc'; otherwise a default definition is used.
  25663. Similarly, there is a 'targetdm' variable for hooks that are specific
  25664. to the D language front end, documented as "D Target Hook". This is
  25665. declared in 'd/d-target.h', the initializer 'TARGETDM_INITIALIZER' in
  25666. 'd/d-target-def.h'. If targets initialize 'targetdm' themselves, they
  25667. should set 'target_has_targetdm=yes' in 'config.gcc'; otherwise a
  25668. default definition is used.
  25669. 
  25670. File: gccint.info, Node: Driver, Next: Run-time Target, Prev: Target Structure, Up: Target Macros
  25671. 18.2 Controlling the Compilation Driver, 'gcc'
  25672. ==============================================
  25673. You can control the compilation driver.
  25674. -- Macro: DRIVER_SELF_SPECS
  25675. A list of specs for the driver itself. It should be a suitable
  25676. initializer for an array of strings, with no surrounding braces.
  25677. The driver applies these specs to its own command line between
  25678. loading default 'specs' files (but not command-line specified ones)
  25679. and choosing the multilib directory or running any subcommands. It
  25680. applies them in the order given, so each spec can depend on the
  25681. options added by earlier ones. It is also possible to remove
  25682. options using '%<OPTION' in the usual way.
  25683. This macro can be useful when a port has several interdependent
  25684. target options. It provides a way of standardizing the command
  25685. line so that the other specs are easier to write.
  25686. Do not define this macro if it does not need to do anything.
  25687. -- Macro: OPTION_DEFAULT_SPECS
  25688. A list of specs used to support configure-time default options
  25689. (i.e. '--with' options) in the driver. It should be a suitable
  25690. initializer for an array of structures, each containing two
  25691. strings, without the outermost pair of surrounding braces.
  25692. The first item in the pair is the name of the default. This must
  25693. match the code in 'config.gcc' for the target. The second item is
  25694. a spec to apply if a default with this name was specified. The
  25695. string '%(VALUE)' in the spec will be replaced by the value of the
  25696. default everywhere it occurs.
  25697. The driver will apply these specs to its own command line between
  25698. loading default 'specs' files and processing 'DRIVER_SELF_SPECS',
  25699. using the same mechanism as 'DRIVER_SELF_SPECS'.
  25700. Do not define this macro if it does not need to do anything.
  25701. -- Macro: CPP_SPEC
  25702. A C string constant that tells the GCC driver program options to
  25703. pass to CPP. It can also specify how to translate options you give
  25704. to GCC into options for GCC to pass to the CPP.
  25705. Do not define this macro if it does not need to do anything.
  25706. -- Macro: CPLUSPLUS_CPP_SPEC
  25707. This macro is just like 'CPP_SPEC', but is used for C++, rather
  25708. than C. If you do not define this macro, then the value of
  25709. 'CPP_SPEC' (if any) will be used instead.
  25710. -- Macro: CC1_SPEC
  25711. A C string constant that tells the GCC driver program options to
  25712. pass to 'cc1', 'cc1plus', 'f771', and the other language front
  25713. ends. It can also specify how to translate options you give to GCC
  25714. into options for GCC to pass to front ends.
  25715. Do not define this macro if it does not need to do anything.
  25716. -- Macro: CC1PLUS_SPEC
  25717. A C string constant that tells the GCC driver program options to
  25718. pass to 'cc1plus'. It can also specify how to translate options
  25719. you give to GCC into options for GCC to pass to the 'cc1plus'.
  25720. Do not define this macro if it does not need to do anything. Note
  25721. that everything defined in CC1_SPEC is already passed to 'cc1plus'
  25722. so there is no need to duplicate the contents of CC1_SPEC in
  25723. CC1PLUS_SPEC.
  25724. -- Macro: ASM_SPEC
  25725. A C string constant that tells the GCC driver program options to
  25726. pass to the assembler. It can also specify how to translate
  25727. options you give to GCC into options for GCC to pass to the
  25728. assembler. See the file 'sun3.h' for an example of this.
  25729. Do not define this macro if it does not need to do anything.
  25730. -- Macro: ASM_FINAL_SPEC
  25731. A C string constant that tells the GCC driver program how to run
  25732. any programs which cleanup after the normal assembler. Normally,
  25733. this is not needed. See the file 'mips.h' for an example of this.
  25734. Do not define this macro if it does not need to do anything.
  25735. -- Macro: AS_NEEDS_DASH_FOR_PIPED_INPUT
  25736. Define this macro, with no value, if the driver should give the
  25737. assembler an argument consisting of a single dash, '-', to instruct
  25738. it to read from its standard input (which will be a pipe connected
  25739. to the output of the compiler proper). This argument is given
  25740. after any '-o' option specifying the name of the output file.
  25741. If you do not define this macro, the assembler is assumed to read
  25742. its standard input if given no non-option arguments. If your
  25743. assembler cannot read standard input at all, use a '%{pipe:%e}'
  25744. construct; see 'mips.h' for instance.
  25745. -- Macro: LINK_SPEC
  25746. A C string constant that tells the GCC driver program options to
  25747. pass to the linker. It can also specify how to translate options
  25748. you give to GCC into options for GCC to pass to the linker.
  25749. Do not define this macro if it does not need to do anything.
  25750. -- Macro: LIB_SPEC
  25751. Another C string constant used much like 'LINK_SPEC'. The
  25752. difference between the two is that 'LIB_SPEC' is used at the end of
  25753. the command given to the linker.
  25754. If this macro is not defined, a default is provided that loads the
  25755. standard C library from the usual place. See 'gcc.c'.
  25756. -- Macro: LIBGCC_SPEC
  25757. Another C string constant that tells the GCC driver program how and
  25758. when to place a reference to 'libgcc.a' into the linker command
  25759. line. This constant is placed both before and after the value of
  25760. 'LIB_SPEC'.
  25761. If this macro is not defined, the GCC driver provides a default
  25762. that passes the string '-lgcc' to the linker.
  25763. -- Macro: REAL_LIBGCC_SPEC
  25764. By default, if 'ENABLE_SHARED_LIBGCC' is defined, the 'LIBGCC_SPEC'
  25765. is not directly used by the driver program but is instead modified
  25766. to refer to different versions of 'libgcc.a' depending on the
  25767. values of the command line flags '-static', '-shared',
  25768. '-static-libgcc', and '-shared-libgcc'. On targets where these
  25769. modifications are inappropriate, define 'REAL_LIBGCC_SPEC' instead.
  25770. 'REAL_LIBGCC_SPEC' tells the driver how to place a reference to
  25771. 'libgcc' on the link command line, but, unlike 'LIBGCC_SPEC', it is
  25772. used unmodified.
  25773. -- Macro: USE_LD_AS_NEEDED
  25774. A macro that controls the modifications to 'LIBGCC_SPEC' mentioned
  25775. in 'REAL_LIBGCC_SPEC'. If nonzero, a spec will be generated that
  25776. uses '--as-needed' or equivalent options and the shared 'libgcc' in
  25777. place of the static exception handler library, when linking without
  25778. any of '-static', '-static-libgcc', or '-shared-libgcc'.
  25779. -- Macro: LINK_EH_SPEC
  25780. If defined, this C string constant is added to 'LINK_SPEC'. When
  25781. 'USE_LD_AS_NEEDED' is zero or undefined, it also affects the
  25782. modifications to 'LIBGCC_SPEC' mentioned in 'REAL_LIBGCC_SPEC'.
  25783. -- Macro: STARTFILE_SPEC
  25784. Another C string constant used much like 'LINK_SPEC'. The
  25785. difference between the two is that 'STARTFILE_SPEC' is used at the
  25786. very beginning of the command given to the linker.
  25787. If this macro is not defined, a default is provided that loads the
  25788. standard C startup file from the usual place. See 'gcc.c'.
  25789. -- Macro: ENDFILE_SPEC
  25790. Another C string constant used much like 'LINK_SPEC'. The
  25791. difference between the two is that 'ENDFILE_SPEC' is used at the
  25792. very end of the command given to the linker.
  25793. Do not define this macro if it does not need to do anything.
  25794. -- Macro: THREAD_MODEL_SPEC
  25795. GCC '-v' will print the thread model GCC was configured to use.
  25796. However, this doesn't work on platforms that are multilibbed on
  25797. thread models, such as AIX 4.3. On such platforms, define
  25798. 'THREAD_MODEL_SPEC' such that it evaluates to a string without
  25799. blanks that names one of the recognized thread models. '%*', the
  25800. default value of this macro, will expand to the value of
  25801. 'thread_file' set in 'config.gcc'.
  25802. -- Macro: SYSROOT_SUFFIX_SPEC
  25803. Define this macro to add a suffix to the target sysroot when GCC is
  25804. configured with a sysroot. This will cause GCC to search for
  25805. usr/lib, et al, within sysroot+suffix.
  25806. -- Macro: SYSROOT_HEADERS_SUFFIX_SPEC
  25807. Define this macro to add a headers_suffix to the target sysroot
  25808. when GCC is configured with a sysroot. This will cause GCC to pass
  25809. the updated sysroot+headers_suffix to CPP, causing it to search for
  25810. usr/include, et al, within sysroot+headers_suffix.
  25811. -- Macro: EXTRA_SPECS
  25812. Define this macro to provide additional specifications to put in
  25813. the 'specs' file that can be used in various specifications like
  25814. 'CC1_SPEC'.
  25815. The definition should be an initializer for an array of structures,
  25816. containing a string constant, that defines the specification name,
  25817. and a string constant that provides the specification.
  25818. Do not define this macro if it does not need to do anything.
  25819. 'EXTRA_SPECS' is useful when an architecture contains several
  25820. related targets, which have various '..._SPECS' which are similar
  25821. to each other, and the maintainer would like one central place to
  25822. keep these definitions.
  25823. For example, the PowerPC System V.4 targets use 'EXTRA_SPECS' to
  25824. define either '_CALL_SYSV' when the System V calling sequence is
  25825. used or '_CALL_AIX' when the older AIX-based calling sequence is
  25826. used.
  25827. The 'config/rs6000/rs6000.h' target file defines:
  25828. #define EXTRA_SPECS \
  25829. { "cpp_sysv_default", CPP_SYSV_DEFAULT },
  25830. #define CPP_SYS_DEFAULT ""
  25831. The 'config/rs6000/sysv.h' target file defines:
  25832. #undef CPP_SPEC
  25833. #define CPP_SPEC \
  25834. "%{posix: -D_POSIX_SOURCE } \
  25835. %{mcall-sysv: -D_CALL_SYSV } \
  25836. %{!mcall-sysv: %(cpp_sysv_default) } \
  25837. %{msoft-float: -D_SOFT_FLOAT} %{mcpu=403: -D_SOFT_FLOAT}"
  25838. #undef CPP_SYSV_DEFAULT
  25839. #define CPP_SYSV_DEFAULT "-D_CALL_SYSV"
  25840. while the 'config/rs6000/eabiaix.h' target file defines
  25841. 'CPP_SYSV_DEFAULT' as:
  25842. #undef CPP_SYSV_DEFAULT
  25843. #define CPP_SYSV_DEFAULT "-D_CALL_AIX"
  25844. -- Macro: LINK_LIBGCC_SPECIAL_1
  25845. Define this macro if the driver program should find the library
  25846. 'libgcc.a'. If you do not define this macro, the driver program
  25847. will pass the argument '-lgcc' to tell the linker to do the search.
  25848. -- Macro: LINK_GCC_C_SEQUENCE_SPEC
  25849. The sequence in which libgcc and libc are specified to the linker.
  25850. By default this is '%G %L %G'.
  25851. -- Macro: POST_LINK_SPEC
  25852. Define this macro to add additional steps to be executed after
  25853. linker. The default value of this macro is empty string.
  25854. -- Macro: LINK_COMMAND_SPEC
  25855. A C string constant giving the complete command line need to
  25856. execute the linker. When you do this, you will need to update your
  25857. port each time a change is made to the link command line within
  25858. 'gcc.c'. Therefore, define this macro only if you need to
  25859. completely redefine the command line for invoking the linker and
  25860. there is no other way to accomplish the effect you need.
  25861. Overriding this macro may be avoidable by overriding
  25862. 'LINK_GCC_C_SEQUENCE_SPEC' instead.
  25863. -- Common Target Hook: bool TARGET_ALWAYS_STRIP_DOTDOT
  25864. True if '..' components should always be removed from directory
  25865. names computed relative to GCC's internal directories, false
  25866. (default) if such components should be preserved and directory
  25867. names containing them passed to other tools such as the linker.
  25868. -- Macro: MULTILIB_DEFAULTS
  25869. Define this macro as a C expression for the initializer of an array
  25870. of string to tell the driver program which options are defaults for
  25871. this target and thus do not need to be handled specially when using
  25872. 'MULTILIB_OPTIONS'.
  25873. Do not define this macro if 'MULTILIB_OPTIONS' is not defined in
  25874. the target makefile fragment or if none of the options listed in
  25875. 'MULTILIB_OPTIONS' are set by default. *Note Target Fragment::.
  25876. -- Macro: RELATIVE_PREFIX_NOT_LINKDIR
  25877. Define this macro to tell 'gcc' that it should only translate a
  25878. '-B' prefix into a '-L' linker option if the prefix indicates an
  25879. absolute file name.
  25880. -- Macro: MD_EXEC_PREFIX
  25881. If defined, this macro is an additional prefix to try after
  25882. 'STANDARD_EXEC_PREFIX'. 'MD_EXEC_PREFIX' is not searched when the
  25883. compiler is built as a cross compiler. If you define
  25884. 'MD_EXEC_PREFIX', then be sure to add it to the list of directories
  25885. used to find the assembler in 'configure.ac'.
  25886. -- Macro: STANDARD_STARTFILE_PREFIX
  25887. Define this macro as a C string constant if you wish to override
  25888. the standard choice of 'libdir' as the default prefix to try when
  25889. searching for startup files such as 'crt0.o'.
  25890. 'STANDARD_STARTFILE_PREFIX' is not searched when the compiler is
  25891. built as a cross compiler.
  25892. -- Macro: STANDARD_STARTFILE_PREFIX_1
  25893. Define this macro as a C string constant if you wish to override
  25894. the standard choice of '/lib' as a prefix to try after the default
  25895. prefix when searching for startup files such as 'crt0.o'.
  25896. 'STANDARD_STARTFILE_PREFIX_1' is not searched when the compiler is
  25897. built as a cross compiler.
  25898. -- Macro: STANDARD_STARTFILE_PREFIX_2
  25899. Define this macro as a C string constant if you wish to override
  25900. the standard choice of '/lib' as yet another prefix to try after
  25901. the default prefix when searching for startup files such as
  25902. 'crt0.o'. 'STANDARD_STARTFILE_PREFIX_2' is not searched when the
  25903. compiler is built as a cross compiler.
  25904. -- Macro: MD_STARTFILE_PREFIX
  25905. If defined, this macro supplies an additional prefix to try after
  25906. the standard prefixes. 'MD_EXEC_PREFIX' is not searched when the
  25907. compiler is built as a cross compiler.
  25908. -- Macro: MD_STARTFILE_PREFIX_1
  25909. If defined, this macro supplies yet another prefix to try after the
  25910. standard prefixes. It is not searched when the compiler is built
  25911. as a cross compiler.
  25912. -- Macro: INIT_ENVIRONMENT
  25913. Define this macro as a C string constant if you wish to set
  25914. environment variables for programs called by the driver, such as
  25915. the assembler and loader. The driver passes the value of this
  25916. macro to 'putenv' to initialize the necessary environment
  25917. variables.
  25918. -- Macro: LOCAL_INCLUDE_DIR
  25919. Define this macro as a C string constant if you wish to override
  25920. the standard choice of '/usr/local/include' as the default prefix
  25921. to try when searching for local header files. 'LOCAL_INCLUDE_DIR'
  25922. comes before 'NATIVE_SYSTEM_HEADER_DIR' (set in 'config.gcc',
  25923. normally '/usr/include') in the search order.
  25924. Cross compilers do not search either '/usr/local/include' or its
  25925. replacement.
  25926. -- Macro: NATIVE_SYSTEM_HEADER_COMPONENT
  25927. The "component" corresponding to 'NATIVE_SYSTEM_HEADER_DIR'. See
  25928. 'INCLUDE_DEFAULTS', below, for the description of components. If
  25929. you do not define this macro, no component is used.
  25930. -- Macro: INCLUDE_DEFAULTS
  25931. Define this macro if you wish to override the entire default search
  25932. path for include files. For a native compiler, the default search
  25933. path usually consists of 'GCC_INCLUDE_DIR', 'LOCAL_INCLUDE_DIR',
  25934. 'GPLUSPLUS_INCLUDE_DIR', and 'NATIVE_SYSTEM_HEADER_DIR'. In
  25935. addition, 'GPLUSPLUS_INCLUDE_DIR' and 'GCC_INCLUDE_DIR' are defined
  25936. automatically by 'Makefile', and specify private search areas for
  25937. GCC. The directory 'GPLUSPLUS_INCLUDE_DIR' is used only for C++
  25938. programs.
  25939. The definition should be an initializer for an array of structures.
  25940. Each array element should have four elements: the directory name (a
  25941. string constant), the component name (also a string constant), a
  25942. flag for C++-only directories, and a flag showing that the includes
  25943. in the directory don't need to be wrapped in 'extern 'C'' when
  25944. compiling C++. Mark the end of the array with a null element.
  25945. The component name denotes what GNU package the include file is
  25946. part of, if any, in all uppercase letters. For example, it might
  25947. be 'GCC' or 'BINUTILS'. If the package is part of a
  25948. vendor-supplied operating system, code the component name as '0'.
  25949. For example, here is the definition used for VAX/VMS:
  25950. #define INCLUDE_DEFAULTS \
  25951. { \
  25952. { "GNU_GXX_INCLUDE:", "G++", 1, 1}, \
  25953. { "GNU_CC_INCLUDE:", "GCC", 0, 0}, \
  25954. { "SYS$SYSROOT:[SYSLIB.]", 0, 0, 0}, \
  25955. { ".", 0, 0, 0}, \
  25956. { 0, 0, 0, 0} \
  25957. }
  25958. Here is the order of prefixes tried for exec files:
  25959. 1. Any prefixes specified by the user with '-B'.
  25960. 2. The environment variable 'GCC_EXEC_PREFIX' or, if 'GCC_EXEC_PREFIX'
  25961. is not set and the compiler has not been installed in the
  25962. configure-time PREFIX, the location in which the compiler has
  25963. actually been installed.
  25964. 3. The directories specified by the environment variable
  25965. 'COMPILER_PATH'.
  25966. 4. The macro 'STANDARD_EXEC_PREFIX', if the compiler has been
  25967. installed in the configured-time PREFIX.
  25968. 5. The location '/usr/libexec/gcc/', but only if this is a native
  25969. compiler.
  25970. 6. The location '/usr/lib/gcc/', but only if this is a native
  25971. compiler.
  25972. 7. The macro 'MD_EXEC_PREFIX', if defined, but only if this is a
  25973. native compiler.
  25974. Here is the order of prefixes tried for startfiles:
  25975. 1. Any prefixes specified by the user with '-B'.
  25976. 2. The environment variable 'GCC_EXEC_PREFIX' or its automatically
  25977. determined value based on the installed toolchain location.
  25978. 3. The directories specified by the environment variable
  25979. 'LIBRARY_PATH' (or port-specific name; native only, cross compilers
  25980. do not use this).
  25981. 4. The macro 'STANDARD_EXEC_PREFIX', but only if the toolchain is
  25982. installed in the configured PREFIX or this is a native compiler.
  25983. 5. The location '/usr/lib/gcc/', but only if this is a native
  25984. compiler.
  25985. 6. The macro 'MD_EXEC_PREFIX', if defined, but only if this is a
  25986. native compiler.
  25987. 7. The macro 'MD_STARTFILE_PREFIX', if defined, but only if this is a
  25988. native compiler, or we have a target system root.
  25989. 8. The macro 'MD_STARTFILE_PREFIX_1', if defined, but only if this is
  25990. a native compiler, or we have a target system root.
  25991. 9. The macro 'STANDARD_STARTFILE_PREFIX', with any sysroot
  25992. modifications. If this path is relative it will be prefixed by
  25993. 'GCC_EXEC_PREFIX' and the machine suffix or 'STANDARD_EXEC_PREFIX'
  25994. and the machine suffix.
  25995. 10. The macro 'STANDARD_STARTFILE_PREFIX_1', but only if this is a
  25996. native compiler, or we have a target system root. The default for
  25997. this macro is '/lib/'.
  25998. 11. The macro 'STANDARD_STARTFILE_PREFIX_2', but only if this is a
  25999. native compiler, or we have a target system root. The default for
  26000. this macro is '/usr/lib/'.
  26001. 
  26002. File: gccint.info, Node: Run-time Target, Next: Per-Function Data, Prev: Driver, Up: Target Macros
  26003. 18.3 Run-time Target Specification
  26004. ==================================
  26005. Here are run-time target specifications.
  26006. -- Macro: TARGET_CPU_CPP_BUILTINS ()
  26007. This function-like macro expands to a block of code that defines
  26008. built-in preprocessor macros and assertions for the target CPU,
  26009. using the functions 'builtin_define', 'builtin_define_std' and
  26010. 'builtin_assert'. When the front end calls this macro it provides
  26011. a trailing semicolon, and since it has finished command line option
  26012. processing your code can use those results freely.
  26013. 'builtin_assert' takes a string in the form you pass to the
  26014. command-line option '-A', such as 'cpu=mips', and creates the
  26015. assertion. 'builtin_define' takes a string in the form accepted by
  26016. option '-D' and unconditionally defines the macro.
  26017. 'builtin_define_std' takes a string representing the name of an
  26018. object-like macro. If it doesn't lie in the user's namespace,
  26019. 'builtin_define_std' defines it unconditionally. Otherwise, it
  26020. defines a version with two leading underscores, and another version
  26021. with two leading and trailing underscores, and defines the original
  26022. only if an ISO standard was not requested on the command line. For
  26023. example, passing 'unix' defines '__unix', '__unix__' and possibly
  26024. 'unix'; passing '_mips' defines '__mips', '__mips__' and possibly
  26025. '_mips', and passing '_ABI64' defines only '_ABI64'.
  26026. You can also test for the C dialect being compiled. The variable
  26027. 'c_language' is set to one of 'clk_c', 'clk_cplusplus' or
  26028. 'clk_objective_c'. Note that if we are preprocessing assembler,
  26029. this variable will be 'clk_c' but the function-like macro
  26030. 'preprocessing_asm_p()' will return true, so you might want to
  26031. check for that first. If you need to check for strict ANSI, the
  26032. variable 'flag_iso' can be used. The function-like macro
  26033. 'preprocessing_trad_p()' can be used to check for traditional
  26034. preprocessing.
  26035. -- Macro: TARGET_OS_CPP_BUILTINS ()
  26036. Similarly to 'TARGET_CPU_CPP_BUILTINS' but this macro is optional
  26037. and is used for the target operating system instead.
  26038. -- Macro: TARGET_OBJFMT_CPP_BUILTINS ()
  26039. Similarly to 'TARGET_CPU_CPP_BUILTINS' but this macro is optional
  26040. and is used for the target object format. 'elfos.h' uses this
  26041. macro to define '__ELF__', so you probably do not need to define it
  26042. yourself.
  26043. -- Variable: extern int target_flags
  26044. This variable is declared in 'options.h', which is included before
  26045. any target-specific headers.
  26046. -- Common Target Hook: int TARGET_DEFAULT_TARGET_FLAGS
  26047. This variable specifies the initial value of 'target_flags'. Its
  26048. default setting is 0.
  26049. -- Common Target Hook: bool TARGET_HANDLE_OPTION (struct gcc_options
  26050. *OPTS, struct gcc_options *OPTS_SET, const struct
  26051. cl_decoded_option *DECODED, location_t LOC)
  26052. This hook is called whenever the user specifies one of the
  26053. target-specific options described by the '.opt' definition files
  26054. (*note Options::). It has the opportunity to do some
  26055. option-specific processing and should return true if the option is
  26056. valid. The default definition does nothing but return true.
  26057. DECODED specifies the option and its arguments. OPTS and OPTS_SET
  26058. are the 'gcc_options' structures to be used for storing option
  26059. state, and LOC is the location at which the option was passed
  26060. ('UNKNOWN_LOCATION' except for options passed via attributes).
  26061. -- C Target Hook: bool TARGET_HANDLE_C_OPTION (size_t CODE, const char
  26062. *ARG, int VALUE)
  26063. This target hook is called whenever the user specifies one of the
  26064. target-specific C language family options described by the '.opt'
  26065. definition files(*note Options::). It has the opportunity to do
  26066. some option-specific processing and should return true if the
  26067. option is valid. The arguments are like for
  26068. 'TARGET_HANDLE_OPTION'. The default definition does nothing but
  26069. return false.
  26070. In general, you should use 'TARGET_HANDLE_OPTION' to handle
  26071. options. However, if processing an option requires routines that
  26072. are only available in the C (and related language) front ends, then
  26073. you should use 'TARGET_HANDLE_C_OPTION' instead.
  26074. -- C Target Hook: tree TARGET_OBJC_CONSTRUCT_STRING_OBJECT (tree
  26075. STRING)
  26076. Targets may provide a string object type that can be used within
  26077. and between C, C++ and their respective Objective-C dialects. A
  26078. string object might, for example, embed encoding and length
  26079. information. These objects are considered opaque to the compiler
  26080. and handled as references. An ideal implementation makes the
  26081. composition of the string object match that of the Objective-C
  26082. 'NSString' ('NXString' for GNUStep), allowing efficient
  26083. interworking between C-only and Objective-C code. If a target
  26084. implements string objects then this hook should return a reference
  26085. to such an object constructed from the normal 'C' string
  26086. representation provided in STRING. At present, the hook is used by
  26087. Objective-C only, to obtain a common-format string object when the
  26088. target provides one.
  26089. -- C Target Hook: void TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE
  26090. (const char *CLASSNAME)
  26091. Declare that Objective C class CLASSNAME is referenced by the
  26092. current TU.
  26093. -- C Target Hook: void TARGET_OBJC_DECLARE_CLASS_DEFINITION (const char
  26094. *CLASSNAME)
  26095. Declare that Objective C class CLASSNAME is defined by the current
  26096. TU.
  26097. -- C Target Hook: bool TARGET_STRING_OBJECT_REF_TYPE_P (const_tree
  26098. STRINGREF)
  26099. If a target implements string objects then this hook should return
  26100. 'true' if STRINGREF is a valid reference to such an object.
  26101. -- C Target Hook: void TARGET_CHECK_STRING_OBJECT_FORMAT_ARG (tree
  26102. FORMAT_ARG, tree ARGS_LIST)
  26103. If a target implements string objects then this hook should should
  26104. provide a facility to check the function arguments in ARGS_LIST
  26105. against the format specifiers in FORMAT_ARG where the type of
  26106. FORMAT_ARG is one recognized as a valid string reference type.
  26107. -- Target Hook: void TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE (void)
  26108. This target function is similar to the hook
  26109. 'TARGET_OPTION_OVERRIDE' but is called when the optimize level is
  26110. changed via an attribute or pragma or when it is reset at the end
  26111. of the code affected by the attribute or pragma. It is not called
  26112. at the beginning of compilation when 'TARGET_OPTION_OVERRIDE' is
  26113. called so if you want to perform these actions then, you should
  26114. have 'TARGET_OPTION_OVERRIDE' call
  26115. 'TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE'.
  26116. -- Macro: C_COMMON_OVERRIDE_OPTIONS
  26117. This is similar to the 'TARGET_OPTION_OVERRIDE' hook but is only
  26118. used in the C language frontends (C, Objective-C, C++,
  26119. Objective-C++) and so can be used to alter option flag variables
  26120. which only exist in those frontends.
  26121. -- Common Target Hook: const struct default_options *
  26122. TARGET_OPTION_OPTIMIZATION_TABLE
  26123. Some machines may desire to change what optimizations are performed
  26124. for various optimization levels. This variable, if defined,
  26125. describes options to enable at particular sets of optimization
  26126. levels. These options are processed once just after the
  26127. optimization level is determined and before the remainder of the
  26128. command options have been parsed, so may be overridden by other
  26129. options passed explicitly.
  26130. This processing is run once at program startup and when the
  26131. optimization options are changed via '#pragma GCC optimize' or by
  26132. using the 'optimize' attribute.
  26133. -- Common Target Hook: void TARGET_OPTION_INIT_STRUCT (struct
  26134. gcc_options *OPTS)
  26135. Set target-dependent initial values of fields in OPTS.
  26136. -- Macro: SWITCHABLE_TARGET
  26137. Some targets need to switch between substantially different
  26138. subtargets during compilation. For example, the MIPS target has
  26139. one subtarget for the traditional MIPS architecture and another for
  26140. MIPS16. Source code can switch between these two subarchitectures
  26141. using the 'mips16' and 'nomips16' attributes.
  26142. Such subtargets can differ in things like the set of available
  26143. registers, the set of available instructions, the costs of various
  26144. operations, and so on. GCC caches a lot of this type of
  26145. information in global variables, and recomputing them for each
  26146. subtarget takes a significant amount of time. The compiler
  26147. therefore provides a facility for maintaining several versions of
  26148. the global variables and quickly switching between them; see
  26149. 'target-globals.h' for details.
  26150. Define this macro to 1 if your target needs this facility. The
  26151. default is 0.
  26152. -- Target Hook: bool TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P
  26153. (void)
  26154. Returns true if the target supports IEEE 754 floating-point
  26155. exceptions and rounding modes, false otherwise. This is intended
  26156. to relate to the 'float' and 'double' types, but not necessarily
  26157. 'long double'. By default, returns true if the 'adddf3'
  26158. instruction pattern is available and false otherwise, on the
  26159. assumption that hardware floating point supports exceptions and
  26160. rounding modes but software floating point does not.
  26161. 
  26162. File: gccint.info, Node: Per-Function Data, Next: Storage Layout, Prev: Run-time Target, Up: Target Macros
  26163. 18.4 Defining data structures for per-function information.
  26164. ===========================================================
  26165. If the target needs to store information on a per-function basis, GCC
  26166. provides a macro and a couple of variables to allow this. Note, just
  26167. using statics to store the information is a bad idea, since GCC supports
  26168. nested functions, so you can be halfway through encoding one function
  26169. when another one comes along.
  26170. GCC defines a data structure called 'struct function' which contains
  26171. all of the data specific to an individual function. This structure
  26172. contains a field called 'machine' whose type is 'struct machine_function
  26173. *', which can be used by targets to point to their own specific data.
  26174. If a target needs per-function specific data it should define the type
  26175. 'struct machine_function' and also the macro 'INIT_EXPANDERS'. This
  26176. macro should be used to initialize the function pointer
  26177. 'init_machine_status'. This pointer is explained below.
  26178. One typical use of per-function, target specific data is to create an
  26179. RTX to hold the register containing the function's return address. This
  26180. RTX can then be used to implement the '__builtin_return_address'
  26181. function, for level 0.
  26182. Note--earlier implementations of GCC used a single data area to hold
  26183. all of the per-function information. Thus when processing of a nested
  26184. function began the old per-function data had to be pushed onto a stack,
  26185. and when the processing was finished, it had to be popped off the stack.
  26186. GCC used to provide function pointers called 'save_machine_status' and
  26187. 'restore_machine_status' to handle the saving and restoring of the
  26188. target specific information. Since the single data area approach is no
  26189. longer used, these pointers are no longer supported.
  26190. -- Macro: INIT_EXPANDERS
  26191. Macro called to initialize any target specific information. This
  26192. macro is called once per function, before generation of any RTL has
  26193. begun. The intention of this macro is to allow the initialization
  26194. of the function pointer 'init_machine_status'.
  26195. -- Variable: void (*)(struct function *) init_machine_status
  26196. If this function pointer is non-'NULL' it will be called once per
  26197. function, before function compilation starts, in order to allow the
  26198. target to perform any target specific initialization of the 'struct
  26199. function' structure. It is intended that this would be used to
  26200. initialize the 'machine' of that structure.
  26201. 'struct machine_function' structures are expected to be freed by
  26202. GC. Generally, any memory that they reference must be allocated by
  26203. using GC allocation, including the structure itself.
  26204. 
  26205. File: gccint.info, Node: Storage Layout, Next: Type Layout, Prev: Per-Function Data, Up: Target Macros
  26206. 18.5 Storage Layout
  26207. ===================
  26208. Note that the definitions of the macros in this table which are sizes or
  26209. alignments measured in bits do not need to be constant. They can be C
  26210. expressions that refer to static variables, such as the 'target_flags'.
  26211. *Note Run-time Target::.
  26212. -- Macro: BITS_BIG_ENDIAN
  26213. Define this macro to have the value 1 if the most significant bit
  26214. in a byte has the lowest number; otherwise define it to have the
  26215. value zero. This means that bit-field instructions count from the
  26216. most significant bit. If the machine has no bit-field
  26217. instructions, then this must still be defined, but it doesn't
  26218. matter which value it is defined to. This macro need not be a
  26219. constant.
  26220. This macro does not affect the way structure fields are packed into
  26221. bytes or words; that is controlled by 'BYTES_BIG_ENDIAN'.
  26222. -- Macro: BYTES_BIG_ENDIAN
  26223. Define this macro to have the value 1 if the most significant byte
  26224. in a word has the lowest number. This macro need not be a
  26225. constant.
  26226. -- Macro: WORDS_BIG_ENDIAN
  26227. Define this macro to have the value 1 if, in a multiword object,
  26228. the most significant word has the lowest number. This applies to
  26229. both memory locations and registers; see 'REG_WORDS_BIG_ENDIAN' if
  26230. the order of words in memory is not the same as the order in
  26231. registers. This macro need not be a constant.
  26232. -- Macro: REG_WORDS_BIG_ENDIAN
  26233. On some machines, the order of words in a multiword object differs
  26234. between registers in memory. In such a situation, define this
  26235. macro to describe the order of words in a register. The macro
  26236. 'WORDS_BIG_ENDIAN' controls the order of words in memory.
  26237. -- Macro: FLOAT_WORDS_BIG_ENDIAN
  26238. Define this macro to have the value 1 if 'DFmode', 'XFmode' or
  26239. 'TFmode' floating point numbers are stored in memory with the word
  26240. containing the sign bit at the lowest address; otherwise define it
  26241. to have the value 0. This macro need not be a constant.
  26242. You need not define this macro if the ordering is the same as for
  26243. multi-word integers.
  26244. -- Macro: BITS_PER_WORD
  26245. Number of bits in a word. If you do not define this macro, the
  26246. default is 'BITS_PER_UNIT * UNITS_PER_WORD'.
  26247. -- Macro: MAX_BITS_PER_WORD
  26248. Maximum number of bits in a word. If this is undefined, the
  26249. default is 'BITS_PER_WORD'. Otherwise, it is the constant value
  26250. that is the largest value that 'BITS_PER_WORD' can have at
  26251. run-time.
  26252. -- Macro: UNITS_PER_WORD
  26253. Number of storage units in a word; normally the size of a
  26254. general-purpose register, a power of two from 1 or 8.
  26255. -- Macro: MIN_UNITS_PER_WORD
  26256. Minimum number of units in a word. If this is undefined, the
  26257. default is 'UNITS_PER_WORD'. Otherwise, it is the constant value
  26258. that is the smallest value that 'UNITS_PER_WORD' can have at
  26259. run-time.
  26260. -- Macro: POINTER_SIZE
  26261. Width of a pointer, in bits. You must specify a value no wider
  26262. than the width of 'Pmode'. If it is not equal to the width of
  26263. 'Pmode', you must define 'POINTERS_EXTEND_UNSIGNED'. If you do not
  26264. specify a value the default is 'BITS_PER_WORD'.
  26265. -- Macro: POINTERS_EXTEND_UNSIGNED
  26266. A C expression that determines how pointers should be extended from
  26267. 'ptr_mode' to either 'Pmode' or 'word_mode'. It is greater than
  26268. zero if pointers should be zero-extended, zero if they should be
  26269. sign-extended, and negative if some other sort of conversion is
  26270. needed. In the last case, the extension is done by the target's
  26271. 'ptr_extend' instruction.
  26272. You need not define this macro if the 'ptr_mode', 'Pmode' and
  26273. 'word_mode' are all the same width.
  26274. -- Macro: PROMOTE_MODE (M, UNSIGNEDP, TYPE)
  26275. A macro to update M and UNSIGNEDP when an object whose type is TYPE
  26276. and which has the specified mode and signedness is to be stored in
  26277. a register. This macro is only called when TYPE is a scalar type.
  26278. On most RISC machines, which only have operations that operate on a
  26279. full register, define this macro to set M to 'word_mode' if M is an
  26280. integer mode narrower than 'BITS_PER_WORD'. In most cases, only
  26281. integer modes should be widened because wider-precision
  26282. floating-point operations are usually more expensive than their
  26283. narrower counterparts.
  26284. For most machines, the macro definition does not change UNSIGNEDP.
  26285. However, some machines, have instructions that preferentially
  26286. handle either signed or unsigned quantities of certain modes. For
  26287. example, on the DEC Alpha, 32-bit loads from memory and 32-bit add
  26288. instructions sign-extend the result to 64 bits. On such machines,
  26289. set UNSIGNEDP according to which kind of extension is more
  26290. efficient.
  26291. Do not define this macro if it would never modify M.
  26292. -- Target Hook: enum flt_eval_method TARGET_C_EXCESS_PRECISION (enum
  26293. excess_precision_type TYPE)
  26294. Return a value, with the same meaning as the C99 macro
  26295. 'FLT_EVAL_METHOD' that describes which excess precision should be
  26296. applied. TYPE is either 'EXCESS_PRECISION_TYPE_IMPLICIT',
  26297. 'EXCESS_PRECISION_TYPE_FAST', or 'EXCESS_PRECISION_TYPE_STANDARD'.
  26298. For 'EXCESS_PRECISION_TYPE_IMPLICIT', the target should return
  26299. which precision and range operations will be implictly evaluated in
  26300. regardless of the excess precision explicitly added. For
  26301. 'EXCESS_PRECISION_TYPE_STANDARD' and 'EXCESS_PRECISION_TYPE_FAST',
  26302. the target should return the explicit excess precision that should
  26303. be added depending on the value set for
  26304. '-fexcess-precision=[standard|fast]'. Note that unpredictable
  26305. explicit excess precision does not make sense, so a target should
  26306. never return 'FLT_EVAL_METHOD_UNPREDICTABLE' when TYPE is
  26307. 'EXCESS_PRECISION_TYPE_STANDARD' or 'EXCESS_PRECISION_TYPE_FAST'.
  26308. -- Target Hook: machine_mode TARGET_PROMOTE_FUNCTION_MODE (const_tree
  26309. TYPE, machine_mode MODE, int *PUNSIGNEDP, const_tree FUNTYPE,
  26310. int FOR_RETURN)
  26311. Like 'PROMOTE_MODE', but it is applied to outgoing function
  26312. arguments or function return values. The target hook should return
  26313. the new mode and possibly change '*PUNSIGNEDP' if the promotion
  26314. should change signedness. This function is called only for scalar
  26315. _or pointer_ types.
  26316. FOR_RETURN allows to distinguish the promotion of arguments and
  26317. return values. If it is '1', a return value is being promoted and
  26318. 'TARGET_FUNCTION_VALUE' must perform the same promotions done here.
  26319. If it is '2', the returned mode should be that of the register in
  26320. which an incoming parameter is copied, or the outgoing result is
  26321. computed; then the hook should return the same mode as
  26322. 'promote_mode', though the signedness may be different.
  26323. TYPE can be NULL when promoting function arguments of libcalls.
  26324. The default is to not promote arguments and return values. You can
  26325. also define the hook to
  26326. 'default_promote_function_mode_always_promote' if you would like to
  26327. apply the same rules given by 'PROMOTE_MODE'.
  26328. -- Macro: PARM_BOUNDARY
  26329. Normal alignment required for function parameters on the stack, in
  26330. bits. All stack parameters receive at least this much alignment
  26331. regardless of data type. On most machines, this is the same as the
  26332. size of an integer.
  26333. -- Macro: STACK_BOUNDARY
  26334. Define this macro to the minimum alignment enforced by hardware for
  26335. the stack pointer on this machine. The definition is a C
  26336. expression for the desired alignment (measured in bits). This
  26337. value is used as a default if 'PREFERRED_STACK_BOUNDARY' is not
  26338. defined. On most machines, this should be the same as
  26339. 'PARM_BOUNDARY'.
  26340. -- Macro: PREFERRED_STACK_BOUNDARY
  26341. Define this macro if you wish to preserve a certain alignment for
  26342. the stack pointer, greater than what the hardware enforces. The
  26343. definition is a C expression for the desired alignment (measured in
  26344. bits). This macro must evaluate to a value equal to or larger than
  26345. 'STACK_BOUNDARY'.
  26346. -- Macro: INCOMING_STACK_BOUNDARY
  26347. Define this macro if the incoming stack boundary may be different
  26348. from 'PREFERRED_STACK_BOUNDARY'. This macro must evaluate to a
  26349. value equal to or larger than 'STACK_BOUNDARY'.
  26350. -- Macro: FUNCTION_BOUNDARY
  26351. Alignment required for a function entry point, in bits.
  26352. -- Macro: BIGGEST_ALIGNMENT
  26353. Biggest alignment that any data type can require on this machine,
  26354. in bits. Note that this is not the biggest alignment that is
  26355. supported, just the biggest alignment that, when violated, may
  26356. cause a fault.
  26357. -- Target Hook: HOST_WIDE_INT TARGET_ABSOLUTE_BIGGEST_ALIGNMENT
  26358. If defined, this target hook specifies the absolute biggest
  26359. alignment that a type or variable can have on this machine,
  26360. otherwise, 'BIGGEST_ALIGNMENT' is used.
  26361. -- Macro: MALLOC_ABI_ALIGNMENT
  26362. Alignment, in bits, a C conformant malloc implementation has to
  26363. provide. If not defined, the default value is 'BITS_PER_WORD'.
  26364. -- Macro: ATTRIBUTE_ALIGNED_VALUE
  26365. Alignment used by the '__attribute__ ((aligned))' construct. If
  26366. not defined, the default value is 'BIGGEST_ALIGNMENT'.
  26367. -- Macro: MINIMUM_ATOMIC_ALIGNMENT
  26368. If defined, the smallest alignment, in bits, that can be given to
  26369. an object that can be referenced in one operation, without
  26370. disturbing any nearby object. Normally, this is 'BITS_PER_UNIT',
  26371. but may be larger on machines that don't have byte or half-word
  26372. store operations.
  26373. -- Macro: BIGGEST_FIELD_ALIGNMENT
  26374. Biggest alignment that any structure or union field can require on
  26375. this machine, in bits. If defined, this overrides
  26376. 'BIGGEST_ALIGNMENT' for structure and union fields only, unless the
  26377. field alignment has been set by the '__attribute__ ((aligned (N)))'
  26378. construct.
  26379. -- Macro: ADJUST_FIELD_ALIGN (FIELD, TYPE, COMPUTED)
  26380. An expression for the alignment of a structure field FIELD of type
  26381. TYPE if the alignment computed in the usual way (including applying
  26382. of 'BIGGEST_ALIGNMENT' and 'BIGGEST_FIELD_ALIGNMENT' to the
  26383. alignment) is COMPUTED. It overrides alignment only if the field
  26384. alignment has not been set by the '__attribute__ ((aligned (N)))'
  26385. construct. Note that FIELD may be 'NULL_TREE' in case we just
  26386. query for the minimum alignment of a field of type TYPE in
  26387. structure context.
  26388. -- Macro: MAX_STACK_ALIGNMENT
  26389. Biggest stack alignment guaranteed by the backend. Use this macro
  26390. to specify the maximum alignment of a variable on stack.
  26391. If not defined, the default value is 'STACK_BOUNDARY'.
  26392. -- Macro: MAX_OFILE_ALIGNMENT
  26393. Biggest alignment supported by the object file format of this
  26394. machine. Use this macro to limit the alignment which can be
  26395. specified using the '__attribute__ ((aligned (N)))' construct for
  26396. functions and objects with static storage duration. The alignment
  26397. of automatic objects may exceed the object file format maximum up
  26398. to the maximum supported by GCC. If not defined, the default value
  26399. is 'BIGGEST_ALIGNMENT'.
  26400. On systems that use ELF, the default (in 'config/elfos.h') is the
  26401. largest supported 32-bit ELF section alignment representable on a
  26402. 32-bit host e.g. '(((uint64_t) 1 << 28) * 8)'. On 32-bit ELF the
  26403. largest supported section alignment in bits is '(0x80000000 * 8)',
  26404. but this is not representable on 32-bit hosts.
  26405. -- Target Hook: void TARGET_LOWER_LOCAL_DECL_ALIGNMENT (tree DECL)
  26406. Define this hook to lower alignment of local, parm or result decl
  26407. '(DECL)'.
  26408. -- Target Hook: HOST_WIDE_INT TARGET_STATIC_RTX_ALIGNMENT (machine_mode
  26409. MODE)
  26410. This hook returns the preferred alignment in bits for a
  26411. statically-allocated rtx, such as a constant pool entry. MODE is
  26412. the mode of the rtx. The default implementation returns
  26413. 'GET_MODE_ALIGNMENT (MODE)'.
  26414. -- Macro: DATA_ALIGNMENT (TYPE, BASIC-ALIGN)
  26415. If defined, a C expression to compute the alignment for a variable
  26416. in the static store. TYPE is the data type, and BASIC-ALIGN is the
  26417. alignment that the object would ordinarily have. The value of this
  26418. macro is used instead of that alignment to align the object.
  26419. If this macro is not defined, then BASIC-ALIGN is used.
  26420. One use of this macro is to increase alignment of medium-size data
  26421. to make it all fit in fewer cache lines. Another is to cause
  26422. character arrays to be word-aligned so that 'strcpy' calls that
  26423. copy constants to character arrays can be done inline.
  26424. -- Macro: DATA_ABI_ALIGNMENT (TYPE, BASIC-ALIGN)
  26425. Similar to 'DATA_ALIGNMENT', but for the cases where the ABI
  26426. mandates some alignment increase, instead of optimization only
  26427. purposes. E.g. AMD x86-64 psABI says that variables with array
  26428. type larger than 15 bytes must be aligned to 16 byte boundaries.
  26429. If this macro is not defined, then BASIC-ALIGN is used.
  26430. -- Target Hook: HOST_WIDE_INT TARGET_CONSTANT_ALIGNMENT (const_tree
  26431. CONSTANT, HOST_WIDE_INT BASIC_ALIGN)
  26432. This hook returns the alignment in bits of a constant that is being
  26433. placed in memory. CONSTANT is the constant and BASIC_ALIGN is the
  26434. alignment that the object would ordinarily have.
  26435. The default definition just returns BASIC_ALIGN.
  26436. The typical use of this hook is to increase alignment for string
  26437. constants to be word aligned so that 'strcpy' calls that copy
  26438. constants can be done inline. The function
  26439. 'constant_alignment_word_strings' provides such a definition.
  26440. -- Macro: LOCAL_ALIGNMENT (TYPE, BASIC-ALIGN)
  26441. If defined, a C expression to compute the alignment for a variable
  26442. in the local store. TYPE is the data type, and BASIC-ALIGN is the
  26443. alignment that the object would ordinarily have. The value of this
  26444. macro is used instead of that alignment to align the object.
  26445. If this macro is not defined, then BASIC-ALIGN is used.
  26446. One use of this macro is to increase alignment of medium-size data
  26447. to make it all fit in fewer cache lines.
  26448. If the value of this macro has a type, it should be an unsigned
  26449. type.
  26450. -- Target Hook: HOST_WIDE_INT TARGET_VECTOR_ALIGNMENT (const_tree TYPE)
  26451. This hook can be used to define the alignment for a vector of type
  26452. TYPE, in order to comply with a platform ABI. The default is to
  26453. require natural alignment for vector types. The alignment returned
  26454. by this hook must be a power-of-two multiple of the default
  26455. alignment of the vector element type.
  26456. -- Macro: STACK_SLOT_ALIGNMENT (TYPE, MODE, BASIC-ALIGN)
  26457. If defined, a C expression to compute the alignment for stack slot.
  26458. TYPE is the data type, MODE is the widest mode available, and
  26459. BASIC-ALIGN is the alignment that the slot would ordinarily have.
  26460. The value of this macro is used instead of that alignment to align
  26461. the slot.
  26462. If this macro is not defined, then BASIC-ALIGN is used when TYPE is
  26463. 'NULL'. Otherwise, 'LOCAL_ALIGNMENT' will be used.
  26464. This macro is to set alignment of stack slot to the maximum
  26465. alignment of all possible modes which the slot may have.
  26466. If the value of this macro has a type, it should be an unsigned
  26467. type.
  26468. -- Macro: LOCAL_DECL_ALIGNMENT (DECL)
  26469. If defined, a C expression to compute the alignment for a local
  26470. variable DECL.
  26471. If this macro is not defined, then 'LOCAL_ALIGNMENT (TREE_TYPE
  26472. (DECL), DECL_ALIGN (DECL))' is used.
  26473. One use of this macro is to increase alignment of medium-size data
  26474. to make it all fit in fewer cache lines.
  26475. If the value of this macro has a type, it should be an unsigned
  26476. type.
  26477. -- Macro: MINIMUM_ALIGNMENT (EXP, MODE, ALIGN)
  26478. If defined, a C expression to compute the minimum required
  26479. alignment for dynamic stack realignment purposes for EXP (a type or
  26480. decl), MODE, assuming normal alignment ALIGN.
  26481. If this macro is not defined, then ALIGN will be used.
  26482. -- Macro: EMPTY_FIELD_BOUNDARY
  26483. Alignment in bits to be given to a structure bit-field that follows
  26484. an empty field such as 'int : 0;'.
  26485. If 'PCC_BITFIELD_TYPE_MATTERS' is true, it overrides this macro.
  26486. -- Macro: STRUCTURE_SIZE_BOUNDARY
  26487. Number of bits which any structure or union's size must be a
  26488. multiple of. Each structure or union's size is rounded up to a
  26489. multiple of this.
  26490. If you do not define this macro, the default is the same as
  26491. 'BITS_PER_UNIT'.
  26492. -- Macro: STRICT_ALIGNMENT
  26493. Define this macro to be the value 1 if instructions will fail to
  26494. work if given data not on the nominal alignment. If instructions
  26495. will merely go slower in that case, define this macro as 0.
  26496. -- Macro: PCC_BITFIELD_TYPE_MATTERS
  26497. Define this if you wish to imitate the way many other C compilers
  26498. handle alignment of bit-fields and the structures that contain
  26499. them.
  26500. The behavior is that the type written for a named bit-field ('int',
  26501. 'short', or other integer type) imposes an alignment for the entire
  26502. structure, as if the structure really did contain an ordinary field
  26503. of that type. In addition, the bit-field is placed within the
  26504. structure so that it would fit within such a field, not crossing a
  26505. boundary for it.
  26506. Thus, on most machines, a named bit-field whose type is written as
  26507. 'int' would not cross a four-byte boundary, and would force
  26508. four-byte alignment for the whole structure. (The alignment used
  26509. may not be four bytes; it is controlled by the other alignment
  26510. parameters.)
  26511. An unnamed bit-field will not affect the alignment of the
  26512. containing structure.
  26513. If the macro is defined, its definition should be a C expression; a
  26514. nonzero value for the expression enables this behavior.
  26515. Note that if this macro is not defined, or its value is zero, some
  26516. bit-fields may cross more than one alignment boundary. The
  26517. compiler can support such references if there are 'insv', 'extv',
  26518. and 'extzv' insns that can directly reference memory.
  26519. The other known way of making bit-fields work is to define
  26520. 'STRUCTURE_SIZE_BOUNDARY' as large as 'BIGGEST_ALIGNMENT'. Then
  26521. every structure can be accessed with fullwords.
  26522. Unless the machine has bit-field instructions or you define
  26523. 'STRUCTURE_SIZE_BOUNDARY' that way, you must define
  26524. 'PCC_BITFIELD_TYPE_MATTERS' to have a nonzero value.
  26525. If your aim is to make GCC use the same conventions for laying out
  26526. bit-fields as are used by another compiler, here is how to
  26527. investigate what the other compiler does. Compile and run this
  26528. program:
  26529. struct foo1
  26530. {
  26531. char x;
  26532. char :0;
  26533. char y;
  26534. };
  26535. struct foo2
  26536. {
  26537. char x;
  26538. int :0;
  26539. char y;
  26540. };
  26541. main ()
  26542. {
  26543. printf ("Size of foo1 is %d\n",
  26544. sizeof (struct foo1));
  26545. printf ("Size of foo2 is %d\n",
  26546. sizeof (struct foo2));
  26547. exit (0);
  26548. }
  26549. If this prints 2 and 5, then the compiler's behavior is what you
  26550. would get from 'PCC_BITFIELD_TYPE_MATTERS'.
  26551. -- Macro: BITFIELD_NBYTES_LIMITED
  26552. Like 'PCC_BITFIELD_TYPE_MATTERS' except that its effect is limited
  26553. to aligning a bit-field within the structure.
  26554. -- Target Hook: bool TARGET_ALIGN_ANON_BITFIELD (void)
  26555. When 'PCC_BITFIELD_TYPE_MATTERS' is true this hook will determine
  26556. whether unnamed bitfields affect the alignment of the containing
  26557. structure. The hook should return true if the structure should
  26558. inherit the alignment requirements of an unnamed bitfield's type.
  26559. -- Target Hook: bool TARGET_NARROW_VOLATILE_BITFIELD (void)
  26560. This target hook should return 'true' if accesses to volatile
  26561. bitfields should use the narrowest mode possible. It should return
  26562. 'false' if these accesses should use the bitfield container type.
  26563. The default is 'false'.
  26564. -- Target Hook: bool TARGET_MEMBER_TYPE_FORCES_BLK (const_tree FIELD,
  26565. machine_mode MODE)
  26566. Return true if a structure, union or array containing FIELD should
  26567. be accessed using 'BLKMODE'.
  26568. If FIELD is the only field in the structure, MODE is its mode,
  26569. otherwise MODE is VOIDmode. MODE is provided in the case where
  26570. structures of one field would require the structure's mode to
  26571. retain the field's mode.
  26572. Normally, this is not needed.
  26573. -- Macro: ROUND_TYPE_ALIGN (TYPE, COMPUTED, SPECIFIED)
  26574. Define this macro as an expression for the alignment of a type
  26575. (given by TYPE as a tree node) if the alignment computed in the
  26576. usual way is COMPUTED and the alignment explicitly specified was
  26577. SPECIFIED.
  26578. The default is to use SPECIFIED if it is larger; otherwise, use the
  26579. smaller of COMPUTED and 'BIGGEST_ALIGNMENT'
  26580. -- Macro: MAX_FIXED_MODE_SIZE
  26581. An integer expression for the size in bits of the largest integer
  26582. machine mode that should actually be used. All integer machine
  26583. modes of this size or smaller can be used for structures and unions
  26584. with the appropriate sizes. If this macro is undefined,
  26585. 'GET_MODE_BITSIZE (DImode)' is assumed.
  26586. -- Macro: STACK_SAVEAREA_MODE (SAVE_LEVEL)
  26587. If defined, an expression of type 'machine_mode' that specifies the
  26588. mode of the save area operand of a 'save_stack_LEVEL' named pattern
  26589. (*note Standard Names::). SAVE_LEVEL is one of 'SAVE_BLOCK',
  26590. 'SAVE_FUNCTION', or 'SAVE_NONLOCAL' and selects which of the three
  26591. named patterns is having its mode specified.
  26592. You need not define this macro if it always returns 'Pmode'. You
  26593. would most commonly define this macro if the 'save_stack_LEVEL'
  26594. patterns need to support both a 32- and a 64-bit mode.
  26595. -- Macro: STACK_SIZE_MODE
  26596. If defined, an expression of type 'machine_mode' that specifies the
  26597. mode of the size increment operand of an 'allocate_stack' named
  26598. pattern (*note Standard Names::).
  26599. You need not define this macro if it always returns 'word_mode'.
  26600. You would most commonly define this macro if the 'allocate_stack'
  26601. pattern needs to support both a 32- and a 64-bit mode.
  26602. -- Target Hook: scalar_int_mode TARGET_LIBGCC_CMP_RETURN_MODE (void)
  26603. This target hook should return the mode to be used for the return
  26604. value of compare instructions expanded to libgcc calls. If not
  26605. defined 'word_mode' is returned which is the right choice for a
  26606. majority of targets.
  26607. -- Target Hook: scalar_int_mode TARGET_LIBGCC_SHIFT_COUNT_MODE (void)
  26608. This target hook should return the mode to be used for the shift
  26609. count operand of shift instructions expanded to libgcc calls. If
  26610. not defined 'word_mode' is returned which is the right choice for a
  26611. majority of targets.
  26612. -- Target Hook: scalar_int_mode TARGET_UNWIND_WORD_MODE (void)
  26613. Return machine mode to be used for '_Unwind_Word' type. The
  26614. default is to use 'word_mode'.
  26615. -- Target Hook: bool TARGET_MS_BITFIELD_LAYOUT_P (const_tree
  26616. RECORD_TYPE)
  26617. This target hook returns 'true' if bit-fields in the given
  26618. RECORD_TYPE are to be laid out following the rules of Microsoft
  26619. Visual C/C++, namely: (i) a bit-field won't share the same storage
  26620. unit with the previous bit-field if their underlying types have
  26621. different sizes, and the bit-field will be aligned to the highest
  26622. alignment of the underlying types of itself and of the previous
  26623. bit-field; (ii) a zero-sized bit-field will affect the alignment of
  26624. the whole enclosing structure, even if it is unnamed; except that
  26625. (iii) a zero-sized bit-field will be disregarded unless it follows
  26626. another bit-field of nonzero size. If this hook returns 'true',
  26627. other macros that control bit-field layout are ignored.
  26628. When a bit-field is inserted into a packed record, the whole size
  26629. of the underlying type is used by one or more same-size adjacent
  26630. bit-fields (that is, if its long:3, 32 bits is used in the record,
  26631. and any additional adjacent long bit-fields are packed into the
  26632. same chunk of 32 bits. However, if the size changes, a new field
  26633. of that size is allocated). In an unpacked record, this is the
  26634. same as using alignment, but not equivalent when packing.
  26635. If both MS bit-fields and '__attribute__((packed))' are used, the
  26636. latter will take precedence. If '__attribute__((packed))' is used
  26637. on a single field when MS bit-fields are in use, it will take
  26638. precedence for that field, but the alignment of the rest of the
  26639. structure may affect its placement.
  26640. -- Target Hook: bool TARGET_DECIMAL_FLOAT_SUPPORTED_P (void)
  26641. Returns true if the target supports decimal floating point.
  26642. -- Target Hook: bool TARGET_FIXED_POINT_SUPPORTED_P (void)
  26643. Returns true if the target supports fixed-point arithmetic.
  26644. -- Target Hook: void TARGET_EXPAND_TO_RTL_HOOK (void)
  26645. This hook is called just before expansion into rtl, allowing the
  26646. target to perform additional initializations or analysis before the
  26647. expansion. For example, the rs6000 port uses it to allocate a
  26648. scratch stack slot for use in copying SDmode values between memory
  26649. and floating point registers whenever the function being expanded
  26650. has any SDmode usage.
  26651. -- Target Hook: void TARGET_INSTANTIATE_DECLS (void)
  26652. This hook allows the backend to perform additional instantiations
  26653. on rtl that are not actually in any insns yet, but will be later.
  26654. -- Target Hook: const char * TARGET_MANGLE_TYPE (const_tree TYPE)
  26655. If your target defines any fundamental types, or any types your
  26656. target uses should be mangled differently from the default, define
  26657. this hook to return the appropriate encoding for these types as
  26658. part of a C++ mangled name. The TYPE argument is the tree
  26659. structure representing the type to be mangled. The hook may be
  26660. applied to trees which are not target-specific fundamental types;
  26661. it should return 'NULL' for all such types, as well as arguments it
  26662. does not recognize. If the return value is not 'NULL', it must
  26663. point to a statically-allocated string constant.
  26664. Target-specific fundamental types might be new fundamental types or
  26665. qualified versions of ordinary fundamental types. Encode new
  26666. fundamental types as 'u N NAME', where NAME is the name used for
  26667. the type in source code, and N is the length of NAME in decimal.
  26668. Encode qualified versions of ordinary types as 'U N NAME CODE',
  26669. where NAME is the name used for the type qualifier in source code,
  26670. N is the length of NAME as above, and CODE is the code used to
  26671. represent the unqualified version of this type. (See
  26672. 'write_builtin_type' in 'cp/mangle.c' for the list of codes.) In
  26673. both cases the spaces are for clarity; do not include any spaces in
  26674. your string.
  26675. This hook is applied to types prior to typedef resolution. If the
  26676. mangled name for a particular type depends only on that type's main
  26677. variant, you can perform typedef resolution yourself using
  26678. 'TYPE_MAIN_VARIANT' before mangling.
  26679. The default version of this hook always returns 'NULL', which is
  26680. appropriate for a target that does not define any new fundamental
  26681. types.
  26682. 
  26683. File: gccint.info, Node: Type Layout, Next: Registers, Prev: Storage Layout, Up: Target Macros
  26684. 18.6 Layout of Source Language Data Types
  26685. =========================================
  26686. These macros define the sizes and other characteristics of the standard
  26687. basic data types used in programs being compiled. Unlike the macros in
  26688. the previous section, these apply to specific features of C and related
  26689. languages, rather than to fundamental aspects of storage layout.
  26690. -- Macro: INT_TYPE_SIZE
  26691. A C expression for the size in bits of the type 'int' on the target
  26692. machine. If you don't define this, the default is one word.
  26693. -- Macro: SHORT_TYPE_SIZE
  26694. A C expression for the size in bits of the type 'short' on the
  26695. target machine. If you don't define this, the default is half a
  26696. word. (If this would be less than one storage unit, it is rounded
  26697. up to one unit.)
  26698. -- Macro: LONG_TYPE_SIZE
  26699. A C expression for the size in bits of the type 'long' on the
  26700. target machine. If you don't define this, the default is one word.
  26701. -- Macro: ADA_LONG_TYPE_SIZE
  26702. On some machines, the size used for the Ada equivalent of the type
  26703. 'long' by a native Ada compiler differs from that used by C. In
  26704. that situation, define this macro to be a C expression to be used
  26705. for the size of that type. If you don't define this, the default
  26706. is the value of 'LONG_TYPE_SIZE'.
  26707. -- Macro: LONG_LONG_TYPE_SIZE
  26708. A C expression for the size in bits of the type 'long long' on the
  26709. target machine. If you don't define this, the default is two
  26710. words. If you want to support GNU Ada on your machine, the value
  26711. of this macro must be at least 64.
  26712. -- Macro: CHAR_TYPE_SIZE
  26713. A C expression for the size in bits of the type 'char' on the
  26714. target machine. If you don't define this, the default is
  26715. 'BITS_PER_UNIT'.
  26716. -- Macro: BOOL_TYPE_SIZE
  26717. A C expression for the size in bits of the C++ type 'bool' and C99
  26718. type '_Bool' on the target machine. If you don't define this, and
  26719. you probably shouldn't, the default is 'CHAR_TYPE_SIZE'.
  26720. -- Macro: FLOAT_TYPE_SIZE
  26721. A C expression for the size in bits of the type 'float' on the
  26722. target machine. If you don't define this, the default is one word.
  26723. -- Macro: DOUBLE_TYPE_SIZE
  26724. A C expression for the size in bits of the type 'double' on the
  26725. target machine. If you don't define this, the default is two
  26726. words.
  26727. -- Macro: LONG_DOUBLE_TYPE_SIZE
  26728. A C expression for the size in bits of the type 'long double' on
  26729. the target machine. If you don't define this, the default is two
  26730. words.
  26731. -- Macro: SHORT_FRACT_TYPE_SIZE
  26732. A C expression for the size in bits of the type 'short _Fract' on
  26733. the target machine. If you don't define this, the default is
  26734. 'BITS_PER_UNIT'.
  26735. -- Macro: FRACT_TYPE_SIZE
  26736. A C expression for the size in bits of the type '_Fract' on the
  26737. target machine. If you don't define this, the default is
  26738. 'BITS_PER_UNIT * 2'.
  26739. -- Macro: LONG_FRACT_TYPE_SIZE
  26740. A C expression for the size in bits of the type 'long _Fract' on
  26741. the target machine. If you don't define this, the default is
  26742. 'BITS_PER_UNIT * 4'.
  26743. -- Macro: LONG_LONG_FRACT_TYPE_SIZE
  26744. A C expression for the size in bits of the type 'long long _Fract'
  26745. on the target machine. If you don't define this, the default is
  26746. 'BITS_PER_UNIT * 8'.
  26747. -- Macro: SHORT_ACCUM_TYPE_SIZE
  26748. A C expression for the size in bits of the type 'short _Accum' on
  26749. the target machine. If you don't define this, the default is
  26750. 'BITS_PER_UNIT * 2'.
  26751. -- Macro: ACCUM_TYPE_SIZE
  26752. A C expression for the size in bits of the type '_Accum' on the
  26753. target machine. If you don't define this, the default is
  26754. 'BITS_PER_UNIT * 4'.
  26755. -- Macro: LONG_ACCUM_TYPE_SIZE
  26756. A C expression for the size in bits of the type 'long _Accum' on
  26757. the target machine. If you don't define this, the default is
  26758. 'BITS_PER_UNIT * 8'.
  26759. -- Macro: LONG_LONG_ACCUM_TYPE_SIZE
  26760. A C expression for the size in bits of the type 'long long _Accum'
  26761. on the target machine. If you don't define this, the default is
  26762. 'BITS_PER_UNIT * 16'.
  26763. -- Macro: LIBGCC2_GNU_PREFIX
  26764. This macro corresponds to the 'TARGET_LIBFUNC_GNU_PREFIX' target
  26765. hook and should be defined if that hook is overriden to be true.
  26766. It causes function names in libgcc to be changed to use a '__gnu_'
  26767. prefix for their name rather than the default '__'. A port which
  26768. uses this macro should also arrange to use 't-gnu-prefix' in the
  26769. libgcc 'config.host'.
  26770. -- Macro: WIDEST_HARDWARE_FP_SIZE
  26771. A C expression for the size in bits of the widest floating-point
  26772. format supported by the hardware. If you define this macro, you
  26773. must specify a value less than or equal to the value of
  26774. 'LONG_DOUBLE_TYPE_SIZE'. If you do not define this macro, the
  26775. value of 'LONG_DOUBLE_TYPE_SIZE' is the default.
  26776. -- Macro: DEFAULT_SIGNED_CHAR
  26777. An expression whose value is 1 or 0, according to whether the type
  26778. 'char' should be signed or unsigned by default. The user can
  26779. always override this default with the options '-fsigned-char' and
  26780. '-funsigned-char'.
  26781. -- Target Hook: bool TARGET_DEFAULT_SHORT_ENUMS (void)
  26782. This target hook should return true if the compiler should give an
  26783. 'enum' type only as many bytes as it takes to represent the range
  26784. of possible values of that type. It should return false if all
  26785. 'enum' types should be allocated like 'int'.
  26786. The default is to return false.
  26787. -- Macro: SIZE_TYPE
  26788. A C expression for a string describing the name of the data type to
  26789. use for size values. The typedef name 'size_t' is defined using
  26790. the contents of the string.
  26791. The string can contain more than one keyword. If so, separate them
  26792. with spaces, and write first any length keyword, then 'unsigned' if
  26793. appropriate, and finally 'int'. The string must exactly match one
  26794. of the data type names defined in the function
  26795. 'c_common_nodes_and_builtins' in the file 'c-family/c-common.c'.
  26796. You may not omit 'int' or change the order--that would cause the
  26797. compiler to crash on startup.
  26798. If you don't define this macro, the default is '"long unsigned
  26799. int"'.
  26800. -- Macro: SIZETYPE
  26801. GCC defines internal types ('sizetype', 'ssizetype', 'bitsizetype'
  26802. and 'sbitsizetype') for expressions dealing with size. This macro
  26803. is a C expression for a string describing the name of the data type
  26804. from which the precision of 'sizetype' is extracted.
  26805. The string has the same restrictions as 'SIZE_TYPE' string.
  26806. If you don't define this macro, the default is 'SIZE_TYPE'.
  26807. -- Macro: PTRDIFF_TYPE
  26808. A C expression for a string describing the name of the data type to
  26809. use for the result of subtracting two pointers. The typedef name
  26810. 'ptrdiff_t' is defined using the contents of the string. See
  26811. 'SIZE_TYPE' above for more information.
  26812. If you don't define this macro, the default is '"long int"'.
  26813. -- Macro: WCHAR_TYPE
  26814. A C expression for a string describing the name of the data type to
  26815. use for wide characters. The typedef name 'wchar_t' is defined
  26816. using the contents of the string. See 'SIZE_TYPE' above for more
  26817. information.
  26818. If you don't define this macro, the default is '"int"'.
  26819. -- Macro: WCHAR_TYPE_SIZE
  26820. A C expression for the size in bits of the data type for wide
  26821. characters. This is used in 'cpp', which cannot make use of
  26822. 'WCHAR_TYPE'.
  26823. -- Macro: WINT_TYPE
  26824. A C expression for a string describing the name of the data type to
  26825. use for wide characters passed to 'printf' and returned from
  26826. 'getwc'. The typedef name 'wint_t' is defined using the contents
  26827. of the string. See 'SIZE_TYPE' above for more information.
  26828. If you don't define this macro, the default is '"unsigned int"'.
  26829. -- Macro: INTMAX_TYPE
  26830. A C expression for a string describing the name of the data type
  26831. that can represent any value of any standard or extended signed
  26832. integer type. The typedef name 'intmax_t' is defined using the
  26833. contents of the string. See 'SIZE_TYPE' above for more
  26834. information.
  26835. If you don't define this macro, the default is the first of
  26836. '"int"', '"long int"', or '"long long int"' that has as much
  26837. precision as 'long long int'.
  26838. -- Macro: UINTMAX_TYPE
  26839. A C expression for a string describing the name of the data type
  26840. that can represent any value of any standard or extended unsigned
  26841. integer type. The typedef name 'uintmax_t' is defined using the
  26842. contents of the string. See 'SIZE_TYPE' above for more
  26843. information.
  26844. If you don't define this macro, the default is the first of
  26845. '"unsigned int"', '"long unsigned int"', or '"long long unsigned
  26846. int"' that has as much precision as 'long long unsigned int'.
  26847. -- Macro: SIG_ATOMIC_TYPE
  26848. -- Macro: INT8_TYPE
  26849. -- Macro: INT16_TYPE
  26850. -- Macro: INT32_TYPE
  26851. -- Macro: INT64_TYPE
  26852. -- Macro: UINT8_TYPE
  26853. -- Macro: UINT16_TYPE
  26854. -- Macro: UINT32_TYPE
  26855. -- Macro: UINT64_TYPE
  26856. -- Macro: INT_LEAST8_TYPE
  26857. -- Macro: INT_LEAST16_TYPE
  26858. -- Macro: INT_LEAST32_TYPE
  26859. -- Macro: INT_LEAST64_TYPE
  26860. -- Macro: UINT_LEAST8_TYPE
  26861. -- Macro: UINT_LEAST16_TYPE
  26862. -- Macro: UINT_LEAST32_TYPE
  26863. -- Macro: UINT_LEAST64_TYPE
  26864. -- Macro: INT_FAST8_TYPE
  26865. -- Macro: INT_FAST16_TYPE
  26866. -- Macro: INT_FAST32_TYPE
  26867. -- Macro: INT_FAST64_TYPE
  26868. -- Macro: UINT_FAST8_TYPE
  26869. -- Macro: UINT_FAST16_TYPE
  26870. -- Macro: UINT_FAST32_TYPE
  26871. -- Macro: UINT_FAST64_TYPE
  26872. -- Macro: INTPTR_TYPE
  26873. -- Macro: UINTPTR_TYPE
  26874. C expressions for the standard types 'sig_atomic_t', 'int8_t',
  26875. 'int16_t', 'int32_t', 'int64_t', 'uint8_t', 'uint16_t', 'uint32_t',
  26876. 'uint64_t', 'int_least8_t', 'int_least16_t', 'int_least32_t',
  26877. 'int_least64_t', 'uint_least8_t', 'uint_least16_t',
  26878. 'uint_least32_t', 'uint_least64_t', 'int_fast8_t', 'int_fast16_t',
  26879. 'int_fast32_t', 'int_fast64_t', 'uint_fast8_t', 'uint_fast16_t',
  26880. 'uint_fast32_t', 'uint_fast64_t', 'intptr_t', and 'uintptr_t'. See
  26881. 'SIZE_TYPE' above for more information.
  26882. If any of these macros evaluates to a null pointer, the
  26883. corresponding type is not supported; if GCC is configured to
  26884. provide '<stdint.h>' in such a case, the header provided may not
  26885. conform to C99, depending on the type in question. The defaults
  26886. for all of these macros are null pointers.
  26887. -- Macro: TARGET_PTRMEMFUNC_VBIT_LOCATION
  26888. The C++ compiler represents a pointer-to-member-function with a
  26889. struct that looks like:
  26890. struct {
  26891. union {
  26892. void (*fn)();
  26893. ptrdiff_t vtable_index;
  26894. };
  26895. ptrdiff_t delta;
  26896. };
  26897. The C++ compiler must use one bit to indicate whether the function
  26898. that will be called through a pointer-to-member-function is
  26899. virtual. Normally, we assume that the low-order bit of a function
  26900. pointer must always be zero. Then, by ensuring that the
  26901. vtable_index is odd, we can distinguish which variant of the union
  26902. is in use. But, on some platforms function pointers can be odd,
  26903. and so this doesn't work. In that case, we use the low-order bit
  26904. of the 'delta' field, and shift the remainder of the 'delta' field
  26905. to the left.
  26906. GCC will automatically make the right selection about where to
  26907. store this bit using the 'FUNCTION_BOUNDARY' setting for your
  26908. platform. However, some platforms such as ARM/Thumb have
  26909. 'FUNCTION_BOUNDARY' set such that functions always start at even
  26910. addresses, but the lowest bit of pointers to functions indicate
  26911. whether the function at that address is in ARM or Thumb mode. If
  26912. this is the case of your architecture, you should define this macro
  26913. to 'ptrmemfunc_vbit_in_delta'.
  26914. In general, you should not have to define this macro. On
  26915. architectures in which function addresses are always even,
  26916. according to 'FUNCTION_BOUNDARY', GCC will automatically define
  26917. this macro to 'ptrmemfunc_vbit_in_pfn'.
  26918. -- Macro: TARGET_VTABLE_USES_DESCRIPTORS
  26919. Normally, the C++ compiler uses function pointers in vtables. This
  26920. macro allows the target to change to use "function descriptors"
  26921. instead. Function descriptors are found on targets for whom a
  26922. function pointer is actually a small data structure. Normally the
  26923. data structure consists of the actual code address plus a data
  26924. pointer to which the function's data is relative.
  26925. If vtables are used, the value of this macro should be the number
  26926. of words that the function descriptor occupies.
  26927. -- Macro: TARGET_VTABLE_ENTRY_ALIGN
  26928. By default, the vtable entries are void pointers, the so the
  26929. alignment is the same as pointer alignment. The value of this
  26930. macro specifies the alignment of the vtable entry in bits. It
  26931. should be defined only when special alignment is necessary. */
  26932. -- Macro: TARGET_VTABLE_DATA_ENTRY_DISTANCE
  26933. There are a few non-descriptor entries in the vtable at offsets
  26934. below zero. If these entries must be padded (say, to preserve the
  26935. alignment specified by 'TARGET_VTABLE_ENTRY_ALIGN'), set this to
  26936. the number of words in each data entry.
  26937. 
  26938. File: gccint.info, Node: Registers, Next: Register Classes, Prev: Type Layout, Up: Target Macros
  26939. 18.7 Register Usage
  26940. ===================
  26941. This section explains how to describe what registers the target machine
  26942. has, and how (in general) they can be used.
  26943. The description of which registers a specific instruction can use is
  26944. done with register classes; see *note Register Classes::. For
  26945. information on using registers to access a stack frame, see *note Frame
  26946. Registers::. For passing values in registers, see *note Register
  26947. Arguments::. For returning values in registers, see *note Scalar
  26948. Return::.
  26949. * Menu:
  26950. * Register Basics:: Number and kinds of registers.
  26951. * Allocation Order:: Order in which registers are allocated.
  26952. * Values in Registers:: What kinds of values each reg can hold.
  26953. * Leaf Functions:: Renumbering registers for leaf functions.
  26954. * Stack Registers:: Handling a register stack such as 80387.
  26955. 
  26956. File: gccint.info, Node: Register Basics, Next: Allocation Order, Up: Registers
  26957. 18.7.1 Basic Characteristics of Registers
  26958. -----------------------------------------
  26959. Registers have various characteristics.
  26960. -- Macro: FIRST_PSEUDO_REGISTER
  26961. Number of hardware registers known to the compiler. They receive
  26962. numbers 0 through 'FIRST_PSEUDO_REGISTER-1'; thus, the first pseudo
  26963. register's number really is assigned the number
  26964. 'FIRST_PSEUDO_REGISTER'.
  26965. -- Macro: FIXED_REGISTERS
  26966. An initializer that says which registers are used for fixed
  26967. purposes all throughout the compiled code and are therefore not
  26968. available for general allocation. These would include the stack
  26969. pointer, the frame pointer (except on machines where that can be
  26970. used as a general register when no frame pointer is needed), the
  26971. program counter on machines where that is considered one of the
  26972. addressable registers, and any other numbered register with a
  26973. standard use.
  26974. This information is expressed as a sequence of numbers, separated
  26975. by commas and surrounded by braces. The Nth number is 1 if
  26976. register N is fixed, 0 otherwise.
  26977. The table initialized from this macro, and the table initialized by
  26978. the following one, may be overridden at run time either
  26979. automatically, by the actions of the macro
  26980. 'CONDITIONAL_REGISTER_USAGE', or by the user with the command
  26981. options '-ffixed-REG', '-fcall-used-REG' and '-fcall-saved-REG'.
  26982. -- Macro: CALL_USED_REGISTERS
  26983. Like 'FIXED_REGISTERS' but has 1 for each register that is
  26984. clobbered (in general) by function calls as well as for fixed
  26985. registers. This macro therefore identifies the registers that are
  26986. not available for general allocation of values that must live
  26987. across function calls.
  26988. If a register has 0 in 'CALL_USED_REGISTERS', the compiler
  26989. automatically saves it on function entry and restores it on
  26990. function exit, if the register is used within the function.
  26991. Exactly one of 'CALL_USED_REGISTERS' and
  26992. 'CALL_REALLY_USED_REGISTERS' must be defined. Modern ports should
  26993. define 'CALL_REALLY_USED_REGISTERS'.
  26994. -- Macro: CALL_REALLY_USED_REGISTERS
  26995. Like 'CALL_USED_REGISTERS' except this macro doesn't require that
  26996. the entire set of 'FIXED_REGISTERS' be included.
  26997. ('CALL_USED_REGISTERS' must be a superset of 'FIXED_REGISTERS').
  26998. Exactly one of 'CALL_USED_REGISTERS' and
  26999. 'CALL_REALLY_USED_REGISTERS' must be defined. Modern ports should
  27000. define 'CALL_REALLY_USED_REGISTERS'.
  27001. -- Target Hook: const predefined_function_abi & TARGET_FNTYPE_ABI
  27002. (const_tree TYPE)
  27003. Return the ABI used by a function with type TYPE; see the
  27004. definition of 'predefined_function_abi' for details of the ABI
  27005. descriptor. Targets only need to define this hook if they support
  27006. interoperability between several ABIs in the same translation unit.
  27007. -- Target Hook: const predefined_function_abi & TARGET_INSN_CALLEE_ABI
  27008. (const rtx_insn *INSN)
  27009. This hook returns a description of the ABI used by the target of
  27010. call instruction INSN; see the definition of
  27011. 'predefined_function_abi' for details of the ABI descriptor. Only
  27012. the global function 'insn_callee_abi' should call this hook
  27013. directly.
  27014. Targets only need to define this hook if they support
  27015. interoperability between several ABIs in the same translation unit.
  27016. -- Target Hook: bool TARGET_HARD_REGNO_CALL_PART_CLOBBERED (unsigned
  27017. int ABI_ID, unsigned int REGNO, machine_mode MODE)
  27018. ABIs usually specify that calls must preserve the full contents of
  27019. a particular register, or that calls can alter any part of a
  27020. particular register. This information is captured by the target
  27021. macro 'CALL_REALLY_USED_REGISTERS'. However, some ABIs specify
  27022. that calls must preserve certain bits of a particular register but
  27023. can alter others. This hook should return true if this applies to
  27024. at least one of the registers in '(reg:MODE REGNO)', and if as a
  27025. result the call would alter part of the MODE value. For example,
  27026. if a call preserves the low 32 bits of a 64-bit hard register REGNO
  27027. but can clobber the upper 32 bits, this hook should return true for
  27028. a 64-bit mode but false for a 32-bit mode.
  27029. The value of ABI_ID comes from the 'predefined_function_abi'
  27030. structure that describes the ABI of the call; see the definition of
  27031. the structure for more details. If (as is usual) the target uses
  27032. the same ABI for all functions in a translation unit, ABI_ID is
  27033. always 0.
  27034. The default implementation returns false, which is correct for
  27035. targets that don't have partly call-clobbered registers.
  27036. -- Target Hook: const char * TARGET_GET_MULTILIB_ABI_NAME (void)
  27037. This hook returns name of multilib ABI name.
  27038. -- Target Hook: void TARGET_CONDITIONAL_REGISTER_USAGE (void)
  27039. This hook may conditionally modify five variables 'fixed_regs',
  27040. 'call_used_regs', 'global_regs', 'reg_names', and
  27041. 'reg_class_contents', to take into account any dependence of these
  27042. register sets on target flags. The first three of these are of
  27043. type 'char []' (interpreted as boolean vectors). 'global_regs' is
  27044. a 'const char *[]', and 'reg_class_contents' is a 'HARD_REG_SET'.
  27045. Before the macro is called, 'fixed_regs', 'call_used_regs',
  27046. 'reg_class_contents', and 'reg_names' have been initialized from
  27047. 'FIXED_REGISTERS', 'CALL_USED_REGISTERS', 'REG_CLASS_CONTENTS', and
  27048. 'REGISTER_NAMES', respectively. 'global_regs' has been cleared,
  27049. and any '-ffixed-REG', '-fcall-used-REG' and '-fcall-saved-REG'
  27050. command options have been applied.
  27051. If the usage of an entire class of registers depends on the target
  27052. flags, you may indicate this to GCC by using this macro to modify
  27053. 'fixed_regs' and 'call_used_regs' to 1 for each of the registers in
  27054. the classes which should not be used by GCC. Also make
  27055. 'define_register_constraint's return 'NO_REGS' for constraints that
  27056. shouldn't be used.
  27057. (However, if this class is not included in 'GENERAL_REGS' and all
  27058. of the insn patterns whose constraints permit this class are
  27059. controlled by target switches, then GCC will automatically avoid
  27060. using these registers when the target switches are opposed to
  27061. them.)
  27062. -- Macro: INCOMING_REGNO (OUT)
  27063. Define this macro if the target machine has register windows. This
  27064. C expression returns the register number as seen by the called
  27065. function corresponding to the register number OUT as seen by the
  27066. calling function. Return OUT if register number OUT is not an
  27067. outbound register.
  27068. -- Macro: OUTGOING_REGNO (IN)
  27069. Define this macro if the target machine has register windows. This
  27070. C expression returns the register number as seen by the calling
  27071. function corresponding to the register number IN as seen by the
  27072. called function. Return IN if register number IN is not an inbound
  27073. register.
  27074. -- Macro: LOCAL_REGNO (REGNO)
  27075. Define this macro if the target machine has register windows. This
  27076. C expression returns true if the register is call-saved but is in
  27077. the register window. Unlike most call-saved registers, such
  27078. registers need not be explicitly restored on function exit or
  27079. during non-local gotos.
  27080. -- Macro: PC_REGNUM
  27081. If the program counter has a register number, define this as that
  27082. register number. Otherwise, do not define it.
  27083. 
  27084. File: gccint.info, Node: Allocation Order, Next: Values in Registers, Prev: Register Basics, Up: Registers
  27085. 18.7.2 Order of Allocation of Registers
  27086. ---------------------------------------
  27087. Registers are allocated in order.
  27088. -- Macro: REG_ALLOC_ORDER
  27089. If defined, an initializer for a vector of integers, containing the
  27090. numbers of hard registers in the order in which GCC should prefer
  27091. to use them (from most preferred to least).
  27092. If this macro is not defined, registers are used lowest numbered
  27093. first (all else being equal).
  27094. One use of this macro is on machines where the highest numbered
  27095. registers must always be saved and the save-multiple-registers
  27096. instruction supports only sequences of consecutive registers. On
  27097. such machines, define 'REG_ALLOC_ORDER' to be an initializer that
  27098. lists the highest numbered allocable register first.
  27099. -- Macro: ADJUST_REG_ALLOC_ORDER
  27100. A C statement (sans semicolon) to choose the order in which to
  27101. allocate hard registers for pseudo-registers local to a basic
  27102. block.
  27103. Store the desired register order in the array 'reg_alloc_order'.
  27104. Element 0 should be the register to allocate first; element 1, the
  27105. next register; and so on.
  27106. The macro body should not assume anything about the contents of
  27107. 'reg_alloc_order' before execution of the macro.
  27108. On most machines, it is not necessary to define this macro.
  27109. -- Macro: HONOR_REG_ALLOC_ORDER
  27110. Normally, IRA tries to estimate the costs for saving a register in
  27111. the prologue and restoring it in the epilogue. This discourages it
  27112. from using call-saved registers. If a machine wants to ensure that
  27113. IRA allocates registers in the order given by REG_ALLOC_ORDER even
  27114. if some call-saved registers appear earlier than call-used ones,
  27115. then define this macro as a C expression to nonzero. Default is 0.
  27116. -- Macro: IRA_HARD_REGNO_ADD_COST_MULTIPLIER (REGNO)
  27117. In some case register allocation order is not enough for the
  27118. Integrated Register Allocator (IRA) to generate a good code. If
  27119. this macro is defined, it should return a floating point value
  27120. based on REGNO. The cost of using REGNO for a pseudo will be
  27121. increased by approximately the pseudo's usage frequency times the
  27122. value returned by this macro. Not defining this macro is
  27123. equivalent to having it always return '0.0'.
  27124. On most machines, it is not necessary to define this macro.
  27125. 
  27126. File: gccint.info, Node: Values in Registers, Next: Leaf Functions, Prev: Allocation Order, Up: Registers
  27127. 18.7.3 How Values Fit in Registers
  27128. ----------------------------------
  27129. This section discusses the macros that describe which kinds of values
  27130. (specifically, which machine modes) each register can hold, and how many
  27131. consecutive registers are needed for a given mode.
  27132. -- Target Hook: unsigned int TARGET_HARD_REGNO_NREGS (unsigned int
  27133. REGNO, machine_mode MODE)
  27134. This hook returns the number of consecutive hard registers,
  27135. starting at register number REGNO, required to hold a value of mode
  27136. MODE. This hook must never return zero, even if a register cannot
  27137. hold the requested mode - indicate that with
  27138. 'TARGET_HARD_REGNO_MODE_OK' and/or 'TARGET_CAN_CHANGE_MODE_CLASS'
  27139. instead.
  27140. The default definition returns the number of words in MODE.
  27141. -- Macro: HARD_REGNO_NREGS_HAS_PADDING (REGNO, MODE)
  27142. A C expression that is nonzero if a value of mode MODE, stored in
  27143. memory, ends with padding that causes it to take up more space than
  27144. in registers starting at register number REGNO (as determined by
  27145. multiplying GCC's notion of the size of the register when
  27146. containing this mode by the number of registers returned by
  27147. 'TARGET_HARD_REGNO_NREGS'). By default this is zero.
  27148. For example, if a floating-point value is stored in three 32-bit
  27149. registers but takes up 128 bits in memory, then this would be
  27150. nonzero.
  27151. This macros only needs to be defined if there are cases where
  27152. 'subreg_get_info' would otherwise wrongly determine that a 'subreg'
  27153. can be represented by an offset to the register number, when in
  27154. fact such a 'subreg' would contain some of the padding not stored
  27155. in registers and so not be representable.
  27156. -- Macro: HARD_REGNO_NREGS_WITH_PADDING (REGNO, MODE)
  27157. For values of REGNO and MODE for which
  27158. 'HARD_REGNO_NREGS_HAS_PADDING' returns nonzero, a C expression
  27159. returning the greater number of registers required to hold the
  27160. value including any padding. In the example above, the value would
  27161. be four.
  27162. -- Macro: REGMODE_NATURAL_SIZE (MODE)
  27163. Define this macro if the natural size of registers that hold values
  27164. of mode MODE is not the word size. It is a C expression that
  27165. should give the natural size in bytes for the specified mode. It
  27166. is used by the register allocator to try to optimize its results.
  27167. This happens for example on SPARC 64-bit where the natural size of
  27168. floating-point registers is still 32-bit.
  27169. -- Target Hook: bool TARGET_HARD_REGNO_MODE_OK (unsigned int REGNO,
  27170. machine_mode MODE)
  27171. This hook returns true if it is permissible to store a value of
  27172. mode MODE in hard register number REGNO (or in several registers
  27173. starting with that one). The default definition returns true
  27174. unconditionally.
  27175. You need not include code to check for the numbers of fixed
  27176. registers, because the allocation mechanism considers them to be
  27177. always occupied.
  27178. On some machines, double-precision values must be kept in even/odd
  27179. register pairs. You can implement that by defining this hook to
  27180. reject odd register numbers for such modes.
  27181. The minimum requirement for a mode to be OK in a register is that
  27182. the 'movMODE' instruction pattern support moves between the
  27183. register and other hard register in the same class and that moving
  27184. a value into the register and back out not alter it.
  27185. Since the same instruction used to move 'word_mode' will work for
  27186. all narrower integer modes, it is not necessary on any machine for
  27187. this hook to distinguish between these modes, provided you define
  27188. patterns 'movhi', etc., to take advantage of this. This is useful
  27189. because of the interaction between 'TARGET_HARD_REGNO_MODE_OK' and
  27190. 'TARGET_MODES_TIEABLE_P'; it is very desirable for all integer
  27191. modes to be tieable.
  27192. Many machines have special registers for floating point arithmetic.
  27193. Often people assume that floating point machine modes are allowed
  27194. only in floating point registers. This is not true. Any registers
  27195. that can hold integers can safely _hold_ a floating point machine
  27196. mode, whether or not floating arithmetic can be done on it in those
  27197. registers. Integer move instructions can be used to move the
  27198. values.
  27199. On some machines, though, the converse is true: fixed-point machine
  27200. modes may not go in floating registers. This is true if the
  27201. floating registers normalize any value stored in them, because
  27202. storing a non-floating value there would garble it. In this case,
  27203. 'TARGET_HARD_REGNO_MODE_OK' should reject fixed-point machine modes
  27204. in floating registers. But if the floating registers do not
  27205. automatically normalize, if you can store any bit pattern in one
  27206. and retrieve it unchanged without a trap, then any machine mode may
  27207. go in a floating register, so you can define this hook to say so.
  27208. The primary significance of special floating registers is rather
  27209. that they are the registers acceptable in floating point arithmetic
  27210. instructions. However, this is of no concern to
  27211. 'TARGET_HARD_REGNO_MODE_OK'. You handle it by writing the proper
  27212. constraints for those instructions.
  27213. On some machines, the floating registers are especially slow to
  27214. access, so that it is better to store a value in a stack frame than
  27215. in such a register if floating point arithmetic is not being done.
  27216. As long as the floating registers are not in class 'GENERAL_REGS',
  27217. they will not be used unless some pattern's constraint asks for
  27218. one.
  27219. -- Macro: HARD_REGNO_RENAME_OK (FROM, TO)
  27220. A C expression that is nonzero if it is OK to rename a hard
  27221. register FROM to another hard register TO.
  27222. One common use of this macro is to prevent renaming of a register
  27223. to another register that is not saved by a prologue in an interrupt
  27224. handler.
  27225. The default is always nonzero.
  27226. -- Target Hook: bool TARGET_MODES_TIEABLE_P (machine_mode MODE1,
  27227. machine_mode MODE2)
  27228. This hook returns true if a value of mode MODE1 is accessible in
  27229. mode MODE2 without copying.
  27230. If 'TARGET_HARD_REGNO_MODE_OK (R, MODE1)' and
  27231. 'TARGET_HARD_REGNO_MODE_OK (R, MODE2)' are always the same for any
  27232. R, then 'TARGET_MODES_TIEABLE_P (MODE1, MODE2)' should be true. If
  27233. they differ for any R, you should define this hook to return false
  27234. unless some other mechanism ensures the accessibility of the value
  27235. in a narrower mode.
  27236. You should define this hook to return true in as many cases as
  27237. possible since doing so will allow GCC to perform better register
  27238. allocation. The default definition returns true unconditionally.
  27239. -- Target Hook: bool TARGET_HARD_REGNO_SCRATCH_OK (unsigned int REGNO)
  27240. This target hook should return 'true' if it is OK to use a hard
  27241. register REGNO as scratch reg in peephole2.
  27242. One common use of this macro is to prevent using of a register that
  27243. is not saved by a prologue in an interrupt handler.
  27244. The default version of this hook always returns 'true'.
  27245. -- Macro: AVOID_CCMODE_COPIES
  27246. Define this macro if the compiler should avoid copies to/from
  27247. 'CCmode' registers. You should only define this macro if support
  27248. for copying to/from 'CCmode' is incomplete.
  27249. 
  27250. File: gccint.info, Node: Leaf Functions, Next: Stack Registers, Prev: Values in Registers, Up: Registers
  27251. 18.7.4 Handling Leaf Functions
  27252. ------------------------------
  27253. On some machines, a leaf function (i.e., one which makes no calls) can
  27254. run more efficiently if it does not make its own register window. Often
  27255. this means it is required to receive its arguments in the registers
  27256. where they are passed by the caller, instead of the registers where they
  27257. would normally arrive.
  27258. The special treatment for leaf functions generally applies only when
  27259. other conditions are met; for example, often they may use only those
  27260. registers for its own variables and temporaries. We use the term "leaf
  27261. function" to mean a function that is suitable for this special handling,
  27262. so that functions with no calls are not necessarily "leaf functions".
  27263. GCC assigns register numbers before it knows whether the function is
  27264. suitable for leaf function treatment. So it needs to renumber the
  27265. registers in order to output a leaf function. The following macros
  27266. accomplish this.
  27267. -- Macro: LEAF_REGISTERS
  27268. Name of a char vector, indexed by hard register number, which
  27269. contains 1 for a register that is allowable in a candidate for leaf
  27270. function treatment.
  27271. If leaf function treatment involves renumbering the registers, then
  27272. the registers marked here should be the ones before
  27273. renumbering--those that GCC would ordinarily allocate. The
  27274. registers which will actually be used in the assembler code, after
  27275. renumbering, should not be marked with 1 in this vector.
  27276. Define this macro only if the target machine offers a way to
  27277. optimize the treatment of leaf functions.
  27278. -- Macro: LEAF_REG_REMAP (REGNO)
  27279. A C expression whose value is the register number to which REGNO
  27280. should be renumbered, when a function is treated as a leaf
  27281. function.
  27282. If REGNO is a register number which should not appear in a leaf
  27283. function before renumbering, then the expression should yield -1,
  27284. which will cause the compiler to abort.
  27285. Define this macro only if the target machine offers a way to
  27286. optimize the treatment of leaf functions, and registers need to be
  27287. renumbered to do this.
  27288. 'TARGET_ASM_FUNCTION_PROLOGUE' and 'TARGET_ASM_FUNCTION_EPILOGUE' must
  27289. usually treat leaf functions specially. They can test the C variable
  27290. 'current_function_is_leaf' which is nonzero for leaf functions.
  27291. 'current_function_is_leaf' is set prior to local register allocation and
  27292. is valid for the remaining compiler passes. They can also test the C
  27293. variable 'current_function_uses_only_leaf_regs' which is nonzero for
  27294. leaf functions which only use leaf registers.
  27295. 'current_function_uses_only_leaf_regs' is valid after all passes that
  27296. modify the instructions have been run and is only useful if
  27297. 'LEAF_REGISTERS' is defined.
  27298. 
  27299. File: gccint.info, Node: Stack Registers, Prev: Leaf Functions, Up: Registers
  27300. 18.7.5 Registers That Form a Stack
  27301. ----------------------------------
  27302. There are special features to handle computers where some of the
  27303. "registers" form a stack. Stack registers are normally written by
  27304. pushing onto the stack, and are numbered relative to the top of the
  27305. stack.
  27306. Currently, GCC can only handle one group of stack-like registers, and
  27307. they must be consecutively numbered. Furthermore, the existing support
  27308. for stack-like registers is specific to the 80387 floating point
  27309. coprocessor. If you have a new architecture that uses stack-like
  27310. registers, you will need to do substantial work on 'reg-stack.c' and
  27311. write your machine description to cooperate with it, as well as defining
  27312. these macros.
  27313. -- Macro: STACK_REGS
  27314. Define this if the machine has any stack-like registers.
  27315. -- Macro: STACK_REG_COVER_CLASS
  27316. This is a cover class containing the stack registers. Define this
  27317. if the machine has any stack-like registers.
  27318. -- Macro: FIRST_STACK_REG
  27319. The number of the first stack-like register. This one is the top
  27320. of the stack.
  27321. -- Macro: LAST_STACK_REG
  27322. The number of the last stack-like register. This one is the bottom
  27323. of the stack.
  27324. 
  27325. File: gccint.info, Node: Register Classes, Next: Stack and Calling, Prev: Registers, Up: Target Macros
  27326. 18.8 Register Classes
  27327. =====================
  27328. On many machines, the numbered registers are not all equivalent. For
  27329. example, certain registers may not be allowed for indexed addressing;
  27330. certain registers may not be allowed in some instructions. These
  27331. machine restrictions are described to the compiler using "register
  27332. classes".
  27333. You define a number of register classes, giving each one a name and
  27334. saying which of the registers belong to it. Then you can specify
  27335. register classes that are allowed as operands to particular instruction
  27336. patterns.
  27337. In general, each register will belong to several classes. In fact, one
  27338. class must be named 'ALL_REGS' and contain all the registers. Another
  27339. class must be named 'NO_REGS' and contain no registers. Often the union
  27340. of two classes will be another class; however, this is not required.
  27341. One of the classes must be named 'GENERAL_REGS'. There is nothing
  27342. terribly special about the name, but the operand constraint letters 'r'
  27343. and 'g' specify this class. If 'GENERAL_REGS' is the same as
  27344. 'ALL_REGS', just define it as a macro which expands to 'ALL_REGS'.
  27345. Order the classes so that if class X is contained in class Y then X has
  27346. a lower class number than Y.
  27347. The way classes other than 'GENERAL_REGS' are specified in operand
  27348. constraints is through machine-dependent operand constraint letters.
  27349. You can define such letters to correspond to various classes, then use
  27350. them in operand constraints.
  27351. You must define the narrowest register classes for allocatable
  27352. registers, so that each class either has no subclasses, or that for some
  27353. mode, the move cost between registers within the class is cheaper than
  27354. moving a register in the class to or from memory (*note Costs::).
  27355. You should define a class for the union of two classes whenever some
  27356. instruction allows both classes. For example, if an instruction allows
  27357. either a floating point (coprocessor) register or a general register for
  27358. a certain operand, you should define a class 'FLOAT_OR_GENERAL_REGS'
  27359. which includes both of them. Otherwise you will get suboptimal code, or
  27360. even internal compiler errors when reload cannot find a register in the
  27361. class computed via 'reg_class_subunion'.
  27362. You must also specify certain redundant information about the register
  27363. classes: for each class, which classes contain it and which ones are
  27364. contained in it; for each pair of classes, the largest class contained
  27365. in their union.
  27366. When a value occupying several consecutive registers is expected in a
  27367. certain class, all the registers used must belong to that class.
  27368. Therefore, register classes cannot be used to enforce a requirement for
  27369. a register pair to start with an even-numbered register. The way to
  27370. specify this requirement is with 'TARGET_HARD_REGNO_MODE_OK'.
  27371. Register classes used for input-operands of bitwise-and or shift
  27372. instructions have a special requirement: each such class must have, for
  27373. each fixed-point machine mode, a subclass whose registers can transfer
  27374. that mode to or from memory. For example, on some machines, the
  27375. operations for single-byte values ('QImode') are limited to certain
  27376. registers. When this is so, each register class that is used in a
  27377. bitwise-and or shift instruction must have a subclass consisting of
  27378. registers from which single-byte values can be loaded or stored. This
  27379. is so that 'PREFERRED_RELOAD_CLASS' can always have a possible value to
  27380. return.
  27381. -- Data type: enum reg_class
  27382. An enumerated type that must be defined with all the register class
  27383. names as enumerated values. 'NO_REGS' must be first. 'ALL_REGS'
  27384. must be the last register class, followed by one more enumerated
  27385. value, 'LIM_REG_CLASSES', which is not a register class but rather
  27386. tells how many classes there are.
  27387. Each register class has a number, which is the value of casting the
  27388. class name to type 'int'. The number serves as an index in many of
  27389. the tables described below.
  27390. -- Macro: N_REG_CLASSES
  27391. The number of distinct register classes, defined as follows:
  27392. #define N_REG_CLASSES (int) LIM_REG_CLASSES
  27393. -- Macro: REG_CLASS_NAMES
  27394. An initializer containing the names of the register classes as C
  27395. string constants. These names are used in writing some of the
  27396. debugging dumps.
  27397. -- Macro: REG_CLASS_CONTENTS
  27398. An initializer containing the contents of the register classes, as
  27399. integers which are bit masks. The Nth integer specifies the
  27400. contents of class N. The way the integer MASK is interpreted is
  27401. that register R is in the class if 'MASK & (1 << R)' is 1.
  27402. When the machine has more than 32 registers, an integer does not
  27403. suffice. Then the integers are replaced by sub-initializers,
  27404. braced groupings containing several integers. Each sub-initializer
  27405. must be suitable as an initializer for the type 'HARD_REG_SET'
  27406. which is defined in 'hard-reg-set.h'. In this situation, the first
  27407. integer in each sub-initializer corresponds to registers 0 through
  27408. 31, the second integer to registers 32 through 63, and so on.
  27409. -- Macro: REGNO_REG_CLASS (REGNO)
  27410. A C expression whose value is a register class containing hard
  27411. register REGNO. In general there is more than one such class;
  27412. choose a class which is "minimal", meaning that no smaller class
  27413. also contains the register.
  27414. -- Macro: BASE_REG_CLASS
  27415. A macro whose definition is the name of the class to which a valid
  27416. base register must belong. A base register is one used in an
  27417. address which is the register value plus a displacement.
  27418. -- Macro: MODE_BASE_REG_CLASS (MODE)
  27419. This is a variation of the 'BASE_REG_CLASS' macro which allows the
  27420. selection of a base register in a mode dependent manner. If MODE
  27421. is VOIDmode then it should return the same value as
  27422. 'BASE_REG_CLASS'.
  27423. -- Macro: MODE_BASE_REG_REG_CLASS (MODE)
  27424. A C expression whose value is the register class to which a valid
  27425. base register must belong in order to be used in a base plus index
  27426. register address. You should define this macro if base plus index
  27427. addresses have different requirements than other base register
  27428. uses.
  27429. -- Macro: MODE_CODE_BASE_REG_CLASS (MODE, ADDRESS_SPACE, OUTER_CODE,
  27430. INDEX_CODE)
  27431. A C expression whose value is the register class to which a valid
  27432. base register for a memory reference in mode MODE to address space
  27433. ADDRESS_SPACE must belong. OUTER_CODE and INDEX_CODE define the
  27434. context in which the base register occurs. OUTER_CODE is the code
  27435. of the immediately enclosing expression ('MEM' for the top level of
  27436. an address, 'ADDRESS' for something that occurs in an
  27437. 'address_operand'). INDEX_CODE is the code of the corresponding
  27438. index expression if OUTER_CODE is 'PLUS'; 'SCRATCH' otherwise.
  27439. -- Macro: INDEX_REG_CLASS
  27440. A macro whose definition is the name of the class to which a valid
  27441. index register must belong. An index register is one used in an
  27442. address where its value is either multiplied by a scale factor or
  27443. added to another register (as well as added to a displacement).
  27444. -- Macro: REGNO_OK_FOR_BASE_P (NUM)
  27445. A C expression which is nonzero if register number NUM is suitable
  27446. for use as a base register in operand addresses.
  27447. -- Macro: REGNO_MODE_OK_FOR_BASE_P (NUM, MODE)
  27448. A C expression that is just like 'REGNO_OK_FOR_BASE_P', except that
  27449. that expression may examine the mode of the memory reference in
  27450. MODE. You should define this macro if the mode of the memory
  27451. reference affects whether a register may be used as a base
  27452. register. If you define this macro, the compiler will use it
  27453. instead of 'REGNO_OK_FOR_BASE_P'. The mode may be 'VOIDmode' for
  27454. addresses that appear outside a 'MEM', i.e., as an
  27455. 'address_operand'.
  27456. -- Macro: REGNO_MODE_OK_FOR_REG_BASE_P (NUM, MODE)
  27457. A C expression which is nonzero if register number NUM is suitable
  27458. for use as a base register in base plus index operand addresses,
  27459. accessing memory in mode MODE. It may be either a suitable hard
  27460. register or a pseudo register that has been allocated such a hard
  27461. register. You should define this macro if base plus index
  27462. addresses have different requirements than other base register
  27463. uses.
  27464. Use of this macro is deprecated; please use the more general
  27465. 'REGNO_MODE_CODE_OK_FOR_BASE_P'.
  27466. -- Macro: REGNO_MODE_CODE_OK_FOR_BASE_P (NUM, MODE, ADDRESS_SPACE,
  27467. OUTER_CODE, INDEX_CODE)
  27468. A C expression which is nonzero if register number NUM is suitable
  27469. for use as a base register in operand addresses, accessing memory
  27470. in mode MODE in address space ADDRESS_SPACE. This is similar to
  27471. 'REGNO_MODE_OK_FOR_BASE_P', except that that expression may examine
  27472. the context in which the register appears in the memory reference.
  27473. OUTER_CODE is the code of the immediately enclosing expression
  27474. ('MEM' if at the top level of the address, 'ADDRESS' for something
  27475. that occurs in an 'address_operand'). INDEX_CODE is the code of
  27476. the corresponding index expression if OUTER_CODE is 'PLUS';
  27477. 'SCRATCH' otherwise. The mode may be 'VOIDmode' for addresses that
  27478. appear outside a 'MEM', i.e., as an 'address_operand'.
  27479. -- Macro: REGNO_OK_FOR_INDEX_P (NUM)
  27480. A C expression which is nonzero if register number NUM is suitable
  27481. for use as an index register in operand addresses. It may be
  27482. either a suitable hard register or a pseudo register that has been
  27483. allocated such a hard register.
  27484. The difference between an index register and a base register is
  27485. that the index register may be scaled. If an address involves the
  27486. sum of two registers, neither one of them scaled, then either one
  27487. may be labeled the "base" and the other the "index"; but whichever
  27488. labeling is used must fit the machine's constraints of which
  27489. registers may serve in each capacity. The compiler will try both
  27490. labelings, looking for one that is valid, and will reload one or
  27491. both registers only if neither labeling works.
  27492. -- Target Hook: reg_class_t TARGET_PREFERRED_RENAME_CLASS (reg_class_t
  27493. RCLASS)
  27494. A target hook that places additional preference on the register
  27495. class to use when it is necessary to rename a register in class
  27496. RCLASS to another class, or perhaps NO_REGS, if no preferred
  27497. register class is found or hook 'preferred_rename_class' is not
  27498. implemented. Sometimes returning a more restrictive class makes
  27499. better code. For example, on ARM, thumb-2 instructions using
  27500. 'LO_REGS' may be smaller than instructions using 'GENERIC_REGS'.
  27501. By returning 'LO_REGS' from 'preferred_rename_class', code size can
  27502. be reduced.
  27503. -- Target Hook: reg_class_t TARGET_PREFERRED_RELOAD_CLASS (rtx X,
  27504. reg_class_t RCLASS)
  27505. A target hook that places additional restrictions on the register
  27506. class to use when it is necessary to copy value X into a register
  27507. in class RCLASS. The value is a register class; perhaps RCLASS, or
  27508. perhaps another, smaller class.
  27509. The default version of this hook always returns value of 'rclass'
  27510. argument.
  27511. Sometimes returning a more restrictive class makes better code.
  27512. For example, on the 68000, when X is an integer constant that is in
  27513. range for a 'moveq' instruction, the value of this macro is always
  27514. 'DATA_REGS' as long as RCLASS includes the data registers.
  27515. Requiring a data register guarantees that a 'moveq' will be used.
  27516. One case where 'TARGET_PREFERRED_RELOAD_CLASS' must not return
  27517. RCLASS is if X is a legitimate constant which cannot be loaded into
  27518. some register class. By returning 'NO_REGS' you can force X into a
  27519. memory location. For example, rs6000 can load immediate values
  27520. into general-purpose registers, but does not have an instruction
  27521. for loading an immediate value into a floating-point register, so
  27522. 'TARGET_PREFERRED_RELOAD_CLASS' returns 'NO_REGS' when X is a
  27523. floating-point constant. If the constant can't be loaded into any
  27524. kind of register, code generation will be better if
  27525. 'TARGET_LEGITIMATE_CONSTANT_P' makes the constant illegitimate
  27526. instead of using 'TARGET_PREFERRED_RELOAD_CLASS'.
  27527. If an insn has pseudos in it after register allocation, reload will
  27528. go through the alternatives and call repeatedly
  27529. 'TARGET_PREFERRED_RELOAD_CLASS' to find the best one. Returning
  27530. 'NO_REGS', in this case, makes reload add a '!' in front of the
  27531. constraint: the x86 back-end uses this feature to discourage usage
  27532. of 387 registers when math is done in the SSE registers (and vice
  27533. versa).
  27534. -- Macro: PREFERRED_RELOAD_CLASS (X, CLASS)
  27535. A C expression that places additional restrictions on the register
  27536. class to use when it is necessary to copy value X into a register
  27537. in class CLASS. The value is a register class; perhaps CLASS, or
  27538. perhaps another, smaller class. On many machines, the following
  27539. definition is safe:
  27540. #define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
  27541. Sometimes returning a more restrictive class makes better code.
  27542. For example, on the 68000, when X is an integer constant that is in
  27543. range for a 'moveq' instruction, the value of this macro is always
  27544. 'DATA_REGS' as long as CLASS includes the data registers.
  27545. Requiring a data register guarantees that a 'moveq' will be used.
  27546. One case where 'PREFERRED_RELOAD_CLASS' must not return CLASS is if
  27547. X is a legitimate constant which cannot be loaded into some
  27548. register class. By returning 'NO_REGS' you can force X into a
  27549. memory location. For example, rs6000 can load immediate values
  27550. into general-purpose registers, but does not have an instruction
  27551. for loading an immediate value into a floating-point register, so
  27552. 'PREFERRED_RELOAD_CLASS' returns 'NO_REGS' when X is a
  27553. floating-point constant. If the constant cannot be loaded into any
  27554. kind of register, code generation will be better if
  27555. 'TARGET_LEGITIMATE_CONSTANT_P' makes the constant illegitimate
  27556. instead of using 'TARGET_PREFERRED_RELOAD_CLASS'.
  27557. If an insn has pseudos in it after register allocation, reload will
  27558. go through the alternatives and call repeatedly
  27559. 'PREFERRED_RELOAD_CLASS' to find the best one. Returning
  27560. 'NO_REGS', in this case, makes reload add a '!' in front of the
  27561. constraint: the x86 back-end uses this feature to discourage usage
  27562. of 387 registers when math is done in the SSE registers (and vice
  27563. versa).
  27564. -- Target Hook: reg_class_t TARGET_PREFERRED_OUTPUT_RELOAD_CLASS (rtx
  27565. X, reg_class_t RCLASS)
  27566. Like 'TARGET_PREFERRED_RELOAD_CLASS', but for output reloads
  27567. instead of input reloads.
  27568. The default version of this hook always returns value of 'rclass'
  27569. argument.
  27570. You can also use 'TARGET_PREFERRED_OUTPUT_RELOAD_CLASS' to
  27571. discourage reload from using some alternatives, like
  27572. 'TARGET_PREFERRED_RELOAD_CLASS'.
  27573. -- Macro: LIMIT_RELOAD_CLASS (MODE, CLASS)
  27574. A C expression that places additional restrictions on the register
  27575. class to use when it is necessary to be able to hold a value of
  27576. mode MODE in a reload register for which class CLASS would
  27577. ordinarily be used.
  27578. Unlike 'PREFERRED_RELOAD_CLASS', this macro should be used when
  27579. there are certain modes that simply cannot go in certain reload
  27580. classes.
  27581. The value is a register class; perhaps CLASS, or perhaps another,
  27582. smaller class.
  27583. Don't define this macro unless the target machine has limitations
  27584. which require the macro to do something nontrivial.
  27585. -- Target Hook: reg_class_t TARGET_SECONDARY_RELOAD (bool IN_P, rtx X,
  27586. reg_class_t RELOAD_CLASS, machine_mode RELOAD_MODE,
  27587. secondary_reload_info *SRI)
  27588. Many machines have some registers that cannot be copied directly to
  27589. or from memory or even from other types of registers. An example
  27590. is the 'MQ' register, which on most machines, can only be copied to
  27591. or from general registers, but not memory. Below, we shall be
  27592. using the term 'intermediate register' when a move operation cannot
  27593. be performed directly, but has to be done by copying the source
  27594. into the intermediate register first, and then copying the
  27595. intermediate register to the destination. An intermediate register
  27596. always has the same mode as source and destination. Since it holds
  27597. the actual value being copied, reload might apply optimizations to
  27598. re-use an intermediate register and eliding the copy from the
  27599. source when it can determine that the intermediate register still
  27600. holds the required value.
  27601. Another kind of secondary reload is required on some machines which
  27602. allow copying all registers to and from memory, but require a
  27603. scratch register for stores to some memory locations (e.g., those
  27604. with symbolic address on the RT, and those with certain symbolic
  27605. address on the SPARC when compiling PIC). Scratch registers need
  27606. not have the same mode as the value being copied, and usually hold
  27607. a different value than that being copied. Special patterns in the
  27608. md file are needed to describe how the copy is performed with the
  27609. help of the scratch register; these patterns also describe the
  27610. number, register class(es) and mode(s) of the scratch register(s).
  27611. In some cases, both an intermediate and a scratch register are
  27612. required.
  27613. For input reloads, this target hook is called with nonzero IN_P,
  27614. and X is an rtx that needs to be copied to a register of class
  27615. RELOAD_CLASS in RELOAD_MODE. For output reloads, this target hook
  27616. is called with zero IN_P, and a register of class RELOAD_CLASS
  27617. needs to be copied to rtx X in RELOAD_MODE.
  27618. If copying a register of RELOAD_CLASS from/to X requires an
  27619. intermediate register, the hook 'secondary_reload' should return
  27620. the register class required for this intermediate register. If no
  27621. intermediate register is required, it should return NO_REGS. If
  27622. more than one intermediate register is required, describe the one
  27623. that is closest in the copy chain to the reload register.
  27624. If scratch registers are needed, you also have to describe how to
  27625. perform the copy from/to the reload register to/from this closest
  27626. intermediate register. Or if no intermediate register is required,
  27627. but still a scratch register is needed, describe the copy from/to
  27628. the reload register to/from the reload operand X.
  27629. You do this by setting 'sri->icode' to the instruction code of a
  27630. pattern in the md file which performs the move. Operands 0 and 1
  27631. are the output and input of this copy, respectively. Operands from
  27632. operand 2 onward are for scratch operands. These scratch operands
  27633. must have a mode, and a single-register-class output constraint.
  27634. When an intermediate register is used, the 'secondary_reload' hook
  27635. will be called again to determine how to copy the intermediate
  27636. register to/from the reload operand X, so your hook must also have
  27637. code to handle the register class of the intermediate operand.
  27638. X might be a pseudo-register or a 'subreg' of a pseudo-register,
  27639. which could either be in a hard register or in memory. Use
  27640. 'true_regnum' to find out; it will return -1 if the pseudo is in
  27641. memory and the hard register number if it is in a register.
  27642. Scratch operands in memory (constraint '"=m"' / '"=&m"') are
  27643. currently not supported. For the time being, you will have to
  27644. continue to use 'TARGET_SECONDARY_MEMORY_NEEDED' for that purpose.
  27645. 'copy_cost' also uses this target hook to find out how values are
  27646. copied. If you want it to include some extra cost for the need to
  27647. allocate (a) scratch register(s), set 'sri->extra_cost' to the
  27648. additional cost. Or if two dependent moves are supposed to have a
  27649. lower cost than the sum of the individual moves due to expected
  27650. fortuitous scheduling and/or special forwarding logic, you can set
  27651. 'sri->extra_cost' to a negative amount.
  27652. -- Macro: SECONDARY_RELOAD_CLASS (CLASS, MODE, X)
  27653. -- Macro: SECONDARY_INPUT_RELOAD_CLASS (CLASS, MODE, X)
  27654. -- Macro: SECONDARY_OUTPUT_RELOAD_CLASS (CLASS, MODE, X)
  27655. These macros are obsolete, new ports should use the target hook
  27656. 'TARGET_SECONDARY_RELOAD' instead.
  27657. These are obsolete macros, replaced by the
  27658. 'TARGET_SECONDARY_RELOAD' target hook. Older ports still define
  27659. these macros to indicate to the reload phase that it may need to
  27660. allocate at least one register for a reload in addition to the
  27661. register to contain the data. Specifically, if copying X to a
  27662. register CLASS in MODE requires an intermediate register, you were
  27663. supposed to define 'SECONDARY_INPUT_RELOAD_CLASS' to return the
  27664. largest register class all of whose registers can be used as
  27665. intermediate registers or scratch registers.
  27666. If copying a register CLASS in MODE to X requires an intermediate
  27667. or scratch register, 'SECONDARY_OUTPUT_RELOAD_CLASS' was supposed
  27668. to be defined be defined to return the largest register class
  27669. required. If the requirements for input and output reloads were
  27670. the same, the macro 'SECONDARY_RELOAD_CLASS' should have been used
  27671. instead of defining both macros identically.
  27672. The values returned by these macros are often 'GENERAL_REGS'.
  27673. Return 'NO_REGS' if no spare register is needed; i.e., if X can be
  27674. directly copied to or from a register of CLASS in MODE without
  27675. requiring a scratch register. Do not define this macro if it would
  27676. always return 'NO_REGS'.
  27677. If a scratch register is required (either with or without an
  27678. intermediate register), you were supposed to define patterns for
  27679. 'reload_inM' or 'reload_outM', as required (*note Standard Names::.
  27680. These patterns, which were normally implemented with a
  27681. 'define_expand', should be similar to the 'movM' patterns, except
  27682. that operand 2 is the scratch register.
  27683. These patterns need constraints for the reload register and scratch
  27684. register that contain a single register class. If the original
  27685. reload register (whose class is CLASS) can meet the constraint
  27686. given in the pattern, the value returned by these macros is used
  27687. for the class of the scratch register. Otherwise, two additional
  27688. reload registers are required. Their classes are obtained from the
  27689. constraints in the insn pattern.
  27690. X might be a pseudo-register or a 'subreg' of a pseudo-register,
  27691. which could either be in a hard register or in memory. Use
  27692. 'true_regnum' to find out; it will return -1 if the pseudo is in
  27693. memory and the hard register number if it is in a register.
  27694. These macros should not be used in the case where a particular
  27695. class of registers can only be copied to memory and not to another
  27696. class of registers. In that case, secondary reload registers are
  27697. not needed and would not be helpful. Instead, a stack location
  27698. must be used to perform the copy and the 'movM' pattern should use
  27699. memory as an intermediate storage. This case often occurs between
  27700. floating-point and general registers.
  27701. -- Target Hook: bool TARGET_SECONDARY_MEMORY_NEEDED (machine_mode MODE,
  27702. reg_class_t CLASS1, reg_class_t CLASS2)
  27703. Certain machines have the property that some registers cannot be
  27704. copied to some other registers without using memory. Define this
  27705. hook on those machines to return true if objects of mode M in
  27706. registers of CLASS1 can only be copied to registers of class CLASS2
  27707. by storing a register of CLASS1 into memory and loading that memory
  27708. location into a register of CLASS2. The default definition returns
  27709. false for all inputs.
  27710. -- Macro: SECONDARY_MEMORY_NEEDED_RTX (MODE)
  27711. Normally when 'TARGET_SECONDARY_MEMORY_NEEDED' is defined, the
  27712. compiler allocates a stack slot for a memory location needed for
  27713. register copies. If this macro is defined, the compiler instead
  27714. uses the memory location defined by this macro.
  27715. Do not define this macro if you do not define
  27716. 'TARGET_SECONDARY_MEMORY_NEEDED'.
  27717. -- Target Hook: machine_mode TARGET_SECONDARY_MEMORY_NEEDED_MODE
  27718. (machine_mode MODE)
  27719. If 'TARGET_SECONDARY_MEMORY_NEEDED' tells the compiler to use
  27720. memory when moving between two particular registers of mode MODE,
  27721. this hook specifies the mode that the memory should have.
  27722. The default depends on 'TARGET_LRA_P'. Without LRA, the default is
  27723. to use a word-sized mode for integral modes that are smaller than a
  27724. a word. This is right thing to do on most machines because it
  27725. ensures that all bits of the register are copied and prevents
  27726. accesses to the registers in a narrower mode, which some machines
  27727. prohibit for floating-point registers.
  27728. However, this default behavior is not correct on some machines,
  27729. such as the DEC Alpha, that store short integers in floating-point
  27730. registers differently than in integer registers. On those
  27731. machines, the default widening will not work correctly and you must
  27732. define this hook to suppress that widening in some cases. See the
  27733. file 'alpha.c' for details.
  27734. With LRA, the default is to use MODE unmodified.
  27735. -- Target Hook: void TARGET_SELECT_EARLY_REMAT_MODES (sbitmap MODES)
  27736. On some targets, certain modes cannot be held in registers around a
  27737. standard ABI call and are relatively expensive to spill to the
  27738. stack. The early rematerialization pass can help in such cases by
  27739. aggressively recomputing values after calls, so that they don't
  27740. need to be spilled.
  27741. This hook returns the set of such modes by setting the associated
  27742. bits in MODES. The default implementation selects no modes, which
  27743. has the effect of disabling the early rematerialization pass.
  27744. -- Target Hook: bool TARGET_CLASS_LIKELY_SPILLED_P (reg_class_t RCLASS)
  27745. A target hook which returns 'true' if pseudos that have been
  27746. assigned to registers of class RCLASS would likely be spilled
  27747. because registers of RCLASS are needed for spill registers.
  27748. The default version of this target hook returns 'true' if RCLASS
  27749. has exactly one register and 'false' otherwise. On most machines,
  27750. this default should be used. For generally register-starved
  27751. machines, such as i386, or machines with right register
  27752. constraints, such as SH, this hook can be used to avoid excessive
  27753. spilling.
  27754. This hook is also used by some of the global intra-procedural code
  27755. transformations to throtle code motion, to avoid increasing
  27756. register pressure.
  27757. -- Target Hook: unsigned char TARGET_CLASS_MAX_NREGS (reg_class_t
  27758. RCLASS, machine_mode MODE)
  27759. A target hook returns the maximum number of consecutive registers
  27760. of class RCLASS needed to hold a value of mode MODE.
  27761. This is closely related to the macro 'TARGET_HARD_REGNO_NREGS'. In
  27762. fact, the value returned by 'TARGET_CLASS_MAX_NREGS (RCLASS, MODE)'
  27763. target hook should be the maximum value of 'TARGET_HARD_REGNO_NREGS
  27764. (REGNO, MODE)' for all REGNO values in the class RCLASS.
  27765. This target hook helps control the handling of multiple-word values
  27766. in the reload pass.
  27767. The default version of this target hook returns the size of MODE in
  27768. words.
  27769. -- Macro: CLASS_MAX_NREGS (CLASS, MODE)
  27770. A C expression for the maximum number of consecutive registers of
  27771. class CLASS needed to hold a value of mode MODE.
  27772. This is closely related to the macro 'TARGET_HARD_REGNO_NREGS'. In
  27773. fact, the value of the macro 'CLASS_MAX_NREGS (CLASS, MODE)' should
  27774. be the maximum value of 'TARGET_HARD_REGNO_NREGS (REGNO, MODE)' for
  27775. all REGNO values in the class CLASS.
  27776. This macro helps control the handling of multiple-word values in
  27777. the reload pass.
  27778. -- Target Hook: bool TARGET_CAN_CHANGE_MODE_CLASS (machine_mode FROM,
  27779. machine_mode TO, reg_class_t RCLASS)
  27780. This hook returns true if it is possible to bitcast values held in
  27781. registers of class RCLASS from mode FROM to mode TO and if doing so
  27782. preserves the low-order bits that are common to both modes. The
  27783. result is only meaningful if RCLASS has registers that can hold
  27784. both 'from' and 'to'. The default implementation returns true.
  27785. As an example of when such bitcasting is invalid, loading 32-bit
  27786. integer or floating-point objects into floating-point registers on
  27787. Alpha extends them to 64 bits. Therefore loading a 64-bit object
  27788. and then storing it as a 32-bit object does not store the low-order
  27789. 32 bits, as would be the case for a normal register. Therefore,
  27790. 'alpha.h' defines 'TARGET_CAN_CHANGE_MODE_CLASS' to return:
  27791. (GET_MODE_SIZE (from) == GET_MODE_SIZE (to)
  27792. || !reg_classes_intersect_p (FLOAT_REGS, rclass))
  27793. Even if storing from a register in mode TO would be valid, if both
  27794. FROM and 'raw_reg_mode' for RCLASS are wider than 'word_mode', then
  27795. we must prevent TO narrowing the mode. This happens when the
  27796. middle-end assumes that it can load or store pieces of an N-word
  27797. pseudo, and that the pseudo will eventually be allocated to N
  27798. 'word_mode' hard registers. Failure to prevent this kind of mode
  27799. change will result in the entire 'raw_reg_mode' being modified
  27800. instead of the partial value that the middle-end intended.
  27801. -- Target Hook: reg_class_t TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS
  27802. (int, REG_CLASS_T, REG_CLASS_T)
  27803. A target hook which can change allocno class for given pseudo from
  27804. allocno and best class calculated by IRA.
  27805. The default version of this target hook always returns given class.
  27806. -- Target Hook: bool TARGET_LRA_P (void)
  27807. A target hook which returns true if we use LRA instead of reload
  27808. pass. The default version of this target hook returns true. New
  27809. ports should use LRA, and existing ports are encouraged to convert.
  27810. -- Target Hook: int TARGET_REGISTER_PRIORITY (int)
  27811. A target hook which returns the register priority number to which
  27812. the register HARD_REGNO belongs to. The bigger the number, the
  27813. more preferable the hard register usage (when all other conditions
  27814. are the same). This hook can be used to prefer some hard register
  27815. over others in LRA. For example, some x86-64 register usage needs
  27816. additional prefix which makes instructions longer. The hook can
  27817. return lower priority number for such registers make them less
  27818. favorable and as result making the generated code smaller. The
  27819. default version of this target hook returns always zero.
  27820. -- Target Hook: bool TARGET_REGISTER_USAGE_LEVELING_P (void)
  27821. A target hook which returns true if we need register usage
  27822. leveling. That means if a few hard registers are equally good for
  27823. the assignment, we choose the least used hard register. The
  27824. register usage leveling may be profitable for some targets. Don't
  27825. use the usage leveling for targets with conditional execution or
  27826. targets with big register files as it hurts if-conversion and
  27827. cross-jumping optimizations. The default version of this target
  27828. hook returns always false.
  27829. -- Target Hook: bool TARGET_DIFFERENT_ADDR_DISPLACEMENT_P (void)
  27830. A target hook which returns true if an address with the same
  27831. structure can have different maximal legitimate displacement. For
  27832. example, the displacement can depend on memory mode or on operand
  27833. combinations in the insn. The default version of this target hook
  27834. returns always false.
  27835. -- Target Hook: bool TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P (rtx SUBST)
  27836. A target hook which returns 'true' if SUBST can't substitute safely
  27837. pseudos with equivalent memory values during register allocation.
  27838. The default version of this target hook returns 'false'. On most
  27839. machines, this default should be used. For generally machines with
  27840. non orthogonal register usage for addressing, such as SH, this hook
  27841. can be used to avoid excessive spilling.
  27842. -- Target Hook: bool TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT (rtx
  27843. *OFFSET1, rtx *OFFSET2, poly_int64 ORIG_OFFSET, machine_mode
  27844. MODE)
  27845. This hook tries to split address offset ORIG_OFFSET into two parts:
  27846. one that should be added to the base address to create a local
  27847. anchor point, and an additional offset that can be applied to the
  27848. anchor to address a value of mode MODE. The idea is that the local
  27849. anchor could be shared by other accesses to nearby locations.
  27850. The hook returns true if it succeeds, storing the offset of the
  27851. anchor from the base in OFFSET1 and the offset of the final address
  27852. from the anchor in OFFSET2. The default implementation returns
  27853. false.
  27854. -- Target Hook: reg_class_t TARGET_SPILL_CLASS (reg_class_t,
  27855. MACHINE_MODE)
  27856. This hook defines a class of registers which could be used for
  27857. spilling pseudos of the given mode and class, or 'NO_REGS' if only
  27858. memory should be used. Not defining this hook is equivalent to
  27859. returning 'NO_REGS' for all inputs.
  27860. -- Target Hook: bool TARGET_ADDITIONAL_ALLOCNO_CLASS_P (reg_class_t)
  27861. This hook should return 'true' if given class of registers should
  27862. be an allocno class in any way. Usually RA uses only one register
  27863. class from all classes containing the same register set. In some
  27864. complicated cases, you need to have two or more such classes as
  27865. allocno ones for RA correct work. Not defining this hook is
  27866. equivalent to returning 'false' for all inputs.
  27867. -- Target Hook: scalar_int_mode TARGET_CSTORE_MODE (enum insn_code
  27868. ICODE)
  27869. This hook defines the machine mode to use for the boolean result of
  27870. conditional store patterns. The ICODE argument is the instruction
  27871. code for the cstore being performed. Not definiting this hook is
  27872. the same as accepting the mode encoded into operand 0 of the cstore
  27873. expander patterns.
  27874. -- Target Hook: int TARGET_COMPUTE_PRESSURE_CLASSES (enum reg_class
  27875. *PRESSURE_CLASSES)
  27876. A target hook which lets a backend compute the set of pressure
  27877. classes to be used by those optimization passes which take register
  27878. pressure into account, as opposed to letting IRA compute them. It
  27879. returns the number of register classes stored in the array
  27880. PRESSURE_CLASSES.
  27881. 
  27882. File: gccint.info, Node: Stack and Calling, Next: Varargs, Prev: Register Classes, Up: Target Macros
  27883. 18.9 Stack Layout and Calling Conventions
  27884. =========================================
  27885. This describes the stack layout and calling conventions.
  27886. * Menu:
  27887. * Frame Layout::
  27888. * Exception Handling::
  27889. * Stack Checking::
  27890. * Frame Registers::
  27891. * Elimination::
  27892. * Stack Arguments::
  27893. * Register Arguments::
  27894. * Scalar Return::
  27895. * Aggregate Return::
  27896. * Caller Saves::
  27897. * Function Entry::
  27898. * Profiling::
  27899. * Tail Calls::
  27900. * Shrink-wrapping separate components::
  27901. * Stack Smashing Protection::
  27902. * Miscellaneous Register Hooks::
  27903. 
  27904. File: gccint.info, Node: Frame Layout, Next: Exception Handling, Up: Stack and Calling
  27905. 18.9.1 Basic Stack Layout
  27906. -------------------------
  27907. Here is the basic stack layout.
  27908. -- Macro: STACK_GROWS_DOWNWARD
  27909. Define this macro to be true if pushing a word onto the stack moves
  27910. the stack pointer to a smaller address, and false otherwise.
  27911. -- Macro: STACK_PUSH_CODE
  27912. This macro defines the operation used when something is pushed on
  27913. the stack. In RTL, a push operation will be '(set (mem
  27914. (STACK_PUSH_CODE (reg sp))) ...)'
  27915. The choices are 'PRE_DEC', 'POST_DEC', 'PRE_INC', and 'POST_INC'.
  27916. Which of these is correct depends on the stack direction and on
  27917. whether the stack pointer points to the last item on the stack or
  27918. whether it points to the space for the next item on the stack.
  27919. The default is 'PRE_DEC' when 'STACK_GROWS_DOWNWARD' is true, which
  27920. is almost always right, and 'PRE_INC' otherwise, which is often
  27921. wrong.
  27922. -- Macro: FRAME_GROWS_DOWNWARD
  27923. Define this macro to nonzero value if the addresses of local
  27924. variable slots are at negative offsets from the frame pointer.
  27925. -- Macro: ARGS_GROW_DOWNWARD
  27926. Define this macro if successive arguments to a function occupy
  27927. decreasing addresses on the stack.
  27928. -- Target Hook: HOST_WIDE_INT TARGET_STARTING_FRAME_OFFSET (void)
  27929. This hook returns the offset from the frame pointer to the first
  27930. local variable slot to be allocated. If 'FRAME_GROWS_DOWNWARD', it
  27931. is the offset to _end_ of the first slot allocated, otherwise it is
  27932. the offset to _beginning_ of the first slot allocated. The default
  27933. implementation returns 0.
  27934. -- Macro: STACK_ALIGNMENT_NEEDED
  27935. Define to zero to disable final alignment of the stack during
  27936. reload. The nonzero default for this macro is suitable for most
  27937. ports.
  27938. On ports where 'TARGET_STARTING_FRAME_OFFSET' is nonzero or where
  27939. there is a register save block following the local block that
  27940. doesn't require alignment to 'STACK_BOUNDARY', it may be beneficial
  27941. to disable stack alignment and do it in the backend.
  27942. -- Macro: STACK_POINTER_OFFSET
  27943. Offset from the stack pointer register to the first location at
  27944. which outgoing arguments are placed. If not specified, the default
  27945. value of zero is used. This is the proper value for most machines.
  27946. If 'ARGS_GROW_DOWNWARD', this is the offset to the location above
  27947. the first location at which outgoing arguments are placed.
  27948. -- Macro: FIRST_PARM_OFFSET (FUNDECL)
  27949. Offset from the argument pointer register to the first argument's
  27950. address. On some machines it may depend on the data type of the
  27951. function.
  27952. If 'ARGS_GROW_DOWNWARD', this is the offset to the location above
  27953. the first argument's address.
  27954. -- Macro: STACK_DYNAMIC_OFFSET (FUNDECL)
  27955. Offset from the stack pointer register to an item dynamically
  27956. allocated on the stack, e.g., by 'alloca'.
  27957. The default value for this macro is 'STACK_POINTER_OFFSET' plus the
  27958. length of the outgoing arguments. The default is correct for most
  27959. machines. See 'function.c' for details.
  27960. -- Macro: INITIAL_FRAME_ADDRESS_RTX
  27961. A C expression whose value is RTL representing the address of the
  27962. initial stack frame. This address is passed to 'RETURN_ADDR_RTX'
  27963. and 'DYNAMIC_CHAIN_ADDRESS'. If you don't define this macro, a
  27964. reasonable default value will be used. Define this macro in order
  27965. to make frame pointer elimination work in the presence of
  27966. '__builtin_frame_address (count)' and '__builtin_return_address
  27967. (count)' for 'count' not equal to zero.
  27968. -- Macro: DYNAMIC_CHAIN_ADDRESS (FRAMEADDR)
  27969. A C expression whose value is RTL representing the address in a
  27970. stack frame where the pointer to the caller's frame is stored.
  27971. Assume that FRAMEADDR is an RTL expression for the address of the
  27972. stack frame itself.
  27973. If you don't define this macro, the default is to return the value
  27974. of FRAMEADDR--that is, the stack frame address is also the address
  27975. of the stack word that points to the previous frame.
  27976. -- Macro: SETUP_FRAME_ADDRESSES
  27977. A C expression that produces the machine-specific code to setup the
  27978. stack so that arbitrary frames can be accessed. For example, on
  27979. the SPARC, we must flush all of the register windows to the stack
  27980. before we can access arbitrary stack frames. You will seldom need
  27981. to define this macro. The default is to do nothing.
  27982. -- Target Hook: rtx TARGET_BUILTIN_SETJMP_FRAME_VALUE (void)
  27983. This target hook should return an rtx that is used to store the
  27984. address of the current frame into the built in 'setjmp' buffer.
  27985. The default value, 'virtual_stack_vars_rtx', is correct for most
  27986. machines. One reason you may need to define this target hook is if
  27987. 'hard_frame_pointer_rtx' is the appropriate value on your machine.
  27988. -- Macro: FRAME_ADDR_RTX (FRAMEADDR)
  27989. A C expression whose value is RTL representing the value of the
  27990. frame address for the current frame. FRAMEADDR is the frame
  27991. pointer of the current frame. This is used for
  27992. __builtin_frame_address. You need only define this macro if the
  27993. frame address is not the same as the frame pointer. Most machines
  27994. do not need to define it.
  27995. -- Macro: RETURN_ADDR_RTX (COUNT, FRAMEADDR)
  27996. A C expression whose value is RTL representing the value of the
  27997. return address for the frame COUNT steps up from the current frame,
  27998. after the prologue. FRAMEADDR is the frame pointer of the COUNT
  27999. frame, or the frame pointer of the COUNT - 1 frame if
  28000. 'RETURN_ADDR_IN_PREVIOUS_FRAME' is nonzero.
  28001. The value of the expression must always be the correct address when
  28002. COUNT is zero, but may be 'NULL_RTX' if there is no way to
  28003. determine the return address of other frames.
  28004. -- Macro: RETURN_ADDR_IN_PREVIOUS_FRAME
  28005. Define this macro to nonzero value if the return address of a
  28006. particular stack frame is accessed from the frame pointer of the
  28007. previous stack frame. The zero default for this macro is suitable
  28008. for most ports.
  28009. -- Macro: INCOMING_RETURN_ADDR_RTX
  28010. A C expression whose value is RTL representing the location of the
  28011. incoming return address at the beginning of any function, before
  28012. the prologue. This RTL is either a 'REG', indicating that the
  28013. return value is saved in 'REG', or a 'MEM' representing a location
  28014. in the stack.
  28015. You only need to define this macro if you want to support call
  28016. frame debugging information like that provided by DWARF 2.
  28017. If this RTL is a 'REG', you should also define
  28018. 'DWARF_FRAME_RETURN_COLUMN' to 'DWARF_FRAME_REGNUM (REGNO)'.
  28019. -- Macro: DWARF_ALT_FRAME_RETURN_COLUMN
  28020. A C expression whose value is an integer giving a DWARF 2 column
  28021. number that may be used as an alternative return column. The
  28022. column must not correspond to any gcc hard register (that is, it
  28023. must not be in the range of 'DWARF_FRAME_REGNUM').
  28024. This macro can be useful if 'DWARF_FRAME_RETURN_COLUMN' is set to a
  28025. general register, but an alternative column needs to be used for
  28026. signal frames. Some targets have also used different frame return
  28027. columns over time.
  28028. -- Macro: DWARF_ZERO_REG
  28029. A C expression whose value is an integer giving a DWARF 2 register
  28030. number that is considered to always have the value zero. This
  28031. should only be defined if the target has an architected zero
  28032. register, and someone decided it was a good idea to use that
  28033. register number to terminate the stack backtrace. New ports should
  28034. avoid this.
  28035. -- Target Hook: void TARGET_DWARF_HANDLE_FRAME_UNSPEC (const char
  28036. *LABEL, rtx PATTERN, int INDEX)
  28037. This target hook allows the backend to emit frame-related insns
  28038. that contain UNSPECs or UNSPEC_VOLATILEs. The DWARF 2 call frame
  28039. debugging info engine will invoke it on insns of the form
  28040. (set (reg) (unspec [...] UNSPEC_INDEX))
  28041. and
  28042. (set (reg) (unspec_volatile [...] UNSPECV_INDEX)).
  28043. to let the backend emit the call frame instructions. LABEL is the
  28044. CFI label attached to the insn, PATTERN is the pattern of the insn
  28045. and INDEX is 'UNSPEC_INDEX' or 'UNSPECV_INDEX'.
  28046. -- Target Hook: unsigned int TARGET_DWARF_POLY_INDETERMINATE_VALUE
  28047. (unsigned int I, unsigned int *FACTOR, int *OFFSET)
  28048. Express the value of 'poly_int' indeterminate I as a DWARF
  28049. expression, with I counting from 1. Return the number of a DWARF
  28050. register R and set '*FACTOR' and '*OFFSET' such that the value of
  28051. the indeterminate is:
  28052. value_of(R) / FACTOR - OFFSET
  28053. A target only needs to define this hook if it sets
  28054. 'NUM_POLY_INT_COEFFS' to a value greater than 1.
  28055. -- Macro: INCOMING_FRAME_SP_OFFSET
  28056. A C expression whose value is an integer giving the offset, in
  28057. bytes, from the value of the stack pointer register to the top of
  28058. the stack frame at the beginning of any function, before the
  28059. prologue. The top of the frame is defined to be the value of the
  28060. stack pointer in the previous frame, just before the call
  28061. instruction.
  28062. You only need to define this macro if you want to support call
  28063. frame debugging information like that provided by DWARF 2.
  28064. -- Macro: DEFAULT_INCOMING_FRAME_SP_OFFSET
  28065. Like 'INCOMING_FRAME_SP_OFFSET', but must be the same for all
  28066. functions of the same ABI, and when using GAS '.cfi_*' directives
  28067. must also agree with the default CFI GAS emits. Define this macro
  28068. only if 'INCOMING_FRAME_SP_OFFSET' can have different values
  28069. between different functions of the same ABI or when
  28070. 'INCOMING_FRAME_SP_OFFSET' does not agree with GAS default CFI.
  28071. -- Macro: ARG_POINTER_CFA_OFFSET (FUNDECL)
  28072. A C expression whose value is an integer giving the offset, in
  28073. bytes, from the argument pointer to the canonical frame address
  28074. (cfa). The final value should coincide with that calculated by
  28075. 'INCOMING_FRAME_SP_OFFSET'. Which is unfortunately not usable
  28076. during virtual register instantiation.
  28077. The default value for this macro is 'FIRST_PARM_OFFSET (fundecl) +
  28078. crtl->args.pretend_args_size', which is correct for most machines;
  28079. in general, the arguments are found immediately before the stack
  28080. frame. Note that this is not the case on some targets that save
  28081. registers into the caller's frame, such as SPARC and rs6000, and so
  28082. such targets need to define this macro.
  28083. You only need to define this macro if the default is incorrect, and
  28084. you want to support call frame debugging information like that
  28085. provided by DWARF 2.
  28086. -- Macro: FRAME_POINTER_CFA_OFFSET (FUNDECL)
  28087. If defined, a C expression whose value is an integer giving the
  28088. offset in bytes from the frame pointer to the canonical frame
  28089. address (cfa). The final value should coincide with that
  28090. calculated by 'INCOMING_FRAME_SP_OFFSET'.
  28091. Normally the CFA is calculated as an offset from the argument
  28092. pointer, via 'ARG_POINTER_CFA_OFFSET', but if the argument pointer
  28093. is variable due to the ABI, this may not be possible. If this
  28094. macro is defined, it implies that the virtual register
  28095. instantiation should be based on the frame pointer instead of the
  28096. argument pointer. Only one of 'FRAME_POINTER_CFA_OFFSET' and
  28097. 'ARG_POINTER_CFA_OFFSET' should be defined.
  28098. -- Macro: CFA_FRAME_BASE_OFFSET (FUNDECL)
  28099. If defined, a C expression whose value is an integer giving the
  28100. offset in bytes from the canonical frame address (cfa) to the frame
  28101. base used in DWARF 2 debug information. The default is zero. A
  28102. different value may reduce the size of debug information on some
  28103. ports.
  28104. 
  28105. File: gccint.info, Node: Exception Handling, Next: Stack Checking, Prev: Frame Layout, Up: Stack and Calling
  28106. 18.9.2 Exception Handling Support
  28107. ---------------------------------
  28108. -- Macro: EH_RETURN_DATA_REGNO (N)
  28109. A C expression whose value is the Nth register number used for data
  28110. by exception handlers, or 'INVALID_REGNUM' if fewer than N
  28111. registers are usable.
  28112. The exception handling library routines communicate with the
  28113. exception handlers via a set of agreed upon registers. Ideally
  28114. these registers should be call-clobbered; it is possible to use
  28115. call-saved registers, but may negatively impact code size. The
  28116. target must support at least 2 data registers, but should define 4
  28117. if there are enough free registers.
  28118. You must define this macro if you want to support call frame
  28119. exception handling like that provided by DWARF 2.
  28120. -- Macro: EH_RETURN_STACKADJ_RTX
  28121. A C expression whose value is RTL representing a location in which
  28122. to store a stack adjustment to be applied before function return.
  28123. This is used to unwind the stack to an exception handler's call
  28124. frame. It will be assigned zero on code paths that return
  28125. normally.
  28126. Typically this is a call-clobbered hard register that is otherwise
  28127. untouched by the epilogue, but could also be a stack slot.
  28128. Do not define this macro if the stack pointer is saved and restored
  28129. by the regular prolog and epilog code in the call frame itself; in
  28130. this case, the exception handling library routines will update the
  28131. stack location to be restored in place. Otherwise, you must define
  28132. this macro if you want to support call frame exception handling
  28133. like that provided by DWARF 2.
  28134. -- Macro: EH_RETURN_HANDLER_RTX
  28135. A C expression whose value is RTL representing a location in which
  28136. to store the address of an exception handler to which we should
  28137. return. It will not be assigned on code paths that return
  28138. normally.
  28139. Typically this is the location in the call frame at which the
  28140. normal return address is stored. For targets that return by
  28141. popping an address off the stack, this might be a memory address
  28142. just below the _target_ call frame rather than inside the current
  28143. call frame. If defined, 'EH_RETURN_STACKADJ_RTX' will have already
  28144. been assigned, so it may be used to calculate the location of the
  28145. target call frame.
  28146. Some targets have more complex requirements than storing to an
  28147. address calculable during initial code generation. In that case
  28148. the 'eh_return' instruction pattern should be used instead.
  28149. If you want to support call frame exception handling, you must
  28150. define either this macro or the 'eh_return' instruction pattern.
  28151. -- Macro: RETURN_ADDR_OFFSET
  28152. If defined, an integer-valued C expression for which rtl will be
  28153. generated to add it to the exception handler address before it is
  28154. searched in the exception handling tables, and to subtract it again
  28155. from the address before using it to return to the exception
  28156. handler.
  28157. -- Macro: ASM_PREFERRED_EH_DATA_FORMAT (CODE, GLOBAL)
  28158. This macro chooses the encoding of pointers embedded in the
  28159. exception handling sections. If at all possible, this should be
  28160. defined such that the exception handling section will not require
  28161. dynamic relocations, and so may be read-only.
  28162. CODE is 0 for data, 1 for code labels, 2 for function pointers.
  28163. GLOBAL is true if the symbol may be affected by dynamic
  28164. relocations. The macro should return a combination of the
  28165. 'DW_EH_PE_*' defines as found in 'dwarf2.h'.
  28166. If this macro is not defined, pointers will not be encoded but
  28167. represented directly.
  28168. -- Macro: ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX (FILE, ENCODING, SIZE,
  28169. ADDR, DONE)
  28170. This macro allows the target to emit whatever special magic is
  28171. required to represent the encoding chosen by
  28172. 'ASM_PREFERRED_EH_DATA_FORMAT'. Generic code takes care of
  28173. pc-relative and indirect encodings; this must be defined if the
  28174. target uses text-relative or data-relative encodings.
  28175. This is a C statement that branches to DONE if the format was
  28176. handled. ENCODING is the format chosen, SIZE is the number of
  28177. bytes that the format occupies, ADDR is the 'SYMBOL_REF' to be
  28178. emitted.
  28179. -- Macro: MD_FALLBACK_FRAME_STATE_FOR (CONTEXT, FS)
  28180. This macro allows the target to add CPU and operating system
  28181. specific code to the call-frame unwinder for use when there is no
  28182. unwind data available. The most common reason to implement this
  28183. macro is to unwind through signal frames.
  28184. This macro is called from 'uw_frame_state_for' in 'unwind-dw2.c',
  28185. 'unwind-dw2-xtensa.c' and 'unwind-ia64.c'. CONTEXT is an
  28186. '_Unwind_Context'; FS is an '_Unwind_FrameState'. Examine
  28187. 'context->ra' for the address of the code being executed and
  28188. 'context->cfa' for the stack pointer value. If the frame can be
  28189. decoded, the register save addresses should be updated in FS and
  28190. the macro should evaluate to '_URC_NO_REASON'. If the frame cannot
  28191. be decoded, the macro should evaluate to '_URC_END_OF_STACK'.
  28192. For proper signal handling in Java this macro is accompanied by
  28193. 'MAKE_THROW_FRAME', defined in 'libjava/include/*-signal.h'
  28194. headers.
  28195. -- Macro: MD_HANDLE_UNWABI (CONTEXT, FS)
  28196. This macro allows the target to add operating system specific code
  28197. to the call-frame unwinder to handle the IA-64 '.unwabi' unwinding
  28198. directive, usually used for signal or interrupt frames.
  28199. This macro is called from 'uw_update_context' in libgcc's
  28200. 'unwind-ia64.c'. CONTEXT is an '_Unwind_Context'; FS is an
  28201. '_Unwind_FrameState'. Examine 'fs->unwabi' for the abi and context
  28202. in the '.unwabi' directive. If the '.unwabi' directive can be
  28203. handled, the register save addresses should be updated in FS.
  28204. -- Macro: TARGET_USES_WEAK_UNWIND_INFO
  28205. A C expression that evaluates to true if the target requires unwind
  28206. info to be given comdat linkage. Define it to be '1' if comdat
  28207. linkage is necessary. The default is '0'.
  28208. 
  28209. File: gccint.info, Node: Stack Checking, Next: Frame Registers, Prev: Exception Handling, Up: Stack and Calling
  28210. 18.9.3 Specifying How Stack Checking is Done
  28211. --------------------------------------------
  28212. GCC will check that stack references are within the boundaries of the
  28213. stack, if the option '-fstack-check' is specified, in one of three ways:
  28214. 1. If the value of the 'STACK_CHECK_BUILTIN' macro is nonzero, GCC
  28215. will assume that you have arranged for full stack checking to be
  28216. done at appropriate places in the configuration files. GCC will
  28217. not do other special processing.
  28218. 2. If 'STACK_CHECK_BUILTIN' is zero and the value of the
  28219. 'STACK_CHECK_STATIC_BUILTIN' macro is nonzero, GCC will assume that
  28220. you have arranged for static stack checking (checking of the static
  28221. stack frame of functions) to be done at appropriate places in the
  28222. configuration files. GCC will only emit code to do dynamic stack
  28223. checking (checking on dynamic stack allocations) using the third
  28224. approach below.
  28225. 3. If neither of the above are true, GCC will generate code to
  28226. periodically "probe" the stack pointer using the values of the
  28227. macros defined below.
  28228. If neither STACK_CHECK_BUILTIN nor STACK_CHECK_STATIC_BUILTIN is
  28229. defined, GCC will change its allocation strategy for large objects if
  28230. the option '-fstack-check' is specified: they will always be allocated
  28231. dynamically if their size exceeds 'STACK_CHECK_MAX_VAR_SIZE' bytes.
  28232. -- Macro: STACK_CHECK_BUILTIN
  28233. A nonzero value if stack checking is done by the configuration
  28234. files in a machine-dependent manner. You should define this macro
  28235. if stack checking is required by the ABI of your machine or if you
  28236. would like to do stack checking in some more efficient way than the
  28237. generic approach. The default value of this macro is zero.
  28238. -- Macro: STACK_CHECK_STATIC_BUILTIN
  28239. A nonzero value if static stack checking is done by the
  28240. configuration files in a machine-dependent manner. You should
  28241. define this macro if you would like to do static stack checking in
  28242. some more efficient way than the generic approach. The default
  28243. value of this macro is zero.
  28244. -- Macro: STACK_CHECK_PROBE_INTERVAL_EXP
  28245. An integer specifying the interval at which GCC must generate stack
  28246. probe instructions, defined as 2 raised to this integer. You will
  28247. normally define this macro so that the interval be no larger than
  28248. the size of the "guard pages" at the end of a stack area. The
  28249. default value of 12 (4096-byte interval) is suitable for most
  28250. systems.
  28251. -- Macro: STACK_CHECK_MOVING_SP
  28252. An integer which is nonzero if GCC should move the stack pointer
  28253. page by page when doing probes. This can be necessary on systems
  28254. where the stack pointer contains the bottom address of the memory
  28255. area accessible to the executing thread at any point in time. In
  28256. this situation an alternate signal stack is required in order to be
  28257. able to recover from a stack overflow. The default value of this
  28258. macro is zero.
  28259. -- Macro: STACK_CHECK_PROTECT
  28260. The number of bytes of stack needed to recover from a stack
  28261. overflow, for languages where such a recovery is supported. The
  28262. default value of 4KB/8KB with the 'setjmp'/'longjmp'-based
  28263. exception handling mechanism and 8KB/12KB with other exception
  28264. handling mechanisms should be adequate for most architectures and
  28265. operating systems.
  28266. The following macros are relevant only if neither STACK_CHECK_BUILTIN
  28267. nor STACK_CHECK_STATIC_BUILTIN is defined; you can omit them altogether
  28268. in the opposite case.
  28269. -- Macro: STACK_CHECK_MAX_FRAME_SIZE
  28270. The maximum size of a stack frame, in bytes. GCC will generate
  28271. probe instructions in non-leaf functions to ensure at least this
  28272. many bytes of stack are available. If a stack frame is larger than
  28273. this size, stack checking will not be reliable and GCC will issue a
  28274. warning. The default is chosen so that GCC only generates one
  28275. instruction on most systems. You should normally not change the
  28276. default value of this macro.
  28277. -- Macro: STACK_CHECK_FIXED_FRAME_SIZE
  28278. GCC uses this value to generate the above warning message. It
  28279. represents the amount of fixed frame used by a function, not
  28280. including space for any callee-saved registers, temporaries and
  28281. user variables. You need only specify an upper bound for this
  28282. amount and will normally use the default of four words.
  28283. -- Macro: STACK_CHECK_MAX_VAR_SIZE
  28284. The maximum size, in bytes, of an object that GCC will place in the
  28285. fixed area of the stack frame when the user specifies
  28286. '-fstack-check'. GCC computed the default from the values of the
  28287. above macros and you will normally not need to override that
  28288. default.
  28289. -- Target Hook: HOST_WIDE_INT
  28290. TARGET_STACK_CLASH_PROTECTION_ALLOCA_PROBE_RANGE (void)
  28291. Some targets have an ABI defined interval for which no probing
  28292. needs to be done. When a probe does need to be done this same
  28293. interval is used as the probe distance up when doing stack clash
  28294. protection for alloca. On such targets this value can be set to
  28295. override the default probing up interval. Define this variable to
  28296. return nonzero if such a probe range is required or zero otherwise.
  28297. Defining this hook also requires your functions which make use of
  28298. alloca to have at least 8 byesof outgoing arguments. If this is
  28299. not the case the stack will be corrupted. You need not define this
  28300. macro if it would always have the value zero.
  28301. 
  28302. File: gccint.info, Node: Frame Registers, Next: Elimination, Prev: Stack Checking, Up: Stack and Calling
  28303. 18.9.4 Registers That Address the Stack Frame
  28304. ---------------------------------------------
  28305. This discusses registers that address the stack frame.
  28306. -- Macro: STACK_POINTER_REGNUM
  28307. The register number of the stack pointer register, which must also
  28308. be a fixed register according to 'FIXED_REGISTERS'. On most
  28309. machines, the hardware determines which register this is.
  28310. -- Macro: FRAME_POINTER_REGNUM
  28311. The register number of the frame pointer register, which is used to
  28312. access automatic variables in the stack frame. On some machines,
  28313. the hardware determines which register this is. On other machines,
  28314. you can choose any register you wish for this purpose.
  28315. -- Macro: HARD_FRAME_POINTER_REGNUM
  28316. On some machines the offset between the frame pointer and starting
  28317. offset of the automatic variables is not known until after register
  28318. allocation has been done (for example, because the saved registers
  28319. are between these two locations). On those machines, define
  28320. 'FRAME_POINTER_REGNUM' the number of a special, fixed register to
  28321. be used internally until the offset is known, and define
  28322. 'HARD_FRAME_POINTER_REGNUM' to be the actual hard register number
  28323. used for the frame pointer.
  28324. You should define this macro only in the very rare circumstances
  28325. when it is not possible to calculate the offset between the frame
  28326. pointer and the automatic variables until after register allocation
  28327. has been completed. When this macro is defined, you must also
  28328. indicate in your definition of 'ELIMINABLE_REGS' how to eliminate
  28329. 'FRAME_POINTER_REGNUM' into either 'HARD_FRAME_POINTER_REGNUM' or
  28330. 'STACK_POINTER_REGNUM'.
  28331. Do not define this macro if it would be the same as
  28332. 'FRAME_POINTER_REGNUM'.
  28333. -- Macro: ARG_POINTER_REGNUM
  28334. The register number of the arg pointer register, which is used to
  28335. access the function's argument list. On some machines, this is the
  28336. same as the frame pointer register. On some machines, the hardware
  28337. determines which register this is. On other machines, you can
  28338. choose any register you wish for this purpose. If this is not the
  28339. same register as the frame pointer register, then you must mark it
  28340. as a fixed register according to 'FIXED_REGISTERS', or arrange to
  28341. be able to eliminate it (*note Elimination::).
  28342. -- Macro: HARD_FRAME_POINTER_IS_FRAME_POINTER
  28343. Define this to a preprocessor constant that is nonzero if
  28344. 'hard_frame_pointer_rtx' and 'frame_pointer_rtx' should be the
  28345. same. The default definition is '(HARD_FRAME_POINTER_REGNUM ==
  28346. FRAME_POINTER_REGNUM)'; you only need to define this macro if that
  28347. definition is not suitable for use in preprocessor conditionals.
  28348. -- Macro: HARD_FRAME_POINTER_IS_ARG_POINTER
  28349. Define this to a preprocessor constant that is nonzero if
  28350. 'hard_frame_pointer_rtx' and 'arg_pointer_rtx' should be the same.
  28351. The default definition is '(HARD_FRAME_POINTER_REGNUM ==
  28352. ARG_POINTER_REGNUM)'; you only need to define this macro if that
  28353. definition is not suitable for use in preprocessor conditionals.
  28354. -- Macro: RETURN_ADDRESS_POINTER_REGNUM
  28355. The register number of the return address pointer register, which
  28356. is used to access the current function's return address from the
  28357. stack. On some machines, the return address is not at a fixed
  28358. offset from the frame pointer or stack pointer or argument pointer.
  28359. This register can be defined to point to the return address on the
  28360. stack, and then be converted by 'ELIMINABLE_REGS' into either the
  28361. frame pointer or stack pointer.
  28362. Do not define this macro unless there is no other way to get the
  28363. return address from the stack.
  28364. -- Macro: STATIC_CHAIN_REGNUM
  28365. -- Macro: STATIC_CHAIN_INCOMING_REGNUM
  28366. Register numbers used for passing a function's static chain
  28367. pointer. If register windows are used, the register number as seen
  28368. by the called function is 'STATIC_CHAIN_INCOMING_REGNUM', while the
  28369. register number as seen by the calling function is
  28370. 'STATIC_CHAIN_REGNUM'. If these registers are the same,
  28371. 'STATIC_CHAIN_INCOMING_REGNUM' need not be defined.
  28372. The static chain register need not be a fixed register.
  28373. If the static chain is passed in memory, these macros should not be
  28374. defined; instead, the 'TARGET_STATIC_CHAIN' hook should be used.
  28375. -- Target Hook: rtx TARGET_STATIC_CHAIN (const_tree FNDECL_OR_TYPE,
  28376. bool INCOMING_P)
  28377. This hook replaces the use of 'STATIC_CHAIN_REGNUM' et al for
  28378. targets that may use different static chain locations for different
  28379. nested functions. This may be required if the target has function
  28380. attributes that affect the calling conventions of the function and
  28381. those calling conventions use different static chain locations.
  28382. The default version of this hook uses 'STATIC_CHAIN_REGNUM' et al.
  28383. If the static chain is passed in memory, this hook should be used
  28384. to provide rtx giving 'mem' expressions that denote where they are
  28385. stored. Often the 'mem' expression as seen by the caller will be
  28386. at an offset from the stack pointer and the 'mem' expression as
  28387. seen by the callee will be at an offset from the frame pointer.
  28388. The variables 'stack_pointer_rtx', 'frame_pointer_rtx', and
  28389. 'arg_pointer_rtx' will have been initialized and should be used to
  28390. refer to those items.
  28391. -- Macro: DWARF_FRAME_REGISTERS
  28392. This macro specifies the maximum number of hard registers that can
  28393. be saved in a call frame. This is used to size data structures
  28394. used in DWARF2 exception handling.
  28395. Prior to GCC 3.0, this macro was needed in order to establish a
  28396. stable exception handling ABI in the face of adding new hard
  28397. registers for ISA extensions. In GCC 3.0 and later, the EH ABI is
  28398. insulated from changes in the number of hard registers.
  28399. Nevertheless, this macro can still be used to reduce the runtime
  28400. memory requirements of the exception handling routines, which can
  28401. be substantial if the ISA contains a lot of registers that are not
  28402. call-saved.
  28403. If this macro is not defined, it defaults to
  28404. 'FIRST_PSEUDO_REGISTER'.
  28405. -- Macro: PRE_GCC3_DWARF_FRAME_REGISTERS
  28406. This macro is similar to 'DWARF_FRAME_REGISTERS', but is provided
  28407. for backward compatibility in pre GCC 3.0 compiled code.
  28408. If this macro is not defined, it defaults to
  28409. 'DWARF_FRAME_REGISTERS'.
  28410. -- Macro: DWARF_REG_TO_UNWIND_COLUMN (REGNO)
  28411. Define this macro if the target's representation for dwarf
  28412. registers is different than the internal representation for unwind
  28413. column. Given a dwarf register, this macro should return the
  28414. internal unwind column number to use instead.
  28415. -- Macro: DWARF_FRAME_REGNUM (REGNO)
  28416. Define this macro if the target's representation for dwarf
  28417. registers used in .eh_frame or .debug_frame is different from that
  28418. used in other debug info sections. Given a GCC hard register
  28419. number, this macro should return the .eh_frame register number.
  28420. The default is 'DBX_REGISTER_NUMBER (REGNO)'.
  28421. -- Macro: DWARF2_FRAME_REG_OUT (REGNO, FOR_EH)
  28422. Define this macro to map register numbers held in the call frame
  28423. info that GCC has collected using 'DWARF_FRAME_REGNUM' to those
  28424. that should be output in .debug_frame ('FOR_EH' is zero) and
  28425. .eh_frame ('FOR_EH' is nonzero). The default is to return 'REGNO'.
  28426. -- Macro: REG_VALUE_IN_UNWIND_CONTEXT
  28427. Define this macro if the target stores register values as
  28428. '_Unwind_Word' type in unwind context. It should be defined if
  28429. target register size is larger than the size of 'void *'. The
  28430. default is to store register values as 'void *' type.
  28431. -- Macro: ASSUME_EXTENDED_UNWIND_CONTEXT
  28432. Define this macro to be 1 if the target always uses extended unwind
  28433. context with version, args_size and by_value fields. If it is
  28434. undefined, it will be defined to 1 when
  28435. 'REG_VALUE_IN_UNWIND_CONTEXT' is defined and 0 otherwise.
  28436. -- Macro: DWARF_LAZY_REGISTER_VALUE (REGNO, VALUE)
  28437. Define this macro if the target has pseudo DWARF registers whose
  28438. values need to be computed lazily on demand by the unwinder (such
  28439. as when referenced in a CFA expression). The macro returns true if
  28440. REGNO is such a register and stores its value in '*VALUE' if so.
  28441. 
  28442. File: gccint.info, Node: Elimination, Next: Stack Arguments, Prev: Frame Registers, Up: Stack and Calling
  28443. 18.9.5 Eliminating Frame Pointer and Arg Pointer
  28444. ------------------------------------------------
  28445. This is about eliminating the frame pointer and arg pointer.
  28446. -- Target Hook: bool TARGET_FRAME_POINTER_REQUIRED (void)
  28447. This target hook should return 'true' if a function must have and
  28448. use a frame pointer. This target hook is called in the reload
  28449. pass. If its return value is 'true' the function will have a frame
  28450. pointer.
  28451. This target hook can in principle examine the current function and
  28452. decide according to the facts, but on most machines the constant
  28453. 'false' or the constant 'true' suffices. Use 'false' when the
  28454. machine allows code to be generated with no frame pointer, and
  28455. doing so saves some time or space. Use 'true' when there is no
  28456. possible advantage to avoiding a frame pointer.
  28457. In certain cases, the compiler does not know how to produce valid
  28458. code without a frame pointer. The compiler recognizes those cases
  28459. and automatically gives the function a frame pointer regardless of
  28460. what 'targetm.frame_pointer_required' returns. You don't need to
  28461. worry about them.
  28462. In a function that does not require a frame pointer, the frame
  28463. pointer register can be allocated for ordinary usage, unless you
  28464. mark it as a fixed register. See 'FIXED_REGISTERS' for more
  28465. information.
  28466. Default return value is 'false'.
  28467. -- Macro: ELIMINABLE_REGS
  28468. This macro specifies a table of register pairs used to eliminate
  28469. unneeded registers that point into the stack frame.
  28470. The definition of this macro is a list of structure
  28471. initializations, each of which specifies an original and
  28472. replacement register.
  28473. On some machines, the position of the argument pointer is not known
  28474. until the compilation is completed. In such a case, a separate
  28475. hard register must be used for the argument pointer. This register
  28476. can be eliminated by replacing it with either the frame pointer or
  28477. the argument pointer, depending on whether or not the frame pointer
  28478. has been eliminated.
  28479. In this case, you might specify:
  28480. #define ELIMINABLE_REGS \
  28481. {{ARG_POINTER_REGNUM, STACK_POINTER_REGNUM}, \
  28482. {ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM}, \
  28483. {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}}
  28484. Note that the elimination of the argument pointer with the stack
  28485. pointer is specified first since that is the preferred elimination.
  28486. -- Target Hook: bool TARGET_CAN_ELIMINATE (const int FROM_REG, const
  28487. int TO_REG)
  28488. This target hook should return 'true' if the compiler is allowed to
  28489. try to replace register number FROM_REG with register number
  28490. TO_REG. This target hook will usually be 'true', since most of the
  28491. cases preventing register elimination are things that the compiler
  28492. already knows about.
  28493. Default return value is 'true'.
  28494. -- Macro: INITIAL_ELIMINATION_OFFSET (FROM-REG, TO-REG, OFFSET-VAR)
  28495. This macro returns the initial difference between the specified
  28496. pair of registers. The value would be computed from information
  28497. such as the result of 'get_frame_size ()' and the tables of
  28498. registers 'df_regs_ever_live_p' and 'call_used_regs'.
  28499. -- Target Hook: void TARGET_COMPUTE_FRAME_LAYOUT (void)
  28500. This target hook is called once each time the frame layout needs to
  28501. be recalculated. The calculations can be cached by the target and
  28502. can then be used by 'INITIAL_ELIMINATION_OFFSET' instead of
  28503. re-computing the layout on every invocation of that hook. This is
  28504. particularly useful for targets that have an expensive frame layout
  28505. function. Implementing this callback is optional.
  28506. 
  28507. File: gccint.info, Node: Stack Arguments, Next: Register Arguments, Prev: Elimination, Up: Stack and Calling
  28508. 18.9.6 Passing Function Arguments on the Stack
  28509. ----------------------------------------------
  28510. The macros in this section control how arguments are passed on the
  28511. stack. See the following section for other macros that control passing
  28512. certain arguments in registers.
  28513. -- Target Hook: bool TARGET_PROMOTE_PROTOTYPES (const_tree FNTYPE)
  28514. This target hook returns 'true' if an argument declared in a
  28515. prototype as an integral type smaller than 'int' should actually be
  28516. passed as an 'int'. In addition to avoiding errors in certain
  28517. cases of mismatch, it also makes for better code on certain
  28518. machines. The default is to not promote prototypes.
  28519. -- Macro: PUSH_ARGS
  28520. A C expression. If nonzero, push insns will be used to pass
  28521. outgoing arguments. If the target machine does not have a push
  28522. instruction, set it to zero. That directs GCC to use an alternate
  28523. strategy: to allocate the entire argument block and then store the
  28524. arguments into it. When 'PUSH_ARGS' is nonzero, 'PUSH_ROUNDING'
  28525. must be defined too.
  28526. -- Macro: PUSH_ARGS_REVERSED
  28527. A C expression. If nonzero, function arguments will be evaluated
  28528. from last to first, rather than from first to last. If this macro
  28529. is not defined, it defaults to 'PUSH_ARGS' on targets where the
  28530. stack and args grow in opposite directions, and 0 otherwise.
  28531. -- Macro: PUSH_ROUNDING (NPUSHED)
  28532. A C expression that is the number of bytes actually pushed onto the
  28533. stack when an instruction attempts to push NPUSHED bytes.
  28534. On some machines, the definition
  28535. #define PUSH_ROUNDING(BYTES) (BYTES)
  28536. will suffice. But on other machines, instructions that appear to
  28537. push one byte actually push two bytes in an attempt to maintain
  28538. alignment. Then the definition should be
  28539. #define PUSH_ROUNDING(BYTES) (((BYTES) + 1) & ~1)
  28540. If the value of this macro has a type, it should be an unsigned
  28541. type.
  28542. -- Macro: ACCUMULATE_OUTGOING_ARGS
  28543. A C expression. If nonzero, the maximum amount of space required
  28544. for outgoing arguments will be computed and placed into
  28545. 'crtl->outgoing_args_size'. No space will be pushed onto the stack
  28546. for each call; instead, the function prologue should increase the
  28547. stack frame size by this amount.
  28548. Setting both 'PUSH_ARGS' and 'ACCUMULATE_OUTGOING_ARGS' is not
  28549. proper.
  28550. -- Macro: REG_PARM_STACK_SPACE (FNDECL)
  28551. Define this macro if functions should assume that stack space has
  28552. been allocated for arguments even when their values are passed in
  28553. registers.
  28554. The value of this macro is the size, in bytes, of the area reserved
  28555. for arguments passed in registers for the function represented by
  28556. FNDECL, which can be zero if GCC is calling a library function.
  28557. The argument FNDECL can be the FUNCTION_DECL, or the type itself of
  28558. the function.
  28559. This space can be allocated by the caller, or be a part of the
  28560. machine-dependent stack frame: 'OUTGOING_REG_PARM_STACK_SPACE' says
  28561. which.
  28562. -- Macro: INCOMING_REG_PARM_STACK_SPACE (FNDECL)
  28563. Like 'REG_PARM_STACK_SPACE', but for incoming register arguments.
  28564. Define this macro if space guaranteed when compiling a function
  28565. body is different to space required when making a call, a situation
  28566. that can arise with K&R style function definitions.
  28567. -- Macro: OUTGOING_REG_PARM_STACK_SPACE (FNTYPE)
  28568. Define this to a nonzero value if it is the responsibility of the
  28569. caller to allocate the area reserved for arguments passed in
  28570. registers when calling a function of FNTYPE. FNTYPE may be NULL if
  28571. the function called is a library function.
  28572. If 'ACCUMULATE_OUTGOING_ARGS' is defined, this macro controls
  28573. whether the space for these arguments counts in the value of
  28574. 'crtl->outgoing_args_size'.
  28575. -- Macro: STACK_PARMS_IN_REG_PARM_AREA
  28576. Define this macro if 'REG_PARM_STACK_SPACE' is defined, but the
  28577. stack parameters don't skip the area specified by it.
  28578. Normally, when a parameter is not passed in registers, it is placed
  28579. on the stack beyond the 'REG_PARM_STACK_SPACE' area. Defining this
  28580. macro suppresses this behavior and causes the parameter to be
  28581. passed on the stack in its natural location.
  28582. -- Target Hook: poly_int64 TARGET_RETURN_POPS_ARGS (tree FUNDECL, tree
  28583. FUNTYPE, poly_int64 SIZE)
  28584. This target hook returns the number of bytes of its own arguments
  28585. that a function pops on returning, or 0 if the function pops no
  28586. arguments and the caller must therefore pop them all after the
  28587. function returns.
  28588. FUNDECL is a C variable whose value is a tree node that describes
  28589. the function in question. Normally it is a node of type
  28590. 'FUNCTION_DECL' that describes the declaration of the function.
  28591. From this you can obtain the 'DECL_ATTRIBUTES' of the function.
  28592. FUNTYPE is a C variable whose value is a tree node that describes
  28593. the function in question. Normally it is a node of type
  28594. 'FUNCTION_TYPE' that describes the data type of the function. From
  28595. this it is possible to obtain the data types of the value and
  28596. arguments (if known).
  28597. When a call to a library function is being considered, FUNDECL will
  28598. contain an identifier node for the library function. Thus, if you
  28599. need to distinguish among various library functions, you can do so
  28600. by their names. Note that "library function" in this context means
  28601. a function used to perform arithmetic, whose name is known
  28602. specially in the compiler and was not mentioned in the C code being
  28603. compiled.
  28604. SIZE is the number of bytes of arguments passed on the stack. If a
  28605. variable number of bytes is passed, it is zero, and argument
  28606. popping will always be the responsibility of the calling function.
  28607. On the VAX, all functions always pop their arguments, so the
  28608. definition of this macro is SIZE. On the 68000, using the standard
  28609. calling convention, no functions pop their arguments, so the value
  28610. of the macro is always 0 in this case. But an alternative calling
  28611. convention is available in which functions that take a fixed number
  28612. of arguments pop them but other functions (such as 'printf') pop
  28613. nothing (the caller pops all). When this convention is in use,
  28614. FUNTYPE is examined to determine whether a function takes a fixed
  28615. number of arguments.
  28616. -- Macro: CALL_POPS_ARGS (CUM)
  28617. A C expression that should indicate the number of bytes a call
  28618. sequence pops off the stack. It is added to the value of
  28619. 'RETURN_POPS_ARGS' when compiling a function call.
  28620. CUM is the variable in which all arguments to the called function
  28621. have been accumulated.
  28622. On certain architectures, such as the SH5, a call trampoline is
  28623. used that pops certain registers off the stack, depending on the
  28624. arguments that have been passed to the function. Since this is a
  28625. property of the call site, not of the called function,
  28626. 'RETURN_POPS_ARGS' is not appropriate.
  28627. 
  28628. File: gccint.info, Node: Register Arguments, Next: Scalar Return, Prev: Stack Arguments, Up: Stack and Calling
  28629. 18.9.7 Passing Arguments in Registers
  28630. -------------------------------------
  28631. This section describes the macros which let you control how various
  28632. types of arguments are passed in registers or how they are arranged in
  28633. the stack.
  28634. -- Target Hook: rtx TARGET_FUNCTION_ARG (cumulative_args_t CA, const
  28635. function_arg_info &ARG)
  28636. Return an RTX indicating whether function argument ARG is passed in
  28637. a register and if so, which register. Argument CA summarizes all
  28638. the previous arguments.
  28639. The return value is usually either a 'reg' RTX for the hard
  28640. register in which to pass the argument, or zero to pass the
  28641. argument on the stack.
  28642. The return value can be a 'const_int' which means argument is
  28643. passed in a target specific slot with specified number. Target
  28644. hooks should be used to store or load argument in such case. See
  28645. 'TARGET_STORE_BOUNDS_FOR_ARG' and 'TARGET_LOAD_BOUNDS_FOR_ARG' for
  28646. more information.
  28647. The value of the expression can also be a 'parallel' RTX. This is
  28648. used when an argument is passed in multiple locations. The mode of
  28649. the 'parallel' should be the mode of the entire argument. The
  28650. 'parallel' holds any number of 'expr_list' pairs; each one
  28651. describes where part of the argument is passed. In each
  28652. 'expr_list' the first operand must be a 'reg' RTX for the hard
  28653. register in which to pass this part of the argument, and the mode
  28654. of the register RTX indicates how large this part of the argument
  28655. is. The second operand of the 'expr_list' is a 'const_int' which
  28656. gives the offset in bytes into the entire argument of where this
  28657. part starts. As a special exception the first 'expr_list' in the
  28658. 'parallel' RTX may have a first operand of zero. This indicates
  28659. that the entire argument is also stored on the stack.
  28660. The last time this hook is called, it is called with 'MODE ==
  28661. VOIDmode', and its result is passed to the 'call' or 'call_value'
  28662. pattern as operands 2 and 3 respectively.
  28663. The usual way to make the ISO library 'stdarg.h' work on a machine
  28664. where some arguments are usually passed in registers, is to cause
  28665. nameless arguments to be passed on the stack instead. This is done
  28666. by making 'TARGET_FUNCTION_ARG' return 0 whenever NAMED is 'false'.
  28667. You may use the hook 'targetm.calls.must_pass_in_stack' in the
  28668. definition of this macro to determine if this argument is of a type
  28669. that must be passed in the stack. If 'REG_PARM_STACK_SPACE' is not
  28670. defined and 'TARGET_FUNCTION_ARG' returns nonzero for such an
  28671. argument, the compiler will abort. If 'REG_PARM_STACK_SPACE' is
  28672. defined, the argument will be computed in the stack and then loaded
  28673. into a register.
  28674. -- Target Hook: bool TARGET_MUST_PASS_IN_STACK (const function_arg_info
  28675. &ARG)
  28676. This target hook should return 'true' if we should not pass ARG
  28677. solely in registers. The file 'expr.h' defines a definition that
  28678. is usually appropriate, refer to 'expr.h' for additional
  28679. documentation.
  28680. -- Target Hook: rtx TARGET_FUNCTION_INCOMING_ARG (cumulative_args_t CA,
  28681. const function_arg_info &ARG)
  28682. Define this hook if the caller and callee on the target have
  28683. different views of where arguments are passed. Also define this
  28684. hook if there are functions that are never directly called, but are
  28685. invoked by the hardware and which have nonstandard calling
  28686. conventions.
  28687. In this case 'TARGET_FUNCTION_ARG' computes the register in which
  28688. the caller passes the value, and 'TARGET_FUNCTION_INCOMING_ARG'
  28689. should be defined in a similar fashion to tell the function being
  28690. called where the arguments will arrive.
  28691. 'TARGET_FUNCTION_INCOMING_ARG' can also return arbitrary address
  28692. computation using hard register, which can be forced into a
  28693. register, so that it can be used to pass special arguments.
  28694. If 'TARGET_FUNCTION_INCOMING_ARG' is not defined,
  28695. 'TARGET_FUNCTION_ARG' serves both purposes.
  28696. -- Target Hook: bool TARGET_USE_PSEUDO_PIC_REG (void)
  28697. This hook should return 1 in case pseudo register should be created
  28698. for pic_offset_table_rtx during function expand.
  28699. -- Target Hook: void TARGET_INIT_PIC_REG (void)
  28700. Perform a target dependent initialization of pic_offset_table_rtx.
  28701. This hook is called at the start of register allocation.
  28702. -- Target Hook: int TARGET_ARG_PARTIAL_BYTES (cumulative_args_t CUM,
  28703. const function_arg_info &ARG)
  28704. This target hook returns the number of bytes at the beginning of an
  28705. argument that must be put in registers. The value must be zero for
  28706. arguments that are passed entirely in registers or that are
  28707. entirely pushed on the stack.
  28708. On some machines, certain arguments must be passed partially in
  28709. registers and partially in memory. On these machines, typically
  28710. the first few words of arguments are passed in registers, and the
  28711. rest on the stack. If a multi-word argument (a 'double' or a
  28712. structure) crosses that boundary, its first few words must be
  28713. passed in registers and the rest must be pushed. This macro tells
  28714. the compiler when this occurs, and how many bytes should go in
  28715. registers.
  28716. 'TARGET_FUNCTION_ARG' for these arguments should return the first
  28717. register to be used by the caller for this argument; likewise
  28718. 'TARGET_FUNCTION_INCOMING_ARG', for the called function.
  28719. -- Target Hook: bool TARGET_PASS_BY_REFERENCE (cumulative_args_t CUM,
  28720. const function_arg_info &ARG)
  28721. This target hook should return 'true' if argument ARG at the
  28722. position indicated by CUM should be passed by reference. This
  28723. predicate is queried after target independent reasons for being
  28724. passed by reference, such as 'TREE_ADDRESSABLE (ARG.type)'.
  28725. If the hook returns true, a copy of that argument is made in memory
  28726. and a pointer to the argument is passed instead of the argument
  28727. itself. The pointer is passed in whatever way is appropriate for
  28728. passing a pointer to that type.
  28729. -- Target Hook: bool TARGET_CALLEE_COPIES (cumulative_args_t CUM, const
  28730. function_arg_info &ARG)
  28731. The function argument described by the parameters to this hook is
  28732. known to be passed by reference. The hook should return true if
  28733. the function argument should be copied by the callee instead of
  28734. copied by the caller.
  28735. For any argument for which the hook returns true, if it can be
  28736. determined that the argument is not modified, then a copy need not
  28737. be generated.
  28738. The default version of this hook always returns false.
  28739. -- Macro: CUMULATIVE_ARGS
  28740. A C type for declaring a variable that is used as the first
  28741. argument of 'TARGET_FUNCTION_ARG' and other related values. For
  28742. some target machines, the type 'int' suffices and can hold the
  28743. number of bytes of argument so far.
  28744. There is no need to record in 'CUMULATIVE_ARGS' anything about the
  28745. arguments that have been passed on the stack. The compiler has
  28746. other variables to keep track of that. For target machines on
  28747. which all arguments are passed on the stack, there is no need to
  28748. store anything in 'CUMULATIVE_ARGS'; however, the data structure
  28749. must exist and should not be empty, so use 'int'.
  28750. -- Macro: OVERRIDE_ABI_FORMAT (FNDECL)
  28751. If defined, this macro is called before generating any code for a
  28752. function, but after the CFUN descriptor for the function has been
  28753. created. The back end may use this macro to update CFUN to reflect
  28754. an ABI other than that which would normally be used by default. If
  28755. the compiler is generating code for a compiler-generated function,
  28756. FNDECL may be 'NULL'.
  28757. -- Macro: INIT_CUMULATIVE_ARGS (CUM, FNTYPE, LIBNAME, FNDECL,
  28758. N_NAMED_ARGS)
  28759. A C statement (sans semicolon) for initializing the variable CUM
  28760. for the state at the beginning of the argument list. The variable
  28761. has type 'CUMULATIVE_ARGS'. The value of FNTYPE is the tree node
  28762. for the data type of the function which will receive the args, or 0
  28763. if the args are to a compiler support library function. For direct
  28764. calls that are not libcalls, FNDECL contain the declaration node of
  28765. the function. FNDECL is also set when 'INIT_CUMULATIVE_ARGS' is
  28766. used to find arguments for the function being compiled.
  28767. N_NAMED_ARGS is set to the number of named arguments, including a
  28768. structure return address if it is passed as a parameter, when
  28769. making a call. When processing incoming arguments, N_NAMED_ARGS is
  28770. set to -1.
  28771. When processing a call to a compiler support library function,
  28772. LIBNAME identifies which one. It is a 'symbol_ref' rtx which
  28773. contains the name of the function, as a string. LIBNAME is 0 when
  28774. an ordinary C function call is being processed. Thus, each time
  28775. this macro is called, either LIBNAME or FNTYPE is nonzero, but
  28776. never both of them at once.
  28777. -- Macro: INIT_CUMULATIVE_LIBCALL_ARGS (CUM, MODE, LIBNAME)
  28778. Like 'INIT_CUMULATIVE_ARGS' but only used for outgoing libcalls, it
  28779. gets a 'MODE' argument instead of FNTYPE, that would be 'NULL'.
  28780. INDIRECT would always be zero, too. If this macro is not defined,
  28781. 'INIT_CUMULATIVE_ARGS (cum, NULL_RTX, libname, 0)' is used instead.
  28782. -- Macro: INIT_CUMULATIVE_INCOMING_ARGS (CUM, FNTYPE, LIBNAME)
  28783. Like 'INIT_CUMULATIVE_ARGS' but overrides it for the purposes of
  28784. finding the arguments for the function being compiled. If this
  28785. macro is undefined, 'INIT_CUMULATIVE_ARGS' is used instead.
  28786. The value passed for LIBNAME is always 0, since library routines
  28787. with special calling conventions are never compiled with GCC. The
  28788. argument LIBNAME exists for symmetry with 'INIT_CUMULATIVE_ARGS'.
  28789. -- Target Hook: void TARGET_FUNCTION_ARG_ADVANCE (cumulative_args_t CA,
  28790. const function_arg_info &ARG)
  28791. This hook updates the summarizer variable pointed to by CA to
  28792. advance past argument ARG in the argument list. Once this is done,
  28793. the variable CUM is suitable for analyzing the _following_ argument
  28794. with 'TARGET_FUNCTION_ARG', etc.
  28795. This hook need not do anything if the argument in question was
  28796. passed on the stack. The compiler knows how to track the amount of
  28797. stack space used for arguments without any special help.
  28798. -- Target Hook: HOST_WIDE_INT TARGET_FUNCTION_ARG_OFFSET (machine_mode
  28799. MODE, const_tree TYPE)
  28800. This hook returns the number of bytes to add to the offset of an
  28801. argument of type TYPE and mode MODE when passed in memory. This is
  28802. needed for the SPU, which passes 'char' and 'short' arguments in
  28803. the preferred slot that is in the middle of the quad word instead
  28804. of starting at the top. The default implementation returns 0.
  28805. -- Target Hook: pad_direction TARGET_FUNCTION_ARG_PADDING (machine_mode
  28806. MODE, const_tree TYPE)
  28807. This hook determines whether, and in which direction, to pad out an
  28808. argument of mode MODE and type TYPE. It returns 'PAD_UPWARD' to
  28809. insert padding above the argument, 'PAD_DOWNWARD' to insert padding
  28810. below the argument, or 'PAD_NONE' to inhibit padding.
  28811. The _amount_ of padding is not controlled by this hook, but by
  28812. 'TARGET_FUNCTION_ARG_ROUND_BOUNDARY'. It is always just enough to
  28813. reach the next multiple of that boundary.
  28814. This hook has a default definition that is right for most systems.
  28815. For little-endian machines, the default is to pad upward. For
  28816. big-endian machines, the default is to pad downward for an argument
  28817. of constant size shorter than an 'int', and upward otherwise.
  28818. -- Macro: PAD_VARARGS_DOWN
  28819. If defined, a C expression which determines whether the default
  28820. implementation of va_arg will attempt to pad down before reading
  28821. the next argument, if that argument is smaller than its aligned
  28822. space as controlled by 'PARM_BOUNDARY'. If this macro is not
  28823. defined, all such arguments are padded down if 'BYTES_BIG_ENDIAN'
  28824. is true.
  28825. -- Macro: BLOCK_REG_PADDING (MODE, TYPE, FIRST)
  28826. Specify padding for the last element of a block move between
  28827. registers and memory. FIRST is nonzero if this is the only
  28828. element. Defining this macro allows better control of register
  28829. function parameters on big-endian machines, without using
  28830. 'PARALLEL' rtl. In particular, 'MUST_PASS_IN_STACK' need not test
  28831. padding and mode of types in registers, as there is no longer a
  28832. "wrong" part of a register; For example, a three byte aggregate may
  28833. be passed in the high part of a register if so required.
  28834. -- Target Hook: unsigned int TARGET_FUNCTION_ARG_BOUNDARY (machine_mode
  28835. MODE, const_tree TYPE)
  28836. This hook returns the alignment boundary, in bits, of an argument
  28837. with the specified mode and type. The default hook returns
  28838. 'PARM_BOUNDARY' for all arguments.
  28839. -- Target Hook: unsigned int TARGET_FUNCTION_ARG_ROUND_BOUNDARY
  28840. (machine_mode MODE, const_tree TYPE)
  28841. Normally, the size of an argument is rounded up to 'PARM_BOUNDARY',
  28842. which is the default value for this hook. You can define this hook
  28843. to return a different value if an argument size must be rounded to
  28844. a larger value.
  28845. -- Macro: FUNCTION_ARG_REGNO_P (REGNO)
  28846. A C expression that is nonzero if REGNO is the number of a hard
  28847. register in which function arguments are sometimes passed. This
  28848. does _not_ include implicit arguments such as the static chain and
  28849. the structure-value address. On many machines, no registers can be
  28850. used for this purpose since all function arguments are pushed on
  28851. the stack.
  28852. -- Target Hook: bool TARGET_SPLIT_COMPLEX_ARG (const_tree TYPE)
  28853. This hook should return true if parameter of type TYPE are passed
  28854. as two scalar parameters. By default, GCC will attempt to pack
  28855. complex arguments into the target's word size. Some ABIs require
  28856. complex arguments to be split and treated as their individual
  28857. components. For example, on AIX64, complex floats should be passed
  28858. in a pair of floating point registers, even though a complex float
  28859. would fit in one 64-bit floating point register.
  28860. The default value of this hook is 'NULL', which is treated as
  28861. always false.
  28862. -- Target Hook: tree TARGET_BUILD_BUILTIN_VA_LIST (void)
  28863. This hook returns a type node for 'va_list' for the target. The
  28864. default version of the hook returns 'void*'.
  28865. -- Target Hook: int TARGET_ENUM_VA_LIST_P (int IDX, const char **PNAME,
  28866. tree *PTREE)
  28867. This target hook is used in function 'c_common_nodes_and_builtins'
  28868. to iterate through the target specific builtin types for va_list.
  28869. The variable IDX is used as iterator. PNAME has to be a pointer to
  28870. a 'const char *' and PTREE a pointer to a 'tree' typed variable.
  28871. The arguments PNAME and PTREE are used to store the result of this
  28872. macro and are set to the name of the va_list builtin type and its
  28873. internal type. If the return value of this macro is zero, then
  28874. there is no more element. Otherwise the IDX should be increased
  28875. for the next call of this macro to iterate through all types.
  28876. -- Target Hook: tree TARGET_FN_ABI_VA_LIST (tree FNDECL)
  28877. This hook returns the va_list type of the calling convention
  28878. specified by FNDECL. The default version of this hook returns
  28879. 'va_list_type_node'.
  28880. -- Target Hook: tree TARGET_CANONICAL_VA_LIST_TYPE (tree TYPE)
  28881. This hook returns the va_list type of the calling convention
  28882. specified by the type of TYPE. If TYPE is not a valid va_list
  28883. type, it returns 'NULL_TREE'.
  28884. -- Target Hook: tree TARGET_GIMPLIFY_VA_ARG_EXPR (tree VALIST, tree
  28885. TYPE, gimple_seq *PRE_P, gimple_seq *POST_P)
  28886. This hook performs target-specific gimplification of 'VA_ARG_EXPR'.
  28887. The first two parameters correspond to the arguments to 'va_arg';
  28888. the latter two are as in 'gimplify.c:gimplify_expr'.
  28889. -- Target Hook: bool TARGET_VALID_POINTER_MODE (scalar_int_mode MODE)
  28890. Define this to return nonzero if the port can handle pointers with
  28891. machine mode MODE. The default version of this hook returns true
  28892. for both 'ptr_mode' and 'Pmode'.
  28893. -- Target Hook: bool TARGET_REF_MAY_ALIAS_ERRNO (ao_ref *REF)
  28894. Define this to return nonzero if the memory reference REF may alias
  28895. with the system C library errno location. The default version of
  28896. this hook assumes the system C library errno location is either a
  28897. declaration of type int or accessed by dereferencing a pointer to
  28898. int.
  28899. -- Target Hook: machine_mode TARGET_TRANSLATE_MODE_ATTRIBUTE
  28900. (machine_mode MODE)
  28901. Define this hook if during mode attribute processing, the port
  28902. should translate machine_mode MODE to another mode. For example,
  28903. rs6000's 'KFmode', when it is the same as 'TFmode'.
  28904. The default version of the hook returns that mode that was passed
  28905. in.
  28906. -- Target Hook: bool TARGET_SCALAR_MODE_SUPPORTED_P (scalar_mode MODE)
  28907. Define this to return nonzero if the port is prepared to handle
  28908. insns involving scalar mode MODE. For a scalar mode to be
  28909. considered supported, all the basic arithmetic and comparisons must
  28910. work.
  28911. The default version of this hook returns true for any mode required
  28912. to handle the basic C types (as defined by the port). Included
  28913. here are the double-word arithmetic supported by the code in
  28914. 'optabs.c'.
  28915. -- Target Hook: bool TARGET_VECTOR_MODE_SUPPORTED_P (machine_mode MODE)
  28916. Define this to return nonzero if the port is prepared to handle
  28917. insns involving vector mode MODE. At the very least, it must have
  28918. move patterns for this mode.
  28919. -- Target Hook: bool TARGET_COMPATIBLE_VECTOR_TYPES_P (const_tree
  28920. TYPE1, const_tree TYPE2)
  28921. Return true if there is no target-specific reason for treating
  28922. vector types TYPE1 and TYPE2 as distinct types. The caller has
  28923. already checked for target-independent reasons, meaning that the
  28924. types are known to have the same mode, to have the same number of
  28925. elements, and to have what the caller considers to be compatible
  28926. element types.
  28927. The main reason for defining this hook is to reject pairs of types
  28928. that are handled differently by the target's calling convention.
  28929. For example, when a new N-bit vector architecture is added to a
  28930. target, the target may want to handle normal N-bit 'VECTOR_TYPE'
  28931. arguments and return values in the same way as before, to maintain
  28932. backwards compatibility. However, it may also provide new,
  28933. architecture-specific 'VECTOR_TYPE's that are passed and returned
  28934. in a more efficient way. It is then important to maintain a
  28935. distinction between the "normal" 'VECTOR_TYPE's and the new
  28936. architecture-specific ones.
  28937. The default implementation returns true, which is correct for most
  28938. targets.
  28939. -- Target Hook: opt_machine_mode TARGET_ARRAY_MODE (machine_mode MODE,
  28940. unsigned HOST_WIDE_INT NELEMS)
  28941. Return the mode that GCC should use for an array that has NELEMS
  28942. elements, with each element having mode MODE. Return no mode if
  28943. the target has no special requirements. In the latter case, GCC
  28944. looks for an integer mode of the appropriate size if available and
  28945. uses BLKmode otherwise. Usually the search for the integer mode is
  28946. limited to 'MAX_FIXED_MODE_SIZE', but the
  28947. 'TARGET_ARRAY_MODE_SUPPORTED_P' hook allows a larger mode to be
  28948. used in specific cases.
  28949. The main use of this hook is to specify that an array of vectors
  28950. should also have a vector mode. The default implementation returns
  28951. no mode.
  28952. -- Target Hook: bool TARGET_ARRAY_MODE_SUPPORTED_P (machine_mode MODE,
  28953. unsigned HOST_WIDE_INT NELEMS)
  28954. Return true if GCC should try to use a scalar mode to store an
  28955. array of NELEMS elements, given that each element has mode MODE.
  28956. Returning true here overrides the usual 'MAX_FIXED_MODE' limit and
  28957. allows GCC to use any defined integer mode.
  28958. One use of this hook is to support vector load and store operations
  28959. that operate on several homogeneous vectors. For example, ARM NEON
  28960. has operations like:
  28961. int8x8x3_t vld3_s8 (const int8_t *)
  28962. where the return type is defined as:
  28963. typedef struct int8x8x3_t
  28964. {
  28965. int8x8_t val[3];
  28966. } int8x8x3_t;
  28967. If this hook allows 'val' to have a scalar mode, then 'int8x8x3_t'
  28968. can have the same mode. GCC can then store 'int8x8x3_t's in
  28969. registers rather than forcing them onto the stack.
  28970. -- Target Hook: bool TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P
  28971. (scalar_float_mode MODE)
  28972. Define this to return nonzero if libgcc provides support for the
  28973. floating-point mode MODE, which is known to pass
  28974. 'TARGET_SCALAR_MODE_SUPPORTED_P'. The default version of this hook
  28975. returns true for all of 'SFmode', 'DFmode', 'XFmode' and 'TFmode',
  28976. if such modes exist.
  28977. -- Target Hook: opt_scalar_float_mode TARGET_FLOATN_MODE (int N, bool
  28978. EXTENDED)
  28979. Define this to return the machine mode to use for the type
  28980. '_FloatN', if EXTENDED is false, or the type '_FloatNx', if
  28981. EXTENDED is true. If such a type is not supported, return
  28982. 'opt_scalar_float_mode ()'. The default version of this hook
  28983. returns 'SFmode' for '_Float32', 'DFmode' for '_Float64' and
  28984. '_Float32x' and 'TFmode' for '_Float128', if those modes exist and
  28985. satisfy the requirements for those types and pass
  28986. 'TARGET_SCALAR_MODE_SUPPORTED_P' and
  28987. 'TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P'; for '_Float64x', it
  28988. returns the first of 'XFmode' and 'TFmode' that exists and
  28989. satisfies the same requirements; for other types, it returns
  28990. 'opt_scalar_float_mode ()'. The hook is only called for values of
  28991. N and EXTENDED that are valid according to ISO/IEC TS 18661-3:2015;
  28992. that is, N is one of 32, 64, 128, or, if EXTENDED is false, 16 or
  28993. greater than 128 and a multiple of 32.
  28994. -- Target Hook: bool TARGET_FLOATN_BUILTIN_P (int FUNC)
  28995. Define this to return true if the '_FloatN' and '_FloatNx' built-in
  28996. functions should implicitly enable the built-in function without
  28997. the '__builtin_' prefix in addition to the normal built-in function
  28998. with the '__builtin_' prefix. The default is to only enable
  28999. built-in functions without the '__builtin_' prefix for the GNU C
  29000. langauge. In strict ANSI/ISO mode, the built-in function without
  29001. the '__builtin_' prefix is not enabled. The argument 'FUNC' is the
  29002. 'enum built_in_function' id of the function to be enabled.
  29003. -- Target Hook: bool TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P
  29004. (machine_mode MODE)
  29005. Define this to return nonzero for machine modes for which the port
  29006. has small register classes. If this target hook returns nonzero
  29007. for a given MODE, the compiler will try to minimize the lifetime of
  29008. registers in MODE. The hook may be called with 'VOIDmode' as
  29009. argument. In this case, the hook is expected to return nonzero if
  29010. it returns nonzero for any mode.
  29011. On some machines, it is risky to let hard registers live across
  29012. arbitrary insns. Typically, these machines have instructions that
  29013. require values to be in specific registers (like an accumulator),
  29014. and reload will fail if the required hard register is used for
  29015. another purpose across such an insn.
  29016. Passes before reload do not know which hard registers will be used
  29017. in an instruction, but the machine modes of the registers set or
  29018. used in the instruction are already known. And for some machines,
  29019. register classes are small for, say, integer registers but not for
  29020. floating point registers. For example, the AMD x86-64 architecture
  29021. requires specific registers for the legacy x86 integer
  29022. instructions, but there are many SSE registers for floating point
  29023. operations. On such targets, a good strategy may be to return
  29024. nonzero from this hook for 'INTEGRAL_MODE_P' machine modes but zero
  29025. for the SSE register classes.
  29026. The default version of this hook returns false for any mode. It is
  29027. always safe to redefine this hook to return with a nonzero value.
  29028. But if you unnecessarily define it, you will reduce the amount of
  29029. optimizations that can be performed in some cases. If you do not
  29030. define this hook to return a nonzero value when it is required, the
  29031. compiler will run out of spill registers and print a fatal error
  29032. message.
  29033. 
  29034. File: gccint.info, Node: Scalar Return, Next: Aggregate Return, Prev: Register Arguments, Up: Stack and Calling
  29035. 18.9.8 How Scalar Function Values Are Returned
  29036. ----------------------------------------------
  29037. This section discusses the macros that control returning scalars as
  29038. values--values that can fit in registers.
  29039. -- Target Hook: rtx TARGET_FUNCTION_VALUE (const_tree RET_TYPE,
  29040. const_tree FN_DECL_OR_TYPE, bool OUTGOING)
  29041. Define this to return an RTX representing the place where a
  29042. function returns or receives a value of data type RET_TYPE, a tree
  29043. node representing a data type. FN_DECL_OR_TYPE is a tree node
  29044. representing 'FUNCTION_DECL' or 'FUNCTION_TYPE' of a function being
  29045. called. If OUTGOING is false, the hook should compute the register
  29046. in which the caller will see the return value. Otherwise, the hook
  29047. should return an RTX representing the place where a function
  29048. returns a value.
  29049. On many machines, only 'TYPE_MODE (RET_TYPE)' is relevant.
  29050. (Actually, on most machines, scalar values are returned in the same
  29051. place regardless of mode.) The value of the expression is usually
  29052. a 'reg' RTX for the hard register where the return value is stored.
  29053. The value can also be a 'parallel' RTX, if the return value is in
  29054. multiple places. See 'TARGET_FUNCTION_ARG' for an explanation of
  29055. the 'parallel' form. Note that the callee will populate every
  29056. location specified in the 'parallel', but if the first element of
  29057. the 'parallel' contains the whole return value, callers will use
  29058. that element as the canonical location and ignore the others. The
  29059. m68k port uses this type of 'parallel' to return pointers in both
  29060. '%a0' (the canonical location) and '%d0'.
  29061. If 'TARGET_PROMOTE_FUNCTION_RETURN' returns true, you must apply
  29062. the same promotion rules specified in 'PROMOTE_MODE' if VALTYPE is
  29063. a scalar type.
  29064. If the precise function being called is known, FUNC is a tree node
  29065. ('FUNCTION_DECL') for it; otherwise, FUNC is a null pointer. This
  29066. makes it possible to use a different value-returning convention for
  29067. specific functions when all their calls are known.
  29068. Some target machines have "register windows" so that the register
  29069. in which a function returns its value is not the same as the one in
  29070. which the caller sees the value. For such machines, you should
  29071. return different RTX depending on OUTGOING.
  29072. 'TARGET_FUNCTION_VALUE' is not used for return values with
  29073. aggregate data types, because these are returned in another way.
  29074. See 'TARGET_STRUCT_VALUE_RTX' and related macros, below.
  29075. -- Macro: FUNCTION_VALUE (VALTYPE, FUNC)
  29076. This macro has been deprecated. Use 'TARGET_FUNCTION_VALUE' for a
  29077. new target instead.
  29078. -- Macro: LIBCALL_VALUE (MODE)
  29079. A C expression to create an RTX representing the place where a
  29080. library function returns a value of mode MODE.
  29081. Note that "library function" in this context means a compiler
  29082. support routine, used to perform arithmetic, whose name is known
  29083. specially by the compiler and was not mentioned in the C code being
  29084. compiled.
  29085. -- Target Hook: rtx TARGET_LIBCALL_VALUE (machine_mode MODE, const_rtx
  29086. FUN)
  29087. Define this hook if the back-end needs to know the name of the
  29088. libcall function in order to determine where the result should be
  29089. returned.
  29090. The mode of the result is given by MODE and the name of the called
  29091. library function is given by FUN. The hook should return an RTX
  29092. representing the place where the library function result will be
  29093. returned.
  29094. If this hook is not defined, then LIBCALL_VALUE will be used.
  29095. -- Macro: FUNCTION_VALUE_REGNO_P (REGNO)
  29096. A C expression that is nonzero if REGNO is the number of a hard
  29097. register in which the values of called function may come back.
  29098. A register whose use for returning values is limited to serving as
  29099. the second of a pair (for a value of type 'double', say) need not
  29100. be recognized by this macro. So for most machines, this definition
  29101. suffices:
  29102. #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
  29103. If the machine has register windows, so that the caller and the
  29104. called function use different registers for the return value, this
  29105. macro should recognize only the caller's register numbers.
  29106. This macro has been deprecated. Use
  29107. 'TARGET_FUNCTION_VALUE_REGNO_P' for a new target instead.
  29108. -- Target Hook: bool TARGET_FUNCTION_VALUE_REGNO_P (const unsigned int
  29109. REGNO)
  29110. A target hook that return 'true' if REGNO is the number of a hard
  29111. register in which the values of called function may come back.
  29112. A register whose use for returning values is limited to serving as
  29113. the second of a pair (for a value of type 'double', say) need not
  29114. be recognized by this target hook.
  29115. If the machine has register windows, so that the caller and the
  29116. called function use different registers for the return value, this
  29117. target hook should recognize only the caller's register numbers.
  29118. If this hook is not defined, then FUNCTION_VALUE_REGNO_P will be
  29119. used.
  29120. -- Macro: APPLY_RESULT_SIZE
  29121. Define this macro if 'untyped_call' and 'untyped_return' need more
  29122. space than is implied by 'FUNCTION_VALUE_REGNO_P' for saving and
  29123. restoring an arbitrary return value.
  29124. -- Target Hook: bool TARGET_OMIT_STRUCT_RETURN_REG
  29125. Normally, when a function returns a structure by memory, the
  29126. address is passed as an invisible pointer argument, but the
  29127. compiler also arranges to return the address from the function like
  29128. it would a normal pointer return value. Define this to true if
  29129. that behavior is undesirable on your target.
  29130. -- Target Hook: bool TARGET_RETURN_IN_MSB (const_tree TYPE)
  29131. This hook should return true if values of type TYPE are returned at
  29132. the most significant end of a register (in other words, if they are
  29133. padded at the least significant end). You can assume that TYPE is
  29134. returned in a register; the caller is required to check this.
  29135. Note that the register provided by 'TARGET_FUNCTION_VALUE' must be
  29136. able to hold the complete return value. For example, if a 1-, 2-
  29137. or 3-byte structure is returned at the most significant end of a
  29138. 4-byte register, 'TARGET_FUNCTION_VALUE' should provide an 'SImode'
  29139. rtx.
  29140. 
  29141. File: gccint.info, Node: Aggregate Return, Next: Caller Saves, Prev: Scalar Return, Up: Stack and Calling
  29142. 18.9.9 How Large Values Are Returned
  29143. ------------------------------------
  29144. When a function value's mode is 'BLKmode' (and in some other cases), the
  29145. value is not returned according to 'TARGET_FUNCTION_VALUE' (*note Scalar
  29146. Return::). Instead, the caller passes the address of a block of memory
  29147. in which the value should be stored. This address is called the
  29148. "structure value address".
  29149. This section describes how to control returning structure values in
  29150. memory.
  29151. -- Target Hook: bool TARGET_RETURN_IN_MEMORY (const_tree TYPE,
  29152. const_tree FNTYPE)
  29153. This target hook should return a nonzero value to say to return the
  29154. function value in memory, just as large structures are always
  29155. returned. Here TYPE will be the data type of the value, and FNTYPE
  29156. will be the type of the function doing the returning, or 'NULL' for
  29157. libcalls.
  29158. Note that values of mode 'BLKmode' must be explicitly handled by
  29159. this function. Also, the option '-fpcc-struct-return' takes effect
  29160. regardless of this macro. On most systems, it is possible to leave
  29161. the hook undefined; this causes a default definition to be used,
  29162. whose value is the constant 1 for 'BLKmode' values, and 0
  29163. otherwise.
  29164. Do not use this hook to indicate that structures and unions should
  29165. always be returned in memory. You should instead use
  29166. 'DEFAULT_PCC_STRUCT_RETURN' to indicate this.
  29167. -- Macro: DEFAULT_PCC_STRUCT_RETURN
  29168. Define this macro to be 1 if all structure and union return values
  29169. must be in memory. Since this results in slower code, this should
  29170. be defined only if needed for compatibility with other compilers or
  29171. with an ABI. If you define this macro to be 0, then the
  29172. conventions used for structure and union return values are decided
  29173. by the 'TARGET_RETURN_IN_MEMORY' target hook.
  29174. If not defined, this defaults to the value 1.
  29175. -- Target Hook: rtx TARGET_STRUCT_VALUE_RTX (tree FNDECL, int INCOMING)
  29176. This target hook should return the location of the structure value
  29177. address (normally a 'mem' or 'reg'), or 0 if the address is passed
  29178. as an "invisible" first argument. Note that FNDECL may be 'NULL',
  29179. for libcalls. You do not need to define this target hook if the
  29180. address is always passed as an "invisible" first argument.
  29181. On some architectures the place where the structure value address
  29182. is found by the called function is not the same place that the
  29183. caller put it. This can be due to register windows, or it could be
  29184. because the function prologue moves it to a different place.
  29185. INCOMING is '1' or '2' when the location is needed in the context
  29186. of the called function, and '0' in the context of the caller.
  29187. If INCOMING is nonzero and the address is to be found on the stack,
  29188. return a 'mem' which refers to the frame pointer. If INCOMING is
  29189. '2', the result is being used to fetch the structure value address
  29190. at the beginning of a function. If you need to emit adjusting
  29191. code, you should do it at this point.
  29192. -- Macro: PCC_STATIC_STRUCT_RETURN
  29193. Define this macro if the usual system convention on the target
  29194. machine for returning structures and unions is for the called
  29195. function to return the address of a static variable containing the
  29196. value.
  29197. Do not define this if the usual system convention is for the caller
  29198. to pass an address to the subroutine.
  29199. This macro has effect in '-fpcc-struct-return' mode, but it does
  29200. nothing when you use '-freg-struct-return' mode.
  29201. -- Target Hook: fixed_size_mode TARGET_GET_RAW_RESULT_MODE (int REGNO)
  29202. This target hook returns the mode to be used when accessing raw
  29203. return registers in '__builtin_return'. Define this macro if the
  29204. value in REG_RAW_MODE is not correct.
  29205. -- Target Hook: fixed_size_mode TARGET_GET_RAW_ARG_MODE (int REGNO)
  29206. This target hook returns the mode to be used when accessing raw
  29207. argument registers in '__builtin_apply_args'. Define this macro if
  29208. the value in REG_RAW_MODE is not correct.
  29209. -- Target Hook: bool TARGET_EMPTY_RECORD_P (const_tree TYPE)
  29210. This target hook returns true if the type is an empty record. The
  29211. default is to return 'false'.
  29212. -- Target Hook: void TARGET_WARN_PARAMETER_PASSING_ABI
  29213. (cumulative_args_t CA, tree TYPE)
  29214. This target hook warns about the change in empty class parameter
  29215. passing ABI.
  29216. 
  29217. File: gccint.info, Node: Caller Saves, Next: Function Entry, Prev: Aggregate Return, Up: Stack and Calling
  29218. 18.9.10 Caller-Saves Register Allocation
  29219. ----------------------------------------
  29220. If you enable it, GCC can save registers around function calls. This
  29221. makes it possible to use call-clobbered registers to hold variables that
  29222. must live across calls.
  29223. -- Macro: HARD_REGNO_CALLER_SAVE_MODE (REGNO, NREGS)
  29224. A C expression specifying which mode is required for saving NREGS
  29225. of a pseudo-register in call-clobbered hard register REGNO. If
  29226. REGNO is unsuitable for caller save, 'VOIDmode' should be returned.
  29227. For most machines this macro need not be defined since GCC will
  29228. select the smallest suitable mode.
  29229. 
  29230. File: gccint.info, Node: Function Entry, Next: Profiling, Prev: Caller Saves, Up: Stack and Calling
  29231. 18.9.11 Function Entry and Exit
  29232. -------------------------------
  29233. This section describes the macros that output function entry
  29234. ("prologue") and exit ("epilogue") code.
  29235. -- Target Hook: void TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY (FILE
  29236. *FILE, unsigned HOST_WIDE_INT PATCH_AREA_SIZE, bool RECORD_P)
  29237. Generate a patchable area at the function start, consisting of
  29238. PATCH_AREA_SIZE NOP instructions. If the target supports named
  29239. sections and if RECORD_P is true, insert a pointer to the current
  29240. location in the table of patchable functions. The default
  29241. implementation of the hook places the table of pointers in the
  29242. special section named '__patchable_function_entries'.
  29243. -- Target Hook: void TARGET_ASM_FUNCTION_PROLOGUE (FILE *FILE)
  29244. If defined, a function that outputs the assembler code for entry to
  29245. a function. The prologue is responsible for setting up the stack
  29246. frame, initializing the frame pointer register, saving registers
  29247. that must be saved, and allocating SIZE additional bytes of storage
  29248. for the local variables. FILE is a stdio stream to which the
  29249. assembler code should be output.
  29250. The label for the beginning of the function need not be output by
  29251. this macro. That has already been done when the macro is run.
  29252. To determine which registers to save, the macro can refer to the
  29253. array 'regs_ever_live': element R is nonzero if hard register R is
  29254. used anywhere within the function. This implies the function
  29255. prologue should save register R, provided it is not one of the
  29256. call-used registers. ('TARGET_ASM_FUNCTION_EPILOGUE' must likewise
  29257. use 'regs_ever_live'.)
  29258. On machines that have "register windows", the function entry code
  29259. does not save on the stack the registers that are in the windows,
  29260. even if they are supposed to be preserved by function calls;
  29261. instead it takes appropriate steps to "push" the register stack, if
  29262. any non-call-used registers are used in the function.
  29263. On machines where functions may or may not have frame-pointers, the
  29264. function entry code must vary accordingly; it must set up the frame
  29265. pointer if one is wanted, and not otherwise. To determine whether
  29266. a frame pointer is in wanted, the macro can refer to the variable
  29267. 'frame_pointer_needed'. The variable's value will be 1 at run time
  29268. in a function that needs a frame pointer. *Note Elimination::.
  29269. The function entry code is responsible for allocating any stack
  29270. space required for the function. This stack space consists of the
  29271. regions listed below. In most cases, these regions are allocated
  29272. in the order listed, with the last listed region closest to the top
  29273. of the stack (the lowest address if 'STACK_GROWS_DOWNWARD' is
  29274. defined, and the highest address if it is not defined). You can
  29275. use a different order for a machine if doing so is more convenient
  29276. or required for compatibility reasons. Except in cases where
  29277. required by standard or by a debugger, there is no reason why the
  29278. stack layout used by GCC need agree with that used by other
  29279. compilers for a machine.
  29280. -- Target Hook: void TARGET_ASM_FUNCTION_END_PROLOGUE (FILE *FILE)
  29281. If defined, a function that outputs assembler code at the end of a
  29282. prologue. This should be used when the function prologue is being
  29283. emitted as RTL, and you have some extra assembler that needs to be
  29284. emitted. *Note prologue instruction pattern::.
  29285. -- Target Hook: void TARGET_ASM_FUNCTION_BEGIN_EPILOGUE (FILE *FILE)
  29286. If defined, a function that outputs assembler code at the start of
  29287. an epilogue. This should be used when the function epilogue is
  29288. being emitted as RTL, and you have some extra assembler that needs
  29289. to be emitted. *Note epilogue instruction pattern::.
  29290. -- Target Hook: void TARGET_ASM_FUNCTION_EPILOGUE (FILE *FILE)
  29291. If defined, a function that outputs the assembler code for exit
  29292. from a function. The epilogue is responsible for restoring the
  29293. saved registers and stack pointer to their values when the function
  29294. was called, and returning control to the caller. This macro takes
  29295. the same argument as the macro 'TARGET_ASM_FUNCTION_PROLOGUE', and
  29296. the registers to restore are determined from 'regs_ever_live' and
  29297. 'CALL_USED_REGISTERS' in the same way.
  29298. On some machines, there is a single instruction that does all the
  29299. work of returning from the function. On these machines, give that
  29300. instruction the name 'return' and do not define the macro
  29301. 'TARGET_ASM_FUNCTION_EPILOGUE' at all.
  29302. Do not define a pattern named 'return' if you want the
  29303. 'TARGET_ASM_FUNCTION_EPILOGUE' to be used. If you want the target
  29304. switches to control whether return instructions or epilogues are
  29305. used, define a 'return' pattern with a validity condition that
  29306. tests the target switches appropriately. If the 'return' pattern's
  29307. validity condition is false, epilogues will be used.
  29308. On machines where functions may or may not have frame-pointers, the
  29309. function exit code must vary accordingly. Sometimes the code for
  29310. these two cases is completely different. To determine whether a
  29311. frame pointer is wanted, the macro can refer to the variable
  29312. 'frame_pointer_needed'. The variable's value will be 1 when
  29313. compiling a function that needs a frame pointer.
  29314. Normally, 'TARGET_ASM_FUNCTION_PROLOGUE' and
  29315. 'TARGET_ASM_FUNCTION_EPILOGUE' must treat leaf functions specially.
  29316. The C variable 'current_function_is_leaf' is nonzero for such a
  29317. function. *Note Leaf Functions::.
  29318. On some machines, some functions pop their arguments on exit while
  29319. others leave that for the caller to do. For example, the 68020
  29320. when given '-mrtd' pops arguments in functions that take a fixed
  29321. number of arguments.
  29322. Your definition of the macro 'RETURN_POPS_ARGS' decides which
  29323. functions pop their own arguments. 'TARGET_ASM_FUNCTION_EPILOGUE'
  29324. needs to know what was decided. The number of bytes of the current
  29325. function's arguments that this function should pop is available in
  29326. 'crtl->args.pops_args'. *Note Scalar Return::.
  29327. * A region of 'crtl->args.pretend_args_size' bytes of uninitialized
  29328. space just underneath the first argument arriving on the stack.
  29329. (This may not be at the very start of the allocated stack region if
  29330. the calling sequence has pushed anything else since pushing the
  29331. stack arguments. But usually, on such machines, nothing else has
  29332. been pushed yet, because the function prologue itself does all the
  29333. pushing.) This region is used on machines where an argument may be
  29334. passed partly in registers and partly in memory, and, in some cases
  29335. to support the features in '<stdarg.h>'.
  29336. * An area of memory used to save certain registers used by the
  29337. function. The size of this area, which may also include space for
  29338. such things as the return address and pointers to previous stack
  29339. frames, is machine-specific and usually depends on which registers
  29340. have been used in the function. Machines with register windows
  29341. often do not require a save area.
  29342. * A region of at least SIZE bytes, possibly rounded up to an
  29343. allocation boundary, to contain the local variables of the
  29344. function. On some machines, this region and the save area may
  29345. occur in the opposite order, with the save area closer to the top
  29346. of the stack.
  29347. * Optionally, when 'ACCUMULATE_OUTGOING_ARGS' is defined, a region of
  29348. 'crtl->outgoing_args_size' bytes to be used for outgoing argument
  29349. lists of the function. *Note Stack Arguments::.
  29350. -- Macro: EXIT_IGNORE_STACK
  29351. Define this macro as a C expression that is nonzero if the return
  29352. instruction or the function epilogue ignores the value of the stack
  29353. pointer; in other words, if it is safe to delete an instruction to
  29354. adjust the stack pointer before a return from the function. The
  29355. default is 0.
  29356. Note that this macro's value is relevant only for functions for
  29357. which frame pointers are maintained. It is never safe to delete a
  29358. final stack adjustment in a function that has no frame pointer, and
  29359. the compiler knows this regardless of 'EXIT_IGNORE_STACK'.
  29360. -- Macro: EPILOGUE_USES (REGNO)
  29361. Define this macro as a C expression that is nonzero for registers
  29362. that are used by the epilogue or the 'return' pattern. The stack
  29363. and frame pointer registers are already assumed to be used as
  29364. needed.
  29365. -- Macro: EH_USES (REGNO)
  29366. Define this macro as a C expression that is nonzero for registers
  29367. that are used by the exception handling mechanism, and so should be
  29368. considered live on entry to an exception edge.
  29369. -- Target Hook: void TARGET_ASM_OUTPUT_MI_THUNK (FILE *FILE, tree
  29370. THUNK_FNDECL, HOST_WIDE_INT DELTA, HOST_WIDE_INT VCALL_OFFSET,
  29371. tree FUNCTION)
  29372. A function that outputs the assembler code for a thunk function,
  29373. used to implement C++ virtual function calls with multiple
  29374. inheritance. The thunk acts as a wrapper around a virtual
  29375. function, adjusting the implicit object parameter before handing
  29376. control off to the real function.
  29377. First, emit code to add the integer DELTA to the location that
  29378. contains the incoming first argument. Assume that this argument
  29379. contains a pointer, and is the one used to pass the 'this' pointer
  29380. in C++. This is the incoming argument _before_ the function
  29381. prologue, e.g. '%o0' on a sparc. The addition must preserve the
  29382. values of all other incoming arguments.
  29383. Then, if VCALL_OFFSET is nonzero, an additional adjustment should
  29384. be made after adding 'delta'. In particular, if P is the adjusted
  29385. pointer, the following adjustment should be made:
  29386. p += (*((ptrdiff_t **)p))[vcall_offset/sizeof(ptrdiff_t)]
  29387. After the additions, emit code to jump to FUNCTION, which is a
  29388. 'FUNCTION_DECL'. This is a direct pure jump, not a call, and does
  29389. not touch the return address. Hence returning from FUNCTION will
  29390. return to whoever called the current 'thunk'.
  29391. The effect must be as if FUNCTION had been called directly with the
  29392. adjusted first argument. This macro is responsible for emitting
  29393. all of the code for a thunk function;
  29394. 'TARGET_ASM_FUNCTION_PROLOGUE' and 'TARGET_ASM_FUNCTION_EPILOGUE'
  29395. are not invoked.
  29396. The THUNK_FNDECL is redundant. (DELTA and FUNCTION have already
  29397. been extracted from it.) It might possibly be useful on some
  29398. targets, but probably not.
  29399. If you do not define this macro, the target-independent code in the
  29400. C++ front end will generate a less efficient heavyweight thunk that
  29401. calls FUNCTION instead of jumping to it. The generic approach does
  29402. not support varargs.
  29403. -- Target Hook: bool TARGET_ASM_CAN_OUTPUT_MI_THUNK (const_tree
  29404. THUNK_FNDECL, HOST_WIDE_INT DELTA, HOST_WIDE_INT VCALL_OFFSET,
  29405. const_tree FUNCTION)
  29406. A function that returns true if TARGET_ASM_OUTPUT_MI_THUNK would be
  29407. able to output the assembler code for the thunk function specified
  29408. by the arguments it is passed, and false otherwise. In the latter
  29409. case, the generic approach will be used by the C++ front end, with
  29410. the limitations previously exposed.
  29411. 
  29412. File: gccint.info, Node: Profiling, Next: Tail Calls, Prev: Function Entry, Up: Stack and Calling
  29413. 18.9.12 Generating Code for Profiling
  29414. -------------------------------------
  29415. These macros will help you generate code for profiling.
  29416. -- Macro: FUNCTION_PROFILER (FILE, LABELNO)
  29417. A C statement or compound statement to output to FILE some
  29418. assembler code to call the profiling subroutine 'mcount'.
  29419. The details of how 'mcount' expects to be called are determined by
  29420. your operating system environment, not by GCC. To figure them out,
  29421. compile a small program for profiling using the system's installed
  29422. C compiler and look at the assembler code that results.
  29423. Older implementations of 'mcount' expect the address of a counter
  29424. variable to be loaded into some register. The name of this
  29425. variable is 'LP' followed by the number LABELNO, so you would
  29426. generate the name using 'LP%d' in a 'fprintf'.
  29427. -- Macro: PROFILE_HOOK
  29428. A C statement or compound statement to output to FILE some assembly
  29429. code to call the profiling subroutine 'mcount' even the target does
  29430. not support profiling.
  29431. -- Macro: NO_PROFILE_COUNTERS
  29432. Define this macro to be an expression with a nonzero value if the
  29433. 'mcount' subroutine on your system does not need a counter variable
  29434. allocated for each function. This is true for almost all modern
  29435. implementations. If you define this macro, you must not use the
  29436. LABELNO argument to 'FUNCTION_PROFILER'.
  29437. -- Macro: PROFILE_BEFORE_PROLOGUE
  29438. Define this macro if the code for function profiling should come
  29439. before the function prologue. Normally, the profiling code comes
  29440. after.
  29441. -- Target Hook: bool TARGET_KEEP_LEAF_WHEN_PROFILED (void)
  29442. This target hook returns true if the target wants the leaf flag for
  29443. the current function to stay true even if it calls mcount. This
  29444. might make sense for targets using the leaf flag only to determine
  29445. whether a stack frame needs to be generated or not and for which
  29446. the call to mcount is generated before the function prologue.
  29447. 
  29448. File: gccint.info, Node: Tail Calls, Next: Shrink-wrapping separate components, Prev: Profiling, Up: Stack and Calling
  29449. 18.9.13 Permitting tail calls
  29450. -----------------------------
  29451. -- Target Hook: bool TARGET_FUNCTION_OK_FOR_SIBCALL (tree DECL, tree
  29452. EXP)
  29453. True if it is OK to do sibling call optimization for the specified
  29454. call expression EXP. DECL will be the called function, or 'NULL'
  29455. if this is an indirect call.
  29456. It is not uncommon for limitations of calling conventions to
  29457. prevent tail calls to functions outside the current unit of
  29458. translation, or during PIC compilation. The hook is used to
  29459. enforce these restrictions, as the 'sibcall' md pattern cannot
  29460. fail, or fall over to a "normal" call. The criteria for successful
  29461. sibling call optimization may vary greatly between different
  29462. architectures.
  29463. -- Target Hook: void TARGET_EXTRA_LIVE_ON_ENTRY (bitmap REGS)
  29464. Add any hard registers to REGS that are live on entry to the
  29465. function. This hook only needs to be defined to provide registers
  29466. that cannot be found by examination of FUNCTION_ARG_REGNO_P, the
  29467. callee saved registers, STATIC_CHAIN_INCOMING_REGNUM,
  29468. STATIC_CHAIN_REGNUM, TARGET_STRUCT_VALUE_RTX, FRAME_POINTER_REGNUM,
  29469. EH_USES, FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and the
  29470. PIC_OFFSET_TABLE_REGNUM.
  29471. -- Target Hook: void TARGET_SET_UP_BY_PROLOGUE (struct
  29472. hard_reg_set_container *)
  29473. This hook should add additional registers that are computed by the
  29474. prologue to the hard regset for shrink-wrapping optimization
  29475. purposes.
  29476. -- Target Hook: bool TARGET_WARN_FUNC_RETURN (tree)
  29477. True if a function's return statements should be checked for
  29478. matching the function's return type. This includes checking for
  29479. falling off the end of a non-void function. Return false if no
  29480. such check should be made.
  29481. 
  29482. File: gccint.info, Node: Shrink-wrapping separate components, Next: Stack Smashing Protection, Prev: Tail Calls, Up: Stack and Calling
  29483. 18.9.14 Shrink-wrapping separate components
  29484. -------------------------------------------
  29485. The prologue may perform a variety of target dependent tasks such as
  29486. saving callee-saved registers, saving the return address, aligning the
  29487. stack, creating a stack frame, initializing the PIC register, setting up
  29488. the static chain, etc.
  29489. On some targets some of these tasks may be independent of others and
  29490. thus may be shrink-wrapped separately. These independent tasks are
  29491. referred to as components and are handled generically by the target
  29492. independent parts of GCC.
  29493. Using the following hooks those prologue or epilogue components can be
  29494. shrink-wrapped separately, so that the initialization (and possibly
  29495. teardown) those components do is not done as frequently on execution
  29496. paths where this would unnecessary.
  29497. What exactly those components are is up to the target code; the generic
  29498. code treats them abstractly, as a bit in an 'sbitmap'. These 'sbitmap's
  29499. are allocated by the 'shrink_wrap.get_separate_components' and
  29500. 'shrink_wrap.components_for_bb' hooks, and deallocated by the generic
  29501. code.
  29502. -- Target Hook: sbitmap TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS
  29503. (void)
  29504. This hook should return an 'sbitmap' with the bits set for those
  29505. components that can be separately shrink-wrapped in the current
  29506. function. Return 'NULL' if the current function should not get any
  29507. separate shrink-wrapping. Don't define this hook if it would
  29508. always return 'NULL'. If it is defined, the other hooks in this
  29509. group have to be defined as well.
  29510. -- Target Hook: sbitmap TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB
  29511. (basic_block)
  29512. This hook should return an 'sbitmap' with the bits set for those
  29513. components where either the prologue component has to be executed
  29514. before the 'basic_block', or the epilogue component after it, or
  29515. both.
  29516. -- Target Hook: void TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS (sbitmap
  29517. COMPONENTS, edge E, sbitmap EDGE_COMPONENTS, bool IS_PROLOGUE)
  29518. This hook should clear the bits in the COMPONENTS bitmap for those
  29519. components in EDGE_COMPONENTS that the target cannot handle on edge
  29520. E, where IS_PROLOGUE says if this is for a prologue or an epilogue
  29521. instead.
  29522. -- Target Hook: void TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS
  29523. (sbitmap)
  29524. Emit prologue insns for the components indicated by the parameter.
  29525. -- Target Hook: void TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS
  29526. (sbitmap)
  29527. Emit epilogue insns for the components indicated by the parameter.
  29528. -- Target Hook: void TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS
  29529. (sbitmap)
  29530. Mark the components in the parameter as handled, so that the
  29531. 'prologue' and 'epilogue' named patterns know to ignore those
  29532. components. The target code should not hang on to the 'sbitmap',
  29533. it will be deleted after this call.
  29534. 
  29535. File: gccint.info, Node: Stack Smashing Protection, Next: Miscellaneous Register Hooks, Prev: Shrink-wrapping separate components, Up: Stack and Calling
  29536. 18.9.15 Stack smashing protection
  29537. ---------------------------------
  29538. -- Target Hook: tree TARGET_STACK_PROTECT_GUARD (void)
  29539. This hook returns a 'DECL' node for the external variable to use
  29540. for the stack protection guard. This variable is initialized by
  29541. the runtime to some random value and is used to initialize the
  29542. guard value that is placed at the top of the local stack frame.
  29543. The type of this variable must be 'ptr_type_node'.
  29544. The default version of this hook creates a variable called
  29545. '__stack_chk_guard', which is normally defined in 'libgcc2.c'.
  29546. -- Target Hook: tree TARGET_STACK_PROTECT_FAIL (void)
  29547. This hook returns a 'CALL_EXPR' that alerts the runtime that the
  29548. stack protect guard variable has been modified. This expression
  29549. should involve a call to a 'noreturn' function.
  29550. The default version of this hook invokes a function called
  29551. '__stack_chk_fail', taking no arguments. This function is normally
  29552. defined in 'libgcc2.c'.
  29553. -- Target Hook: bool TARGET_STACK_PROTECT_RUNTIME_ENABLED_P (void)
  29554. Returns true if the target wants GCC's default stack protect
  29555. runtime support, otherwise return false. The default
  29556. implementation always returns true.
  29557. -- Common Target Hook: bool TARGET_SUPPORTS_SPLIT_STACK (bool REPORT,
  29558. struct gcc_options *OPTS)
  29559. Whether this target supports splitting the stack when the options
  29560. described in OPTS have been passed. This is called after options
  29561. have been parsed, so the target may reject splitting the stack in
  29562. some configurations. The default version of this hook returns
  29563. false. If REPORT is true, this function may issue a warning or
  29564. error; if REPORT is false, it must simply return a value
  29565. -- Common Target Hook: vec<const char *> TARGET_GET_VALID_OPTION_VALUES
  29566. (int OPTION_CODE, const char *PREFIX)
  29567. The hook is used for options that have a non-trivial list of
  29568. possible option values. OPTION_CODE is option code of opt_code
  29569. enum type. PREFIX is used for bash completion and allows an
  29570. implementation to return more specific completion based on the
  29571. prefix. All string values should be allocated from heap memory and
  29572. consumers should release them. The result will be pruned to cases
  29573. with PREFIX if not NULL.
  29574. 
  29575. File: gccint.info, Node: Miscellaneous Register Hooks, Prev: Stack Smashing Protection, Up: Stack and Calling
  29576. 18.9.16 Miscellaneous register hooks
  29577. ------------------------------------
  29578. -- Target Hook: bool TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS
  29579. Set to true if each call that binds to a local definition
  29580. explicitly clobbers or sets all non-fixed registers modified by
  29581. performing the call. That is, by the call pattern itself, or by
  29582. code that might be inserted by the linker (e.g. stubs, veneers,
  29583. branch islands), but not including those modifiable by the callee.
  29584. The affected registers may be mentioned explicitly in the call
  29585. pattern, or included as clobbers in CALL_INSN_FUNCTION_USAGE. The
  29586. default version of this hook is set to false. The purpose of this
  29587. hook is to enable the fipa-ra optimization.
  29588. 
  29589. File: gccint.info, Node: Varargs, Next: Trampolines, Prev: Stack and Calling, Up: Target Macros
  29590. 18.10 Implementing the Varargs Macros
  29591. =====================================
  29592. GCC comes with an implementation of '<varargs.h>' and '<stdarg.h>' that
  29593. work without change on machines that pass arguments on the stack. Other
  29594. machines require their own implementations of varargs, and the two
  29595. machine independent header files must have conditionals to include it.
  29596. ISO '<stdarg.h>' differs from traditional '<varargs.h>' mainly in the
  29597. calling convention for 'va_start'. The traditional implementation takes
  29598. just one argument, which is the variable in which to store the argument
  29599. pointer. The ISO implementation of 'va_start' takes an additional
  29600. second argument. The user is supposed to write the last named argument
  29601. of the function here.
  29602. However, 'va_start' should not use this argument. The way to find the
  29603. end of the named arguments is with the built-in functions described
  29604. below.
  29605. -- Macro: __builtin_saveregs ()
  29606. Use this built-in function to save the argument registers in memory
  29607. so that the varargs mechanism can access them. Both ISO and
  29608. traditional versions of 'va_start' must use '__builtin_saveregs',
  29609. unless you use 'TARGET_SETUP_INCOMING_VARARGS' (see below) instead.
  29610. On some machines, '__builtin_saveregs' is open-coded under the
  29611. control of the target hook 'TARGET_EXPAND_BUILTIN_SAVEREGS'. On
  29612. other machines, it calls a routine written in assembler language,
  29613. found in 'libgcc2.c'.
  29614. Code generated for the call to '__builtin_saveregs' appears at the
  29615. beginning of the function, as opposed to where the call to
  29616. '__builtin_saveregs' is written, regardless of what the code is.
  29617. This is because the registers must be saved before the function
  29618. starts to use them for its own purposes.
  29619. -- Macro: __builtin_next_arg (LASTARG)
  29620. This builtin returns the address of the first anonymous stack
  29621. argument, as type 'void *'. If 'ARGS_GROW_DOWNWARD', it returns
  29622. the address of the location above the first anonymous stack
  29623. argument. Use it in 'va_start' to initialize the pointer for
  29624. fetching arguments from the stack. Also use it in 'va_start' to
  29625. verify that the second parameter LASTARG is the last named argument
  29626. of the current function.
  29627. -- Macro: __builtin_classify_type (OBJECT)
  29628. Since each machine has its own conventions for which data types are
  29629. passed in which kind of register, your implementation of 'va_arg'
  29630. has to embody these conventions. The easiest way to categorize the
  29631. specified data type is to use '__builtin_classify_type' together
  29632. with 'sizeof' and '__alignof__'.
  29633. '__builtin_classify_type' ignores the value of OBJECT, considering
  29634. only its data type. It returns an integer describing what kind of
  29635. type that is--integer, floating, pointer, structure, and so on.
  29636. The file 'typeclass.h' defines an enumeration that you can use to
  29637. interpret the values of '__builtin_classify_type'.
  29638. These machine description macros help implement varargs:
  29639. -- Target Hook: rtx TARGET_EXPAND_BUILTIN_SAVEREGS (void)
  29640. If defined, this hook produces the machine-specific code for a call
  29641. to '__builtin_saveregs'. This code will be moved to the very
  29642. beginning of the function, before any parameter access are made.
  29643. The return value of this function should be an RTX that contains
  29644. the value to use as the return of '__builtin_saveregs'.
  29645. -- Target Hook: void TARGET_SETUP_INCOMING_VARARGS (cumulative_args_t
  29646. ARGS_SO_FAR, const function_arg_info &ARG, int
  29647. *PRETEND_ARGS_SIZE, int SECOND_TIME)
  29648. This target hook offers an alternative to using
  29649. '__builtin_saveregs' and defining the hook
  29650. 'TARGET_EXPAND_BUILTIN_SAVEREGS'. Use it to store the anonymous
  29651. register arguments into the stack so that all the arguments appear
  29652. to have been passed consecutively on the stack. Once this is done,
  29653. you can use the standard implementation of varargs that works for
  29654. machines that pass all their arguments on the stack.
  29655. The argument ARGS_SO_FAR points to the 'CUMULATIVE_ARGS' data
  29656. structure, containing the values that are obtained after processing
  29657. the named arguments. The argument ARG describes the last of these
  29658. named arguments.
  29659. The target hook should do two things: first, push onto the stack
  29660. all the argument registers _not_ used for the named arguments, and
  29661. second, store the size of the data thus pushed into the
  29662. 'int'-valued variable pointed to by PRETEND_ARGS_SIZE. The value
  29663. that you store here will serve as additional offset for setting up
  29664. the stack frame.
  29665. Because you must generate code to push the anonymous arguments at
  29666. compile time without knowing their data types,
  29667. 'TARGET_SETUP_INCOMING_VARARGS' is only useful on machines that
  29668. have just a single category of argument register and use it
  29669. uniformly for all data types.
  29670. If the argument SECOND_TIME is nonzero, it means that the arguments
  29671. of the function are being analyzed for the second time. This
  29672. happens for an inline function, which is not actually compiled
  29673. until the end of the source file. The hook
  29674. 'TARGET_SETUP_INCOMING_VARARGS' should not generate any
  29675. instructions in this case.
  29676. -- Target Hook: bool TARGET_STRICT_ARGUMENT_NAMING (cumulative_args_t
  29677. CA)
  29678. Define this hook to return 'true' if the location where a function
  29679. argument is passed depends on whether or not it is a named
  29680. argument.
  29681. This hook controls how the NAMED argument to 'TARGET_FUNCTION_ARG'
  29682. is set for varargs and stdarg functions. If this hook returns
  29683. 'true', the NAMED argument is always true for named arguments, and
  29684. false for unnamed arguments. If it returns 'false', but
  29685. 'TARGET_PRETEND_OUTGOING_VARARGS_NAMED' returns 'true', then all
  29686. arguments are treated as named. Otherwise, all named arguments
  29687. except the last are treated as named.
  29688. You need not define this hook if it always returns 'false'.
  29689. -- Target Hook: void TARGET_CALL_ARGS (rtx, TREE)
  29690. While generating RTL for a function call, this target hook is
  29691. invoked once for each argument passed to the function, either a
  29692. register returned by 'TARGET_FUNCTION_ARG' or a memory location.
  29693. It is called just before the point where argument registers are
  29694. stored. The type of the function to be called is also passed as
  29695. the second argument; it is 'NULL_TREE' for libcalls. The
  29696. 'TARGET_END_CALL_ARGS' hook is invoked just after the code to copy
  29697. the return reg has been emitted. This functionality can be used to
  29698. perform special setup of call argument registers if a target needs
  29699. it. For functions without arguments, the hook is called once with
  29700. 'pc_rtx' passed instead of an argument register. Most ports do not
  29701. need to implement anything for this hook.
  29702. -- Target Hook: void TARGET_END_CALL_ARGS (void)
  29703. This target hook is invoked while generating RTL for a function
  29704. call, just after the point where the return reg is copied into a
  29705. pseudo. It signals that all the call argument and return registers
  29706. for the just emitted call are now no longer in use. Most ports do
  29707. not need to implement anything for this hook.
  29708. -- Target Hook: bool TARGET_PRETEND_OUTGOING_VARARGS_NAMED
  29709. (cumulative_args_t CA)
  29710. If you need to conditionally change ABIs so that one works with
  29711. 'TARGET_SETUP_INCOMING_VARARGS', but the other works like neither
  29712. 'TARGET_SETUP_INCOMING_VARARGS' nor 'TARGET_STRICT_ARGUMENT_NAMING'
  29713. was defined, then define this hook to return 'true' if
  29714. 'TARGET_SETUP_INCOMING_VARARGS' is used, 'false' otherwise.
  29715. Otherwise, you should not define this hook.
  29716. -- Target Hook: rtx TARGET_LOAD_BOUNDS_FOR_ARG (rtx SLOT, rtx ARG, rtx
  29717. SLOT_NO)
  29718. This hook is used by expand pass to emit insn to load bounds of ARG
  29719. passed in SLOT. Expand pass uses this hook in case bounds of ARG
  29720. are not passed in register. If SLOT is a memory, then bounds are
  29721. loaded as for regular pointer loaded from memory. If SLOT is not a
  29722. memory then SLOT_NO is an integer constant holding number of the
  29723. target dependent special slot which should be used to obtain
  29724. bounds. Hook returns RTX holding loaded bounds.
  29725. -- Target Hook: void TARGET_STORE_BOUNDS_FOR_ARG (rtx ARG, rtx SLOT,
  29726. rtx BOUNDS, rtx SLOT_NO)
  29727. This hook is used by expand pass to emit insns to store BOUNDS of
  29728. ARG passed in SLOT. Expand pass uses this hook in case BOUNDS of
  29729. ARG are not passed in register. If SLOT is a memory, then BOUNDS
  29730. are stored as for regular pointer stored in memory. If SLOT is not
  29731. a memory then SLOT_NO is an integer constant holding number of the
  29732. target dependent special slot which should be used to store BOUNDS.
  29733. -- Target Hook: rtx TARGET_LOAD_RETURNED_BOUNDS (rtx SLOT)
  29734. This hook is used by expand pass to emit insn to load bounds
  29735. returned by function call in SLOT. Hook returns RTX holding loaded
  29736. bounds.
  29737. -- Target Hook: void TARGET_STORE_RETURNED_BOUNDS (rtx SLOT, rtx
  29738. BOUNDS)
  29739. This hook is used by expand pass to emit insn to store BOUNDS
  29740. returned by function call into SLOT.
  29741. 
  29742. File: gccint.info, Node: Trampolines, Next: Library Calls, Prev: Varargs, Up: Target Macros
  29743. 18.11 Support for Nested Functions
  29744. ==================================
  29745. Taking the address of a nested function requires special compiler
  29746. handling to ensure that the static chain register is loaded when the
  29747. function is invoked via an indirect call.
  29748. GCC has traditionally supported nested functions by creating an
  29749. executable "trampoline" at run time when the address of a nested
  29750. function is taken. This is a small piece of code which normally resides
  29751. on the stack, in the stack frame of the containing function. The
  29752. trampoline loads the static chain register and then jumps to the real
  29753. address of the nested function.
  29754. The use of trampolines requires an executable stack, which is a
  29755. security risk. To avoid this problem, GCC also supports another
  29756. strategy: using descriptors for nested functions. Under this model,
  29757. taking the address of a nested function results in a pointer to a
  29758. non-executable function descriptor object. Initializing the static
  29759. chain from the descriptor is handled at indirect call sites.
  29760. On some targets, including HPPA and IA-64, function descriptors may be
  29761. mandated by the ABI or be otherwise handled in a target-specific way by
  29762. the back end in its code generation strategy for indirect calls. GCC
  29763. also provides its own generic descriptor implementation to support the
  29764. '-fno-trampolines' option. In this case runtime detection of function
  29765. descriptors at indirect call sites relies on descriptor pointers being
  29766. tagged with a bit that is never set in bare function addresses. Since
  29767. GCC's generic function descriptors are not ABI-compliant, this option is
  29768. typically used only on a per-language basis (notably by Ada) or when it
  29769. can otherwise be applied to the whole program.
  29770. Define the following hook if your backend either implements
  29771. ABI-specified descriptor support, or can use GCC's generic descriptor
  29772. implementation for nested functions.
  29773. -- Target Hook: int TARGET_CUSTOM_FUNCTION_DESCRIPTORS
  29774. If the target can use GCC's generic descriptor mechanism for nested
  29775. functions, define this hook to a power of 2 representing an unused
  29776. bit in function pointers which can be used to differentiate
  29777. descriptors at run time. This value gives the number of bytes by
  29778. which descriptor pointers are misaligned compared to function
  29779. pointers. For example, on targets that require functions to be
  29780. aligned to a 4-byte boundary, a value of either 1 or 2 is
  29781. appropriate unless the architecture already reserves the bit for
  29782. another purpose, such as on ARM.
  29783. Define this hook to 0 if the target implements ABI support for
  29784. function descriptors in its standard calling sequence, like for
  29785. example HPPA or IA-64.
  29786. Using descriptors for nested functions eliminates the need for
  29787. trampolines that reside on the stack and require it to be made
  29788. executable.
  29789. The following macros tell GCC how to generate code to allocate and
  29790. initialize an executable trampoline. You can also use this interface if
  29791. your back end needs to create ABI-specified non-executable descriptors;
  29792. in this case the "trampoline" created is the descriptor containing data
  29793. only.
  29794. The instructions in an executable trampoline must do two things: load a
  29795. constant address into the static chain register, and jump to the real
  29796. address of the nested function. On CISC machines such as the m68k, this
  29797. requires two instructions, a move immediate and a jump. Then the two
  29798. addresses exist in the trampoline as word-long immediate operands. On
  29799. RISC machines, it is often necessary to load each address into a
  29800. register in two parts. Then pieces of each address form separate
  29801. immediate operands.
  29802. The code generated to initialize the trampoline must store the variable
  29803. parts--the static chain value and the function address--into the
  29804. immediate operands of the instructions. On a CISC machine, this is
  29805. simply a matter of copying each address to a memory reference at the
  29806. proper offset from the start of the trampoline. On a RISC machine, it
  29807. may be necessary to take out pieces of the address and store them
  29808. separately.
  29809. -- Target Hook: void TARGET_ASM_TRAMPOLINE_TEMPLATE (FILE *F)
  29810. This hook is called by 'assemble_trampoline_template' to output, on
  29811. the stream F, assembler code for a block of data that contains the
  29812. constant parts of a trampoline. This code should not include a
  29813. label--the label is taken care of automatically.
  29814. If you do not define this hook, it means no template is needed for
  29815. the target. Do not define this hook on systems where the block
  29816. move code to copy the trampoline into place would be larger than
  29817. the code to generate it on the spot.
  29818. -- Macro: TRAMPOLINE_SECTION
  29819. Return the section into which the trampoline template is to be
  29820. placed (*note Sections::). The default value is
  29821. 'readonly_data_section'.
  29822. -- Macro: TRAMPOLINE_SIZE
  29823. A C expression for the size in bytes of the trampoline, as an
  29824. integer.
  29825. -- Macro: TRAMPOLINE_ALIGNMENT
  29826. Alignment required for trampolines, in bits.
  29827. If you don't define this macro, the value of 'FUNCTION_ALIGNMENT'
  29828. is used for aligning trampolines.
  29829. -- Target Hook: void TARGET_TRAMPOLINE_INIT (rtx M_TRAMP, tree FNDECL,
  29830. rtx STATIC_CHAIN)
  29831. This hook is called to initialize a trampoline. M_TRAMP is an RTX
  29832. for the memory block for the trampoline; FNDECL is the
  29833. 'FUNCTION_DECL' for the nested function; STATIC_CHAIN is an RTX for
  29834. the static chain value that should be passed to the function when
  29835. it is called.
  29836. If the target defines 'TARGET_ASM_TRAMPOLINE_TEMPLATE', then the
  29837. first thing this hook should do is emit a block move into M_TRAMP
  29838. from the memory block returned by 'assemble_trampoline_template'.
  29839. Note that the block move need only cover the constant parts of the
  29840. trampoline. If the target isolates the variable parts of the
  29841. trampoline to the end, not all 'TRAMPOLINE_SIZE' bytes need be
  29842. copied.
  29843. If the target requires any other actions, such as flushing caches
  29844. (possibly calling function maybe_emit_call_builtin___clear_cache)
  29845. or enabling stack execution, these actions should be performed
  29846. after initializing the trampoline proper.
  29847. -- Target Hook: void TARGET_EMIT_CALL_BUILTIN___CLEAR_CACHE (rtx BEGIN,
  29848. rtx END)
  29849. On targets that do not define a 'clear_cache' insn expander, but
  29850. that define the 'CLEAR_CACHE_INSN' macro,
  29851. maybe_emit_call_builtin___clear_cache relies on this target hook to
  29852. clear an address range in the instruction cache.
  29853. The default implementation calls the '__clear_cache' builtin,
  29854. taking the assembler name from the builtin declaration. Overriding
  29855. definitions may call alternate functions, with alternate calling
  29856. conventions, or emit alternate RTX to perform the job.
  29857. -- Target Hook: rtx TARGET_TRAMPOLINE_ADJUST_ADDRESS (rtx ADDR)
  29858. This hook should perform any machine-specific adjustment in the
  29859. address of the trampoline. Its argument contains the address of
  29860. the memory block that was passed to 'TARGET_TRAMPOLINE_INIT'. In
  29861. case the address to be used for a function call should be different
  29862. from the address at which the template was stored, the different
  29863. address should be returned; otherwise ADDR should be returned
  29864. unchanged. If this hook is not defined, ADDR will be used for
  29865. function calls.
  29866. Implementing trampolines is difficult on many machines because they
  29867. have separate instruction and data caches. Writing into a stack
  29868. location fails to clear the memory in the instruction cache, so when the
  29869. program jumps to that location, it executes the old contents.
  29870. Here are two possible solutions. One is to clear the relevant parts of
  29871. the instruction cache whenever a trampoline is set up. The other is to
  29872. make all trampolines identical, by having them jump to a standard
  29873. subroutine. The former technique makes trampoline execution faster; the
  29874. latter makes initialization faster.
  29875. To clear the instruction cache when a trampoline is initialized, define
  29876. the following macro.
  29877. -- Macro: CLEAR_INSN_CACHE (BEG, END)
  29878. If defined, expands to a C expression clearing the _instruction
  29879. cache_ in the specified interval. The definition of this macro
  29880. would typically be a series of 'asm' statements. Both BEG and END
  29881. are pointer expressions.
  29882. To use a standard subroutine, define the following macro. In addition,
  29883. you must make sure that the instructions in a trampoline fill an entire
  29884. cache line with identical instructions, or else ensure that the
  29885. beginning of the trampoline code is always aligned at the same point in
  29886. its cache line. Look in 'm68k.h' as a guide.
  29887. -- Macro: TRANSFER_FROM_TRAMPOLINE
  29888. Define this macro if trampolines need a special subroutine to do
  29889. their work. The macro should expand to a series of 'asm'
  29890. statements which will be compiled with GCC. They go in a library
  29891. function named '__transfer_from_trampoline'.
  29892. If you need to avoid executing the ordinary prologue code of a
  29893. compiled C function when you jump to the subroutine, you can do so
  29894. by placing a special label of your own in the assembler code. Use
  29895. one 'asm' statement to generate an assembler label, and another to
  29896. make the label global. Then trampolines can use that label to jump
  29897. directly to your special assembler code.
  29898. 
  29899. File: gccint.info, Node: Library Calls, Next: Addressing Modes, Prev: Trampolines, Up: Target Macros
  29900. 18.12 Implicit Calls to Library Routines
  29901. ========================================
  29902. Here is an explanation of implicit calls to library routines.
  29903. -- Macro: DECLARE_LIBRARY_RENAMES
  29904. This macro, if defined, should expand to a piece of C code that
  29905. will get expanded when compiling functions for libgcc.a. It can be
  29906. used to provide alternate names for GCC's internal library
  29907. functions if there are ABI-mandated names that the compiler should
  29908. provide.
  29909. -- Target Hook: void TARGET_INIT_LIBFUNCS (void)
  29910. This hook should declare additional library routines or rename
  29911. existing ones, using the functions 'set_optab_libfunc' and
  29912. 'init_one_libfunc' defined in 'optabs.c'. 'init_optabs' calls this
  29913. macro after initializing all the normal library routines.
  29914. The default is to do nothing. Most ports don't need to define this
  29915. hook.
  29916. -- Target Hook: bool TARGET_LIBFUNC_GNU_PREFIX
  29917. If false (the default), internal library routines start with two
  29918. underscores. If set to true, these routines start with '__gnu_'
  29919. instead. E.g., '__muldi3' changes to '__gnu_muldi3'. This
  29920. currently only affects functions defined in 'libgcc2.c'. If this
  29921. is set to true, the 'tm.h' file must also '#define
  29922. LIBGCC2_GNU_PREFIX'.
  29923. -- Macro: FLOAT_LIB_COMPARE_RETURNS_BOOL (MODE, COMPARISON)
  29924. This macro should return 'true' if the library routine that
  29925. implements the floating point comparison operator COMPARISON in
  29926. mode MODE will return a boolean, and FALSE if it will return a
  29927. tristate.
  29928. GCC's own floating point libraries return tristates from the
  29929. comparison operators, so the default returns false always. Most
  29930. ports don't need to define this macro.
  29931. -- Macro: TARGET_LIB_INT_CMP_BIASED
  29932. This macro should evaluate to 'true' if the integer comparison
  29933. functions (like '__cmpdi2') return 0 to indicate that the first
  29934. operand is smaller than the second, 1 to indicate that they are
  29935. equal, and 2 to indicate that the first operand is greater than the
  29936. second. If this macro evaluates to 'false' the comparison
  29937. functions return -1, 0, and 1 instead of 0, 1, and 2. If the
  29938. target uses the routines in 'libgcc.a', you do not need to define
  29939. this macro.
  29940. -- Macro: TARGET_HAS_NO_HW_DIVIDE
  29941. This macro should be defined if the target has no hardware divide
  29942. instructions. If this macro is defined, GCC will use an algorithm
  29943. which make use of simple logical and arithmetic operations for
  29944. 64-bit division. If the macro is not defined, GCC will use an
  29945. algorithm which make use of a 64-bit by 32-bit divide primitive.
  29946. -- Macro: TARGET_EDOM
  29947. The value of 'EDOM' on the target machine, as a C integer constant
  29948. expression. If you don't define this macro, GCC does not attempt
  29949. to deposit the value of 'EDOM' into 'errno' directly. Look in
  29950. '/usr/include/errno.h' to find the value of 'EDOM' on your system.
  29951. If you do not define 'TARGET_EDOM', then compiled code reports
  29952. domain errors by calling the library function and letting it report
  29953. the error. If mathematical functions on your system use 'matherr'
  29954. when there is an error, then you should leave 'TARGET_EDOM'
  29955. undefined so that 'matherr' is used normally.
  29956. -- Macro: GEN_ERRNO_RTX
  29957. Define this macro as a C expression to create an rtl expression
  29958. that refers to the global "variable" 'errno'. (On certain systems,
  29959. 'errno' may not actually be a variable.) If you don't define this
  29960. macro, a reasonable default is used.
  29961. -- Target Hook: bool TARGET_LIBC_HAS_FUNCTION (enum function_class
  29962. FN_CLASS, tree TYPE)
  29963. This hook determines whether a function from a class of functions
  29964. FN_CLASS is present in the target C library. If TYPE is NULL, the
  29965. caller asks for support for all standard (float, double, long
  29966. double) types. If TYPE is non-NULL, the caller asks for support
  29967. for a specific type.
  29968. -- Target Hook: bool TARGET_LIBC_HAS_FAST_FUNCTION (int FCODE)
  29969. This hook determines whether a function from a class of functions
  29970. '(enum function_class)'FCODE has a fast implementation.
  29971. -- Macro: NEXT_OBJC_RUNTIME
  29972. Set this macro to 1 to use the "NeXT" Objective-C message sending
  29973. conventions by default. This calling convention involves passing
  29974. the object, the selector and the method arguments all at once to
  29975. the method-lookup library function. This is the usual setting when
  29976. targeting Darwin/Mac OS X systems, which have the NeXT runtime
  29977. installed.
  29978. If the macro is set to 0, the "GNU" Objective-C message sending
  29979. convention will be used by default. This convention passes just
  29980. the object and the selector to the method-lookup function, which
  29981. returns a pointer to the method.
  29982. In either case, it remains possible to select code-generation for
  29983. the alternate scheme, by means of compiler command line switches.
  29984. 
  29985. File: gccint.info, Node: Addressing Modes, Next: Anchored Addresses, Prev: Library Calls, Up: Target Macros
  29986. 18.13 Addressing Modes
  29987. ======================
  29988. This is about addressing modes.
  29989. -- Macro: HAVE_PRE_INCREMENT
  29990. -- Macro: HAVE_PRE_DECREMENT
  29991. -- Macro: HAVE_POST_INCREMENT
  29992. -- Macro: HAVE_POST_DECREMENT
  29993. A C expression that is nonzero if the machine supports
  29994. pre-increment, pre-decrement, post-increment, or post-decrement
  29995. addressing respectively.
  29996. -- Macro: HAVE_PRE_MODIFY_DISP
  29997. -- Macro: HAVE_POST_MODIFY_DISP
  29998. A C expression that is nonzero if the machine supports pre- or
  29999. post-address side-effect generation involving constants other than
  30000. the size of the memory operand.
  30001. -- Macro: HAVE_PRE_MODIFY_REG
  30002. -- Macro: HAVE_POST_MODIFY_REG
  30003. A C expression that is nonzero if the machine supports pre- or
  30004. post-address side-effect generation involving a register
  30005. displacement.
  30006. -- Macro: CONSTANT_ADDRESS_P (X)
  30007. A C expression that is 1 if the RTX X is a constant which is a
  30008. valid address. On most machines the default definition of
  30009. '(CONSTANT_P (X) && GET_CODE (X) != CONST_DOUBLE)' is acceptable,
  30010. but a few machines are more restrictive as to which constant
  30011. addresses are supported.
  30012. -- Macro: CONSTANT_P (X)
  30013. 'CONSTANT_P', which is defined by target-independent code, accepts
  30014. integer-values expressions whose values are not explicitly known,
  30015. such as 'symbol_ref', 'label_ref', and 'high' expressions and
  30016. 'const' arithmetic expressions, in addition to 'const_int' and
  30017. 'const_double' expressions.
  30018. -- Macro: MAX_REGS_PER_ADDRESS
  30019. A number, the maximum number of registers that can appear in a
  30020. valid memory address. Note that it is up to you to specify a value
  30021. equal to the maximum number that 'TARGET_LEGITIMATE_ADDRESS_P'
  30022. would ever accept.
  30023. -- Target Hook: bool TARGET_LEGITIMATE_ADDRESS_P (machine_mode MODE,
  30024. rtx X, bool STRICT)
  30025. A function that returns whether X (an RTX) is a legitimate memory
  30026. address on the target machine for a memory operand of mode MODE.
  30027. Legitimate addresses are defined in two variants: a strict variant
  30028. and a non-strict one. The STRICT parameter chooses which variant
  30029. is desired by the caller.
  30030. The strict variant is used in the reload pass. It must be defined
  30031. so that any pseudo-register that has not been allocated a hard
  30032. register is considered a memory reference. This is because in
  30033. contexts where some kind of register is required, a pseudo-register
  30034. with no hard register must be rejected. For non-hard registers,
  30035. the strict variant should look up the 'reg_renumber' array; it
  30036. should then proceed using the hard register number in the array, or
  30037. treat the pseudo as a memory reference if the array holds '-1'.
  30038. The non-strict variant is used in other passes. It must be defined
  30039. to accept all pseudo-registers in every context where some kind of
  30040. register is required.
  30041. Normally, constant addresses which are the sum of a 'symbol_ref'
  30042. and an integer are stored inside a 'const' RTX to mark them as
  30043. constant. Therefore, there is no need to recognize such sums
  30044. specifically as legitimate addresses. Normally you would simply
  30045. recognize any 'const' as legitimate.
  30046. Usually 'PRINT_OPERAND_ADDRESS' is not prepared to handle constant
  30047. sums that are not marked with 'const'. It assumes that a naked
  30048. 'plus' indicates indexing. If so, then you _must_ reject such
  30049. naked constant sums as illegitimate addresses, so that none of them
  30050. will be given to 'PRINT_OPERAND_ADDRESS'.
  30051. On some machines, whether a symbolic address is legitimate depends
  30052. on the section that the address refers to. On these machines,
  30053. define the target hook 'TARGET_ENCODE_SECTION_INFO' to store the
  30054. information into the 'symbol_ref', and then check for it here.
  30055. When you see a 'const', you will have to look inside it to find the
  30056. 'symbol_ref' in order to determine the section. *Note Assembler
  30057. Format::.
  30058. Some ports are still using a deprecated legacy substitute for this
  30059. hook, the 'GO_IF_LEGITIMATE_ADDRESS' macro. This macro has this
  30060. syntax:
  30061. #define GO_IF_LEGITIMATE_ADDRESS (MODE, X, LABEL)
  30062. and should 'goto LABEL' if the address X is a valid address on the
  30063. target machine for a memory operand of mode MODE.
  30064. Compiler source files that want to use the strict variant of this
  30065. macro define the macro 'REG_OK_STRICT'. You should use an '#ifdef
  30066. REG_OK_STRICT' conditional to define the strict variant in that
  30067. case and the non-strict variant otherwise.
  30068. Using the hook is usually simpler because it limits the number of
  30069. files that are recompiled when changes are made.
  30070. -- Macro: TARGET_MEM_CONSTRAINT
  30071. A single character to be used instead of the default ''m''
  30072. character for general memory addresses. This defines the
  30073. constraint letter which matches the memory addresses accepted by
  30074. 'TARGET_LEGITIMATE_ADDRESS_P'. Define this macro if you want to
  30075. support new address formats in your back end without changing the
  30076. semantics of the ''m'' constraint. This is necessary in order to
  30077. preserve functionality of inline assembly constructs using the
  30078. ''m'' constraint.
  30079. -- Macro: FIND_BASE_TERM (X)
  30080. A C expression to determine the base term of address X, or to
  30081. provide a simplified version of X from which 'alias.c' can easily
  30082. find the base term. This macro is used in only two places:
  30083. 'find_base_value' and 'find_base_term' in 'alias.c'.
  30084. It is always safe for this macro to not be defined. It exists so
  30085. that alias analysis can understand machine-dependent addresses.
  30086. The typical use of this macro is to handle addresses containing a
  30087. label_ref or symbol_ref within an UNSPEC.
  30088. -- Target Hook: rtx TARGET_LEGITIMIZE_ADDRESS (rtx X, rtx OLDX,
  30089. machine_mode MODE)
  30090. This hook is given an invalid memory address X for an operand of
  30091. mode MODE and should try to return a valid memory address.
  30092. X will always be the result of a call to 'break_out_memory_refs',
  30093. and OLDX will be the operand that was given to that function to
  30094. produce X.
  30095. The code of the hook should not alter the substructure of X. If it
  30096. transforms X into a more legitimate form, it should return the new
  30097. X.
  30098. It is not necessary for this hook to come up with a legitimate
  30099. address, with the exception of native TLS addresses (*note Emulated
  30100. TLS::). The compiler has standard ways of doing so in all cases.
  30101. In fact, if the target supports only emulated TLS, it is safe to
  30102. omit this hook or make it return X if it cannot find a valid way to
  30103. legitimize the address. But often a machine-dependent strategy can
  30104. generate better code.
  30105. -- Macro: LEGITIMIZE_RELOAD_ADDRESS (X, MODE, OPNUM, TYPE, IND_LEVELS,
  30106. WIN)
  30107. A C compound statement that attempts to replace X, which is an
  30108. address that needs reloading, with a valid memory address for an
  30109. operand of mode MODE. WIN will be a C statement label elsewhere in
  30110. the code. It is not necessary to define this macro, but it might
  30111. be useful for performance reasons.
  30112. For example, on the i386, it is sometimes possible to use a single
  30113. reload register instead of two by reloading a sum of two pseudo
  30114. registers into a register. On the other hand, for number of RISC
  30115. processors offsets are limited so that often an intermediate
  30116. address needs to be generated in order to address a stack slot. By
  30117. defining 'LEGITIMIZE_RELOAD_ADDRESS' appropriately, the
  30118. intermediate addresses generated for adjacent some stack slots can
  30119. be made identical, and thus be shared.
  30120. _Note_: This macro should be used with caution. It is necessary to
  30121. know something of how reload works in order to effectively use
  30122. this, and it is quite easy to produce macros that build in too much
  30123. knowledge of reload internals.
  30124. _Note_: This macro must be able to reload an address created by a
  30125. previous invocation of this macro. If it fails to handle such
  30126. addresses then the compiler may generate incorrect code or abort.
  30127. The macro definition should use 'push_reload' to indicate parts
  30128. that need reloading; OPNUM, TYPE and IND_LEVELS are usually
  30129. suitable to be passed unaltered to 'push_reload'.
  30130. The code generated by this macro must not alter the substructure of
  30131. X. If it transforms X into a more legitimate form, it should
  30132. assign X (which will always be a C variable) a new value. This
  30133. also applies to parts that you change indirectly by calling
  30134. 'push_reload'.
  30135. The macro definition may use 'strict_memory_address_p' to test if
  30136. the address has become legitimate.
  30137. If you want to change only a part of X, one standard way of doing
  30138. this is to use 'copy_rtx'. Note, however, that it unshares only a
  30139. single level of rtl. Thus, if the part to be changed is not at the
  30140. top level, you'll need to replace first the top level. It is not
  30141. necessary for this macro to come up with a legitimate address; but
  30142. often a machine-dependent strategy can generate better code.
  30143. -- Target Hook: bool TARGET_MODE_DEPENDENT_ADDRESS_P (const_rtx ADDR,
  30144. addr_space_t ADDRSPACE)
  30145. This hook returns 'true' if memory address ADDR in address space
  30146. ADDRSPACE can have different meanings depending on the machine mode
  30147. of the memory reference it is used for or if the address is valid
  30148. for some modes but not others.
  30149. Autoincrement and autodecrement addresses typically have
  30150. mode-dependent effects because the amount of the increment or
  30151. decrement is the size of the operand being addressed. Some
  30152. machines have other mode-dependent addresses. Many RISC machines
  30153. have no mode-dependent addresses.
  30154. You may assume that ADDR is a valid address for the machine.
  30155. The default version of this hook returns 'false'.
  30156. -- Target Hook: bool TARGET_LEGITIMATE_CONSTANT_P (machine_mode MODE,
  30157. rtx X)
  30158. This hook returns true if X is a legitimate constant for a
  30159. MODE-mode immediate operand on the target machine. You can assume
  30160. that X satisfies 'CONSTANT_P', so you need not check this.
  30161. The default definition returns true.
  30162. -- Target Hook: rtx TARGET_DELEGITIMIZE_ADDRESS (rtx X)
  30163. This hook is used to undo the possibly obfuscating effects of the
  30164. 'LEGITIMIZE_ADDRESS' and 'LEGITIMIZE_RELOAD_ADDRESS' target macros.
  30165. Some backend implementations of these macros wrap symbol references
  30166. inside an 'UNSPEC' rtx to represent PIC or similar addressing
  30167. modes. This target hook allows GCC's optimizers to understand the
  30168. semantics of these opaque 'UNSPEC's by converting them back into
  30169. their original form.
  30170. -- Target Hook: bool TARGET_CONST_NOT_OK_FOR_DEBUG_P (rtx X)
  30171. This hook should return true if X should not be emitted into debug
  30172. sections.
  30173. -- Target Hook: bool TARGET_CANNOT_FORCE_CONST_MEM (machine_mode MODE,
  30174. rtx X)
  30175. This hook should return true if X is of a form that cannot (or
  30176. should not) be spilled to the constant pool. MODE is the mode of
  30177. X.
  30178. The default version of this hook returns false.
  30179. The primary reason to define this hook is to prevent reload from
  30180. deciding that a non-legitimate constant would be better reloaded
  30181. from the constant pool instead of spilling and reloading a register
  30182. holding the constant. This restriction is often true of addresses
  30183. of TLS symbols for various targets.
  30184. -- Target Hook: bool TARGET_USE_BLOCKS_FOR_CONSTANT_P (machine_mode
  30185. MODE, const_rtx X)
  30186. This hook should return true if pool entries for constant X can be
  30187. placed in an 'object_block' structure. MODE is the mode of X.
  30188. The default version returns false for all constants.
  30189. -- Target Hook: bool TARGET_USE_BLOCKS_FOR_DECL_P (const_tree DECL)
  30190. This hook should return true if pool entries for DECL should be
  30191. placed in an 'object_block' structure.
  30192. The default version returns true for all decls.
  30193. -- Target Hook: tree TARGET_BUILTIN_RECIPROCAL (tree FNDECL)
  30194. This hook should return the DECL of a function that implements the
  30195. reciprocal of the machine-specific builtin function FNDECL, or
  30196. 'NULL_TREE' if such a function is not available.
  30197. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD (void)
  30198. This hook should return the DECL of a function F that given an
  30199. address ADDR as an argument returns a mask M that can be used to
  30200. extract from two vectors the relevant data that resides in ADDR in
  30201. case ADDR is not properly aligned.
  30202. The autovectorizer, when vectorizing a load operation from an
  30203. address ADDR that may be unaligned, will generate two vector loads
  30204. from the two aligned addresses around ADDR. It then generates a
  30205. 'REALIGN_LOAD' operation to extract the relevant data from the two
  30206. loaded vectors. The first two arguments to 'REALIGN_LOAD', V1 and
  30207. V2, are the two vectors, each of size VS, and the third argument,
  30208. OFF, defines how the data will be extracted from these two vectors:
  30209. if OFF is 0, then the returned vector is V2; otherwise, the
  30210. returned vector is composed from the last VS-OFF elements of V1
  30211. concatenated to the first OFF elements of V2.
  30212. If this hook is defined, the autovectorizer will generate a call to
  30213. F (using the DECL tree that this hook returns) and will use the
  30214. return value of F as the argument OFF to 'REALIGN_LOAD'.
  30215. Therefore, the mask M returned by F should comply with the
  30216. semantics expected by 'REALIGN_LOAD' described above. If this hook
  30217. is not defined, then ADDR will be used as the argument OFF to
  30218. 'REALIGN_LOAD', in which case the low log2(VS) - 1 bits of ADDR
  30219. will be considered.
  30220. -- Target Hook: int TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST (enum
  30221. vect_cost_for_stmt TYPE_OF_COST, tree VECTYPE, int MISALIGN)
  30222. Returns cost of different scalar or vector statements for
  30223. vectorization cost model. For vector memory operations the cost
  30224. may depend on type (VECTYPE) and misalignment value (MISALIGN).
  30225. -- Target Hook: poly_uint64 TARGET_VECTORIZE_PREFERRED_VECTOR_ALIGNMENT
  30226. (const_tree TYPE)
  30227. This hook returns the preferred alignment in bits for accesses to
  30228. vectors of type TYPE in vectorized code. This might be less than
  30229. or greater than the ABI-defined value returned by
  30230. 'TARGET_VECTOR_ALIGNMENT'. It can be equal to the alignment of a
  30231. single element, in which case the vectorizer will not try to
  30232. optimize for alignment.
  30233. The default hook returns 'TYPE_ALIGN (TYPE)', which is correct for
  30234. most targets.
  30235. -- Target Hook: bool TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
  30236. (const_tree TYPE, bool IS_PACKED)
  30237. Return true if vector alignment is reachable (by peeling N
  30238. iterations) for the given scalar type TYPE. IS_PACKED is false if
  30239. the scalar access using TYPE is known to be naturally aligned.
  30240. -- Target Hook: bool TARGET_VECTORIZE_VEC_PERM_CONST (machine_mode
  30241. MODE, rtx OUTPUT, rtx IN0, rtx IN1, const vec_perm_indices
  30242. &SEL)
  30243. This hook is used to test whether the target can permute up to two
  30244. vectors of mode MODE using the permutation vector 'sel', and also
  30245. to emit such a permutation. In the former case IN0, IN1 and OUT
  30246. are all null. In the latter case IN0 and IN1 are the source
  30247. vectors and OUT is the destination vector; all three are registers
  30248. of mode MODE. IN1 is the same as IN0 if SEL describes a
  30249. permutation on one vector instead of two.
  30250. Return true if the operation is possible, emitting instructions for
  30251. it if rtxes are provided.
  30252. If the hook returns false for a mode with multibyte elements, GCC
  30253. will try the equivalent byte operation. If that also fails, it
  30254. will try forcing the selector into a register and using the
  30255. VEC_PERMMODE instruction pattern. There is no need for the hook to
  30256. handle these two implementation approaches itself.
  30257. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION
  30258. (unsigned CODE, tree VEC_TYPE_OUT, tree VEC_TYPE_IN)
  30259. This hook should return the decl of a function that implements the
  30260. vectorized variant of the function with the 'combined_fn' code CODE
  30261. or 'NULL_TREE' if such a function is not available. The return
  30262. type of the vectorized function shall be of vector type
  30263. VEC_TYPE_OUT and the argument types should be VEC_TYPE_IN.
  30264. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION
  30265. (tree FNDECL, tree VEC_TYPE_OUT, tree VEC_TYPE_IN)
  30266. This hook should return the decl of a function that implements the
  30267. vectorized variant of target built-in function 'fndecl'. The
  30268. return type of the vectorized function shall be of vector type
  30269. VEC_TYPE_OUT and the argument types should be VEC_TYPE_IN.
  30270. -- Target Hook: bool TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
  30271. (machine_mode MODE, const_tree TYPE, int MISALIGNMENT, bool
  30272. IS_PACKED)
  30273. This hook should return true if the target supports misaligned
  30274. vector store/load of a specific factor denoted in the MISALIGNMENT
  30275. parameter. The vector store/load should be of machine mode MODE
  30276. and the elements in the vectors should be of type TYPE. IS_PACKED
  30277. parameter is true if the memory access is defined in a packed
  30278. struct.
  30279. -- Target Hook: machine_mode TARGET_VECTORIZE_PREFERRED_SIMD_MODE
  30280. (scalar_mode MODE)
  30281. This hook should return the preferred mode for vectorizing scalar
  30282. mode MODE. The default is equal to 'word_mode', because the
  30283. vectorizer can do some transformations even in absence of
  30284. specialized SIMD hardware.
  30285. -- Target Hook: machine_mode TARGET_VECTORIZE_SPLIT_REDUCTION
  30286. (machine_mode)
  30287. This hook should return the preferred mode to split the final
  30288. reduction step on MODE to. The reduction is then carried out
  30289. reducing upper against lower halves of vectors recursively until
  30290. the specified mode is reached. The default is MODE which means no
  30291. splitting.
  30292. -- Target Hook: unsigned int
  30293. TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES (vector_modes
  30294. *MODES, bool ALL)
  30295. If using the mode returned by
  30296. 'TARGET_VECTORIZE_PREFERRED_SIMD_MODE' is not the only approach
  30297. worth considering, this hook should add one mode to MODES for each
  30298. useful alternative approach. These modes are then passed to
  30299. 'TARGET_VECTORIZE_RELATED_MODE' to obtain the vector mode for a
  30300. given element mode.
  30301. The modes returned in MODES should use the smallest element mode
  30302. possible for the vectorization approach that they represent,
  30303. preferring integer modes over floating-poing modes in the event of
  30304. a tie. The first mode should be the
  30305. 'TARGET_VECTORIZE_PREFERRED_SIMD_MODE' for its element mode.
  30306. If ALL is true, add suitable vector modes even when they are
  30307. generally not expected to be worthwhile.
  30308. The hook returns a bitmask of flags that control how the modes in
  30309. MODES are used. The flags are:
  30310. 'VECT_COMPARE_COSTS'
  30311. Tells the loop vectorizer to try all the provided modes and
  30312. pick the one with the lowest cost. By default the vectorizer
  30313. will choose the first mode that works.
  30314. The hook does not need to do anything if the vector returned by
  30315. 'TARGET_VECTORIZE_PREFERRED_SIMD_MODE' is the only one relevant for
  30316. autovectorization. The default implementation adds no modes and
  30317. returns 0.
  30318. -- Target Hook: opt_machine_mode TARGET_VECTORIZE_RELATED_MODE
  30319. (machine_mode VECTOR_MODE, scalar_mode ELEMENT_MODE,
  30320. poly_uint64 NUNITS)
  30321. If a piece of code is using vector mode VECTOR_MODE and also wants
  30322. to operate on elements of mode ELEMENT_MODE, return the vector mode
  30323. it should use for those elements. If NUNITS is nonzero, ensure
  30324. that the mode has exactly NUNITS elements, otherwise pick whichever
  30325. vector size pairs the most naturally with VECTOR_MODE. Return an
  30326. empty 'opt_machine_mode' if there is no supported vector mode with
  30327. the required properties.
  30328. There is no prescribed way of handling the case in which NUNITS is
  30329. zero. One common choice is to pick a vector mode with the same
  30330. size as VECTOR_MODE; this is the natural choice if the target has a
  30331. fixed vector size. Another option is to choose a vector mode with
  30332. the same number of elements as VECTOR_MODE; this is the natural
  30333. choice if the target has a fixed number of elements.
  30334. Alternatively, the hook might choose a middle ground, such as
  30335. trying to keep the number of elements as similar as possible while
  30336. applying maximum and minimum vector sizes.
  30337. The default implementation uses 'mode_for_vector' to find the
  30338. requested mode, returning a mode with the same size as VECTOR_MODE
  30339. when NUNITS is zero. This is the correct behavior for most
  30340. targets.
  30341. -- Target Hook: opt_machine_mode TARGET_VECTORIZE_GET_MASK_MODE
  30342. (machine_mode MODE)
  30343. Return the mode to use for a vector mask that holds one boolean
  30344. result for each element of vector mode MODE. The returned mask
  30345. mode can be a vector of integers (class 'MODE_VECTOR_INT'), a
  30346. vector of booleans (class 'MODE_VECTOR_BOOL') or a scalar integer
  30347. (class 'MODE_INT'). Return an empty 'opt_machine_mode' if no such
  30348. mask mode exists.
  30349. The default implementation returns a 'MODE_VECTOR_INT' with the
  30350. same size and number of elements as MODE, if such a mode exists.
  30351. -- Target Hook: bool TARGET_VECTORIZE_EMPTY_MASK_IS_EXPENSIVE (unsigned
  30352. IFN)
  30353. This hook returns true if masked internal function IFN (really of
  30354. type 'internal_fn') should be considered expensive when the mask is
  30355. all zeros. GCC can then try to branch around the instruction
  30356. instead.
  30357. -- Target Hook: void * TARGET_VECTORIZE_INIT_COST (class loop
  30358. *LOOP_INFO)
  30359. This hook should initialize target-specific data structures in
  30360. preparation for modeling the costs of vectorizing a loop or basic
  30361. block. The default allocates three unsigned integers for
  30362. accumulating costs for the prologue, body, and epilogue of the loop
  30363. or basic block. If LOOP_INFO is non-NULL, it identifies the loop
  30364. being vectorized; otherwise a single block is being vectorized.
  30365. -- Target Hook: unsigned TARGET_VECTORIZE_ADD_STMT_COST (class vec_info
  30366. *, void *DATA, int COUNT, enum vect_cost_for_stmt KIND, class
  30367. _stmt_vec_info *STMT_INFO, tree VECTYPE, int MISALIGN, enum
  30368. vect_cost_model_location WHERE)
  30369. This hook should update the target-specific DATA in response to
  30370. adding COUNT copies of the given KIND of statement to a loop or
  30371. basic block. The default adds the builtin vectorizer cost for the
  30372. copies of the statement to the accumulator specified by WHERE, (the
  30373. prologue, body, or epilogue) and returns the amount added. The
  30374. return value should be viewed as a tentative cost that may later be
  30375. revised.
  30376. -- Target Hook: void TARGET_VECTORIZE_FINISH_COST (void *DATA, unsigned
  30377. *PROLOGUE_COST, unsigned *BODY_COST, unsigned *EPILOGUE_COST)
  30378. This hook should complete calculations of the cost of vectorizing a
  30379. loop or basic block based on DATA, and return the prologue, body,
  30380. and epilogue costs as unsigned integers. The default returns the
  30381. value of the three accumulators.
  30382. -- Target Hook: void TARGET_VECTORIZE_DESTROY_COST_DATA (void *DATA)
  30383. This hook should release DATA and any related data structures
  30384. allocated by TARGET_VECTORIZE_INIT_COST. The default releases the
  30385. accumulator.
  30386. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_GATHER (const_tree
  30387. MEM_VECTYPE, const_tree INDEX_TYPE, int SCALE)
  30388. Target builtin that implements vector gather operation.
  30389. MEM_VECTYPE is the vector type of the load and INDEX_TYPE is scalar
  30390. type of the index, scaled by SCALE. The default is 'NULL_TREE'
  30391. which means to not vectorize gather loads.
  30392. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_SCATTER (const_tree
  30393. VECTYPE, const_tree INDEX_TYPE, int SCALE)
  30394. Target builtin that implements vector scatter operation. VECTYPE
  30395. is the vector type of the store and INDEX_TYPE is scalar type of
  30396. the index, scaled by SCALE. The default is 'NULL_TREE' which means
  30397. to not vectorize scatter stores.
  30398. -- Target Hook: int TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN
  30399. (struct cgraph_node *, struct cgraph_simd_clone *, TREE, INT)
  30400. This hook should set VECSIZE_MANGLE, VECSIZE_INT, VECSIZE_FLOAT
  30401. fields in SIMD_CLONE structure pointed by CLONE_INFO argument and
  30402. also SIMDLEN field if it was previously 0. The hook should return
  30403. 0 if SIMD clones shouldn't be emitted, or number of VECSIZE_MANGLE
  30404. variants that should be emitted.
  30405. -- Target Hook: void TARGET_SIMD_CLONE_ADJUST (struct cgraph_node *)
  30406. This hook should add implicit 'attribute(target("..."))' attribute
  30407. to SIMD clone NODE if needed.
  30408. -- Target Hook: int TARGET_SIMD_CLONE_USABLE (struct cgraph_node *)
  30409. This hook should return -1 if SIMD clone NODE shouldn't be used in
  30410. vectorized loops in current function, or non-negative number if it
  30411. is usable. In that case, the smaller the number is, the more
  30412. desirable it is to use it.
  30413. -- Target Hook: int TARGET_SIMT_VF (void)
  30414. Return number of threads in SIMT thread group on the target.
  30415. -- Target Hook: int TARGET_OMP_DEVICE_KIND_ARCH_ISA (enum
  30416. omp_device_kind_arch_isa TRAIT, const char *NAME)
  30417. Return 1 if TRAIT NAME is present in the OpenMP context's device
  30418. trait set, return 0 if not present in any OpenMP context in the
  30419. whole translation unit, or -1 if not present in the current OpenMP
  30420. context but might be present in another OpenMP context in the same
  30421. TU.
  30422. -- Target Hook: bool TARGET_GOACC_VALIDATE_DIMS (tree DECL, int *DIMS,
  30423. int FN_LEVEL, unsigned USED)
  30424. This hook should check the launch dimensions provided for an
  30425. OpenACC compute region, or routine. Defaulted values are
  30426. represented as -1 and non-constant values as 0. The FN_LEVEL is
  30427. negative for the function corresponding to the compute region. For
  30428. a routine it is the outermost level at which partitioned execution
  30429. may be spawned. The hook should verify non-default values. If
  30430. DECL is NULL, global defaults are being validated and unspecified
  30431. defaults should be filled in. Diagnostics should be issued as
  30432. appropriate. Return true, if changes have been made. You must
  30433. override this hook to provide dimensions larger than 1.
  30434. -- Target Hook: int TARGET_GOACC_DIM_LIMIT (int AXIS)
  30435. This hook should return the maximum size of a particular dimension,
  30436. or zero if unbounded.
  30437. -- Target Hook: bool TARGET_GOACC_FORK_JOIN (gcall *CALL, const int
  30438. *DIMS, bool IS_FORK)
  30439. This hook can be used to convert IFN_GOACC_FORK and IFN_GOACC_JOIN
  30440. function calls to target-specific gimple, or indicate whether they
  30441. should be retained. It is executed during the oacc_device_lower
  30442. pass. It should return true, if the call should be retained. It
  30443. should return false, if it is to be deleted (either because
  30444. target-specific gimple has been inserted before it, or there is no
  30445. need for it). The default hook returns false, if there are no RTL
  30446. expanders for them.
  30447. -- Target Hook: void TARGET_GOACC_REDUCTION (gcall *CALL)
  30448. This hook is used by the oacc_transform pass to expand calls to the
  30449. GOACC_REDUCTION internal function, into a sequence of gimple
  30450. instructions. CALL is gimple statement containing the call to the
  30451. function. This hook removes statement CALL after the expanded
  30452. sequence has been inserted. This hook is also responsible for
  30453. allocating any storage for reductions when necessary.
  30454. -- Target Hook: tree TARGET_PREFERRED_ELSE_VALUE (unsigned IFN, tree
  30455. TYPE, unsigned NOPS, tree *OPS)
  30456. This hook returns the target's preferred final argument for a call
  30457. to conditional internal function IFN (really of type
  30458. 'internal_fn'). TYPE specifies the return type of the function and
  30459. OPS are the operands to the conditional operation, of which there
  30460. are NOPS.
  30461. For example, if IFN is 'IFN_COND_ADD', the hook returns a value of
  30462. type TYPE that should be used when 'OPS[0]' and 'OPS[1]' are
  30463. conditionally added together.
  30464. This hook is only relevant if the target supports conditional
  30465. patterns like 'cond_addM'. The default implementation returns a
  30466. zero constant of type TYPE.
  30467. 
  30468. File: gccint.info, Node: Anchored Addresses, Next: Condition Code, Prev: Addressing Modes, Up: Target Macros
  30469. 18.14 Anchored Addresses
  30470. ========================
  30471. GCC usually addresses every static object as a separate entity. For
  30472. example, if we have:
  30473. static int a, b, c;
  30474. int foo (void) { return a + b + c; }
  30475. the code for 'foo' will usually calculate three separate symbolic
  30476. addresses: those of 'a', 'b' and 'c'. On some targets, it would be
  30477. better to calculate just one symbolic address and access the three
  30478. variables relative to it. The equivalent pseudocode would be something
  30479. like:
  30480. int foo (void)
  30481. {
  30482. register int *xr = &x;
  30483. return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
  30484. }
  30485. (which isn't valid C). We refer to shared addresses like 'x' as
  30486. "section anchors". Their use is controlled by '-fsection-anchors'.
  30487. The hooks below describe the target properties that GCC needs to know
  30488. in order to make effective use of section anchors. It won't use section
  30489. anchors at all unless either 'TARGET_MIN_ANCHOR_OFFSET' or
  30490. 'TARGET_MAX_ANCHOR_OFFSET' is set to a nonzero value.
  30491. -- Target Hook: HOST_WIDE_INT TARGET_MIN_ANCHOR_OFFSET
  30492. The minimum offset that should be applied to a section anchor. On
  30493. most targets, it should be the smallest offset that can be applied
  30494. to a base register while still giving a legitimate address for
  30495. every mode. The default value is 0.
  30496. -- Target Hook: HOST_WIDE_INT TARGET_MAX_ANCHOR_OFFSET
  30497. Like 'TARGET_MIN_ANCHOR_OFFSET', but the maximum (inclusive) offset
  30498. that should be applied to section anchors. The default value is 0.
  30499. -- Target Hook: void TARGET_ASM_OUTPUT_ANCHOR (rtx X)
  30500. Write the assembly code to define section anchor X, which is a
  30501. 'SYMBOL_REF' for which 'SYMBOL_REF_ANCHOR_P (X)' is true. The hook
  30502. is called with the assembly output position set to the beginning of
  30503. 'SYMBOL_REF_BLOCK (X)'.
  30504. If 'ASM_OUTPUT_DEF' is available, the hook's default definition
  30505. uses it to define the symbol as '. + SYMBOL_REF_BLOCK_OFFSET (X)'.
  30506. If 'ASM_OUTPUT_DEF' is not available, the hook's default definition
  30507. is 'NULL', which disables the use of section anchors altogether.
  30508. -- Target Hook: bool TARGET_USE_ANCHORS_FOR_SYMBOL_P (const_rtx X)
  30509. Return true if GCC should attempt to use anchors to access
  30510. 'SYMBOL_REF' X. You can assume 'SYMBOL_REF_HAS_BLOCK_INFO_P (X)'
  30511. and '!SYMBOL_REF_ANCHOR_P (X)'.
  30512. The default version is correct for most targets, but you might need
  30513. to intercept this hook to handle things like target-specific
  30514. attributes or target-specific sections.
  30515. 
  30516. File: gccint.info, Node: Condition Code, Next: Costs, Prev: Anchored Addresses, Up: Target Macros
  30517. 18.15 Condition Code Status
  30518. ===========================
  30519. The macros in this section can be split in two families, according to
  30520. the two ways of representing condition codes in GCC.
  30521. The first representation is the so called '(cc0)' representation (*note
  30522. Jump Patterns::), where all instructions can have an implicit clobber of
  30523. the condition codes. The second is the condition code register
  30524. representation, which provides better schedulability for architectures
  30525. that do have a condition code register, but on which most instructions
  30526. do not affect it. The latter category includes most RISC machines.
  30527. The implicit clobbering poses a strong restriction on the placement of
  30528. the definition and use of the condition code. In the past the
  30529. definition and use were always adjacent. However, recent changes to
  30530. support trapping arithmatic may result in the definition and user being
  30531. in different blocks. Thus, there may be a 'NOTE_INSN_BASIC_BLOCK'
  30532. between them. Additionally, the definition may be the source of
  30533. exception handling edges.
  30534. These restrictions can prevent important optimizations on some
  30535. machines. For example, on the IBM RS/6000, there is a delay for taken
  30536. branches unless the condition code register is set three instructions
  30537. earlier than the conditional branch. The instruction scheduler cannot
  30538. perform this optimization if it is not permitted to separate the
  30539. definition and use of the condition code register.
  30540. For this reason, it is possible and suggested to use a register to
  30541. represent the condition code for new ports. If there is a specific
  30542. condition code register in the machine, use a hard register. If the
  30543. condition code or comparison result can be placed in any general
  30544. register, or if there are multiple condition registers, use a pseudo
  30545. register. Registers used to store the condition code value will usually
  30546. have a mode that is in class 'MODE_CC'.
  30547. Alternatively, you can use 'BImode' if the comparison operator is
  30548. specified already in the compare instruction. In this case, you are not
  30549. interested in most macros in this section.
  30550. * Menu:
  30551. * CC0 Condition Codes:: Old style representation of condition codes.
  30552. * MODE_CC Condition Codes:: Modern representation of condition codes.
  30553. 
  30554. File: gccint.info, Node: CC0 Condition Codes, Next: MODE_CC Condition Codes, Up: Condition Code
  30555. 18.15.1 Representation of condition codes using '(cc0)'
  30556. -------------------------------------------------------
  30557. The file 'conditions.h' defines a variable 'cc_status' to describe how
  30558. the condition code was computed (in case the interpretation of the
  30559. condition code depends on the instruction that it was set by). This
  30560. variable contains the RTL expressions on which the condition code is
  30561. currently based, and several standard flags.
  30562. Sometimes additional machine-specific flags must be defined in the
  30563. machine description header file. It can also add additional
  30564. machine-specific information by defining 'CC_STATUS_MDEP'.
  30565. -- Macro: CC_STATUS_MDEP
  30566. C code for a data type which is used for declaring the 'mdep'
  30567. component of 'cc_status'. It defaults to 'int'.
  30568. This macro is not used on machines that do not use 'cc0'.
  30569. -- Macro: CC_STATUS_MDEP_INIT
  30570. A C expression to initialize the 'mdep' field to "empty". The
  30571. default definition does nothing, since most machines don't use the
  30572. field anyway. If you want to use the field, you should probably
  30573. define this macro to initialize it.
  30574. This macro is not used on machines that do not use 'cc0'.
  30575. -- Macro: NOTICE_UPDATE_CC (EXP, INSN)
  30576. A C compound statement to set the components of 'cc_status'
  30577. appropriately for an insn INSN whose body is EXP. It is this
  30578. macro's responsibility to recognize insns that set the condition
  30579. code as a byproduct of other activity as well as those that
  30580. explicitly set '(cc0)'.
  30581. This macro is not used on machines that do not use 'cc0'.
  30582. If there are insns that do not set the condition code but do alter
  30583. other machine registers, this macro must check to see whether they
  30584. invalidate the expressions that the condition code is recorded as
  30585. reflecting. For example, on the 68000, insns that store in address
  30586. registers do not set the condition code, which means that usually
  30587. 'NOTICE_UPDATE_CC' can leave 'cc_status' unaltered for such insns.
  30588. But suppose that the previous insn set the condition code based on
  30589. location 'a4@(102)' and the current insn stores a new value in
  30590. 'a4'. Although the condition code is not changed by this, it will
  30591. no longer be true that it reflects the contents of 'a4@(102)'.
  30592. Therefore, 'NOTICE_UPDATE_CC' must alter 'cc_status' in this case
  30593. to say that nothing is known about the condition code value.
  30594. The definition of 'NOTICE_UPDATE_CC' must be prepared to deal with
  30595. the results of peephole optimization: insns whose patterns are
  30596. 'parallel' RTXs containing various 'reg', 'mem' or constants which
  30597. are just the operands. The RTL structure of these insns is not
  30598. sufficient to indicate what the insns actually do. What
  30599. 'NOTICE_UPDATE_CC' should do when it sees one is just to run
  30600. 'CC_STATUS_INIT'.
  30601. A possible definition of 'NOTICE_UPDATE_CC' is to call a function
  30602. that looks at an attribute (*note Insn Attributes::) named, for
  30603. example, 'cc'. This avoids having detailed information about
  30604. patterns in two places, the 'md' file and in 'NOTICE_UPDATE_CC'.
  30605. 
  30606. File: gccint.info, Node: MODE_CC Condition Codes, Prev: CC0 Condition Codes, Up: Condition Code
  30607. 18.15.2 Representation of condition codes using registers
  30608. ---------------------------------------------------------
  30609. -- Macro: SELECT_CC_MODE (OP, X, Y)
  30610. On many machines, the condition code may be produced by other
  30611. instructions than compares, for example the branch can use directly
  30612. the condition code set by a subtract instruction. However, on some
  30613. machines when the condition code is set this way some bits (such as
  30614. the overflow bit) are not set in the same way as a test
  30615. instruction, so that a different branch instruction must be used
  30616. for some conditional branches. When this happens, use the machine
  30617. mode of the condition code register to record different formats of
  30618. the condition code register. Modes can also be used to record
  30619. which compare instruction (e.g. a signed or an unsigned comparison)
  30620. produced the condition codes.
  30621. If other modes than 'CCmode' are required, add them to
  30622. 'MACHINE-modes.def' and define 'SELECT_CC_MODE' to choose a mode
  30623. given an operand of a compare. This is needed because the modes
  30624. have to be chosen not only during RTL generation but also, for
  30625. example, by instruction combination. The result of
  30626. 'SELECT_CC_MODE' should be consistent with the mode used in the
  30627. patterns; for example to support the case of the add on the SPARC
  30628. discussed above, we have the pattern
  30629. (define_insn ""
  30630. [(set (reg:CCNZ 0)
  30631. (compare:CCNZ
  30632. (plus:SI (match_operand:SI 0 "register_operand" "%r")
  30633. (match_operand:SI 1 "arith_operand" "rI"))
  30634. (const_int 0)))]
  30635. ""
  30636. "...")
  30637. together with a 'SELECT_CC_MODE' that returns 'CCNZmode' for
  30638. comparisons whose argument is a 'plus':
  30639. #define SELECT_CC_MODE(OP,X,Y) \
  30640. (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT \
  30641. ? ((OP == LT || OP == LE || OP == GT || OP == GE) \
  30642. ? CCFPEmode : CCFPmode) \
  30643. : ((GET_CODE (X) == PLUS || GET_CODE (X) == MINUS \
  30644. || GET_CODE (X) == NEG || GET_CODE (x) == ASHIFT) \
  30645. ? CCNZmode : CCmode))
  30646. Another reason to use modes is to retain information on which
  30647. operands were used by the comparison; see 'REVERSIBLE_CC_MODE'
  30648. later in this section.
  30649. You should define this macro if and only if you define extra CC
  30650. modes in 'MACHINE-modes.def'.
  30651. -- Target Hook: void TARGET_CANONICALIZE_COMPARISON (int *CODE, rtx
  30652. *OP0, rtx *OP1, bool OP0_PRESERVE_VALUE)
  30653. On some machines not all possible comparisons are defined, but you
  30654. can convert an invalid comparison into a valid one. For example,
  30655. the Alpha does not have a 'GT' comparison, but you can use an 'LT'
  30656. comparison instead and swap the order of the operands.
  30657. On such machines, implement this hook to do any required
  30658. conversions. CODE is the initial comparison code and OP0 and OP1
  30659. are the left and right operands of the comparison, respectively.
  30660. If OP0_PRESERVE_VALUE is 'true' the implementation is not allowed
  30661. to change the value of OP0 since the value might be used in RTXs
  30662. which aren't comparisons. E.g. the implementation is not allowed
  30663. to swap operands in that case.
  30664. GCC will not assume that the comparison resulting from this macro
  30665. is valid but will see if the resulting insn matches a pattern in
  30666. the 'md' file.
  30667. You need not to implement this hook if it would never change the
  30668. comparison code or operands.
  30669. -- Macro: REVERSIBLE_CC_MODE (MODE)
  30670. A C expression whose value is one if it is always safe to reverse a
  30671. comparison whose mode is MODE. If 'SELECT_CC_MODE' can ever return
  30672. MODE for a floating-point inequality comparison, then
  30673. 'REVERSIBLE_CC_MODE (MODE)' must be zero.
  30674. You need not define this macro if it would always returns zero or
  30675. if the floating-point format is anything other than
  30676. 'IEEE_FLOAT_FORMAT'. For example, here is the definition used on
  30677. the SPARC, where floating-point inequality comparisons are given
  30678. either 'CCFPEmode' or 'CCFPmode':
  30679. #define REVERSIBLE_CC_MODE(MODE) \
  30680. ((MODE) != CCFPEmode && (MODE) != CCFPmode)
  30681. -- Macro: REVERSE_CONDITION (CODE, MODE)
  30682. A C expression whose value is reversed condition code of the CODE
  30683. for comparison done in CC_MODE MODE. The macro is used only in
  30684. case 'REVERSIBLE_CC_MODE (MODE)' is nonzero. Define this macro in
  30685. case machine has some non-standard way how to reverse certain
  30686. conditionals. For instance in case all floating point conditions
  30687. are non-trapping, compiler may freely convert unordered compares to
  30688. ordered ones. Then definition may look like:
  30689. #define REVERSE_CONDITION(CODE, MODE) \
  30690. ((MODE) != CCFPmode ? reverse_condition (CODE) \
  30691. : reverse_condition_maybe_unordered (CODE))
  30692. -- Target Hook: bool TARGET_FIXED_CONDITION_CODE_REGS (unsigned int
  30693. *P1, unsigned int *P2)
  30694. On targets which do not use '(cc0)', and which use a hard register
  30695. rather than a pseudo-register to hold condition codes, the regular
  30696. CSE passes are often not able to identify cases in which the hard
  30697. register is set to a common value. Use this hook to enable a small
  30698. pass which optimizes such cases. This hook should return true to
  30699. enable this pass, and it should set the integers to which its
  30700. arguments point to the hard register numbers used for condition
  30701. codes. When there is only one such register, as is true on most
  30702. systems, the integer pointed to by P2 should be set to
  30703. 'INVALID_REGNUM'.
  30704. The default version of this hook returns false.
  30705. -- Target Hook: machine_mode TARGET_CC_MODES_COMPATIBLE (machine_mode
  30706. M1, machine_mode M2)
  30707. On targets which use multiple condition code modes in class
  30708. 'MODE_CC', it is sometimes the case that a comparison can be
  30709. validly done in more than one mode. On such a system, define this
  30710. target hook to take two mode arguments and to return a mode in
  30711. which both comparisons may be validly done. If there is no such
  30712. mode, return 'VOIDmode'.
  30713. The default version of this hook checks whether the modes are the
  30714. same. If they are, it returns that mode. If they are different,
  30715. it returns 'VOIDmode'.
  30716. -- Target Hook: unsigned int TARGET_FLAGS_REGNUM
  30717. If the target has a dedicated flags register, and it needs to use
  30718. the post-reload comparison elimination pass, or the delay slot
  30719. filler pass, then this value should be set appropriately.
  30720. 
  30721. File: gccint.info, Node: Costs, Next: Scheduling, Prev: Condition Code, Up: Target Macros
  30722. 18.16 Describing Relative Costs of Operations
  30723. =============================================
  30724. These macros let you describe the relative speed of various operations
  30725. on the target machine.
  30726. -- Macro: REGISTER_MOVE_COST (MODE, FROM, TO)
  30727. A C expression for the cost of moving data of mode MODE from a
  30728. register in class FROM to one in class TO. The classes are
  30729. expressed using the enumeration values such as 'GENERAL_REGS'. A
  30730. value of 2 is the default; other values are interpreted relative to
  30731. that.
  30732. It is not required that the cost always equal 2 when FROM is the
  30733. same as TO; on some machines it is expensive to move between
  30734. registers if they are not general registers.
  30735. If reload sees an insn consisting of a single 'set' between two
  30736. hard registers, and if 'REGISTER_MOVE_COST' applied to their
  30737. classes returns a value of 2, reload does not check to ensure that
  30738. the constraints of the insn are met. Setting a cost of other than
  30739. 2 will allow reload to verify that the constraints are met. You
  30740. should do this if the 'movM' pattern's constraints do not allow
  30741. such copying.
  30742. These macros are obsolete, new ports should use the target hook
  30743. 'TARGET_REGISTER_MOVE_COST' instead.
  30744. -- Target Hook: int TARGET_REGISTER_MOVE_COST (machine_mode MODE,
  30745. reg_class_t FROM, reg_class_t TO)
  30746. This target hook should return the cost of moving data of mode MODE
  30747. from a register in class FROM to one in class TO. The classes are
  30748. expressed using the enumeration values such as 'GENERAL_REGS'. A
  30749. value of 2 is the default; other values are interpreted relative to
  30750. that.
  30751. It is not required that the cost always equal 2 when FROM is the
  30752. same as TO; on some machines it is expensive to move between
  30753. registers if they are not general registers.
  30754. If reload sees an insn consisting of a single 'set' between two
  30755. hard registers, and if 'TARGET_REGISTER_MOVE_COST' applied to their
  30756. classes returns a value of 2, reload does not check to ensure that
  30757. the constraints of the insn are met. Setting a cost of other than
  30758. 2 will allow reload to verify that the constraints are met. You
  30759. should do this if the 'movM' pattern's constraints do not allow
  30760. such copying.
  30761. The default version of this function returns 2.
  30762. -- Macro: MEMORY_MOVE_COST (MODE, CLASS, IN)
  30763. A C expression for the cost of moving data of mode MODE between a
  30764. register of class CLASS and memory; IN is zero if the value is to
  30765. be written to memory, nonzero if it is to be read in. This cost is
  30766. relative to those in 'REGISTER_MOVE_COST'. If moving between
  30767. registers and memory is more expensive than between two registers,
  30768. you should define this macro to express the relative cost.
  30769. If you do not define this macro, GCC uses a default cost of 4 plus
  30770. the cost of copying via a secondary reload register, if one is
  30771. needed. If your machine requires a secondary reload register to
  30772. copy between memory and a register of CLASS but the reload
  30773. mechanism is more complex than copying via an intermediate, define
  30774. this macro to reflect the actual cost of the move.
  30775. GCC defines the function 'memory_move_secondary_cost' if secondary
  30776. reloads are needed. It computes the costs due to copying via a
  30777. secondary register. If your machine copies from memory using a
  30778. secondary register in the conventional way but the default base
  30779. value of 4 is not correct for your machine, define this macro to
  30780. add some other value to the result of that function. The arguments
  30781. to that function are the same as to this macro.
  30782. These macros are obsolete, new ports should use the target hook
  30783. 'TARGET_MEMORY_MOVE_COST' instead.
  30784. -- Target Hook: int TARGET_MEMORY_MOVE_COST (machine_mode MODE,
  30785. reg_class_t RCLASS, bool IN)
  30786. This target hook should return the cost of moving data of mode MODE
  30787. between a register of class RCLASS and memory; IN is 'false' if the
  30788. value is to be written to memory, 'true' if it is to be read in.
  30789. This cost is relative to those in 'TARGET_REGISTER_MOVE_COST'. If
  30790. moving between registers and memory is more expensive than between
  30791. two registers, you should add this target hook to express the
  30792. relative cost.
  30793. If you do not add this target hook, GCC uses a default cost of 4
  30794. plus the cost of copying via a secondary reload register, if one is
  30795. needed. If your machine requires a secondary reload register to
  30796. copy between memory and a register of RCLASS but the reload
  30797. mechanism is more complex than copying via an intermediate, use
  30798. this target hook to reflect the actual cost of the move.
  30799. GCC defines the function 'memory_move_secondary_cost' if secondary
  30800. reloads are needed. It computes the costs due to copying via a
  30801. secondary register. If your machine copies from memory using a
  30802. secondary register in the conventional way but the default base
  30803. value of 4 is not correct for your machine, use this target hook to
  30804. add some other value to the result of that function. The arguments
  30805. to that function are the same as to this target hook.
  30806. -- Macro: BRANCH_COST (SPEED_P, PREDICTABLE_P)
  30807. A C expression for the cost of a branch instruction. A value of 1
  30808. is the default; other values are interpreted relative to that.
  30809. Parameter SPEED_P is true when the branch in question should be
  30810. optimized for speed. When it is false, 'BRANCH_COST' should return
  30811. a value optimal for code size rather than performance.
  30812. PREDICTABLE_P is true for well-predicted branches. On many
  30813. architectures the 'BRANCH_COST' can be reduced then.
  30814. Here are additional macros which do not specify precise relative costs,
  30815. but only that certain actions are more expensive than GCC would
  30816. ordinarily expect.
  30817. -- Macro: SLOW_BYTE_ACCESS
  30818. Define this macro as a C expression which is nonzero if accessing
  30819. less than a word of memory (i.e. a 'char' or a 'short') is no
  30820. faster than accessing a word of memory, i.e., if such access
  30821. require more than one instruction or if there is no difference in
  30822. cost between byte and (aligned) word loads.
  30823. When this macro is not defined, the compiler will access a field by
  30824. finding the smallest containing object; when it is defined, a
  30825. fullword load will be used if alignment permits. Unless bytes
  30826. accesses are faster than word accesses, using word accesses is
  30827. preferable since it may eliminate subsequent memory access if
  30828. subsequent accesses occur to other fields in the same word of the
  30829. structure, but to different bytes.
  30830. -- Target Hook: bool TARGET_SLOW_UNALIGNED_ACCESS (machine_mode MODE,
  30831. unsigned int ALIGN)
  30832. This hook returns true if memory accesses described by the MODE and
  30833. ALIGNMENT parameters have a cost many times greater than aligned
  30834. accesses, for example if they are emulated in a trap handler. This
  30835. hook is invoked only for unaligned accesses, i.e. when 'ALIGNMENT <
  30836. GET_MODE_ALIGNMENT (MODE)'.
  30837. When this hook returns true, the compiler will act as if
  30838. 'STRICT_ALIGNMENT' were true when generating code for block moves.
  30839. This can cause significantly more instructions to be produced.
  30840. Therefore, do not make this hook return true if unaligned accesses
  30841. only add a cycle or two to the time for a memory access.
  30842. The hook must return true whenever 'STRICT_ALIGNMENT' is true. The
  30843. default implementation returns 'STRICT_ALIGNMENT'.
  30844. -- Macro: MOVE_RATIO (SPEED)
  30845. The threshold of number of scalar memory-to-memory move insns,
  30846. _below_ which a sequence of insns should be generated instead of a
  30847. string move insn or a library call. Increasing the value will
  30848. always make code faster, but eventually incurs high cost in
  30849. increased code size.
  30850. Note that on machines where the corresponding move insn is a
  30851. 'define_expand' that emits a sequence of insns, this macro counts
  30852. the number of such sequences.
  30853. The parameter SPEED is true if the code is currently being
  30854. optimized for speed rather than size.
  30855. If you don't define this, a reasonable default is used.
  30856. -- Target Hook: bool TARGET_USE_BY_PIECES_INFRASTRUCTURE_P (unsigned
  30857. HOST_WIDE_INT SIZE, unsigned int ALIGNMENT, enum
  30858. by_pieces_operation OP, bool SPEED_P)
  30859. GCC will attempt several strategies when asked to copy between two
  30860. areas of memory, or to set, clear or store to memory, for example
  30861. when copying a 'struct'. The 'by_pieces' infrastructure implements
  30862. such memory operations as a sequence of load, store or move insns.
  30863. Alternate strategies are to expand the 'cpymem' or 'setmem' optabs,
  30864. to emit a library call, or to emit unit-by-unit, loop-based
  30865. operations.
  30866. This target hook should return true if, for a memory operation with
  30867. a given SIZE and ALIGNMENT, using the 'by_pieces' infrastructure is
  30868. expected to result in better code generation. Both SIZE and
  30869. ALIGNMENT are measured in terms of storage units.
  30870. The parameter OP is one of: 'CLEAR_BY_PIECES', 'MOVE_BY_PIECES',
  30871. 'SET_BY_PIECES', 'STORE_BY_PIECES' or 'COMPARE_BY_PIECES'. These
  30872. describe the type of memory operation under consideration.
  30873. The parameter SPEED_P is true if the code is currently being
  30874. optimized for speed rather than size.
  30875. Returning true for higher values of SIZE can improve code
  30876. generation for speed if the target does not provide an
  30877. implementation of the 'cpymem' or 'setmem' standard names, if the
  30878. 'cpymem' or 'setmem' implementation would be more expensive than a
  30879. sequence of insns, or if the overhead of a library call would
  30880. dominate that of the body of the memory operation.
  30881. Returning true for higher values of 'size' may also cause an
  30882. increase in code size, for example where the number of insns
  30883. emitted to perform a move would be greater than that of a library
  30884. call.
  30885. -- Target Hook: int TARGET_COMPARE_BY_PIECES_BRANCH_RATIO (machine_mode
  30886. MODE)
  30887. When expanding a block comparison in MODE, gcc can try to reduce
  30888. the number of branches at the expense of more memory operations.
  30889. This hook allows the target to override the default choice. It
  30890. should return the factor by which branches should be reduced over
  30891. the plain expansion with one comparison per MODE-sized piece. A
  30892. port can also prevent a particular mode from being used for block
  30893. comparisons by returning a negative number from this hook.
  30894. -- Macro: MOVE_MAX_PIECES
  30895. A C expression used by 'move_by_pieces' to determine the largest
  30896. unit a load or store used to copy memory is. Defaults to
  30897. 'MOVE_MAX'.
  30898. -- Macro: STORE_MAX_PIECES
  30899. A C expression used by 'store_by_pieces' to determine the largest
  30900. unit a store used to memory is. Defaults to 'MOVE_MAX_PIECES', or
  30901. two times the size of 'HOST_WIDE_INT', whichever is smaller.
  30902. -- Macro: COMPARE_MAX_PIECES
  30903. A C expression used by 'compare_by_pieces' to determine the largest
  30904. unit a load or store used to compare memory is. Defaults to
  30905. 'MOVE_MAX_PIECES'.
  30906. -- Macro: CLEAR_RATIO (SPEED)
  30907. The threshold of number of scalar move insns, _below_ which a
  30908. sequence of insns should be generated to clear memory instead of a
  30909. string clear insn or a library call. Increasing the value will
  30910. always make code faster, but eventually incurs high cost in
  30911. increased code size.
  30912. The parameter SPEED is true if the code is currently being
  30913. optimized for speed rather than size.
  30914. If you don't define this, a reasonable default is used.
  30915. -- Macro: SET_RATIO (SPEED)
  30916. The threshold of number of scalar move insns, _below_ which a
  30917. sequence of insns should be generated to set memory to a constant
  30918. value, instead of a block set insn or a library call. Increasing
  30919. the value will always make code faster, but eventually incurs high
  30920. cost in increased code size.
  30921. The parameter SPEED is true if the code is currently being
  30922. optimized for speed rather than size.
  30923. If you don't define this, it defaults to the value of 'MOVE_RATIO'.
  30924. -- Macro: USE_LOAD_POST_INCREMENT (MODE)
  30925. A C expression used to determine whether a load postincrement is a
  30926. good thing to use for a given mode. Defaults to the value of
  30927. 'HAVE_POST_INCREMENT'.
  30928. -- Macro: USE_LOAD_POST_DECREMENT (MODE)
  30929. A C expression used to determine whether a load postdecrement is a
  30930. good thing to use for a given mode. Defaults to the value of
  30931. 'HAVE_POST_DECREMENT'.
  30932. -- Macro: USE_LOAD_PRE_INCREMENT (MODE)
  30933. A C expression used to determine whether a load preincrement is a
  30934. good thing to use for a given mode. Defaults to the value of
  30935. 'HAVE_PRE_INCREMENT'.
  30936. -- Macro: USE_LOAD_PRE_DECREMENT (MODE)
  30937. A C expression used to determine whether a load predecrement is a
  30938. good thing to use for a given mode. Defaults to the value of
  30939. 'HAVE_PRE_DECREMENT'.
  30940. -- Macro: USE_STORE_POST_INCREMENT (MODE)
  30941. A C expression used to determine whether a store postincrement is a
  30942. good thing to use for a given mode. Defaults to the value of
  30943. 'HAVE_POST_INCREMENT'.
  30944. -- Macro: USE_STORE_POST_DECREMENT (MODE)
  30945. A C expression used to determine whether a store postdecrement is a
  30946. good thing to use for a given mode. Defaults to the value of
  30947. 'HAVE_POST_DECREMENT'.
  30948. -- Macro: USE_STORE_PRE_INCREMENT (MODE)
  30949. This macro is used to determine whether a store preincrement is a
  30950. good thing to use for a given mode. Defaults to the value of
  30951. 'HAVE_PRE_INCREMENT'.
  30952. -- Macro: USE_STORE_PRE_DECREMENT (MODE)
  30953. This macro is used to determine whether a store predecrement is a
  30954. good thing to use for a given mode. Defaults to the value of
  30955. 'HAVE_PRE_DECREMENT'.
  30956. -- Macro: NO_FUNCTION_CSE
  30957. Define this macro to be true if it is as good or better to call a
  30958. constant function address than to call an address kept in a
  30959. register.
  30960. -- Macro: LOGICAL_OP_NON_SHORT_CIRCUIT
  30961. Define this macro if a non-short-circuit operation produced by
  30962. 'fold_range_test ()' is optimal. This macro defaults to true if
  30963. 'BRANCH_COST' is greater than or equal to the value 2.
  30964. -- Target Hook: bool TARGET_OPTAB_SUPPORTED_P (int OP, machine_mode
  30965. MODE1, machine_mode MODE2, optimization_type OPT_TYPE)
  30966. Return true if the optimizers should use optab OP with modes MODE1
  30967. and MODE2 for optimization type OPT_TYPE. The optab is known to
  30968. have an associated '.md' instruction whose C condition is true.
  30969. MODE2 is only meaningful for conversion optabs; for direct optabs
  30970. it is a copy of MODE1.
  30971. For example, when called with OP equal to 'rint_optab' and MODE1
  30972. equal to 'DFmode', the hook should say whether the optimizers
  30973. should use optab 'rintdf2'.
  30974. The default hook returns true for all inputs.
  30975. -- Target Hook: bool TARGET_RTX_COSTS (rtx X, machine_mode MODE, int
  30976. OUTER_CODE, int OPNO, int *TOTAL, bool SPEED)
  30977. This target hook describes the relative costs of RTL expressions.
  30978. The cost may depend on the precise form of the expression, which is
  30979. available for examination in X, and the fact that X appears as
  30980. operand OPNO of an expression with rtx code OUTER_CODE. That is,
  30981. the hook can assume that there is some rtx Y such that 'GET_CODE
  30982. (Y) == OUTER_CODE' and such that either (a) 'XEXP (Y, OPNO) == X'
  30983. or (b) 'XVEC (Y, OPNO)' contains X.
  30984. MODE is X's machine mode, or for cases like 'const_int' that do not
  30985. have a mode, the mode in which X is used.
  30986. In implementing this hook, you can use the construct 'COSTS_N_INSNS
  30987. (N)' to specify a cost equal to N fast instructions.
  30988. On entry to the hook, '*TOTAL' contains a default estimate for the
  30989. cost of the expression. The hook should modify this value as
  30990. necessary. Traditionally, the default costs are 'COSTS_N_INSNS
  30991. (5)' for multiplications, 'COSTS_N_INSNS (7)' for division and
  30992. modulus operations, and 'COSTS_N_INSNS (1)' for all other
  30993. operations.
  30994. When optimizing for code size, i.e. when 'speed' is false, this
  30995. target hook should be used to estimate the relative size cost of an
  30996. expression, again relative to 'COSTS_N_INSNS'.
  30997. The hook returns true when all subexpressions of X have been
  30998. processed, and false when 'rtx_cost' should recurse.
  30999. -- Target Hook: int TARGET_ADDRESS_COST (rtx ADDRESS, machine_mode
  31000. MODE, addr_space_t AS, bool SPEED)
  31001. This hook computes the cost of an addressing mode that contains
  31002. ADDRESS. If not defined, the cost is computed from the ADDRESS
  31003. expression and the 'TARGET_RTX_COST' hook.
  31004. For most CISC machines, the default cost is a good approximation of
  31005. the true cost of the addressing mode. However, on RISC machines,
  31006. all instructions normally have the same length and execution time.
  31007. Hence all addresses will have equal costs.
  31008. In cases where more than one form of an address is known, the form
  31009. with the lowest cost will be used. If multiple forms have the
  31010. same, lowest, cost, the one that is the most complex will be used.
  31011. For example, suppose an address that is equal to the sum of a
  31012. register and a constant is used twice in the same basic block.
  31013. When this macro is not defined, the address will be computed in a
  31014. register and memory references will be indirect through that
  31015. register. On machines where the cost of the addressing mode
  31016. containing the sum is no higher than that of a simple indirect
  31017. reference, this will produce an additional instruction and possibly
  31018. require an additional register. Proper specification of this macro
  31019. eliminates this overhead for such machines.
  31020. This hook is never called with an invalid address.
  31021. On machines where an address involving more than one register is as
  31022. cheap as an address computation involving only one register,
  31023. defining 'TARGET_ADDRESS_COST' to reflect this can cause two
  31024. registers to be live over a region of code where only one would
  31025. have been if 'TARGET_ADDRESS_COST' were not defined in that manner.
  31026. This effect should be considered in the definition of this macro.
  31027. Equivalent costs should probably only be given to addresses with
  31028. different numbers of registers on machines with lots of registers.
  31029. -- Target Hook: int TARGET_INSN_COST (rtx_insn *INSN, bool SPEED)
  31030. This target hook describes the relative costs of RTL instructions.
  31031. In implementing this hook, you can use the construct 'COSTS_N_INSNS
  31032. (N)' to specify a cost equal to N fast instructions.
  31033. When optimizing for code size, i.e. when 'speed' is false, this
  31034. target hook should be used to estimate the relative size cost of an
  31035. expression, again relative to 'COSTS_N_INSNS'.
  31036. -- Target Hook: unsigned int TARGET_MAX_NOCE_IFCVT_SEQ_COST (edge E)
  31037. This hook returns a value in the same units as 'TARGET_RTX_COSTS',
  31038. giving the maximum acceptable cost for a sequence generated by the
  31039. RTL if-conversion pass when conditional execution is not available.
  31040. The RTL if-conversion pass attempts to convert conditional
  31041. operations that would require a branch to a series of unconditional
  31042. operations and 'movMODEcc' insns. This hook returns the maximum
  31043. cost of the unconditional instructions and the 'movMODEcc' insns.
  31044. RTL if-conversion is cancelled if the cost of the converted
  31045. sequence is greater than the value returned by this hook.
  31046. 'e' is the edge between the basic block containing the conditional
  31047. branch to the basic block which would be executed if the condition
  31048. were true.
  31049. The default implementation of this hook uses the
  31050. 'max-rtl-if-conversion-[un]predictable' parameters if they are set,
  31051. and uses a multiple of 'BRANCH_COST' otherwise.
  31052. -- Target Hook: bool TARGET_NOCE_CONVERSION_PROFITABLE_P (rtx_insn
  31053. *SEQ, struct noce_if_info *IF_INFO)
  31054. This hook returns true if the instruction sequence 'seq' is a good
  31055. candidate as a replacement for the if-convertible sequence
  31056. described in 'if_info'.
  31057. -- Target Hook: bool TARGET_NEW_ADDRESS_PROFITABLE_P (rtx MEMREF,
  31058. rtx_insn * INSN, rtx NEW_ADDR)
  31059. Return 'true' if it is profitable to replace the address in MEMREF
  31060. with NEW_ADDR. This allows targets to prevent the scheduler from
  31061. undoing address optimizations. The instruction containing the
  31062. memref is INSN. The default implementation returns 'true'.
  31063. -- Target Hook: bool TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P (void)
  31064. This predicate controls the use of the eager delay slot filler to
  31065. disallow speculatively executed instructions being placed in delay
  31066. slots. Targets such as certain MIPS architectures possess both
  31067. branches with and without delay slots. As the eager delay slot
  31068. filler can decrease performance, disabling it is beneficial when
  31069. ordinary branches are available. Use of delay slot branches filled
  31070. using the basic filler is often still desirable as the delay slot
  31071. can hide a pipeline bubble.
  31072. -- Target Hook: HOST_WIDE_INT TARGET_ESTIMATED_POLY_VALUE (poly_int64
  31073. VAL, poly_value_estimate_kind KIND)
  31074. Return an estimate of the runtime value of VAL, for use in things
  31075. like cost calculations or profiling frequencies. KIND is used to
  31076. ask for the minimum, maximum, and likely estimates of the value
  31077. through the 'POLY_VALUE_MIN', 'POLY_VALUE_MAX' and
  31078. 'POLY_VALUE_LIKELY' values. The default implementation returns the
  31079. lowest possible value of VAL.
  31080. 
  31081. File: gccint.info, Node: Scheduling, Next: Sections, Prev: Costs, Up: Target Macros
  31082. 18.17 Adjusting the Instruction Scheduler
  31083. =========================================
  31084. The instruction scheduler may need a fair amount of machine-specific
  31085. adjustment in order to produce good code. GCC provides several target
  31086. hooks for this purpose. It is usually enough to define just a few of
  31087. them: try the first ones in this list first.
  31088. -- Target Hook: int TARGET_SCHED_ISSUE_RATE (void)
  31089. This hook returns the maximum number of instructions that can ever
  31090. issue at the same time on the target machine. The default is one.
  31091. Although the insn scheduler can define itself the possibility of
  31092. issue an insn on the same cycle, the value can serve as an
  31093. additional constraint to issue insns on the same simulated
  31094. processor cycle (see hooks 'TARGET_SCHED_REORDER' and
  31095. 'TARGET_SCHED_REORDER2'). This value must be constant over the
  31096. entire compilation. If you need it to vary depending on what the
  31097. instructions are, you must use 'TARGET_SCHED_VARIABLE_ISSUE'.
  31098. -- Target Hook: int TARGET_SCHED_VARIABLE_ISSUE (FILE *FILE, int
  31099. VERBOSE, rtx_insn *INSN, int MORE)
  31100. This hook is executed by the scheduler after it has scheduled an
  31101. insn from the ready list. It should return the number of insns
  31102. which can still be issued in the current cycle. The default is
  31103. 'MORE - 1' for insns other than 'CLOBBER' and 'USE', which normally
  31104. are not counted against the issue rate. You should define this
  31105. hook if some insns take more machine resources than others, so that
  31106. fewer insns can follow them in the same cycle. FILE is either a
  31107. null pointer, or a stdio stream to write any debug output to.
  31108. VERBOSE is the verbose level provided by '-fsched-verbose-N'. INSN
  31109. is the instruction that was scheduled.
  31110. -- Target Hook: int TARGET_SCHED_ADJUST_COST (rtx_insn *INSN, int
  31111. DEP_TYPE1, rtx_insn *DEP_INSN, int COST, unsigned int DW)
  31112. This function corrects the value of COST based on the relationship
  31113. between INSN and DEP_INSN through a dependence of type dep_type,
  31114. and strength DW. It should return the new value. The default is
  31115. to make no adjustment to COST. This can be used for example to
  31116. specify to the scheduler using the traditional pipeline description
  31117. that an output- or anti-dependence does not incur the same cost as
  31118. a data-dependence. If the scheduler using the automaton based
  31119. pipeline description, the cost of anti-dependence is zero and the
  31120. cost of output-dependence is maximum of one and the difference of
  31121. latency times of the first and the second insns. If these values
  31122. are not acceptable, you could use the hook to modify them too. See
  31123. also *note Processor pipeline description::.
  31124. -- Target Hook: int TARGET_SCHED_ADJUST_PRIORITY (rtx_insn *INSN, int
  31125. PRIORITY)
  31126. This hook adjusts the integer scheduling priority PRIORITY of INSN.
  31127. It should return the new priority. Increase the priority to
  31128. execute INSN earlier, reduce the priority to execute INSN later.
  31129. Do not define this hook if you do not need to adjust the scheduling
  31130. priorities of insns.
  31131. -- Target Hook: int TARGET_SCHED_REORDER (FILE *FILE, int VERBOSE,
  31132. rtx_insn **READY, int *N_READYP, int CLOCK)
  31133. This hook is executed by the scheduler after it has scheduled the
  31134. ready list, to allow the machine description to reorder it (for
  31135. example to combine two small instructions together on 'VLIW'
  31136. machines). FILE is either a null pointer, or a stdio stream to
  31137. write any debug output to. VERBOSE is the verbose level provided
  31138. by '-fsched-verbose-N'. READY is a pointer to the ready list of
  31139. instructions that are ready to be scheduled. N_READYP is a pointer
  31140. to the number of elements in the ready list. The scheduler reads
  31141. the ready list in reverse order, starting with READY[*N_READYP - 1]
  31142. and going to READY[0]. CLOCK is the timer tick of the scheduler.
  31143. You may modify the ready list and the number of ready insns. The
  31144. return value is the number of insns that can issue this cycle;
  31145. normally this is just 'issue_rate'. See also
  31146. 'TARGET_SCHED_REORDER2'.
  31147. -- Target Hook: int TARGET_SCHED_REORDER2 (FILE *FILE, int VERBOSE,
  31148. rtx_insn **READY, int *N_READYP, int CLOCK)
  31149. Like 'TARGET_SCHED_REORDER', but called at a different time. That
  31150. function is called whenever the scheduler starts a new cycle. This
  31151. one is called once per iteration over a cycle, immediately after
  31152. 'TARGET_SCHED_VARIABLE_ISSUE'; it can reorder the ready list and
  31153. return the number of insns to be scheduled in the same cycle.
  31154. Defining this hook can be useful if there are frequent situations
  31155. where scheduling one insn causes other insns to become ready in the
  31156. same cycle. These other insns can then be taken into account
  31157. properly.
  31158. -- Target Hook: bool TARGET_SCHED_MACRO_FUSION_P (void)
  31159. This hook is used to check whether target platform supports macro
  31160. fusion.
  31161. -- Target Hook: bool TARGET_SCHED_MACRO_FUSION_PAIR_P (rtx_insn *PREV,
  31162. rtx_insn *CURR)
  31163. This hook is used to check whether two insns should be macro fused
  31164. for a target microarchitecture. If this hook returns true for the
  31165. given insn pair (PREV and CURR), the scheduler will put them into a
  31166. sched group, and they will not be scheduled apart. The two insns
  31167. will be either two SET insns or a compare and a conditional jump
  31168. and this hook should validate any dependencies needed to fuse the
  31169. two insns together.
  31170. -- Target Hook: void TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK
  31171. (rtx_insn *HEAD, rtx_insn *TAIL)
  31172. This hook is called after evaluation forward dependencies of insns
  31173. in chain given by two parameter values (HEAD and TAIL
  31174. correspondingly) but before insns scheduling of the insn chain.
  31175. For example, it can be used for better insn classification if it
  31176. requires analysis of dependencies. This hook can use backward and
  31177. forward dependencies of the insn scheduler because they are already
  31178. calculated.
  31179. -- Target Hook: void TARGET_SCHED_INIT (FILE *FILE, int VERBOSE, int
  31180. MAX_READY)
  31181. This hook is executed by the scheduler at the beginning of each
  31182. block of instructions that are to be scheduled. FILE is either a
  31183. null pointer, or a stdio stream to write any debug output to.
  31184. VERBOSE is the verbose level provided by '-fsched-verbose-N'.
  31185. MAX_READY is the maximum number of insns in the current scheduling
  31186. region that can be live at the same time. This can be used to
  31187. allocate scratch space if it is needed, e.g. by
  31188. 'TARGET_SCHED_REORDER'.
  31189. -- Target Hook: void TARGET_SCHED_FINISH (FILE *FILE, int VERBOSE)
  31190. This hook is executed by the scheduler at the end of each block of
  31191. instructions that are to be scheduled. It can be used to perform
  31192. cleanup of any actions done by the other scheduling hooks. FILE is
  31193. either a null pointer, or a stdio stream to write any debug output
  31194. to. VERBOSE is the verbose level provided by '-fsched-verbose-N'.
  31195. -- Target Hook: void TARGET_SCHED_INIT_GLOBAL (FILE *FILE, int VERBOSE,
  31196. int OLD_MAX_UID)
  31197. This hook is executed by the scheduler after function level
  31198. initializations. FILE is either a null pointer, or a stdio stream
  31199. to write any debug output to. VERBOSE is the verbose level
  31200. provided by '-fsched-verbose-N'. OLD_MAX_UID is the maximum insn
  31201. uid when scheduling begins.
  31202. -- Target Hook: void TARGET_SCHED_FINISH_GLOBAL (FILE *FILE, int
  31203. VERBOSE)
  31204. This is the cleanup hook corresponding to
  31205. 'TARGET_SCHED_INIT_GLOBAL'. FILE is either a null pointer, or a
  31206. stdio stream to write any debug output to. VERBOSE is the verbose
  31207. level provided by '-fsched-verbose-N'.
  31208. -- Target Hook: rtx TARGET_SCHED_DFA_PRE_CYCLE_INSN (void)
  31209. The hook returns an RTL insn. The automaton state used in the
  31210. pipeline hazard recognizer is changed as if the insn were scheduled
  31211. when the new simulated processor cycle starts. Usage of the hook
  31212. may simplify the automaton pipeline description for some VLIW
  31213. processors. If the hook is defined, it is used only for the
  31214. automaton based pipeline description. The default is not to change
  31215. the state when the new simulated processor cycle starts.
  31216. -- Target Hook: void TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN (void)
  31217. The hook can be used to initialize data used by the previous hook.
  31218. -- Target Hook: rtx_insn * TARGET_SCHED_DFA_POST_CYCLE_INSN (void)
  31219. The hook is analogous to 'TARGET_SCHED_DFA_PRE_CYCLE_INSN' but used
  31220. to changed the state as if the insn were scheduled when the new
  31221. simulated processor cycle finishes.
  31222. -- Target Hook: void TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN (void)
  31223. The hook is analogous to 'TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN' but
  31224. used to initialize data used by the previous hook.
  31225. -- Target Hook: void TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE (void)
  31226. The hook to notify target that the current simulated cycle is about
  31227. to finish. The hook is analogous to
  31228. 'TARGET_SCHED_DFA_PRE_CYCLE_INSN' but used to change the state in
  31229. more complicated situations - e.g., when advancing state on a
  31230. single insn is not enough.
  31231. -- Target Hook: void TARGET_SCHED_DFA_POST_ADVANCE_CYCLE (void)
  31232. The hook to notify target that new simulated cycle has just
  31233. started. The hook is analogous to
  31234. 'TARGET_SCHED_DFA_POST_CYCLE_INSN' but used to change the state in
  31235. more complicated situations - e.g., when advancing state on a
  31236. single insn is not enough.
  31237. -- Target Hook: int TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD
  31238. (void)
  31239. This hook controls better choosing an insn from the ready insn
  31240. queue for the DFA-based insn scheduler. Usually the scheduler
  31241. chooses the first insn from the queue. If the hook returns a
  31242. positive value, an additional scheduler code tries all permutations
  31243. of 'TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD ()' subsequent
  31244. ready insns to choose an insn whose issue will result in maximal
  31245. number of issued insns on the same cycle. For the VLIW processor,
  31246. the code could actually solve the problem of packing simple insns
  31247. into the VLIW insn. Of course, if the rules of VLIW packing are
  31248. described in the automaton.
  31249. This code also could be used for superscalar RISC processors. Let
  31250. us consider a superscalar RISC processor with 3 pipelines. Some
  31251. insns can be executed in pipelines A or B, some insns can be
  31252. executed only in pipelines B or C, and one insn can be executed in
  31253. pipeline B. The processor may issue the 1st insn into A and the
  31254. 2nd one into B. In this case, the 3rd insn will wait for freeing B
  31255. until the next cycle. If the scheduler issues the 3rd insn the
  31256. first, the processor could issue all 3 insns per cycle.
  31257. Actually this code demonstrates advantages of the automaton based
  31258. pipeline hazard recognizer. We try quickly and easy many insn
  31259. schedules to choose the best one.
  31260. The default is no multipass scheduling.
  31261. -- Target Hook: int
  31262. TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD
  31263. (rtx_insn *INSN, int READY_INDEX)
  31264. This hook controls what insns from the ready insn queue will be
  31265. considered for the multipass insn scheduling. If the hook returns
  31266. zero for INSN, the insn will be considered in multipass scheduling.
  31267. Positive return values will remove INSN from consideration on the
  31268. current round of multipass scheduling. Negative return values will
  31269. remove INSN from consideration for given number of cycles.
  31270. Backends should be careful about returning non-zero for highest
  31271. priority instruction at position 0 in the ready list. READY_INDEX
  31272. is passed to allow backends make correct judgements.
  31273. The default is that any ready insns can be chosen to be issued.
  31274. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BEGIN (void
  31275. *DATA, signed char *READY_TRY, int N_READY, bool
  31276. FIRST_CYCLE_INSN_P)
  31277. This hook prepares the target backend for a new round of multipass
  31278. scheduling.
  31279. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_ISSUE (void
  31280. *DATA, signed char *READY_TRY, int N_READY, rtx_insn *INSN,
  31281. const void *PREV_DATA)
  31282. This hook is called when multipass scheduling evaluates instruction
  31283. INSN.
  31284. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BACKTRACK
  31285. (const void *DATA, signed char *READY_TRY, int N_READY)
  31286. This is called when multipass scheduling backtracks from evaluation
  31287. of an instruction.
  31288. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_END (const void
  31289. *DATA)
  31290. This hook notifies the target about the result of the concluded
  31291. current round of multipass scheduling.
  31292. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_INIT (void
  31293. *DATA)
  31294. This hook initializes target-specific data used in multipass
  31295. scheduling.
  31296. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_FINI (void
  31297. *DATA)
  31298. This hook finalizes target-specific data used in multipass
  31299. scheduling.
  31300. -- Target Hook: int TARGET_SCHED_DFA_NEW_CYCLE (FILE *DUMP, int
  31301. VERBOSE, rtx_insn *INSN, int LAST_CLOCK, int CLOCK, int
  31302. *SORT_P)
  31303. This hook is called by the insn scheduler before issuing INSN on
  31304. cycle CLOCK. If the hook returns nonzero, INSN is not issued on
  31305. this processor cycle. Instead, the processor cycle is advanced.
  31306. If *SORT_P is zero, the insn ready queue is not sorted on the new
  31307. cycle start as usually. DUMP and VERBOSE specify the file and
  31308. verbosity level to use for debugging output. LAST_CLOCK and CLOCK
  31309. are, respectively, the processor cycle on which the previous insn
  31310. has been issued, and the current processor cycle.
  31311. -- Target Hook: bool TARGET_SCHED_IS_COSTLY_DEPENDENCE (struct _dep
  31312. *_DEP, int COST, int DISTANCE)
  31313. This hook is used to define which dependences are considered costly
  31314. by the target, so costly that it is not advisable to schedule the
  31315. insns that are involved in the dependence too close to one another.
  31316. The parameters to this hook are as follows: The first parameter
  31317. _DEP is the dependence being evaluated. The second parameter COST
  31318. is the cost of the dependence as estimated by the scheduler, and
  31319. the third parameter DISTANCE is the distance in cycles between the
  31320. two insns. The hook returns 'true' if considering the distance
  31321. between the two insns the dependence between them is considered
  31322. costly by the target, and 'false' otherwise.
  31323. Defining this hook can be useful in multiple-issue out-of-order
  31324. machines, where (a) it's practically hopeless to predict the actual
  31325. data/resource delays, however: (b) there's a better chance to
  31326. predict the actual grouping that will be formed, and (c) correctly
  31327. emulating the grouping can be very important. In such targets one
  31328. may want to allow issuing dependent insns closer to one
  31329. another--i.e., closer than the dependence distance; however, not in
  31330. cases of "costly dependences", which this hooks allows to define.
  31331. -- Target Hook: void TARGET_SCHED_H_I_D_EXTENDED (void)
  31332. This hook is called by the insn scheduler after emitting a new
  31333. instruction to the instruction stream. The hook notifies a target
  31334. backend to extend its per instruction data structures.
  31335. -- Target Hook: void * TARGET_SCHED_ALLOC_SCHED_CONTEXT (void)
  31336. Return a pointer to a store large enough to hold target scheduling
  31337. context.
  31338. -- Target Hook: void TARGET_SCHED_INIT_SCHED_CONTEXT (void *TC, bool
  31339. CLEAN_P)
  31340. Initialize store pointed to by TC to hold target scheduling
  31341. context. It CLEAN_P is true then initialize TC as if scheduler is
  31342. at the beginning of the block. Otherwise, copy the current context
  31343. into TC.
  31344. -- Target Hook: void TARGET_SCHED_SET_SCHED_CONTEXT (void *TC)
  31345. Copy target scheduling context pointed to by TC to the current
  31346. context.
  31347. -- Target Hook: void TARGET_SCHED_CLEAR_SCHED_CONTEXT (void *TC)
  31348. Deallocate internal data in target scheduling context pointed to by
  31349. TC.
  31350. -- Target Hook: void TARGET_SCHED_FREE_SCHED_CONTEXT (void *TC)
  31351. Deallocate a store for target scheduling context pointed to by TC.
  31352. -- Target Hook: int TARGET_SCHED_SPECULATE_INSN (rtx_insn *INSN,
  31353. unsigned int DEP_STATUS, rtx *NEW_PAT)
  31354. This hook is called by the insn scheduler when INSN has only
  31355. speculative dependencies and therefore can be scheduled
  31356. speculatively. The hook is used to check if the pattern of INSN
  31357. has a speculative version and, in case of successful check, to
  31358. generate that speculative pattern. The hook should return 1, if
  31359. the instruction has a speculative form, or -1, if it doesn't.
  31360. REQUEST describes the type of requested speculation. If the return
  31361. value equals 1 then NEW_PAT is assigned the generated speculative
  31362. pattern.
  31363. -- Target Hook: bool TARGET_SCHED_NEEDS_BLOCK_P (unsigned int
  31364. DEP_STATUS)
  31365. This hook is called by the insn scheduler during generation of
  31366. recovery code for INSN. It should return 'true', if the
  31367. corresponding check instruction should branch to recovery code, or
  31368. 'false' otherwise.
  31369. -- Target Hook: rtx TARGET_SCHED_GEN_SPEC_CHECK (rtx_insn *INSN,
  31370. rtx_insn *LABEL, unsigned int DS)
  31371. This hook is called by the insn scheduler to generate a pattern for
  31372. recovery check instruction. If MUTATE_P is zero, then INSN is a
  31373. speculative instruction for which the check should be generated.
  31374. LABEL is either a label of a basic block, where recovery code
  31375. should be emitted, or a null pointer, when requested check doesn't
  31376. branch to recovery code (a simple check). If MUTATE_P is nonzero,
  31377. then a pattern for a branchy check corresponding to a simple check
  31378. denoted by INSN should be generated. In this case LABEL can't be
  31379. null.
  31380. -- Target Hook: void TARGET_SCHED_SET_SCHED_FLAGS (struct spec_info_def
  31381. *SPEC_INFO)
  31382. This hook is used by the insn scheduler to find out what features
  31383. should be enabled/used. The structure *SPEC_INFO should be filled
  31384. in by the target. The structure describes speculation types that
  31385. can be used in the scheduler.
  31386. -- Target Hook: bool TARGET_SCHED_CAN_SPECULATE_INSN (rtx_insn *INSN)
  31387. Some instructions should never be speculated by the schedulers,
  31388. usually because the instruction is too expensive to get this wrong.
  31389. Often such instructions have long latency, and often they are not
  31390. fully modeled in the pipeline descriptions. This hook should
  31391. return 'false' if INSN should not be speculated.
  31392. -- Target Hook: int TARGET_SCHED_SMS_RES_MII (struct ddg *G)
  31393. This hook is called by the swing modulo scheduler to calculate a
  31394. resource-based lower bound which is based on the resources
  31395. available in the machine and the resources required by each
  31396. instruction. The target backend can use G to calculate such bound.
  31397. A very simple lower bound will be used in case this hook is not
  31398. implemented: the total number of instructions divided by the issue
  31399. rate.
  31400. -- Target Hook: bool TARGET_SCHED_DISPATCH (rtx_insn *INSN, int X)
  31401. This hook is called by Haifa Scheduler. It returns true if
  31402. dispatch scheduling is supported in hardware and the condition
  31403. specified in the parameter is true.
  31404. -- Target Hook: void TARGET_SCHED_DISPATCH_DO (rtx_insn *INSN, int X)
  31405. This hook is called by Haifa Scheduler. It performs the operation
  31406. specified in its second parameter.
  31407. -- Target Hook: bool TARGET_SCHED_EXPOSED_PIPELINE
  31408. True if the processor has an exposed pipeline, which means that not
  31409. just the order of instructions is important for correctness when
  31410. scheduling, but also the latencies of operations.
  31411. -- Target Hook: int TARGET_SCHED_REASSOCIATION_WIDTH (unsigned int OPC,
  31412. machine_mode MODE)
  31413. This hook is called by tree reassociator to determine a level of
  31414. parallelism required in output calculations chain.
  31415. -- Target Hook: void TARGET_SCHED_FUSION_PRIORITY (rtx_insn *INSN, int
  31416. MAX_PRI, int *FUSION_PRI, int *PRI)
  31417. This hook is called by scheduling fusion pass. It calculates
  31418. fusion priorities for each instruction passed in by parameter. The
  31419. priorities are returned via pointer parameters.
  31420. INSN is the instruction whose priorities need to be calculated.
  31421. MAX_PRI is the maximum priority can be returned in any cases.
  31422. FUSION_PRI is the pointer parameter through which INSN's fusion
  31423. priority should be calculated and returned. PRI is the pointer
  31424. parameter through which INSN's priority should be calculated and
  31425. returned.
  31426. Same FUSION_PRI should be returned for instructions which should be
  31427. scheduled together. Different PRI should be returned for
  31428. instructions with same FUSION_PRI. FUSION_PRI is the major sort
  31429. key, PRI is the minor sort key. All instructions will be scheduled
  31430. according to the two priorities. All priorities calculated should
  31431. be between 0 (exclusive) and MAX_PRI (inclusive). To avoid false
  31432. dependencies, FUSION_PRI of instructions which need to be scheduled
  31433. together should be smaller than FUSION_PRI of irrelevant
  31434. instructions.
  31435. Given below example:
  31436. ldr r10, [r1, 4]
  31437. add r4, r4, r10
  31438. ldr r15, [r2, 8]
  31439. sub r5, r5, r15
  31440. ldr r11, [r1, 0]
  31441. add r4, r4, r11
  31442. ldr r16, [r2, 12]
  31443. sub r5, r5, r16
  31444. On targets like ARM/AArch64, the two pairs of consecutive loads
  31445. should be merged. Since peephole2 pass can't help in this case
  31446. unless consecutive loads are actually next to each other in
  31447. instruction flow. That's where this scheduling fusion pass works.
  31448. This hook calculates priority for each instruction based on its
  31449. fustion type, like:
  31450. ldr r10, [r1, 4] ; fusion_pri=99, pri=96
  31451. add r4, r4, r10 ; fusion_pri=100, pri=100
  31452. ldr r15, [r2, 8] ; fusion_pri=98, pri=92
  31453. sub r5, r5, r15 ; fusion_pri=100, pri=100
  31454. ldr r11, [r1, 0] ; fusion_pri=99, pri=100
  31455. add r4, r4, r11 ; fusion_pri=100, pri=100
  31456. ldr r16, [r2, 12] ; fusion_pri=98, pri=88
  31457. sub r5, r5, r16 ; fusion_pri=100, pri=100
  31458. Scheduling fusion pass then sorts all ready to issue instructions
  31459. according to the priorities. As a result, instructions of same
  31460. fusion type will be pushed together in instruction flow, like:
  31461. ldr r11, [r1, 0]
  31462. ldr r10, [r1, 4]
  31463. ldr r15, [r2, 8]
  31464. ldr r16, [r2, 12]
  31465. add r4, r4, r10
  31466. sub r5, r5, r15
  31467. add r4, r4, r11
  31468. sub r5, r5, r16
  31469. Now peephole2 pass can simply merge the two pairs of loads.
  31470. Since scheduling fusion pass relies on peephole2 to do real fusion
  31471. work, it is only enabled by default when peephole2 is in effect.
  31472. This is firstly introduced on ARM/AArch64 targets, please refer to
  31473. the hook implementation for how different fusion types are
  31474. supported.
  31475. -- Target Hook: void TARGET_EXPAND_DIVMOD_LIBFUNC (rtx LIBFUNC,
  31476. machine_mode MODE, rtx OP0, rtx OP1, rtx *QUOT, rtx *REM)
  31477. Define this hook for enabling divmod transform if the port does not
  31478. have hardware divmod insn but defines target-specific divmod
  31479. libfuncs.
  31480. 
  31481. File: gccint.info, Node: Sections, Next: PIC, Prev: Scheduling, Up: Target Macros
  31482. 18.18 Dividing the Output into Sections (Texts, Data, ...)
  31483. ==========================================================
  31484. An object file is divided into sections containing different types of
  31485. data. In the most common case, there are three sections: the "text
  31486. section", which holds instructions and read-only data; the "data
  31487. section", which holds initialized writable data; and the "bss section",
  31488. which holds uninitialized data. Some systems have other kinds of
  31489. sections.
  31490. 'varasm.c' provides several well-known sections, such as
  31491. 'text_section', 'data_section' and 'bss_section'. The normal way of
  31492. controlling a 'FOO_section' variable is to define the associated
  31493. 'FOO_SECTION_ASM_OP' macro, as described below. The macros are only
  31494. read once, when 'varasm.c' initializes itself, so their values must be
  31495. run-time constants. They may however depend on command-line flags.
  31496. _Note:_ Some run-time files, such 'crtstuff.c', also make use of the
  31497. 'FOO_SECTION_ASM_OP' macros, and expect them to be string literals.
  31498. Some assemblers require a different string to be written every time a
  31499. section is selected. If your assembler falls into this category, you
  31500. should define the 'TARGET_ASM_INIT_SECTIONS' hook and use
  31501. 'get_unnamed_section' to set up the sections.
  31502. You must always create a 'text_section', either by defining
  31503. 'TEXT_SECTION_ASM_OP' or by initializing 'text_section' in
  31504. 'TARGET_ASM_INIT_SECTIONS'. The same is true of 'data_section' and
  31505. 'DATA_SECTION_ASM_OP'. If you do not create a distinct
  31506. 'readonly_data_section', the default is to reuse 'text_section'.
  31507. All the other 'varasm.c' sections are optional, and are null if the
  31508. target does not provide them.
  31509. -- Macro: TEXT_SECTION_ASM_OP
  31510. A C expression whose value is a string, including spacing,
  31511. containing the assembler operation that should precede instructions
  31512. and read-only data. Normally '"\t.text"' is right.
  31513. -- Macro: HOT_TEXT_SECTION_NAME
  31514. If defined, a C string constant for the name of the section
  31515. containing most frequently executed functions of the program. If
  31516. not defined, GCC will provide a default definition if the target
  31517. supports named sections.
  31518. -- Macro: UNLIKELY_EXECUTED_TEXT_SECTION_NAME
  31519. If defined, a C string constant for the name of the section
  31520. containing unlikely executed functions in the program.
  31521. -- Macro: DATA_SECTION_ASM_OP
  31522. A C expression whose value is a string, including spacing,
  31523. containing the assembler operation to identify the following data
  31524. as writable initialized data. Normally '"\t.data"' is right.
  31525. -- Macro: SDATA_SECTION_ASM_OP
  31526. If defined, a C expression whose value is a string, including
  31527. spacing, containing the assembler operation to identify the
  31528. following data as initialized, writable small data.
  31529. -- Macro: READONLY_DATA_SECTION_ASM_OP
  31530. A C expression whose value is a string, including spacing,
  31531. containing the assembler operation to identify the following data
  31532. as read-only initialized data.
  31533. -- Macro: BSS_SECTION_ASM_OP
  31534. If defined, a C expression whose value is a string, including
  31535. spacing, containing the assembler operation to identify the
  31536. following data as uninitialized global data. If not defined, and
  31537. 'ASM_OUTPUT_ALIGNED_BSS' not defined, uninitialized global data
  31538. will be output in the data section if '-fno-common' is passed,
  31539. otherwise 'ASM_OUTPUT_COMMON' will be used.
  31540. -- Macro: SBSS_SECTION_ASM_OP
  31541. If defined, a C expression whose value is a string, including
  31542. spacing, containing the assembler operation to identify the
  31543. following data as uninitialized, writable small data.
  31544. -- Macro: TLS_COMMON_ASM_OP
  31545. If defined, a C expression whose value is a string containing the
  31546. assembler operation to identify the following data as thread-local
  31547. common data. The default is '".tls_common"'.
  31548. -- Macro: TLS_SECTION_ASM_FLAG
  31549. If defined, a C expression whose value is a character constant
  31550. containing the flag used to mark a section as a TLS section. The
  31551. default is ''T''.
  31552. -- Macro: INIT_SECTION_ASM_OP
  31553. If defined, a C expression whose value is a string, including
  31554. spacing, containing the assembler operation to identify the
  31555. following data as initialization code. If not defined, GCC will
  31556. assume such a section does not exist. This section has no
  31557. corresponding 'init_section' variable; it is used entirely in
  31558. runtime code.
  31559. -- Macro: FINI_SECTION_ASM_OP
  31560. If defined, a C expression whose value is a string, including
  31561. spacing, containing the assembler operation to identify the
  31562. following data as finalization code. If not defined, GCC will
  31563. assume such a section does not exist. This section has no
  31564. corresponding 'fini_section' variable; it is used entirely in
  31565. runtime code.
  31566. -- Macro: INIT_ARRAY_SECTION_ASM_OP
  31567. If defined, a C expression whose value is a string, including
  31568. spacing, containing the assembler operation to identify the
  31569. following data as part of the '.init_array' (or equivalent)
  31570. section. If not defined, GCC will assume such a section does not
  31571. exist. Do not define both this macro and 'INIT_SECTION_ASM_OP'.
  31572. -- Macro: FINI_ARRAY_SECTION_ASM_OP
  31573. If defined, a C expression whose value is a string, including
  31574. spacing, containing the assembler operation to identify the
  31575. following data as part of the '.fini_array' (or equivalent)
  31576. section. If not defined, GCC will assume such a section does not
  31577. exist. Do not define both this macro and 'FINI_SECTION_ASM_OP'.
  31578. -- Macro: MACH_DEP_SECTION_ASM_FLAG
  31579. If defined, a C expression whose value is a character constant
  31580. containing the flag used to mark a machine-dependent section. This
  31581. corresponds to the 'SECTION_MACH_DEP' section flag.
  31582. -- Macro: CRT_CALL_STATIC_FUNCTION (SECTION_OP, FUNCTION)
  31583. If defined, an ASM statement that switches to a different section
  31584. via SECTION_OP, calls FUNCTION, and switches back to the text
  31585. section. This is used in 'crtstuff.c' if 'INIT_SECTION_ASM_OP' or
  31586. 'FINI_SECTION_ASM_OP' to calls to initialization and finalization
  31587. functions from the init and fini sections. By default, this macro
  31588. uses a simple function call. Some ports need hand-crafted assembly
  31589. code to avoid dependencies on registers initialized in the function
  31590. prologue or to ensure that constant pools don't end up too far way
  31591. in the text section.
  31592. -- Macro: TARGET_LIBGCC_SDATA_SECTION
  31593. If defined, a string which names the section into which small
  31594. variables defined in crtstuff and libgcc should go. This is useful
  31595. when the target has options for optimizing access to small data,
  31596. and you want the crtstuff and libgcc routines to be conservative in
  31597. what they expect of your application yet liberal in what your
  31598. application expects. For example, for targets with a '.sdata'
  31599. section (like MIPS), you could compile crtstuff with '-G 0' so that
  31600. it doesn't require small data support from your application, but
  31601. use this macro to put small data into '.sdata' so that your
  31602. application can access these variables whether it uses small data
  31603. or not.
  31604. -- Macro: FORCE_CODE_SECTION_ALIGN
  31605. If defined, an ASM statement that aligns a code section to some
  31606. arbitrary boundary. This is used to force all fragments of the
  31607. '.init' and '.fini' sections to have to same alignment and thus
  31608. prevent the linker from having to add any padding.
  31609. -- Macro: JUMP_TABLES_IN_TEXT_SECTION
  31610. Define this macro to be an expression with a nonzero value if jump
  31611. tables (for 'tablejump' insns) should be output in the text
  31612. section, along with the assembler instructions. Otherwise, the
  31613. readonly data section is used.
  31614. This macro is irrelevant if there is no separate readonly data
  31615. section.
  31616. -- Target Hook: void TARGET_ASM_INIT_SECTIONS (void)
  31617. Define this hook if you need to do something special to set up the
  31618. 'varasm.c' sections, or if your target has some special sections of
  31619. its own that you need to create.
  31620. GCC calls this hook after processing the command line, but before
  31621. writing any assembly code, and before calling any of the
  31622. section-returning hooks described below.
  31623. -- Target Hook: int TARGET_ASM_RELOC_RW_MASK (void)
  31624. Return a mask describing how relocations should be treated when
  31625. selecting sections. Bit 1 should be set if global relocations
  31626. should be placed in a read-write section; bit 0 should be set if
  31627. local relocations should be placed in a read-write section.
  31628. The default version of this function returns 3 when '-fpic' is in
  31629. effect, and 0 otherwise. The hook is typically redefined when the
  31630. target cannot support (some kinds of) dynamic relocations in
  31631. read-only sections even in executables.
  31632. -- Target Hook: bool TARGET_ASM_GENERATE_PIC_ADDR_DIFF_VEC (void)
  31633. Return true to generate ADDR_DIF_VEC table or false to generate
  31634. ADDR_VEC table for jumps in case of -fPIC.
  31635. The default version of this function returns true if flag_pic
  31636. equals true and false otherwise
  31637. -- Target Hook: section * TARGET_ASM_SELECT_SECTION (tree EXP, int
  31638. RELOC, unsigned HOST_WIDE_INT ALIGN)
  31639. Return the section into which EXP should be placed. You can assume
  31640. that EXP is either a 'VAR_DECL' node or a constant of some sort.
  31641. RELOC indicates whether the initial value of EXP requires link-time
  31642. relocations. Bit 0 is set when variable contains local relocations
  31643. only, while bit 1 is set for global relocations. ALIGN is the
  31644. constant alignment in bits.
  31645. The default version of this function takes care of putting
  31646. read-only variables in 'readonly_data_section'.
  31647. See also USE_SELECT_SECTION_FOR_FUNCTIONS.
  31648. -- Macro: USE_SELECT_SECTION_FOR_FUNCTIONS
  31649. Define this macro if you wish TARGET_ASM_SELECT_SECTION to be
  31650. called for 'FUNCTION_DECL's as well as for variables and constants.
  31651. In the case of a 'FUNCTION_DECL', RELOC will be zero if the
  31652. function has been determined to be likely to be called, and nonzero
  31653. if it is unlikely to be called.
  31654. -- Target Hook: void TARGET_ASM_UNIQUE_SECTION (tree DECL, int RELOC)
  31655. Build up a unique section name, expressed as a 'STRING_CST' node,
  31656. and assign it to 'DECL_SECTION_NAME (DECL)'. As with
  31657. 'TARGET_ASM_SELECT_SECTION', RELOC indicates whether the initial
  31658. value of EXP requires link-time relocations.
  31659. The default version of this function appends the symbol name to the
  31660. ELF section name that would normally be used for the symbol. For
  31661. example, the function 'foo' would be placed in '.text.foo'.
  31662. Whatever the actual target object format, this is often good
  31663. enough.
  31664. -- Target Hook: section * TARGET_ASM_FUNCTION_RODATA_SECTION (tree
  31665. DECL, bool RELOCATABLE)
  31666. Return the readonly data or reloc readonly data section associated
  31667. with 'DECL_SECTION_NAME (DECL)'. RELOCATABLE selects the latter
  31668. over the former. The default version of this function selects
  31669. '.gnu.linkonce.r.name' if the function's section is
  31670. '.gnu.linkonce.t.name', '.rodata.name' or '.data.rel.ro.name' if
  31671. function is in '.text.name', and the normal readonly-data or reloc
  31672. readonly data section otherwise.
  31673. -- Target Hook: const char * TARGET_ASM_MERGEABLE_RODATA_PREFIX
  31674. Usually, the compiler uses the prefix '".rodata"' to construct
  31675. section names for mergeable constant data. Define this macro to
  31676. override the string if a different section name should be used.
  31677. -- Target Hook: section * TARGET_ASM_TM_CLONE_TABLE_SECTION (void)
  31678. Return the section that should be used for transactional memory
  31679. clone tables.
  31680. -- Target Hook: section * TARGET_ASM_SELECT_RTX_SECTION (machine_mode
  31681. MODE, rtx X, unsigned HOST_WIDE_INT ALIGN)
  31682. Return the section into which a constant X, of mode MODE, should be
  31683. placed. You can assume that X is some kind of constant in RTL.
  31684. The argument MODE is redundant except in the case of a 'const_int'
  31685. rtx. ALIGN is the constant alignment in bits.
  31686. The default version of this function takes care of putting symbolic
  31687. constants in 'flag_pic' mode in 'data_section' and everything else
  31688. in 'readonly_data_section'.
  31689. -- Target Hook: tree TARGET_MANGLE_DECL_ASSEMBLER_NAME (tree DECL, tree
  31690. ID)
  31691. Define this hook if you need to postprocess the assembler name
  31692. generated by target-independent code. The ID provided to this hook
  31693. will be the computed name (e.g., the macro 'DECL_NAME' of the DECL
  31694. in C, or the mangled name of the DECL in C++). The return value of
  31695. the hook is an 'IDENTIFIER_NODE' for the appropriate mangled name
  31696. on your target system. The default implementation of this hook
  31697. just returns the ID provided.
  31698. -- Target Hook: void TARGET_ENCODE_SECTION_INFO (tree DECL, rtx RTL,
  31699. int NEW_DECL_P)
  31700. Define this hook if references to a symbol or a constant must be
  31701. treated differently depending on something about the variable or
  31702. function named by the symbol (such as what section it is in).
  31703. The hook is executed immediately after rtl has been created for
  31704. DECL, which may be a variable or function declaration or an entry
  31705. in the constant pool. In either case, RTL is the rtl in question.
  31706. Do _not_ use 'DECL_RTL (DECL)' in this hook; that field may not
  31707. have been initialized yet.
  31708. In the case of a constant, it is safe to assume that the rtl is a
  31709. 'mem' whose address is a 'symbol_ref'. Most decls will also have
  31710. this form, but that is not guaranteed. Global register variables,
  31711. for instance, will have a 'reg' for their rtl. (Normally the right
  31712. thing to do with such unusual rtl is leave it alone.)
  31713. The NEW_DECL_P argument will be true if this is the first time that
  31714. 'TARGET_ENCODE_SECTION_INFO' has been invoked on this decl. It
  31715. will be false for subsequent invocations, which will happen for
  31716. duplicate declarations. Whether or not anything must be done for
  31717. the duplicate declaration depends on whether the hook examines
  31718. 'DECL_ATTRIBUTES'. NEW_DECL_P is always true when the hook is
  31719. called for a constant.
  31720. The usual thing for this hook to do is to record flags in the
  31721. 'symbol_ref', using 'SYMBOL_REF_FLAG' or 'SYMBOL_REF_FLAGS'.
  31722. Historically, the name string was modified if it was necessary to
  31723. encode more than one bit of information, but this practice is now
  31724. discouraged; use 'SYMBOL_REF_FLAGS'.
  31725. The default definition of this hook, 'default_encode_section_info'
  31726. in 'varasm.c', sets a number of commonly-useful bits in
  31727. 'SYMBOL_REF_FLAGS'. Check whether the default does what you need
  31728. before overriding it.
  31729. -- Target Hook: const char * TARGET_STRIP_NAME_ENCODING (const char
  31730. *NAME)
  31731. Decode NAME and return the real name part, sans the characters that
  31732. 'TARGET_ENCODE_SECTION_INFO' may have added.
  31733. -- Target Hook: bool TARGET_IN_SMALL_DATA_P (const_tree EXP)
  31734. Returns true if EXP should be placed into a "small data" section.
  31735. The default version of this hook always returns false.
  31736. -- Target Hook: bool TARGET_HAVE_SRODATA_SECTION
  31737. Contains the value true if the target places read-only "small data"
  31738. into a separate section. The default value is false.
  31739. -- Target Hook: bool TARGET_PROFILE_BEFORE_PROLOGUE (void)
  31740. It returns true if target wants profile code emitted before
  31741. prologue.
  31742. The default version of this hook use the target macro
  31743. 'PROFILE_BEFORE_PROLOGUE'.
  31744. -- Target Hook: bool TARGET_BINDS_LOCAL_P (const_tree EXP)
  31745. Returns true if EXP names an object for which name resolution rules
  31746. must resolve to the current "module" (dynamic shared library or
  31747. executable image).
  31748. The default version of this hook implements the name resolution
  31749. rules for ELF, which has a looser model of global name binding than
  31750. other currently supported object file formats.
  31751. -- Target Hook: bool TARGET_HAVE_TLS
  31752. Contains the value true if the target supports thread-local
  31753. storage. The default value is false.
  31754. 
  31755. File: gccint.info, Node: PIC, Next: Assembler Format, Prev: Sections, Up: Target Macros
  31756. 18.19 Position Independent Code
  31757. ===============================
  31758. This section describes macros that help implement generation of position
  31759. independent code. Simply defining these macros is not enough to
  31760. generate valid PIC; you must also add support to the hook
  31761. 'TARGET_LEGITIMATE_ADDRESS_P' and to the macro 'PRINT_OPERAND_ADDRESS',
  31762. as well as 'LEGITIMIZE_ADDRESS'. You must modify the definition of
  31763. 'movsi' to do something appropriate when the source operand contains a
  31764. symbolic address. You may also need to alter the handling of switch
  31765. statements so that they use relative addresses.
  31766. -- Macro: PIC_OFFSET_TABLE_REGNUM
  31767. The register number of the register used to address a table of
  31768. static data addresses in memory. In some cases this register is
  31769. defined by a processor's "application binary interface" (ABI).
  31770. When this macro is defined, RTL is generated for this register
  31771. once, as with the stack pointer and frame pointer registers. If
  31772. this macro is not defined, it is up to the machine-dependent files
  31773. to allocate such a register (if necessary). Note that this
  31774. register must be fixed when in use (e.g. when 'flag_pic' is true).
  31775. -- Macro: PIC_OFFSET_TABLE_REG_CALL_CLOBBERED
  31776. A C expression that is nonzero if the register defined by
  31777. 'PIC_OFFSET_TABLE_REGNUM' is clobbered by calls. If not defined,
  31778. the default is zero. Do not define this macro if
  31779. 'PIC_OFFSET_TABLE_REGNUM' is not defined.
  31780. -- Macro: LEGITIMATE_PIC_OPERAND_P (X)
  31781. A C expression that is nonzero if X is a legitimate immediate
  31782. operand on the target machine when generating position independent
  31783. code. You can assume that X satisfies 'CONSTANT_P', so you need
  31784. not check this. You can also assume FLAG_PIC is true, so you need
  31785. not check it either. You need not define this macro if all
  31786. constants (including 'SYMBOL_REF') can be immediate operands when
  31787. generating position independent code.
  31788. 
  31789. File: gccint.info, Node: Assembler Format, Next: Debugging Info, Prev: PIC, Up: Target Macros
  31790. 18.20 Defining the Output Assembler Language
  31791. ============================================
  31792. This section describes macros whose principal purpose is to describe how
  31793. to write instructions in assembler language--rather than what the
  31794. instructions do.
  31795. * Menu:
  31796. * File Framework:: Structural information for the assembler file.
  31797. * Data Output:: Output of constants (numbers, strings, addresses).
  31798. * Uninitialized Data:: Output of uninitialized variables.
  31799. * Label Output:: Output and generation of labels.
  31800. * Initialization:: General principles of initialization
  31801. and termination routines.
  31802. * Macros for Initialization::
  31803. Specific macros that control the handling of
  31804. initialization and termination routines.
  31805. * Instruction Output:: Output of actual instructions.
  31806. * Dispatch Tables:: Output of jump tables.
  31807. * Exception Region Output:: Output of exception region code.
  31808. * Alignment Output:: Pseudo ops for alignment and skipping data.
  31809. 
  31810. File: gccint.info, Node: File Framework, Next: Data Output, Up: Assembler Format
  31811. 18.20.1 The Overall Framework of an Assembler File
  31812. --------------------------------------------------
  31813. This describes the overall framework of an assembly file.
  31814. -- Target Hook: void TARGET_ASM_FILE_START (void)
  31815. Output to 'asm_out_file' any text which the assembler expects to
  31816. find at the beginning of a file. The default behavior is
  31817. controlled by two flags, documented below. Unless your target's
  31818. assembler is quite unusual, if you override the default, you should
  31819. call 'default_file_start' at some point in your target hook. This
  31820. lets other target files rely on these variables.
  31821. -- Target Hook: bool TARGET_ASM_FILE_START_APP_OFF
  31822. If this flag is true, the text of the macro 'ASM_APP_OFF' will be
  31823. printed as the very first line in the assembly file, unless
  31824. '-fverbose-asm' is in effect. (If that macro has been defined to
  31825. the empty string, this variable has no effect.) With the normal
  31826. definition of 'ASM_APP_OFF', the effect is to notify the GNU
  31827. assembler that it need not bother stripping comments or extra
  31828. whitespace from its input. This allows it to work a bit faster.
  31829. The default is false. You should not set it to true unless you
  31830. have verified that your port does not generate any extra whitespace
  31831. or comments that will cause GAS to issue errors in NO_APP mode.
  31832. -- Target Hook: bool TARGET_ASM_FILE_START_FILE_DIRECTIVE
  31833. If this flag is true, 'output_file_directive' will be called for
  31834. the primary source file, immediately after printing 'ASM_APP_OFF'
  31835. (if that is enabled). Most ELF assemblers expect this to be done.
  31836. The default is false.
  31837. -- Target Hook: void TARGET_ASM_FILE_END (void)
  31838. Output to 'asm_out_file' any text which the assembler expects to
  31839. find at the end of a file. The default is to output nothing.
  31840. -- Function: void file_end_indicate_exec_stack ()
  31841. Some systems use a common convention, the '.note.GNU-stack' special
  31842. section, to indicate whether or not an object file relies on the
  31843. stack being executable. If your system uses this convention, you
  31844. should define 'TARGET_ASM_FILE_END' to this function. If you need
  31845. to do other things in that hook, have your hook function call this
  31846. function.
  31847. -- Target Hook: void TARGET_ASM_LTO_START (void)
  31848. Output to 'asm_out_file' any text which the assembler expects to
  31849. find at the start of an LTO section. The default is to output
  31850. nothing.
  31851. -- Target Hook: void TARGET_ASM_LTO_END (void)
  31852. Output to 'asm_out_file' any text which the assembler expects to
  31853. find at the end of an LTO section. The default is to output
  31854. nothing.
  31855. -- Target Hook: void TARGET_ASM_CODE_END (void)
  31856. Output to 'asm_out_file' any text which is needed before emitting
  31857. unwind info and debug info at the end of a file. Some targets emit
  31858. here PIC setup thunks that cannot be emitted at the end of file,
  31859. because they couldn't have unwind info then. The default is to
  31860. output nothing.
  31861. -- Macro: ASM_COMMENT_START
  31862. A C string constant describing how to begin a comment in the target
  31863. assembler language. The compiler assumes that the comment will end
  31864. at the end of the line.
  31865. -- Macro: ASM_APP_ON
  31866. A C string constant for text to be output before each 'asm'
  31867. statement or group of consecutive ones. Normally this is '"#APP"',
  31868. which is a comment that has no effect on most assemblers but tells
  31869. the GNU assembler that it must check the lines that follow for all
  31870. valid assembler constructs.
  31871. -- Macro: ASM_APP_OFF
  31872. A C string constant for text to be output after each 'asm'
  31873. statement or group of consecutive ones. Normally this is
  31874. '"#NO_APP"', which tells the GNU assembler to resume making the
  31875. time-saving assumptions that are valid for ordinary compiler
  31876. output.
  31877. -- Macro: ASM_OUTPUT_SOURCE_FILENAME (STREAM, NAME)
  31878. A C statement to output COFF information or DWARF debugging
  31879. information which indicates that filename NAME is the current
  31880. source file to the stdio stream STREAM.
  31881. This macro need not be defined if the standard form of output for
  31882. the file format in use is appropriate.
  31883. -- Target Hook: void TARGET_ASM_OUTPUT_SOURCE_FILENAME (FILE *FILE,
  31884. const char *NAME)
  31885. Output DWARF debugging information which indicates that filename
  31886. NAME is the current source file to the stdio stream FILE.
  31887. This target hook need not be defined if the standard form of output
  31888. for the file format in use is appropriate.
  31889. -- Target Hook: void TARGET_ASM_OUTPUT_IDENT (const char *NAME)
  31890. Output a string based on NAME, suitable for the '#ident' directive,
  31891. or the equivalent directive or pragma in non-C-family languages.
  31892. If this hook is not defined, nothing is output for the '#ident'
  31893. directive.
  31894. -- Macro: OUTPUT_QUOTED_STRING (STREAM, STRING)
  31895. A C statement to output the string STRING to the stdio stream
  31896. STREAM. If you do not call the function 'output_quoted_string' in
  31897. your config files, GCC will only call it to output filenames to the
  31898. assembler source. So you can use it to canonicalize the format of
  31899. the filename using this macro.
  31900. -- Target Hook: void TARGET_ASM_NAMED_SECTION (const char *NAME,
  31901. unsigned int FLAGS, tree DECL)
  31902. Output assembly directives to switch to section NAME. The section
  31903. should have attributes as specified by FLAGS, which is a bit mask
  31904. of the 'SECTION_*' flags defined in 'output.h'. If DECL is
  31905. non-NULL, it is the 'VAR_DECL' or 'FUNCTION_DECL' with which this
  31906. section is associated.
  31907. -- Target Hook: bool TARGET_ASM_ELF_FLAGS_NUMERIC (unsigned int FLAGS,
  31908. unsigned int *NUM)
  31909. This hook can be used to encode ELF section flags for which no
  31910. letter code has been defined in the assembler. It is called by
  31911. 'default_asm_named_section' whenever the section flags need to be
  31912. emitted in the assembler output. If the hook returns true, then
  31913. the numerical value for ELF section flags should be calculated from
  31914. FLAGS and saved in *NUM; the value is printed out instead of the
  31915. normal sequence of letter codes. If the hook is not defined, or if
  31916. it returns false, then NUM is ignored and the traditional letter
  31917. sequence is emitted.
  31918. -- Target Hook: section * TARGET_ASM_FUNCTION_SECTION (tree DECL, enum
  31919. node_frequency FREQ, bool STARTUP, bool EXIT)
  31920. Return preferred text (sub)section for function DECL. Main purpose
  31921. of this function is to separate cold, normal and hot functions.
  31922. STARTUP is true when function is known to be used only at startup
  31923. (from static constructors or it is 'main()'). EXIT is true when
  31924. function is known to be used only at exit (from static
  31925. destructors). Return NULL if function should go to default text
  31926. section.
  31927. -- Target Hook: void TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS (FILE
  31928. *FILE, tree DECL, bool NEW_IS_COLD)
  31929. Used by the target to emit any assembler directives or additional
  31930. labels needed when a function is partitioned between different
  31931. sections. Output should be written to FILE. The function decl is
  31932. available as DECL and the new section is 'cold' if NEW_IS_COLD is
  31933. 'true'.
  31934. -- Common Target Hook: bool TARGET_HAVE_NAMED_SECTIONS
  31935. This flag is true if the target supports
  31936. 'TARGET_ASM_NAMED_SECTION'. It must not be modified by
  31937. command-line option processing.
  31938. -- Target Hook: bool TARGET_HAVE_SWITCHABLE_BSS_SECTIONS
  31939. This flag is true if we can create zeroed data by switching to a
  31940. BSS section and then using 'ASM_OUTPUT_SKIP' to allocate the space.
  31941. This is true on most ELF targets.
  31942. -- Target Hook: unsigned int TARGET_SECTION_TYPE_FLAGS (tree DECL,
  31943. const char *NAME, int RELOC)
  31944. Choose a set of section attributes for use by
  31945. 'TARGET_ASM_NAMED_SECTION' based on a variable or function decl, a
  31946. section name, and whether or not the declaration's initializer may
  31947. contain runtime relocations. DECL may be null, in which case
  31948. read-write data should be assumed.
  31949. The default version of this function handles choosing code vs data,
  31950. read-only vs read-write data, and 'flag_pic'. You should only need
  31951. to override this if your target has special flags that might be set
  31952. via '__attribute__'.
  31953. -- Target Hook: void TARGET_ASM_RECORD_GCC_SWITCHES (const char *)
  31954. Provides the target with the ability to record the gcc command line
  31955. switches provided as argument.
  31956. By default this hook is set to NULL, but an example implementation
  31957. is provided for ELF based targets. Called ELF_RECORD_GCC_SWITCHES,
  31958. it records the switches as ASCII text inside a new, string
  31959. mergeable section in the assembler output file. The name of the
  31960. new section is provided by the
  31961. 'TARGET_ASM_RECORD_GCC_SWITCHES_SECTION' target hook.
  31962. -- Target Hook: const char * TARGET_ASM_RECORD_GCC_SWITCHES_SECTION
  31963. This is the name of the section that will be created by the example
  31964. ELF implementation of the 'TARGET_ASM_RECORD_GCC_SWITCHES' target
  31965. hook.
  31966. 
  31967. File: gccint.info, Node: Data Output, Next: Uninitialized Data, Prev: File Framework, Up: Assembler Format
  31968. 18.20.2 Output of Data
  31969. ----------------------
  31970. -- Target Hook: const char * TARGET_ASM_BYTE_OP
  31971. -- Target Hook: const char * TARGET_ASM_ALIGNED_HI_OP
  31972. -- Target Hook: const char * TARGET_ASM_ALIGNED_PSI_OP
  31973. -- Target Hook: const char * TARGET_ASM_ALIGNED_SI_OP
  31974. -- Target Hook: const char * TARGET_ASM_ALIGNED_PDI_OP
  31975. -- Target Hook: const char * TARGET_ASM_ALIGNED_DI_OP
  31976. -- Target Hook: const char * TARGET_ASM_ALIGNED_PTI_OP
  31977. -- Target Hook: const char * TARGET_ASM_ALIGNED_TI_OP
  31978. -- Target Hook: const char * TARGET_ASM_UNALIGNED_HI_OP
  31979. -- Target Hook: const char * TARGET_ASM_UNALIGNED_PSI_OP
  31980. -- Target Hook: const char * TARGET_ASM_UNALIGNED_SI_OP
  31981. -- Target Hook: const char * TARGET_ASM_UNALIGNED_PDI_OP
  31982. -- Target Hook: const char * TARGET_ASM_UNALIGNED_DI_OP
  31983. -- Target Hook: const char * TARGET_ASM_UNALIGNED_PTI_OP
  31984. -- Target Hook: const char * TARGET_ASM_UNALIGNED_TI_OP
  31985. These hooks specify assembly directives for creating certain kinds
  31986. of integer object. The 'TARGET_ASM_BYTE_OP' directive creates a
  31987. byte-sized object, the 'TARGET_ASM_ALIGNED_HI_OP' one creates an
  31988. aligned two-byte object, and so on. Any of the hooks may be
  31989. 'NULL', indicating that no suitable directive is available.
  31990. The compiler will print these strings at the start of a new line,
  31991. followed immediately by the object's initial value. In most cases,
  31992. the string should contain a tab, a pseudo-op, and then another tab.
  31993. -- Target Hook: bool TARGET_ASM_INTEGER (rtx X, unsigned int SIZE, int
  31994. ALIGNED_P)
  31995. The 'assemble_integer' function uses this hook to output an integer
  31996. object. X is the object's value, SIZE is its size in bytes and
  31997. ALIGNED_P indicates whether it is aligned. The function should
  31998. return 'true' if it was able to output the object. If it returns
  31999. false, 'assemble_integer' will try to split the object into smaller
  32000. parts.
  32001. The default implementation of this hook will use the
  32002. 'TARGET_ASM_BYTE_OP' family of strings, returning 'false' when the
  32003. relevant string is 'NULL'.
  32004. -- Target Hook: void TARGET_ASM_DECL_END (void)
  32005. Define this hook if the target assembler requires a special marker
  32006. to terminate an initialized variable declaration.
  32007. -- Target Hook: bool TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA (FILE *FILE,
  32008. rtx X)
  32009. A target hook to recognize RTX patterns that 'output_addr_const'
  32010. can't deal with, and output assembly code to FILE corresponding to
  32011. the pattern X. This may be used to allow machine-dependent
  32012. 'UNSPEC's to appear within constants.
  32013. If target hook fails to recognize a pattern, it must return
  32014. 'false', so that a standard error message is printed. If it prints
  32015. an error message itself, by calling, for example,
  32016. 'output_operand_lossage', it may just return 'true'.
  32017. -- Macro: ASM_OUTPUT_ASCII (STREAM, PTR, LEN)
  32018. A C statement to output to the stdio stream STREAM an assembler
  32019. instruction to assemble a string constant containing the LEN bytes
  32020. at PTR. PTR will be a C expression of type 'char *' and LEN a C
  32021. expression of type 'int'.
  32022. If the assembler has a '.ascii' pseudo-op as found in the Berkeley
  32023. Unix assembler, do not define the macro 'ASM_OUTPUT_ASCII'.
  32024. -- Macro: ASM_OUTPUT_FDESC (STREAM, DECL, N)
  32025. A C statement to output word N of a function descriptor for DECL.
  32026. This must be defined if 'TARGET_VTABLE_USES_DESCRIPTORS' is
  32027. defined, and is otherwise unused.
  32028. -- Macro: CONSTANT_POOL_BEFORE_FUNCTION
  32029. You may define this macro as a C expression. You should define the
  32030. expression to have a nonzero value if GCC should output the
  32031. constant pool for a function before the code for the function, or a
  32032. zero value if GCC should output the constant pool after the
  32033. function. If you do not define this macro, the usual case, GCC
  32034. will output the constant pool before the function.
  32035. -- Macro: ASM_OUTPUT_POOL_PROLOGUE (FILE, FUNNAME, FUNDECL, SIZE)
  32036. A C statement to output assembler commands to define the start of
  32037. the constant pool for a function. FUNNAME is a string giving the
  32038. name of the function. Should the return type of the function be
  32039. required, it can be obtained via FUNDECL. SIZE is the size, in
  32040. bytes, of the constant pool that will be written immediately after
  32041. this call.
  32042. If no constant-pool prefix is required, the usual case, this macro
  32043. need not be defined.
  32044. -- Macro: ASM_OUTPUT_SPECIAL_POOL_ENTRY (FILE, X, MODE, ALIGN, LABELNO,
  32045. JUMPTO)
  32046. A C statement (with or without semicolon) to output a constant in
  32047. the constant pool, if it needs special treatment. (This macro need
  32048. not do anything for RTL expressions that can be output normally.)
  32049. The argument FILE is the standard I/O stream to output the
  32050. assembler code on. X is the RTL expression for the constant to
  32051. output, and MODE is the machine mode (in case X is a 'const_int').
  32052. ALIGN is the required alignment for the value X; you should output
  32053. an assembler directive to force this much alignment.
  32054. The argument LABELNO is a number to use in an internal label for
  32055. the address of this pool entry. The definition of this macro is
  32056. responsible for outputting the label definition at the proper
  32057. place. Here is how to do this:
  32058. (*targetm.asm_out.internal_label) (FILE, "LC", LABELNO);
  32059. When you output a pool entry specially, you should end with a
  32060. 'goto' to the label JUMPTO. This will prevent the same pool entry
  32061. from being output a second time in the usual manner.
  32062. You need not define this macro if it would do nothing.
  32063. -- Macro: ASM_OUTPUT_POOL_EPILOGUE (FILE FUNNAME FUNDECL SIZE)
  32064. A C statement to output assembler commands to at the end of the
  32065. constant pool for a function. FUNNAME is a string giving the name
  32066. of the function. Should the return type of the function be
  32067. required, you can obtain it via FUNDECL. SIZE is the size, in
  32068. bytes, of the constant pool that GCC wrote immediately before this
  32069. call.
  32070. If no constant-pool epilogue is required, the usual case, you need
  32071. not define this macro.
  32072. -- Macro: IS_ASM_LOGICAL_LINE_SEPARATOR (C, STR)
  32073. Define this macro as a C expression which is nonzero if C is used
  32074. as a logical line separator by the assembler. STR points to the
  32075. position in the string where C was found; this can be used if a
  32076. line separator uses multiple characters.
  32077. If you do not define this macro, the default is that only the
  32078. character ';' is treated as a logical line separator.
  32079. -- Target Hook: const char * TARGET_ASM_OPEN_PAREN
  32080. -- Target Hook: const char * TARGET_ASM_CLOSE_PAREN
  32081. These target hooks are C string constants, describing the syntax in
  32082. the assembler for grouping arithmetic expressions. If not
  32083. overridden, they default to normal parentheses, which is correct
  32084. for most assemblers.
  32085. These macros are provided by 'real.h' for writing the definitions of
  32086. 'ASM_OUTPUT_DOUBLE' and the like:
  32087. -- Macro: REAL_VALUE_TO_TARGET_SINGLE (X, L)
  32088. -- Macro: REAL_VALUE_TO_TARGET_DOUBLE (X, L)
  32089. -- Macro: REAL_VALUE_TO_TARGET_LONG_DOUBLE (X, L)
  32090. -- Macro: REAL_VALUE_TO_TARGET_DECIMAL32 (X, L)
  32091. -- Macro: REAL_VALUE_TO_TARGET_DECIMAL64 (X, L)
  32092. -- Macro: REAL_VALUE_TO_TARGET_DECIMAL128 (X, L)
  32093. These translate X, of type 'REAL_VALUE_TYPE', to the target's
  32094. floating point representation, and store its bit pattern in the
  32095. variable L. For 'REAL_VALUE_TO_TARGET_SINGLE' and
  32096. 'REAL_VALUE_TO_TARGET_DECIMAL32', this variable should be a simple
  32097. 'long int'. For the others, it should be an array of 'long int'.
  32098. The number of elements in this array is determined by the size of
  32099. the desired target floating point data type: 32 bits of it go in
  32100. each 'long int' array element. Each array element holds 32 bits of
  32101. the result, even if 'long int' is wider than 32 bits on the host
  32102. machine.
  32103. The array element values are designed so that you can print them
  32104. out using 'fprintf' in the order they should appear in the target
  32105. machine's memory.
  32106. 
  32107. File: gccint.info, Node: Uninitialized Data, Next: Label Output, Prev: Data Output, Up: Assembler Format
  32108. 18.20.3 Output of Uninitialized Variables
  32109. -----------------------------------------
  32110. Each of the macros in this section is used to do the whole job of
  32111. outputting a single uninitialized variable.
  32112. -- Macro: ASM_OUTPUT_COMMON (STREAM, NAME, SIZE, ROUNDED)
  32113. A C statement (sans semicolon) to output to the stdio stream STREAM
  32114. the assembler definition of a common-label named NAME whose size is
  32115. SIZE bytes. The variable ROUNDED is the size rounded up to
  32116. whatever alignment the caller wants. It is possible that SIZE may
  32117. be zero, for instance if a struct with no other member than a
  32118. zero-length array is defined. In this case, the backend must
  32119. output a symbol definition that allocates at least one byte, both
  32120. so that the address of the resulting object does not compare equal
  32121. to any other, and because some object formats cannot even express
  32122. the concept of a zero-sized common symbol, as that is how they
  32123. represent an ordinary undefined external.
  32124. Use the expression 'assemble_name (STREAM, NAME)' to output the
  32125. name itself; before and after that, output the additional assembler
  32126. syntax for defining the name, and a newline.
  32127. This macro controls how the assembler definitions of uninitialized
  32128. common global variables are output.
  32129. -- Macro: ASM_OUTPUT_ALIGNED_COMMON (STREAM, NAME, SIZE, ALIGNMENT)
  32130. Like 'ASM_OUTPUT_COMMON' except takes the required alignment as a
  32131. separate, explicit argument. If you define this macro, it is used
  32132. in place of 'ASM_OUTPUT_COMMON', and gives you more flexibility in
  32133. handling the required alignment of the variable. The alignment is
  32134. specified as the number of bits.
  32135. -- Macro: ASM_OUTPUT_ALIGNED_DECL_COMMON (STREAM, DECL, NAME, SIZE,
  32136. ALIGNMENT)
  32137. Like 'ASM_OUTPUT_ALIGNED_COMMON' except that DECL of the variable
  32138. to be output, if there is one, or 'NULL_TREE' if there is no
  32139. corresponding variable. If you define this macro, GCC will use it
  32140. in place of both 'ASM_OUTPUT_COMMON' and
  32141. 'ASM_OUTPUT_ALIGNED_COMMON'. Define this macro when you need to
  32142. see the variable's decl in order to chose what to output.
  32143. -- Macro: ASM_OUTPUT_ALIGNED_BSS (STREAM, DECL, NAME, SIZE, ALIGNMENT)
  32144. A C statement (sans semicolon) to output to the stdio stream STREAM
  32145. the assembler definition of uninitialized global DECL named NAME
  32146. whose size is SIZE bytes. The variable ALIGNMENT is the alignment
  32147. specified as the number of bits.
  32148. Try to use function 'asm_output_aligned_bss' defined in file
  32149. 'varasm.c' when defining this macro. If unable, use the expression
  32150. 'assemble_name (STREAM, NAME)' to output the name itself; before
  32151. and after that, output the additional assembler syntax for defining
  32152. the name, and a newline.
  32153. There are two ways of handling global BSS. One is to define this
  32154. macro. The other is to have 'TARGET_ASM_SELECT_SECTION' return a
  32155. switchable BSS section (*note
  32156. TARGET_HAVE_SWITCHABLE_BSS_SECTIONS::). You do not need to do
  32157. both.
  32158. Some languages do not have 'common' data, and require a non-common
  32159. form of global BSS in order to handle uninitialized globals
  32160. efficiently. C++ is one example of this. However, if the target
  32161. does not support global BSS, the front end may choose to make
  32162. globals common in order to save space in the object file.
  32163. -- Macro: ASM_OUTPUT_LOCAL (STREAM, NAME, SIZE, ROUNDED)
  32164. A C statement (sans semicolon) to output to the stdio stream STREAM
  32165. the assembler definition of a local-common-label named NAME whose
  32166. size is SIZE bytes. The variable ROUNDED is the size rounded up to
  32167. whatever alignment the caller wants.
  32168. Use the expression 'assemble_name (STREAM, NAME)' to output the
  32169. name itself; before and after that, output the additional assembler
  32170. syntax for defining the name, and a newline.
  32171. This macro controls how the assembler definitions of uninitialized
  32172. static variables are output.
  32173. -- Macro: ASM_OUTPUT_ALIGNED_LOCAL (STREAM, NAME, SIZE, ALIGNMENT)
  32174. Like 'ASM_OUTPUT_LOCAL' except takes the required alignment as a
  32175. separate, explicit argument. If you define this macro, it is used
  32176. in place of 'ASM_OUTPUT_LOCAL', and gives you more flexibility in
  32177. handling the required alignment of the variable. The alignment is
  32178. specified as the number of bits.
  32179. -- Macro: ASM_OUTPUT_ALIGNED_DECL_LOCAL (STREAM, DECL, NAME, SIZE,
  32180. ALIGNMENT)
  32181. Like 'ASM_OUTPUT_ALIGNED_LOCAL' except that DECL of the variable to
  32182. be output, if there is one, or 'NULL_TREE' if there is no
  32183. corresponding variable. If you define this macro, GCC will use it
  32184. in place of both 'ASM_OUTPUT_LOCAL' and 'ASM_OUTPUT_ALIGNED_LOCAL'.
  32185. Define this macro when you need to see the variable's decl in order
  32186. to chose what to output.
  32187. 
  32188. File: gccint.info, Node: Label Output, Next: Initialization, Prev: Uninitialized Data, Up: Assembler Format
  32189. 18.20.4 Output and Generation of Labels
  32190. ---------------------------------------
  32191. This is about outputting labels.
  32192. -- Macro: ASM_OUTPUT_LABEL (STREAM, NAME)
  32193. A C statement (sans semicolon) to output to the stdio stream STREAM
  32194. the assembler definition of a label named NAME. Use the expression
  32195. 'assemble_name (STREAM, NAME)' to output the name itself; before
  32196. and after that, output the additional assembler syntax for defining
  32197. the name, and a newline. A default definition of this macro is
  32198. provided which is correct for most systems.
  32199. -- Macro: ASM_OUTPUT_FUNCTION_LABEL (STREAM, NAME, DECL)
  32200. A C statement (sans semicolon) to output to the stdio stream STREAM
  32201. the assembler definition of a label named NAME of a function. Use
  32202. the expression 'assemble_name (STREAM, NAME)' to output the name
  32203. itself; before and after that, output the additional assembler
  32204. syntax for defining the name, and a newline. A default definition
  32205. of this macro is provided which is correct for most systems.
  32206. If this macro is not defined, then the function name is defined in
  32207. the usual manner as a label (by means of 'ASM_OUTPUT_LABEL').
  32208. -- Macro: ASM_OUTPUT_INTERNAL_LABEL (STREAM, NAME)
  32209. Identical to 'ASM_OUTPUT_LABEL', except that NAME is known to refer
  32210. to a compiler-generated label. The default definition uses
  32211. 'assemble_name_raw', which is like 'assemble_name' except that it
  32212. is more efficient.
  32213. -- Macro: SIZE_ASM_OP
  32214. A C string containing the appropriate assembler directive to
  32215. specify the size of a symbol, without any arguments. On systems
  32216. that use ELF, the default (in 'config/elfos.h') is '"\t.size\t"';
  32217. on other systems, the default is not to define this macro.
  32218. Define this macro only if it is correct to use the default
  32219. definitions of 'ASM_OUTPUT_SIZE_DIRECTIVE' and
  32220. 'ASM_OUTPUT_MEASURED_SIZE' for your system. If you need your own
  32221. custom definitions of those macros, or if you do not need explicit
  32222. symbol sizes at all, do not define this macro.
  32223. -- Macro: ASM_OUTPUT_SIZE_DIRECTIVE (STREAM, NAME, SIZE)
  32224. A C statement (sans semicolon) to output to the stdio stream STREAM
  32225. a directive telling the assembler that the size of the symbol NAME
  32226. is SIZE. SIZE is a 'HOST_WIDE_INT'. If you define 'SIZE_ASM_OP',
  32227. a default definition of this macro is provided.
  32228. -- Macro: ASM_OUTPUT_MEASURED_SIZE (STREAM, NAME)
  32229. A C statement (sans semicolon) to output to the stdio stream STREAM
  32230. a directive telling the assembler to calculate the size of the
  32231. symbol NAME by subtracting its address from the current address.
  32232. If you define 'SIZE_ASM_OP', a default definition of this macro is
  32233. provided. The default assumes that the assembler recognizes a
  32234. special '.' symbol as referring to the current address, and can
  32235. calculate the difference between this and another symbol. If your
  32236. assembler does not recognize '.' or cannot do calculations with it,
  32237. you will need to redefine 'ASM_OUTPUT_MEASURED_SIZE' to use some
  32238. other technique.
  32239. -- Macro: NO_DOLLAR_IN_LABEL
  32240. Define this macro if the assembler does not accept the character
  32241. '$' in label names. By default constructors and destructors in G++
  32242. have '$' in the identifiers. If this macro is defined, '.' is used
  32243. instead.
  32244. -- Macro: NO_DOT_IN_LABEL
  32245. Define this macro if the assembler does not accept the character
  32246. '.' in label names. By default constructors and destructors in G++
  32247. have names that use '.'. If this macro is defined, these names are
  32248. rewritten to avoid '.'.
  32249. -- Macro: TYPE_ASM_OP
  32250. A C string containing the appropriate assembler directive to
  32251. specify the type of a symbol, without any arguments. On systems
  32252. that use ELF, the default (in 'config/elfos.h') is '"\t.type\t"';
  32253. on other systems, the default is not to define this macro.
  32254. Define this macro only if it is correct to use the default
  32255. definition of 'ASM_OUTPUT_TYPE_DIRECTIVE' for your system. If you
  32256. need your own custom definition of this macro, or if you do not
  32257. need explicit symbol types at all, do not define this macro.
  32258. -- Macro: TYPE_OPERAND_FMT
  32259. A C string which specifies (using 'printf' syntax) the format of
  32260. the second operand to 'TYPE_ASM_OP'. On systems that use ELF, the
  32261. default (in 'config/elfos.h') is '"@%s"'; on other systems, the
  32262. default is not to define this macro.
  32263. Define this macro only if it is correct to use the default
  32264. definition of 'ASM_OUTPUT_TYPE_DIRECTIVE' for your system. If you
  32265. need your own custom definition of this macro, or if you do not
  32266. need explicit symbol types at all, do not define this macro.
  32267. -- Macro: ASM_OUTPUT_TYPE_DIRECTIVE (STREAM, TYPE)
  32268. A C statement (sans semicolon) to output to the stdio stream STREAM
  32269. a directive telling the assembler that the type of the symbol NAME
  32270. is TYPE. TYPE is a C string; currently, that string is always
  32271. either '"function"' or '"object"', but you should not count on
  32272. this.
  32273. If you define 'TYPE_ASM_OP' and 'TYPE_OPERAND_FMT', a default
  32274. definition of this macro is provided.
  32275. -- Macro: ASM_DECLARE_FUNCTION_NAME (STREAM, NAME, DECL)
  32276. A C statement (sans semicolon) to output to the stdio stream STREAM
  32277. any text necessary for declaring the name NAME of a function which
  32278. is being defined. This macro is responsible for outputting the
  32279. label definition (perhaps using 'ASM_OUTPUT_FUNCTION_LABEL'). The
  32280. argument DECL is the 'FUNCTION_DECL' tree node representing the
  32281. function.
  32282. If this macro is not defined, then the function name is defined in
  32283. the usual manner as a label (by means of
  32284. 'ASM_OUTPUT_FUNCTION_LABEL').
  32285. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' in the definition
  32286. of this macro.
  32287. -- Macro: ASM_DECLARE_FUNCTION_SIZE (STREAM, NAME, DECL)
  32288. A C statement (sans semicolon) to output to the stdio stream STREAM
  32289. any text necessary for declaring the size of a function which is
  32290. being defined. The argument NAME is the name of the function. The
  32291. argument DECL is the 'FUNCTION_DECL' tree node representing the
  32292. function.
  32293. If this macro is not defined, then the function size is not
  32294. defined.
  32295. You may wish to use 'ASM_OUTPUT_MEASURED_SIZE' in the definition of
  32296. this macro.
  32297. -- Macro: ASM_DECLARE_COLD_FUNCTION_NAME (STREAM, NAME, DECL)
  32298. A C statement (sans semicolon) to output to the stdio stream STREAM
  32299. any text necessary for declaring the name NAME of a cold function
  32300. partition which is being defined. This macro is responsible for
  32301. outputting the label definition (perhaps using
  32302. 'ASM_OUTPUT_FUNCTION_LABEL'). The argument DECL is the
  32303. 'FUNCTION_DECL' tree node representing the function.
  32304. If this macro is not defined, then the cold partition name is
  32305. defined in the usual manner as a label (by means of
  32306. 'ASM_OUTPUT_LABEL').
  32307. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' in the definition
  32308. of this macro.
  32309. -- Macro: ASM_DECLARE_COLD_FUNCTION_SIZE (STREAM, NAME, DECL)
  32310. A C statement (sans semicolon) to output to the stdio stream STREAM
  32311. any text necessary for declaring the size of a cold function
  32312. partition which is being defined. The argument NAME is the name of
  32313. the cold partition of the function. The argument DECL is the
  32314. 'FUNCTION_DECL' tree node representing the function.
  32315. If this macro is not defined, then the partition size is not
  32316. defined.
  32317. You may wish to use 'ASM_OUTPUT_MEASURED_SIZE' in the definition of
  32318. this macro.
  32319. -- Macro: ASM_DECLARE_OBJECT_NAME (STREAM, NAME, DECL)
  32320. A C statement (sans semicolon) to output to the stdio stream STREAM
  32321. any text necessary for declaring the name NAME of an initialized
  32322. variable which is being defined. This macro must output the label
  32323. definition (perhaps using 'ASM_OUTPUT_LABEL'). The argument DECL
  32324. is the 'VAR_DECL' tree node representing the variable.
  32325. If this macro is not defined, then the variable name is defined in
  32326. the usual manner as a label (by means of 'ASM_OUTPUT_LABEL').
  32327. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' and/or
  32328. 'ASM_OUTPUT_SIZE_DIRECTIVE' in the definition of this macro.
  32329. -- Target Hook: void TARGET_ASM_DECLARE_CONSTANT_NAME (FILE *FILE,
  32330. const char *NAME, const_tree EXPR, HOST_WIDE_INT SIZE)
  32331. A target hook to output to the stdio stream FILE any text necessary
  32332. for declaring the name NAME of a constant which is being defined.
  32333. This target hook is responsible for outputting the label definition
  32334. (perhaps using 'assemble_label'). The argument EXP is the value of
  32335. the constant, and SIZE is the size of the constant in bytes. The
  32336. NAME will be an internal label.
  32337. The default version of this target hook, define the NAME in the
  32338. usual manner as a label (by means of 'assemble_label').
  32339. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' in this target
  32340. hook.
  32341. -- Macro: ASM_DECLARE_REGISTER_GLOBAL (STREAM, DECL, REGNO, NAME)
  32342. A C statement (sans semicolon) to output to the stdio stream STREAM
  32343. any text necessary for claiming a register REGNO for a global
  32344. variable DECL with name NAME.
  32345. If you don't define this macro, that is equivalent to defining it
  32346. to do nothing.
  32347. -- Macro: ASM_FINISH_DECLARE_OBJECT (STREAM, DECL, TOPLEVEL, ATEND)
  32348. A C statement (sans semicolon) to finish up declaring a variable
  32349. name once the compiler has processed its initializer fully and thus
  32350. has had a chance to determine the size of an array when controlled
  32351. by an initializer. This is used on systems where it's necessary to
  32352. declare something about the size of the object.
  32353. If you don't define this macro, that is equivalent to defining it
  32354. to do nothing.
  32355. You may wish to use 'ASM_OUTPUT_SIZE_DIRECTIVE' and/or
  32356. 'ASM_OUTPUT_MEASURED_SIZE' in the definition of this macro.
  32357. -- Target Hook: void TARGET_ASM_GLOBALIZE_LABEL (FILE *STREAM, const
  32358. char *NAME)
  32359. This target hook is a function to output to the stdio stream STREAM
  32360. some commands that will make the label NAME global; that is,
  32361. available for reference from other files.
  32362. The default implementation relies on a proper definition of
  32363. 'GLOBAL_ASM_OP'.
  32364. -- Target Hook: void TARGET_ASM_GLOBALIZE_DECL_NAME (FILE *STREAM, tree
  32365. DECL)
  32366. This target hook is a function to output to the stdio stream STREAM
  32367. some commands that will make the name associated with DECL global;
  32368. that is, available for reference from other files.
  32369. The default implementation uses the TARGET_ASM_GLOBALIZE_LABEL
  32370. target hook.
  32371. -- Target Hook: void TARGET_ASM_ASSEMBLE_UNDEFINED_DECL (FILE *STREAM,
  32372. const char *NAME, const_tree DECL)
  32373. This target hook is a function to output to the stdio stream STREAM
  32374. some commands that will declare the name associated with DECL which
  32375. is not defined in the current translation unit. Most assemblers do
  32376. not require anything to be output in this case.
  32377. -- Macro: ASM_WEAKEN_LABEL (STREAM, NAME)
  32378. A C statement (sans semicolon) to output to the stdio stream STREAM
  32379. some commands that will make the label NAME weak; that is,
  32380. available for reference from other files but only used if no other
  32381. definition is available. Use the expression 'assemble_name
  32382. (STREAM, NAME)' to output the name itself; before and after that,
  32383. output the additional assembler syntax for making that name weak,
  32384. and a newline.
  32385. If you don't define this macro or 'ASM_WEAKEN_DECL', GCC will not
  32386. support weak symbols and you should not define the 'SUPPORTS_WEAK'
  32387. macro.
  32388. -- Macro: ASM_WEAKEN_DECL (STREAM, DECL, NAME, VALUE)
  32389. Combines (and replaces) the function of 'ASM_WEAKEN_LABEL' and
  32390. 'ASM_OUTPUT_WEAK_ALIAS', allowing access to the associated function
  32391. or variable decl. If VALUE is not 'NULL', this C statement should
  32392. output to the stdio stream STREAM assembler code which defines
  32393. (equates) the weak symbol NAME to have the value VALUE. If VALUE
  32394. is 'NULL', it should output commands to make NAME weak.
  32395. -- Macro: ASM_OUTPUT_WEAKREF (STREAM, DECL, NAME, VALUE)
  32396. Outputs a directive that enables NAME to be used to refer to symbol
  32397. VALUE with weak-symbol semantics. 'decl' is the declaration of
  32398. 'name'.
  32399. -- Macro: SUPPORTS_WEAK
  32400. A preprocessor constant expression which evaluates to true if the
  32401. target supports weak symbols.
  32402. If you don't define this macro, 'defaults.h' provides a default
  32403. definition. If either 'ASM_WEAKEN_LABEL' or 'ASM_WEAKEN_DECL' is
  32404. defined, the default definition is '1'; otherwise, it is '0'.
  32405. -- Macro: TARGET_SUPPORTS_WEAK
  32406. A C expression which evaluates to true if the target supports weak
  32407. symbols.
  32408. If you don't define this macro, 'defaults.h' provides a default
  32409. definition. The default definition is '(SUPPORTS_WEAK)'. Define
  32410. this macro if you want to control weak symbol support with a
  32411. compiler flag such as '-melf'.
  32412. -- Macro: MAKE_DECL_ONE_ONLY (DECL)
  32413. A C statement (sans semicolon) to mark DECL to be emitted as a
  32414. public symbol such that extra copies in multiple translation units
  32415. will be discarded by the linker. Define this macro if your object
  32416. file format provides support for this concept, such as the 'COMDAT'
  32417. section flags in the Microsoft Windows PE/COFF format, and this
  32418. support requires changes to DECL, such as putting it in a separate
  32419. section.
  32420. -- Macro: SUPPORTS_ONE_ONLY
  32421. A C expression which evaluates to true if the target supports
  32422. one-only semantics.
  32423. If you don't define this macro, 'varasm.c' provides a default
  32424. definition. If 'MAKE_DECL_ONE_ONLY' is defined, the default
  32425. definition is '1'; otherwise, it is '0'. Define this macro if you
  32426. want to control one-only symbol support with a compiler flag, or if
  32427. setting the 'DECL_ONE_ONLY' flag is enough to mark a declaration to
  32428. be emitted as one-only.
  32429. -- Target Hook: void TARGET_ASM_ASSEMBLE_VISIBILITY (tree DECL, int
  32430. VISIBILITY)
  32431. This target hook is a function to output to ASM_OUT_FILE some
  32432. commands that will make the symbol(s) associated with DECL have
  32433. hidden, protected or internal visibility as specified by
  32434. VISIBILITY.
  32435. -- Macro: TARGET_WEAK_NOT_IN_ARCHIVE_TOC
  32436. A C expression that evaluates to true if the target's linker
  32437. expects that weak symbols do not appear in a static archive's table
  32438. of contents. The default is '0'.
  32439. Leaving weak symbols out of an archive's table of contents means
  32440. that, if a symbol will only have a definition in one translation
  32441. unit and will have undefined references from other translation
  32442. units, that symbol should not be weak. Defining this macro to be
  32443. nonzero will thus have the effect that certain symbols that would
  32444. normally be weak (explicit template instantiations, and vtables for
  32445. polymorphic classes with noninline key methods) will instead be
  32446. nonweak.
  32447. The C++ ABI requires this macro to be zero. Define this macro for
  32448. targets where full C++ ABI compliance is impossible and where
  32449. linker restrictions require weak symbols to be left out of a static
  32450. archive's table of contents.
  32451. -- Macro: ASM_OUTPUT_EXTERNAL (STREAM, DECL, NAME)
  32452. A C statement (sans semicolon) to output to the stdio stream STREAM
  32453. any text necessary for declaring the name of an external symbol
  32454. named NAME which is referenced in this compilation but not defined.
  32455. The value of DECL is the tree node for the declaration.
  32456. This macro need not be defined if it does not need to output
  32457. anything. The GNU assembler and most Unix assemblers don't require
  32458. anything.
  32459. -- Target Hook: void TARGET_ASM_EXTERNAL_LIBCALL (rtx SYMREF)
  32460. This target hook is a function to output to ASM_OUT_FILE an
  32461. assembler pseudo-op to declare a library function name external.
  32462. The name of the library function is given by SYMREF, which is a
  32463. 'symbol_ref'.
  32464. -- Target Hook: void TARGET_ASM_MARK_DECL_PRESERVED (const char
  32465. *SYMBOL)
  32466. This target hook is a function to output to ASM_OUT_FILE an
  32467. assembler directive to annotate SYMBOL as used. The Darwin target
  32468. uses the .no_dead_code_strip directive.
  32469. -- Macro: ASM_OUTPUT_LABELREF (STREAM, NAME)
  32470. A C statement (sans semicolon) to output to the stdio stream STREAM
  32471. a reference in assembler syntax to a label named NAME. This should
  32472. add '_' to the front of the name, if that is customary on your
  32473. operating system, as it is in most Berkeley Unix systems. This
  32474. macro is used in 'assemble_name'.
  32475. -- Target Hook: tree TARGET_MANGLE_ASSEMBLER_NAME (const char *NAME)
  32476. Given a symbol NAME, perform same mangling as 'varasm.c''s
  32477. 'assemble_name', but in memory rather than to a file stream,
  32478. returning result as an 'IDENTIFIER_NODE'. Required for correct LTO
  32479. symtabs. The default implementation calls the
  32480. 'TARGET_STRIP_NAME_ENCODING' hook and then prepends the
  32481. 'USER_LABEL_PREFIX', if any.
  32482. -- Macro: ASM_OUTPUT_SYMBOL_REF (STREAM, SYM)
  32483. A C statement (sans semicolon) to output a reference to
  32484. 'SYMBOL_REF' SYM. If not defined, 'assemble_name' will be used to
  32485. output the name of the symbol. This macro may be used to modify
  32486. the way a symbol is referenced depending on information encoded by
  32487. 'TARGET_ENCODE_SECTION_INFO'.
  32488. -- Macro: ASM_OUTPUT_LABEL_REF (STREAM, BUF)
  32489. A C statement (sans semicolon) to output a reference to BUF, the
  32490. result of 'ASM_GENERATE_INTERNAL_LABEL'. If not defined,
  32491. 'assemble_name' will be used to output the name of the symbol.
  32492. This macro is not used by 'output_asm_label', or the '%l' specifier
  32493. that calls it; the intention is that this macro should be set when
  32494. it is necessary to output a label differently when its address is
  32495. being taken.
  32496. -- Target Hook: void TARGET_ASM_INTERNAL_LABEL (FILE *STREAM, const
  32497. char *PREFIX, unsigned long LABELNO)
  32498. A function to output to the stdio stream STREAM a label whose name
  32499. is made from the string PREFIX and the number LABELNO.
  32500. It is absolutely essential that these labels be distinct from the
  32501. labels used for user-level functions and variables. Otherwise,
  32502. certain programs will have name conflicts with internal labels.
  32503. It is desirable to exclude internal labels from the symbol table of
  32504. the object file. Most assemblers have a naming convention for
  32505. labels that should be excluded; on many systems, the letter 'L' at
  32506. the beginning of a label has this effect. You should find out what
  32507. convention your system uses, and follow it.
  32508. The default version of this function utilizes
  32509. 'ASM_GENERATE_INTERNAL_LABEL'.
  32510. -- Macro: ASM_OUTPUT_DEBUG_LABEL (STREAM, PREFIX, NUM)
  32511. A C statement to output to the stdio stream STREAM a debug info
  32512. label whose name is made from the string PREFIX and the number NUM.
  32513. This is useful for VLIW targets, where debug info labels may need
  32514. to be treated differently than branch target labels. On some
  32515. systems, branch target labels must be at the beginning of
  32516. instruction bundles, but debug info labels can occur in the middle
  32517. of instruction bundles.
  32518. If this macro is not defined, then
  32519. '(*targetm.asm_out.internal_label)' will be used.
  32520. -- Macro: ASM_GENERATE_INTERNAL_LABEL (STRING, PREFIX, NUM)
  32521. A C statement to store into the string STRING a label whose name is
  32522. made from the string PREFIX and the number NUM.
  32523. This string, when output subsequently by 'assemble_name', should
  32524. produce the output that '(*targetm.asm_out.internal_label)' would
  32525. produce with the same PREFIX and NUM.
  32526. If the string begins with '*', then 'assemble_name' will output the
  32527. rest of the string unchanged. It is often convenient for
  32528. 'ASM_GENERATE_INTERNAL_LABEL' to use '*' in this way. If the
  32529. string doesn't start with '*', then 'ASM_OUTPUT_LABELREF' gets to
  32530. output the string, and may change it. (Of course,
  32531. 'ASM_OUTPUT_LABELREF' is also part of your machine description, so
  32532. you should know what it does on your machine.)
  32533. -- Macro: ASM_FORMAT_PRIVATE_NAME (OUTVAR, NAME, NUMBER)
  32534. A C expression to assign to OUTVAR (which is a variable of type
  32535. 'char *') a newly allocated string made from the string NAME and
  32536. the number NUMBER, with some suitable punctuation added. Use
  32537. 'alloca' to get space for the string.
  32538. The string will be used as an argument to 'ASM_OUTPUT_LABELREF' to
  32539. produce an assembler label for an internal static variable whose
  32540. name is NAME. Therefore, the string must be such as to result in
  32541. valid assembler code. The argument NUMBER is different each time
  32542. this macro is executed; it prevents conflicts between
  32543. similarly-named internal static variables in different scopes.
  32544. Ideally this string should not be a valid C identifier, to prevent
  32545. any conflict with the user's own symbols. Most assemblers allow
  32546. periods or percent signs in assembler symbols; putting at least one
  32547. of these between the name and the number will suffice.
  32548. If this macro is not defined, a default definition will be provided
  32549. which is correct for most systems.
  32550. -- Macro: ASM_OUTPUT_DEF (STREAM, NAME, VALUE)
  32551. A C statement to output to the stdio stream STREAM assembler code
  32552. which defines (equates) the symbol NAME to have the value VALUE.
  32553. If 'SET_ASM_OP' is defined, a default definition is provided which
  32554. is correct for most systems.
  32555. -- Macro: ASM_OUTPUT_DEF_FROM_DECLS (STREAM, DECL_OF_NAME,
  32556. DECL_OF_VALUE)
  32557. A C statement to output to the stdio stream STREAM assembler code
  32558. which defines (equates) the symbol whose tree node is DECL_OF_NAME
  32559. to have the value of the tree node DECL_OF_VALUE. This macro will
  32560. be used in preference to 'ASM_OUTPUT_DEF' if it is defined and if
  32561. the tree nodes are available.
  32562. If 'SET_ASM_OP' is defined, a default definition is provided which
  32563. is correct for most systems.
  32564. -- Macro: TARGET_DEFERRED_OUTPUT_DEFS (DECL_OF_NAME, DECL_OF_VALUE)
  32565. A C statement that evaluates to true if the assembler code which
  32566. defines (equates) the symbol whose tree node is DECL_OF_NAME to
  32567. have the value of the tree node DECL_OF_VALUE should be emitted
  32568. near the end of the current compilation unit. The default is to
  32569. not defer output of defines. This macro affects defines output by
  32570. 'ASM_OUTPUT_DEF' and 'ASM_OUTPUT_DEF_FROM_DECLS'.
  32571. -- Macro: ASM_OUTPUT_WEAK_ALIAS (STREAM, NAME, VALUE)
  32572. A C statement to output to the stdio stream STREAM assembler code
  32573. which defines (equates) the weak symbol NAME to have the value
  32574. VALUE. If VALUE is 'NULL', it defines NAME as an undefined weak
  32575. symbol.
  32576. Define this macro if the target only supports weak aliases; define
  32577. 'ASM_OUTPUT_DEF' instead if possible.
  32578. -- Macro: OBJC_GEN_METHOD_LABEL (BUF, IS_INST, CLASS_NAME, CAT_NAME,
  32579. SEL_NAME)
  32580. Define this macro to override the default assembler names used for
  32581. Objective-C methods.
  32582. The default name is a unique method number followed by the name of
  32583. the class (e.g. '_1_Foo'). For methods in categories, the name of
  32584. the category is also included in the assembler name (e.g.
  32585. '_1_Foo_Bar').
  32586. These names are safe on most systems, but make debugging difficult
  32587. since the method's selector is not present in the name. Therefore,
  32588. particular systems define other ways of computing names.
  32589. BUF is an expression of type 'char *' which gives you a buffer in
  32590. which to store the name; its length is as long as CLASS_NAME,
  32591. CAT_NAME and SEL_NAME put together, plus 50 characters extra.
  32592. The argument IS_INST specifies whether the method is an instance
  32593. method or a class method; CLASS_NAME is the name of the class;
  32594. CAT_NAME is the name of the category (or 'NULL' if the method is
  32595. not in a category); and SEL_NAME is the name of the selector.
  32596. On systems where the assembler can handle quoted names, you can use
  32597. this macro to provide more human-readable names.
  32598. 
  32599. File: gccint.info, Node: Initialization, Next: Macros for Initialization, Prev: Label Output, Up: Assembler Format
  32600. 18.20.5 How Initialization Functions Are Handled
  32601. ------------------------------------------------
  32602. The compiled code for certain languages includes "constructors" (also
  32603. called "initialization routines")--functions to initialize data in the
  32604. program when the program is started. These functions need to be called
  32605. before the program is "started"--that is to say, before 'main' is
  32606. called.
  32607. Compiling some languages generates "destructors" (also called
  32608. "termination routines") that should be called when the program
  32609. terminates.
  32610. To make the initialization and termination functions work, the compiler
  32611. must output something in the assembler code to cause those functions to
  32612. be called at the appropriate time. When you port the compiler to a new
  32613. system, you need to specify how to do this.
  32614. There are two major ways that GCC currently supports the execution of
  32615. initialization and termination functions. Each way has two variants.
  32616. Much of the structure is common to all four variations.
  32617. The linker must build two lists of these functions--a list of
  32618. initialization functions, called '__CTOR_LIST__', and a list of
  32619. termination functions, called '__DTOR_LIST__'.
  32620. Each list always begins with an ignored function pointer (which may
  32621. hold 0, -1, or a count of the function pointers after it, depending on
  32622. the environment). This is followed by a series of zero or more function
  32623. pointers to constructors (or destructors), followed by a function
  32624. pointer containing zero.
  32625. Depending on the operating system and its executable file format,
  32626. either 'crtstuff.c' or 'libgcc2.c' traverses these lists at startup time
  32627. and exit time. Constructors are called in reverse order of the list;
  32628. destructors in forward order.
  32629. The best way to handle static constructors works only for object file
  32630. formats which provide arbitrarily-named sections. A section is set
  32631. aside for a list of constructors, and another for a list of destructors.
  32632. Traditionally these are called '.ctors' and '.dtors'. Each object file
  32633. that defines an initialization function also puts a word in the
  32634. constructor section to point to that function. The linker accumulates
  32635. all these words into one contiguous '.ctors' section. Termination
  32636. functions are handled similarly.
  32637. This method will be chosen as the default by 'target-def.h' if
  32638. 'TARGET_ASM_NAMED_SECTION' is defined. A target that does not support
  32639. arbitrary sections, but does support special designated constructor and
  32640. destructor sections may define 'CTORS_SECTION_ASM_OP' and
  32641. 'DTORS_SECTION_ASM_OP' to achieve the same effect.
  32642. When arbitrary sections are available, there are two variants,
  32643. depending upon how the code in 'crtstuff.c' is called. On systems that
  32644. support a ".init" section which is executed at program startup, parts of
  32645. 'crtstuff.c' are compiled into that section. The program is linked by
  32646. the 'gcc' driver like this:
  32647. ld -o OUTPUT_FILE crti.o crtbegin.o ... -lgcc crtend.o crtn.o
  32648. The prologue of a function ('__init') appears in the '.init' section of
  32649. 'crti.o'; the epilogue appears in 'crtn.o'. Likewise for the function
  32650. '__fini' in the ".fini" section. Normally these files are provided by
  32651. the operating system or by the GNU C library, but are provided by GCC
  32652. for a few targets.
  32653. The objects 'crtbegin.o' and 'crtend.o' are (for most targets) compiled
  32654. from 'crtstuff.c'. They contain, among other things, code fragments
  32655. within the '.init' and '.fini' sections that branch to routines in the
  32656. '.text' section. The linker will pull all parts of a section together,
  32657. which results in a complete '__init' function that invokes the routines
  32658. we need at startup.
  32659. To use this variant, you must define the 'INIT_SECTION_ASM_OP' macro
  32660. properly.
  32661. If no init section is available, when GCC compiles any function called
  32662. 'main' (or more accurately, any function designated as a program entry
  32663. point by the language front end calling 'expand_main_function'), it
  32664. inserts a procedure call to '__main' as the first executable code after
  32665. the function prologue. The '__main' function is defined in 'libgcc2.c'
  32666. and runs the global constructors.
  32667. In file formats that don't support arbitrary sections, there are again
  32668. two variants. In the simplest variant, the GNU linker (GNU 'ld') and an
  32669. 'a.out' format must be used. In this case, 'TARGET_ASM_CONSTRUCTOR' is
  32670. defined to produce a '.stabs' entry of type 'N_SETT', referencing the
  32671. name '__CTOR_LIST__', and with the address of the void function
  32672. containing the initialization code as its value. The GNU linker
  32673. recognizes this as a request to add the value to a "set"; the values are
  32674. accumulated, and are eventually placed in the executable as a vector in
  32675. the format described above, with a leading (ignored) count and a
  32676. trailing zero element. 'TARGET_ASM_DESTRUCTOR' is handled similarly.
  32677. Since no init section is available, the absence of 'INIT_SECTION_ASM_OP'
  32678. causes the compilation of 'main' to call '__main' as above, starting the
  32679. initialization process.
  32680. The last variant uses neither arbitrary sections nor the GNU linker.
  32681. This is preferable when you want to do dynamic linking and when using
  32682. file formats which the GNU linker does not support, such as 'ECOFF'. In
  32683. this case, 'TARGET_HAVE_CTORS_DTORS' is false, initialization and
  32684. termination functions are recognized simply by their names. This
  32685. requires an extra program in the linkage step, called 'collect2'. This
  32686. program pretends to be the linker, for use with GCC; it does its job by
  32687. running the ordinary linker, but also arranges to include the vectors of
  32688. initialization and termination functions. These functions are called
  32689. via '__main' as described above. In order to use this method,
  32690. 'use_collect2' must be defined in the target in 'config.gcc'.
  32691. The following section describes the specific macros that control and
  32692. customize the handling of initialization and termination functions.
  32693. 
  32694. File: gccint.info, Node: Macros for Initialization, Next: Instruction Output, Prev: Initialization, Up: Assembler Format
  32695. 18.20.6 Macros Controlling Initialization Routines
  32696. --------------------------------------------------
  32697. Here are the macros that control how the compiler handles initialization
  32698. and termination functions:
  32699. -- Macro: INIT_SECTION_ASM_OP
  32700. If defined, a C string constant, including spacing, for the
  32701. assembler operation to identify the following data as
  32702. initialization code. If not defined, GCC will assume such a
  32703. section does not exist. When you are using special sections for
  32704. initialization and termination functions, this macro also controls
  32705. how 'crtstuff.c' and 'libgcc2.c' arrange to run the initialization
  32706. functions.
  32707. -- Macro: HAS_INIT_SECTION
  32708. If defined, 'main' will not call '__main' as described above. This
  32709. macro should be defined for systems that control start-up code on a
  32710. symbol-by-symbol basis, such as OSF/1, and should not be defined
  32711. explicitly for systems that support 'INIT_SECTION_ASM_OP'.
  32712. -- Macro: LD_INIT_SWITCH
  32713. If defined, a C string constant for a switch that tells the linker
  32714. that the following symbol is an initialization routine.
  32715. -- Macro: LD_FINI_SWITCH
  32716. If defined, a C string constant for a switch that tells the linker
  32717. that the following symbol is a finalization routine.
  32718. -- Macro: COLLECT_SHARED_INIT_FUNC (STREAM, FUNC)
  32719. If defined, a C statement that will write a function that can be
  32720. automatically called when a shared library is loaded. The function
  32721. should call FUNC, which takes no arguments. If not defined, and
  32722. the object format requires an explicit initialization function,
  32723. then a function called '_GLOBAL__DI' will be generated.
  32724. This function and the following one are used by collect2 when
  32725. linking a shared library that needs constructors or destructors, or
  32726. has DWARF2 exception tables embedded in the code.
  32727. -- Macro: COLLECT_SHARED_FINI_FUNC (STREAM, FUNC)
  32728. If defined, a C statement that will write a function that can be
  32729. automatically called when a shared library is unloaded. The
  32730. function should call FUNC, which takes no arguments. If not
  32731. defined, and the object format requires an explicit finalization
  32732. function, then a function called '_GLOBAL__DD' will be generated.
  32733. -- Macro: INVOKE__main
  32734. If defined, 'main' will call '__main' despite the presence of
  32735. 'INIT_SECTION_ASM_OP'. This macro should be defined for systems
  32736. where the init section is not actually run automatically, but is
  32737. still useful for collecting the lists of constructors and
  32738. destructors.
  32739. -- Macro: SUPPORTS_INIT_PRIORITY
  32740. If nonzero, the C++ 'init_priority' attribute is supported and the
  32741. compiler should emit instructions to control the order of
  32742. initialization of objects. If zero, the compiler will issue an
  32743. error message upon encountering an 'init_priority' attribute.
  32744. -- Target Hook: bool TARGET_HAVE_CTORS_DTORS
  32745. This value is true if the target supports some "native" method of
  32746. collecting constructors and destructors to be run at startup and
  32747. exit. It is false if we must use 'collect2'.
  32748. -- Target Hook: void TARGET_ASM_CONSTRUCTOR (rtx SYMBOL, int PRIORITY)
  32749. If defined, a function that outputs assembler code to arrange to
  32750. call the function referenced by SYMBOL at initialization time.
  32751. Assume that SYMBOL is a 'SYMBOL_REF' for a function taking no
  32752. arguments and with no return value. If the target supports
  32753. initialization priorities, PRIORITY is a value between 0 and
  32754. 'MAX_INIT_PRIORITY'; otherwise it must be 'DEFAULT_INIT_PRIORITY'.
  32755. If this macro is not defined by the target, a suitable default will
  32756. be chosen if (1) the target supports arbitrary section names, (2)
  32757. the target defines 'CTORS_SECTION_ASM_OP', or (3) 'USE_COLLECT2' is
  32758. not defined.
  32759. -- Target Hook: void TARGET_ASM_DESTRUCTOR (rtx SYMBOL, int PRIORITY)
  32760. This is like 'TARGET_ASM_CONSTRUCTOR' but used for termination
  32761. functions rather than initialization functions.
  32762. If 'TARGET_HAVE_CTORS_DTORS' is true, the initialization routine
  32763. generated for the generated object file will have static linkage.
  32764. If your system uses 'collect2' as the means of processing constructors,
  32765. then that program normally uses 'nm' to scan an object file for
  32766. constructor functions to be called.
  32767. On certain kinds of systems, you can define this macro to make
  32768. 'collect2' work faster (and, in some cases, make it work at all):
  32769. -- Macro: OBJECT_FORMAT_COFF
  32770. Define this macro if the system uses COFF (Common Object File
  32771. Format) object files, so that 'collect2' can assume this format and
  32772. scan object files directly for dynamic constructor/destructor
  32773. functions.
  32774. This macro is effective only in a native compiler; 'collect2' as
  32775. part of a cross compiler always uses 'nm' for the target machine.
  32776. -- Macro: REAL_NM_FILE_NAME
  32777. Define this macro as a C string constant containing the file name
  32778. to use to execute 'nm'. The default is to search the path normally
  32779. for 'nm'.
  32780. -- Macro: NM_FLAGS
  32781. 'collect2' calls 'nm' to scan object files for static constructors
  32782. and destructors and LTO info. By default, '-n' is passed. Define
  32783. 'NM_FLAGS' to a C string constant if other options are needed to
  32784. get the same output format as GNU 'nm -n' produces.
  32785. If your system supports shared libraries and has a program to list the
  32786. dynamic dependencies of a given library or executable, you can define
  32787. these macros to enable support for running initialization and
  32788. termination functions in shared libraries:
  32789. -- Macro: LDD_SUFFIX
  32790. Define this macro to a C string constant containing the name of the
  32791. program which lists dynamic dependencies, like 'ldd' under SunOS 4.
  32792. -- Macro: PARSE_LDD_OUTPUT (PTR)
  32793. Define this macro to be C code that extracts filenames from the
  32794. output of the program denoted by 'LDD_SUFFIX'. PTR is a variable
  32795. of type 'char *' that points to the beginning of a line of output
  32796. from 'LDD_SUFFIX'. If the line lists a dynamic dependency, the
  32797. code must advance PTR to the beginning of the filename on that
  32798. line. Otherwise, it must set PTR to 'NULL'.
  32799. -- Macro: SHLIB_SUFFIX
  32800. Define this macro to a C string constant containing the default
  32801. shared library extension of the target (e.g., '".so"'). 'collect2'
  32802. strips version information after this suffix when generating global
  32803. constructor and destructor names. This define is only needed on
  32804. targets that use 'collect2' to process constructors and
  32805. destructors.
  32806. 
  32807. File: gccint.info, Node: Instruction Output, Next: Dispatch Tables, Prev: Macros for Initialization, Up: Assembler Format
  32808. 18.20.7 Output of Assembler Instructions
  32809. ----------------------------------------
  32810. This describes assembler instruction output.
  32811. -- Macro: REGISTER_NAMES
  32812. A C initializer containing the assembler's names for the machine
  32813. registers, each one as a C string constant. This is what
  32814. translates register numbers in the compiler into assembler
  32815. language.
  32816. -- Macro: ADDITIONAL_REGISTER_NAMES
  32817. If defined, a C initializer for an array of structures containing a
  32818. name and a register number. This macro defines additional names
  32819. for hard registers, thus allowing the 'asm' option in declarations
  32820. to refer to registers using alternate names.
  32821. -- Macro: OVERLAPPING_REGISTER_NAMES
  32822. If defined, a C initializer for an array of structures containing a
  32823. name, a register number and a count of the number of consecutive
  32824. machine registers the name overlaps. This macro defines additional
  32825. names for hard registers, thus allowing the 'asm' option in
  32826. declarations to refer to registers using alternate names. Unlike
  32827. 'ADDITIONAL_REGISTER_NAMES', this macro should be used when the
  32828. register name implies multiple underlying registers.
  32829. This macro should be used when it is important that a clobber in an
  32830. 'asm' statement clobbers all the underlying values implied by the
  32831. register name. For example, on ARM, clobbering the
  32832. double-precision VFP register "d0" implies clobbering both
  32833. single-precision registers "s0" and "s1".
  32834. -- Macro: ASM_OUTPUT_OPCODE (STREAM, PTR)
  32835. Define this macro if you are using an unusual assembler that
  32836. requires different names for the machine instructions.
  32837. The definition is a C statement or statements which output an
  32838. assembler instruction opcode to the stdio stream STREAM. The
  32839. macro-operand PTR is a variable of type 'char *' which points to
  32840. the opcode name in its "internal" form--the form that is written in
  32841. the machine description. The definition should output the opcode
  32842. name to STREAM, performing any translation you desire, and
  32843. increment the variable PTR to point at the end of the opcode so
  32844. that it will not be output twice.
  32845. In fact, your macro definition may process less than the entire
  32846. opcode name, or more than the opcode name; but if you want to
  32847. process text that includes '%'-sequences to substitute operands,
  32848. you must take care of the substitution yourself. Just be sure to
  32849. increment PTR over whatever text should not be output normally.
  32850. If you need to look at the operand values, they can be found as the
  32851. elements of 'recog_data.operand'.
  32852. If the macro definition does nothing, the instruction is output in
  32853. the usual way.
  32854. -- Macro: FINAL_PRESCAN_INSN (INSN, OPVEC, NOPERANDS)
  32855. If defined, a C statement to be executed just prior to the output
  32856. of assembler code for INSN, to modify the extracted operands so
  32857. they will be output differently.
  32858. Here the argument OPVEC is the vector containing the operands
  32859. extracted from INSN, and NOPERANDS is the number of elements of the
  32860. vector which contain meaningful data for this insn. The contents
  32861. of this vector are what will be used to convert the insn template
  32862. into assembler code, so you can change the assembler output by
  32863. changing the contents of the vector.
  32864. This macro is useful when various assembler syntaxes share a single
  32865. file of instruction patterns; by defining this macro differently,
  32866. you can cause a large class of instructions to be output
  32867. differently (such as with rearranged operands). Naturally,
  32868. variations in assembler syntax affecting individual insn patterns
  32869. ought to be handled by writing conditional output routines in those
  32870. patterns.
  32871. If this macro is not defined, it is equivalent to a null statement.
  32872. -- Target Hook: void TARGET_ASM_FINAL_POSTSCAN_INSN (FILE *FILE,
  32873. rtx_insn *INSN, rtx *OPVEC, int NOPERANDS)
  32874. If defined, this target hook is a function which is executed just
  32875. after the output of assembler code for INSN, to change the mode of
  32876. the assembler if necessary.
  32877. Here the argument OPVEC is the vector containing the operands
  32878. extracted from INSN, and NOPERANDS is the number of elements of the
  32879. vector which contain meaningful data for this insn. The contents
  32880. of this vector are what was used to convert the insn template into
  32881. assembler code, so you can change the assembler mode by checking
  32882. the contents of the vector.
  32883. -- Macro: PRINT_OPERAND (STREAM, X, CODE)
  32884. A C compound statement to output to stdio stream STREAM the
  32885. assembler syntax for an instruction operand X. X is an RTL
  32886. expression.
  32887. CODE is a value that can be used to specify one of several ways of
  32888. printing the operand. It is used when identical operands must be
  32889. printed differently depending on the context. CODE comes from the
  32890. '%' specification that was used to request printing of the operand.
  32891. If the specification was just '%DIGIT' then CODE is 0; if the
  32892. specification was '%LTR DIGIT' then CODE is the ASCII code for LTR.
  32893. If X is a register, this macro should print the register's name.
  32894. The names can be found in an array 'reg_names' whose type is 'char
  32895. *[]'. 'reg_names' is initialized from 'REGISTER_NAMES'.
  32896. When the machine description has a specification '%PUNCT' (a '%'
  32897. followed by a punctuation character), this macro is called with a
  32898. null pointer for X and the punctuation character for CODE.
  32899. -- Macro: PRINT_OPERAND_PUNCT_VALID_P (CODE)
  32900. A C expression which evaluates to true if CODE is a valid
  32901. punctuation character for use in the 'PRINT_OPERAND' macro. If
  32902. 'PRINT_OPERAND_PUNCT_VALID_P' is not defined, it means that no
  32903. punctuation characters (except for the standard one, '%') are used
  32904. in this way.
  32905. -- Macro: PRINT_OPERAND_ADDRESS (STREAM, X)
  32906. A C compound statement to output to stdio stream STREAM the
  32907. assembler syntax for an instruction operand that is a memory
  32908. reference whose address is X. X is an RTL expression.
  32909. On some machines, the syntax for a symbolic address depends on the
  32910. section that the address refers to. On these machines, define the
  32911. hook 'TARGET_ENCODE_SECTION_INFO' to store the information into the
  32912. 'symbol_ref', and then check for it here. *Note Assembler
  32913. Format::.
  32914. -- Macro: DBR_OUTPUT_SEQEND (FILE)
  32915. A C statement, to be executed after all slot-filler instructions
  32916. have been output. If necessary, call 'dbr_sequence_length' to
  32917. determine the number of slots filled in a sequence (zero if not
  32918. currently outputting a sequence), to decide how many no-ops to
  32919. output, or whatever.
  32920. Don't define this macro if it has nothing to do, but it is helpful
  32921. in reading assembly output if the extent of the delay sequence is
  32922. made explicit (e.g. with white space).
  32923. Note that output routines for instructions with delay slots must be
  32924. prepared to deal with not being output as part of a sequence (i.e. when
  32925. the scheduling pass is not run, or when no slot fillers could be found.)
  32926. The variable 'final_sequence' is null when not processing a sequence,
  32927. otherwise it contains the 'sequence' rtx being output.
  32928. -- Macro: REGISTER_PREFIX
  32929. -- Macro: LOCAL_LABEL_PREFIX
  32930. -- Macro: USER_LABEL_PREFIX
  32931. -- Macro: IMMEDIATE_PREFIX
  32932. If defined, C string expressions to be used for the '%R', '%L',
  32933. '%U', and '%I' options of 'asm_fprintf' (see 'final.c'). These are
  32934. useful when a single 'md' file must support multiple assembler
  32935. formats. In that case, the various 'tm.h' files can define these
  32936. macros differently.
  32937. -- Macro: ASM_FPRINTF_EXTENSIONS (FILE, ARGPTR, FORMAT)
  32938. If defined this macro should expand to a series of 'case'
  32939. statements which will be parsed inside the 'switch' statement of
  32940. the 'asm_fprintf' function. This allows targets to define extra
  32941. printf formats which may useful when generating their assembler
  32942. statements. Note that uppercase letters are reserved for future
  32943. generic extensions to asm_fprintf, and so are not available to
  32944. target specific code. The output file is given by the parameter
  32945. FILE. The varargs input pointer is ARGPTR and the rest of the
  32946. format string, starting the character after the one that is being
  32947. switched upon, is pointed to by FORMAT.
  32948. -- Macro: ASSEMBLER_DIALECT
  32949. If your target supports multiple dialects of assembler language
  32950. (such as different opcodes), define this macro as a C expression
  32951. that gives the numeric index of the assembler language dialect to
  32952. use, with zero as the first variant.
  32953. If this macro is defined, you may use constructs of the form
  32954. '{option0|option1|option2...}'
  32955. in the output templates of patterns (*note Output Template::) or in
  32956. the first argument of 'asm_fprintf'. This construct outputs
  32957. 'option0', 'option1', 'option2', etc., if the value of
  32958. 'ASSEMBLER_DIALECT' is zero, one, two, etc. Any special characters
  32959. within these strings retain their usual meaning. If there are
  32960. fewer alternatives within the braces than the value of
  32961. 'ASSEMBLER_DIALECT', the construct outputs nothing. If it's needed
  32962. to print curly braces or '|' character in assembler output
  32963. directly, '%{', '%}' and '%|' can be used.
  32964. If you do not define this macro, the characters '{', '|' and '}' do
  32965. not have any special meaning when used in templates or operands to
  32966. 'asm_fprintf'.
  32967. Define the macros 'REGISTER_PREFIX', 'LOCAL_LABEL_PREFIX',
  32968. 'USER_LABEL_PREFIX' and 'IMMEDIATE_PREFIX' if you can express the
  32969. variations in assembler language syntax with that mechanism.
  32970. Define 'ASSEMBLER_DIALECT' and use the '{option0|option1}' syntax
  32971. if the syntax variant are larger and involve such things as
  32972. different opcodes or operand order.
  32973. -- Macro: ASM_OUTPUT_REG_PUSH (STREAM, REGNO)
  32974. A C expression to output to STREAM some assembler code which will
  32975. push hard register number REGNO onto the stack. The code need not
  32976. be optimal, since this macro is used only when profiling.
  32977. -- Macro: ASM_OUTPUT_REG_POP (STREAM, REGNO)
  32978. A C expression to output to STREAM some assembler code which will
  32979. pop hard register number REGNO off of the stack. The code need not
  32980. be optimal, since this macro is used only when profiling.
  32981. 
  32982. File: gccint.info, Node: Dispatch Tables, Next: Exception Region Output, Prev: Instruction Output, Up: Assembler Format
  32983. 18.20.8 Output of Dispatch Tables
  32984. ---------------------------------
  32985. This concerns dispatch tables.
  32986. -- Macro: ASM_OUTPUT_ADDR_DIFF_ELT (STREAM, BODY, VALUE, REL)
  32987. A C statement to output to the stdio stream STREAM an assembler
  32988. pseudo-instruction to generate a difference between two labels.
  32989. VALUE and REL are the numbers of two internal labels. The
  32990. definitions of these labels are output using
  32991. '(*targetm.asm_out.internal_label)', and they must be printed in
  32992. the same way here. For example,
  32993. fprintf (STREAM, "\t.word L%d-L%d\n",
  32994. VALUE, REL)
  32995. You must provide this macro on machines where the addresses in a
  32996. dispatch table are relative to the table's own address. If
  32997. defined, GCC will also use this macro on all machines when
  32998. producing PIC. BODY is the body of the 'ADDR_DIFF_VEC'; it is
  32999. provided so that the mode and flags can be read.
  33000. -- Macro: ASM_OUTPUT_ADDR_VEC_ELT (STREAM, VALUE)
  33001. This macro should be provided on machines where the addresses in a
  33002. dispatch table are absolute.
  33003. The definition should be a C statement to output to the stdio
  33004. stream STREAM an assembler pseudo-instruction to generate a
  33005. reference to a label. VALUE is the number of an internal label
  33006. whose definition is output using
  33007. '(*targetm.asm_out.internal_label)'. For example,
  33008. fprintf (STREAM, "\t.word L%d\n", VALUE)
  33009. -- Macro: ASM_OUTPUT_CASE_LABEL (STREAM, PREFIX, NUM, TABLE)
  33010. Define this if the label before a jump-table needs to be output
  33011. specially. The first three arguments are the same as for
  33012. '(*targetm.asm_out.internal_label)'; the fourth argument is the
  33013. jump-table which follows (a 'jump_table_data' containing an
  33014. 'addr_vec' or 'addr_diff_vec').
  33015. This feature is used on system V to output a 'swbeg' statement for
  33016. the table.
  33017. If this macro is not defined, these labels are output with
  33018. '(*targetm.asm_out.internal_label)'.
  33019. -- Macro: ASM_OUTPUT_CASE_END (STREAM, NUM, TABLE)
  33020. Define this if something special must be output at the end of a
  33021. jump-table. The definition should be a C statement to be executed
  33022. after the assembler code for the table is written. It should write
  33023. the appropriate code to stdio stream STREAM. The argument TABLE is
  33024. the jump-table insn, and NUM is the label-number of the preceding
  33025. label.
  33026. If this macro is not defined, nothing special is output at the end
  33027. of the jump-table.
  33028. -- Target Hook: void TARGET_ASM_POST_CFI_STARTPROC (FILE *, TREE)
  33029. This target hook is used to emit assembly strings required by the
  33030. target after the .cfi_startproc directive. The first argument is
  33031. the file stream to write the strings to and the second argument is
  33032. the function's declaration. The expected use is to add more .cfi_*
  33033. directives.
  33034. The default is to not output any assembly strings.
  33035. -- Target Hook: void TARGET_ASM_EMIT_UNWIND_LABEL (FILE *STREAM, tree
  33036. DECL, int FOR_EH, int EMPTY)
  33037. This target hook emits a label at the beginning of each FDE. It
  33038. should be defined on targets where FDEs need special labels, and it
  33039. should write the appropriate label, for the FDE associated with the
  33040. function declaration DECL, to the stdio stream STREAM. The third
  33041. argument, FOR_EH, is a boolean: true if this is for an exception
  33042. table. The fourth argument, EMPTY, is a boolean: true if this is a
  33043. placeholder label for an omitted FDE.
  33044. The default is that FDEs are not given nonlocal labels.
  33045. -- Target Hook: void TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL (FILE *STREAM)
  33046. This target hook emits a label at the beginning of the exception
  33047. table. It should be defined on targets where it is desirable for
  33048. the table to be broken up according to function.
  33049. The default is that no label is emitted.
  33050. -- Target Hook: void TARGET_ASM_EMIT_EXCEPT_PERSONALITY (rtx
  33051. PERSONALITY)
  33052. If the target implements 'TARGET_ASM_UNWIND_EMIT', this hook may be
  33053. used to emit a directive to install a personality hook into the
  33054. unwind info. This hook should not be used if dwarf2 unwind info is
  33055. used.
  33056. -- Target Hook: void TARGET_ASM_UNWIND_EMIT (FILE *STREAM, rtx_insn
  33057. *INSN)
  33058. This target hook emits assembly directives required to unwind the
  33059. given instruction. This is only used when
  33060. 'TARGET_EXCEPT_UNWIND_INFO' returns 'UI_TARGET'.
  33061. -- Target Hook: rtx TARGET_ASM_MAKE_EH_SYMBOL_INDIRECT (rtx ORIGSYMBOL,
  33062. bool PUBVIS)
  33063. If necessary, modify personality and LSDA references to handle
  33064. indirection. The original symbol is in 'origsymbol' and if
  33065. 'pubvis' is true the symbol is visible outside the TU.
  33066. -- Target Hook: bool TARGET_ASM_UNWIND_EMIT_BEFORE_INSN
  33067. True if the 'TARGET_ASM_UNWIND_EMIT' hook should be called before
  33068. the assembly for INSN has been emitted, false if the hook should be
  33069. called afterward.
  33070. -- Target Hook: bool TARGET_ASM_SHOULD_RESTORE_CFA_STATE (void)
  33071. For DWARF-based unwind frames, two CFI instructions provide for
  33072. save and restore of register state. GCC maintains the current
  33073. frame address (CFA) separately from the register bank but the
  33074. unwinder in libgcc preserves this state along with the registers
  33075. (and this is expected by the code that writes the unwind frames).
  33076. This hook allows the target to specify that the CFA data is not
  33077. saved/restored along with the registers by the target unwinder so
  33078. that suitable additional instructions should be emitted to restore
  33079. it.
  33080. 
  33081. File: gccint.info, Node: Exception Region Output, Next: Alignment Output, Prev: Dispatch Tables, Up: Assembler Format
  33082. 18.20.9 Assembler Commands for Exception Regions
  33083. ------------------------------------------------
  33084. This describes commands marking the start and the end of an exception
  33085. region.
  33086. -- Macro: EH_FRAME_SECTION_NAME
  33087. If defined, a C string constant for the name of the section
  33088. containing exception handling frame unwind information. If not
  33089. defined, GCC will provide a default definition if the target
  33090. supports named sections. 'crtstuff.c' uses this macro to switch to
  33091. the appropriate section.
  33092. You should define this symbol if your target supports DWARF 2 frame
  33093. unwind information and the default definition does not work.
  33094. -- Macro: EH_FRAME_THROUGH_COLLECT2
  33095. If defined, DWARF 2 frame unwind information will identified by
  33096. specially named labels. The collect2 process will locate these
  33097. labels and generate code to register the frames.
  33098. This might be necessary, for instance, if the system linker will
  33099. not place the eh_frames in-between the sentinals from 'crtstuff.c',
  33100. or if the system linker does garbage collection and sections cannot
  33101. be marked as not to be collected.
  33102. -- Macro: EH_TABLES_CAN_BE_READ_ONLY
  33103. Define this macro to 1 if your target is such that no frame unwind
  33104. information encoding used with non-PIC code will ever require a
  33105. runtime relocation, but the linker may not support merging
  33106. read-only and read-write sections into a single read-write section.
  33107. -- Macro: MASK_RETURN_ADDR
  33108. An rtx used to mask the return address found via 'RETURN_ADDR_RTX',
  33109. so that it does not contain any extraneous set bits in it.
  33110. -- Macro: DWARF2_UNWIND_INFO
  33111. Define this macro to 0 if your target supports DWARF 2 frame unwind
  33112. information, but it does not yet work with exception handling.
  33113. Otherwise, if your target supports this information (if it defines
  33114. 'INCOMING_RETURN_ADDR_RTX' and 'OBJECT_FORMAT_ELF'), GCC will
  33115. provide a default definition of 1.
  33116. -- Common Target Hook: enum unwind_info_type TARGET_EXCEPT_UNWIND_INFO
  33117. (struct gcc_options *OPTS)
  33118. This hook defines the mechanism that will be used for exception
  33119. handling by the target. If the target has ABI specified unwind
  33120. tables, the hook should return 'UI_TARGET'. If the target is to
  33121. use the 'setjmp'/'longjmp'-based exception handling scheme, the
  33122. hook should return 'UI_SJLJ'. If the target supports DWARF 2 frame
  33123. unwind information, the hook should return 'UI_DWARF2'.
  33124. A target may, if exceptions are disabled, choose to return
  33125. 'UI_NONE'. This may end up simplifying other parts of
  33126. target-specific code. The default implementation of this hook
  33127. never returns 'UI_NONE'.
  33128. Note that the value returned by this hook should be constant. It
  33129. should not depend on anything except the command-line switches
  33130. described by OPTS. In particular, the setting 'UI_SJLJ' must be
  33131. fixed at compiler start-up as C pre-processor macros and builtin
  33132. functions related to exception handling are set up depending on
  33133. this setting.
  33134. The default implementation of the hook first honors the
  33135. '--enable-sjlj-exceptions' configure option, then
  33136. 'DWARF2_UNWIND_INFO', and finally defaults to 'UI_SJLJ'. If
  33137. 'DWARF2_UNWIND_INFO' depends on command-line options, the target
  33138. must define this hook so that OPTS is used correctly.
  33139. -- Common Target Hook: bool TARGET_UNWIND_TABLES_DEFAULT
  33140. This variable should be set to 'true' if the target ABI requires
  33141. unwinding tables even when exceptions are not used. It must not be
  33142. modified by command-line option processing.
  33143. -- Macro: DONT_USE_BUILTIN_SETJMP
  33144. Define this macro to 1 if the 'setjmp'/'longjmp'-based scheme
  33145. should use the 'setjmp'/'longjmp' functions from the C library
  33146. instead of the '__builtin_setjmp'/'__builtin_longjmp' machinery.
  33147. -- Macro: JMP_BUF_SIZE
  33148. This macro has no effect unless 'DONT_USE_BUILTIN_SETJMP' is also
  33149. defined. Define this macro if the default size of 'jmp_buf' buffer
  33150. for the 'setjmp'/'longjmp'-based exception handling mechanism is
  33151. not large enough, or if it is much too large. The default size is
  33152. 'FIRST_PSEUDO_REGISTER * sizeof(void *)'.
  33153. -- Macro: DWARF_CIE_DATA_ALIGNMENT
  33154. This macro need only be defined if the target might save registers
  33155. in the function prologue at an offset to the stack pointer that is
  33156. not aligned to 'UNITS_PER_WORD'. The definition should be the
  33157. negative minimum alignment if 'STACK_GROWS_DOWNWARD' is true, and
  33158. the positive minimum alignment otherwise. *Note DWARF::. Only
  33159. applicable if the target supports DWARF 2 frame unwind information.
  33160. -- Target Hook: bool TARGET_TERMINATE_DW2_EH_FRAME_INFO
  33161. Contains the value true if the target should add a zero word onto
  33162. the end of a Dwarf-2 frame info section when used for exception
  33163. handling. Default value is false if 'EH_FRAME_SECTION_NAME' is
  33164. defined, and true otherwise.
  33165. -- Target Hook: rtx TARGET_DWARF_REGISTER_SPAN (rtx REG)
  33166. Given a register, this hook should return a parallel of registers
  33167. to represent where to find the register pieces. Define this hook
  33168. if the register and its mode are represented in Dwarf in
  33169. non-contiguous locations, or if the register should be represented
  33170. in more than one register in Dwarf. Otherwise, this hook should
  33171. return 'NULL_RTX'. If not defined, the default is to return
  33172. 'NULL_RTX'.
  33173. -- Target Hook: machine_mode TARGET_DWARF_FRAME_REG_MODE (int REGNO)
  33174. Given a register, this hook should return the mode which the
  33175. corresponding Dwarf frame register should have. This is normally
  33176. used to return a smaller mode than the raw mode to prevent call
  33177. clobbered parts of a register altering the frame register size
  33178. -- Target Hook: void TARGET_INIT_DWARF_REG_SIZES_EXTRA (tree ADDRESS)
  33179. If some registers are represented in Dwarf-2 unwind information in
  33180. multiple pieces, define this hook to fill in information about the
  33181. sizes of those pieces in the table used by the unwinder at runtime.
  33182. It will be called by 'expand_builtin_init_dwarf_reg_sizes' after
  33183. filling in a single size corresponding to each hard register;
  33184. ADDRESS is the address of the table.
  33185. -- Target Hook: bool TARGET_ASM_TTYPE (rtx SYM)
  33186. This hook is used to output a reference from a frame unwinding
  33187. table to the type_info object identified by SYM. It should return
  33188. 'true' if the reference was output. Returning 'false' will cause
  33189. the reference to be output using the normal Dwarf2 routines.
  33190. -- Target Hook: bool TARGET_ARM_EABI_UNWINDER
  33191. This flag should be set to 'true' on targets that use an ARM EABI
  33192. based unwinding library, and 'false' on other targets. This
  33193. effects the format of unwinding tables, and how the unwinder in
  33194. entered after running a cleanup. The default is 'false'.
  33195. 
  33196. File: gccint.info, Node: Alignment Output, Prev: Exception Region Output, Up: Assembler Format
  33197. 18.20.10 Assembler Commands for Alignment
  33198. -----------------------------------------
  33199. This describes commands for alignment.
  33200. -- Macro: JUMP_ALIGN (LABEL)
  33201. The alignment (log base 2) to put in front of LABEL, which is a
  33202. common destination of jumps and has no fallthru incoming edge.
  33203. This macro need not be defined if you don't want any special
  33204. alignment to be done at such a time. Most machine descriptions do
  33205. not currently define the macro.
  33206. Unless it's necessary to inspect the LABEL parameter, it is better
  33207. to set the variable ALIGN_JUMPS in the target's
  33208. 'TARGET_OPTION_OVERRIDE'. Otherwise, you should try to honor the
  33209. user's selection in ALIGN_JUMPS in a 'JUMP_ALIGN' implementation.
  33210. -- Macro: LABEL_ALIGN_AFTER_BARRIER (LABEL)
  33211. The alignment (log base 2) to put in front of LABEL, which follows
  33212. a 'BARRIER'.
  33213. This macro need not be defined if you don't want any special
  33214. alignment to be done at such a time. Most machine descriptions do
  33215. not currently define the macro.
  33216. -- Macro: LOOP_ALIGN (LABEL)
  33217. The alignment (log base 2) to put in front of LABEL that heads a
  33218. frequently executed basic block (usually the header of a loop).
  33219. This macro need not be defined if you don't want any special
  33220. alignment to be done at such a time. Most machine descriptions do
  33221. not currently define the macro.
  33222. Unless it's necessary to inspect the LABEL parameter, it is better
  33223. to set the variable 'align_loops' in the target's
  33224. 'TARGET_OPTION_OVERRIDE'. Otherwise, you should try to honor the
  33225. user's selection in 'align_loops' in a 'LOOP_ALIGN' implementation.
  33226. -- Macro: LABEL_ALIGN (LABEL)
  33227. The alignment (log base 2) to put in front of LABEL. If
  33228. 'LABEL_ALIGN_AFTER_BARRIER' / 'LOOP_ALIGN' specify a different
  33229. alignment, the maximum of the specified values is used.
  33230. Unless it's necessary to inspect the LABEL parameter, it is better
  33231. to set the variable 'align_labels' in the target's
  33232. 'TARGET_OPTION_OVERRIDE'. Otherwise, you should try to honor the
  33233. user's selection in 'align_labels' in a 'LABEL_ALIGN'
  33234. implementation.
  33235. -- Macro: ASM_OUTPUT_SKIP (STREAM, NBYTES)
  33236. A C statement to output to the stdio stream STREAM an assembler
  33237. instruction to advance the location counter by NBYTES bytes. Those
  33238. bytes should be zero when loaded. NBYTES will be a C expression of
  33239. type 'unsigned HOST_WIDE_INT'.
  33240. -- Macro: ASM_NO_SKIP_IN_TEXT
  33241. Define this macro if 'ASM_OUTPUT_SKIP' should not be used in the
  33242. text section because it fails to put zeros in the bytes that are
  33243. skipped. This is true on many Unix systems, where the pseudo-op to
  33244. skip bytes produces no-op instructions rather than zeros when used
  33245. in the text section.
  33246. -- Macro: ASM_OUTPUT_ALIGN (STREAM, POWER)
  33247. A C statement to output to the stdio stream STREAM an assembler
  33248. command to advance the location counter to a multiple of 2 to the
  33249. POWER bytes. POWER will be a C expression of type 'int'.
  33250. -- Macro: ASM_OUTPUT_ALIGN_WITH_NOP (STREAM, POWER)
  33251. Like 'ASM_OUTPUT_ALIGN', except that the "nop" instruction is used
  33252. for padding, if necessary.
  33253. -- Macro: ASM_OUTPUT_MAX_SKIP_ALIGN (STREAM, POWER, MAX_SKIP)
  33254. A C statement to output to the stdio stream STREAM an assembler
  33255. command to advance the location counter to a multiple of 2 to the
  33256. POWER bytes, but only if MAX_SKIP or fewer bytes are needed to
  33257. satisfy the alignment request. POWER and MAX_SKIP will be a C
  33258. expression of type 'int'.
  33259. 
  33260. File: gccint.info, Node: Debugging Info, Next: Floating Point, Prev: Assembler Format, Up: Target Macros
  33261. 18.21 Controlling Debugging Information Format
  33262. ==============================================
  33263. This describes how to specify debugging information.
  33264. * Menu:
  33265. * All Debuggers:: Macros that affect all debugging formats uniformly.
  33266. * DBX Options:: Macros enabling specific options in DBX format.
  33267. * DBX Hooks:: Hook macros for varying DBX format.
  33268. * File Names and DBX:: Macros controlling output of file names in DBX format.
  33269. * DWARF:: Macros for DWARF format.
  33270. * VMS Debug:: Macros for VMS debug format.
  33271. 
  33272. File: gccint.info, Node: All Debuggers, Next: DBX Options, Up: Debugging Info
  33273. 18.21.1 Macros Affecting All Debugging Formats
  33274. ----------------------------------------------
  33275. These macros affect all debugging formats.
  33276. -- Macro: DBX_REGISTER_NUMBER (REGNO)
  33277. A C expression that returns the DBX register number for the
  33278. compiler register number REGNO. In the default macro provided, the
  33279. value of this expression will be REGNO itself. But sometimes there
  33280. are some registers that the compiler knows about and DBX does not,
  33281. or vice versa. In such cases, some register may need to have one
  33282. number in the compiler and another for DBX.
  33283. If two registers have consecutive numbers inside GCC, and they can
  33284. be used as a pair to hold a multiword value, then they _must_ have
  33285. consecutive numbers after renumbering with 'DBX_REGISTER_NUMBER'.
  33286. Otherwise, debuggers will be unable to access such a pair, because
  33287. they expect register pairs to be consecutive in their own numbering
  33288. scheme.
  33289. If you find yourself defining 'DBX_REGISTER_NUMBER' in way that
  33290. does not preserve register pairs, then what you must do instead is
  33291. redefine the actual register numbering scheme.
  33292. -- Macro: DEBUGGER_AUTO_OFFSET (X)
  33293. A C expression that returns the integer offset value for an
  33294. automatic variable having address X (an RTL expression). The
  33295. default computation assumes that X is based on the frame-pointer
  33296. and gives the offset from the frame-pointer. This is required for
  33297. targets that produce debugging output for DBX and allow the
  33298. frame-pointer to be eliminated when the '-g' option is used.
  33299. -- Macro: DEBUGGER_ARG_OFFSET (OFFSET, X)
  33300. A C expression that returns the integer offset value for an
  33301. argument having address X (an RTL expression). The nominal offset
  33302. is OFFSET.
  33303. -- Macro: PREFERRED_DEBUGGING_TYPE
  33304. A C expression that returns the type of debugging output GCC should
  33305. produce when the user specifies just '-g'. Define this if you have
  33306. arranged for GCC to support more than one format of debugging
  33307. output. Currently, the allowable values are 'DBX_DEBUG',
  33308. 'DWARF2_DEBUG', 'XCOFF_DEBUG', 'VMS_DEBUG', and
  33309. 'VMS_AND_DWARF2_DEBUG'.
  33310. When the user specifies '-ggdb', GCC normally also uses the value
  33311. of this macro to select the debugging output format, but with two
  33312. exceptions. If 'DWARF2_DEBUGGING_INFO' is defined, GCC uses the
  33313. value 'DWARF2_DEBUG'. Otherwise, if 'DBX_DEBUGGING_INFO' is
  33314. defined, GCC uses 'DBX_DEBUG'.
  33315. The value of this macro only affects the default debugging output;
  33316. the user can always get a specific type of output by using
  33317. '-gstabs', '-gdwarf-2', '-gxcoff', or '-gvms'.
  33318. 
  33319. File: gccint.info, Node: DBX Options, Next: DBX Hooks, Prev: All Debuggers, Up: Debugging Info
  33320. 18.21.2 Specific Options for DBX Output
  33321. ---------------------------------------
  33322. These are specific options for DBX output.
  33323. -- Macro: DBX_DEBUGGING_INFO
  33324. Define this macro if GCC should produce debugging output for DBX in
  33325. response to the '-g' option.
  33326. -- Macro: XCOFF_DEBUGGING_INFO
  33327. Define this macro if GCC should produce XCOFF format debugging
  33328. output in response to the '-g' option. This is a variant of DBX
  33329. format.
  33330. -- Macro: DEFAULT_GDB_EXTENSIONS
  33331. Define this macro to control whether GCC should by default generate
  33332. GDB's extended version of DBX debugging information (assuming
  33333. DBX-format debugging information is enabled at all). If you don't
  33334. define the macro, the default is 1: always generate the extended
  33335. information if there is any occasion to.
  33336. -- Macro: DEBUG_SYMS_TEXT
  33337. Define this macro if all '.stabs' commands should be output while
  33338. in the text section.
  33339. -- Macro: ASM_STABS_OP
  33340. A C string constant, including spacing, naming the assembler pseudo
  33341. op to use instead of '"\t.stabs\t"' to define an ordinary debugging
  33342. symbol. If you don't define this macro, '"\t.stabs\t"' is used.
  33343. This macro applies only to DBX debugging information format.
  33344. -- Macro: ASM_STABD_OP
  33345. A C string constant, including spacing, naming the assembler pseudo
  33346. op to use instead of '"\t.stabd\t"' to define a debugging symbol
  33347. whose value is the current location. If you don't define this
  33348. macro, '"\t.stabd\t"' is used. This macro applies only to DBX
  33349. debugging information format.
  33350. -- Macro: ASM_STABN_OP
  33351. A C string constant, including spacing, naming the assembler pseudo
  33352. op to use instead of '"\t.stabn\t"' to define a debugging symbol
  33353. with no name. If you don't define this macro, '"\t.stabn\t"' is
  33354. used. This macro applies only to DBX debugging information format.
  33355. -- Macro: DBX_NO_XREFS
  33356. Define this macro if DBX on your system does not support the
  33357. construct 'xsTAGNAME'. On some systems, this construct is used to
  33358. describe a forward reference to a structure named TAGNAME. On
  33359. other systems, this construct is not supported at all.
  33360. -- Macro: DBX_CONTIN_LENGTH
  33361. A symbol name in DBX-format debugging information is normally
  33362. continued (split into two separate '.stabs' directives) when it
  33363. exceeds a certain length (by default, 80 characters). On some
  33364. operating systems, DBX requires this splitting; on others,
  33365. splitting must not be done. You can inhibit splitting by defining
  33366. this macro with the value zero. You can override the default
  33367. splitting-length by defining this macro as an expression for the
  33368. length you desire.
  33369. -- Macro: DBX_CONTIN_CHAR
  33370. Normally continuation is indicated by adding a '\' character to the
  33371. end of a '.stabs' string when a continuation follows. To use a
  33372. different character instead, define this macro as a character
  33373. constant for the character you want to use. Do not define this
  33374. macro if backslash is correct for your system.
  33375. -- Macro: DBX_STATIC_STAB_DATA_SECTION
  33376. Define this macro if it is necessary to go to the data section
  33377. before outputting the '.stabs' pseudo-op for a non-global static
  33378. variable.
  33379. -- Macro: DBX_TYPE_DECL_STABS_CODE
  33380. The value to use in the "code" field of the '.stabs' directive for
  33381. a typedef. The default is 'N_LSYM'.
  33382. -- Macro: DBX_STATIC_CONST_VAR_CODE
  33383. The value to use in the "code" field of the '.stabs' directive for
  33384. a static variable located in the text section. DBX format does not
  33385. provide any "right" way to do this. The default is 'N_FUN'.
  33386. -- Macro: DBX_REGPARM_STABS_CODE
  33387. The value to use in the "code" field of the '.stabs' directive for
  33388. a parameter passed in registers. DBX format does not provide any
  33389. "right" way to do this. The default is 'N_RSYM'.
  33390. -- Macro: DBX_REGPARM_STABS_LETTER
  33391. The letter to use in DBX symbol data to identify a symbol as a
  33392. parameter passed in registers. DBX format does not customarily
  33393. provide any way to do this. The default is ''P''.
  33394. -- Macro: DBX_FUNCTION_FIRST
  33395. Define this macro if the DBX information for a function and its
  33396. arguments should precede the assembler code for the function.
  33397. Normally, in DBX format, the debugging information entirely follows
  33398. the assembler code.
  33399. -- Macro: DBX_BLOCKS_FUNCTION_RELATIVE
  33400. Define this macro, with value 1, if the value of a symbol
  33401. describing the scope of a block ('N_LBRAC' or 'N_RBRAC') should be
  33402. relative to the start of the enclosing function. Normally, GCC
  33403. uses an absolute address.
  33404. -- Macro: DBX_LINES_FUNCTION_RELATIVE
  33405. Define this macro, with value 1, if the value of a symbol
  33406. indicating the current line number ('N_SLINE') should be relative
  33407. to the start of the enclosing function. Normally, GCC uses an
  33408. absolute address.
  33409. -- Macro: DBX_USE_BINCL
  33410. Define this macro if GCC should generate 'N_BINCL' and 'N_EINCL'
  33411. stabs for included header files, as on Sun systems. This macro
  33412. also directs GCC to output a type number as a pair of a file number
  33413. and a type number within the file. Normally, GCC does not generate
  33414. 'N_BINCL' or 'N_EINCL' stabs, and it outputs a single number for a
  33415. type number.
  33416. 
  33417. File: gccint.info, Node: DBX Hooks, Next: File Names and DBX, Prev: DBX Options, Up: Debugging Info
  33418. 18.21.3 Open-Ended Hooks for DBX Format
  33419. ---------------------------------------
  33420. These are hooks for DBX format.
  33421. -- Macro: DBX_OUTPUT_SOURCE_LINE (STREAM, LINE, COUNTER)
  33422. A C statement to output DBX debugging information before code for
  33423. line number LINE of the current source file to the stdio stream
  33424. STREAM. COUNTER is the number of time the macro was invoked,
  33425. including the current invocation; it is intended to generate unique
  33426. labels in the assembly output.
  33427. This macro should not be defined if the default output is correct,
  33428. or if it can be made correct by defining
  33429. 'DBX_LINES_FUNCTION_RELATIVE'.
  33430. -- Macro: NO_DBX_FUNCTION_END
  33431. Some stabs encapsulation formats (in particular ECOFF), cannot
  33432. handle the '.stabs "",N_FUN,,0,0,Lscope-function-1' gdb dbx
  33433. extension construct. On those machines, define this macro to turn
  33434. this feature off without disturbing the rest of the gdb extensions.
  33435. -- Macro: NO_DBX_BNSYM_ENSYM
  33436. Some assemblers cannot handle the '.stabd BNSYM/ENSYM,0,0' gdb dbx
  33437. extension construct. On those machines, define this macro to turn
  33438. this feature off without disturbing the rest of the gdb extensions.
  33439. 
  33440. File: gccint.info, Node: File Names and DBX, Next: DWARF, Prev: DBX Hooks, Up: Debugging Info
  33441. 18.21.4 File Names in DBX Format
  33442. --------------------------------
  33443. This describes file names in DBX format.
  33444. -- Macro: DBX_OUTPUT_MAIN_SOURCE_FILENAME (STREAM, NAME)
  33445. A C statement to output DBX debugging information to the stdio
  33446. stream STREAM, which indicates that file NAME is the main source
  33447. file--the file specified as the input file for compilation. This
  33448. macro is called only once, at the beginning of compilation.
  33449. This macro need not be defined if the standard form of output for
  33450. DBX debugging information is appropriate.
  33451. It may be necessary to refer to a label equal to the beginning of
  33452. the text section. You can use 'assemble_name (stream,
  33453. ltext_label_name)' to do so. If you do this, you must also set the
  33454. variable USED_LTEXT_LABEL_NAME to 'true'.
  33455. -- Macro: NO_DBX_MAIN_SOURCE_DIRECTORY
  33456. Define this macro, with value 1, if GCC should not emit an
  33457. indication of the current directory for compilation and current
  33458. source language at the beginning of the file.
  33459. -- Macro: NO_DBX_GCC_MARKER
  33460. Define this macro, with value 1, if GCC should not emit an
  33461. indication that this object file was compiled by GCC. The default
  33462. is to emit an 'N_OPT' stab at the beginning of every source file,
  33463. with 'gcc2_compiled.' for the string and value 0.
  33464. -- Macro: DBX_OUTPUT_MAIN_SOURCE_FILE_END (STREAM, NAME)
  33465. A C statement to output DBX debugging information at the end of
  33466. compilation of the main source file NAME. Output should be written
  33467. to the stdio stream STREAM.
  33468. If you don't define this macro, nothing special is output at the
  33469. end of compilation, which is correct for most machines.
  33470. -- Macro: DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
  33471. Define this macro _instead of_ defining
  33472. 'DBX_OUTPUT_MAIN_SOURCE_FILE_END', if what needs to be output at
  33473. the end of compilation is an 'N_SO' stab with an empty string,
  33474. whose value is the highest absolute text address in the file.
  33475. 
  33476. File: gccint.info, Node: DWARF, Next: VMS Debug, Prev: File Names and DBX, Up: Debugging Info
  33477. 18.21.5 Macros for DWARF Output
  33478. -------------------------------
  33479. Here are macros for DWARF output.
  33480. -- Macro: DWARF2_DEBUGGING_INFO
  33481. Define this macro if GCC should produce dwarf version 2 format
  33482. debugging output in response to the '-g' option.
  33483. -- Target Hook: int TARGET_DWARF_CALLING_CONVENTION (const_tree
  33484. FUNCTION)
  33485. Define this to enable the dwarf attribute
  33486. 'DW_AT_calling_convention' to be emitted for each function.
  33487. Instead of an integer return the enum value for the 'DW_CC_'
  33488. tag.
  33489. To support optional call frame debugging information, you must also
  33490. define 'INCOMING_RETURN_ADDR_RTX' and either set
  33491. 'RTX_FRAME_RELATED_P' on the prologue insns if you use RTL for the
  33492. prologue, or call 'dwarf2out_def_cfa' and 'dwarf2out_reg_save' as
  33493. appropriate from 'TARGET_ASM_FUNCTION_PROLOGUE' if you don't.
  33494. -- Macro: DWARF2_FRAME_INFO
  33495. Define this macro to a nonzero value if GCC should always output
  33496. Dwarf 2 frame information. If 'TARGET_EXCEPT_UNWIND_INFO' (*note
  33497. Exception Region Output::) returns 'UI_DWARF2', and exceptions are
  33498. enabled, GCC will output this information not matter how you define
  33499. 'DWARF2_FRAME_INFO'.
  33500. -- Target Hook: enum unwind_info_type TARGET_DEBUG_UNWIND_INFO (void)
  33501. This hook defines the mechanism that will be used for describing
  33502. frame unwind information to the debugger. Normally the hook will
  33503. return 'UI_DWARF2' if DWARF 2 debug information is enabled, and
  33504. return 'UI_NONE' otherwise.
  33505. A target may return 'UI_DWARF2' even when DWARF 2 debug information
  33506. is disabled in order to always output DWARF 2 frame information.
  33507. A target may return 'UI_TARGET' if it has ABI specified unwind
  33508. tables. This will suppress generation of the normal debug frame
  33509. unwind information.
  33510. -- Macro: DWARF2_ASM_LINE_DEBUG_INFO
  33511. Define this macro to be a nonzero value if the assembler can
  33512. generate Dwarf 2 line debug info sections. This will result in
  33513. much more compact line number tables, and hence is desirable if it
  33514. works.
  33515. -- Macro: DWARF2_ASM_VIEW_DEBUG_INFO
  33516. Define this macro to be a nonzero value if the assembler supports
  33517. view assignment and verification in '.loc'. If it does not, but
  33518. the user enables location views, the compiler may have to fallback
  33519. to internal line number tables.
  33520. -- Target Hook: int TARGET_RESET_LOCATION_VIEW (rtx_insn *)
  33521. This hook, if defined, enables -ginternal-reset-location-views, and
  33522. uses its result to override cases in which the estimated min insn
  33523. length might be nonzero even when a PC advance (i.e., a view reset)
  33524. cannot be taken for granted.
  33525. If the hook is defined, it must return a positive value to indicate
  33526. the insn definitely advances the PC, and so the view number can be
  33527. safely assumed to be reset; a negative value to mean the insn
  33528. definitely does not advance the PC, and os the view number must not
  33529. be reset; or zero to decide based on the estimated insn length.
  33530. If insn length is to be regarded as reliable, set the hook to
  33531. 'hook_int_rtx_insn_0'.
  33532. -- Target Hook: bool TARGET_WANT_DEBUG_PUB_SECTIONS
  33533. True if the '.debug_pubtypes' and '.debug_pubnames' sections should
  33534. be emitted. These sections are not used on most platforms, and in
  33535. particular GDB does not use them.
  33536. -- Target Hook: bool TARGET_DELAY_SCHED2
  33537. True if sched2 is not to be run at its normal place. This usually
  33538. means it will be run as part of machine-specific reorg.
  33539. -- Target Hook: bool TARGET_DELAY_VARTRACK
  33540. True if vartrack is not to be run at its normal place. This
  33541. usually means it will be run as part of machine-specific reorg.
  33542. -- Target Hook: bool TARGET_NO_REGISTER_ALLOCATION
  33543. True if register allocation and the passes following it should not
  33544. be run. Usually true only for virtual assembler targets.
  33545. -- Macro: ASM_OUTPUT_DWARF_DELTA (STREAM, SIZE, LABEL1, LABEL2)
  33546. A C statement to issue assembly directives that create a difference
  33547. LAB1 minus LAB2, using an integer of the given SIZE.
  33548. -- Macro: ASM_OUTPUT_DWARF_VMS_DELTA (STREAM, SIZE, LABEL1, LABEL2)
  33549. A C statement to issue assembly directives that create a difference
  33550. between the two given labels in system defined units, e.g.
  33551. instruction slots on IA64 VMS, using an integer of the given size.
  33552. -- Macro: ASM_OUTPUT_DWARF_OFFSET (STREAM, SIZE, LABEL, OFFSET,
  33553. SECTION)
  33554. A C statement to issue assembly directives that create a
  33555. section-relative reference to the given LABEL plus OFFSET, using an
  33556. integer of the given SIZE. The label is known to be defined in the
  33557. given SECTION.
  33558. -- Macro: ASM_OUTPUT_DWARF_PCREL (STREAM, SIZE, LABEL)
  33559. A C statement to issue assembly directives that create a
  33560. self-relative reference to the given LABEL, using an integer of the
  33561. given SIZE.
  33562. -- Macro: ASM_OUTPUT_DWARF_DATAREL (STREAM, SIZE, LABEL)
  33563. A C statement to issue assembly directives that create a reference
  33564. to the given LABEL relative to the dbase, using an integer of the
  33565. given SIZE.
  33566. -- Macro: ASM_OUTPUT_DWARF_TABLE_REF (LABEL)
  33567. A C statement to issue assembly directives that create a reference
  33568. to the DWARF table identifier LABEL from the current section. This
  33569. is used on some systems to avoid garbage collecting a DWARF table
  33570. which is referenced by a function.
  33571. -- Target Hook: void TARGET_ASM_OUTPUT_DWARF_DTPREL (FILE *FILE, int
  33572. SIZE, rtx X)
  33573. If defined, this target hook is a function which outputs a
  33574. DTP-relative reference to the given TLS symbol of the specified
  33575. size.
  33576. 
  33577. File: gccint.info, Node: VMS Debug, Prev: DWARF, Up: Debugging Info
  33578. 18.21.6 Macros for VMS Debug Format
  33579. -----------------------------------
  33580. Here are macros for VMS debug format.
  33581. -- Macro: VMS_DEBUGGING_INFO
  33582. Define this macro if GCC should produce debugging output for VMS in
  33583. response to the '-g' option. The default behavior for VMS is to
  33584. generate minimal debug info for a traceback in the absence of '-g'
  33585. unless explicitly overridden with '-g0'. This behavior is
  33586. controlled by 'TARGET_OPTION_OPTIMIZATION' and
  33587. 'TARGET_OPTION_OVERRIDE'.
  33588. 
  33589. File: gccint.info, Node: Floating Point, Next: Mode Switching, Prev: Debugging Info, Up: Target Macros
  33590. 18.22 Cross Compilation and Floating Point
  33591. ==========================================
  33592. While all modern machines use twos-complement representation for
  33593. integers, there are a variety of representations for floating point
  33594. numbers. This means that in a cross-compiler the representation of
  33595. floating point numbers in the compiled program may be different from
  33596. that used in the machine doing the compilation.
  33597. Because different representation systems may offer different amounts of
  33598. range and precision, all floating point constants must be represented in
  33599. the target machine's format. Therefore, the cross compiler cannot
  33600. safely use the host machine's floating point arithmetic; it must emulate
  33601. the target's arithmetic. To ensure consistency, GCC always uses
  33602. emulation to work with floating point values, even when the host and
  33603. target floating point formats are identical.
  33604. The following macros are provided by 'real.h' for the compiler to use.
  33605. All parts of the compiler which generate or optimize floating-point
  33606. calculations must use these macros. They may evaluate their operands
  33607. more than once, so operands must not have side effects.
  33608. -- Macro: REAL_VALUE_TYPE
  33609. The C data type to be used to hold a floating point value in the
  33610. target machine's format. Typically this is a 'struct' containing
  33611. an array of 'HOST_WIDE_INT', but all code should treat it as an
  33612. opaque quantity.
  33613. -- Macro: HOST_WIDE_INT REAL_VALUE_FIX (REAL_VALUE_TYPE X)
  33614. Truncates X to a signed integer, rounding toward zero.
  33615. -- Macro: unsigned HOST_WIDE_INT REAL_VALUE_UNSIGNED_FIX
  33616. (REAL_VALUE_TYPE X)
  33617. Truncates X to an unsigned integer, rounding toward zero. If X is
  33618. negative, returns zero.
  33619. -- Macro: REAL_VALUE_TYPE REAL_VALUE_ATOF (const char *STRING,
  33620. machine_mode MODE)
  33621. Converts STRING into a floating point number in the target
  33622. machine's representation for mode MODE. This routine can handle
  33623. both decimal and hexadecimal floating point constants, using the
  33624. syntax defined by the C language for both.
  33625. -- Macro: int REAL_VALUE_NEGATIVE (REAL_VALUE_TYPE X)
  33626. Returns 1 if X is negative (including negative zero), 0 otherwise.
  33627. -- Macro: int REAL_VALUE_ISINF (REAL_VALUE_TYPE X)
  33628. Determines whether X represents infinity (positive or negative).
  33629. -- Macro: int REAL_VALUE_ISNAN (REAL_VALUE_TYPE X)
  33630. Determines whether X represents a "NaN" (not-a-number).
  33631. -- Macro: REAL_VALUE_TYPE REAL_VALUE_NEGATE (REAL_VALUE_TYPE X)
  33632. Returns the negative of the floating point value X.
  33633. -- Macro: REAL_VALUE_TYPE REAL_VALUE_ABS (REAL_VALUE_TYPE X)
  33634. Returns the absolute value of X.
  33635. 
  33636. File: gccint.info, Node: Mode Switching, Next: Target Attributes, Prev: Floating Point, Up: Target Macros
  33637. 18.23 Mode Switching Instructions
  33638. =================================
  33639. The following macros control mode switching optimizations:
  33640. -- Macro: OPTIMIZE_MODE_SWITCHING (ENTITY)
  33641. Define this macro if the port needs extra instructions inserted for
  33642. mode switching in an optimizing compilation.
  33643. For an example, the SH4 can perform both single and double
  33644. precision floating point operations, but to perform a single
  33645. precision operation, the FPSCR PR bit has to be cleared, while for
  33646. a double precision operation, this bit has to be set. Changing the
  33647. PR bit requires a general purpose register as a scratch register,
  33648. hence these FPSCR sets have to be inserted before reload, i.e. you
  33649. cannot put this into instruction emitting or
  33650. 'TARGET_MACHINE_DEPENDENT_REORG'.
  33651. You can have multiple entities that are mode-switched, and select
  33652. at run time which entities actually need it.
  33653. 'OPTIMIZE_MODE_SWITCHING' should return nonzero for any ENTITY that
  33654. needs mode-switching. If you define this macro, you also have to
  33655. define 'NUM_MODES_FOR_MODE_SWITCHING', 'TARGET_MODE_NEEDED',
  33656. 'TARGET_MODE_PRIORITY' and 'TARGET_MODE_EMIT'.
  33657. 'TARGET_MODE_AFTER', 'TARGET_MODE_ENTRY', and 'TARGET_MODE_EXIT'
  33658. are optional.
  33659. -- Macro: NUM_MODES_FOR_MODE_SWITCHING
  33660. If you define 'OPTIMIZE_MODE_SWITCHING', you have to define this as
  33661. initializer for an array of integers. Each initializer element N
  33662. refers to an entity that needs mode switching, and specifies the
  33663. number of different modes that might need to be set for this
  33664. entity. The position of the initializer in the
  33665. initializer--starting counting at zero--determines the integer that
  33666. is used to refer to the mode-switched entity in question. In
  33667. macros that take mode arguments / yield a mode result, modes are
  33668. represented as numbers 0 ... N - 1. N is used to specify that no
  33669. mode switch is needed / supplied.
  33670. -- Target Hook: void TARGET_MODE_EMIT (int ENTITY, int MODE, int
  33671. PREV_MODE, HARD_REG_SET REGS_LIVE)
  33672. Generate one or more insns to set ENTITY to MODE. HARD_REG_LIVE is
  33673. the set of hard registers live at the point where the insn(s) are
  33674. to be inserted. PREV_MOXDE indicates the mode to switch from.
  33675. Sets of a lower numbered entity will be emitted before sets of a
  33676. higher numbered entity to a mode of the same or lower priority.
  33677. -- Target Hook: int TARGET_MODE_NEEDED (int ENTITY, rtx_insn *INSN)
  33678. ENTITY is an integer specifying a mode-switched entity. If
  33679. 'OPTIMIZE_MODE_SWITCHING' is defined, you must define this macro to
  33680. return an integer value not larger than the corresponding element
  33681. in 'NUM_MODES_FOR_MODE_SWITCHING', to denote the mode that ENTITY
  33682. must be switched into prior to the execution of INSN.
  33683. -- Target Hook: int TARGET_MODE_AFTER (int ENTITY, int MODE, rtx_insn
  33684. *INSN)
  33685. ENTITY is an integer specifying a mode-switched entity. If this
  33686. macro is defined, it is evaluated for every INSN during mode
  33687. switching. It determines the mode that an insn results in (if
  33688. different from the incoming mode).
  33689. -- Target Hook: int TARGET_MODE_ENTRY (int ENTITY)
  33690. If this macro is defined, it is evaluated for every ENTITY that
  33691. needs mode switching. It should evaluate to an integer, which is a
  33692. mode that ENTITY is assumed to be switched to at function entry.
  33693. If 'TARGET_MODE_ENTRY' is defined then 'TARGET_MODE_EXIT' must be
  33694. defined.
  33695. -- Target Hook: int TARGET_MODE_EXIT (int ENTITY)
  33696. If this macro is defined, it is evaluated for every ENTITY that
  33697. needs mode switching. It should evaluate to an integer, which is a
  33698. mode that ENTITY is assumed to be switched to at function exit. If
  33699. 'TARGET_MODE_EXIT' is defined then 'TARGET_MODE_ENTRY' must be
  33700. defined.
  33701. -- Target Hook: int TARGET_MODE_PRIORITY (int ENTITY, int N)
  33702. This macro specifies the order in which modes for ENTITY are
  33703. processed. 0 is the highest priority,
  33704. 'NUM_MODES_FOR_MODE_SWITCHING[ENTITY] - 1' the lowest. The value
  33705. of the macro should be an integer designating a mode for ENTITY.
  33706. For any fixed ENTITY, 'mode_priority' (ENTITY, N) shall be a
  33707. bijection in 0 ... 'num_modes_for_mode_switching[ENTITY] - 1'.
  33708. 
  33709. File: gccint.info, Node: Target Attributes, Next: Emulated TLS, Prev: Mode Switching, Up: Target Macros
  33710. 18.24 Defining target-specific uses of '__attribute__'
  33711. ======================================================
  33712. Target-specific attributes may be defined for functions, data and types.
  33713. These are described using the following target hooks; they also need to
  33714. be documented in 'extend.texi'.
  33715. -- Target Hook: const struct attribute_spec * TARGET_ATTRIBUTE_TABLE
  33716. If defined, this target hook points to an array of 'struct
  33717. attribute_spec' (defined in 'tree-core.h') specifying the machine
  33718. specific attributes for this target and some of the restrictions on
  33719. the entities to which these attributes are applied and the
  33720. arguments they take.
  33721. -- Target Hook: bool TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P (const_tree
  33722. NAME)
  33723. If defined, this target hook is a function which returns true if
  33724. the machine-specific attribute named NAME expects an identifier
  33725. given as its first argument to be passed on as a plain identifier,
  33726. not subjected to name lookup. If this is not defined, the default
  33727. is false for all machine-specific attributes.
  33728. -- Target Hook: int TARGET_COMP_TYPE_ATTRIBUTES (const_tree TYPE1,
  33729. const_tree TYPE2)
  33730. If defined, this target hook is a function which returns zero if
  33731. the attributes on TYPE1 and TYPE2 are incompatible, one if they are
  33732. compatible, and two if they are nearly compatible (which causes a
  33733. warning to be generated). If this is not defined, machine-specific
  33734. attributes are supposed always to be compatible.
  33735. -- Target Hook: void TARGET_SET_DEFAULT_TYPE_ATTRIBUTES (tree TYPE)
  33736. If defined, this target hook is a function which assigns default
  33737. attributes to the newly defined TYPE.
  33738. -- Target Hook: tree TARGET_MERGE_TYPE_ATTRIBUTES (tree TYPE1, tree
  33739. TYPE2)
  33740. Define this target hook if the merging of type attributes needs
  33741. special handling. If defined, the result is a list of the combined
  33742. 'TYPE_ATTRIBUTES' of TYPE1 and TYPE2. It is assumed that
  33743. 'comptypes' has already been called and returned 1. This function
  33744. may call 'merge_attributes' to handle machine-independent merging.
  33745. -- Target Hook: tree TARGET_MERGE_DECL_ATTRIBUTES (tree OLDDECL, tree
  33746. NEWDECL)
  33747. Define this target hook if the merging of decl attributes needs
  33748. special handling. If defined, the result is a list of the combined
  33749. 'DECL_ATTRIBUTES' of OLDDECL and NEWDECL. NEWDECL is a duplicate
  33750. declaration of OLDDECL. Examples of when this is needed are when
  33751. one attribute overrides another, or when an attribute is nullified
  33752. by a subsequent definition. This function may call
  33753. 'merge_attributes' to handle machine-independent merging.
  33754. If the only target-specific handling you require is 'dllimport' for
  33755. Microsoft Windows targets, you should define the macro
  33756. 'TARGET_DLLIMPORT_DECL_ATTRIBUTES' to '1'. The compiler will then
  33757. define a function called 'merge_dllimport_decl_attributes' which
  33758. can then be defined as the expansion of
  33759. 'TARGET_MERGE_DECL_ATTRIBUTES'. You can also add
  33760. 'handle_dll_attribute' in the attribute table for your port to
  33761. perform initial processing of the 'dllimport' and 'dllexport'
  33762. attributes. This is done in 'i386/cygwin.h' and 'i386/i386.c', for
  33763. example.
  33764. -- Target Hook: bool TARGET_VALID_DLLIMPORT_ATTRIBUTE_P (const_tree
  33765. DECL)
  33766. DECL is a variable or function with '__attribute__((dllimport))'
  33767. specified. Use this hook if the target needs to add extra
  33768. validation checks to 'handle_dll_attribute'.
  33769. -- Macro: TARGET_DECLSPEC
  33770. Define this macro to a nonzero value if you want to treat
  33771. '__declspec(X)' as equivalent to '__attribute((X))'. By default,
  33772. this behavior is enabled only for targets that define
  33773. 'TARGET_DLLIMPORT_DECL_ATTRIBUTES'. The current implementation of
  33774. '__declspec' is via a built-in macro, but you should not rely on
  33775. this implementation detail.
  33776. -- Target Hook: void TARGET_INSERT_ATTRIBUTES (tree NODE, tree
  33777. *ATTR_PTR)
  33778. Define this target hook if you want to be able to add attributes to
  33779. a decl when it is being created. This is normally useful for back
  33780. ends which wish to implement a pragma by using the attributes which
  33781. correspond to the pragma's effect. The NODE argument is the decl
  33782. which is being created. The ATTR_PTR argument is a pointer to the
  33783. attribute list for this decl. The list itself should not be
  33784. modified, since it may be shared with other decls, but attributes
  33785. may be chained on the head of the list and '*ATTR_PTR' modified to
  33786. point to the new attributes, or a copy of the list may be made if
  33787. further changes are needed.
  33788. -- Target Hook: tree TARGET_HANDLE_GENERIC_ATTRIBUTE (tree *NODE, tree
  33789. NAME, tree ARGS, int FLAGS, bool *NO_ADD_ATTRS)
  33790. Define this target hook if you want to be able to perform
  33791. additional target-specific processing of an attribute which is
  33792. handled generically by a front end. The arguments are the same as
  33793. those which are passed to attribute handlers. So far this only
  33794. affects the NOINIT and SECTION attribute.
  33795. -- Target Hook: bool TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P (const_tree
  33796. FNDECL)
  33797. This target hook returns 'true' if it is OK to inline FNDECL into
  33798. the current function, despite its having target-specific
  33799. attributes, 'false' otherwise. By default, if a function has a
  33800. target specific attribute attached to it, it will not be inlined.
  33801. -- Target Hook: bool TARGET_OPTION_VALID_ATTRIBUTE_P (tree FNDECL, tree
  33802. NAME, tree ARGS, int FLAGS)
  33803. This hook is called to parse 'attribute(target("..."))', which
  33804. allows setting target-specific options on individual functions.
  33805. These function-specific options may differ from the options
  33806. specified on the command line. The hook should return 'true' if
  33807. the options are valid.
  33808. The hook should set the 'DECL_FUNCTION_SPECIFIC_TARGET' field in
  33809. the function declaration to hold a pointer to a target-specific
  33810. 'struct cl_target_option' structure.
  33811. -- Target Hook: void TARGET_OPTION_SAVE (struct cl_target_option *PTR,
  33812. struct gcc_options *OPTS, struct gcc_options *OPTS_SET)
  33813. This hook is called to save any additional target-specific
  33814. information in the 'struct cl_target_option' structure for
  33815. function-specific options from the 'struct gcc_options' structure.
  33816. *Note Option file format::.
  33817. -- Target Hook: void TARGET_OPTION_RESTORE (struct gcc_options *OPTS,
  33818. struct gcc_options *OPTS_SET, struct cl_target_option *PTR)
  33819. This hook is called to restore any additional target-specific
  33820. information in the 'struct cl_target_option' structure for
  33821. function-specific options to the 'struct gcc_options' structure.
  33822. -- Target Hook: void TARGET_OPTION_POST_STREAM_IN (struct
  33823. cl_target_option *PTR)
  33824. This hook is called to update target-specific information in the
  33825. 'struct cl_target_option' structure after it is streamed in from
  33826. LTO bytecode.
  33827. -- Target Hook: void TARGET_OPTION_PRINT (FILE *FILE, int INDENT,
  33828. struct cl_target_option *PTR)
  33829. This hook is called to print any additional target-specific
  33830. information in the 'struct cl_target_option' structure for
  33831. function-specific options.
  33832. -- Target Hook: bool TARGET_OPTION_PRAGMA_PARSE (tree ARGS, tree
  33833. POP_TARGET)
  33834. This target hook parses the options for '#pragma GCC target', which
  33835. sets the target-specific options for functions that occur later in
  33836. the input stream. The options accepted should be the same as those
  33837. handled by the 'TARGET_OPTION_VALID_ATTRIBUTE_P' hook.
  33838. -- Target Hook: void TARGET_OPTION_OVERRIDE (void)
  33839. Sometimes certain combinations of command options do not make sense
  33840. on a particular target machine. You can override the hook
  33841. 'TARGET_OPTION_OVERRIDE' to take account of this. This hooks is
  33842. called once just after all the command options have been parsed.
  33843. Don't use this hook to turn on various extra optimizations for
  33844. '-O'. That is what 'TARGET_OPTION_OPTIMIZATION' is for.
  33845. If you need to do something whenever the optimization level is
  33846. changed via the optimize attribute or pragma, see
  33847. 'TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE'
  33848. -- Target Hook: bool TARGET_OPTION_FUNCTION_VERSIONS (tree DECL1, tree
  33849. DECL2)
  33850. This target hook returns 'true' if DECL1 and DECL2 are versions of
  33851. the same function. DECL1 and DECL2 are function versions if and
  33852. only if they have the same function signature and different target
  33853. specific attributes, that is, they are compiled for different
  33854. target machines.
  33855. -- Target Hook: bool TARGET_CAN_INLINE_P (tree CALLER, tree CALLEE)
  33856. This target hook returns 'false' if the CALLER function cannot
  33857. inline CALLEE, based on target specific information. By default,
  33858. inlining is not allowed if the callee function has function
  33859. specific target options and the caller does not use the same
  33860. options.
  33861. -- Target Hook: void TARGET_RELAYOUT_FUNCTION (tree FNDECL)
  33862. This target hook fixes function FNDECL after attributes are
  33863. processed. Default does nothing. On ARM, the default function's
  33864. alignment is updated with the attribute target.
  33865. 
  33866. File: gccint.info, Node: Emulated TLS, Next: MIPS Coprocessors, Prev: Target Attributes, Up: Target Macros
  33867. 18.25 Emulating TLS
  33868. ===================
  33869. For targets whose psABI does not provide Thread Local Storage via
  33870. specific relocations and instruction sequences, an emulation layer is
  33871. used. A set of target hooks allows this emulation layer to be
  33872. configured for the requirements of a particular target. For instance
  33873. the psABI may in fact specify TLS support in terms of an emulation
  33874. layer.
  33875. The emulation layer works by creating a control object for every TLS
  33876. object. To access the TLS object, a lookup function is provided which,
  33877. when given the address of the control object, will return the address of
  33878. the current thread's instance of the TLS object.
  33879. -- Target Hook: const char * TARGET_EMUTLS_GET_ADDRESS
  33880. Contains the name of the helper function that uses a TLS control
  33881. object to locate a TLS instance. The default causes libgcc's
  33882. emulated TLS helper function to be used.
  33883. -- Target Hook: const char * TARGET_EMUTLS_REGISTER_COMMON
  33884. Contains the name of the helper function that should be used at
  33885. program startup to register TLS objects that are implicitly
  33886. initialized to zero. If this is 'NULL', all TLS objects will have
  33887. explicit initializers. The default causes libgcc's emulated TLS
  33888. registration function to be used.
  33889. -- Target Hook: const char * TARGET_EMUTLS_VAR_SECTION
  33890. Contains the name of the section in which TLS control variables
  33891. should be placed. The default of 'NULL' allows these to be placed
  33892. in any section.
  33893. -- Target Hook: const char * TARGET_EMUTLS_TMPL_SECTION
  33894. Contains the name of the section in which TLS initializers should
  33895. be placed. The default of 'NULL' allows these to be placed in any
  33896. section.
  33897. -- Target Hook: const char * TARGET_EMUTLS_VAR_PREFIX
  33898. Contains the prefix to be prepended to TLS control variable names.
  33899. The default of 'NULL' uses a target-specific prefix.
  33900. -- Target Hook: const char * TARGET_EMUTLS_TMPL_PREFIX
  33901. Contains the prefix to be prepended to TLS initializer objects.
  33902. The default of 'NULL' uses a target-specific prefix.
  33903. -- Target Hook: tree TARGET_EMUTLS_VAR_FIELDS (tree TYPE, tree *NAME)
  33904. Specifies a function that generates the FIELD_DECLs for a TLS
  33905. control object type. TYPE is the RECORD_TYPE the fields are for
  33906. and NAME should be filled with the structure tag, if the default of
  33907. '__emutls_object' is unsuitable. The default creates a type
  33908. suitable for libgcc's emulated TLS function.
  33909. -- Target Hook: tree TARGET_EMUTLS_VAR_INIT (tree VAR, tree DECL, tree
  33910. TMPL_ADDR)
  33911. Specifies a function that generates the CONSTRUCTOR to initialize a
  33912. TLS control object. VAR is the TLS control object, DECL is the TLS
  33913. object and TMPL_ADDR is the address of the initializer. The
  33914. default initializes libgcc's emulated TLS control object.
  33915. -- Target Hook: bool TARGET_EMUTLS_VAR_ALIGN_FIXED
  33916. Specifies whether the alignment of TLS control variable objects is
  33917. fixed and should not be increased as some backends may do to
  33918. optimize single objects. The default is false.
  33919. -- Target Hook: bool TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS
  33920. Specifies whether a DWARF 'DW_OP_form_tls_address' location
  33921. descriptor may be used to describe emulated TLS control objects.
  33922. 
  33923. File: gccint.info, Node: MIPS Coprocessors, Next: PCH Target, Prev: Emulated TLS, Up: Target Macros
  33924. 18.26 Defining coprocessor specifics for MIPS targets.
  33925. ======================================================
  33926. The MIPS specification allows MIPS implementations to have as many as 4
  33927. coprocessors, each with as many as 32 private registers. GCC supports
  33928. accessing these registers and transferring values between the registers
  33929. and memory using asm-ized variables. For example:
  33930. register unsigned int cp0count asm ("c0r1");
  33931. unsigned int d;
  33932. d = cp0count + 3;
  33933. ("c0r1" is the default name of register 1 in coprocessor 0; alternate
  33934. names may be added as described below, or the default names may be
  33935. overridden entirely in 'SUBTARGET_CONDITIONAL_REGISTER_USAGE'.)
  33936. Coprocessor registers are assumed to be epilogue-used; sets to them
  33937. will be preserved even if it does not appear that the register is used
  33938. again later in the function.
  33939. Another note: according to the MIPS spec, coprocessor 1 (if present) is
  33940. the FPU. One accesses COP1 registers through standard mips
  33941. floating-point support; they are not included in this mechanism.
  33942. 
  33943. File: gccint.info, Node: PCH Target, Next: C++ ABI, Prev: MIPS Coprocessors, Up: Target Macros
  33944. 18.27 Parameters for Precompiled Header Validity Checking
  33945. =========================================================
  33946. -- Target Hook: void * TARGET_GET_PCH_VALIDITY (size_t *SZ)
  33947. This hook returns a pointer to the data needed by
  33948. 'TARGET_PCH_VALID_P' and sets '*SZ' to the size of the data in
  33949. bytes.
  33950. -- Target Hook: const char * TARGET_PCH_VALID_P (const void *DATA,
  33951. size_t SZ)
  33952. This hook checks whether the options used to create a PCH file are
  33953. compatible with the current settings. It returns 'NULL' if so and
  33954. a suitable error message if not. Error messages will be presented
  33955. to the user and must be localized using '_(MSG)'.
  33956. DATA is the data that was returned by 'TARGET_GET_PCH_VALIDITY'
  33957. when the PCH file was created and SZ is the size of that data in
  33958. bytes. It's safe to assume that the data was created by the same
  33959. version of the compiler, so no format checking is needed.
  33960. The default definition of 'default_pch_valid_p' should be suitable
  33961. for most targets.
  33962. -- Target Hook: const char * TARGET_CHECK_PCH_TARGET_FLAGS (int
  33963. PCH_FLAGS)
  33964. If this hook is nonnull, the default implementation of
  33965. 'TARGET_PCH_VALID_P' will use it to check for compatible values of
  33966. 'target_flags'. PCH_FLAGS specifies the value that 'target_flags'
  33967. had when the PCH file was created. The return value is the same as
  33968. for 'TARGET_PCH_VALID_P'.
  33969. -- Target Hook: void TARGET_PREPARE_PCH_SAVE (void)
  33970. Called before writing out a PCH file. If the target has some
  33971. garbage-collected data that needs to be in a particular state on
  33972. PCH loads, it can use this hook to enforce that state. Very few
  33973. targets need to do anything here.
  33974. 
  33975. File: gccint.info, Node: C++ ABI, Next: D Language and ABI, Prev: PCH Target, Up: Target Macros
  33976. 18.28 C++ ABI parameters
  33977. ========================
  33978. -- Target Hook: tree TARGET_CXX_GUARD_TYPE (void)
  33979. Define this hook to override the integer type used for guard
  33980. variables. These are used to implement one-time construction of
  33981. static objects. The default is long_long_integer_type_node.
  33982. -- Target Hook: bool TARGET_CXX_GUARD_MASK_BIT (void)
  33983. This hook determines how guard variables are used. It should
  33984. return 'false' (the default) if the first byte should be used. A
  33985. return value of 'true' indicates that only the least significant
  33986. bit should be used.
  33987. -- Target Hook: tree TARGET_CXX_GET_COOKIE_SIZE (tree TYPE)
  33988. This hook returns the size of the cookie to use when allocating an
  33989. array whose elements have the indicated TYPE. Assumes that it is
  33990. already known that a cookie is needed. The default is 'max(sizeof
  33991. (size_t), alignof(type))', as defined in section 2.7 of the
  33992. IA64/Generic C++ ABI.
  33993. -- Target Hook: bool TARGET_CXX_COOKIE_HAS_SIZE (void)
  33994. This hook should return 'true' if the element size should be stored
  33995. in array cookies. The default is to return 'false'.
  33996. -- Target Hook: int TARGET_CXX_IMPORT_EXPORT_CLASS (tree TYPE, int
  33997. IMPORT_EXPORT)
  33998. If defined by a backend this hook allows the decision made to
  33999. export class TYPE to be overruled. Upon entry IMPORT_EXPORT will
  34000. contain 1 if the class is going to be exported, -1 if it is going
  34001. to be imported and 0 otherwise. This function should return the
  34002. modified value and perform any other actions necessary to support
  34003. the backend's targeted operating system.
  34004. -- Target Hook: bool TARGET_CXX_CDTOR_RETURNS_THIS (void)
  34005. This hook should return 'true' if constructors and destructors
  34006. return the address of the object created/destroyed. The default is
  34007. to return 'false'.
  34008. -- Target Hook: bool TARGET_CXX_KEY_METHOD_MAY_BE_INLINE (void)
  34009. This hook returns true if the key method for a class (i.e., the
  34010. method which, if defined in the current translation unit, causes
  34011. the virtual table to be emitted) may be an inline function. Under
  34012. the standard Itanium C++ ABI the key method may be an inline
  34013. function so long as the function is not declared inline in the
  34014. class definition. Under some variants of the ABI, an inline
  34015. function can never be the key method. The default is to return
  34016. 'true'.
  34017. -- Target Hook: void TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY (tree
  34018. DECL)
  34019. DECL is a virtual table, virtual table table, typeinfo object, or
  34020. other similar implicit class data object that will be emitted with
  34021. external linkage in this translation unit. No ELF visibility has
  34022. been explicitly specified. If the target needs to specify a
  34023. visibility other than that of the containing class, use this hook
  34024. to set 'DECL_VISIBILITY' and 'DECL_VISIBILITY_SPECIFIED'.
  34025. -- Target Hook: bool TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT (void)
  34026. This hook returns true (the default) if virtual tables and other
  34027. similar implicit class data objects are always COMDAT if they have
  34028. external linkage. If this hook returns false, then class data for
  34029. classes whose virtual table will be emitted in only one translation
  34030. unit will not be COMDAT.
  34031. -- Target Hook: bool TARGET_CXX_LIBRARY_RTTI_COMDAT (void)
  34032. This hook returns true (the default) if the RTTI information for
  34033. the basic types which is defined in the C++ runtime should always
  34034. be COMDAT, false if it should not be COMDAT.
  34035. -- Target Hook: bool TARGET_CXX_USE_AEABI_ATEXIT (void)
  34036. This hook returns true if '__aeabi_atexit' (as defined by the ARM
  34037. EABI) should be used to register static destructors when
  34038. '-fuse-cxa-atexit' is in effect. The default is to return false to
  34039. use '__cxa_atexit'.
  34040. -- Target Hook: bool TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT (void)
  34041. This hook returns true if the target 'atexit' function can be used
  34042. in the same manner as '__cxa_atexit' to register C++ static
  34043. destructors. This requires that 'atexit'-registered functions in
  34044. shared libraries are run in the correct order when the libraries
  34045. are unloaded. The default is to return false.
  34046. -- Target Hook: void TARGET_CXX_ADJUST_CLASS_AT_DEFINITION (tree TYPE)
  34047. TYPE is a C++ class (i.e., RECORD_TYPE or UNION_TYPE) that has just
  34048. been defined. Use this hook to make adjustments to the class (eg,
  34049. tweak visibility or perform any other required target
  34050. modifications).
  34051. -- Target Hook: tree TARGET_CXX_DECL_MANGLING_CONTEXT (const_tree DECL)
  34052. Return target-specific mangling context of DECL or 'NULL_TREE'.
  34053. 
  34054. File: gccint.info, Node: D Language and ABI, Next: Named Address Spaces, Prev: C++ ABI, Up: Target Macros
  34055. 18.29 D ABI parameters
  34056. ======================
  34057. -- D Target Hook: void TARGET_D_CPU_VERSIONS (void)
  34058. Declare all environmental version identifiers relating to the
  34059. target CPU using the function 'builtin_version', which takes a
  34060. string representing the name of the version. Version identifiers
  34061. predefined by this hook apply to all modules that are being
  34062. compiled and imported.
  34063. -- D Target Hook: void TARGET_D_OS_VERSIONS (void)
  34064. Similarly to 'TARGET_D_CPU_VERSIONS', but is used for versions
  34065. relating to the target operating system.
  34066. -- D Target Hook: void TARGET_D_REGISTER_CPU_TARGET_INFO (void)
  34067. Register all target information keys relating to the target CPU
  34068. using the function 'd_add_target_info_handlers', which takes a
  34069. 'struct d_target_info_spec' (defined in 'd/d-target.h'). The keys
  34070. added by this hook are made available at compile time by the
  34071. '__traits(getTargetInfo)' extension, the result is an expression
  34072. describing the requested target information.
  34073. -- D Target Hook: void TARGET_D_REGISTER_OS_TARGET_INFO (void)
  34074. Same as 'TARGET_D_CPU_TARGET_INFO', but is used for keys relating
  34075. to the target operating system.
  34076. -- D Target Hook: const char * TARGET_D_MINFO_SECTION
  34077. Contains the name of the section in which module info references
  34078. should be placed. This section is expected to be bracketed by two
  34079. symbols to indicate the start and end address of the section, so
  34080. that the runtime library can collect all modules for each loaded
  34081. shared library and executable. The default value of 'NULL'
  34082. disables the use of sections altogether.
  34083. -- D Target Hook: const char * TARGET_D_MINFO_START_NAME
  34084. If 'TARGET_D_MINFO_SECTION' is defined, then this must also be
  34085. defined as the name of the symbol indicating the start address of
  34086. the module info section
  34087. -- D Target Hook: const char * TARGET_D_MINFO_END_NAME
  34088. If 'TARGET_D_MINFO_SECTION' is defined, then this must also be
  34089. defined as the name of the symbol indicating the end address of the
  34090. module info section
  34091. -- D Target Hook: bool TARGET_D_HAS_STDCALL_CONVENTION (unsigned int
  34092. *LINK_SYSTEM, unsigned int *LINK_WINDOWS)
  34093. Returns 'true' if the target supports the stdcall calling
  34094. convention. The hook should also set LINK_SYSTEM to '1' if the
  34095. 'stdcall' attribute should be applied to functions with
  34096. 'extern(System)' linkage, and LINK_WINDOWS to '1' to apply
  34097. 'stdcall' to functions with 'extern(Windows)' linkage.
  34098. -- D Target Hook: bool TARGET_D_TEMPLATES_ALWAYS_COMDAT
  34099. This flag is true if instantiated functions and variables are
  34100. always COMDAT if they have external linkage. If this flag is
  34101. false, then instantiated decls will be emitted as weak symbols.
  34102. The default is 'false'.
  34103. 
  34104. File: gccint.info, Node: Named Address Spaces, Next: Misc, Prev: D Language and ABI, Up: Target Macros
  34105. 18.30 Adding support for named address spaces
  34106. =============================================
  34107. The draft technical report of the ISO/IEC JTC1 S22 WG14 N1275 standards
  34108. committee, 'Programming Languages - C - Extensions to support embedded
  34109. processors', specifies a syntax for embedded processors to specify
  34110. alternate address spaces. You can configure a GCC port to support
  34111. section 5.1 of the draft report to add support for address spaces other
  34112. than the default address space. These address spaces are new keywords
  34113. that are similar to the 'volatile' and 'const' type attributes.
  34114. Pointers to named address spaces can have a different size than
  34115. pointers to the generic address space.
  34116. For example, the SPU port uses the '__ea' address space to refer to
  34117. memory in the host processor, rather than memory local to the SPU
  34118. processor. Access to memory in the '__ea' address space involves
  34119. issuing DMA operations to move data between the host processor and the
  34120. local processor memory address space. Pointers in the '__ea' address
  34121. space are either 32 bits or 64 bits based on the '-mea32' or '-mea64'
  34122. switches (native SPU pointers are always 32 bits).
  34123. Internally, address spaces are represented as a small integer in the
  34124. range 0 to 15 with address space 0 being reserved for the generic
  34125. address space.
  34126. To register a named address space qualifier keyword with the C front
  34127. end, the target may call the 'c_register_addr_space' routine. For
  34128. example, the SPU port uses the following to declare '__ea' as the
  34129. keyword for named address space #1:
  34130. #define ADDR_SPACE_EA 1
  34131. c_register_addr_space ("__ea", ADDR_SPACE_EA);
  34132. -- Target Hook: scalar_int_mode TARGET_ADDR_SPACE_POINTER_MODE
  34133. (addr_space_t ADDRESS_SPACE)
  34134. Define this to return the machine mode to use for pointers to
  34135. ADDRESS_SPACE if the target supports named address spaces. The
  34136. default version of this hook returns 'ptr_mode'.
  34137. -- Target Hook: scalar_int_mode TARGET_ADDR_SPACE_ADDRESS_MODE
  34138. (addr_space_t ADDRESS_SPACE)
  34139. Define this to return the machine mode to use for addresses in
  34140. ADDRESS_SPACE if the target supports named address spaces. The
  34141. default version of this hook returns 'Pmode'.
  34142. -- Target Hook: bool TARGET_ADDR_SPACE_VALID_POINTER_MODE
  34143. (scalar_int_mode MODE, addr_space_t AS)
  34144. Define this to return nonzero if the port can handle pointers with
  34145. machine mode MODE to address space AS. This target hook is the
  34146. same as the 'TARGET_VALID_POINTER_MODE' target hook, except that it
  34147. includes explicit named address space support. The default version
  34148. of this hook returns true for the modes returned by either the
  34149. 'TARGET_ADDR_SPACE_POINTER_MODE' or
  34150. 'TARGET_ADDR_SPACE_ADDRESS_MODE' target hooks for the given address
  34151. space.
  34152. -- Target Hook: bool TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P
  34153. (machine_mode MODE, rtx EXP, bool STRICT, addr_space_t AS)
  34154. Define this to return true if EXP is a valid address for mode MODE
  34155. in the named address space AS. The STRICT parameter says whether
  34156. strict addressing is in effect after reload has finished. This
  34157. target hook is the same as the 'TARGET_LEGITIMATE_ADDRESS_P' target
  34158. hook, except that it includes explicit named address space support.
  34159. -- Target Hook: rtx TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS (rtx X, rtx
  34160. OLDX, machine_mode MODE, addr_space_t AS)
  34161. Define this to modify an invalid address X to be a valid address
  34162. with mode MODE in the named address space AS. This target hook is
  34163. the same as the 'TARGET_LEGITIMIZE_ADDRESS' target hook, except
  34164. that it includes explicit named address space support.
  34165. -- Target Hook: bool TARGET_ADDR_SPACE_SUBSET_P (addr_space_t SUBSET,
  34166. addr_space_t SUPERSET)
  34167. Define this to return whether the SUBSET named address space is
  34168. contained within the SUPERSET named address space. Pointers to a
  34169. named address space that is a subset of another named address space
  34170. will be converted automatically without a cast if used together in
  34171. arithmetic operations. Pointers to a superset address space can be
  34172. converted to pointers to a subset address space via explicit casts.
  34173. -- Target Hook: bool TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID (addr_space_t
  34174. AS)
  34175. Define this to modify the default handling of address 0 for the
  34176. address space. Return true if 0 should be considered a valid
  34177. address.
  34178. -- Target Hook: rtx TARGET_ADDR_SPACE_CONVERT (rtx OP, tree FROM_TYPE,
  34179. tree TO_TYPE)
  34180. Define this to convert the pointer expression represented by the
  34181. RTL OP with type FROM_TYPE that points to a named address space to
  34182. a new pointer expression with type TO_TYPE that points to a
  34183. different named address space. When this hook it called, it is
  34184. guaranteed that one of the two address spaces is a subset of the
  34185. other, as determined by the 'TARGET_ADDR_SPACE_SUBSET_P' target
  34186. hook.
  34187. -- Target Hook: int TARGET_ADDR_SPACE_DEBUG (addr_space_t AS)
  34188. Define this to define how the address space is encoded in dwarf.
  34189. The result is the value to be used with 'DW_AT_address_class'.
  34190. -- Target Hook: void TARGET_ADDR_SPACE_DIAGNOSE_USAGE (addr_space_t AS,
  34191. location_t LOC)
  34192. Define this hook if the availability of an address space depends on
  34193. command line options and some diagnostics should be printed when
  34194. the address space is used. This hook is called during parsing and
  34195. allows to emit a better diagnostic compared to the case where the
  34196. address space was not registered with 'c_register_addr_space'. AS
  34197. is the address space as registered with 'c_register_addr_space'.
  34198. LOC is the location of the address space qualifier token. The
  34199. default implementation does nothing.
  34200. 
  34201. File: gccint.info, Node: Misc, Prev: Named Address Spaces, Up: Target Macros
  34202. 18.31 Miscellaneous Parameters
  34203. ==============================
  34204. Here are several miscellaneous parameters.
  34205. -- Macro: HAS_LONG_COND_BRANCH
  34206. Define this boolean macro to indicate whether or not your
  34207. architecture has conditional branches that can span all of memory.
  34208. It is used in conjunction with an optimization that partitions hot
  34209. and cold basic blocks into separate sections of the executable. If
  34210. this macro is set to false, gcc will convert any conditional
  34211. branches that attempt to cross between sections into unconditional
  34212. branches or indirect jumps.
  34213. -- Macro: HAS_LONG_UNCOND_BRANCH
  34214. Define this boolean macro to indicate whether or not your
  34215. architecture has unconditional branches that can span all of
  34216. memory. It is used in conjunction with an optimization that
  34217. partitions hot and cold basic blocks into separate sections of the
  34218. executable. If this macro is set to false, gcc will convert any
  34219. unconditional branches that attempt to cross between sections into
  34220. indirect jumps.
  34221. -- Macro: CASE_VECTOR_MODE
  34222. An alias for a machine mode name. This is the machine mode that
  34223. elements of a jump-table should have.
  34224. -- Macro: CASE_VECTOR_SHORTEN_MODE (MIN_OFFSET, MAX_OFFSET, BODY)
  34225. Optional: return the preferred mode for an 'addr_diff_vec' when the
  34226. minimum and maximum offset are known. If you define this, it
  34227. enables extra code in branch shortening to deal with
  34228. 'addr_diff_vec'. To make this work, you also have to define
  34229. 'INSN_ALIGN' and make the alignment for 'addr_diff_vec' explicit.
  34230. The BODY argument is provided so that the offset_unsigned and scale
  34231. flags can be updated.
  34232. -- Macro: CASE_VECTOR_PC_RELATIVE
  34233. Define this macro to be a C expression to indicate when jump-tables
  34234. should contain relative addresses. You need not define this macro
  34235. if jump-tables never contain relative addresses, or jump-tables
  34236. should contain relative addresses only when '-fPIC' or '-fPIC' is
  34237. in effect.
  34238. -- Target Hook: unsigned int TARGET_CASE_VALUES_THRESHOLD (void)
  34239. This function return the smallest number of different values for
  34240. which it is best to use a jump-table instead of a tree of
  34241. conditional branches. The default is four for machines with a
  34242. 'casesi' instruction and five otherwise. This is best for most
  34243. machines.
  34244. -- Macro: WORD_REGISTER_OPERATIONS
  34245. Define this macro to 1 if operations between registers with
  34246. integral mode smaller than a word are always performed on the
  34247. entire register. To be more explicit, if you start with a pair of
  34248. 'word_mode' registers with known values and you do a subword, for
  34249. example 'QImode', addition on the low part of the registers, then
  34250. the compiler may consider that the result has a known value in
  34251. 'word_mode' too if the macro is defined to 1. Most RISC machines
  34252. have this property and most CISC machines do not.
  34253. -- Target Hook: unsigned int TARGET_MIN_ARITHMETIC_PRECISION (void)
  34254. On some RISC architectures with 64-bit registers, the processor
  34255. also maintains 32-bit condition codes that make it possible to do
  34256. real 32-bit arithmetic, although the operations are performed on
  34257. the full registers.
  34258. On such architectures, defining this hook to 32 tells the compiler
  34259. to try using 32-bit arithmetical operations setting the condition
  34260. codes instead of doing full 64-bit arithmetic.
  34261. More generally, define this hook on RISC architectures if you want
  34262. the compiler to try using arithmetical operations setting the
  34263. condition codes with a precision lower than the word precision.
  34264. You need not define this hook if 'WORD_REGISTER_OPERATIONS' is not
  34265. defined to 1.
  34266. -- Macro: LOAD_EXTEND_OP (MEM_MODE)
  34267. Define this macro to be a C expression indicating when insns that
  34268. read memory in MEM_MODE, an integral mode narrower than a word, set
  34269. the bits outside of MEM_MODE to be either the sign-extension or the
  34270. zero-extension of the data read. Return 'SIGN_EXTEND' for values
  34271. of MEM_MODE for which the insn sign-extends, 'ZERO_EXTEND' for
  34272. which it zero-extends, and 'UNKNOWN' for other modes.
  34273. This macro is not called with MEM_MODE non-integral or with a width
  34274. greater than or equal to 'BITS_PER_WORD', so you may return any
  34275. value in this case. Do not define this macro if it would always
  34276. return 'UNKNOWN'. On machines where this macro is defined, you
  34277. will normally define it as the constant 'SIGN_EXTEND' or
  34278. 'ZERO_EXTEND'.
  34279. You may return a non-'UNKNOWN' value even if for some hard
  34280. registers the sign extension is not performed, if for the
  34281. 'REGNO_REG_CLASS' of these hard registers
  34282. 'TARGET_CAN_CHANGE_MODE_CLASS' returns false when the FROM mode is
  34283. MEM_MODE and the TO mode is any integral mode larger than this but
  34284. not larger than 'word_mode'.
  34285. You must return 'UNKNOWN' if for some hard registers that allow
  34286. this mode, 'TARGET_CAN_CHANGE_MODE_CLASS' says that they cannot
  34287. change to 'word_mode', but that they can change to another integral
  34288. mode that is larger then MEM_MODE but still smaller than
  34289. 'word_mode'.
  34290. -- Macro: SHORT_IMMEDIATES_SIGN_EXTEND
  34291. Define this macro to 1 if loading short immediate values into
  34292. registers sign extends.
  34293. -- Target Hook: unsigned int TARGET_MIN_DIVISIONS_FOR_RECIP_MUL
  34294. (machine_mode MODE)
  34295. When '-ffast-math' is in effect, GCC tries to optimize divisions by
  34296. the same divisor, by turning them into multiplications by the
  34297. reciprocal. This target hook specifies the minimum number of
  34298. divisions that should be there for GCC to perform the optimization
  34299. for a variable of mode MODE. The default implementation returns 3
  34300. if the machine has an instruction for the division, and 2 if it
  34301. does not.
  34302. -- Macro: MOVE_MAX
  34303. The maximum number of bytes that a single instruction can move
  34304. quickly between memory and registers or between two memory
  34305. locations.
  34306. -- Macro: MAX_MOVE_MAX
  34307. The maximum number of bytes that a single instruction can move
  34308. quickly between memory and registers or between two memory
  34309. locations. If this is undefined, the default is 'MOVE_MAX'.
  34310. Otherwise, it is the constant value that is the largest value that
  34311. 'MOVE_MAX' can have at run-time.
  34312. -- Macro: SHIFT_COUNT_TRUNCATED
  34313. A C expression that is nonzero if on this machine the number of
  34314. bits actually used for the count of a shift operation is equal to
  34315. the number of bits needed to represent the size of the object being
  34316. shifted. When this macro is nonzero, the compiler will assume that
  34317. it is safe to omit a sign-extend, zero-extend, and certain bitwise
  34318. 'and' instructions that truncates the count of a shift operation.
  34319. On machines that have instructions that act on bit-fields at
  34320. variable positions, which may include 'bit test' instructions, a
  34321. nonzero 'SHIFT_COUNT_TRUNCATED' also enables deletion of
  34322. truncations of the values that serve as arguments to bit-field
  34323. instructions.
  34324. If both types of instructions truncate the count (for shifts) and
  34325. position (for bit-field operations), or if no variable-position
  34326. bit-field instructions exist, you should define this macro.
  34327. However, on some machines, such as the 80386 and the 680x0,
  34328. truncation only applies to shift operations and not the (real or
  34329. pretended) bit-field operations. Define 'SHIFT_COUNT_TRUNCATED' to
  34330. be zero on such machines. Instead, add patterns to the 'md' file
  34331. that include the implied truncation of the shift instructions.
  34332. You need not define this macro if it would always have the value of
  34333. zero.
  34334. -- Target Hook: unsigned HOST_WIDE_INT TARGET_SHIFT_TRUNCATION_MASK
  34335. (machine_mode MODE)
  34336. This function describes how the standard shift patterns for MODE
  34337. deal with shifts by negative amounts or by more than the width of
  34338. the mode. *Note shift patterns::.
  34339. On many machines, the shift patterns will apply a mask M to the
  34340. shift count, meaning that a fixed-width shift of X by Y is
  34341. equivalent to an arbitrary-width shift of X by Y & M. If this is
  34342. true for mode MODE, the function should return M, otherwise it
  34343. should return 0. A return value of 0 indicates that no particular
  34344. behavior is guaranteed.
  34345. Note that, unlike 'SHIFT_COUNT_TRUNCATED', this function does _not_
  34346. apply to general shift rtxes; it applies only to instructions that
  34347. are generated by the named shift patterns.
  34348. The default implementation of this function returns
  34349. 'GET_MODE_BITSIZE (MODE) - 1' if 'SHIFT_COUNT_TRUNCATED' and 0
  34350. otherwise. This definition is always safe, but if
  34351. 'SHIFT_COUNT_TRUNCATED' is false, and some shift patterns
  34352. nevertheless truncate the shift count, you may get better code by
  34353. overriding it.
  34354. -- Target Hook: bool TARGET_TRULY_NOOP_TRUNCATION (poly_uint64 OUTPREC,
  34355. poly_uint64 INPREC)
  34356. This hook returns true if it is safe to "convert" a value of INPREC
  34357. bits to one of OUTPREC bits (where OUTPREC is smaller than INPREC)
  34358. by merely operating on it as if it had only OUTPREC bits. The
  34359. default returns true unconditionally, which is correct for most
  34360. machines. When 'TARGET_TRULY_NOOP_TRUNCATION' returns false, the
  34361. machine description should provide a 'trunc' optab to specify the
  34362. RTL that performs the required truncation.
  34363. If 'TARGET_MODES_TIEABLE_P' returns false for a pair of modes,
  34364. suboptimal code can result if this hook returns true for the
  34365. corresponding mode sizes. Making this hook return false in such
  34366. cases may improve things.
  34367. -- Target Hook: int TARGET_MODE_REP_EXTENDED (scalar_int_mode MODE,
  34368. scalar_int_mode REP_MODE)
  34369. The representation of an integral mode can be such that the values
  34370. are always extended to a wider integral mode. Return 'SIGN_EXTEND'
  34371. if values of MODE are represented in sign-extended form to
  34372. REP_MODE. Return 'UNKNOWN' otherwise. (Currently, none of the
  34373. targets use zero-extended representation this way so unlike
  34374. 'LOAD_EXTEND_OP', 'TARGET_MODE_REP_EXTENDED' is expected to return
  34375. either 'SIGN_EXTEND' or 'UNKNOWN'. Also no target extends MODE to
  34376. REP_MODE so that REP_MODE is not the next widest integral mode and
  34377. currently we take advantage of this fact.)
  34378. Similarly to 'LOAD_EXTEND_OP' you may return a non-'UNKNOWN' value
  34379. even if the extension is not performed on certain hard registers as
  34380. long as for the 'REGNO_REG_CLASS' of these hard registers
  34381. 'TARGET_CAN_CHANGE_MODE_CLASS' returns false.
  34382. Note that 'TARGET_MODE_REP_EXTENDED' and 'LOAD_EXTEND_OP' describe
  34383. two related properties. If you define 'TARGET_MODE_REP_EXTENDED
  34384. (mode, word_mode)' you probably also want to define 'LOAD_EXTEND_OP
  34385. (mode)' to return the same type of extension.
  34386. In order to enforce the representation of 'mode',
  34387. 'TARGET_TRULY_NOOP_TRUNCATION' should return false when truncating
  34388. to 'mode'.
  34389. -- Target Hook: bool TARGET_SETJMP_PRESERVES_NONVOLATILE_REGS_P (void)
  34390. On some targets, it is assumed that the compiler will spill all
  34391. pseudos that are live across a call to 'setjmp', while other
  34392. targets treat 'setjmp' calls as normal function calls.
  34393. This hook returns false if 'setjmp' calls do not preserve all
  34394. non-volatile registers so that gcc that must spill all pseudos that
  34395. are live across 'setjmp' calls. Define this to return true if the
  34396. target does not need to spill all pseudos live across 'setjmp'
  34397. calls. The default implementation conservatively assumes all
  34398. pseudos must be spilled across 'setjmp' calls.
  34399. -- Macro: STORE_FLAG_VALUE
  34400. A C expression describing the value returned by a comparison
  34401. operator with an integral mode and stored by a store-flag
  34402. instruction ('cstoreMODE4') when the condition is true. This
  34403. description must apply to _all_ the 'cstoreMODE4' patterns and all
  34404. the comparison operators whose results have a 'MODE_INT' mode.
  34405. A value of 1 or -1 means that the instruction implementing the
  34406. comparison operator returns exactly 1 or -1 when the comparison is
  34407. true and 0 when the comparison is false. Otherwise, the value
  34408. indicates which bits of the result are guaranteed to be 1 when the
  34409. comparison is true. This value is interpreted in the mode of the
  34410. comparison operation, which is given by the mode of the first
  34411. operand in the 'cstoreMODE4' pattern. Either the low bit or the
  34412. sign bit of 'STORE_FLAG_VALUE' be on. Presently, only those bits
  34413. are used by the compiler.
  34414. If 'STORE_FLAG_VALUE' is neither 1 or -1, the compiler will
  34415. generate code that depends only on the specified bits. It can also
  34416. replace comparison operators with equivalent operations if they
  34417. cause the required bits to be set, even if the remaining bits are
  34418. undefined. For example, on a machine whose comparison operators
  34419. return an 'SImode' value and where 'STORE_FLAG_VALUE' is defined as
  34420. '0x80000000', saying that just the sign bit is relevant, the
  34421. expression
  34422. (ne:SI (and:SI X (const_int POWER-OF-2)) (const_int 0))
  34423. can be converted to
  34424. (ashift:SI X (const_int N))
  34425. where N is the appropriate shift count to move the bit being tested
  34426. into the sign bit.
  34427. There is no way to describe a machine that always sets the
  34428. low-order bit for a true value, but does not guarantee the value of
  34429. any other bits, but we do not know of any machine that has such an
  34430. instruction. If you are trying to port GCC to such a machine,
  34431. include an instruction to perform a logical-and of the result with
  34432. 1 in the pattern for the comparison operators and let us know at
  34433. <gcc@gcc.gnu.org>.
  34434. Often, a machine will have multiple instructions that obtain a
  34435. value from a comparison (or the condition codes). Here are rules
  34436. to guide the choice of value for 'STORE_FLAG_VALUE', and hence the
  34437. instructions to be used:
  34438. * Use the shortest sequence that yields a valid definition for
  34439. 'STORE_FLAG_VALUE'. It is more efficient for the compiler to
  34440. "normalize" the value (convert it to, e.g., 1 or 0) than for
  34441. the comparison operators to do so because there may be
  34442. opportunities to combine the normalization with other
  34443. operations.
  34444. * For equal-length sequences, use a value of 1 or -1, with -1
  34445. being slightly preferred on machines with expensive jumps and
  34446. 1 preferred on other machines.
  34447. * As a second choice, choose a value of '0x80000001' if
  34448. instructions exist that set both the sign and low-order bits
  34449. but do not define the others.
  34450. * Otherwise, use a value of '0x80000000'.
  34451. Many machines can produce both the value chosen for
  34452. 'STORE_FLAG_VALUE' and its negation in the same number of
  34453. instructions. On those machines, you should also define a pattern
  34454. for those cases, e.g., one matching
  34455. (set A (neg:M (ne:M B C)))
  34456. Some machines can also perform 'and' or 'plus' operations on
  34457. condition code values with less instructions than the corresponding
  34458. 'cstoreMODE4' insn followed by 'and' or 'plus'. On those machines,
  34459. define the appropriate patterns. Use the names 'incscc' and
  34460. 'decscc', respectively, for the patterns which perform 'plus' or
  34461. 'minus' operations on condition code values. See 'rs6000.md' for
  34462. some examples. The GNU Superoptimizer can be used to find such
  34463. instruction sequences on other machines.
  34464. If this macro is not defined, the default value, 1, is used. You
  34465. need not define 'STORE_FLAG_VALUE' if the machine has no store-flag
  34466. instructions, or if the value generated by these instructions is 1.
  34467. -- Macro: FLOAT_STORE_FLAG_VALUE (MODE)
  34468. A C expression that gives a nonzero 'REAL_VALUE_TYPE' value that is
  34469. returned when comparison operators with floating-point results are
  34470. true. Define this macro on machines that have comparison
  34471. operations that return floating-point values. If there are no such
  34472. operations, do not define this macro.
  34473. -- Macro: VECTOR_STORE_FLAG_VALUE (MODE)
  34474. A C expression that gives an rtx representing the nonzero true
  34475. element for vector comparisons. The returned rtx should be valid
  34476. for the inner mode of MODE which is guaranteed to be a vector mode.
  34477. Define this macro on machines that have vector comparison
  34478. operations that return a vector result. If there are no such
  34479. operations, do not define this macro. Typically, this macro is
  34480. defined as 'const1_rtx' or 'constm1_rtx'. This macro may return
  34481. 'NULL_RTX' to prevent the compiler optimizing such vector
  34482. comparison operations for the given mode.
  34483. -- Macro: CLZ_DEFINED_VALUE_AT_ZERO (MODE, VALUE)
  34484. -- Macro: CTZ_DEFINED_VALUE_AT_ZERO (MODE, VALUE)
  34485. A C expression that indicates whether the architecture defines a
  34486. value for 'clz' or 'ctz' with a zero operand. A result of '0'
  34487. indicates the value is undefined. If the value is defined for only
  34488. the RTL expression, the macro should evaluate to '1'; if the value
  34489. applies also to the corresponding optab entry (which is normally
  34490. the case if it expands directly into the corresponding RTL), then
  34491. the macro should evaluate to '2'. In the cases where the value is
  34492. defined, VALUE should be set to this value.
  34493. If this macro is not defined, the value of 'clz' or 'ctz' at zero
  34494. is assumed to be undefined.
  34495. This macro must be defined if the target's expansion for 'ffs'
  34496. relies on a particular value to get correct results. Otherwise it
  34497. is not necessary, though it may be used to optimize some corner
  34498. cases, and to provide a default expansion for the 'ffs' optab.
  34499. Note that regardless of this macro the "definedness" of 'clz' and
  34500. 'ctz' at zero do _not_ extend to the builtin functions visible to
  34501. the user. Thus one may be free to adjust the value at will to
  34502. match the target expansion of these operations without fear of
  34503. breaking the API.
  34504. -- Macro: Pmode
  34505. An alias for the machine mode for pointers. On most machines,
  34506. define this to be the integer mode corresponding to the width of a
  34507. hardware pointer; 'SImode' on 32-bit machine or 'DImode' on 64-bit
  34508. machines. On some machines you must define this to be one of the
  34509. partial integer modes, such as 'PSImode'.
  34510. The width of 'Pmode' must be at least as large as the value of
  34511. 'POINTER_SIZE'. If it is not equal, you must define the macro
  34512. 'POINTERS_EXTEND_UNSIGNED' to specify how pointers are extended to
  34513. 'Pmode'.
  34514. -- Macro: FUNCTION_MODE
  34515. An alias for the machine mode used for memory references to
  34516. functions being called, in 'call' RTL expressions. On most CISC
  34517. machines, where an instruction can begin at any byte address, this
  34518. should be 'QImode'. On most RISC machines, where all instructions
  34519. have fixed size and alignment, this should be a mode with the same
  34520. size and alignment as the machine instruction words - typically
  34521. 'SImode' or 'HImode'.
  34522. -- Macro: STDC_0_IN_SYSTEM_HEADERS
  34523. In normal operation, the preprocessor expands '__STDC__' to the
  34524. constant 1, to signify that GCC conforms to ISO Standard C. On
  34525. some hosts, like Solaris, the system compiler uses a different
  34526. convention, where '__STDC__' is normally 0, but is 1 if the user
  34527. specifies strict conformance to the C Standard.
  34528. Defining 'STDC_0_IN_SYSTEM_HEADERS' makes GNU CPP follows the host
  34529. convention when processing system header files, but when processing
  34530. user files '__STDC__' will always expand to 1.
  34531. -- C Target Hook: const char * TARGET_C_PREINCLUDE (void)
  34532. Define this hook to return the name of a header file to be included
  34533. at the start of all compilations, as if it had been included with
  34534. '#include <FILE>'. If this hook returns 'NULL', or is not defined,
  34535. or the header is not found, or if the user specifies
  34536. '-ffreestanding' or '-nostdinc', no header is included.
  34537. This hook can be used together with a header provided by the system
  34538. C library to implement ISO C requirements for certain macros to be
  34539. predefined that describe properties of the whole implementation
  34540. rather than just the compiler.
  34541. -- C Target Hook: bool TARGET_CXX_IMPLICIT_EXTERN_C (const char*)
  34542. Define this hook to add target-specific C++ implicit extern C
  34543. functions. If this function returns true for the name of a
  34544. file-scope function, that function implicitly gets extern "C"
  34545. linkage rather than whatever language linkage the declaration would
  34546. normally have. An example of such function is WinMain on Win32
  34547. targets.
  34548. -- Macro: SYSTEM_IMPLICIT_EXTERN_C
  34549. Define this macro if the system header files do not support C++.
  34550. This macro handles system header files by pretending that system
  34551. header files are enclosed in 'extern "C" {...}'.
  34552. -- Macro: REGISTER_TARGET_PRAGMAS ()
  34553. Define this macro if you want to implement any target-specific
  34554. pragmas. If defined, it is a C expression which makes a series of
  34555. calls to 'c_register_pragma' or 'c_register_pragma_with_expansion'
  34556. for each pragma. The macro may also do any setup required for the
  34557. pragmas.
  34558. The primary reason to define this macro is to provide compatibility
  34559. with other compilers for the same target. In general, we
  34560. discourage definition of target-specific pragmas for GCC.
  34561. If the pragma can be implemented by attributes then you should
  34562. consider defining the target hook 'TARGET_INSERT_ATTRIBUTES' as
  34563. well.
  34564. Preprocessor macros that appear on pragma lines are not expanded.
  34565. All '#pragma' directives that do not match any registered pragma
  34566. are silently ignored, unless the user specifies
  34567. '-Wunknown-pragmas'.
  34568. -- Function: void c_register_pragma (const char *SPACE, const char
  34569. *NAME, void (*CALLBACK) (struct cpp_reader *))
  34570. -- Function: void c_register_pragma_with_expansion (const char *SPACE,
  34571. const char *NAME, void (*CALLBACK) (struct cpp_reader *))
  34572. Each call to 'c_register_pragma' or
  34573. 'c_register_pragma_with_expansion' establishes one pragma. The
  34574. CALLBACK routine will be called when the preprocessor encounters a
  34575. pragma of the form
  34576. #pragma [SPACE] NAME ...
  34577. SPACE is the case-sensitive namespace of the pragma, or 'NULL' to
  34578. put the pragma in the global namespace. The callback routine
  34579. receives PFILE as its first argument, which can be passed on to
  34580. cpplib's functions if necessary. You can lex tokens after the NAME
  34581. by calling 'pragma_lex'. Tokens that are not read by the callback
  34582. will be silently ignored. The end of the line is indicated by a
  34583. token of type 'CPP_EOF'. Macro expansion occurs on the arguments
  34584. of pragmas registered with 'c_register_pragma_with_expansion' but
  34585. not on the arguments of pragmas registered with
  34586. 'c_register_pragma'.
  34587. Note that the use of 'pragma_lex' is specific to the C and C++
  34588. compilers. It will not work in the Java or Fortran compilers, or
  34589. any other language compilers for that matter. Thus if 'pragma_lex'
  34590. is going to be called from target-specific code, it must only be
  34591. done so when building the C and C++ compilers. This can be done by
  34592. defining the variables 'c_target_objs' and 'cxx_target_objs' in the
  34593. target entry in the 'config.gcc' file. These variables should name
  34594. the target-specific, language-specific object file which contains
  34595. the code that uses 'pragma_lex'. Note it will also be necessary to
  34596. add a rule to the makefile fragment pointed to by 'tmake_file' that
  34597. shows how to build this object file.
  34598. -- Macro: HANDLE_PRAGMA_PACK_WITH_EXPANSION
  34599. Define this macro if macros should be expanded in the arguments of
  34600. '#pragma pack'.
  34601. -- Macro: TARGET_DEFAULT_PACK_STRUCT
  34602. If your target requires a structure packing default other than 0
  34603. (meaning the machine default), define this macro to the necessary
  34604. value (in bytes). This must be a value that would also be valid to
  34605. use with '#pragma pack()' (that is, a small power of two).
  34606. -- Macro: DOLLARS_IN_IDENTIFIERS
  34607. Define this macro to control use of the character '$' in identifier
  34608. names for the C family of languages. 0 means '$' is not allowed by
  34609. default; 1 means it is allowed. 1 is the default; there is no need
  34610. to define this macro in that case.
  34611. -- Macro: INSN_SETS_ARE_DELAYED (INSN)
  34612. Define this macro as a C expression that is nonzero if it is safe
  34613. for the delay slot scheduler to place instructions in the delay
  34614. slot of INSN, even if they appear to use a resource set or
  34615. clobbered in INSN. INSN is always a 'jump_insn' or an 'insn'; GCC
  34616. knows that every 'call_insn' has this behavior. On machines where
  34617. some 'insn' or 'jump_insn' is really a function call and hence has
  34618. this behavior, you should define this macro.
  34619. You need not define this macro if it would always return zero.
  34620. -- Macro: INSN_REFERENCES_ARE_DELAYED (INSN)
  34621. Define this macro as a C expression that is nonzero if it is safe
  34622. for the delay slot scheduler to place instructions in the delay
  34623. slot of INSN, even if they appear to set or clobber a resource
  34624. referenced in INSN. INSN is always a 'jump_insn' or an 'insn'. On
  34625. machines where some 'insn' or 'jump_insn' is really a function call
  34626. and its operands are registers whose use is actually in the
  34627. subroutine it calls, you should define this macro. Doing so allows
  34628. the delay slot scheduler to move instructions which copy arguments
  34629. into the argument registers into the delay slot of INSN.
  34630. You need not define this macro if it would always return zero.
  34631. -- Macro: MULTIPLE_SYMBOL_SPACES
  34632. Define this macro as a C expression that is nonzero if, in some
  34633. cases, global symbols from one translation unit may not be bound to
  34634. undefined symbols in another translation unit without user
  34635. intervention. For instance, under Microsoft Windows symbols must
  34636. be explicitly imported from shared libraries (DLLs).
  34637. You need not define this macro if it would always evaluate to zero.
  34638. -- Target Hook: rtx_insn * TARGET_MD_ASM_ADJUST (vec<rtx>& OUTPUTS,
  34639. vec<rtx>& INPUTS, vec<machine_mode>& INPUT_MODES, vec<const
  34640. char *>& CONSTRAINTS, vec<rtx>& CLOBBERS, HARD_REG_SET&
  34641. CLOBBERED_REGS)
  34642. This target hook may add "clobbers" to CLOBBERS and CLOBBERED_REGS
  34643. for any hard regs the port wishes to automatically clobber for an
  34644. asm. The OUTPUTS and INPUTS may be inspected to avoid clobbering a
  34645. register that is already used by the asm.
  34646. It may modify the OUTPUTS, INPUTS, INPUT_MODES, and CONSTRAINTS as
  34647. necessary for other pre-processing. In this case the return value
  34648. is a sequence of insns to emit after the asm. Note that changes to
  34649. INPUTS must be accompanied by the corresponding changes to
  34650. INPUT_MODES.
  34651. -- Macro: MATH_LIBRARY
  34652. Define this macro as a C string constant for the linker argument to
  34653. link in the system math library, minus the initial '"-l"', or '""'
  34654. if the target does not have a separate math library.
  34655. You need only define this macro if the default of '"m"' is wrong.
  34656. -- Macro: LIBRARY_PATH_ENV
  34657. Define this macro as a C string constant for the environment
  34658. variable that specifies where the linker should look for libraries.
  34659. You need only define this macro if the default of '"LIBRARY_PATH"'
  34660. is wrong.
  34661. -- Macro: TARGET_POSIX_IO
  34662. Define this macro if the target supports the following POSIX file
  34663. functions, access, mkdir and file locking with fcntl / F_SETLKW.
  34664. Defining 'TARGET_POSIX_IO' will enable the test coverage code to
  34665. use file locking when exiting a program, which avoids race
  34666. conditions if the program has forked. It will also create
  34667. directories at run-time for cross-profiling.
  34668. -- Macro: MAX_CONDITIONAL_EXECUTE
  34669. A C expression for the maximum number of instructions to execute
  34670. via conditional execution instructions instead of a branch. A
  34671. value of 'BRANCH_COST'+1 is the default if the machine does not use
  34672. cc0, and 1 if it does use cc0.
  34673. -- Macro: IFCVT_MODIFY_TESTS (CE_INFO, TRUE_EXPR, FALSE_EXPR)
  34674. Used if the target needs to perform machine-dependent modifications
  34675. on the conditionals used for turning basic blocks into
  34676. conditionally executed code. CE_INFO points to a data structure,
  34677. 'struct ce_if_block', which contains information about the
  34678. currently processed blocks. TRUE_EXPR and FALSE_EXPR are the tests
  34679. that are used for converting the then-block and the else-block,
  34680. respectively. Set either TRUE_EXPR or FALSE_EXPR to a null pointer
  34681. if the tests cannot be converted.
  34682. -- Macro: IFCVT_MODIFY_MULTIPLE_TESTS (CE_INFO, BB, TRUE_EXPR,
  34683. FALSE_EXPR)
  34684. Like 'IFCVT_MODIFY_TESTS', but used when converting more
  34685. complicated if-statements into conditions combined by 'and' and
  34686. 'or' operations. BB contains the basic block that contains the
  34687. test that is currently being processed and about to be turned into
  34688. a condition.
  34689. -- Macro: IFCVT_MODIFY_INSN (CE_INFO, PATTERN, INSN)
  34690. A C expression to modify the PATTERN of an INSN that is to be
  34691. converted to conditional execution format. CE_INFO points to a
  34692. data structure, 'struct ce_if_block', which contains information
  34693. about the currently processed blocks.
  34694. -- Macro: IFCVT_MODIFY_FINAL (CE_INFO)
  34695. A C expression to perform any final machine dependent modifications
  34696. in converting code to conditional execution. The involved basic
  34697. blocks can be found in the 'struct ce_if_block' structure that is
  34698. pointed to by CE_INFO.
  34699. -- Macro: IFCVT_MODIFY_CANCEL (CE_INFO)
  34700. A C expression to cancel any machine dependent modifications in
  34701. converting code to conditional execution. The involved basic
  34702. blocks can be found in the 'struct ce_if_block' structure that is
  34703. pointed to by CE_INFO.
  34704. -- Macro: IFCVT_MACHDEP_INIT (CE_INFO)
  34705. A C expression to initialize any machine specific data for
  34706. if-conversion of the if-block in the 'struct ce_if_block' structure
  34707. that is pointed to by CE_INFO.
  34708. -- Target Hook: void TARGET_MACHINE_DEPENDENT_REORG (void)
  34709. If non-null, this hook performs a target-specific pass over the
  34710. instruction stream. The compiler will run it at all optimization
  34711. levels, just before the point at which it normally does
  34712. delayed-branch scheduling.
  34713. The exact purpose of the hook varies from target to target. Some
  34714. use it to do transformations that are necessary for correctness,
  34715. such as laying out in-function constant pools or avoiding hardware
  34716. hazards. Others use it as an opportunity to do some
  34717. machine-dependent optimizations.
  34718. You need not implement the hook if it has nothing to do. The
  34719. default definition is null.
  34720. -- Target Hook: void TARGET_INIT_BUILTINS (void)
  34721. Define this hook if you have any machine-specific built-in
  34722. functions that need to be defined. It should be a function that
  34723. performs the necessary setup.
  34724. Machine specific built-in functions can be useful to expand special
  34725. machine instructions that would otherwise not normally be generated
  34726. because they have no equivalent in the source language (for
  34727. example, SIMD vector instructions or prefetch instructions).
  34728. To create a built-in function, call the function
  34729. 'lang_hooks.builtin_function' which is defined by the language
  34730. front end. You can use any type nodes set up by
  34731. 'build_common_tree_nodes'; only language front ends that use those
  34732. two functions will call 'TARGET_INIT_BUILTINS'.
  34733. -- Target Hook: tree TARGET_BUILTIN_DECL (unsigned CODE, bool
  34734. INITIALIZE_P)
  34735. Define this hook if you have any machine-specific built-in
  34736. functions that need to be defined. It should be a function that
  34737. returns the builtin function declaration for the builtin function
  34738. code CODE. If there is no such builtin and it cannot be
  34739. initialized at this time if INITIALIZE_P is true the function
  34740. should return 'NULL_TREE'. If CODE is out of range the function
  34741. should return 'error_mark_node'.
  34742. -- Target Hook: rtx TARGET_EXPAND_BUILTIN (tree EXP, rtx TARGET, rtx
  34743. SUBTARGET, machine_mode MODE, int IGNORE)
  34744. Expand a call to a machine specific built-in function that was set
  34745. up by 'TARGET_INIT_BUILTINS'. EXP is the expression for the
  34746. function call; the result should go to TARGET if that is
  34747. convenient, and have mode MODE if that is convenient. SUBTARGET
  34748. may be used as the target for computing one of EXP's operands.
  34749. IGNORE is nonzero if the value is to be ignored. This function
  34750. should return the result of the call to the built-in function.
  34751. -- Target Hook: tree TARGET_RESOLVE_OVERLOADED_BUILTIN (unsigned int
  34752. LOC, tree FNDECL, void *ARGLIST)
  34753. Select a replacement for a machine specific built-in function that
  34754. was set up by 'TARGET_INIT_BUILTINS'. This is done _before_
  34755. regular type checking, and so allows the target to implement a
  34756. crude form of function overloading. FNDECL is the declaration of
  34757. the built-in function. ARGLIST is the list of arguments passed to
  34758. the built-in function. The result is a complete expression that
  34759. implements the operation, usually another 'CALL_EXPR'. ARGLIST
  34760. really has type 'VEC(tree,gc)*'
  34761. -- Target Hook: bool TARGET_CHECK_BUILTIN_CALL (location_t LOC,
  34762. vec<location_t> ARG_LOC, tree FNDECL, tree ORIG_FNDECL,
  34763. unsigned int NARGS, tree *ARGS)
  34764. Perform semantic checking on a call to a machine-specific built-in
  34765. function after its arguments have been constrained to the function
  34766. signature. Return true if the call is valid, otherwise report an
  34767. error and return false.
  34768. This hook is called after 'TARGET_RESOLVE_OVERLOADED_BUILTIN'. The
  34769. call was originally to built-in function ORIG_FNDECL, but after the
  34770. optional 'TARGET_RESOLVE_OVERLOADED_BUILTIN' step is now to
  34771. built-in function FNDECL. LOC is the location of the call and ARGS
  34772. is an array of function arguments, of which there are NARGS.
  34773. ARG_LOC specifies the location of each argument.
  34774. -- Target Hook: tree TARGET_FOLD_BUILTIN (tree FNDECL, int N_ARGS, tree
  34775. *ARGP, bool IGNORE)
  34776. Fold a call to a machine specific built-in function that was set up
  34777. by 'TARGET_INIT_BUILTINS'. FNDECL is the declaration of the
  34778. built-in function. N_ARGS is the number of arguments passed to the
  34779. function; the arguments themselves are pointed to by ARGP. The
  34780. result is another tree, valid for both GIMPLE and GENERIC,
  34781. containing a simplified expression for the call's result. If
  34782. IGNORE is true the value will be ignored.
  34783. -- Target Hook: bool TARGET_GIMPLE_FOLD_BUILTIN (gimple_stmt_iterator
  34784. *GSI)
  34785. Fold a call to a machine specific built-in function that was set up
  34786. by 'TARGET_INIT_BUILTINS'. GSI points to the gimple statement
  34787. holding the function call. Returns true if any change was made to
  34788. the GIMPLE stream.
  34789. -- Target Hook: int TARGET_COMPARE_VERSION_PRIORITY (tree DECL1, tree
  34790. DECL2)
  34791. This hook is used to compare the target attributes in two functions
  34792. to determine which function's features get higher priority. This
  34793. is used during function multi-versioning to figure out the order in
  34794. which two versions must be dispatched. A function version with a
  34795. higher priority is checked for dispatching earlier. DECL1 and
  34796. DECL2 are the two function decls that will be compared.
  34797. -- Target Hook: tree TARGET_GET_FUNCTION_VERSIONS_DISPATCHER (void
  34798. *DECL)
  34799. This hook is used to get the dispatcher function for a set of
  34800. function versions. The dispatcher function is called to invoke the
  34801. right function version at run-time. DECL is one version from a set
  34802. of semantically identical versions.
  34803. -- Target Hook: tree TARGET_GENERATE_VERSION_DISPATCHER_BODY (void
  34804. *ARG)
  34805. This hook is used to generate the dispatcher logic to invoke the
  34806. right function version at run-time for a given set of function
  34807. versions. ARG points to the callgraph node of the dispatcher
  34808. function whose body must be generated.
  34809. -- Target Hook: bool TARGET_PREDICT_DOLOOP_P (class loop *LOOP)
  34810. Return true if we can predict it is possible to use a low-overhead
  34811. loop for a particular loop. The parameter LOOP is a pointer to the
  34812. loop. This target hook is required only when the target supports
  34813. low-overhead loops, and will help ivopts to make some decisions.
  34814. The default version of this hook returns false.
  34815. -- Target Hook: bool TARGET_HAVE_COUNT_REG_DECR_P
  34816. Return true if the target supports hardware count register for
  34817. decrement and branch. The default value is false.
  34818. -- Target Hook: int64_t TARGET_DOLOOP_COST_FOR_GENERIC
  34819. One IV candidate dedicated for doloop is introduced in IVOPTs, we
  34820. can calculate the computation cost of adopting it to any generic IV
  34821. use by function get_computation_cost as before. But for targets
  34822. which have hardware count register support for decrement and
  34823. branch, it may have to move IV value from hardware count register
  34824. to general purpose register while doloop IV candidate is used for
  34825. generic IV uses. It probably takes expensive penalty. This hook
  34826. allows target owners to define the cost for this especially for
  34827. generic IV uses. The default value is zero.
  34828. -- Target Hook: int64_t TARGET_DOLOOP_COST_FOR_ADDRESS
  34829. One IV candidate dedicated for doloop is introduced in IVOPTs, we
  34830. can calculate the computation cost of adopting it to any address IV
  34831. use by function get_computation_cost as before. But for targets
  34832. which have hardware count register support for decrement and
  34833. branch, it may have to move IV value from hardware count register
  34834. to general purpose register while doloop IV candidate is used for
  34835. address IV uses. It probably takes expensive penalty. This hook
  34836. allows target owners to define the cost for this escpecially for
  34837. address IV uses. The default value is zero.
  34838. -- Target Hook: bool TARGET_CAN_USE_DOLOOP_P (const widest_int
  34839. &ITERATIONS, const widest_int &ITERATIONS_MAX, unsigned int
  34840. LOOP_DEPTH, bool ENTERED_AT_TOP)
  34841. Return true if it is possible to use low-overhead loops
  34842. ('doloop_end' and 'doloop_begin') for a particular loop.
  34843. ITERATIONS gives the exact number of iterations, or 0 if not known.
  34844. ITERATIONS_MAX gives the maximum number of iterations, or 0 if not
  34845. known. LOOP_DEPTH is the nesting depth of the loop, with 1 for
  34846. innermost loops, 2 for loops that contain innermost loops, and so
  34847. on. ENTERED_AT_TOP is true if the loop is only entered from the
  34848. top.
  34849. This hook is only used if 'doloop_end' is available. The default
  34850. implementation returns true. You can use
  34851. 'can_use_doloop_if_innermost' if the loop must be the innermost,
  34852. and if there are no other restrictions.
  34853. -- Target Hook: const char * TARGET_INVALID_WITHIN_DOLOOP (const
  34854. rtx_insn *INSN)
  34855. Take an instruction in INSN and return NULL if it is valid within a
  34856. low-overhead loop, otherwise return a string explaining why doloop
  34857. could not be applied.
  34858. Many targets use special registers for low-overhead looping. For
  34859. any instruction that clobbers these this function should return a
  34860. string indicating the reason why the doloop could not be applied.
  34861. By default, the RTL loop optimizer does not use a present doloop
  34862. pattern for loops containing function calls or branch on table
  34863. instructions.
  34864. -- Target Hook: bool TARGET_LEGITIMATE_COMBINED_INSN (rtx_insn *INSN)
  34865. Take an instruction in INSN and return 'false' if the instruction
  34866. is not appropriate as a combination of two or more instructions.
  34867. The default is to accept all instructions.
  34868. -- Target Hook: bool TARGET_CAN_FOLLOW_JUMP (const rtx_insn *FOLLOWER,
  34869. const rtx_insn *FOLLOWEE)
  34870. FOLLOWER and FOLLOWEE are JUMP_INSN instructions; return true if
  34871. FOLLOWER may be modified to follow FOLLOWEE; false, if it can't.
  34872. For example, on some targets, certain kinds of branches can't be
  34873. made to follow through a hot/cold partitioning.
  34874. -- Target Hook: bool TARGET_COMMUTATIVE_P (const_rtx X, int OUTER_CODE)
  34875. This target hook returns 'true' if X is considered to be
  34876. commutative. Usually, this is just COMMUTATIVE_P (X), but the HP
  34877. PA doesn't consider PLUS to be commutative inside a MEM.
  34878. OUTER_CODE is the rtx code of the enclosing rtl, if known,
  34879. otherwise it is UNKNOWN.
  34880. -- Target Hook: rtx TARGET_ALLOCATE_INITIAL_VALUE (rtx HARD_REG)
  34881. When the initial value of a hard register has been copied in a
  34882. pseudo register, it is often not necessary to actually allocate
  34883. another register to this pseudo register, because the original hard
  34884. register or a stack slot it has been saved into can be used.
  34885. 'TARGET_ALLOCATE_INITIAL_VALUE' is called at the start of register
  34886. allocation once for each hard register that had its initial value
  34887. copied by using 'get_func_hard_reg_initial_val' or
  34888. 'get_hard_reg_initial_val'. Possible values are 'NULL_RTX', if you
  34889. don't want to do any special allocation, a 'REG' rtx--that would
  34890. typically be the hard register itself, if it is known not to be
  34891. clobbered--or a 'MEM'. If you are returning a 'MEM', this is only
  34892. a hint for the allocator; it might decide to use another register
  34893. anyways. You may use 'current_function_is_leaf' or 'REG_N_SETS' in
  34894. the hook to determine if the hard register in question will not be
  34895. clobbered. The default value of this hook is 'NULL', which
  34896. disables any special allocation.
  34897. -- Target Hook: int TARGET_UNSPEC_MAY_TRAP_P (const_rtx X, unsigned
  34898. FLAGS)
  34899. This target hook returns nonzero if X, an 'unspec' or
  34900. 'unspec_volatile' operation, might cause a trap. Targets can use
  34901. this hook to enhance precision of analysis for 'unspec' and
  34902. 'unspec_volatile' operations. You may call 'may_trap_p_1' to
  34903. analyze inner elements of X in which case FLAGS should be passed
  34904. along.
  34905. -- Target Hook: void TARGET_SET_CURRENT_FUNCTION (tree DECL)
  34906. The compiler invokes this hook whenever it changes its current
  34907. function context ('cfun'). You can define this function if the
  34908. back end needs to perform any initialization or reset actions on a
  34909. per-function basis. For example, it may be used to implement
  34910. function attributes that affect register usage or code generation
  34911. patterns. The argument DECL is the declaration for the new
  34912. function context, and may be null to indicate that the compiler has
  34913. left a function context and is returning to processing at the top
  34914. level. The default hook function does nothing.
  34915. GCC sets 'cfun' to a dummy function context during initialization
  34916. of some parts of the back end. The hook function is not invoked in
  34917. this situation; you need not worry about the hook being invoked
  34918. recursively, or when the back end is in a partially-initialized
  34919. state. 'cfun' might be 'NULL' to indicate processing at top level,
  34920. outside of any function scope.
  34921. -- Macro: TARGET_OBJECT_SUFFIX
  34922. Define this macro to be a C string representing the suffix for
  34923. object files on your target machine. If you do not define this
  34924. macro, GCC will use '.o' as the suffix for object files.
  34925. -- Macro: TARGET_EXECUTABLE_SUFFIX
  34926. Define this macro to be a C string representing the suffix to be
  34927. automatically added to executable files on your target machine. If
  34928. you do not define this macro, GCC will use the null string as the
  34929. suffix for executable files.
  34930. -- Macro: COLLECT_EXPORT_LIST
  34931. If defined, 'collect2' will scan the individual object files
  34932. specified on its command line and create an export list for the
  34933. linker. Define this macro for systems like AIX, where the linker
  34934. discards object files that are not referenced from 'main' and uses
  34935. export lists.
  34936. -- Target Hook: bool TARGET_CANNOT_MODIFY_JUMPS_P (void)
  34937. This target hook returns 'true' past the point in which new jump
  34938. instructions could be created. On machines that require a register
  34939. for every jump such as the SHmedia ISA of SH5, this point would
  34940. typically be reload, so this target hook should be defined to a
  34941. function such as:
  34942. static bool
  34943. cannot_modify_jumps_past_reload_p ()
  34944. {
  34945. return (reload_completed || reload_in_progress);
  34946. }
  34947. -- Target Hook: bool TARGET_HAVE_CONDITIONAL_EXECUTION (void)
  34948. This target hook returns true if the target supports conditional
  34949. execution. This target hook is required only when the target has
  34950. several different modes and they have different conditional
  34951. execution capability, such as ARM.
  34952. -- Target Hook: rtx TARGET_GEN_CCMP_FIRST (rtx_insn **PREP_SEQ,
  34953. rtx_insn **GEN_SEQ, int CODE, tree OP0, tree OP1)
  34954. This function prepares to emit a comparison insn for the first
  34955. compare in a sequence of conditional comparisions. It returns an
  34956. appropriate comparison with 'CC' for passing to 'gen_ccmp_next' or
  34957. 'cbranch_optab'. The insns to prepare the compare are saved in
  34958. PREP_SEQ and the compare insns are saved in GEN_SEQ. They will be
  34959. emitted when all the compares in the conditional comparision are
  34960. generated without error. CODE is the 'rtx_code' of the compare for
  34961. OP0 and OP1.
  34962. -- Target Hook: rtx TARGET_GEN_CCMP_NEXT (rtx_insn **PREP_SEQ, rtx_insn
  34963. **GEN_SEQ, rtx PREV, int CMP_CODE, tree OP0, tree OP1, int
  34964. BIT_CODE)
  34965. This function prepares to emit a conditional comparison within a
  34966. sequence of conditional comparisons. It returns an appropriate
  34967. comparison with 'CC' for passing to 'gen_ccmp_next' or
  34968. 'cbranch_optab'. The insns to prepare the compare are saved in
  34969. PREP_SEQ and the compare insns are saved in GEN_SEQ. They will be
  34970. emitted when all the compares in the conditional comparision are
  34971. generated without error. The PREV expression is the result of a
  34972. prior call to 'gen_ccmp_first' or 'gen_ccmp_next'. It may return
  34973. 'NULL' if the combination of PREV and this comparison is not
  34974. supported, otherwise the result must be appropriate for passing to
  34975. 'gen_ccmp_next' or 'cbranch_optab'. CODE is the 'rtx_code' of the
  34976. compare for OP0 and OP1. BIT_CODE is 'AND' or 'IOR', which is the
  34977. op on the compares.
  34978. -- Target Hook: unsigned TARGET_LOOP_UNROLL_ADJUST (unsigned NUNROLL,
  34979. class loop *LOOP)
  34980. This target hook returns a new value for the number of times LOOP
  34981. should be unrolled. The parameter NUNROLL is the number of times
  34982. the loop is to be unrolled. The parameter LOOP is a pointer to the
  34983. loop, which is going to be checked for unrolling. This target hook
  34984. is required only when the target has special constraints like
  34985. maximum number of memory accesses.
  34986. -- Macro: POWI_MAX_MULTS
  34987. If defined, this macro is interpreted as a signed integer C
  34988. expression that specifies the maximum number of floating point
  34989. multiplications that should be emitted when expanding
  34990. exponentiation by an integer constant inline. When this value is
  34991. defined, exponentiation requiring more than this number of
  34992. multiplications is implemented by calling the system library's
  34993. 'pow', 'powf' or 'powl' routines. The default value places no
  34994. upper bound on the multiplication count.
  34995. -- Macro: void TARGET_EXTRA_INCLUDES (const char *SYSROOT, const char
  34996. *IPREFIX, int STDINC)
  34997. This target hook should register any extra include files for the
  34998. target. The parameter STDINC indicates if normal include files are
  34999. present. The parameter SYSROOT is the system root directory. The
  35000. parameter IPREFIX is the prefix for the gcc directory.
  35001. -- Macro: void TARGET_EXTRA_PRE_INCLUDES (const char *SYSROOT, const
  35002. char *IPREFIX, int STDINC)
  35003. This target hook should register any extra include files for the
  35004. target before any standard headers. The parameter STDINC indicates
  35005. if normal include files are present. The parameter SYSROOT is the
  35006. system root directory. The parameter IPREFIX is the prefix for the
  35007. gcc directory.
  35008. -- Macro: void TARGET_OPTF (char *PATH)
  35009. This target hook should register special include paths for the
  35010. target. The parameter PATH is the include to register. On Darwin
  35011. systems, this is used for Framework includes, which have semantics
  35012. that are different from '-I'.
  35013. -- Macro: bool TARGET_USE_LOCAL_THUNK_ALIAS_P (tree FNDECL)
  35014. This target macro returns 'true' if it is safe to use a local alias
  35015. for a virtual function FNDECL when constructing thunks, 'false'
  35016. otherwise. By default, the macro returns 'true' for all functions,
  35017. if a target supports aliases (i.e. defines 'ASM_OUTPUT_DEF'),
  35018. 'false' otherwise,
  35019. -- Macro: TARGET_FORMAT_TYPES
  35020. If defined, this macro is the name of a global variable containing
  35021. target-specific format checking information for the '-Wformat'
  35022. option. The default is to have no target-specific format checks.
  35023. -- Macro: TARGET_N_FORMAT_TYPES
  35024. If defined, this macro is the number of entries in
  35025. 'TARGET_FORMAT_TYPES'.
  35026. -- Macro: TARGET_OVERRIDES_FORMAT_ATTRIBUTES
  35027. If defined, this macro is the name of a global variable containing
  35028. target-specific format overrides for the '-Wformat' option. The
  35029. default is to have no target-specific format overrides. If
  35030. defined, 'TARGET_FORMAT_TYPES' must be defined, too.
  35031. -- Macro: TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT
  35032. If defined, this macro specifies the number of entries in
  35033. 'TARGET_OVERRIDES_FORMAT_ATTRIBUTES'.
  35034. -- Macro: TARGET_OVERRIDES_FORMAT_INIT
  35035. If defined, this macro specifies the optional initialization
  35036. routine for target specific customizations of the system printf and
  35037. scanf formatter settings.
  35038. -- Target Hook: const char * TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
  35039. (const_tree TYPELIST, const_tree FUNCDECL, const_tree VAL)
  35040. If defined, this macro returns the diagnostic message when it is
  35041. illegal to pass argument VAL to function FUNCDECL with prototype
  35042. TYPELIST.
  35043. -- Target Hook: const char * TARGET_INVALID_CONVERSION (const_tree
  35044. FROMTYPE, const_tree TOTYPE)
  35045. If defined, this macro returns the diagnostic message when it is
  35046. invalid to convert from FROMTYPE to TOTYPE, or 'NULL' if validity
  35047. should be determined by the front end.
  35048. -- Target Hook: const char * TARGET_INVALID_UNARY_OP (int OP,
  35049. const_tree TYPE)
  35050. If defined, this macro returns the diagnostic message when it is
  35051. invalid to apply operation OP (where unary plus is denoted by
  35052. 'CONVERT_EXPR') to an operand of type TYPE, or 'NULL' if validity
  35053. should be determined by the front end.
  35054. -- Target Hook: const char * TARGET_INVALID_BINARY_OP (int OP,
  35055. const_tree TYPE1, const_tree TYPE2)
  35056. If defined, this macro returns the diagnostic message when it is
  35057. invalid to apply operation OP to operands of types TYPE1 and TYPE2,
  35058. or 'NULL' if validity should be determined by the front end.
  35059. -- Target Hook: tree TARGET_PROMOTED_TYPE (const_tree TYPE)
  35060. If defined, this target hook returns the type to which values of
  35061. TYPE should be promoted when they appear in expressions, analogous
  35062. to the integer promotions, or 'NULL_TREE' to use the front end's
  35063. normal promotion rules. This hook is useful when there are
  35064. target-specific types with special promotion rules. This is
  35065. currently used only by the C and C++ front ends.
  35066. -- Target Hook: tree TARGET_CONVERT_TO_TYPE (tree TYPE, tree EXPR)
  35067. If defined, this hook returns the result of converting EXPR to
  35068. TYPE. It should return the converted expression, or 'NULL_TREE' to
  35069. apply the front end's normal conversion rules. This hook is useful
  35070. when there are target-specific types with special conversion rules.
  35071. This is currently used only by the C and C++ front ends.
  35072. -- Target Hook: bool TARGET_VERIFY_TYPE_CONTEXT (location_t LOC,
  35073. type_context_kind CONTEXT, const_tree TYPE, bool SILENT_P)
  35074. If defined, this hook returns false if there is a target-specific
  35075. reason why type TYPE cannot be used in the source language context
  35076. described by CONTEXT. When SILENT_P is false, the hook also
  35077. reports an error against LOC for invalid uses of TYPE.
  35078. Calls to this hook should be made through the global function
  35079. 'verify_type_context', which makes the SILENT_P parameter default
  35080. to false and also handles 'error_mark_node'.
  35081. The default implementation always returns true.
  35082. -- Macro: OBJC_JBLEN
  35083. This macro determines the size of the objective C jump buffer for
  35084. the NeXT runtime. By default, OBJC_JBLEN is defined to an
  35085. innocuous value.
  35086. -- Macro: LIBGCC2_UNWIND_ATTRIBUTE
  35087. Define this macro if any target-specific attributes need to be
  35088. attached to the functions in 'libgcc' that provide low-level
  35089. support for call stack unwinding. It is used in declarations in
  35090. 'unwind-generic.h' and the associated definitions of those
  35091. functions.
  35092. -- Target Hook: void TARGET_UPDATE_STACK_BOUNDARY (void)
  35093. Define this macro to update the current function stack boundary if
  35094. necessary.
  35095. -- Target Hook: rtx TARGET_GET_DRAP_RTX (void)
  35096. This hook should return an rtx for Dynamic Realign Argument Pointer
  35097. (DRAP) if a different argument pointer register is needed to access
  35098. the function's argument list due to stack realignment. Return
  35099. 'NULL' if no DRAP is needed.
  35100. -- Target Hook: HARD_REG_SET TARGET_ZERO_CALL_USED_REGS (HARD_REG_SET
  35101. SELECTED_REGS)
  35102. This target hook emits instructions to zero the subset of
  35103. SELECTED_REGS that could conceivably contain values that are useful
  35104. to an attacker. Return the set of registers that were actually
  35105. cleared.
  35106. The default implementation uses normal move instructions to zero
  35107. all the registers in SELECTED_REGS. Define this hook if the target
  35108. has more efficient ways of zeroing certain registers, or if you
  35109. believe that certain registers would never contain values that are
  35110. useful to an attacker.
  35111. -- Target Hook: bool TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS (void)
  35112. When optimization is disabled, this hook indicates whether or not
  35113. arguments should be allocated to stack slots. Normally, GCC
  35114. allocates stacks slots for arguments when not optimizing in order
  35115. to make debugging easier. However, when a function is declared
  35116. with '__attribute__((naked))', there is no stack frame, and the
  35117. compiler cannot safely move arguments from the registers in which
  35118. they are passed to the stack. Therefore, this hook should return
  35119. true in general, but false for naked functions. The default
  35120. implementation always returns true.
  35121. -- Target Hook: unsigned HOST_WIDE_INT TARGET_CONST_ANCHOR
  35122. On some architectures it can take multiple instructions to
  35123. synthesize a constant. If there is another constant already in a
  35124. register that is close enough in value then it is preferable that
  35125. the new constant is computed from this register using immediate
  35126. addition or subtraction. We accomplish this through CSE. Besides
  35127. the value of the constant we also add a lower and an upper constant
  35128. anchor to the available expressions. These are then queried when
  35129. encountering new constants. The anchors are computed by rounding
  35130. the constant up and down to a multiple of the value of
  35131. 'TARGET_CONST_ANCHOR'. 'TARGET_CONST_ANCHOR' should be the maximum
  35132. positive value accepted by immediate-add plus one. We currently
  35133. assume that the value of 'TARGET_CONST_ANCHOR' is a power of 2.
  35134. For example, on MIPS, where add-immediate takes a 16-bit signed
  35135. value, 'TARGET_CONST_ANCHOR' is set to '0x8000'. The default value
  35136. is zero, which disables this optimization.
  35137. -- Target Hook: unsigned HOST_WIDE_INT TARGET_ASAN_SHADOW_OFFSET (void)
  35138. Return the offset bitwise ored into shifted address to get
  35139. corresponding Address Sanitizer shadow memory address. NULL if
  35140. Address Sanitizer is not supported by the target. May return 0 if
  35141. Address Sanitizer is not supported by a subtarget.
  35142. -- Target Hook: unsigned HOST_WIDE_INT TARGET_MEMMODEL_CHECK (unsigned
  35143. HOST_WIDE_INT VAL)
  35144. Validate target specific memory model mask bits. When NULL no
  35145. target specific memory model bits are allowed.
  35146. -- Target Hook: unsigned char TARGET_ATOMIC_TEST_AND_SET_TRUEVAL
  35147. This value should be set if the result written by
  35148. 'atomic_test_and_set' is not exactly 1, i.e. the 'bool' 'true'.
  35149. -- Target Hook: bool TARGET_HAS_IFUNC_P (void)
  35150. It returns true if the target supports GNU indirect functions. The
  35151. support includes the assembler, linker and dynamic linker. The
  35152. default value of this hook is based on target's libc.
  35153. -- Target Hook: unsigned int TARGET_ATOMIC_ALIGN_FOR_MODE (machine_mode
  35154. MODE)
  35155. If defined, this function returns an appropriate alignment in bits
  35156. for an atomic object of machine_mode MODE. If 0 is returned then
  35157. the default alignment for the specified mode is used.
  35158. -- Target Hook: void TARGET_ATOMIC_ASSIGN_EXPAND_FENV (tree *HOLD, tree
  35159. *CLEAR, tree *UPDATE)
  35160. ISO C11 requires atomic compound assignments that may raise
  35161. floating-point exceptions to raise exceptions corresponding to the
  35162. arithmetic operation whose result was successfully stored in a
  35163. compare-and-exchange sequence. This requires code equivalent to
  35164. calls to 'feholdexcept', 'feclearexcept' and 'feupdateenv' to be
  35165. generated at appropriate points in the compare-and-exchange
  35166. sequence. This hook should set '*HOLD' to an expression equivalent
  35167. to the call to 'feholdexcept', '*CLEAR' to an expression equivalent
  35168. to the call to 'feclearexcept' and '*UPDATE' to an expression
  35169. equivalent to the call to 'feupdateenv'. The three expressions are
  35170. 'NULL_TREE' on entry to the hook and may be left as 'NULL_TREE' if
  35171. no code is required in a particular place. The default
  35172. implementation leaves all three expressions as 'NULL_TREE'. The
  35173. '__atomic_feraiseexcept' function from 'libatomic' may be of use as
  35174. part of the code generated in '*UPDATE'.
  35175. -- Target Hook: void TARGET_RECORD_OFFLOAD_SYMBOL (tree)
  35176. Used when offloaded functions are seen in the compilation unit and
  35177. no named sections are available. It is called once for each symbol
  35178. that must be recorded in the offload function and variable table.
  35179. -- Target Hook: char * TARGET_OFFLOAD_OPTIONS (void)
  35180. Used when writing out the list of options into an LTO file. It
  35181. should translate any relevant target-specific options (such as the
  35182. ABI in use) into one of the '-foffload' options that exist as a
  35183. common interface to express such options. It should return a
  35184. string containing these options, separated by spaces, which the
  35185. caller will free.
  35186. -- Macro: TARGET_SUPPORTS_WIDE_INT
  35187. On older ports, large integers are stored in 'CONST_DOUBLE' rtl
  35188. objects. Newer ports define 'TARGET_SUPPORTS_WIDE_INT' to be
  35189. nonzero to indicate that large integers are stored in
  35190. 'CONST_WIDE_INT' rtl objects. The 'CONST_WIDE_INT' allows very
  35191. large integer constants to be represented. 'CONST_DOUBLE' is
  35192. limited to twice the size of the host's 'HOST_WIDE_INT'
  35193. representation.
  35194. Converting a port mostly requires looking for the places where
  35195. 'CONST_DOUBLE's are used with 'VOIDmode' and replacing that code
  35196. with code that accesses 'CONST_WIDE_INT's. '"grep -i
  35197. const_double"' at the port level gets you to 95% of the changes
  35198. that need to be made. There are a few places that require a deeper
  35199. look.
  35200. * There is no equivalent to 'hval' and 'lval' for
  35201. 'CONST_WIDE_INT's. This would be difficult to express in the
  35202. md language since there are a variable number of elements.
  35203. Most ports only check that 'hval' is either 0 or -1 to see if
  35204. the value is small. As mentioned above, this will no longer
  35205. be necessary since small constants are always 'CONST_INT'. Of
  35206. course there are still a few exceptions, the alpha's
  35207. constraint used by the zap instruction certainly requires
  35208. careful examination by C code. However, all the current code
  35209. does is pass the hval and lval to C code, so evolving the c
  35210. code to look at the 'CONST_WIDE_INT' is not really a large
  35211. change.
  35212. * Because there is no standard template that ports use to
  35213. materialize constants, there is likely to be some futzing that
  35214. is unique to each port in this code.
  35215. * The rtx costs may have to be adjusted to properly account for
  35216. larger constants that are represented as 'CONST_WIDE_INT'.
  35217. All and all it does not take long to convert ports that the
  35218. maintainer is familiar with.
  35219. -- Target Hook: bool TARGET_HAVE_SPECULATION_SAFE_VALUE (bool ACTIVE)
  35220. This hook is used to determine the level of target support for
  35221. '__builtin_speculation_safe_value'. If called with an argument of
  35222. false, it returns true if the target has been modified to support
  35223. this builtin. If called with an argument of true, it returns true
  35224. if the target requires active mitigation execution might be
  35225. speculative.
  35226. The default implementation returns false if the target does not
  35227. define a pattern named 'speculation_barrier'. Else it returns true
  35228. for the first case and whether the pattern is enabled for the
  35229. current compilation for the second case.
  35230. For targets that have no processors that can execute instructions
  35231. speculatively an alternative implemenation of this hook is
  35232. available: simply redefine this hook to
  35233. 'speculation_safe_value_not_needed' along with your other target
  35234. hooks.
  35235. -- Target Hook: rtx TARGET_SPECULATION_SAFE_VALUE (machine_mode MODE,
  35236. rtx RESULT, rtx VAL, rtx FAILVAL)
  35237. This target hook can be used to generate a target-specific code
  35238. sequence that implements the '__builtin_speculation_safe_value'
  35239. built-in function. The function must always return VAL in RESULT
  35240. in mode MODE when the cpu is not executing speculatively, but must
  35241. never return that when speculating until it is known that the
  35242. speculation will not be unwound. The hook supports two primary
  35243. mechanisms for implementing the requirements. The first is to emit
  35244. a speculation barrier which forces the processor to wait until all
  35245. prior speculative operations have been resolved; the second is to
  35246. use a target-specific mechanism that can track the speculation
  35247. state and to return FAILVAL if it can determine that speculation
  35248. must be unwound at a later time.
  35249. The default implementation simply copies VAL to RESULT and emits a
  35250. 'speculation_barrier' instruction if that is defined.
  35251. -- Target Hook: void TARGET_RUN_TARGET_SELFTESTS (void)
  35252. If selftests are enabled, run any selftests for this target.
  35253. -- Target Hook: bool TARGET_MEMTAG_CAN_TAG_ADDRESSES ()
  35254. True if the backend architecture naturally supports ignoring some
  35255. region of pointers. This feature means that '-fsanitize=hwaddress'
  35256. can work.
  35257. At preset, this feature does not support address spaces. It also
  35258. requires 'Pmode' to be the same as 'ptr_mode'.
  35259. -- Target Hook: uint8_t TARGET_MEMTAG_TAG_SIZE ()
  35260. Return the size of a tag (in bits) for this platform.
  35261. The default returns 8.
  35262. -- Target Hook: uint8_t TARGET_MEMTAG_GRANULE_SIZE ()
  35263. Return the size in real memory that each byte in shadow memory
  35264. refers to. I.e. if a variable is X bytes long in memory, then
  35265. this hook should return the value Y such that the tag in shadow
  35266. memory spans X/Y bytes.
  35267. Most variables will need to be aligned to this amount since two
  35268. variables that are neighbors in memory and share a tag granule
  35269. would need to share the same tag.
  35270. The default returns 16.
  35271. -- Target Hook: rtx TARGET_MEMTAG_INSERT_RANDOM_TAG (rtx UNTAGGED, rtx
  35272. TARGET)
  35273. Return an RTX representing the value of UNTAGGED but with a
  35274. (possibly) random tag in it. Put that value into TARGET if it is
  35275. convenient to do so. This function is used to generate a tagged
  35276. base for the current stack frame.
  35277. -- Target Hook: rtx TARGET_MEMTAG_ADD_TAG (rtx BASE, poly_int64
  35278. ADDR_OFFSET, uint8_t TAG_OFFSET)
  35279. Return an RTX that represents the result of adding ADDR_OFFSET to
  35280. the address in pointer BASE and TAG_OFFSET to the tag in pointer
  35281. BASE. The resulting RTX must either be a valid memory address or
  35282. be able to get put into an operand with 'force_operand'.
  35283. Unlike other memtag hooks, this must return an expression and not
  35284. emit any RTL.
  35285. -- Target Hook: rtx TARGET_MEMTAG_SET_TAG (rtx UNTAGGED_BASE, rtx TAG,
  35286. rtx TARGET)
  35287. Return an RTX representing UNTAGGED_BASE but with the tag TAG. Try
  35288. and store this in TARGET if convenient. UNTAGGED_BASE is required
  35289. to have a zero tag when this hook is called. The default of this
  35290. hook is to set the top byte of UNTAGGED_BASE to TAG.
  35291. -- Target Hook: rtx TARGET_MEMTAG_EXTRACT_TAG (rtx TAGGED_POINTER, rtx
  35292. TARGET)
  35293. Return an RTX representing the tag stored in TAGGED_POINTER. Store
  35294. the result in TARGET if it is convenient. The default represents
  35295. the top byte of the original pointer.
  35296. -- Target Hook: rtx TARGET_MEMTAG_UNTAGGED_POINTER (rtx TAGGED_POINTER,
  35297. rtx TARGET)
  35298. Return an RTX representing TAGGED_POINTER with its tag set to zero.
  35299. Store the result in TARGET if convenient. The default clears the
  35300. top byte of the original pointer.
  35301. 
  35302. File: gccint.info, Node: Host Config, Next: Fragments, Prev: Target Macros, Up: Top
  35303. 19 Host Configuration
  35304. *********************
  35305. Most details about the machine and system on which the compiler is
  35306. actually running are detected by the 'configure' script. Some things
  35307. are impossible for 'configure' to detect; these are described in two
  35308. ways, either by macros defined in a file named 'xm-MACHINE.h' or by hook
  35309. functions in the file specified by the OUT_HOST_HOOK_OBJ variable in
  35310. 'config.gcc'. (The intention is that very few hosts will need a header
  35311. file but nearly every fully supported host will need to override some
  35312. hooks.)
  35313. If you need to define only a few macros, and they have simple
  35314. definitions, consider using the 'xm_defines' variable in your
  35315. 'config.gcc' entry instead of creating a host configuration header.
  35316. *Note System Config::.
  35317. * Menu:
  35318. * Host Common:: Things every host probably needs implemented.
  35319. * Filesystem:: Your host cannot have the letter 'a' in filenames?
  35320. * Host Misc:: Rare configuration options for hosts.
  35321. 
  35322. File: gccint.info, Node: Host Common, Next: Filesystem, Up: Host Config
  35323. 19.1 Host Common
  35324. ================
  35325. Some things are just not portable, even between similar operating
  35326. systems, and are too difficult for autoconf to detect. They get
  35327. implemented using hook functions in the file specified by the
  35328. HOST_HOOK_OBJ variable in 'config.gcc'.
  35329. -- Host Hook: void HOST_HOOKS_EXTRA_SIGNALS (void)
  35330. This host hook is used to set up handling for extra signals. The
  35331. most common thing to do in this hook is to detect stack overflow.
  35332. -- Host Hook: void * HOST_HOOKS_GT_PCH_GET_ADDRESS (size_t SIZE, int
  35333. FD)
  35334. This host hook returns the address of some space that is likely to
  35335. be free in some subsequent invocation of the compiler. We intend
  35336. to load the PCH data at this address such that the data need not be
  35337. relocated. The area should be able to hold SIZE bytes. If the
  35338. host uses 'mmap', FD is an open file descriptor that can be used
  35339. for probing.
  35340. -- Host Hook: int HOST_HOOKS_GT_PCH_USE_ADDRESS (void * ADDRESS, size_t
  35341. SIZE, int FD, size_t OFFSET)
  35342. This host hook is called when a PCH file is about to be loaded. We
  35343. want to load SIZE bytes from FD at OFFSET into memory at ADDRESS.
  35344. The given address will be the result of a previous invocation of
  35345. 'HOST_HOOKS_GT_PCH_GET_ADDRESS'. Return -1 if we couldn't allocate
  35346. SIZE bytes at ADDRESS. Return 0 if the memory is allocated but the
  35347. data is not loaded. Return 1 if the hook has performed everything.
  35348. If the implementation uses reserved address space, free any
  35349. reserved space beyond SIZE, regardless of the return value. If no
  35350. PCH will be loaded, this hook may be called with SIZE zero, in
  35351. which case all reserved address space should be freed.
  35352. Do not try to handle values of ADDRESS that could not have been
  35353. returned by this executable; just return -1. Such values usually
  35354. indicate an out-of-date PCH file (built by some other GCC
  35355. executable), and such a PCH file won't work.
  35356. -- Host Hook: size_t HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY (void);
  35357. This host hook returns the alignment required for allocating
  35358. virtual memory. Usually this is the same as getpagesize, but on
  35359. some hosts the alignment for reserving memory differs from the
  35360. pagesize for committing memory.
  35361. 
  35362. File: gccint.info, Node: Filesystem, Next: Host Misc, Prev: Host Common, Up: Host Config
  35363. 19.2 Host Filesystem
  35364. ====================
  35365. GCC needs to know a number of things about the semantics of the host
  35366. machine's filesystem. Filesystems with Unix and MS-DOS semantics are
  35367. automatically detected. For other systems, you can define the following
  35368. macros in 'xm-MACHINE.h'.
  35369. 'HAVE_DOS_BASED_FILE_SYSTEM'
  35370. This macro is automatically defined by 'system.h' if the host file
  35371. system obeys the semantics defined by MS-DOS instead of Unix. DOS
  35372. file systems are case insensitive, file specifications may begin
  35373. with a drive letter, and both forward slash and backslash ('/' and
  35374. '\') are directory separators.
  35375. 'DIR_SEPARATOR'
  35376. 'DIR_SEPARATOR_2'
  35377. If defined, these macros expand to character constants specifying
  35378. separators for directory names within a file specification.
  35379. 'system.h' will automatically give them appropriate values on Unix
  35380. and MS-DOS file systems. If your file system is neither of these,
  35381. define one or both appropriately in 'xm-MACHINE.h'.
  35382. However, operating systems like VMS, where constructing a pathname
  35383. is more complicated than just stringing together directory names
  35384. separated by a special character, should not define either of these
  35385. macros.
  35386. 'PATH_SEPARATOR'
  35387. If defined, this macro should expand to a character constant
  35388. specifying the separator for elements of search paths. The default
  35389. value is a colon (':'). DOS-based systems usually, but not always,
  35390. use semicolon (';').
  35391. 'VMS'
  35392. Define this macro if the host system is VMS.
  35393. 'HOST_OBJECT_SUFFIX'
  35394. Define this macro to be a C string representing the suffix for
  35395. object files on your host machine. If you do not define this
  35396. macro, GCC will use '.o' as the suffix for object files.
  35397. 'HOST_EXECUTABLE_SUFFIX'
  35398. Define this macro to be a C string representing the suffix for
  35399. executable files on your host machine. If you do not define this
  35400. macro, GCC will use the null string as the suffix for executable
  35401. files.
  35402. 'HOST_BIT_BUCKET'
  35403. A pathname defined by the host operating system, which can be
  35404. opened as a file and written to, but all the information written is
  35405. discarded. This is commonly known as a "bit bucket" or "null
  35406. device". If you do not define this macro, GCC will use '/dev/null'
  35407. as the bit bucket. If the host does not support a bit bucket,
  35408. define this macro to an invalid filename.
  35409. 'UPDATE_PATH_HOST_CANONICALIZE (PATH)'
  35410. If defined, a C statement (sans semicolon) that performs
  35411. host-dependent canonicalization when a path used in a compilation
  35412. driver or preprocessor is canonicalized. PATH is a malloc-ed path
  35413. to be canonicalized. If the C statement does canonicalize PATH
  35414. into a different buffer, the old path should be freed and the new
  35415. buffer should have been allocated with malloc.
  35416. 'DUMPFILE_FORMAT'
  35417. Define this macro to be a C string representing the format to use
  35418. for constructing the index part of debugging dump file names. The
  35419. resultant string must fit in fifteen bytes. The full filename will
  35420. be the concatenation of: the prefix of the assembler file name, the
  35421. string resulting from applying this format to an index number, and
  35422. a string unique to each dump file kind, e.g. 'rtl'.
  35423. If you do not define this macro, GCC will use '.%02d.'. You should
  35424. define this macro if using the default will create an invalid file
  35425. name.
  35426. 'DELETE_IF_ORDINARY'
  35427. Define this macro to be a C statement (sans semicolon) that
  35428. performs host-dependent removal of ordinary temp files in the
  35429. compilation driver.
  35430. If you do not define this macro, GCC will use the default version.
  35431. You should define this macro if the default version does not
  35432. reliably remove the temp file as, for example, on VMS which allows
  35433. multiple versions of a file.
  35434. 'HOST_LACKS_INODE_NUMBERS'
  35435. Define this macro if the host filesystem does not report meaningful
  35436. inode numbers in struct stat.
  35437. 
  35438. File: gccint.info, Node: Host Misc, Prev: Filesystem, Up: Host Config
  35439. 19.3 Host Misc
  35440. ==============
  35441. 'FATAL_EXIT_CODE'
  35442. A C expression for the status code to be returned when the compiler
  35443. exits after serious errors. The default is the system-provided
  35444. macro 'EXIT_FAILURE', or '1' if the system doesn't define that
  35445. macro. Define this macro only if these defaults are incorrect.
  35446. 'SUCCESS_EXIT_CODE'
  35447. A C expression for the status code to be returned when the compiler
  35448. exits without serious errors. (Warnings are not serious errors.)
  35449. The default is the system-provided macro 'EXIT_SUCCESS', or '0' if
  35450. the system doesn't define that macro. Define this macro only if
  35451. these defaults are incorrect.
  35452. 'USE_C_ALLOCA'
  35453. Define this macro if GCC should use the C implementation of
  35454. 'alloca' provided by 'libiberty.a'. This only affects how some
  35455. parts of the compiler itself allocate memory. It does not change
  35456. code generation.
  35457. When GCC is built with a compiler other than itself, the C 'alloca'
  35458. is always used. This is because most other implementations have
  35459. serious bugs. You should define this macro only on a system where
  35460. no stack-based 'alloca' can possibly work. For instance, if a
  35461. system has a small limit on the size of the stack, GCC's builtin
  35462. 'alloca' will not work reliably.
  35463. 'COLLECT2_HOST_INITIALIZATION'
  35464. If defined, a C statement (sans semicolon) that performs
  35465. host-dependent initialization when 'collect2' is being initialized.
  35466. 'GCC_DRIVER_HOST_INITIALIZATION'
  35467. If defined, a C statement (sans semicolon) that performs
  35468. host-dependent initialization when a compilation driver is being
  35469. initialized.
  35470. 'HOST_LONG_LONG_FORMAT'
  35471. If defined, the string used to indicate an argument of type 'long
  35472. long' to functions like 'printf'. The default value is '"ll"'.
  35473. 'HOST_LONG_FORMAT'
  35474. If defined, the string used to indicate an argument of type 'long'
  35475. to functions like 'printf'. The default value is '"l"'.
  35476. 'HOST_PTR_PRINTF'
  35477. If defined, the string used to indicate an argument of type 'void
  35478. *' to functions like 'printf'. The default value is '"%p"'.
  35479. In addition, if 'configure' generates an incorrect definition of any of
  35480. the macros in 'auto-host.h', you can override that definition in a host
  35481. configuration header. If you need to do this, first see if it is
  35482. possible to fix 'configure'.
  35483. 
  35484. File: gccint.info, Node: Fragments, Next: Collect2, Prev: Host Config, Up: Top
  35485. 20 Makefile Fragments
  35486. *********************
  35487. When you configure GCC using the 'configure' script, it will construct
  35488. the file 'Makefile' from the template file 'Makefile.in'. When it does
  35489. this, it can incorporate makefile fragments from the 'config' directory.
  35490. These are used to set Makefile parameters that are not amenable to being
  35491. calculated by autoconf. The list of fragments to incorporate is set by
  35492. 'config.gcc' (and occasionally 'config.build' and 'config.host'); *Note
  35493. System Config::.
  35494. Fragments are named either 't-TARGET' or 'x-HOST', depending on whether
  35495. they are relevant to configuring GCC to produce code for a particular
  35496. target, or to configuring GCC to run on a particular host. Here TARGET
  35497. and HOST are mnemonics which usually have some relationship to the
  35498. canonical system name, but no formal connection.
  35499. If these files do not exist, it means nothing needs to be added for a
  35500. given target or host. Most targets need a few 't-TARGET' fragments, but
  35501. needing 'x-HOST' fragments is rare.
  35502. * Menu:
  35503. * Target Fragment:: Writing 't-TARGET' files.
  35504. * Host Fragment:: Writing 'x-HOST' files.
  35505. 
  35506. File: gccint.info, Node: Target Fragment, Next: Host Fragment, Up: Fragments
  35507. 20.1 Target Makefile Fragments
  35508. ==============================
  35509. Target makefile fragments can set these Makefile variables.
  35510. 'LIBGCC2_CFLAGS'
  35511. Compiler flags to use when compiling 'libgcc2.c'.
  35512. 'LIB2FUNCS_EXTRA'
  35513. A list of source file names to be compiled or assembled and
  35514. inserted into 'libgcc.a'.
  35515. 'CRTSTUFF_T_CFLAGS'
  35516. Special flags used when compiling 'crtstuff.c'. *Note
  35517. Initialization::.
  35518. 'CRTSTUFF_T_CFLAGS_S'
  35519. Special flags used when compiling 'crtstuff.c' for shared linking.
  35520. Used if you use 'crtbeginS.o' and 'crtendS.o' in 'EXTRA-PARTS'.
  35521. *Note Initialization::.
  35522. 'MULTILIB_OPTIONS'
  35523. For some targets, invoking GCC in different ways produces objects
  35524. that cannot be linked together. For example, for some targets GCC
  35525. produces both big and little endian code. For these targets, you
  35526. must arrange for multiple versions of 'libgcc.a' to be compiled,
  35527. one for each set of incompatible options. When GCC invokes the
  35528. linker, it arranges to link in the right version of 'libgcc.a',
  35529. based on the command line options used.
  35530. The 'MULTILIB_OPTIONS' macro lists the set of options for which
  35531. special versions of 'libgcc.a' must be built. Write options that
  35532. are mutually incompatible side by side, separated by a slash.
  35533. Write options that may be used together separated by a space. The
  35534. build procedure will build all combinations of compatible options.
  35535. For example, if you set 'MULTILIB_OPTIONS' to 'm68000/m68020
  35536. msoft-float', 'Makefile' will build special versions of 'libgcc.a'
  35537. using the following sets of options: '-m68000', '-m68020',
  35538. '-msoft-float', '-m68000 -msoft-float', and '-m68020 -msoft-float'.
  35539. 'MULTILIB_DIRNAMES'
  35540. If 'MULTILIB_OPTIONS' is used, this variable specifies the
  35541. directory names that should be used to hold the various libraries.
  35542. Write one element in 'MULTILIB_DIRNAMES' for each element in
  35543. 'MULTILIB_OPTIONS'. If 'MULTILIB_DIRNAMES' is not used, the
  35544. default value will be 'MULTILIB_OPTIONS', with all slashes treated
  35545. as spaces.
  35546. 'MULTILIB_DIRNAMES' describes the multilib directories using GCC
  35547. conventions and is applied to directories that are part of the GCC
  35548. installation. When multilib-enabled, the compiler will add a
  35549. subdirectory of the form PREFIX/MULTILIB before each directory in
  35550. the search path for libraries and crt files.
  35551. For example, if 'MULTILIB_OPTIONS' is set to 'm68000/m68020
  35552. msoft-float', then the default value of 'MULTILIB_DIRNAMES' is
  35553. 'm68000 m68020 msoft-float'. You may specify a different value if
  35554. you desire a different set of directory names.
  35555. 'MULTILIB_MATCHES'
  35556. Sometimes the same option may be written in two different ways. If
  35557. an option is listed in 'MULTILIB_OPTIONS', GCC needs to know about
  35558. any synonyms. In that case, set 'MULTILIB_MATCHES' to a list of
  35559. items of the form 'option=option' to describe all relevant
  35560. synonyms. For example, 'm68000=mc68000 m68020=mc68020'.
  35561. 'MULTILIB_EXCEPTIONS'
  35562. Sometimes when there are multiple sets of 'MULTILIB_OPTIONS' being
  35563. specified, there are combinations that should not be built. In
  35564. that case, set 'MULTILIB_EXCEPTIONS' to be all of the switch
  35565. exceptions in shell case syntax that should not be built.
  35566. For example the ARM processor cannot execute both hardware floating
  35567. point instructions and the reduced size THUMB instructions at the
  35568. same time, so there is no need to build libraries with both of
  35569. these options enabled. Therefore 'MULTILIB_EXCEPTIONS' is set to:
  35570. *mthumb/*mhard-float*
  35571. 'MULTILIB_REQUIRED'
  35572. Sometimes when there are only a few combinations are required, it
  35573. would be a big effort to come up with a 'MULTILIB_EXCEPTIONS' list
  35574. to cover all undesired ones. In such a case, just listing all the
  35575. required combinations in 'MULTILIB_REQUIRED' would be more
  35576. straightforward.
  35577. The way to specify the entries in 'MULTILIB_REQUIRED' is same with
  35578. the way used for 'MULTILIB_EXCEPTIONS', only this time what are
  35579. required will be specified. Suppose there are multiple sets of
  35580. 'MULTILIB_OPTIONS' and only two combinations are required, one for
  35581. ARMv7-M and one for ARMv7-R with hard floating-point ABI and FPU,
  35582. the 'MULTILIB_REQUIRED' can be set to:
  35583. MULTILIB_REQUIRED = mthumb/march=armv7-m
  35584. MULTILIB_REQUIRED += march=armv7-r/mfloat-abi=hard/mfpu=vfpv3-d16
  35585. The 'MULTILIB_REQUIRED' can be used together with
  35586. 'MULTILIB_EXCEPTIONS'. The option combinations generated from
  35587. 'MULTILIB_OPTIONS' will be filtered by 'MULTILIB_EXCEPTIONS' and
  35588. then by 'MULTILIB_REQUIRED'.
  35589. 'MULTILIB_REUSE'
  35590. Sometimes it is desirable to reuse one existing multilib for
  35591. different sets of options. Such kind of reuse can minimize the
  35592. number of multilib variants. And for some targets it is better to
  35593. reuse an existing multilib than to fall back to default multilib
  35594. when there is no corresponding multilib. This can be done by
  35595. adding reuse rules to 'MULTILIB_REUSE'.
  35596. A reuse rule is comprised of two parts connected by equality sign.
  35597. The left part is the option set used to build multilib and the
  35598. right part is the option set that will reuse this multilib. Both
  35599. parts should only use options specified in 'MULTILIB_OPTIONS' and
  35600. the equality signs found in options name should be replaced with
  35601. periods. An explicit period in the rule can be escaped by
  35602. preceding it with a backslash. The order of options in the left
  35603. part matters and should be same with those specified in
  35604. 'MULTILIB_REQUIRED' or aligned with the order in
  35605. 'MULTILIB_OPTIONS'. There is no such limitation for options in the
  35606. right part as we don't build multilib from them.
  35607. 'MULTILIB_REUSE' is different from 'MULTILIB_MATCHES' in that it
  35608. sets up relations between two option sets rather than two options.
  35609. Here is an example to demo how we reuse libraries built in Thumb
  35610. mode for applications built in ARM mode:
  35611. MULTILIB_REUSE = mthumb/march.armv7-r=marm/march.armv7-r
  35612. Before the advent of 'MULTILIB_REUSE', GCC select multilib by
  35613. comparing command line options with options used to build multilib.
  35614. The 'MULTILIB_REUSE' is complementary to that way. Only when the
  35615. original comparison matches nothing it will work to see if it is OK
  35616. to reuse some existing multilib.
  35617. 'MULTILIB_EXTRA_OPTS'
  35618. Sometimes it is desirable that when building multiple versions of
  35619. 'libgcc.a' certain options should always be passed on to the
  35620. compiler. In that case, set 'MULTILIB_EXTRA_OPTS' to be the list
  35621. of options to be used for all builds. If you set this, you should
  35622. probably set 'CRTSTUFF_T_CFLAGS' to a dash followed by it.
  35623. 'MULTILIB_OSDIRNAMES'
  35624. If 'MULTILIB_OPTIONS' is used, this variable specifies a list of
  35625. subdirectory names, that are used to modify the search path
  35626. depending on the chosen multilib. Unlike 'MULTILIB_DIRNAMES',
  35627. 'MULTILIB_OSDIRNAMES' describes the multilib directories using
  35628. operating systems conventions, and is applied to the directories
  35629. such as 'lib' or those in the 'LIBRARY_PATH' environment variable.
  35630. The format is either the same as of 'MULTILIB_DIRNAMES', or a set
  35631. of mappings. When it is the same as 'MULTILIB_DIRNAMES', it
  35632. describes the multilib directories using operating system
  35633. conventions, rather than GCC conventions. When it is a set of
  35634. mappings of the form GCCDIR=OSDIR, the left side gives the GCC
  35635. convention and the right gives the equivalent OS defined location.
  35636. If the OSDIR part begins with a '!', GCC will not search in the
  35637. non-multilib directory and use exclusively the multilib directory.
  35638. Otherwise, the compiler will examine the search path for libraries
  35639. and crt files twice; the first time it will add MULTILIB to each
  35640. directory in the search path, the second it will not.
  35641. For configurations that support both multilib and multiarch,
  35642. 'MULTILIB_OSDIRNAMES' also encodes the multiarch name, thus
  35643. subsuming 'MULTIARCH_DIRNAME'. The multiarch name is appended to
  35644. each directory name, separated by a colon (e.g.
  35645. '../lib32:i386-linux-gnu').
  35646. Each multiarch subdirectory will be searched before the
  35647. corresponding OS multilib directory, for example
  35648. '/lib/i386-linux-gnu' before '/lib/../lib32'. The multiarch name
  35649. will also be used to modify the system header search path, as
  35650. explained for 'MULTIARCH_DIRNAME'.
  35651. 'MULTIARCH_DIRNAME'
  35652. This variable specifies the multiarch name for configurations that
  35653. are multiarch-enabled but not multilibbed configurations.
  35654. The multiarch name is used to augment the search path for
  35655. libraries, crt files and system header files with additional
  35656. locations. The compiler will add a multiarch subdirectory of the
  35657. form PREFIX/MULTIARCH before each directory in the library and crt
  35658. search path. It will also add two directories
  35659. 'LOCAL_INCLUDE_DIR'/MULTIARCH and
  35660. 'NATIVE_SYSTEM_HEADER_DIR'/MULTIARCH) to the system header search
  35661. path, respectively before 'LOCAL_INCLUDE_DIR' and
  35662. 'NATIVE_SYSTEM_HEADER_DIR'.
  35663. 'MULTIARCH_DIRNAME' is not used for configurations that support
  35664. both multilib and multiarch. In that case, multiarch names are
  35665. encoded in 'MULTILIB_OSDIRNAMES' instead.
  35666. More documentation about multiarch can be found at
  35667. <https://wiki.debian.org/Multiarch>.
  35668. 'SPECS'
  35669. Unfortunately, setting 'MULTILIB_EXTRA_OPTS' is not enough, since
  35670. it does not affect the build of target libraries, at least not the
  35671. build of the default multilib. One possible work-around is to use
  35672. 'DRIVER_SELF_SPECS' to bring options from the 'specs' file as if
  35673. they had been passed in the compiler driver command line. However,
  35674. you don't want to be adding these options after the toolchain is
  35675. installed, so you can instead tweak the 'specs' file that will be
  35676. used during the toolchain build, while you still install the
  35677. original, built-in 'specs'. The trick is to set 'SPECS' to some
  35678. other filename (say 'specs.install'), that will then be created out
  35679. of the built-in specs, and introduce a 'Makefile' rule to generate
  35680. the 'specs' file that's going to be used at build time out of your
  35681. 'specs.install'.
  35682. 'T_CFLAGS'
  35683. These are extra flags to pass to the C compiler. They are used
  35684. both when building GCC, and when compiling things with the
  35685. just-built GCC. This variable is deprecated and should not be
  35686. used.
  35687. 
  35688. File: gccint.info, Node: Host Fragment, Prev: Target Fragment, Up: Fragments
  35689. 20.2 Host Makefile Fragments
  35690. ============================
  35691. The use of 'x-HOST' fragments is discouraged. You should only use it
  35692. for makefile dependencies.
  35693. 
  35694. File: gccint.info, Node: Collect2, Next: Header Dirs, Prev: Fragments, Up: Top
  35695. 21 'collect2'
  35696. *************
  35697. GCC uses a utility called 'collect2' on nearly all systems to arrange to
  35698. call various initialization functions at start time.
  35699. The program 'collect2' works by linking the program once and looking
  35700. through the linker output file for symbols with particular names
  35701. indicating they are constructor functions. If it finds any, it creates
  35702. a new temporary '.c' file containing a table of them, compiles it, and
  35703. links the program a second time including that file.
  35704. The actual calls to the constructors are carried out by a subroutine
  35705. called '__main', which is called (automatically) at the beginning of the
  35706. body of 'main' (provided 'main' was compiled with GNU CC). Calling
  35707. '__main' is necessary, even when compiling C code, to allow linking C
  35708. and C++ object code together. (If you use '-nostdlib', you get an
  35709. unresolved reference to '__main', since it's defined in the standard GCC
  35710. library. Include '-lgcc' at the end of your compiler command line to
  35711. resolve this reference.)
  35712. The program 'collect2' is installed as 'ld' in the directory where the
  35713. passes of the compiler are installed. When 'collect2' needs to find the
  35714. _real_ 'ld', it tries the following file names:
  35715. * a hard coded linker file name, if GCC was configured with the
  35716. '--with-ld' option.
  35717. * 'real-ld' in the directories listed in the compiler's search
  35718. directories.
  35719. * 'real-ld' in the directories listed in the environment variable
  35720. 'PATH'.
  35721. * The file specified in the 'REAL_LD_FILE_NAME' configuration macro,
  35722. if specified.
  35723. * 'ld' in the compiler's search directories, except that 'collect2'
  35724. will not execute itself recursively.
  35725. * 'ld' in 'PATH'.
  35726. "The compiler's search directories" means all the directories where
  35727. 'gcc' searches for passes of the compiler. This includes directories
  35728. that you specify with '-B'.
  35729. Cross-compilers search a little differently:
  35730. * 'real-ld' in the compiler's search directories.
  35731. * 'TARGET-real-ld' in 'PATH'.
  35732. * The file specified in the 'REAL_LD_FILE_NAME' configuration macro,
  35733. if specified.
  35734. * 'ld' in the compiler's search directories.
  35735. * 'TARGET-ld' in 'PATH'.
  35736. 'collect2' explicitly avoids running 'ld' using the file name under
  35737. which 'collect2' itself was invoked. In fact, it remembers up a list of
  35738. such names--in case one copy of 'collect2' finds another copy (or
  35739. version) of 'collect2' installed as 'ld' in a second place in the search
  35740. path.
  35741. 'collect2' searches for the utilities 'nm' and 'strip' using the same
  35742. algorithm as above for 'ld'.
  35743. 
  35744. File: gccint.info, Node: Header Dirs, Next: Type Information, Prev: Collect2, Up: Top
  35745. 22 Standard Header File Directories
  35746. ***********************************
  35747. 'GCC_INCLUDE_DIR' means the same thing for native and cross. It is
  35748. where GCC stores its private include files, and also where GCC stores
  35749. the fixed include files. A cross compiled GCC runs 'fixincludes' on the
  35750. header files in '$(tooldir)/include'. (If the cross compilation header
  35751. files need to be fixed, they must be installed before GCC is built. If
  35752. the cross compilation header files are already suitable for GCC, nothing
  35753. special need be done).
  35754. 'GPLUSPLUS_INCLUDE_DIR' means the same thing for native and cross. It
  35755. is where 'g++' looks first for header files. The C++ library installs
  35756. only target independent header files in that directory.
  35757. 'LOCAL_INCLUDE_DIR' is used only by native compilers. GCC doesn't
  35758. install anything there. It is normally '/usr/local/include'. This is
  35759. where local additions to a packaged system should place header files.
  35760. 'CROSS_INCLUDE_DIR' is used only by cross compilers. GCC doesn't
  35761. install anything there.
  35762. 'TOOL_INCLUDE_DIR' is used for both native and cross compilers. It is
  35763. the place for other packages to install header files that GCC will use.
  35764. For a cross-compiler, this is the equivalent of '/usr/include'. When
  35765. you build a cross-compiler, 'fixincludes' processes any header files in
  35766. this directory.
  35767. 
  35768. File: gccint.info, Node: Type Information, Next: Plugins, Prev: Header Dirs, Up: Top
  35769. 23 Memory Management and Type Information
  35770. *****************************************
  35771. GCC uses some fairly sophisticated memory management techniques, which
  35772. involve determining information about GCC's data structures from GCC's
  35773. source code and using this information to perform garbage collection and
  35774. implement precompiled headers.
  35775. A full C++ parser would be too complicated for this task, so a limited
  35776. subset of C++ is interpreted and special markers are used to determine
  35777. what parts of the source to look at. All 'struct', 'union' and
  35778. 'template' structure declarations that define data structures that are
  35779. allocated under control of the garbage collector must be marked. All
  35780. global variables that hold pointers to garbage-collected memory must
  35781. also be marked. Finally, all global variables that need to be saved and
  35782. restored by a precompiled header must be marked. (The precompiled
  35783. header mechanism can only save static variables if they're scalar.
  35784. Complex data structures must be allocated in garbage-collected memory to
  35785. be saved in a precompiled header.)
  35786. The full format of a marker is
  35787. GTY (([OPTION] [(PARAM)], [OPTION] [(PARAM)] ...))
  35788. but in most cases no options are needed. The outer double parentheses
  35789. are still necessary, though: 'GTY(())'. Markers can appear:
  35790. * In a structure definition, before the open brace;
  35791. * In a global variable declaration, after the keyword 'static' or
  35792. 'extern'; and
  35793. * In a structure field definition, before the name of the field.
  35794. Here are some examples of marking simple data structures and globals.
  35795. struct GTY(()) TAG
  35796. {
  35797. FIELDS...
  35798. };
  35799. typedef struct GTY(()) TAG
  35800. {
  35801. FIELDS...
  35802. } *TYPENAME;
  35803. static GTY(()) struct TAG *LIST; /* points to GC memory */
  35804. static GTY(()) int COUNTER; /* save counter in a PCH */
  35805. The parser understands simple typedefs such as 'typedef struct TAG
  35806. *NAME;' and 'typedef int NAME;'. These don't need to be marked.
  35807. Since 'gengtype''s understanding of C++ is limited, there are several
  35808. constructs and declarations that are not supported inside
  35809. classes/structures marked for automatic GC code generation. The
  35810. following C++ constructs produce a 'gengtype' error on
  35811. structures/classes marked for automatic GC code generation:
  35812. * Type definitions inside classes/structures are not supported.
  35813. * Enumerations inside classes/structures are not supported.
  35814. If you have a class or structure using any of the above constructs, you
  35815. need to mark that class as 'GTY ((user))' and provide your own marking
  35816. routines (see section *note User GC:: for details).
  35817. It is always valid to include function definitions inside classes.
  35818. Those are always ignored by 'gengtype', as it only cares about data
  35819. members.
  35820. * Menu:
  35821. * GTY Options:: What goes inside a 'GTY(())'.
  35822. * Inheritance and GTY:: Adding GTY to a class hierarchy.
  35823. * User GC:: Adding user-provided GC marking routines.
  35824. * GGC Roots:: Making global variables GGC roots.
  35825. * Files:: How the generated files work.
  35826. * Invoking the garbage collector:: How to invoke the garbage collector.
  35827. * Troubleshooting:: When something does not work as expected.
  35828. 
  35829. File: gccint.info, Node: GTY Options, Next: Inheritance and GTY, Up: Type Information
  35830. 23.1 The Inside of a 'GTY(())'
  35831. ==============================
  35832. Sometimes the C code is not enough to fully describe the type structure.
  35833. Extra information can be provided with 'GTY' options and additional
  35834. markers. Some options take a parameter, which may be either a string or
  35835. a type name, depending on the parameter. If an option takes no
  35836. parameter, it is acceptable either to omit the parameter entirely, or to
  35837. provide an empty string as a parameter. For example, 'GTY ((skip))' and
  35838. 'GTY ((skip ("")))' are equivalent.
  35839. When the parameter is a string, often it is a fragment of C code. Four
  35840. special escapes may be used in these strings, to refer to pieces of the
  35841. data structure being marked:
  35842. '%h'
  35843. The current structure.
  35844. '%1'
  35845. The structure that immediately contains the current structure.
  35846. '%0'
  35847. The outermost structure that contains the current structure.
  35848. '%a'
  35849. A partial expression of the form '[i1][i2]...' that indexes the
  35850. array item currently being marked.
  35851. For instance, suppose that you have a structure of the form
  35852. struct A {
  35853. ...
  35854. };
  35855. struct B {
  35856. struct A foo[12];
  35857. };
  35858. and 'b' is a variable of type 'struct B'. When marking 'b.foo[11]',
  35859. '%h' would expand to 'b.foo[11]', '%0' and '%1' would both expand to
  35860. 'b', and '%a' would expand to '[11]'.
  35861. As in ordinary C, adjacent strings will be concatenated; this is
  35862. helpful when you have a complicated expression.
  35863. GTY ((chain_next ("TREE_CODE (&%h.generic) == INTEGER_TYPE"
  35864. " ? TYPE_NEXT_VARIANT (&%h.generic)"
  35865. " : TREE_CHAIN (&%h.generic)")))
  35866. The available options are:
  35867. 'length ("EXPRESSION")'
  35868. There are two places the type machinery will need to be explicitly
  35869. told the length of an array of non-atomic objects. The first case
  35870. is when a structure ends in a variable-length array, like this:
  35871. struct GTY(()) rtvec_def {
  35872. int num_elem; /* number of elements */
  35873. rtx GTY ((length ("%h.num_elem"))) elem[1];
  35874. };
  35875. In this case, the 'length' option is used to override the specified
  35876. array length (which should usually be '1'). The parameter of the
  35877. option is a fragment of C code that calculates the length.
  35878. The second case is when a structure or a global variable contains a
  35879. pointer to an array, like this:
  35880. struct gimple_omp_for_iter * GTY((length ("%h.collapse"))) iter;
  35881. In this case, 'iter' has been allocated by writing something like
  35882. x->iter = ggc_alloc_cleared_vec_gimple_omp_for_iter (collapse);
  35883. and the 'collapse' provides the length of the field.
  35884. This second use of 'length' also works on global variables, like:
  35885. static GTY((length("reg_known_value_size"))) rtx *reg_known_value;
  35886. Note that the 'length' option is only meant for use with arrays of
  35887. non-atomic objects, that is, objects that contain pointers pointing
  35888. to other GTY-managed objects. For other GC-allocated arrays and
  35889. strings you should use 'atomic'.
  35890. 'skip'
  35891. If 'skip' is applied to a field, the type machinery will ignore it.
  35892. This is somewhat dangerous; the only safe use is in a union when
  35893. one field really isn't ever used.
  35894. 'for_user'
  35895. Use this to mark types that need to be marked by user gc routines,
  35896. but are not refered to in a template argument. So if you have some
  35897. user gc type T1 and a non user gc type T2 you can give T2 the
  35898. for_user option so that the marking functions for T1 can call non
  35899. mangled functions to mark T2.
  35900. 'desc ("EXPRESSION")'
  35901. 'tag ("CONSTANT")'
  35902. 'default'
  35903. The type machinery needs to be told which field of a 'union' is
  35904. currently active. This is done by giving each field a constant
  35905. 'tag' value, and then specifying a discriminator using 'desc'. The
  35906. value of the expression given by 'desc' is compared against each
  35907. 'tag' value, each of which should be different. If no 'tag' is
  35908. matched, the field marked with 'default' is used if there is one,
  35909. otherwise no field in the union will be marked.
  35910. In the 'desc' option, the "current structure" is the union that it
  35911. discriminates. Use '%1' to mean the structure containing it.
  35912. There are no escapes available to the 'tag' option, since it is a
  35913. constant.
  35914. For example,
  35915. struct GTY(()) tree_binding
  35916. {
  35917. struct tree_common common;
  35918. union tree_binding_u {
  35919. tree GTY ((tag ("0"))) scope;
  35920. struct cp_binding_level * GTY ((tag ("1"))) level;
  35921. } GTY ((desc ("BINDING_HAS_LEVEL_P ((tree)&%0)"))) xscope;
  35922. tree value;
  35923. };
  35924. In this example, the value of BINDING_HAS_LEVEL_P when applied to a
  35925. 'struct tree_binding *' is presumed to be 0 or 1. If 1, the type
  35926. mechanism will treat the field 'level' as being present and if 0,
  35927. will treat the field 'scope' as being present.
  35928. The 'desc' and 'tag' options can also be used for inheritance to
  35929. denote which subclass an instance is. See *note Inheritance and
  35930. GTY:: for more information.
  35931. 'cache'
  35932. When the 'cache' option is applied to a global variable
  35933. gt_cleare_cache is called on that variable between the mark and
  35934. sweep phases of garbage collection. The gt_clear_cache function is
  35935. free to mark blocks as used, or to clear pointers in the variable.
  35936. 'deletable'
  35937. 'deletable', when applied to a global variable, indicates that when
  35938. garbage collection runs, there's no need to mark anything pointed
  35939. to by this variable, it can just be set to 'NULL' instead. This is
  35940. used to keep a list of free structures around for re-use.
  35941. 'maybe_undef'
  35942. When applied to a field, 'maybe_undef' indicates that it's OK if
  35943. the structure that this fields points to is never defined, so long
  35944. as this field is always 'NULL'. This is used to avoid requiring
  35945. backends to define certain optional structures. It doesn't work
  35946. with language frontends.
  35947. 'nested_ptr (TYPE, "TO EXPRESSION", "FROM EXPRESSION")'
  35948. The type machinery expects all pointers to point to the start of an
  35949. object. Sometimes for abstraction purposes it's convenient to have
  35950. a pointer which points inside an object. So long as it's possible
  35951. to convert the original object to and from the pointer, such
  35952. pointers can still be used. TYPE is the type of the original
  35953. object, the TO EXPRESSION returns the pointer given the original
  35954. object, and the FROM EXPRESSION returns the original object given
  35955. the pointer. The pointer will be available using the '%h' escape.
  35956. 'chain_next ("EXPRESSION")'
  35957. 'chain_prev ("EXPRESSION")'
  35958. 'chain_circular ("EXPRESSION")'
  35959. It's helpful for the type machinery to know if objects are often
  35960. chained together in long lists; this lets it generate code that
  35961. uses less stack space by iterating along the list instead of
  35962. recursing down it. 'chain_next' is an expression for the next item
  35963. in the list, 'chain_prev' is an expression for the previous item.
  35964. For singly linked lists, use only 'chain_next'; for doubly linked
  35965. lists, use both. The machinery requires that taking the next item
  35966. of the previous item gives the original item. 'chain_circular' is
  35967. similar to 'chain_next', but can be used for circular single linked
  35968. lists.
  35969. 'reorder ("FUNCTION NAME")'
  35970. Some data structures depend on the relative ordering of pointers.
  35971. If the precompiled header machinery needs to change that ordering,
  35972. it will call the function referenced by the 'reorder' option,
  35973. before changing the pointers in the object that's pointed to by the
  35974. field the option applies to. The function must take four
  35975. arguments, with the signature
  35976. 'void *, void *, gt_pointer_operator, void *'. The first parameter
  35977. is a pointer to the structure that contains the object being
  35978. updated, or the object itself if there is no containing structure.
  35979. The second parameter is a cookie that should be ignored. The third
  35980. parameter is a routine that, given a pointer, will update it to its
  35981. correct new value. The fourth parameter is a cookie that must be
  35982. passed to the second parameter.
  35983. PCH cannot handle data structures that depend on the absolute
  35984. values of pointers. 'reorder' functions can be expensive. When
  35985. possible, it is better to depend on properties of the data, like an
  35986. ID number or the hash of a string instead.
  35987. 'atomic'
  35988. The 'atomic' option can only be used with pointers. It informs the
  35989. GC machinery that the memory that the pointer points to does not
  35990. contain any pointers, and hence it should be treated by the GC and
  35991. PCH machinery as an "atomic" block of memory that does not need to
  35992. be examined when scanning memory for pointers. In particular, the
  35993. machinery will not scan that memory for pointers to mark them as
  35994. reachable (when marking pointers for GC) or to relocate them (when
  35995. writing a PCH file).
  35996. The 'atomic' option differs from the 'skip' option. 'atomic' keeps
  35997. the memory under Garbage Collection, but makes the GC ignore the
  35998. contents of the memory. 'skip' is more drastic in that it causes
  35999. the pointer and the memory to be completely ignored by the Garbage
  36000. Collector. So, memory marked as 'atomic' is automatically freed
  36001. when no longer reachable, while memory marked as 'skip' is not.
  36002. The 'atomic' option must be used with great care, because all sorts
  36003. of problem can occur if used incorrectly, that is, if the memory
  36004. the pointer points to does actually contain a pointer.
  36005. Here is an example of how to use it:
  36006. struct GTY(()) my_struct {
  36007. int number_of_elements;
  36008. unsigned int * GTY ((atomic)) elements;
  36009. };
  36010. In this case, 'elements' is a pointer under GC, and the memory it
  36011. points to needs to be allocated using the Garbage Collector, and
  36012. will be freed automatically by the Garbage Collector when it is no
  36013. longer referenced. But the memory that the pointer points to is an
  36014. array of 'unsigned int' elements, and the GC must not try to scan
  36015. it to find pointers to mark or relocate, which is why it is marked
  36016. with the 'atomic' option.
  36017. Note that, currently, global variables cannot be marked with
  36018. 'atomic'; only fields of a struct can. This is a known limitation.
  36019. It would be useful to be able to mark global pointers with 'atomic'
  36020. to make the PCH machinery aware of them so that they are saved and
  36021. restored correctly to PCH files.
  36022. 'special ("NAME")'
  36023. The 'special' option is used to mark types that have to be dealt
  36024. with by special case machinery. The parameter is the name of the
  36025. special case. See 'gengtype.c' for further details. Avoid adding
  36026. new special cases unless there is no other alternative.
  36027. 'user'
  36028. The 'user' option indicates that the code to mark structure fields
  36029. is completely handled by user-provided routines. See section *note
  36030. User GC:: for details on what functions need to be provided.
  36031. 
  36032. File: gccint.info, Node: Inheritance and GTY, Next: User GC, Prev: GTY Options, Up: Type Information
  36033. 23.2 Support for inheritance
  36034. ============================
  36035. gengtype has some support for simple class hierarchies. You can use
  36036. this to have gengtype autogenerate marking routines, provided:
  36037. * There must be a concrete base class, with a discriminator
  36038. expression that can be used to identify which subclass an instance
  36039. is.
  36040. * Only single inheritance is used.
  36041. * None of the classes within the hierarchy are templates.
  36042. If your class hierarchy does not fit in this pattern, you must use
  36043. *note User GC:: instead.
  36044. The base class and its discriminator must be identified using the
  36045. "desc" option. Each concrete subclass must use the "tag" option to
  36046. identify which value of the discriminator it corresponds to.
  36047. Every class in the hierarchy must have a 'GTY(())' marker, as gengtype
  36048. will only attempt to parse classes that have such a marker (1).
  36049. class GTY((desc("%h.kind"), tag("0"))) example_base
  36050. {
  36051. public:
  36052. int kind;
  36053. tree a;
  36054. };
  36055. class GTY((tag("1"))) some_subclass : public example_base
  36056. {
  36057. public:
  36058. tree b;
  36059. };
  36060. class GTY((tag("2"))) some_other_subclass : public example_base
  36061. {
  36062. public:
  36063. tree c;
  36064. };
  36065. The generated marking routines for the above will contain a "switch" on
  36066. "kind", visiting all appropriate fields. For example, if kind is 2, it
  36067. will cast to "some_other_subclass" and visit fields a, b, and c.
  36068. ---------- Footnotes ----------
  36069. (1) Classes lacking such a marker will not be identified as being
  36070. part of the hierarchy, and so the marking routines will not handle them,
  36071. leading to a assertion failure within the marking routines due to an
  36072. unknown tag value (assuming that assertions are enabled).
  36073. 
  36074. File: gccint.info, Node: User GC, Next: GGC Roots, Prev: Inheritance and GTY, Up: Type Information
  36075. 23.3 Support for user-provided GC marking routines
  36076. ==================================================
  36077. The garbage collector supports types for which no automatic marking code
  36078. is generated. For these types, the user is required to provide three
  36079. functions: one to act as a marker for garbage collection, and two
  36080. functions to act as marker and pointer walker for pre-compiled headers.
  36081. Given a structure 'struct GTY((user)) my_struct', the following
  36082. functions should be defined to mark 'my_struct':
  36083. void gt_ggc_mx (my_struct *p)
  36084. {
  36085. /* This marks field 'fld'. */
  36086. gt_ggc_mx (p->fld);
  36087. }
  36088. void gt_pch_nx (my_struct *p)
  36089. {
  36090. /* This marks field 'fld'. */
  36091. gt_pch_nx (tp->fld);
  36092. }
  36093. void gt_pch_nx (my_struct *p, gt_pointer_operator op, void *cookie)
  36094. {
  36095. /* For every field 'fld', call the given pointer operator. */
  36096. op (&(tp->fld), cookie);
  36097. }
  36098. In general, each marker 'M' should call 'M' for every pointer field in
  36099. the structure. Fields that are not allocated in GC or are not pointers
  36100. must be ignored.
  36101. For embedded lists (e.g., structures with a 'next' or 'prev' pointer),
  36102. the marker must follow the chain and mark every element in it.
  36103. Note that the rules for the pointer walker 'gt_pch_nx (my_struct *,
  36104. gt_pointer_operator, void *)' are slightly different. In this case, the
  36105. operation 'op' must be applied to the _address_ of every pointer field.
  36106. 23.3.1 User-provided marking routines for template types
  36107. --------------------------------------------------------
  36108. When a template type 'TP' is marked with 'GTY', all instances of that
  36109. type are considered user-provided types. This means that the individual
  36110. instances of 'TP' do not need to be marked with 'GTY'. The user needs
  36111. to provide template functions to mark all the fields of the type.
  36112. The following code snippets represent all the functions that need to be
  36113. provided. Note that type 'TP' may reference to more than one type. In
  36114. these snippets, there is only one type 'T', but there could be more.
  36115. template<typename T>
  36116. void gt_ggc_mx (TP<T> *tp)
  36117. {
  36118. extern void gt_ggc_mx (T&);
  36119. /* This marks field 'fld' of type 'T'. */
  36120. gt_ggc_mx (tp->fld);
  36121. }
  36122. template<typename T>
  36123. void gt_pch_nx (TP<T> *tp)
  36124. {
  36125. extern void gt_pch_nx (T&);
  36126. /* This marks field 'fld' of type 'T'. */
  36127. gt_pch_nx (tp->fld);
  36128. }
  36129. template<typename T>
  36130. void gt_pch_nx (TP<T *> *tp, gt_pointer_operator op, void *cookie)
  36131. {
  36132. /* For every field 'fld' of 'tp' with type 'T *', call the given
  36133. pointer operator. */
  36134. op (&(tp->fld), cookie);
  36135. }
  36136. template<typename T>
  36137. void gt_pch_nx (TP<T> *tp, gt_pointer_operator, void *cookie)
  36138. {
  36139. extern void gt_pch_nx (T *, gt_pointer_operator, void *);
  36140. /* For every field 'fld' of 'tp' with type 'T', call the pointer
  36141. walker for all the fields of T. */
  36142. gt_pch_nx (&(tp->fld), op, cookie);
  36143. }
  36144. Support for user-defined types is currently limited. The following
  36145. restrictions apply:
  36146. 1. Type 'TP' and all the argument types 'T' must be marked with 'GTY'.
  36147. 2. Type 'TP' can only have type names in its argument list.
  36148. 3. The pointer walker functions are different for 'TP<T>' and 'TP<T
  36149. *>'. In the case of 'TP<T>', references to 'T' must be handled by
  36150. calling 'gt_pch_nx' (which will, in turn, walk all the pointers
  36151. inside fields of 'T'). In the case of 'TP<T *>', references to 'T
  36152. *' must be handled by calling the 'op' function on the address of
  36153. the pointer (see the code snippets above).
  36154. 
  36155. File: gccint.info, Node: GGC Roots, Next: Files, Prev: User GC, Up: Type Information
  36156. 23.4 Marking Roots for the Garbage Collector
  36157. ============================================
  36158. In addition to keeping track of types, the type machinery also locates
  36159. the global variables ("roots") that the garbage collector starts at.
  36160. Roots must be declared using one of the following syntaxes:
  36161. * 'extern GTY(([OPTIONS])) TYPE NAME;'
  36162. * 'static GTY(([OPTIONS])) TYPE NAME;'
  36163. The syntax
  36164. * 'GTY(([OPTIONS])) TYPE NAME;'
  36165. is _not_ accepted. There should be an 'extern' declaration of such a
  36166. variable in a header somewhere--mark that, not the definition. Or, if
  36167. the variable is only used in one file, make it 'static'.
  36168. 
  36169. File: gccint.info, Node: Files, Next: Invoking the garbage collector, Prev: GGC Roots, Up: Type Information
  36170. 23.5 Source Files Containing Type Information
  36171. =============================================
  36172. Whenever you add 'GTY' markers to a source file that previously had
  36173. none, or create a new source file containing 'GTY' markers, there are
  36174. three things you need to do:
  36175. 1. You need to add the file to the list of source files the type
  36176. machinery scans. There are four cases:
  36177. a. For a back-end file, this is usually done automatically; if
  36178. not, you should add it to 'target_gtfiles' in the appropriate
  36179. port's entries in 'config.gcc'.
  36180. b. For files shared by all front ends, add the filename to the
  36181. 'GTFILES' variable in 'Makefile.in'.
  36182. c. For files that are part of one front end, add the filename to
  36183. the 'gtfiles' variable defined in the appropriate
  36184. 'config-lang.in'. Headers should appear before non-headers in
  36185. this list.
  36186. d. For files that are part of some but not all front ends, add
  36187. the filename to the 'gtfiles' variable of _all_ the front ends
  36188. that use it.
  36189. 2. If the file was a header file, you'll need to check that it's
  36190. included in the right place to be visible to the generated files.
  36191. For a back-end header file, this should be done automatically. For
  36192. a front-end header file, it needs to be included by the same file
  36193. that includes 'gtype-LANG.h'. For other header files, it needs to
  36194. be included in 'gtype-desc.c', which is a generated file, so add it
  36195. to 'ifiles' in 'open_base_file' in 'gengtype.c'.
  36196. For source files that aren't header files, the machinery will
  36197. generate a header file that should be included in the source file
  36198. you just changed. The file will be called 'gt-PATH.h' where PATH
  36199. is the pathname relative to the 'gcc' directory with slashes
  36200. replaced by -, so for example the header file to be included in
  36201. 'cp/parser.c' is called 'gt-cp-parser.c'. The generated header
  36202. file should be included after everything else in the source file.
  36203. Don't forget to mention this file as a dependency in the
  36204. 'Makefile'!
  36205. For language frontends, there is another file that needs to be included
  36206. somewhere. It will be called 'gtype-LANG.h', where LANG is the name of
  36207. the subdirectory the language is contained in.
  36208. Plugins can add additional root tables. Run the 'gengtype' utility in
  36209. plugin mode as 'gengtype -P pluginout.h SOURCE-DIR FILE-LIST PLUGIN*.C'
  36210. with your plugin files PLUGIN*.C using 'GTY' to generate the PLUGINOUT.H
  36211. file. The GCC build tree is needed to be present in that mode.
  36212. 
  36213. File: gccint.info, Node: Invoking the garbage collector, Next: Troubleshooting, Prev: Files, Up: Type Information
  36214. 23.6 How to invoke the garbage collector
  36215. ========================================
  36216. The GCC garbage collector GGC is only invoked explicitly. In contrast
  36217. with many other garbage collectors, it is not implicitly invoked by
  36218. allocation routines when a lot of memory has been consumed. So the only
  36219. way to have GGC reclaim storage is to call the 'ggc_collect' function
  36220. explicitly. This call is an expensive operation, as it may have to scan
  36221. the entire heap. Beware that local variables (on the GCC call stack)
  36222. are not followed by such an invocation (as many other garbage collectors
  36223. do): you should reference all your data from static or external 'GTY'-ed
  36224. variables, and it is advised to call 'ggc_collect' with a shallow call
  36225. stack. The GGC is an exact mark and sweep garbage collector (so it does
  36226. not scan the call stack for pointers). In practice GCC passes don't
  36227. often call 'ggc_collect' themselves, because it is called by the pass
  36228. manager between passes.
  36229. At the time of the 'ggc_collect' call all pointers in the GC-marked
  36230. structures must be valid or 'NULL'. In practice this means that there
  36231. should not be uninitialized pointer fields in the structures even if
  36232. your code never reads or writes those fields at a particular instance.
  36233. One way to ensure this is to use cleared versions of allocators unless
  36234. all the fields are initialized manually immediately after allocation.
  36235. 
  36236. File: gccint.info, Node: Troubleshooting, Prev: Invoking the garbage collector, Up: Type Information
  36237. 23.7 Troubleshooting the garbage collector
  36238. ==========================================
  36239. With the current garbage collector implementation, most issues should
  36240. show up as GCC compilation errors. Some of the most commonly
  36241. encountered issues are described below.
  36242. * Gengtype does not produce allocators for a 'GTY'-marked type.
  36243. Gengtype checks if there is at least one possible path from GC
  36244. roots to at least one instance of each type before outputting
  36245. allocators. If there is no such path, the 'GTY' markers will be
  36246. ignored and no allocators will be output. Solve this by making
  36247. sure that there exists at least one such path. If creating it is
  36248. unfeasible or raises a "code smell", consider if you really must
  36249. use GC for allocating such type.
  36250. * Link-time errors about undefined 'gt_ggc_r_foo_bar' and
  36251. similarly-named symbols. Check if your 'foo_bar' source file has
  36252. '#include "gt-foo_bar.h"' as its very last line.
  36253. 
  36254. File: gccint.info, Node: Plugins, Next: LTO, Prev: Type Information, Up: Top
  36255. 24 Plugins
  36256. **********
  36257. GCC plugins are loadable modules that provide extra features to the
  36258. compiler. Like GCC itself they can be distributed in source and binary
  36259. forms.
  36260. GCC plugins provide developers with a rich subset of the GCC API to
  36261. allow them to extend GCC as they see fit. Whether it is writing an
  36262. additional optimization pass, transforming code, or analyzing
  36263. information, plugins can be quite useful.
  36264. * Menu:
  36265. * Plugins loading:: How can we load plugins.
  36266. * Plugin API:: The APIs for plugins.
  36267. * Plugins pass:: How a plugin interact with the pass manager.
  36268. * Plugins GC:: How a plugin Interact with GCC Garbage Collector.
  36269. * Plugins description:: Giving information about a plugin itself.
  36270. * Plugins attr:: Registering custom attributes or pragmas.
  36271. * Plugins recording:: Recording information about pass execution.
  36272. * Plugins gate:: Controlling which passes are being run.
  36273. * Plugins tracking:: Keeping track of available passes.
  36274. * Plugins building:: How can we build a plugin.
  36275. 
  36276. File: gccint.info, Node: Plugins loading, Next: Plugin API, Up: Plugins
  36277. 24.1 Loading Plugins
  36278. ====================
  36279. Plugins are supported on platforms that support '-ldl -rdynamic' as well
  36280. as Windows/MinGW. They are loaded by the compiler using 'dlopen' or
  36281. equivalent and invoked at pre-determined locations in the compilation
  36282. process.
  36283. Plugins are loaded with
  36284. '-fplugin=/path/to/NAME.EXT' '-fplugin-arg-NAME-KEY1[=VALUE1]'
  36285. Where NAME is the plugin name and EXT is the platform-specific dynamic
  36286. library extension. It should be 'dll' on Windows/MinGW, 'dylib' on
  36287. Darwin/Mac OS X, and 'so' on all other platforms. The plugin arguments
  36288. are parsed by GCC and passed to respective plugins as key-value pairs.
  36289. Multiple plugins can be invoked by specifying multiple '-fplugin'
  36290. arguments.
  36291. A plugin can be simply given by its short name (no dots or slashes).
  36292. When simply passing '-fplugin=NAME', the plugin is loaded from the
  36293. 'plugin' directory, so '-fplugin=NAME' is the same as '-fplugin=`gcc
  36294. -print-file-name=plugin`/NAME.EXT', using backquote shell syntax to
  36295. query the 'plugin' directory.
  36296. 
  36297. File: gccint.info, Node: Plugin API, Next: Plugins pass, Prev: Plugins loading, Up: Plugins
  36298. 24.2 Plugin API
  36299. ===============
  36300. Plugins are activated by the compiler at specific events as defined in
  36301. 'gcc-plugin.h'. For each event of interest, the plugin should call
  36302. 'register_callback' specifying the name of the event and address of the
  36303. callback function that will handle that event.
  36304. The header 'gcc-plugin.h' must be the first gcc header to be included.
  36305. 24.2.1 Plugin license check
  36306. ---------------------------
  36307. Every plugin should define the global symbol 'plugin_is_GPL_compatible'
  36308. to assert that it has been licensed under a GPL-compatible license. If
  36309. this symbol does not exist, the compiler will emit a fatal error and
  36310. exit with the error message:
  36311. fatal error: plugin NAME is not licensed under a GPL-compatible license
  36312. NAME: undefined symbol: plugin_is_GPL_compatible
  36313. compilation terminated
  36314. The declared type of the symbol should be int, to match a forward
  36315. declaration in 'gcc-plugin.h' that suppresses C++ mangling. It does not
  36316. need to be in any allocated section, though. The compiler merely
  36317. asserts that the symbol exists in the global scope. Something like this
  36318. is enough:
  36319. int plugin_is_GPL_compatible;
  36320. 24.2.2 Plugin initialization
  36321. ----------------------------
  36322. Every plugin should export a function called 'plugin_init' that is
  36323. called right after the plugin is loaded. This function is responsible
  36324. for registering all the callbacks required by the plugin and do any
  36325. other required initialization.
  36326. This function is called from 'compile_file' right before invoking the
  36327. parser. The arguments to 'plugin_init' are:
  36328. * 'plugin_info': Plugin invocation information.
  36329. * 'version': GCC version.
  36330. The 'plugin_info' struct is defined as follows:
  36331. struct plugin_name_args
  36332. {
  36333. char *base_name; /* Short name of the plugin
  36334. (filename without .so suffix). */
  36335. const char *full_name; /* Path to the plugin as specified with
  36336. -fplugin=. */
  36337. int argc; /* Number of arguments specified with
  36338. -fplugin-arg-.... */
  36339. struct plugin_argument *argv; /* Array of ARGC key-value pairs. */
  36340. const char *version; /* Version string provided by plugin. */
  36341. const char *help; /* Help string provided by plugin. */
  36342. }
  36343. If initialization fails, 'plugin_init' must return a non-zero value.
  36344. Otherwise, it should return 0.
  36345. The version of the GCC compiler loading the plugin is described by the
  36346. following structure:
  36347. struct plugin_gcc_version
  36348. {
  36349. const char *basever;
  36350. const char *datestamp;
  36351. const char *devphase;
  36352. const char *revision;
  36353. const char *configuration_arguments;
  36354. };
  36355. The function 'plugin_default_version_check' takes two pointers to such
  36356. structure and compare them field by field. It can be used by the
  36357. plugin's 'plugin_init' function.
  36358. The version of GCC used to compile the plugin can be found in the
  36359. symbol 'gcc_version' defined in the header 'plugin-version.h'. The
  36360. recommended version check to perform looks like
  36361. #include "plugin-version.h"
  36362. ...
  36363. int
  36364. plugin_init (struct plugin_name_args *plugin_info,
  36365. struct plugin_gcc_version *version)
  36366. {
  36367. if (!plugin_default_version_check (version, &gcc_version))
  36368. return 1;
  36369. }
  36370. but you can also check the individual fields if you want a less strict
  36371. check.
  36372. 24.2.3 Plugin callbacks
  36373. -----------------------
  36374. Callback functions have the following prototype:
  36375. /* The prototype for a plugin callback function.
  36376. gcc_data - event-specific data provided by GCC
  36377. user_data - plugin-specific data provided by the plug-in. */
  36378. typedef void (*plugin_callback_func)(void *gcc_data, void *user_data);
  36379. Callbacks can be invoked at the following pre-determined events:
  36380. enum plugin_event
  36381. {
  36382. PLUGIN_START_PARSE_FUNCTION, /* Called before parsing the body of a function. */
  36383. PLUGIN_FINISH_PARSE_FUNCTION, /* After finishing parsing a function. */
  36384. PLUGIN_PASS_MANAGER_SETUP, /* To hook into pass manager. */
  36385. PLUGIN_FINISH_TYPE, /* After finishing parsing a type. */
  36386. PLUGIN_FINISH_DECL, /* After finishing parsing a declaration. */
  36387. PLUGIN_FINISH_UNIT, /* Useful for summary processing. */
  36388. PLUGIN_PRE_GENERICIZE, /* Allows to see low level AST in C and C++ frontends. */
  36389. PLUGIN_FINISH, /* Called before GCC exits. */
  36390. PLUGIN_INFO, /* Information about the plugin. */
  36391. PLUGIN_GGC_START, /* Called at start of GCC Garbage Collection. */
  36392. PLUGIN_GGC_MARKING, /* Extend the GGC marking. */
  36393. PLUGIN_GGC_END, /* Called at end of GGC. */
  36394. PLUGIN_REGISTER_GGC_ROOTS, /* Register an extra GGC root table. */
  36395. PLUGIN_ATTRIBUTES, /* Called during attribute registration */
  36396. PLUGIN_START_UNIT, /* Called before processing a translation unit. */
  36397. PLUGIN_PRAGMAS, /* Called during pragma registration. */
  36398. /* Called before first pass from all_passes. */
  36399. PLUGIN_ALL_PASSES_START,
  36400. /* Called after last pass from all_passes. */
  36401. PLUGIN_ALL_PASSES_END,
  36402. /* Called before first ipa pass. */
  36403. PLUGIN_ALL_IPA_PASSES_START,
  36404. /* Called after last ipa pass. */
  36405. PLUGIN_ALL_IPA_PASSES_END,
  36406. /* Allows to override pass gate decision for current_pass. */
  36407. PLUGIN_OVERRIDE_GATE,
  36408. /* Called before executing a pass. */
  36409. PLUGIN_PASS_EXECUTION,
  36410. /* Called before executing subpasses of a GIMPLE_PASS in
  36411. execute_ipa_pass_list. */
  36412. PLUGIN_EARLY_GIMPLE_PASSES_START,
  36413. /* Called after executing subpasses of a GIMPLE_PASS in
  36414. execute_ipa_pass_list. */
  36415. PLUGIN_EARLY_GIMPLE_PASSES_END,
  36416. /* Called when a pass is first instantiated. */
  36417. PLUGIN_NEW_PASS,
  36418. /* Called when a file is #include-d or given via the #line directive.
  36419. This could happen many times. The event data is the included file path,
  36420. as a const char* pointer. */
  36421. PLUGIN_INCLUDE_FILE,
  36422. /* Called when -fanalyzer starts. The event data is an
  36423. ana::plugin_analyzer_init_iface *. */
  36424. PLUGIN_ANALYZER_INIT,
  36425. PLUGIN_EVENT_FIRST_DYNAMIC /* Dummy event used for indexing callback
  36426. array. */
  36427. };
  36428. In addition, plugins can also look up the enumerator of a named event,
  36429. and / or generate new events dynamically, by calling the function
  36430. 'get_named_event_id'.
  36431. To register a callback, the plugin calls 'register_callback' with the
  36432. arguments:
  36433. * 'char *name': Plugin name.
  36434. * 'int event': The event code.
  36435. * 'plugin_callback_func callback': The function that handles 'event'.
  36436. * 'void *user_data': Pointer to plugin-specific data.
  36437. For the PLUGIN_PASS_MANAGER_SETUP, PLUGIN_INFO, and
  36438. PLUGIN_REGISTER_GGC_ROOTS pseudo-events the 'callback' should be null,
  36439. and the 'user_data' is specific.
  36440. When the PLUGIN_PRAGMAS event is triggered (with a null pointer as data
  36441. from GCC), plugins may register their own pragmas. Notice that pragmas
  36442. are not available from 'lto1', so plugins used with '-flto' option to
  36443. GCC during link-time optimization cannot use pragmas and do not even see
  36444. functions like 'c_register_pragma' or 'pragma_lex'.
  36445. The PLUGIN_INCLUDE_FILE event, with a 'const char*' file path as GCC
  36446. data, is triggered for processing of '#include' or '#line' directives.
  36447. The PLUGIN_FINISH event is the last time that plugins can call GCC
  36448. functions, notably emit diagnostics with 'warning', 'error' etc.
  36449. 
  36450. File: gccint.info, Node: Plugins pass, Next: Plugins GC, Prev: Plugin API, Up: Plugins
  36451. 24.3 Interacting with the pass manager
  36452. ======================================
  36453. There needs to be a way to add/reorder/remove passes dynamically. This
  36454. is useful for both analysis plugins (plugging in after a certain pass
  36455. such as CFG or an IPA pass) and optimization plugins.
  36456. Basic support for inserting new passes or replacing existing passes is
  36457. provided. A plugin registers a new pass with GCC by calling
  36458. 'register_callback' with the 'PLUGIN_PASS_MANAGER_SETUP' event and a
  36459. pointer to a 'struct register_pass_info' object defined as follows
  36460. enum pass_positioning_ops
  36461. {
  36462. PASS_POS_INSERT_AFTER, // Insert after the reference pass.
  36463. PASS_POS_INSERT_BEFORE, // Insert before the reference pass.
  36464. PASS_POS_REPLACE // Replace the reference pass.
  36465. };
  36466. struct register_pass_info
  36467. {
  36468. struct opt_pass *pass; /* New pass provided by the plugin. */
  36469. const char *reference_pass_name; /* Name of the reference pass for hooking
  36470. up the new pass. */
  36471. int ref_pass_instance_number; /* Insert the pass at the specified
  36472. instance number of the reference pass. */
  36473. /* Do it for every instance if it is 0. */
  36474. enum pass_positioning_ops pos_op; /* how to insert the new pass. */
  36475. };
  36476. /* Sample plugin code that registers a new pass. */
  36477. int
  36478. plugin_init (struct plugin_name_args *plugin_info,
  36479. struct plugin_gcc_version *version)
  36480. {
  36481. struct register_pass_info pass_info;
  36482. ...
  36483. /* Code to fill in the pass_info object with new pass information. */
  36484. ...
  36485. /* Register the new pass. */
  36486. register_callback (plugin_info->base_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
  36487. ...
  36488. }
  36489. 
  36490. File: gccint.info, Node: Plugins GC, Next: Plugins description, Prev: Plugins pass, Up: Plugins
  36491. 24.4 Interacting with the GCC Garbage Collector
  36492. ===============================================
  36493. Some plugins may want to be informed when GGC (the GCC Garbage
  36494. Collector) is running. They can register callbacks for the
  36495. 'PLUGIN_GGC_START' and 'PLUGIN_GGC_END' events (for which the callback
  36496. is called with a null 'gcc_data') to be notified of the start or end of
  36497. the GCC garbage collection.
  36498. Some plugins may need to have GGC mark additional data. This can be
  36499. done by registering a callback (called with a null 'gcc_data') for the
  36500. 'PLUGIN_GGC_MARKING' event. Such callbacks can call the 'ggc_set_mark'
  36501. routine, preferably through the 'ggc_mark' macro (and conversely, these
  36502. routines should usually not be used in plugins outside of the
  36503. 'PLUGIN_GGC_MARKING' event). Plugins that wish to hold weak references
  36504. to gc data may also use this event to drop weak references when the
  36505. object is about to be collected. The 'ggc_marked_p' function can be
  36506. used to tell if an object is marked, or is about to be collected. The
  36507. 'gt_clear_cache' overloads which some types define may also be of use in
  36508. managing weak references.
  36509. Some plugins may need to add extra GGC root tables, e.g. to handle
  36510. their own 'GTY'-ed data. This can be done with the
  36511. 'PLUGIN_REGISTER_GGC_ROOTS' pseudo-event with a null callback and the
  36512. extra root table (of type 'struct ggc_root_tab*') as 'user_data'.
  36513. Running the 'gengtype -p SOURCE-DIR FILE-LIST PLUGIN*.C ...' utility
  36514. generates these extra root tables.
  36515. You should understand the details of memory management inside GCC
  36516. before using 'PLUGIN_GGC_MARKING' or 'PLUGIN_REGISTER_GGC_ROOTS'.
  36517. 
  36518. File: gccint.info, Node: Plugins description, Next: Plugins attr, Prev: Plugins GC, Up: Plugins
  36519. 24.5 Giving information about a plugin
  36520. ======================================
  36521. A plugin should give some information to the user about itself. This
  36522. uses the following structure:
  36523. struct plugin_info
  36524. {
  36525. const char *version;
  36526. const char *help;
  36527. };
  36528. Such a structure is passed as the 'user_data' by the plugin's init
  36529. routine using 'register_callback' with the 'PLUGIN_INFO' pseudo-event
  36530. and a null callback.
  36531. 
  36532. File: gccint.info, Node: Plugins attr, Next: Plugins recording, Prev: Plugins description, Up: Plugins
  36533. 24.6 Registering custom attributes or pragmas
  36534. =============================================
  36535. For analysis (or other) purposes it is useful to be able to add custom
  36536. attributes or pragmas.
  36537. The 'PLUGIN_ATTRIBUTES' callback is called during attribute
  36538. registration. Use the 'register_attribute' function to register custom
  36539. attributes.
  36540. /* Attribute handler callback */
  36541. static tree
  36542. handle_user_attribute (tree *node, tree name, tree args,
  36543. int flags, bool *no_add_attrs)
  36544. {
  36545. return NULL_TREE;
  36546. }
  36547. /* Attribute definition */
  36548. static struct attribute_spec user_attr =
  36549. { "user", 1, 1, false, false, false, false, handle_user_attribute, NULL };
  36550. /* Plugin callback called during attribute registration.
  36551. Registered with register_callback (plugin_name, PLUGIN_ATTRIBUTES, register_attributes, NULL)
  36552. */
  36553. static void
  36554. register_attributes (void *event_data, void *data)
  36555. {
  36556. warning (0, G_("Callback to register attributes"));
  36557. register_attribute (&user_attr);
  36558. }
  36559. The PLUGIN_PRAGMAS callback is called once during pragmas registration.
  36560. Use the 'c_register_pragma', 'c_register_pragma_with_data',
  36561. 'c_register_pragma_with_expansion',
  36562. 'c_register_pragma_with_expansion_and_data' functions to register custom
  36563. pragmas and their handlers (which often want to call 'pragma_lex') from
  36564. 'c-family/c-pragma.h'.
  36565. /* Plugin callback called during pragmas registration. Registered with
  36566. register_callback (plugin_name, PLUGIN_PRAGMAS,
  36567. register_my_pragma, NULL);
  36568. */
  36569. static void
  36570. register_my_pragma (void *event_data, void *data)
  36571. {
  36572. warning (0, G_("Callback to register pragmas"));
  36573. c_register_pragma ("GCCPLUGIN", "sayhello", handle_pragma_sayhello);
  36574. }
  36575. It is suggested to pass '"GCCPLUGIN"' (or a short name identifying your
  36576. plugin) as the "space" argument of your pragma.
  36577. Pragmas registered with 'c_register_pragma_with_expansion' or
  36578. 'c_register_pragma_with_expansion_and_data' support preprocessor
  36579. expansions. For example:
  36580. #define NUMBER 10
  36581. #pragma GCCPLUGIN foothreshold (NUMBER)
  36582. 
  36583. File: gccint.info, Node: Plugins recording, Next: Plugins gate, Prev: Plugins attr, Up: Plugins
  36584. 24.7 Recording information about pass execution
  36585. ===============================================
  36586. The event PLUGIN_PASS_EXECUTION passes the pointer to the executed pass
  36587. (the same as current_pass) as 'gcc_data' to the callback. You can also
  36588. inspect cfun to find out about which function this pass is executed for.
  36589. Note that this event will only be invoked if the gate check (if
  36590. applicable, modified by PLUGIN_OVERRIDE_GATE) succeeds. You can use
  36591. other hooks, like 'PLUGIN_ALL_PASSES_START', 'PLUGIN_ALL_PASSES_END',
  36592. 'PLUGIN_ALL_IPA_PASSES_START', 'PLUGIN_ALL_IPA_PASSES_END',
  36593. 'PLUGIN_EARLY_GIMPLE_PASSES_START', and/or
  36594. 'PLUGIN_EARLY_GIMPLE_PASSES_END' to manipulate global state in your
  36595. plugin(s) in order to get context for the pass execution.
  36596. 
  36597. File: gccint.info, Node: Plugins gate, Next: Plugins tracking, Prev: Plugins recording, Up: Plugins
  36598. 24.8 Controlling which passes are being run
  36599. ===========================================
  36600. After the original gate function for a pass is called, its result - the
  36601. gate status - is stored as an integer. Then the event
  36602. 'PLUGIN_OVERRIDE_GATE' is invoked, with a pointer to the gate status in
  36603. the 'gcc_data' parameter to the callback function. A nonzero value of
  36604. the gate status means that the pass is to be executed. You can both
  36605. read and write the gate status via the passed pointer.
  36606. 
  36607. File: gccint.info, Node: Plugins tracking, Next: Plugins building, Prev: Plugins gate, Up: Plugins
  36608. 24.9 Keeping track of available passes
  36609. ======================================
  36610. When your plugin is loaded, you can inspect the various pass lists to
  36611. determine what passes are available. However, other plugins might add
  36612. new passes. Also, future changes to GCC might cause generic passes to
  36613. be added after plugin loading. When a pass is first added to one of the
  36614. pass lists, the event 'PLUGIN_NEW_PASS' is invoked, with the callback
  36615. parameter 'gcc_data' pointing to the new pass.
  36616. 
  36617. File: gccint.info, Node: Plugins building, Prev: Plugins tracking, Up: Plugins
  36618. 24.10 Building GCC plugins
  36619. ==========================
  36620. If plugins are enabled, GCC installs the headers needed to build a
  36621. plugin (somewhere in the installation tree, e.g. under '/usr/local').
  36622. In particular a 'plugin/include' directory is installed, containing all
  36623. the header files needed to build plugins.
  36624. On most systems, you can query this 'plugin' directory by invoking 'gcc
  36625. -print-file-name=plugin' (replace if needed 'gcc' with the appropriate
  36626. program path).
  36627. Inside plugins, this 'plugin' directory name can be queried by calling
  36628. 'default_plugin_dir_name ()'.
  36629. Plugins may know, when they are compiled, the GCC version for which
  36630. 'plugin-version.h' is provided. The constant macros
  36631. 'GCCPLUGIN_VERSION_MAJOR', 'GCCPLUGIN_VERSION_MINOR',
  36632. 'GCCPLUGIN_VERSION_PATCHLEVEL', 'GCCPLUGIN_VERSION' are integer numbers,
  36633. so a plugin could ensure it is built for GCC 4.7 with
  36634. #if GCCPLUGIN_VERSION != 4007
  36635. #error this GCC plugin is for GCC 4.7
  36636. #endif
  36637. The following GNU Makefile excerpt shows how to build a simple plugin:
  36638. HOST_GCC=g++
  36639. TARGET_GCC=gcc
  36640. PLUGIN_SOURCE_FILES= plugin1.c plugin2.cc
  36641. GCCPLUGINS_DIR:= $(shell $(TARGET_GCC) -print-file-name=plugin)
  36642. CXXFLAGS+= -I$(GCCPLUGINS_DIR)/include -fPIC -fno-rtti -O2
  36643. plugin.so: $(PLUGIN_SOURCE_FILES)
  36644. $(HOST_GCC) -shared $(CXXFLAGS) $^ -o $@
  36645. A single source file plugin may be built with 'g++ -I`gcc
  36646. -print-file-name=plugin`/include -fPIC -shared -fno-rtti -O2 plugin.c -o
  36647. plugin.so', using backquote shell syntax to query the 'plugin'
  36648. directory.
  36649. Plugin support on Windows/MinGW has a number of limitations and
  36650. additional requirements. When building a plugin on Windows we have to
  36651. link an import library for the corresponding backend executable, for
  36652. example, 'cc1.exe', 'cc1plus.exe', etc., in order to gain access to the
  36653. symbols provided by GCC. This means that on Windows a plugin is
  36654. language-specific, for example, for C, C++, etc. If you wish to use
  36655. your plugin with multiple languages, then you will need to build
  36656. multiple plugin libraries and either instruct your users on how to load
  36657. the correct version or provide a compiler wrapper that does this
  36658. automatically.
  36659. Additionally, on Windows the plugin library has to export the
  36660. 'plugin_is_GPL_compatible' and 'plugin_init' symbols. If you do not
  36661. wish to modify the source code of your plugin, then you can use the
  36662. '-Wl,--export-all-symbols' option or provide a suitable DEF file.
  36663. Alternatively, you can export just these two symbols by decorating them
  36664. with '__declspec(dllexport)', for example:
  36665. #ifdef _WIN32
  36666. __declspec(dllexport)
  36667. #endif
  36668. int plugin_is_GPL_compatible;
  36669. #ifdef _WIN32
  36670. __declspec(dllexport)
  36671. #endif
  36672. int plugin_init (plugin_name_args *, plugin_gcc_version *)
  36673. The import libraries are installed into the 'plugin' directory and
  36674. their names are derived by appending the '.a' extension to the backend
  36675. executable names, for example, 'cc1.exe.a', 'cc1plus.exe.a', etc. The
  36676. following command line shows how to build the single source file plugin
  36677. on Windows to be used with the C++ compiler:
  36678. g++ -I`gcc -print-file-name=plugin`/include -shared -Wl,--export-all-symbols \
  36679. -o plugin.dll plugin.c `gcc -print-file-name=plugin`/cc1plus.exe.a
  36680. When a plugin needs to use 'gengtype', be sure that both 'gengtype' and
  36681. 'gtype.state' have the same version as the GCC for which the plugin is
  36682. built.
  36683. 
  36684. File: gccint.info, Node: LTO, Next: Match and Simplify, Prev: Plugins, Up: Top
  36685. 25 Link Time Optimization
  36686. *************************
  36687. Link Time Optimization (LTO) gives GCC the capability of dumping its
  36688. internal representation (GIMPLE) to disk, so that all the different
  36689. compilation units that make up a single executable can be optimized as a
  36690. single module. This expands the scope of inter-procedural optimizations
  36691. to encompass the whole program (or, rather, everything that is visible
  36692. at link time).
  36693. * Menu:
  36694. * LTO Overview:: Overview of LTO.
  36695. * LTO object file layout:: LTO file sections in ELF.
  36696. * IPA:: Using summary information in IPA passes.
  36697. * WHOPR:: Whole program assumptions,
  36698. linker plugin and symbol visibilities.
  36699. * Internal flags:: Internal flags controlling 'lto1'.
  36700. 
  36701. File: gccint.info, Node: LTO Overview, Next: LTO object file layout, Up: LTO
  36702. 25.1 Design Overview
  36703. ====================
  36704. Link time optimization is implemented as a GCC front end for a bytecode
  36705. representation of GIMPLE that is emitted in special sections of '.o'
  36706. files. Currently, LTO support is enabled in most ELF-based systems, as
  36707. well as darwin, cygwin and mingw systems.
  36708. Since GIMPLE bytecode is saved alongside final object code, object
  36709. files generated with LTO support are larger than regular object files.
  36710. This "fat" object format makes it easy to integrate LTO into existing
  36711. build systems, as one can, for instance, produce archives of the files.
  36712. Additionally, one might be able to ship one set of fat objects which
  36713. could be used both for development and the production of optimized
  36714. builds. A, perhaps surprising, side effect of this feature is that any
  36715. mistake in the toolchain leads to LTO information not being used (e.g.
  36716. an older 'libtool' calling 'ld' directly). This is both an advantage,
  36717. as the system is more robust, and a disadvantage, as the user is not
  36718. informed that the optimization has been disabled.
  36719. The current implementation only produces "fat" objects, effectively
  36720. doubling compilation time and increasing file sizes up to 5x the
  36721. original size. This hides the problem that some tools, such as 'ar' and
  36722. 'nm', need to understand symbol tables of LTO sections. These tools
  36723. were extended to use the plugin infrastructure, and with these problems
  36724. solved, GCC will also support "slim" objects consisting of the
  36725. intermediate code alone.
  36726. At the highest level, LTO splits the compiler in two. The first half
  36727. (the "writer") produces a streaming representation of all the internal
  36728. data structures needed to optimize and generate code. This includes
  36729. declarations, types, the callgraph and the GIMPLE representation of
  36730. function bodies.
  36731. When '-flto' is given during compilation of a source file, the pass
  36732. manager executes all the passes in 'all_lto_gen_passes'. Currently,
  36733. this phase is composed of two IPA passes:
  36734. * 'pass_ipa_lto_gimple_out' This pass executes the function
  36735. 'lto_output' in 'lto-streamer-out.c', which traverses the call
  36736. graph encoding every reachable declaration, type and function.
  36737. This generates a memory representation of all the file sections
  36738. described below.
  36739. * 'pass_ipa_lto_finish_out' This pass executes the function
  36740. 'produce_asm_for_decls' in 'lto-streamer-out.c', which takes the
  36741. memory image built in the previous pass and encodes it in the
  36742. corresponding ELF file sections.
  36743. The second half of LTO support is the "reader". This is implemented as
  36744. the GCC front end 'lto1' in 'lto/lto.c'. When 'collect2' detects a link
  36745. set of '.o'/'.a' files with LTO information and the '-flto' is enabled,
  36746. it invokes 'lto1' which reads the set of files and aggregates them into
  36747. a single translation unit for optimization. The main entry point for
  36748. the reader is 'lto/lto.c':'lto_main'.
  36749. 25.1.1 LTO modes of operation
  36750. -----------------------------
  36751. One of the main goals of the GCC link-time infrastructure was to allow
  36752. effective compilation of large programs. For this reason GCC implements
  36753. two link-time compilation modes.
  36754. 1. _LTO mode_, in which the whole program is read into the compiler at
  36755. link-time and optimized in a similar way as if it were a single
  36756. source-level compilation unit.
  36757. 2. _WHOPR or partitioned mode_, designed to utilize multiple CPUs
  36758. and/or a distributed compilation environment to quickly link large
  36759. applications. WHOPR stands for WHOle Program optimizeR (not to be
  36760. confused with the semantics of '-fwhole-program'). It partitions
  36761. the aggregated callgraph from many different '.o' files and
  36762. distributes the compilation of the sub-graphs to different CPUs.
  36763. Note that distributed compilation is not implemented yet, but since
  36764. the parallelism is facilitated via generating a 'Makefile', it
  36765. would be easy to implement.
  36766. WHOPR splits LTO into three main stages:
  36767. 1. Local generation (LGEN) This stage executes in parallel. Every
  36768. file in the program is compiled into the intermediate language and
  36769. packaged together with the local call-graph and summary
  36770. information. This stage is the same for both the LTO and WHOPR
  36771. compilation mode.
  36772. 2. Whole Program Analysis (WPA) WPA is performed sequentially. The
  36773. global call-graph is generated, and a global analysis procedure
  36774. makes transformation decisions. The global call-graph is
  36775. partitioned to facilitate parallel optimization during phase 3.
  36776. The results of the WPA stage are stored into new object files which
  36777. contain the partitions of program expressed in the intermediate
  36778. language and the optimization decisions.
  36779. 3. Local transformations (LTRANS) This stage executes in parallel.
  36780. All the decisions made during phase 2 are implemented locally in
  36781. each partitioned object file, and the final object code is
  36782. generated. Optimizations which cannot be decided efficiently
  36783. during the phase 2 may be performed on the local call-graph
  36784. partitions.
  36785. WHOPR can be seen as an extension of the usual LTO mode of compilation.
  36786. In LTO, WPA and LTRANS are executed within a single execution of the
  36787. compiler, after the whole program has been read into memory.
  36788. When compiling in WHOPR mode, the callgraph is partitioned during the
  36789. WPA stage. The whole program is split into a given number of partitions
  36790. of roughly the same size. The compiler tries to minimize the number of
  36791. references which cross partition boundaries. The main advantage of
  36792. WHOPR is to allow the parallel execution of LTRANS stages, which are the
  36793. most time-consuming part of the compilation process. Additionally, it
  36794. avoids the need to load the whole program into memory.
  36795. 
  36796. File: gccint.info, Node: LTO object file layout, Next: IPA, Prev: LTO Overview, Up: LTO
  36797. 25.2 LTO file sections
  36798. ======================
  36799. LTO information is stored in several ELF sections inside object files.
  36800. Data structures and enum codes for sections are defined in
  36801. 'lto-streamer.h'.
  36802. These sections are emitted from 'lto-streamer-out.c' and mapped in all
  36803. at once from 'lto/lto.c':'lto_file_read'. The individual functions
  36804. dealing with the reading/writing of each section are described below.
  36805. * Command line options ('.gnu.lto_.opts')
  36806. This section contains the command line options used to generate the
  36807. object files. This is used at link time to determine the
  36808. optimization level and other settings when they are not explicitly
  36809. specified at the linker command line.
  36810. Currently, GCC does not support combining LTO object files compiled
  36811. with different set of the command line options into a single
  36812. binary. At link time, the options given on the command line and
  36813. the options saved on all the files in a link-time set are applied
  36814. globally. No attempt is made at validating the combination of
  36815. flags (other than the usual validation done by option processing).
  36816. This is implemented in 'lto/lto.c':'lto_read_all_file_options'.
  36817. * Symbol table ('.gnu.lto_.symtab')
  36818. This table replaces the ELF symbol table for functions and
  36819. variables represented in the LTO IL. Symbols used and exported by
  36820. the optimized assembly code of "fat" objects might not match the
  36821. ones used and exported by the intermediate code. This table is
  36822. necessary because the intermediate code is less optimized and thus
  36823. requires a separate symbol table.
  36824. Additionally, the binary code in the "fat" object will lack a call
  36825. to a function, since the call was optimized out at compilation time
  36826. after the intermediate language was streamed out. In some special
  36827. cases, the same optimization may not happen during link-time
  36828. optimization. This would lead to an undefined symbol if only one
  36829. symbol table was used.
  36830. The symbol table is emitted in
  36831. 'lto-streamer-out.c':'produce_symtab'.
  36832. * Global declarations and types ('.gnu.lto_.decls')
  36833. This section contains an intermediate language dump of all
  36834. declarations and types required to represent the callgraph, static
  36835. variables and top-level debug info.
  36836. The contents of this section are emitted in
  36837. 'lto-streamer-out.c':'produce_asm_for_decls'. Types and symbols
  36838. are emitted in a topological order that preserves the sharing of
  36839. pointers when the file is read back in
  36840. ('lto.c':'read_cgraph_and_symbols').
  36841. * The callgraph ('.gnu.lto_.cgraph')
  36842. This section contains the basic data structure used by the GCC
  36843. inter-procedural optimization infrastructure. This section stores
  36844. an annotated multi-graph which represents the functions and call
  36845. sites as well as the variables, aliases and top-level 'asm'
  36846. statements.
  36847. This section is emitted in 'lto-streamer-out.c':'output_cgraph' and
  36848. read in 'lto-cgraph.c':'input_cgraph'.
  36849. * IPA references ('.gnu.lto_.refs')
  36850. This section contains references between function and static
  36851. variables. It is emitted by 'lto-cgraph.c':'output_refs' and read
  36852. by 'lto-cgraph.c':'input_refs'.
  36853. * Function bodies ('.gnu.lto_.function_body.<name>')
  36854. This section contains function bodies in the intermediate language
  36855. representation. Every function body is in a separate section to
  36856. allow copying of the section independently to different object
  36857. files or reading the function on demand.
  36858. Functions are emitted in 'lto-streamer-out.c':'output_function' and
  36859. read in 'lto-streamer-in.c':'input_function'.
  36860. * Static variable initializers ('.gnu.lto_.vars')
  36861. This section contains all the symbols in the global variable pool.
  36862. It is emitted by 'lto-cgraph.c':'output_varpool' and read in
  36863. 'lto-cgraph.c':'input_cgraph'.
  36864. * Summaries and optimization summaries used by IPA passes
  36865. ('.gnu.lto_.<xxx>', where '<xxx>' is one of 'jmpfuncs', 'pureconst'
  36866. or 'reference')
  36867. These sections are used by IPA passes that need to emit summary
  36868. information during LTO generation to be read and aggregated at link
  36869. time. Each pass is responsible for implementing two pass manager
  36870. hooks: one for writing the summary and another for reading it in.
  36871. The format of these sections is entirely up to each individual
  36872. pass. The only requirement is that the writer and reader hooks
  36873. agree on the format.
  36874. 
  36875. File: gccint.info, Node: IPA, Next: WHOPR, Prev: LTO object file layout, Up: LTO
  36876. 25.3 Using summary information in IPA passes
  36877. ============================================
  36878. Programs are represented internally as a _callgraph_ (a multi-graph
  36879. where nodes are functions and edges are call sites) and a _varpool_ (a
  36880. list of static and external variables in the program).
  36881. The inter-procedural optimization is organized as a sequence of
  36882. individual passes, which operate on the callgraph and the varpool. To
  36883. make the implementation of WHOPR possible, every inter-procedural
  36884. optimization pass is split into several stages that are executed at
  36885. different times during WHOPR compilation:
  36886. * LGEN time
  36887. 1. _Generate summary_ ('generate_summary' in 'struct
  36888. ipa_opt_pass_d'). This stage analyzes every function body and
  36889. variable initializer is examined and stores relevant
  36890. information into a pass-specific data structure.
  36891. 2. _Write summary_ ('write_summary' in 'struct ipa_opt_pass_d').
  36892. This stage writes all the pass-specific information generated
  36893. by 'generate_summary'. Summaries go into their own
  36894. 'LTO_section_*' sections that have to be declared in
  36895. 'lto-streamer.h':'enum lto_section_type'. A new section is
  36896. created by calling 'create_output_block' and data can be
  36897. written using the 'lto_output_*' routines.
  36898. * WPA time
  36899. 1. _Read summary_ ('read_summary' in 'struct ipa_opt_pass_d').
  36900. This stage reads all the pass-specific information in exactly
  36901. the same order that it was written by 'write_summary'.
  36902. 2. _Execute_ ('execute' in 'struct opt_pass'). This performs
  36903. inter-procedural propagation. This must be done without
  36904. actual access to the individual function bodies or variable
  36905. initializers. Typically, this results in a transitive closure
  36906. operation over the summary information of all the nodes in the
  36907. callgraph.
  36908. 3. _Write optimization summary_ ('write_optimization_summary' in
  36909. 'struct ipa_opt_pass_d'). This writes the result of the
  36910. inter-procedural propagation into the object file. This can
  36911. use the same data structures and helper routines used in
  36912. 'write_summary'.
  36913. * LTRANS time
  36914. 1. _Read optimization summary_ ('read_optimization_summary' in
  36915. 'struct ipa_opt_pass_d'). The counterpart to
  36916. 'write_optimization_summary'. This reads the interprocedural
  36917. optimization decisions in exactly the same format emitted by
  36918. 'write_optimization_summary'.
  36919. 2. _Transform_ ('function_transform' and 'variable_transform' in
  36920. 'struct ipa_opt_pass_d'). The actual function bodies and
  36921. variable initializers are updated based on the information
  36922. passed down from the _Execute_ stage.
  36923. The implementation of the inter-procedural passes are shared between
  36924. LTO, WHOPR and classic non-LTO compilation.
  36925. * During the traditional file-by-file mode every pass executes its
  36926. own _Generate summary_, _Execute_, and _Transform_ stages within
  36927. the single execution context of the compiler.
  36928. * In LTO compilation mode, every pass uses _Generate summary_ and
  36929. _Write summary_ stages at compilation time, while the _Read
  36930. summary_, _Execute_, and _Transform_ stages are executed at link
  36931. time.
  36932. * In WHOPR mode all stages are used.
  36933. To simplify development, the GCC pass manager differentiates between
  36934. normal inter-procedural passes (*note Regular IPA passes::), small
  36935. inter-procedural passes (*note Small IPA passes::) and late
  36936. inter-procedural passes (*note Late IPA passes::). A small or late IPA
  36937. pass ('SIMPLE_IPA_PASS') does everything at once and thus cannot be
  36938. executed during WPA in WHOPR mode. It defines only the _Execute_ stage
  36939. and during this stage it accesses and modifies the function bodies.
  36940. Such passes are useful for optimization at LGEN or LTRANS time and are
  36941. used, for example, to implement early optimization before writing object
  36942. files. The simple inter-procedural passes can also be used for easier
  36943. prototyping and development of a new inter-procedural pass.
  36944. 25.3.1 Virtual clones
  36945. ---------------------
  36946. One of the main challenges of introducing the WHOPR compilation mode was
  36947. addressing the interactions between optimization passes. In LTO
  36948. compilation mode, the passes are executed in a sequence, each of which
  36949. consists of analysis (or _Generate summary_), propagation (or _Execute_)
  36950. and _Transform_ stages. Once the work of one pass is finished, the next
  36951. pass sees the updated program representation and can execute. This
  36952. makes the individual passes dependent on each other.
  36953. In WHOPR mode all passes first execute their _Generate summary_ stage.
  36954. Then summary writing marks the end of the LGEN stage. At WPA time, the
  36955. summaries are read back into memory and all passes run the _Execute_
  36956. stage. Optimization summaries are streamed and sent to LTRANS, where
  36957. all the passes execute the _Transform_ stage.
  36958. Most optimization passes split naturally into analysis, propagation and
  36959. transformation stages. But some do not. The main problem arises when
  36960. one pass performs changes and the following pass gets confused by seeing
  36961. different callgraphs between the _Transform_ stage and the _Generate
  36962. summary_ or _Execute_ stage. This means that the passes are required to
  36963. communicate their decisions with each other.
  36964. To facilitate this communication, the GCC callgraph infrastructure
  36965. implements _virtual clones_, a method of representing the changes
  36966. performed by the optimization passes in the callgraph without needing to
  36967. update function bodies.
  36968. A _virtual clone_ in the callgraph is a function that has no associated
  36969. body, just a description of how to create its body based on a different
  36970. function (which itself may be a virtual clone).
  36971. The description of function modifications includes adjustments to the
  36972. function's signature (which allows, for example, removing or adding
  36973. function arguments), substitutions to perform on the function body, and,
  36974. for inlined functions, a pointer to the function that it will be inlined
  36975. into.
  36976. It is also possible to redirect any edge of the callgraph from a
  36977. function to its virtual clone. This implies updating of the call site
  36978. to adjust for the new function signature.
  36979. Most of the transformations performed by inter-procedural optimizations
  36980. can be represented via virtual clones. For instance, a constant
  36981. propagation pass can produce a virtual clone of the function which
  36982. replaces one of its arguments by a constant. The inliner can represent
  36983. its decisions by producing a clone of a function whose body will be
  36984. later integrated into a given function.
  36985. Using _virtual clones_, the program can be easily updated during the
  36986. _Execute_ stage, solving most of pass interactions problems that would
  36987. otherwise occur during _Transform_.
  36988. Virtual clones are later materialized in the LTRANS stage and turned
  36989. into real functions. Passes executed after the virtual clone were
  36990. introduced also perform their _Transform_ stage on new functions, so for
  36991. a pass there is no significant difference between operating on a real
  36992. function or a virtual clone introduced before its _Execute_ stage.
  36993. Optimization passes then work on virtual clones introduced before their
  36994. _Execute_ stage as if they were real functions. The only difference is
  36995. that clones are not visible during the _Generate Summary_ stage.
  36996. To keep function summaries updated, the callgraph interface allows an
  36997. optimizer to register a callback that is called every time a new clone
  36998. is introduced as well as when the actual function or variable is
  36999. generated or when a function or variable is removed. These hooks are
  37000. registered in the _Generate summary_ stage and allow the pass to keep
  37001. its information intact until the _Execute_ stage. The same hooks can
  37002. also be registered during the _Execute_ stage to keep the optimization
  37003. summaries updated for the _Transform_ stage.
  37004. 25.3.2 IPA references
  37005. ---------------------
  37006. GCC represents IPA references in the callgraph. For a function or
  37007. variable 'A', the _IPA reference_ is a list of all locations where the
  37008. address of 'A' is taken and, when 'A' is a variable, a list of all
  37009. direct stores and reads to/from 'A'. References represent an oriented
  37010. multi-graph on the union of nodes of the callgraph and the varpool. See
  37011. 'ipa-reference.c':'ipa_reference_write_optimization_summary' and
  37012. 'ipa-reference.c':'ipa_reference_read_optimization_summary' for details.
  37013. 25.3.3 Jump functions
  37014. ---------------------
  37015. Suppose that an optimization pass sees a function 'A' and it knows the
  37016. values of (some of) its arguments. The _jump function_ describes the
  37017. value of a parameter of a given function call in function 'A' based on
  37018. this knowledge.
  37019. Jump functions are used by several optimizations, such as the
  37020. inter-procedural constant propagation pass and the devirtualization
  37021. pass. The inliner also uses jump functions to perform inlining of
  37022. callbacks.
  37023. 
  37024. File: gccint.info, Node: WHOPR, Next: Internal flags, Prev: IPA, Up: LTO
  37025. 25.4 Whole program assumptions, linker plugin and symbol visibilities
  37026. =====================================================================
  37027. Link-time optimization gives relatively minor benefits when used alone.
  37028. The problem is that propagation of inter-procedural information does not
  37029. work well across functions and variables that are called or referenced
  37030. by other compilation units (such as from a dynamically linked library).
  37031. We say that such functions and variables are _externally visible_.
  37032. To make the situation even more difficult, many applications organize
  37033. themselves as a set of shared libraries, and the default ELF visibility
  37034. rules allow one to overwrite any externally visible symbol with a
  37035. different symbol at runtime. This basically disables any optimizations
  37036. across such functions and variables, because the compiler cannot be sure
  37037. that the function body it is seeing is the same function body that will
  37038. be used at runtime. Any function or variable not declared 'static' in
  37039. the sources degrades the quality of inter-procedural optimization.
  37040. To avoid this problem the compiler must assume that it sees the whole
  37041. program when doing link-time optimization. Strictly speaking, the whole
  37042. program is rarely visible even at link-time. Standard system libraries
  37043. are usually linked dynamically or not provided with the link-time
  37044. information. In GCC, the whole program option ('-fwhole-program')
  37045. asserts that every function and variable defined in the current
  37046. compilation unit is static, except for function 'main' (note: at link
  37047. time, the current unit is the union of all objects compiled with LTO).
  37048. Since some functions and variables need to be referenced externally, for
  37049. example by another DSO or from an assembler file, GCC also provides the
  37050. function and variable attribute 'externally_visible' which can be used
  37051. to disable the effect of '-fwhole-program' on a specific symbol.
  37052. The whole program mode assumptions are slightly more complex in C++,
  37053. where inline functions in headers are put into _COMDAT_ sections.
  37054. COMDAT function and variables can be defined by multiple object files
  37055. and their bodies are unified at link-time and dynamic link-time. COMDAT
  37056. functions are changed to local only when their address is not taken and
  37057. thus un-sharing them with a library is not harmful. COMDAT variables
  37058. always remain externally visible, however for readonly variables it is
  37059. assumed that their initializers cannot be overwritten by a different
  37060. value.
  37061. GCC provides the function and variable attribute 'visibility' that can
  37062. be used to specify the visibility of externally visible symbols (or
  37063. alternatively an '-fdefault-visibility' command line option). ELF
  37064. defines the 'default', 'protected', 'hidden' and 'internal'
  37065. visibilities.
  37066. The most commonly used is visibility is 'hidden'. It specifies that
  37067. the symbol cannot be referenced from outside of the current shared
  37068. library. Unfortunately, this information cannot be used directly by the
  37069. link-time optimization in the compiler since the whole shared library
  37070. also might contain non-LTO objects and those are not visible to the
  37071. compiler.
  37072. GCC solves this problem using linker plugins. A _linker plugin_ is an
  37073. interface to the linker that allows an external program to claim the
  37074. ownership of a given object file. The linker then performs the linking
  37075. procedure by querying the plugin about the symbol table of the claimed
  37076. objects and once the linking decisions are complete, the plugin is
  37077. allowed to provide the final object file before the actual linking is
  37078. made. The linker plugin obtains the symbol resolution information which
  37079. specifies which symbols provided by the claimed objects are bound from
  37080. the rest of a binary being linked.
  37081. GCC is designed to be independent of the rest of the toolchain and aims
  37082. to support linkers without plugin support. For this reason it does not
  37083. use the linker plugin by default. Instead, the object files are
  37084. examined by 'collect2' before being passed to the linker and objects
  37085. found to have LTO sections are passed to 'lto1' first. This mode does
  37086. not work for library archives. The decision on what object files from
  37087. the archive are needed depends on the actual linking and thus GCC would
  37088. have to implement the linker itself. The resolution information is
  37089. missing too and thus GCC needs to make an educated guess based on
  37090. '-fwhole-program'. Without the linker plugin GCC also assumes that
  37091. symbols are declared 'hidden' and not referred by non-LTO code by
  37092. default.
  37093. 
  37094. File: gccint.info, Node: Internal flags, Prev: WHOPR, Up: LTO
  37095. 25.5 Internal flags controlling 'lto1'
  37096. ======================================
  37097. The following flags are passed into 'lto1' and are not meant to be used
  37098. directly from the command line.
  37099. * -fwpa This option runs the serial part of the link-time optimizer
  37100. performing the inter-procedural propagation (WPA mode). The
  37101. compiler reads in summary information from all inputs and performs
  37102. an analysis based on summary information only. It generates object
  37103. files for subsequent runs of the link-time optimizer where
  37104. individual object files are optimized using both summary
  37105. information from the WPA mode and the actual function bodies. It
  37106. then drives the LTRANS phase.
  37107. * -fltrans This option runs the link-time optimizer in the
  37108. local-transformation (LTRANS) mode, which reads in output from a
  37109. previous run of the LTO in WPA mode. In the LTRANS mode, LTO
  37110. optimizes an object and produces the final assembly.
  37111. * -fltrans-output-list=FILE This option specifies a file to which the
  37112. names of LTRANS output files are written. This option is only
  37113. meaningful in conjunction with '-fwpa'.
  37114. * -fresolution=FILE This option specifies the linker resolution file.
  37115. This option is only meaningful in conjunction with '-fwpa' and as
  37116. option to pass through to the LTO linker plugin.
  37117. 
  37118. File: gccint.info, Node: Match and Simplify, Next: Static Analyzer, Prev: LTO, Up: Top
  37119. 26 Match and Simplify
  37120. *********************
  37121. The GIMPLE and GENERIC pattern matching project match-and-simplify tries
  37122. to address several issues.
  37123. 1. unify expression simplifications currently spread and duplicated
  37124. over separate files like fold-const.c, gimple-fold.c and builtins.c
  37125. 2. allow for a cheap way to implement building and simplifying
  37126. non-trivial GIMPLE expressions, avoiding the need to go through
  37127. building and simplifying GENERIC via fold_buildN and then
  37128. gimplifying via force_gimple_operand
  37129. To address these the project introduces a simple domain specific
  37130. language to write expression simplifications from which code targeting
  37131. GIMPLE and GENERIC is auto-generated. The GENERIC variant follows the
  37132. fold_buildN API while for the GIMPLE variant and to address 2) new APIs
  37133. are introduced.
  37134. * Menu:
  37135. * GIMPLE API::
  37136. * The Language::
  37137. 
  37138. File: gccint.info, Node: GIMPLE API, Next: The Language, Up: Match and Simplify
  37139. 26.1 GIMPLE API
  37140. ===============
  37141. -- GIMPLE function: tree gimple_simplify (enum tree_code, tree, tree,
  37142. gimple_seq *, tree (*)(tree))
  37143. -- GIMPLE function: tree gimple_simplify (enum tree_code, tree, tree,
  37144. tree, gimple_seq *, tree (*)(tree))
  37145. -- GIMPLE function: tree gimple_simplify (enum tree_code, tree, tree,
  37146. tree, tree, gimple_seq *, tree (*)(tree))
  37147. -- GIMPLE function: tree gimple_simplify (enum built_in_function, tree,
  37148. tree, gimple_seq *, tree (*)(tree))
  37149. -- GIMPLE function: tree gimple_simplify (enum built_in_function, tree,
  37150. tree, tree, gimple_seq *, tree (*)(tree))
  37151. -- GIMPLE function: tree gimple_simplify (enum built_in_function, tree,
  37152. tree, tree, tree, gimple_seq *, tree (*)(tree))
  37153. The main GIMPLE API entry to the expression simplifications
  37154. mimicing that of the GENERIC fold_{unary,binary,ternary} functions.
  37155. thus providing n-ary overloads for operation or function. The
  37156. additional arguments are a gimple_seq where built statements are
  37157. inserted on (if 'NULL' then simplifications requiring new statements are
  37158. not performed) and a valueization hook that can be used to tie
  37159. simplifications to a SSA lattice.
  37160. In addition to those APIs 'fold_stmt' is overloaded with a valueization
  37161. hook:
  37162. -- bool: fold_stmt (gimple_stmt_iterator *, tree (*)(tree));
  37163. Ontop of these a 'fold_buildN'-like API for GIMPLE is introduced:
  37164. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  37165. tree_code, tree, tree, tree (*valueize) (tree) = NULL);
  37166. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  37167. tree_code, tree, tree, tree, tree (*valueize) (tree) = NULL);
  37168. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  37169. tree_code, tree, tree, tree, tree, tree (*valueize) (tree) =
  37170. NULL);
  37171. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  37172. built_in_function, tree, tree, tree (*valueize) (tree) =
  37173. NULL);
  37174. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  37175. built_in_function, tree, tree, tree, tree (*valueize) (tree) =
  37176. NULL);
  37177. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  37178. built_in_function, tree, tree, tree, tree, tree (*valueize)
  37179. (tree) = NULL);
  37180. -- GIMPLE function: tree gimple_convert (gimple_seq *, location_t,
  37181. tree, tree);
  37182. which is supposed to replace 'force_gimple_operand (fold_buildN (...),
  37183. ...)' and calls to 'fold_convert'. Overloads without the 'location_t'
  37184. argument exist. Built statements are inserted on the provided sequence
  37185. and simplification is performed using the optional valueization hook.
  37186. 
  37187. File: gccint.info, Node: The Language, Prev: GIMPLE API, Up: Match and Simplify
  37188. 26.2 The Language
  37189. =================
  37190. The language to write expression simplifications in resembles other
  37191. domain-specific languages GCC uses. Thus it is lispy. Lets start with
  37192. an example from the match.pd file:
  37193. (simplify
  37194. (bit_and @0 integer_all_onesp)
  37195. @0)
  37196. This example contains all required parts of an expression
  37197. simplification. A simplification is wrapped inside a '(simplify ...)'
  37198. expression. That contains at least two operands - an expression that is
  37199. matched with the GIMPLE or GENERIC IL and a replacement expression that
  37200. is returned if the match was successful.
  37201. Expressions have an operator ID, 'bit_and' in this case. Expressions
  37202. can be lower-case tree codes with '_expr' stripped off or builtin
  37203. function code names in all-caps, like 'BUILT_IN_SQRT'.
  37204. '@n' denotes a so-called capture. It captures the operand and lets you
  37205. refer to it in other places of the match-and-simplify. In the above
  37206. example it is refered to in the replacement expression. Captures are
  37207. '@' followed by a number or an identifier.
  37208. (simplify
  37209. (bit_xor @0 @0)
  37210. { build_zero_cst (type); })
  37211. In this example '@0' is mentioned twice which constrains the matched
  37212. expression to have two equal operands. Usually matches are constraint
  37213. to equal types. If operands may be constants and conversions are
  37214. involved matching by value might be preferred in which case use '@@0' to
  37215. denote a by value match and the specific operand you want to refer to in
  37216. the result part. This example also introduces operands written in C
  37217. code. These can be used in the expression replacements and are supposed
  37218. to evaluate to a tree node which has to be a valid GIMPLE operand (so
  37219. you cannot generate expressions in C code).
  37220. (simplify
  37221. (trunc_mod integer_zerop@0 @1)
  37222. (if (!integer_zerop (@1))
  37223. @0))
  37224. Here '@0' captures the first operand of the trunc_mod expression which
  37225. is also predicated with 'integer_zerop'. Expression operands may be
  37226. either expressions, predicates or captures. Captures can be
  37227. unconstrained or capture expresions or predicates.
  37228. This example introduces an optional operand of simplify, the
  37229. if-expression. This condition is evaluated after the expression matched
  37230. in the IL and is required to evaluate to true to enable the replacement
  37231. expression in the second operand position. The expression operand of
  37232. the 'if' is a standard C expression which may contain references to
  37233. captures. The 'if' has an optional third operand which may contain the
  37234. replacement expression that is enabled when the condition evaluates to
  37235. false.
  37236. A 'if' expression can be used to specify a common condition for
  37237. multiple simplify patterns, avoiding the need to repeat that multiple
  37238. times:
  37239. (if (!TYPE_SATURATING (type)
  37240. && !FLOAT_TYPE_P (type) && !FIXED_POINT_TYPE_P (type))
  37241. (simplify
  37242. (minus (plus @0 @1) @0)
  37243. @1)
  37244. (simplify
  37245. (minus (minus @0 @1) @0)
  37246. (negate @1)))
  37247. Note that 'if's in outer position do not have the optional else clause
  37248. but instead have multiple then clauses.
  37249. Ifs can be nested.
  37250. There exists a 'switch' expression which can be used to chain
  37251. conditions avoiding nesting 'if's too much:
  37252. (simplify
  37253. (simple_comparison @0 REAL_CST@1)
  37254. (switch
  37255. /* a CMP (-0) -> a CMP 0 */
  37256. (if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (@1)))
  37257. (cmp @0 { build_real (TREE_TYPE (@1), dconst0); }))
  37258. /* x != NaN is always true, other ops are always false. */
  37259. (if (REAL_VALUE_ISNAN (TREE_REAL_CST (@1))
  37260. && ! HONOR_SNANS (@1))
  37261. { constant_boolean_node (cmp == NE_EXPR, type); })))
  37262. Is equal to
  37263. (simplify
  37264. (simple_comparison @0 REAL_CST@1)
  37265. (switch
  37266. /* a CMP (-0) -> a CMP 0 */
  37267. (if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (@1)))
  37268. (cmp @0 { build_real (TREE_TYPE (@1), dconst0); })
  37269. /* x != NaN is always true, other ops are always false. */
  37270. (if (REAL_VALUE_ISNAN (TREE_REAL_CST (@1))
  37271. && ! HONOR_SNANS (@1))
  37272. { constant_boolean_node (cmp == NE_EXPR, type); }))))
  37273. which has the second 'if' in the else operand of the first. The
  37274. 'switch' expression takes 'if' expressions as operands (which may not
  37275. have else clauses) and as a last operand a replacement expression which
  37276. should be enabled by default if no other condition evaluated to true.
  37277. Captures can also be used for capturing results of sub-expressions.
  37278. #if GIMPLE
  37279. (simplify
  37280. (pointer_plus (addr@2 @0) INTEGER_CST_P@1)
  37281. (if (is_gimple_min_invariant (@2)))
  37282. {
  37283. poly_int64 off;
  37284. tree base = get_addr_base_and_unit_offset (@0, &off);
  37285. off += tree_to_uhwi (@1);
  37286. /* Now with that we should be able to simply write
  37287. (addr (mem_ref (addr @base) (plus @off @1))) */
  37288. build1 (ADDR_EXPR, type,
  37289. build2 (MEM_REF, TREE_TYPE (TREE_TYPE (@2)),
  37290. build_fold_addr_expr (base),
  37291. build_int_cst (ptr_type_node, off)));
  37292. })
  37293. #endif
  37294. In the above example, '@2' captures the result of the expression '(addr
  37295. @0)'. For outermost expression only its type can be captured, and the
  37296. keyword 'type' is reserved for this purpose. The above example also
  37297. gives a way to conditionalize patterns to only apply to 'GIMPLE' or
  37298. 'GENERIC' by means of using the pre-defined preprocessor macros 'GIMPLE'
  37299. and 'GENERIC' and using preprocessor directives.
  37300. (simplify
  37301. (bit_and:c integral_op_p@0 (bit_ior:c (bit_not @0) @1))
  37302. (bit_and @1 @0))
  37303. Here we introduce flags on match expressions. The flag used above,
  37304. 'c', denotes that the expression should be also matched commutated.
  37305. Thus the above match expression is really the following four match
  37306. expressions:
  37307. (bit_and integral_op_p@0 (bit_ior (bit_not @0) @1))
  37308. (bit_and (bit_ior (bit_not @0) @1) integral_op_p@0)
  37309. (bit_and integral_op_p@0 (bit_ior @1 (bit_not @0)))
  37310. (bit_and (bit_ior @1 (bit_not @0)) integral_op_p@0)
  37311. Usual canonicalizations you know from GENERIC expressions are applied
  37312. before matching, so for example constant operands always come second in
  37313. commutative expressions.
  37314. The second supported flag is 's' which tells the code generator to fail
  37315. the pattern if the expression marked with 's' does have more than one
  37316. use and the simplification results in an expression with more than one
  37317. operator. For example in
  37318. (simplify
  37319. (pointer_plus (pointer_plus:s @0 @1) @3)
  37320. (pointer_plus @0 (plus @1 @3)))
  37321. this avoids the association if '(pointer_plus @0 @1)' is used outside
  37322. of the matched expression and thus it would stay live and not trivially
  37323. removed by dead code elimination. Now consider '((x + 3) + -3)' with
  37324. the temporary holding '(x + 3)' used elsewhere. This simplifies down to
  37325. 'x' which is desirable and thus flagging with 's' does not prevent the
  37326. transform. Now consider '((x + 3) + 1)' which simplifies to '(x + 4)'.
  37327. Despite being flagged with 's' the simplification will be performed.
  37328. The simplification of '((x + a) + 1)' to '(x + (a + 1))' will not
  37329. performed in this case though.
  37330. More features exist to avoid too much repetition.
  37331. (for op (plus pointer_plus minus bit_ior bit_xor)
  37332. (simplify
  37333. (op @0 integer_zerop)
  37334. @0))
  37335. A 'for' expression can be used to repeat a pattern for each operator
  37336. specified, substituting 'op'. 'for' can be nested and a 'for' can have
  37337. multiple operators to iterate.
  37338. (for opa (plus minus)
  37339. opb (minus plus)
  37340. (for opc (plus minus)
  37341. (simplify...
  37342. In this example the pattern will be repeated four times with 'opa, opb,
  37343. opc' being 'plus, minus, plus'; 'plus, minus, minus'; 'minus, plus,
  37344. plus'; 'minus, plus, minus'.
  37345. To avoid repeating operator lists in 'for' you can name them via
  37346. (define_operator_list pmm plus minus mult)
  37347. and use them in 'for' operator lists where they get expanded.
  37348. (for opa (pmm trunc_div)
  37349. (simplify...
  37350. So this example iterates over 'plus', 'minus', 'mult' and 'trunc_div'.
  37351. Using operator lists can also remove the need to explicitely write a
  37352. 'for'. All operator list uses that appear in a 'simplify' or 'match'
  37353. pattern in operator positions will implicitely be added to a new 'for'.
  37354. For example
  37355. (define_operator_list SQRT BUILT_IN_SQRTF BUILT_IN_SQRT BUILT_IN_SQRTL)
  37356. (define_operator_list POW BUILT_IN_POWF BUILT_IN_POW BUILT_IN_POWL)
  37357. (simplify
  37358. (SQRT (POW @0 @1))
  37359. (POW (abs @0) (mult @1 { built_real (TREE_TYPE (@1), dconsthalf); })))
  37360. is the same as
  37361. (for SQRT (BUILT_IN_SQRTF BUILT_IN_SQRT BUILT_IN_SQRTL)
  37362. POW (BUILT_IN_POWF BUILT_IN_POW BUILT_IN_POWL)
  37363. (simplify
  37364. (SQRT (POW @0 @1))
  37365. (POW (abs @0) (mult @1 { built_real (TREE_TYPE (@1), dconsthalf); }))))
  37366. 'for's and operator lists can include the special identifier 'null'
  37367. that matches nothing and can never be generated. This can be used to
  37368. pad an operator list so that it has a standard form, even if there isn't
  37369. a suitable operator for every form.
  37370. Another building block are 'with' expressions in the result expression
  37371. which nest the generated code in a new C block followed by its argument:
  37372. (simplify
  37373. (convert (mult @0 @1))
  37374. (with { tree utype = unsigned_type_for (type); }
  37375. (convert (mult (convert:utype @0) (convert:utype @1)))))
  37376. This allows code nested in the 'with' to refer to the declared
  37377. variables. In the above case we use the feature to specify the type of
  37378. a generated expression with the ':type' syntax where 'type' needs to be
  37379. an identifier that refers to the desired type. Usually the types of the
  37380. generated result expressions are determined from the context, but
  37381. sometimes like in the above case it is required that you specify them
  37382. explicitely.
  37383. Another modifier for generated expressions is '!' which tells the
  37384. machinery to only consider the simplification in case the marked
  37385. expression simplified to a simple operand. Consider for example
  37386. (simplify
  37387. (plus (vec_cond:s @0 @1 @2) @3)
  37388. (vec_cond @0 (plus! @1 @3) (plus! @2 @3)))
  37389. which moves the outer 'plus' operation to the inner arms of the
  37390. 'vec_cond' expression but only if the actual plus operations both
  37391. simplify. Note this is currently only supported for code generation
  37392. targeting 'GIMPLE'.
  37393. As intermediate conversions are often optional there is a way to avoid
  37394. the need to repeat patterns both with and without such conversions.
  37395. Namely you can mark a conversion as being optional with a '?':
  37396. (simplify
  37397. (eq (convert@0 @1) (convert? @2))
  37398. (eq @1 (convert @2)))
  37399. which will match both '(eq (convert @1) (convert @2))' and '(eq
  37400. (convert @1) @2)'. The optional converts are supposed to be all either
  37401. present or not, thus '(eq (convert? @1) (convert? @2))' will result in
  37402. two patterns only. If you want to match all four combinations you have
  37403. access to two additional conditional converts as in '(eq (convert1? @1)
  37404. (convert2? @2))'.
  37405. The support for '?' marking extends to all unary operations including
  37406. predicates you declare yourself with 'match'.
  37407. Predicates available from the GCC middle-end need to be made available
  37408. explicitely via 'define_predicates':
  37409. (define_predicates
  37410. integer_onep integer_zerop integer_all_onesp)
  37411. You can also define predicates using the pattern matching language and
  37412. the 'match' form:
  37413. (match negate_expr_p
  37414. INTEGER_CST
  37415. (if (TYPE_OVERFLOW_WRAPS (type)
  37416. || may_negate_without_overflow_p (t))))
  37417. (match negate_expr_p
  37418. (negate @0))
  37419. This shows that for 'match' expressions there is 't' available which
  37420. captures the outermost expression (something not possible in the
  37421. 'simplify' context). As you can see 'match' has an identifier as first
  37422. operand which is how you refer to the predicate in patterns. Multiple
  37423. 'match' for the same identifier add additional cases where the predicate
  37424. matches.
  37425. Predicates can also match an expression in which case you need to
  37426. provide a template specifying the identifier and where to get its
  37427. operands from:
  37428. (match (logical_inverted_value @0)
  37429. (eq @0 integer_zerop))
  37430. (match (logical_inverted_value @0)
  37431. (bit_not truth_valued_p@0))
  37432. You can use the above predicate like
  37433. (simplify
  37434. (bit_and @0 (logical_inverted_value @0))
  37435. { build_zero_cst (type); })
  37436. Which will match a bitwise and of an operand with its logical inverted
  37437. value.
  37438. 
  37439. File: gccint.info, Node: Static Analyzer, Next: User Experience Guidelines, Prev: Match and Simplify, Up: Top
  37440. 27 Static Analyzer
  37441. ******************
  37442. * Menu:
  37443. * Analyzer Internals:: Analyzer Internals
  37444. * Debugging the Analyzer:: Useful debugging tips
  37445. 
  37446. File: gccint.info, Node: Analyzer Internals, Next: Debugging the Analyzer, Up: Static Analyzer
  37447. 27.1 Analyzer Internals
  37448. =======================
  37449. 27.1.1 Overview
  37450. ---------------
  37451. The analyzer implementation works on the gimple-SSA representation. (I
  37452. chose this in the hopes of making it easy to work with LTO to do
  37453. whole-program analysis).
  37454. The implementation is read-only: it doesn't attempt to change anything,
  37455. just emit warnings.
  37456. The gimple representation can be seen using '-fdump-ipa-analyzer'.
  37457. Tip: If the analyzer ICEs before this is written out, one
  37458. workaround is to use '--param=analyzer-bb-explosion-factor=0' to
  37459. force the analyzer to bail out after analyzing the first basic
  37460. block.
  37461. First, we build a 'supergraph' which combines the callgraph and all of
  37462. the CFGs into a single directed graph, with both interprocedural and
  37463. intraprocedural edges. The nodes and edges in the supergraph are called
  37464. "supernodes" and "superedges", and often referred to in code as 'snodes'
  37465. and 'sedges'. Basic blocks in the CFGs are split at interprocedural
  37466. calls, so there can be more than one supernode per basic block. Most
  37467. statements will be in just one supernode, but a call statement can
  37468. appear in two supernodes: at the end of one for the call, and again at
  37469. the start of another for the return.
  37470. The supergraph can be seen using '-fdump-analyzer-supergraph'.
  37471. We then build an 'analysis_plan' which walks the callgraph to determine
  37472. which calls might be suitable for being summarized (rather than fully
  37473. explored) and thus in what order to explore the functions.
  37474. Next is the heart of the analyzer: we use a worklist to explore state
  37475. within the supergraph, building an "exploded graph". Nodes in the
  37476. exploded graph correspond to <point, state> pairs, as in "Precise
  37477. Interprocedural Dataflow Analysis via Graph Reachability" (Thomas Reps,
  37478. Susan Horwitz and Mooly Sagiv).
  37479. We reuse nodes for <point, state> pairs we've already seen, and avoid
  37480. tracking state too closely, so that (hopefully) we rapidly converge on a
  37481. final exploded graph, and terminate the analysis. We also bail out if
  37482. the number of exploded <end-of-basic-block, state> nodes gets larger
  37483. than a particular multiple of the total number of basic blocks (to
  37484. ensure termination in the face of pathological state-explosion cases, or
  37485. bugs). We also stop exploring a point once we hit a limit of states for
  37486. that point.
  37487. We can identify problems directly when processing a <point, state>
  37488. instance. For example, if we're finding the successors of
  37489. <point: before-stmt: "free (ptr);",
  37490. state: {"ptr": freed}>
  37491. then we can detect a double-free of "ptr". We can then emit a path to
  37492. reach the problem by finding the simplest route through the graph.
  37493. Program points in the analysis are much more fine-grained than in the
  37494. CFG and supergraph, with points (and thus potentially exploded nodes)
  37495. for various events, including before individual statements. By default
  37496. the exploded graph merges multiple consecutive statements in a supernode
  37497. into one exploded edge to minimize the size of the exploded graph. This
  37498. can be suppressed via '-fanalyzer-fine-grained'. The fine-grained
  37499. approach seems to make things simpler and more debuggable that other
  37500. approaches I tried, in that each point is responsible for one thing.
  37501. Program points in the analysis also have a "call string" identifying
  37502. the stack of callsites below them, so that paths in the exploded graph
  37503. correspond to interprocedurally valid paths: we always return to the
  37504. correct call site, propagating state information accordingly. We avoid
  37505. infinite recursion by stopping the analysis if a callsite appears more
  37506. than 'analyzer-max-recursion-depth' in a callstring (defaulting to 2).
  37507. 27.1.2 Graphs
  37508. -------------
  37509. Nodes and edges in the exploded graph are called "exploded nodes" and
  37510. "exploded edges" and often referred to in the code as 'enodes' and
  37511. 'eedges' (especially when distinguishing them from the 'snodes' and
  37512. 'sedges' in the supergraph).
  37513. Each graph numbers its nodes, giving unique identifiers - supernodes
  37514. are referred to throughout dumps in the form 'SN': INDEX' and exploded
  37515. nodes in the form 'EN: INDEX' (e.g. 'SN: 2' and 'EN:29').
  37516. The supergraph can be seen using '-fdump-analyzer-supergraph-graph'.
  37517. The exploded graph can be seen using '-fdump-analyzer-exploded-graph'
  37518. and other dump options. Exploded nodes are color-coded in the .dot
  37519. output based on state-machine states to make it easier to see state
  37520. changes at a glance.
  37521. 27.1.3 State Tracking
  37522. ---------------------
  37523. There's a tension between:
  37524. * precision of analysis in the straight-line case, vs
  37525. * exponential blow-up in the face of control flow.
  37526. For example, in general, given this CFG:
  37527. A
  37528. / \
  37529. B C
  37530. \ /
  37531. D
  37532. / \
  37533. E F
  37534. \ /
  37535. G
  37536. we want to avoid differences in state-tracking in B and C from leading
  37537. to blow-up. If we don't prevent state blowup, we end up with
  37538. exponential growth of the exploded graph like this:
  37539. 1:A
  37540. / \
  37541. / \
  37542. / \
  37543. 2:B 3:C
  37544. | |
  37545. 4:D 5:D (2 exploded nodes for D)
  37546. / \ / \
  37547. 6:E 7:F 8:E 9:F
  37548. | | | |
  37549. 10:G 11:G 12:G 13:G (4 exploded nodes for G)
  37550. Similar issues arise with loops.
  37551. To prevent this, we follow various approaches:
  37552. a. state pruning: which tries to discard state that won't be relevant
  37553. later on withing the function. This can be disabled via
  37554. '-fno-analyzer-state-purge'.
  37555. b. state merging. We can try to find the commonality between two
  37556. program_state instances to make a third, simpler program_state. We
  37557. have two strategies here:
  37558. 1. the worklist keeps new nodes for the same program_point
  37559. together, and tries to merge them before processing, and thus
  37560. before they have successors. Hence, in the above, the two
  37561. nodes for D (4 and 5) reach the front of the worklist
  37562. together, and we create a node for D with the merger of the
  37563. incoming states.
  37564. 2. try merging with the state of existing enodes for the
  37565. program_point (which may have already been explored). There
  37566. will be duplication, but only one set of duplication;
  37567. subsequent duplicates are more likely to hit the cache. In
  37568. particular, (hopefully) all merger chains are finite, and so
  37569. we guarantee termination. This is intended to help with
  37570. loops: we ought to explore the first iteration, and then have
  37571. a "subsequent iterations" exploration, which uses a state
  37572. merged from that of the first, to be more abstract.
  37573. We avoid merging pairs of states that have state-machine
  37574. differences, as these are the kinds of differences that are likely
  37575. to be most interesting. So, for example, given:
  37576. if (condition)
  37577. ptr = malloc (size);
  37578. else
  37579. ptr = local_buf;
  37580. .... do things with 'ptr'
  37581. if (condition)
  37582. free (ptr);
  37583. ...etc
  37584. then we end up with an exploded graph that looks like this:
  37585. if (condition)
  37586. / T \ F
  37587. --------- ----------
  37588. / \
  37589. ptr = malloc (size) ptr = local_buf
  37590. | |
  37591. copy of copy of
  37592. "do things with 'ptr'" "do things with 'ptr'"
  37593. with ptr: heap-allocated with ptr: stack-allocated
  37594. | |
  37595. if (condition) if (condition)
  37596. | known to be T | known to be F
  37597. free (ptr); |
  37598. \ /
  37599. -----------------------------
  37600. | ('ptr' is pruned, so states can be merged)
  37601. etc
  37602. where some duplication has occurred, but only for the places where
  37603. the the different paths are worth exploringly separately.
  37604. Merging can be disabled via '-fno-analyzer-state-merge'.
  37605. 27.1.4 Region Model
  37606. -------------------
  37607. Part of the state stored at a 'exploded_node' is a 'region_model'. This
  37608. is an implementation of the region-based ternary model described in "A
  37609. Memory Model for Static Analysis of C Programs"
  37610. (https://www.researchgate.net/publication/221430855_A_Memory_Model_for_Static_Analysis_of_C_Programs)
  37611. (Zhongxing Xu, Ted Kremenek, and Jian Zhang).
  37612. A 'region_model' encapsulates a representation of the state of memory,
  37613. with a 'store' recording a binding between 'region' instances, to
  37614. 'svalue' instances. The bindings are organized into clusters, where
  37615. regions accessible via well-defined pointer arithmetic are in the same
  37616. cluster. The representation is graph-like because values can be
  37617. pointers to regions. It also stores a constraint_manager, capturing
  37618. relationships between the values.
  37619. Because each node in the 'exploded_graph' has a 'region_model', and
  37620. each of the latter is graph-like, the 'exploded_graph' is in some ways a
  37621. graph of graphs.
  37622. Here's an example of printing a 'program_state', showing the
  37623. 'region_model' within it, along with state for the 'malloc' state
  37624. machine.
  37625. (gdb) call debug (*this)
  37626. rmodel:
  37627. stack depth: 1
  37628. frame (index 0): frame: ‘test’@1
  37629. clusters within frame: ‘test’@1
  37630. cluster for: ptr_3: &HEAP_ALLOCATED_REGION(12)
  37631. m_called_unknown_fn: FALSE
  37632. constraint_manager:
  37633. equiv classes:
  37634. constraints:
  37635. malloc:
  37636. 0x2e89590: &HEAP_ALLOCATED_REGION(12): unchecked ('ptr_3')
  37637. This is the state at the point of returning from 'calls_malloc' back to
  37638. 'test' in the following:
  37639. void *
  37640. calls_malloc (void)
  37641. {
  37642. void *result = malloc (1024);
  37643. return result;
  37644. }
  37645. void test (void)
  37646. {
  37647. void *ptr = calls_malloc ();
  37648. /* etc. */
  37649. }
  37650. Within the store, there is the cluster for 'ptr_3' within the frame for
  37651. 'test', where the whole cluster is bound to a pointer value, pointing at
  37652. 'HEAP_ALLOCATED_REGION(12)'. Additionally, this pointer has the
  37653. 'unchecked' state for the 'malloc' state machine indicating it hasn't
  37654. yet been checked against NULL since the allocation call.
  37655. 27.1.5 Analyzer Paths
  37656. ---------------------
  37657. We need to explain to the user what the problem is, and to persuade them
  37658. that there really is a problem. Hence having a 'diagnostic_path' isn't
  37659. just an incidental detail of the analyzer; it's required.
  37660. Paths ought to be:
  37661. * interprocedurally-valid
  37662. * feasible
  37663. Without state-merging, all paths in the exploded graph are feasible (in
  37664. terms of constraints being satisfied). With state-merging, paths in the
  37665. exploded graph can be infeasible.
  37666. We collate warnings and only emit them for the simplest path e.g. for
  37667. a bug in a utility function, with lots of routes to calling it, we only
  37668. emit the simplest path (which could be intraprocedural, if it can be
  37669. reproduced without a caller).
  37670. We thus want to find the shortest feasible path through the exploded
  37671. graph from the origin to the exploded node at which the diagnostic was
  37672. saved. Unfortunately, if we simply find the shortest such path and
  37673. check if it's feasible we might falsely reject the diagnostic, as there
  37674. might be a longer path that is feasible. Examples include the cases
  37675. where the diagnostic requires us to go at least once around a loop for a
  37676. later condition to be satisfied, or where for a later condition to be
  37677. satisfied we need to enter a suite of code that the simpler path skips.
  37678. We attempt to find the shortest feasible path to each diagnostic by
  37679. first constructing a "trimmed graph" from the exploded graph, containing
  37680. only those nodes and edges from which there are paths to the target
  37681. node, and using Dijkstra's algorithm to order the trimmed nodes by
  37682. minimal distance to the target.
  37683. We then use a worklist to iteratively build a "feasible graph"
  37684. (actually a tree), capturing the pertinent state along each path, in
  37685. which every path to a "feasible node" is feasible by construction,
  37686. restricting ourselves to the trimmed graph to ensure we stay on target,
  37687. and ordering the worklist so that the first feasible path we find to the
  37688. target node is the shortest possible path. Hence we start by trying the
  37689. shortest possible path, but if that fails, we explore progressively
  37690. longer paths, eventually trying iterations through loops. The
  37691. exploration is captured in the feasible_graph, which can be dumped as a
  37692. .dot file via '-fdump-analyzer-feasibility' to visualize the
  37693. exploration. The indices of the feasible nodes show the order in which
  37694. they were created. We effectively explore the tree of feasible paths in
  37695. order of shortest path until we either find a feasible path to the
  37696. target node, or hit a limit and give up.
  37697. This is something of a brute-force approach, but the trimmed graph
  37698. hopefully keeps the complexity manageable.
  37699. This algorithm can be disabled (for debugging purposes) via
  37700. '-fno-analyzer-feasibility', which simply uses the shortest path, and
  37701. notes if it is infeasible.
  37702. The above gives us a shortest feasible 'exploded_path' through the
  37703. 'exploded_graph' (a list of 'exploded_edge *'). We use this
  37704. 'exploded_path' to build a 'diagnostic_path' (a list of *events* for the
  37705. diagnostic subsystem) - specifically a 'checker_path'.
  37706. Having built the 'checker_path', we prune it to try to eliminate events
  37707. that aren't relevant, to minimize how much the user has to read.
  37708. After pruning, we notify each event in the path of its ID and record
  37709. the IDs of interesting events, allowing for events to refer to other
  37710. events in their descriptions. The 'pending_diagnostic' class has
  37711. various vfuncs to support emitting more precise descriptions, so that
  37712. e.g.
  37713. * a deref-of-unchecked-malloc diagnostic might use:
  37714. returning possibly-NULL pointer to 'make_obj' from 'allocator'
  37715. for a 'return_event' to make it clearer how the unchecked value
  37716. moves from callee back to caller
  37717. * a double-free diagnostic might use:
  37718. second 'free' here; first 'free' was at (3)
  37719. and a use-after-free might use
  37720. use after 'free' here; memory was freed at (2)
  37721. At this point we can emit the diagnostic.
  37722. 27.1.6 Limitations
  37723. ------------------
  37724. * Only for C so far
  37725. * The implementation of call summaries is currently very simplistic.
  37726. * Lack of function pointer analysis
  37727. * The constraint-handling code assumes reflexivity in some places
  37728. (that values are equal to themselves), which is not the case for
  37729. NaN. As a simple workaround, constraints on floating-point values
  37730. are currently ignored.
  37731. * There are various other limitations in the region model (grep for
  37732. TODO/xfail in the testsuite).
  37733. * The constraint_manager's implementation of transitivity is
  37734. currently too expensive to enable by default and so must be
  37735. manually enabled via '-fanalyzer-transitivity').
  37736. * The checkers are currently hardcoded and don't allow for user
  37737. extensibility (e.g. adding allocate/release pairs).
  37738. * Although the analyzer's test suite has a proof-of-concept test case
  37739. for LTO, LTO support hasn't had extensive testing. There are
  37740. various lang-specific things in the analyzer that assume C rather
  37741. than LTO. For example, SSA names are printed to the user in "raw"
  37742. form, rather than printing the underlying variable name.
  37743. Some ideas for other checkers
  37744. * File-descriptor-based APIs
  37745. * Linux kernel internal APIs
  37746. * Signal handling
  37747. 
  37748. File: gccint.info, Node: Debugging the Analyzer, Prev: Analyzer Internals, Up: Static Analyzer
  37749. 27.2 Debugging the Analyzer
  37750. ===========================
  37751. 27.2.1 Special Functions for Debugging the Analyzer
  37752. ---------------------------------------------------
  37753. The analyzer recognizes various special functions by name, for use in
  37754. debugging the analyzer. Declarations can be seen in the testsuite in
  37755. 'analyzer-decls.h'. None of these functions are actually implemented.
  37756. Add:
  37757. __analyzer_break ();
  37758. to the source being analyzed to trigger a breakpoint in the analyzer
  37759. when that source is reached. By putting a series of these in the
  37760. source, it's much easier to effectively step through the program state
  37761. as it's analyzed.
  37762. The analyzer handles:
  37763. __analyzer_describe (0, expr);
  37764. by emitting a warning describing the 2nd argument (which can be of any
  37765. type), at a verbosity level given by the 1st argument. This is for use
  37766. when debugging, and may be of use in DejaGnu tests.
  37767. __analyzer_dump ();
  37768. will dump the copious information about the analyzer's state each time
  37769. it reaches the call in its traversal of the source.
  37770. __analyzer_dump_path ();
  37771. will emit a placeholder "note" diagnostic with a path to that call
  37772. site, if the analyzer finds a feasible path to it.
  37773. The builtin '__analyzer_dump_exploded_nodes' will emit a warning after
  37774. analysis containing information on all of the exploded nodes at that
  37775. program point:
  37776. __analyzer_dump_exploded_nodes (0);
  37777. will output the number of "processed" nodes, and the IDs of both
  37778. "processed" and "merger" nodes, such as:
  37779. warning: 2 processed enodes: [EN: 56, EN: 58] merger(s): [EN: 54-55, EN: 57, EN: 59]
  37780. With a non-zero argument
  37781. __analyzer_dump_exploded_nodes (1);
  37782. it will also dump all of the states within the "processed" nodes.
  37783. __analyzer_dump_region_model ();
  37784. will dump the region_model's state to stderr.
  37785. __analyzer_eval (expr);
  37786. will emit a warning with text "TRUE", FALSE" or "UNKNOWN" based on the
  37787. truthfulness of the argument. This is useful for writing DejaGnu tests.
  37788. 27.2.2 Other Debugging Techniques
  37789. ---------------------------------
  37790. The option '-fdump-analyzer-json' will dump both the supergraph and the
  37791. exploded graph in compressed JSON form.
  37792. One approach when tracking down where a particular bogus state is
  37793. introduced into the 'exploded_graph' is to add custom code to
  37794. 'program_state::validate'.
  37795. 
  37796. File: gccint.info, Node: User Experience Guidelines, Next: Funding, Prev: Static Analyzer, Up: Top
  37797. 28 User Experience Guidelines
  37798. *****************************
  37799. To borrow a slogan from Elm
  37800. (https://elm-lang.org/news/compilers-as-assistants),
  37801. *Compilers should be assistants, not adversaries.* A compiler
  37802. should not just detect bugs, it should then help you understand why
  37803. there is a bug. It should not berate you in a robot voice, it
  37804. should give you specific hints that help you write better code.
  37805. Ultimately, a compiler should make programming faster and more fun!
  37806. -- _Evan Czaplicki_
  37807. This chapter provides guidelines on how to implement diagnostics and
  37808. command-line options in ways that we hope achieve the above ideal.
  37809. * Menu:
  37810. * Guidelines for Diagnostics:: How to implement diagnostics.
  37811. * Guidelines for Options:: Guidelines for command-line options.
  37812. 
  37813. File: gccint.info, Node: Guidelines for Diagnostics, Next: Guidelines for Options, Up: User Experience Guidelines
  37814. 28.1 Guidelines for Diagnostics
  37815. ===============================
  37816. 28.1.1 Talk in terms of the user's code
  37817. ---------------------------------------
  37818. Diagnostics should be worded in terms of the user's source code, and the
  37819. source language, rather than GCC's own implementation details.
  37820. 28.1.2 Diagnostics are actionable
  37821. ---------------------------------
  37822. A good diagnostic is "actionable": it should assist the user in taking
  37823. action.
  37824. Consider what an end user will want to do when encountering a
  37825. diagnostic.
  37826. Given an error, an end user will think: "How do I fix this?"
  37827. Given a warning, an end user will think:
  37828. * "Is this a real problem?"
  37829. * "Do I care?"
  37830. * if they decide it's genuine: "How do I fix this?"
  37831. A good diagnostic provides pertinent information to allow the user to
  37832. easily answer the above questions.
  37833. 28.1.3 The user's attention is important
  37834. ----------------------------------------
  37835. A perfect compiler would issue a warning on every aspect of the user's
  37836. source code that ought to be fixed, and issue no other warnings.
  37837. Naturally, this ideal is impossible to achieve.
  37838. Warnings should have a good "signal-to-noise ratio": we should have few
  37839. "false positives" (falsely issuing a warning when no warning is
  37840. warranted) and few "false negatives" (failing to issue a warning when
  37841. one _is_ justified).
  37842. Note that a false positive can mean, in practice, a warning that the
  37843. user doesn't agree with. Ideally a diagnostic should contain enough
  37844. information to allow the user to make an informed choice about whether
  37845. they should care (and how to fix it), but a balance must be drawn
  37846. against overloading the user with irrelevant data.
  37847. 28.1.4 Sometimes the user didn't write the code
  37848. -----------------------------------------------
  37849. GCC is typically used in two different ways:
  37850. * Semi-interactive usage: GCC is used as a development tool when the
  37851. user is writing code, as the "compile" part of the
  37852. "edit-compile-debug" cycle. The user is actively hacking on the
  37853. code themself (perhaps a project they wrote, or someone else's),
  37854. where they just made a change to the code and want to see what
  37855. happens, and to be warned about mistakes.
  37856. * Batch rebuilds: where the user is recompiling one or more existing
  37857. packages, and GCC is a detail that's being invoked by various build
  37858. scripts. Examples include a user trying to bring up an operating
  37859. system consisting of hundreds of packages on a new CPU
  37860. architecture, where the packages were written by many different
  37861. people, or simply rebuilding packages after a dependency changed,
  37862. where the user is hoping "nothing breaks", since they are
  37863. unfamiliar with the code.
  37864. Keep both of these styles of usage in mind when implementing
  37865. diagnostics.
  37866. 28.1.5 Precision of Wording
  37867. ---------------------------
  37868. Provide the user with details that allow them to identify what the
  37869. problem is. For example, the vaguely-worded message:
  37870. demo.c:1:1: warning: 'noinline' attribute ignored [-Wattributes]
  37871. 1 | int foo __attribute__((noinline));
  37872. | ^~~
  37873. doesn't tell the user why the attribute was ignored, or what kind of
  37874. entity the compiler thought the attribute was being applied to (the
  37875. source location for the diagnostic is also poor; *note discussion of
  37876. 'input_location': input_location_example.). A better message would be:
  37877. demo.c:1:24: warning: attribute 'noinline' on variable 'foo' was
  37878. ignored [-Wattributes]
  37879. 1 | int foo __attribute__((noinline));
  37880. | ~~~ ~~~~~~~~~~~~~~~^~~~~~~~~
  37881. demo.c:1:24: note: attribute 'noinline' is only applicable to functions
  37882. which spells out the missing information (and fixes the location
  37883. information, as discussed below).
  37884. The above example uses a note to avoid a combinatorial explosion of
  37885. possible messages.
  37886. 28.1.6 Try the diagnostic on real-world code
  37887. --------------------------------------------
  37888. It's worth testing a new warning on many instances of real-world code,
  37889. written by different people, and seeing what it complains about, and
  37890. what it doesn't complain about.
  37891. This may suggest heuristics that silence common false positives.
  37892. It may also suggest ways to improve the precision of the message.
  37893. 28.1.7 Make mismatches clear
  37894. ----------------------------
  37895. Many diagnostics relate to a mismatch between two different places in
  37896. the user's source code. Examples include:
  37897. * a type mismatch, where the type at a usage site does not match the
  37898. type at a declaration
  37899. * the argument count at a call site does not match the parameter
  37900. count at the declaration
  37901. * something is erroneously duplicated (e.g. an error, due to breaking
  37902. a uniqueness requirement, or a warning, if it's suggestive of a
  37903. bug)
  37904. * an "opened" syntactic construct (such as an open-parenthesis) is
  37905. not closed
  37906. In each case, the diagnostic should indicate *both* pertinent locations
  37907. (so that the user can easily see the problem and how to fix it).
  37908. The standard way to do this is with a note (via 'inform'). For
  37909. example:
  37910. auto_diagnostic_group d;
  37911. if (warning_at (loc, OPT_Wduplicated_cond,
  37912. "duplicated %<if%> condition"))
  37913. inform (EXPR_LOCATION (t), "previously used here");
  37914. which leads to:
  37915. demo.c: In function 'test':
  37916. demo.c:5:17: warning: duplicated 'if' condition [-Wduplicated-cond]
  37917. 5 | else if (flag > 3)
  37918. | ~~~~~^~~
  37919. demo.c:3:12: note: previously used here
  37920. 3 | if (flag > 3)
  37921. | ~~~~~^~~
  37922. The 'inform' call should be guarded by the return value from the
  37923. 'warning_at' call so that the note isn't emitted when the warning is
  37924. suppressed.
  37925. For cases involving punctuation where the locations might be near each
  37926. other, they can be conditionally consolidated via
  37927. 'gcc_rich_location::add_location_if_nearby':
  37928. auto_diagnostic_group d;
  37929. gcc_rich_location richloc (primary_loc);
  37930. bool added secondary = richloc.add_location_if_nearby (secondary_loc);
  37931. error_at (&richloc, "main message");
  37932. if (!added secondary)
  37933. inform (secondary_loc, "message for secondary");
  37934. This will emit either one diagnostic with two locations:
  37935. demo.c:42:10: error: main message
  37936. (foo)
  37937. ~ ^
  37938. or two diagnostics:
  37939. demo.c:42:4: error: main message
  37940. foo)
  37941. ^
  37942. demo.c:40:2: note: message for secondary
  37943. (
  37944. ^
  37945. 28.1.8 Location Information
  37946. ---------------------------
  37947. GCC's 'location_t' type can support both ordinary locations, and
  37948. locations relating to a macro expansion.
  37949. As of GCC 6, ordinary locations changed from supporting just a point in
  37950. the user's source code to supporting three points: the "caret" location,
  37951. plus a start and a finish:
  37952. a = foo && bar;
  37953. ~~~~^~~~~~
  37954. | | |
  37955. | | finish
  37956. | caret
  37957. start
  37958. Tokens coming out of libcpp have locations of the form 'caret ==
  37959. start', such as for 'foo' here:
  37960. a = foo && bar;
  37961. ^~~
  37962. | |
  37963. | finish
  37964. caret == start
  37965. Compound expressions should be reported using the location of the
  37966. expression as a whole, rather than just of one token within it.
  37967. For example, in '-Wformat', rather than underlining just the first
  37968. token of a bad argument:
  37969. printf("hello %i %s", (long)0, "world");
  37970. ~^ ~
  37971. %li
  37972. the whole of the expression should be underlined, so that the user can
  37973. easily identify what is being referred to:
  37974. printf("hello %i %s", (long)0, "world");
  37975. ~^ ~~~~~~~
  37976. %li
  37977. Avoid using the 'input_location' global, and the diagnostic functions
  37978. that implicitly use it--use 'error_at' and 'warning_at' rather than
  37979. 'error' and 'warning', and provide the most appropriate 'location_t'
  37980. value available at that phase of the compilation. It's possible to
  37981. supply secondary 'location_t' values via 'rich_location'.
  37982. For example, in the example of imprecise wording above, generating the
  37983. diagnostic using 'warning':
  37984. // BAD: implicitly uses input_location
  37985. warning (OPT_Wattributes, "%qE attribute ignored", name);
  37986. leads to:
  37987. // BAD: uses input_location
  37988. demo.c:1:1: warning: 'noinline' attribute ignored [-Wattributes]
  37989. 1 | int foo __attribute__((noinline));
  37990. | ^~~
  37991. which thus happened to use the location of the 'int' token, rather than
  37992. that of the attribute. Using 'warning_at' with the location of the
  37993. attribute, providing the location of the declaration in question as a
  37994. secondary location, and adding a note:
  37995. auto_diagnostic_group d;
  37996. gcc_rich_location richloc (attrib_loc);
  37997. richloc.add_range (decl_loc);
  37998. if (warning_at (OPT_Wattributes, &richloc,
  37999. "attribute %qE on variable %qE was ignored", name))
  38000. inform (attrib_loc, "attribute %qE is only applicable to functions");
  38001. would lead to:
  38002. // OK: use location of attribute, with a secondary location
  38003. demo.c:1:24: warning: attribute 'noinline' on variable 'foo' was
  38004. ignored [-Wattributes]
  38005. 1 | int foo __attribute__((noinline));
  38006. | ~~~ ~~~~~~~~~~~~~~~^~~~~~~~~
  38007. demo.c:1:24: note: attribute 'noinline' is only applicable to functions
  38008. 28.1.9 Coding Conventions
  38009. -------------------------
  38010. See the diagnostics section
  38011. (https://gcc.gnu.org/codingconventions.html#Diagnostics) of the GCC
  38012. coding conventions.
  38013. In the C++ front end, when comparing two types in a message, use '%H'
  38014. and '%I' rather than '%T', as this allows the diagnostics subsystem to
  38015. highlight differences between template-based types. For example, rather
  38016. than using '%qT':
  38017. // BAD: a pair of %qT used in C++ front end for type comparison
  38018. error_at (loc, "could not convert %qE from %qT to %qT", expr,
  38019. TREE_TYPE (expr), type);
  38020. which could lead to:
  38021. error: could not convert 'map<int, double>()' from 'map<int,double>'
  38022. to 'map<int,int>'
  38023. using '%H' and '%I' (via '%qH' and '%qI'):
  38024. // OK: compare types in C++ front end via %qH and %qI
  38025. error_at (loc, "could not convert %qE from %qH to %qI", expr,
  38026. TREE_TYPE (expr), type);
  38027. allows the above output to be simplified to:
  38028. error: could not convert 'map<int, double>()' from 'map<[...],double>'
  38029. to 'map<[...],int>'
  38030. where the 'double' and 'int' are colorized to highlight them.
  38031. 28.1.10 Group logically-related diagnostics
  38032. -------------------------------------------
  38033. Use 'auto_diagnostic_group' when issuing multiple related diagnostics
  38034. (seen in various examples on this page). This informs the diagnostic
  38035. subsystem that all diagnostics issued within the lifetime of the
  38036. 'auto_diagnostic_group' are related. For example,
  38037. '-fdiagnostics-format=json' will treat the first diagnostic emitted
  38038. within the group as a top-level diagnostic, and all subsequent
  38039. diagnostics within the group as its children.
  38040. 28.1.11 Quoting
  38041. ---------------
  38042. Text should be quoted by either using the 'q' modifier in a directive
  38043. such as '%qE', or by enclosing the quoted text in a pair of '%<' and
  38044. '%>' directives, and never by using explicit quote characters. The
  38045. directives handle the appropriate quote characters for each language and
  38046. apply the correct color or highlighting.
  38047. The following elements should be quoted in GCC diagnostics:
  38048. * Language keywords.
  38049. * Tokens.
  38050. * Boolean, numerical, character, and string constants that appear in
  38051. the source code.
  38052. * Identifiers, including function, macro, type, and variable names.
  38053. Other elements such as numbers that do not refer to numeric constants
  38054. that appear in the source code should not be quoted. For example, in
  38055. the message:
  38056. argument %d of %qE must be a pointer type
  38057. since the argument number does not refer to a numerical constant in the
  38058. source code it should not be quoted.
  38059. 28.1.12 Spelling and Terminology
  38060. --------------------------------
  38061. See the terminology and markup
  38062. (https://gcc.gnu.org/codingconventions.html#Spelling Spelling) section
  38063. of the GCC coding conventions.
  38064. 28.1.13 Fix-it hints
  38065. --------------------
  38066. GCC's diagnostic subsystem can emit "fix-it hints": small suggested
  38067. edits to the user's source code.
  38068. They are printed by default underneath the code in question. They can
  38069. also be viewed via '-fdiagnostics-generate-patch' and
  38070. '-fdiagnostics-parseable-fixits'. With the latter, an IDE ought to be
  38071. able to offer to automatically apply the suggested fix.
  38072. Fix-it hints contain code fragments, and thus they should not be marked
  38073. for translation.
  38074. Fix-it hints can be added to a diagnostic by using a 'rich_location'
  38075. rather than a 'location_t' - the fix-it hints are added to the
  38076. 'rich_location' using one of the various 'add_fixit' member functions of
  38077. 'rich_location'. They are documented with 'rich_location' in
  38078. 'libcpp/line-map.h'. It's easiest to use the 'gcc_rich_location'
  38079. subclass of 'rich_location' found in 'gcc-rich-location.h', as this
  38080. implicitly supplies the 'line_table' variable.
  38081. For example:
  38082. if (const char *suggestion = hint.suggestion ())
  38083. {
  38084. gcc_rich_location richloc (location);
  38085. richloc.add_fixit_replace (suggestion);
  38086. error_at (&richloc,
  38087. "%qE does not name a type; did you mean %qs?",
  38088. id, suggestion);
  38089. }
  38090. which can lead to:
  38091. spellcheck-typenames.C:73:1: error: 'singed' does not name a type; did
  38092. you mean 'signed'?
  38093. 73 | singed char ch;
  38094. | ^~~~~~
  38095. | signed
  38096. Non-trivial edits can be built up by adding multiple fix-it hints to
  38097. one 'rich_location'. It's best to express the edits in terms of the
  38098. locations of individual tokens. Various handy functions for adding
  38099. fix-it hints for idiomatic C and C++ can be seen in
  38100. 'gcc-rich-location.h'.
  38101. 28.1.13.1 Fix-it hints should work
  38102. ..................................
  38103. When implementing a fix-it hint, please verify that the suggested edit
  38104. leads to fixed, compilable code. (Unfortunately, this currently must be
  38105. done by hand using '-fdiagnostics-generate-patch'. It would be good to
  38106. have an automated way of verifying that fix-it hints actually fix the
  38107. code).
  38108. For example, a "gotcha" here is to forget to add a space when adding a
  38109. missing reserved word. Consider a C++ fix-it hint that adds 'typename'
  38110. in front of a template declaration. A naive way to implement this might
  38111. be:
  38112. gcc_rich_location richloc (loc);
  38113. // BAD: insertion is missing a trailing space
  38114. richloc.add_fixit_insert_before ("typename");
  38115. error_at (&richloc, "need %<typename%> before %<%T::%E%> because "
  38116. "%qT is a dependent scope",
  38117. parser->scope, id, parser->scope);
  38118. When applied to the code, this might lead to:
  38119. T::type x;
  38120. being "corrected" to:
  38121. typenameT::type x;
  38122. In this case, the correct thing to do is to add a trailing space after
  38123. 'typename':
  38124. gcc_rich_location richloc (loc);
  38125. // OK: note that here we have a trailing space
  38126. richloc.add_fixit_insert_before ("typename ");
  38127. error_at (&richloc, "need %<typename%> before %<%T::%E%> because "
  38128. "%qT is a dependent scope",
  38129. parser->scope, id, parser->scope);
  38130. leading to this corrected code:
  38131. typename T::type x;
  38132. 28.1.13.2 Express deletion in terms of deletion, not replacement
  38133. ................................................................
  38134. It's best to express deletion suggestions in terms of deletion fix-it
  38135. hints, rather than replacement fix-it hints. For example, consider
  38136. this:
  38137. auto_diagnostic_group d;
  38138. gcc_rich_location richloc (location_of (retval));
  38139. tree name = DECL_NAME (arg);
  38140. richloc.add_fixit_replace (IDENTIFIER_POINTER (name));
  38141. warning_at (&richloc, OPT_Wredundant_move,
  38142. "redundant move in return statement");
  38143. which is intended to e.g. replace a 'std::move' with the underlying
  38144. value:
  38145. return std::move (retval);
  38146. ~~~~~~~~~~^~~~~~~~
  38147. retval
  38148. where the change has been expressed as replacement, replacing with the
  38149. name of the declaration. This works for simple cases, but consider this
  38150. case:
  38151. #ifdef SOME_CONFIG_FLAG
  38152. # define CONFIGURY_GLOBAL global_a
  38153. #else
  38154. # define CONFIGURY_GLOBAL global_b
  38155. #endif
  38156. int fn ()
  38157. {
  38158. return std::move (CONFIGURY_GLOBAL /* some comment */);
  38159. }
  38160. The above implementation erroneously strips out the macro and the
  38161. comment in the fix-it hint:
  38162. return std::move (CONFIGURY_GLOBAL /* some comment */);
  38163. ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  38164. global_a
  38165. and thus this resulting code:
  38166. return global_a;
  38167. It's better to do deletions in terms of deletions; deleting the
  38168. 'std::move (' and the trailing close-paren, leading to this:
  38169. return std::move (CONFIGURY_GLOBAL /* some comment */);
  38170. ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  38171. CONFIGURY_GLOBAL /* some comment */
  38172. and thus this result:
  38173. return CONFIGURY_GLOBAL /* some comment */;
  38174. Unfortunately, the pertinent 'location_t' values are not always
  38175. available.
  38176. 28.1.13.3 Multiple suggestions
  38177. ..............................
  38178. In the rare cases where you need to suggest more than one mutually
  38179. exclusive solution to a problem, this can be done by emitting multiple
  38180. notes and calling 'rich_location::fixits_cannot_be_auto_applied' on each
  38181. note's 'rich_location'. If this is called, then the fix-it hints in the
  38182. 'rich_location' will be printed, but will not be added to generated
  38183. patches.
  38184. 
  38185. File: gccint.info, Node: Guidelines for Options, Prev: Guidelines for Diagnostics, Up: User Experience Guidelines
  38186. 28.2 Guidelines for Options
  38187. ===========================
  38188. 
  38189. File: gccint.info, Node: Funding, Next: GNU Project, Prev: User Experience Guidelines, Up: Top
  38190. Funding Free Software
  38191. *********************
  38192. If you want to have more free software a few years from now, it makes
  38193. sense for you to help encourage people to contribute funds for its
  38194. development. The most effective approach known is to encourage
  38195. commercial redistributors to donate.
  38196. Users of free software systems can boost the pace of development by
  38197. encouraging for-a-fee distributors to donate part of their selling price
  38198. to free software developers--the Free Software Foundation, and others.
  38199. The way to convince distributors to do this is to demand it and expect
  38200. it from them. So when you compare distributors, judge them partly by
  38201. how much they give to free software development. Show distributors they
  38202. must compete to be the one who gives the most.
  38203. To make this approach work, you must insist on numbers that you can
  38204. compare, such as, "We will donate ten dollars to the Frobnitz project
  38205. for each disk sold." Don't be satisfied with a vague promise, such as
  38206. "A portion of the profits are donated," since it doesn't give a basis
  38207. for comparison.
  38208. Even a precise fraction "of the profits from this disk" is not very
  38209. meaningful, since creative accounting and unrelated business decisions
  38210. can greatly alter what fraction of the sales price counts as profit. If
  38211. the price you pay is $50, ten percent of the profit is probably less
  38212. than a dollar; it might be a few cents, or nothing at all.
  38213. Some redistributors do development work themselves. This is useful
  38214. too; but to keep everyone honest, you need to inquire how much they do,
  38215. and what kind. Some kinds of development make much more long-term
  38216. difference than others. For example, maintaining a separate version of
  38217. a program contributes very little; maintaining the standard version of a
  38218. program for the whole community contributes much. Easy new ports
  38219. contribute little, since someone else would surely do them; difficult
  38220. ports such as adding a new CPU to the GNU Compiler Collection contribute
  38221. more; major new features or packages contribute the most.
  38222. By establishing the idea that supporting further development is "the
  38223. proper thing to do" when distributing free software for a fee, we can
  38224. assure a steady flow of resources into making more free software.
  38225. Copyright (C) 1994 Free Software Foundation, Inc.
  38226. Verbatim copying and redistribution of this section is permitted
  38227. without royalty; alteration is not permitted.
  38228. 
  38229. File: gccint.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
  38230. The GNU Project and GNU/Linux
  38231. *****************************
  38232. The GNU Project was launched in 1984 to develop a complete Unix-like
  38233. operating system which is free software: the GNU system. (GNU is a
  38234. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  38235. Variants of the GNU operating system, which use the kernel Linux, are
  38236. now widely used; though these systems are often referred to as "Linux",
  38237. they are more accurately called GNU/Linux systems.
  38238. For more information, see:
  38239. <http://www.gnu.org/>
  38240. <http://www.gnu.org/gnu/linux-and-gnu.html>
  38241. 
  38242. File: gccint.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
  38243. GNU General Public License
  38244. **************************
  38245. Version 3, 29 June 2007
  38246. Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  38247. Everyone is permitted to copy and distribute verbatim copies of this
  38248. license document, but changing it is not allowed.
  38249. Preamble
  38250. ========
  38251. The GNU General Public License is a free, copyleft license for software
  38252. and other kinds of works.
  38253. The licenses for most software and other practical works are designed
  38254. to take away your freedom to share and change the works. By contrast,
  38255. the GNU General Public License is intended to guarantee your freedom to
  38256. share and change all versions of a program-to make sure it remains free
  38257. software for all its users. We, the Free Software Foundation, use the
  38258. GNU General Public License for most of our software; it applies also to
  38259. any other work released this way by its authors. You can apply it to
  38260. your programs, too.
  38261. When we speak of free software, we are referring to freedom, not price.
  38262. Our General Public Licenses are designed to make sure that you have the
  38263. freedom to distribute copies of free software (and charge for them if
  38264. you wish), that you receive source code or can get it if you want it,
  38265. that you can change the software or use pieces of it in new free
  38266. programs, and that you know you can do these things.
  38267. To protect your rights, we need to prevent others from denying you
  38268. these rights or asking you to surrender the rights. Therefore, you have
  38269. certain responsibilities if you distribute copies of the software, or if
  38270. you modify it: responsibilities to respect the freedom of others.
  38271. For example, if you distribute copies of such a program, whether gratis
  38272. or for a fee, you must pass on to the recipients the same freedoms that
  38273. you received. You must make sure that they, too, receive or can get the
  38274. source code. And you must show them these terms so they know their
  38275. rights.
  38276. Developers that use the GNU GPL protect your rights with two steps: (1)
  38277. assert copyright on the software, and (2) offer you this License giving
  38278. you legal permission to copy, distribute and/or modify it.
  38279. For the developers' and authors' protection, the GPL clearly explains
  38280. that there is no warranty for this free software. For both users' and
  38281. authors' sake, the GPL requires that modified versions be marked as
  38282. changed, so that their problems will not be attributed erroneously to
  38283. authors of previous versions.
  38284. Some devices are designed to deny users access to install or run
  38285. modified versions of the software inside them, although the manufacturer
  38286. can do so. This is fundamentally incompatible with the aim of
  38287. protecting users' freedom to change the software. The systematic
  38288. pattern of such abuse occurs in the area of products for individuals to
  38289. use, which is precisely where it is most unacceptable. Therefore, we
  38290. have designed this version of the GPL to prohibit the practice for those
  38291. products. If such problems arise substantially in other domains, we
  38292. stand ready to extend this provision to those domains in future versions
  38293. of the GPL, as needed to protect the freedom of users.
  38294. Finally, every program is threatened constantly by software patents.
  38295. States should not allow patents to restrict development and use of
  38296. software on general-purpose computers, but in those that do, we wish to
  38297. avoid the special danger that patents applied to a free program could
  38298. make it effectively proprietary. To prevent this, the GPL assures that
  38299. patents cannot be used to render the program non-free.
  38300. The precise terms and conditions for copying, distribution and
  38301. modification follow.
  38302. TERMS AND CONDITIONS
  38303. ====================
  38304. 0. Definitions.
  38305. "This License" refers to version 3 of the GNU General Public
  38306. License.
  38307. "Copyright" also means copyright-like laws that apply to other
  38308. kinds of works, such as semiconductor masks.
  38309. "The Program" refers to any copyrightable work licensed under this
  38310. License. Each licensee is addressed as "you". "Licensees" and
  38311. "recipients" may be individuals or organizations.
  38312. To "modify" a work means to copy from or adapt all or part of the
  38313. work in a fashion requiring copyright permission, other than the
  38314. making of an exact copy. The resulting work is called a "modified
  38315. version" of the earlier work or a work "based on" the earlier work.
  38316. A "covered work" means either the unmodified Program or a work
  38317. based on the Program.
  38318. To "propagate" a work means to do anything with it that, without
  38319. permission, would make you directly or secondarily liable for
  38320. infringement under applicable copyright law, except executing it on
  38321. a computer or modifying a private copy. Propagation includes
  38322. copying, distribution (with or without modification), making
  38323. available to the public, and in some countries other activities as
  38324. well.
  38325. To "convey" a work means any kind of propagation that enables other
  38326. parties to make or receive copies. Mere interaction with a user
  38327. through a computer network, with no transfer of a copy, is not
  38328. conveying.
  38329. An interactive user interface displays "Appropriate Legal Notices"
  38330. to the extent that it includes a convenient and prominently visible
  38331. feature that (1) displays an appropriate copyright notice, and (2)
  38332. tells the user that there is no warranty for the work (except to
  38333. the extent that warranties are provided), that licensees may convey
  38334. the work under this License, and how to view a copy of this
  38335. License. If the interface presents a list of user commands or
  38336. options, such as a menu, a prominent item in the list meets this
  38337. criterion.
  38338. 1. Source Code.
  38339. The "source code" for a work means the preferred form of the work
  38340. for making modifications to it. "Object code" means any non-source
  38341. form of a work.
  38342. A "Standard Interface" means an interface that either is an
  38343. official standard defined by a recognized standards body, or, in
  38344. the case of interfaces specified for a particular programming
  38345. language, one that is widely used among developers working in that
  38346. language.
  38347. The "System Libraries" of an executable work include anything,
  38348. other than the work as a whole, that (a) is included in the normal
  38349. form of packaging a Major Component, but which is not part of that
  38350. Major Component, and (b) serves only to enable use of the work with
  38351. that Major Component, or to implement a Standard Interface for
  38352. which an implementation is available to the public in source code
  38353. form. A "Major Component", in this context, means a major
  38354. essential component (kernel, window system, and so on) of the
  38355. specific operating system (if any) on which the executable work
  38356. runs, or a compiler used to produce the work, or an object code
  38357. interpreter used to run it.
  38358. The "Corresponding Source" for a work in object code form means all
  38359. the source code needed to generate, install, and (for an executable
  38360. work) run the object code and to modify the work, including scripts
  38361. to control those activities. However, it does not include the
  38362. work's System Libraries, or general-purpose tools or generally
  38363. available free programs which are used unmodified in performing
  38364. those activities but which are not part of the work. For example,
  38365. Corresponding Source includes interface definition files associated
  38366. with source files for the work, and the source code for shared
  38367. libraries and dynamically linked subprograms that the work is
  38368. specifically designed to require, such as by intimate data
  38369. communication or control flow between those subprograms and other
  38370. parts of the work.
  38371. The Corresponding Source need not include anything that users can
  38372. regenerate automatically from other parts of the Corresponding
  38373. Source.
  38374. The Corresponding Source for a work in source code form is that
  38375. same work.
  38376. 2. Basic Permissions.
  38377. All rights granted under this License are granted for the term of
  38378. copyright on the Program, and are irrevocable provided the stated
  38379. conditions are met. This License explicitly affirms your unlimited
  38380. permission to run the unmodified Program. The output from running
  38381. a covered work is covered by this License only if the output, given
  38382. its content, constitutes a covered work. This License acknowledges
  38383. your rights of fair use or other equivalent, as provided by
  38384. copyright law.
  38385. You may make, run and propagate covered works that you do not
  38386. convey, without conditions so long as your license otherwise
  38387. remains in force. You may convey covered works to others for the
  38388. sole purpose of having them make modifications exclusively for you,
  38389. or provide you with facilities for running those works, provided
  38390. that you comply with the terms of this License in conveying all
  38391. material for which you do not control copyright. Those thus making
  38392. or running the covered works for you must do so exclusively on your
  38393. behalf, under your direction and control, on terms that prohibit
  38394. them from making any copies of your copyrighted material outside
  38395. their relationship with you.
  38396. Conveying under any other circumstances is permitted solely under
  38397. the conditions stated below. Sublicensing is not allowed; section
  38398. 10 makes it unnecessary.
  38399. 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  38400. No covered work shall be deemed part of an effective technological
  38401. measure under any applicable law fulfilling obligations under
  38402. article 11 of the WIPO copyright treaty adopted on 20 December
  38403. 1996, or similar laws prohibiting or restricting circumvention of
  38404. such measures.
  38405. When you convey a covered work, you waive any legal power to forbid
  38406. circumvention of technological measures to the extent such
  38407. circumvention is effected by exercising rights under this License
  38408. with respect to the covered work, and you disclaim any intention to
  38409. limit operation or modification of the work as a means of
  38410. enforcing, against the work's users, your or third parties' legal
  38411. rights to forbid circumvention of technological measures.
  38412. 4. Conveying Verbatim Copies.
  38413. You may convey verbatim copies of the Program's source code as you
  38414. receive it, in any medium, provided that you conspicuously and
  38415. appropriately publish on each copy an appropriate copyright notice;
  38416. keep intact all notices stating that this License and any
  38417. non-permissive terms added in accord with section 7 apply to the
  38418. code; keep intact all notices of the absence of any warranty; and
  38419. give all recipients a copy of this License along with the Program.
  38420. You may charge any price or no price for each copy that you convey,
  38421. and you may offer support or warranty protection for a fee.
  38422. 5. Conveying Modified Source Versions.
  38423. You may convey a work based on the Program, or the modifications to
  38424. produce it from the Program, in the form of source code under the
  38425. terms of section 4, provided that you also meet all of these
  38426. conditions:
  38427. a. The work must carry prominent notices stating that you
  38428. modified it, and giving a relevant date.
  38429. b. The work must carry prominent notices stating that it is
  38430. released under this License and any conditions added under
  38431. section 7. This requirement modifies the requirement in
  38432. section 4 to "keep intact all notices".
  38433. c. You must license the entire work, as a whole, under this
  38434. License to anyone who comes into possession of a copy. This
  38435. License will therefore apply, along with any applicable
  38436. section 7 additional terms, to the whole of the work, and all
  38437. its parts, regardless of how they are packaged. This License
  38438. gives no permission to license the work in any other way, but
  38439. it does not invalidate such permission if you have separately
  38440. received it.
  38441. d. If the work has interactive user interfaces, each must display
  38442. Appropriate Legal Notices; however, if the Program has
  38443. interactive interfaces that do not display Appropriate Legal
  38444. Notices, your work need not make them do so.
  38445. A compilation of a covered work with other separate and independent
  38446. works, which are not by their nature extensions of the covered
  38447. work, and which are not combined with it such as to form a larger
  38448. program, in or on a volume of a storage or distribution medium, is
  38449. called an "aggregate" if the compilation and its resulting
  38450. copyright are not used to limit the access or legal rights of the
  38451. compilation's users beyond what the individual works permit.
  38452. Inclusion of a covered work in an aggregate does not cause this
  38453. License to apply to the other parts of the aggregate.
  38454. 6. Conveying Non-Source Forms.
  38455. You may convey a covered work in object code form under the terms
  38456. of sections 4 and 5, provided that you also convey the
  38457. machine-readable Corresponding Source under the terms of this
  38458. License, in one of these ways:
  38459. a. Convey the object code in, or embodied in, a physical product
  38460. (including a physical distribution medium), accompanied by the
  38461. Corresponding Source fixed on a durable physical medium
  38462. customarily used for software interchange.
  38463. b. Convey the object code in, or embodied in, a physical product
  38464. (including a physical distribution medium), accompanied by a
  38465. written offer, valid for at least three years and valid for as
  38466. long as you offer spare parts or customer support for that
  38467. product model, to give anyone who possesses the object code
  38468. either (1) a copy of the Corresponding Source for all the
  38469. software in the product that is covered by this License, on a
  38470. durable physical medium customarily used for software
  38471. interchange, for a price no more than your reasonable cost of
  38472. physically performing this conveying of source, or (2) access
  38473. to copy the Corresponding Source from a network server at no
  38474. charge.
  38475. c. Convey individual copies of the object code with a copy of the
  38476. written offer to provide the Corresponding Source. This
  38477. alternative is allowed only occasionally and noncommercially,
  38478. and only if you received the object code with such an offer,
  38479. in accord with subsection 6b.
  38480. d. Convey the object code by offering access from a designated
  38481. place (gratis or for a charge), and offer equivalent access to
  38482. the Corresponding Source in the same way through the same
  38483. place at no further charge. You need not require recipients
  38484. to copy the Corresponding Source along with the object code.
  38485. If the place to copy the object code is a network server, the
  38486. Corresponding Source may be on a different server (operated by
  38487. you or a third party) that supports equivalent copying
  38488. facilities, provided you maintain clear directions next to the
  38489. object code saying where to find the Corresponding Source.
  38490. Regardless of what server hosts the Corresponding Source, you
  38491. remain obligated to ensure that it is available for as long as
  38492. needed to satisfy these requirements.
  38493. e. Convey the object code using peer-to-peer transmission,
  38494. provided you inform other peers where the object code and
  38495. Corresponding Source of the work are being offered to the
  38496. general public at no charge under subsection 6d.
  38497. A separable portion of the object code, whose source code is
  38498. excluded from the Corresponding Source as a System Library, need
  38499. not be included in conveying the object code work.
  38500. A "User Product" is either (1) a "consumer product", which means
  38501. any tangible personal property which is normally used for personal,
  38502. family, or household purposes, or (2) anything designed or sold for
  38503. incorporation into a dwelling. In determining whether a product is
  38504. a consumer product, doubtful cases shall be resolved in favor of
  38505. coverage. For a particular product received by a particular user,
  38506. "normally used" refers to a typical or common use of that class of
  38507. product, regardless of the status of the particular user or of the
  38508. way in which the particular user actually uses, or expects or is
  38509. expected to use, the product. A product is a consumer product
  38510. regardless of whether the product has substantial commercial,
  38511. industrial or non-consumer uses, unless such uses represent the
  38512. only significant mode of use of the product.
  38513. "Installation Information" for a User Product means any methods,
  38514. procedures, authorization keys, or other information required to
  38515. install and execute modified versions of a covered work in that
  38516. User Product from a modified version of its Corresponding Source.
  38517. The information must suffice to ensure that the continued
  38518. functioning of the modified object code is in no case prevented or
  38519. interfered with solely because modification has been made.
  38520. If you convey an object code work under this section in, or with,
  38521. or specifically for use in, a User Product, and the conveying
  38522. occurs as part of a transaction in which the right of possession
  38523. and use of the User Product is transferred to the recipient in
  38524. perpetuity or for a fixed term (regardless of how the transaction
  38525. is characterized), the Corresponding Source conveyed under this
  38526. section must be accompanied by the Installation Information. But
  38527. this requirement does not apply if neither you nor any third party
  38528. retains the ability to install modified object code on the User
  38529. Product (for example, the work has been installed in ROM).
  38530. The requirement to provide Installation Information does not
  38531. include a requirement to continue to provide support service,
  38532. warranty, or updates for a work that has been modified or installed
  38533. by the recipient, or for the User Product in which it has been
  38534. modified or installed. Access to a network may be denied when the
  38535. modification itself materially and adversely affects the operation
  38536. of the network or violates the rules and protocols for
  38537. communication across the network.
  38538. Corresponding Source conveyed, and Installation Information
  38539. provided, in accord with this section must be in a format that is
  38540. publicly documented (and with an implementation available to the
  38541. public in source code form), and must require no special password
  38542. or key for unpacking, reading or copying.
  38543. 7. Additional Terms.
  38544. "Additional permissions" are terms that supplement the terms of
  38545. this License by making exceptions from one or more of its
  38546. conditions. Additional permissions that are applicable to the
  38547. entire Program shall be treated as though they were included in
  38548. this License, to the extent that they are valid under applicable
  38549. law. If additional permissions apply only to part of the Program,
  38550. that part may be used separately under those permissions, but the
  38551. entire Program remains governed by this License without regard to
  38552. the additional permissions.
  38553. When you convey a copy of a covered work, you may at your option
  38554. remove any additional permissions from that copy, or from any part
  38555. of it. (Additional permissions may be written to require their own
  38556. removal in certain cases when you modify the work.) You may place
  38557. additional permissions on material, added by you to a covered work,
  38558. for which you have or can give appropriate copyright permission.
  38559. Notwithstanding any other provision of this License, for material
  38560. you add to a covered work, you may (if authorized by the copyright
  38561. holders of that material) supplement the terms of this License with
  38562. terms:
  38563. a. Disclaiming warranty or limiting liability differently from
  38564. the terms of sections 15 and 16 of this License; or
  38565. b. Requiring preservation of specified reasonable legal notices
  38566. or author attributions in that material or in the Appropriate
  38567. Legal Notices displayed by works containing it; or
  38568. c. Prohibiting misrepresentation of the origin of that material,
  38569. or requiring that modified versions of such material be marked
  38570. in reasonable ways as different from the original version; or
  38571. d. Limiting the use for publicity purposes of names of licensors
  38572. or authors of the material; or
  38573. e. Declining to grant rights under trademark law for use of some
  38574. trade names, trademarks, or service marks; or
  38575. f. Requiring indemnification of licensors and authors of that
  38576. material by anyone who conveys the material (or modified
  38577. versions of it) with contractual assumptions of liability to
  38578. the recipient, for any liability that these contractual
  38579. assumptions directly impose on those licensors and authors.
  38580. All other non-permissive additional terms are considered "further
  38581. restrictions" within the meaning of section 10. If the Program as
  38582. you received it, or any part of it, contains a notice stating that
  38583. it is governed by this License along with a term that is a further
  38584. restriction, you may remove that term. If a license document
  38585. contains a further restriction but permits relicensing or conveying
  38586. under this License, you may add to a covered work material governed
  38587. by the terms of that license document, provided that the further
  38588. restriction does not survive such relicensing or conveying.
  38589. If you add terms to a covered work in accord with this section, you
  38590. must place, in the relevant source files, a statement of the
  38591. additional terms that apply to those files, or a notice indicating
  38592. where to find the applicable terms.
  38593. Additional terms, permissive or non-permissive, may be stated in
  38594. the form of a separately written license, or stated as exceptions;
  38595. the above requirements apply either way.
  38596. 8. Termination.
  38597. You may not propagate or modify a covered work except as expressly
  38598. provided under this License. Any attempt otherwise to propagate or
  38599. modify it is void, and will automatically terminate your rights
  38600. under this License (including any patent licenses granted under the
  38601. third paragraph of section 11).
  38602. However, if you cease all violation of this License, then your
  38603. license from a particular copyright holder is reinstated (a)
  38604. provisionally, unless and until the copyright holder explicitly and
  38605. finally terminates your license, and (b) permanently, if the
  38606. copyright holder fails to notify you of the violation by some
  38607. reasonable means prior to 60 days after the cessation.
  38608. Moreover, your license from a particular copyright holder is
  38609. reinstated permanently if the copyright holder notifies you of the
  38610. violation by some reasonable means, this is the first time you have
  38611. received notice of violation of this License (for any work) from
  38612. that copyright holder, and you cure the violation prior to 30 days
  38613. after your receipt of the notice.
  38614. Termination of your rights under this section does not terminate
  38615. the licenses of parties who have received copies or rights from you
  38616. under this License. If your rights have been terminated and not
  38617. permanently reinstated, you do not qualify to receive new licenses
  38618. for the same material under section 10.
  38619. 9. Acceptance Not Required for Having Copies.
  38620. You are not required to accept this License in order to receive or
  38621. run a copy of the Program. Ancillary propagation of a covered work
  38622. occurring solely as a consequence of using peer-to-peer
  38623. transmission to receive a copy likewise does not require
  38624. acceptance. However, nothing other than this License grants you
  38625. permission to propagate or modify any covered work. These actions
  38626. infringe copyright if you do not accept this License. Therefore,
  38627. by modifying or propagating a covered work, you indicate your
  38628. acceptance of this License to do so.
  38629. 10. Automatic Licensing of Downstream Recipients.
  38630. Each time you convey a covered work, the recipient automatically
  38631. receives a license from the original licensors, to run, modify and
  38632. propagate that work, subject to this License. You are not
  38633. responsible for enforcing compliance by third parties with this
  38634. License.
  38635. An "entity transaction" is a transaction transferring control of an
  38636. organization, or substantially all assets of one, or subdividing an
  38637. organization, or merging organizations. If propagation of a
  38638. covered work results from an entity transaction, each party to that
  38639. transaction who receives a copy of the work also receives whatever
  38640. licenses to the work the party's predecessor in interest had or
  38641. could give under the previous paragraph, plus a right to possession
  38642. of the Corresponding Source of the work from the predecessor in
  38643. interest, if the predecessor has it or can get it with reasonable
  38644. efforts.
  38645. You may not impose any further restrictions on the exercise of the
  38646. rights granted or affirmed under this License. For example, you
  38647. may not impose a license fee, royalty, or other charge for exercise
  38648. of rights granted under this License, and you may not initiate
  38649. litigation (including a cross-claim or counterclaim in a lawsuit)
  38650. alleging that any patent claim is infringed by making, using,
  38651. selling, offering for sale, or importing the Program or any portion
  38652. of it.
  38653. 11. Patents.
  38654. A "contributor" is a copyright holder who authorizes use under this
  38655. License of the Program or a work on which the Program is based.
  38656. The work thus licensed is called the contributor's "contributor
  38657. version".
  38658. A contributor's "essential patent claims" are all patent claims
  38659. owned or controlled by the contributor, whether already acquired or
  38660. hereafter acquired, that would be infringed by some manner,
  38661. permitted by this License, of making, using, or selling its
  38662. contributor version, but do not include claims that would be
  38663. infringed only as a consequence of further modification of the
  38664. contributor version. For purposes of this definition, "control"
  38665. includes the right to grant patent sublicenses in a manner
  38666. consistent with the requirements of this License.
  38667. Each contributor grants you a non-exclusive, worldwide,
  38668. royalty-free patent license under the contributor's essential
  38669. patent claims, to make, use, sell, offer for sale, import and
  38670. otherwise run, modify and propagate the contents of its contributor
  38671. version.
  38672. In the following three paragraphs, a "patent license" is any
  38673. express agreement or commitment, however denominated, not to
  38674. enforce a patent (such as an express permission to practice a
  38675. patent or covenant not to sue for patent infringement). To "grant"
  38676. such a patent license to a party means to make such an agreement or
  38677. commitment not to enforce a patent against the party.
  38678. If you convey a covered work, knowingly relying on a patent
  38679. license, and the Corresponding Source of the work is not available
  38680. for anyone to copy, free of charge and under the terms of this
  38681. License, through a publicly available network server or other
  38682. readily accessible means, then you must either (1) cause the
  38683. Corresponding Source to be so available, or (2) arrange to deprive
  38684. yourself of the benefit of the patent license for this particular
  38685. work, or (3) arrange, in a manner consistent with the requirements
  38686. of this License, to extend the patent license to downstream
  38687. recipients. "Knowingly relying" means you have actual knowledge
  38688. that, but for the patent license, your conveying the covered work
  38689. in a country, or your recipient's use of the covered work in a
  38690. country, would infringe one or more identifiable patents in that
  38691. country that you have reason to believe are valid.
  38692. If, pursuant to or in connection with a single transaction or
  38693. arrangement, you convey, or propagate by procuring conveyance of, a
  38694. covered work, and grant a patent license to some of the parties
  38695. receiving the covered work authorizing them to use, propagate,
  38696. modify or convey a specific copy of the covered work, then the
  38697. patent license you grant is automatically extended to all
  38698. recipients of the covered work and works based on it.
  38699. A patent license is "discriminatory" if it does not include within
  38700. the scope of its coverage, prohibits the exercise of, or is
  38701. conditioned on the non-exercise of one or more of the rights that
  38702. are specifically granted under this License. You may not convey a
  38703. covered work if you are a party to an arrangement with a third
  38704. party that is in the business of distributing software, under which
  38705. you make payment to the third party based on the extent of your
  38706. activity of conveying the work, and under which the third party
  38707. grants, to any of the parties who would receive the covered work
  38708. from you, a discriminatory patent license (a) in connection with
  38709. copies of the covered work conveyed by you (or copies made from
  38710. those copies), or (b) primarily for and in connection with specific
  38711. products or compilations that contain the covered work, unless you
  38712. entered into that arrangement, or that patent license was granted,
  38713. prior to 28 March 2007.
  38714. Nothing in this License shall be construed as excluding or limiting
  38715. any implied license or other defenses to infringement that may
  38716. otherwise be available to you under applicable patent law.
  38717. 12. No Surrender of Others' Freedom.
  38718. If conditions are imposed on you (whether by court order, agreement
  38719. or otherwise) that contradict the conditions of this License, they
  38720. do not excuse you from the conditions of this License. If you
  38721. cannot convey a covered work so as to satisfy simultaneously your
  38722. obligations under this License and any other pertinent obligations,
  38723. then as a consequence you may not convey it at all. For example,
  38724. if you agree to terms that obligate you to collect a royalty for
  38725. further conveying from those to whom you convey the Program, the
  38726. only way you could satisfy both those terms and this License would
  38727. be to refrain entirely from conveying the Program.
  38728. 13. Use with the GNU Affero General Public License.
  38729. Notwithstanding any other provision of this License, you have
  38730. permission to link or combine any covered work with a work licensed
  38731. under version 3 of the GNU Affero General Public License into a
  38732. single combined work, and to convey the resulting work. The terms
  38733. of this License will continue to apply to the part which is the
  38734. covered work, but the special requirements of the GNU Affero
  38735. General Public License, section 13, concerning interaction through
  38736. a network will apply to the combination as such.
  38737. 14. Revised Versions of this License.
  38738. The Free Software Foundation may publish revised and/or new
  38739. versions of the GNU General Public License from time to time. Such
  38740. new versions will be similar in spirit to the present version, but
  38741. may differ in detail to address new problems or concerns.
  38742. Each version is given a distinguishing version number. If the
  38743. Program specifies that a certain numbered version of the GNU
  38744. General Public License "or any later version" applies to it, you
  38745. have the option of following the terms and conditions either of
  38746. that numbered version or of any later version published by the Free
  38747. Software Foundation. If the Program does not specify a version
  38748. number of the GNU General Public License, you may choose any
  38749. version ever published by the Free Software Foundation.
  38750. If the Program specifies that a proxy can decide which future
  38751. versions of the GNU General Public License can be used, that
  38752. proxy's public statement of acceptance of a version permanently
  38753. authorizes you to choose that version for the Program.
  38754. Later license versions may give you additional or different
  38755. permissions. However, no additional obligations are imposed on any
  38756. author or copyright holder as a result of your choosing to follow a
  38757. later version.
  38758. 15. Disclaimer of Warranty.
  38759. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  38760. APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
  38761. COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
  38762. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  38763. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  38764. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
  38765. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
  38766. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  38767. NECESSARY SERVICING, REPAIR OR CORRECTION.
  38768. 16. Limitation of Liability.
  38769. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  38770. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
  38771. AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  38772. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  38773. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
  38774. THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  38775. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  38776. PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  38777. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
  38778. THE POSSIBILITY OF SUCH DAMAGES.
  38779. 17. Interpretation of Sections 15 and 16.
  38780. If the disclaimer of warranty and limitation of liability provided
  38781. above cannot be given local legal effect according to their terms,
  38782. reviewing courts shall apply local law that most closely
  38783. approximates an absolute waiver of all civil liability in
  38784. connection with the Program, unless a warranty or assumption of
  38785. liability accompanies a copy of the Program in return for a fee.
  38786. END OF TERMS AND CONDITIONS
  38787. ===========================
  38788. How to Apply These Terms to Your New Programs
  38789. =============================================
  38790. If you develop a new program, and you want it to be of the greatest
  38791. possible use to the public, the best way to achieve this is to make it
  38792. free software which everyone can redistribute and change under these
  38793. terms.
  38794. To do so, attach the following notices to the program. It is safest to
  38795. attach them to the start of each source file to most effectively state
  38796. the exclusion of warranty; and each file should have at least the
  38797. "copyright" line and a pointer to where the full notice is found.
  38798. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  38799. Copyright (C) YEAR NAME OF AUTHOR
  38800. This program is free software: you can redistribute it and/or modify
  38801. it under the terms of the GNU General Public License as published by
  38802. the Free Software Foundation, either version 3 of the License, or (at
  38803. your option) any later version.
  38804. This program is distributed in the hope that it will be useful, but
  38805. WITHOUT ANY WARRANTY; without even the implied warranty of
  38806. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  38807. General Public License for more details.
  38808. You should have received a copy of the GNU General Public License
  38809. along with this program. If not, see <http://www.gnu.org/licenses/>.
  38810. Also add information on how to contact you by electronic and paper
  38811. mail.
  38812. If the program does terminal interaction, make it output a short notice
  38813. like this when it starts in an interactive mode:
  38814. PROGRAM Copyright (C) YEAR NAME OF AUTHOR
  38815. This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
  38816. This is free software, and you are welcome to redistribute it
  38817. under certain conditions; type 'show c' for details.
  38818. The hypothetical commands 'show w' and 'show c' should show the
  38819. appropriate parts of the General Public License. Of course, your
  38820. program's commands might be different; for a GUI interface, you would
  38821. use an "about box".
  38822. You should also get your employer (if you work as a programmer) or
  38823. school, if any, to sign a "copyright disclaimer" for the program, if
  38824. necessary. For more information on this, and how to apply and follow
  38825. the GNU GPL, see <http://www.gnu.org/licenses/>.
  38826. The GNU General Public License does not permit incorporating your
  38827. program into proprietary programs. If your program is a subroutine
  38828. library, you may consider it more useful to permit linking proprietary
  38829. applications with the library. If this is what you want to do, use the
  38830. GNU Lesser General Public License instead of this License. But first,
  38831. please read <https://www.gnu.org/licenses/why-not-lgpl.html>.
  38832. 
  38833. File: gccint.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
  38834. GNU Free Documentation License
  38835. ******************************
  38836. Version 1.3, 3 November 2008
  38837. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  38838. <http://fsf.org/>
  38839. Everyone is permitted to copy and distribute verbatim copies
  38840. of this license document, but changing it is not allowed.
  38841. 0. PREAMBLE
  38842. The purpose of this License is to make a manual, textbook, or other
  38843. functional and useful document "free" in the sense of freedom: to
  38844. assure everyone the effective freedom to copy and redistribute it,
  38845. with or without modifying it, either commercially or
  38846. noncommercially. Secondarily, this License preserves for the
  38847. author and publisher a way to get credit for their work, while not
  38848. being considered responsible for modifications made by others.
  38849. This License is a kind of "copyleft", which means that derivative
  38850. works of the document must themselves be free in the same sense.
  38851. It complements the GNU General Public License, which is a copyleft
  38852. license designed for free software.
  38853. We have designed this License in order to use it for manuals for
  38854. free software, because free software needs free documentation: a
  38855. free program should come with manuals providing the same freedoms
  38856. that the software does. But this License is not limited to
  38857. software manuals; it can be used for any textual work, regardless
  38858. of subject matter or whether it is published as a printed book. We
  38859. recommend this License principally for works whose purpose is
  38860. instruction or reference.
  38861. 1. APPLICABILITY AND DEFINITIONS
  38862. This License applies to any manual or other work, in any medium,
  38863. that contains a notice placed by the copyright holder saying it can
  38864. be distributed under the terms of this License. Such a notice
  38865. grants a world-wide, royalty-free license, unlimited in duration,
  38866. to use that work under the conditions stated herein. The
  38867. "Document", below, refers to any such manual or work. Any member
  38868. of the public is a licensee, and is addressed as "you". You accept
  38869. the license if you copy, modify or distribute the work in a way
  38870. requiring permission under copyright law.
  38871. A "Modified Version" of the Document means any work containing the
  38872. Document or a portion of it, either copied verbatim, or with
  38873. modifications and/or translated into another language.
  38874. A "Secondary Section" is a named appendix or a front-matter section
  38875. of the Document that deals exclusively with the relationship of the
  38876. publishers or authors of the Document to the Document's overall
  38877. subject (or to related matters) and contains nothing that could
  38878. fall directly within that overall subject. (Thus, if the Document
  38879. is in part a textbook of mathematics, a Secondary Section may not
  38880. explain any mathematics.) The relationship could be a matter of
  38881. historical connection with the subject or with related matters, or
  38882. of legal, commercial, philosophical, ethical or political position
  38883. regarding them.
  38884. The "Invariant Sections" are certain Secondary Sections whose
  38885. titles are designated, as being those of Invariant Sections, in the
  38886. notice that says that the Document is released under this License.
  38887. If a section does not fit the above definition of Secondary then it
  38888. is not allowed to be designated as Invariant. The Document may
  38889. contain zero Invariant Sections. If the Document does not identify
  38890. any Invariant Sections then there are none.
  38891. The "Cover Texts" are certain short passages of text that are
  38892. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  38893. that says that the Document is released under this License. A
  38894. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  38895. be at most 25 words.
  38896. A "Transparent" copy of the Document means a machine-readable copy,
  38897. represented in a format whose specification is available to the
  38898. general public, that is suitable for revising the document
  38899. straightforwardly with generic text editors or (for images composed
  38900. of pixels) generic paint programs or (for drawings) some widely
  38901. available drawing editor, and that is suitable for input to text
  38902. formatters or for automatic translation to a variety of formats
  38903. suitable for input to text formatters. A copy made in an otherwise
  38904. Transparent file format whose markup, or absence of markup, has
  38905. been arranged to thwart or discourage subsequent modification by
  38906. readers is not Transparent. An image format is not Transparent if
  38907. used for any substantial amount of text. A copy that is not
  38908. "Transparent" is called "Opaque".
  38909. Examples of suitable formats for Transparent copies include plain
  38910. ASCII without markup, Texinfo input format, LaTeX input format,
  38911. SGML or XML using a publicly available DTD, and standard-conforming
  38912. simple HTML, PostScript or PDF designed for human modification.
  38913. Examples of transparent image formats include PNG, XCF and JPG.
  38914. Opaque formats include proprietary formats that can be read and
  38915. edited only by proprietary word processors, SGML or XML for which
  38916. the DTD and/or processing tools are not generally available, and
  38917. the machine-generated HTML, PostScript or PDF produced by some word
  38918. processors for output purposes only.
  38919. The "Title Page" means, for a printed book, the title page itself,
  38920. plus such following pages as are needed to hold, legibly, the
  38921. material this License requires to appear in the title page. For
  38922. works in formats which do not have any title page as such, "Title
  38923. Page" means the text near the most prominent appearance of the
  38924. work's title, preceding the beginning of the body of the text.
  38925. The "publisher" means any person or entity that distributes copies
  38926. of the Document to the public.
  38927. A section "Entitled XYZ" means a named subunit of the Document
  38928. whose title either is precisely XYZ or contains XYZ in parentheses
  38929. following text that translates XYZ in another language. (Here XYZ
  38930. stands for a specific section name mentioned below, such as
  38931. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  38932. To "Preserve the Title" of such a section when you modify the
  38933. Document means that it remains a section "Entitled XYZ" according
  38934. to this definition.
  38935. The Document may include Warranty Disclaimers next to the notice
  38936. which states that this License applies to the Document. These
  38937. Warranty Disclaimers are considered to be included by reference in
  38938. this License, but only as regards disclaiming warranties: any other
  38939. implication that these Warranty Disclaimers may have is void and
  38940. has no effect on the meaning of this License.
  38941. 2. VERBATIM COPYING
  38942. You may copy and distribute the Document in any medium, either
  38943. commercially or noncommercially, provided that this License, the
  38944. copyright notices, and the license notice saying this License
  38945. applies to the Document are reproduced in all copies, and that you
  38946. add no other conditions whatsoever to those of this License. You
  38947. may not use technical measures to obstruct or control the reading
  38948. or further copying of the copies you make or distribute. However,
  38949. you may accept compensation in exchange for copies. If you
  38950. distribute a large enough number of copies you must also follow the
  38951. conditions in section 3.
  38952. You may also lend copies, under the same conditions stated above,
  38953. and you may publicly display copies.
  38954. 3. COPYING IN QUANTITY
  38955. If you publish printed copies (or copies in media that commonly
  38956. have printed covers) of the Document, numbering more than 100, and
  38957. the Document's license notice requires Cover Texts, you must
  38958. enclose the copies in covers that carry, clearly and legibly, all
  38959. these Cover Texts: Front-Cover Texts on the front cover, and
  38960. Back-Cover Texts on the back cover. Both covers must also clearly
  38961. and legibly identify you as the publisher of these copies. The
  38962. front cover must present the full title with all words of the title
  38963. equally prominent and visible. You may add other material on the
  38964. covers in addition. Copying with changes limited to the covers, as
  38965. long as they preserve the title of the Document and satisfy these
  38966. conditions, can be treated as verbatim copying in other respects.
  38967. If the required texts for either cover are too voluminous to fit
  38968. legibly, you should put the first ones listed (as many as fit
  38969. reasonably) on the actual cover, and continue the rest onto
  38970. adjacent pages.
  38971. If you publish or distribute Opaque copies of the Document
  38972. numbering more than 100, you must either include a machine-readable
  38973. Transparent copy along with each Opaque copy, or state in or with
  38974. each Opaque copy a computer-network location from which the general
  38975. network-using public has access to download using public-standard
  38976. network protocols a complete Transparent copy of the Document, free
  38977. of added material. If you use the latter option, you must take
  38978. reasonably prudent steps, when you begin distribution of Opaque
  38979. copies in quantity, to ensure that this Transparent copy will
  38980. remain thus accessible at the stated location until at least one
  38981. year after the last time you distribute an Opaque copy (directly or
  38982. through your agents or retailers) of that edition to the public.
  38983. It is requested, but not required, that you contact the authors of
  38984. the Document well before redistributing any large number of copies,
  38985. to give them a chance to provide you with an updated version of the
  38986. Document.
  38987. 4. MODIFICATIONS
  38988. You may copy and distribute a Modified Version of the Document
  38989. under the conditions of sections 2 and 3 above, provided that you
  38990. release the Modified Version under precisely this License, with the
  38991. Modified Version filling the role of the Document, thus licensing
  38992. distribution and modification of the Modified Version to whoever
  38993. possesses a copy of it. In addition, you must do these things in
  38994. the Modified Version:
  38995. A. Use in the Title Page (and on the covers, if any) a title
  38996. distinct from that of the Document, and from those of previous
  38997. versions (which should, if there were any, be listed in the
  38998. History section of the Document). You may use the same title
  38999. as a previous version if the original publisher of that
  39000. version gives permission.
  39001. B. List on the Title Page, as authors, one or more persons or
  39002. entities responsible for authorship of the modifications in
  39003. the Modified Version, together with at least five of the
  39004. principal authors of the Document (all of its principal
  39005. authors, if it has fewer than five), unless they release you
  39006. from this requirement.
  39007. C. State on the Title page the name of the publisher of the
  39008. Modified Version, as the publisher.
  39009. D. Preserve all the copyright notices of the Document.
  39010. E. Add an appropriate copyright notice for your modifications
  39011. adjacent to the other copyright notices.
  39012. F. Include, immediately after the copyright notices, a license
  39013. notice giving the public permission to use the Modified
  39014. Version under the terms of this License, in the form shown in
  39015. the Addendum below.
  39016. G. Preserve in that license notice the full lists of Invariant
  39017. Sections and required Cover Texts given in the Document's
  39018. license notice.
  39019. H. Include an unaltered copy of this License.
  39020. I. Preserve the section Entitled "History", Preserve its Title,
  39021. and add to it an item stating at least the title, year, new
  39022. authors, and publisher of the Modified Version as given on the
  39023. Title Page. If there is no section Entitled "History" in the
  39024. Document, create one stating the title, year, authors, and
  39025. publisher of the Document as given on its Title Page, then add
  39026. an item describing the Modified Version as stated in the
  39027. previous sentence.
  39028. J. Preserve the network location, if any, given in the Document
  39029. for public access to a Transparent copy of the Document, and
  39030. likewise the network locations given in the Document for
  39031. previous versions it was based on. These may be placed in the
  39032. "History" section. You may omit a network location for a work
  39033. that was published at least four years before the Document
  39034. itself, or if the original publisher of the version it refers
  39035. to gives permission.
  39036. K. For any section Entitled "Acknowledgements" or "Dedications",
  39037. Preserve the Title of the section, and preserve in the section
  39038. all the substance and tone of each of the contributor
  39039. acknowledgements and/or dedications given therein.
  39040. L. Preserve all the Invariant Sections of the Document, unaltered
  39041. in their text and in their titles. Section numbers or the
  39042. equivalent are not considered part of the section titles.
  39043. M. Delete any section Entitled "Endorsements". Such a section
  39044. may not be included in the Modified Version.
  39045. N. Do not retitle any existing section to be Entitled
  39046. "Endorsements" or to conflict in title with any Invariant
  39047. Section.
  39048. O. Preserve any Warranty Disclaimers.
  39049. If the Modified Version includes new front-matter sections or
  39050. appendices that qualify as Secondary Sections and contain no
  39051. material copied from the Document, you may at your option designate
  39052. some or all of these sections as invariant. To do this, add their
  39053. titles to the list of Invariant Sections in the Modified Version's
  39054. license notice. These titles must be distinct from any other
  39055. section titles.
  39056. You may add a section Entitled "Endorsements", provided it contains
  39057. nothing but endorsements of your Modified Version by various
  39058. parties--for example, statements of peer review or that the text
  39059. has been approved by an organization as the authoritative
  39060. definition of a standard.
  39061. You may add a passage of up to five words as a Front-Cover Text,
  39062. and a passage of up to 25 words as a Back-Cover Text, to the end of
  39063. the list of Cover Texts in the Modified Version. Only one passage
  39064. of Front-Cover Text and one of Back-Cover Text may be added by (or
  39065. through arrangements made by) any one entity. If the Document
  39066. already includes a cover text for the same cover, previously added
  39067. by you or by arrangement made by the same entity you are acting on
  39068. behalf of, you may not add another; but you may replace the old
  39069. one, on explicit permission from the previous publisher that added
  39070. the old one.
  39071. The author(s) and publisher(s) of the Document do not by this
  39072. License give permission to use their names for publicity for or to
  39073. assert or imply endorsement of any Modified Version.
  39074. 5. COMBINING DOCUMENTS
  39075. You may combine the Document with other documents released under
  39076. this License, under the terms defined in section 4 above for
  39077. modified versions, provided that you include in the combination all
  39078. of the Invariant Sections of all of the original documents,
  39079. unmodified, and list them all as Invariant Sections of your
  39080. combined work in its license notice, and that you preserve all
  39081. their Warranty Disclaimers.
  39082. The combined work need only contain one copy of this License, and
  39083. multiple identical Invariant Sections may be replaced with a single
  39084. copy. If there are multiple Invariant Sections with the same name
  39085. but different contents, make the title of each such section unique
  39086. by adding at the end of it, in parentheses, the name of the
  39087. original author or publisher of that section if known, or else a
  39088. unique number. Make the same adjustment to the section titles in
  39089. the list of Invariant Sections in the license notice of the
  39090. combined work.
  39091. In the combination, you must combine any sections Entitled
  39092. "History" in the various original documents, forming one section
  39093. Entitled "History"; likewise combine any sections Entitled
  39094. "Acknowledgements", and any sections Entitled "Dedications". You
  39095. must delete all sections Entitled "Endorsements."
  39096. 6. COLLECTIONS OF DOCUMENTS
  39097. You may make a collection consisting of the Document and other
  39098. documents released under this License, and replace the individual
  39099. copies of this License in the various documents with a single copy
  39100. that is included in the collection, provided that you follow the
  39101. rules of this License for verbatim copying of each of the documents
  39102. in all other respects.
  39103. You may extract a single document from such a collection, and
  39104. distribute it individually under this License, provided you insert
  39105. a copy of this License into the extracted document, and follow this
  39106. License in all other respects regarding verbatim copying of that
  39107. document.
  39108. 7. AGGREGATION WITH INDEPENDENT WORKS
  39109. A compilation of the Document or its derivatives with other
  39110. separate and independent documents or works, in or on a volume of a
  39111. storage or distribution medium, is called an "aggregate" if the
  39112. copyright resulting from the compilation is not used to limit the
  39113. legal rights of the compilation's users beyond what the individual
  39114. works permit. When the Document is included in an aggregate, this
  39115. License does not apply to the other works in the aggregate which
  39116. are not themselves derivative works of the Document.
  39117. If the Cover Text requirement of section 3 is applicable to these
  39118. copies of the Document, then if the Document is less than one half
  39119. of the entire aggregate, the Document's Cover Texts may be placed
  39120. on covers that bracket the Document within the aggregate, or the
  39121. electronic equivalent of covers if the Document is in electronic
  39122. form. Otherwise they must appear on printed covers that bracket
  39123. the whole aggregate.
  39124. 8. TRANSLATION
  39125. Translation is considered a kind of modification, so you may
  39126. distribute translations of the Document under the terms of section
  39127. 4. Replacing Invariant Sections with translations requires special
  39128. permission from their copyright holders, but you may include
  39129. translations of some or all Invariant Sections in addition to the
  39130. original versions of these Invariant Sections. You may include a
  39131. translation of this License, and all the license notices in the
  39132. Document, and any Warranty Disclaimers, provided that you also
  39133. include the original English version of this License and the
  39134. original versions of those notices and disclaimers. In case of a
  39135. disagreement between the translation and the original version of
  39136. this License or a notice or disclaimer, the original version will
  39137. prevail.
  39138. If a section in the Document is Entitled "Acknowledgements",
  39139. "Dedications", or "History", the requirement (section 4) to
  39140. Preserve its Title (section 1) will typically require changing the
  39141. actual title.
  39142. 9. TERMINATION
  39143. You may not copy, modify, sublicense, or distribute the Document
  39144. except as expressly provided under this License. Any attempt
  39145. otherwise to copy, modify, sublicense, or distribute it is void,
  39146. and will automatically terminate your rights under this License.
  39147. However, if you cease all violation of this License, then your
  39148. license from a particular copyright holder is reinstated (a)
  39149. provisionally, unless and until the copyright holder explicitly and
  39150. finally terminates your license, and (b) permanently, if the
  39151. copyright holder fails to notify you of the violation by some
  39152. reasonable means prior to 60 days after the cessation.
  39153. Moreover, your license from a particular copyright holder is
  39154. reinstated permanently if the copyright holder notifies you of the
  39155. violation by some reasonable means, this is the first time you have
  39156. received notice of violation of this License (for any work) from
  39157. that copyright holder, and you cure the violation prior to 30 days
  39158. after your receipt of the notice.
  39159. Termination of your rights under this section does not terminate
  39160. the licenses of parties who have received copies or rights from you
  39161. under this License. If your rights have been terminated and not
  39162. permanently reinstated, receipt of a copy of some or all of the
  39163. same material does not give you any rights to use it.
  39164. 10. FUTURE REVISIONS OF THIS LICENSE
  39165. The Free Software Foundation may publish new, revised versions of
  39166. the GNU Free Documentation License from time to time. Such new
  39167. versions will be similar in spirit to the present version, but may
  39168. differ in detail to address new problems or concerns. See
  39169. <http://www.gnu.org/copyleft/>.
  39170. Each version of the License is given a distinguishing version
  39171. number. If the Document specifies that a particular numbered
  39172. version of this License "or any later version" applies to it, you
  39173. have the option of following the terms and conditions either of
  39174. that specified version or of any later version that has been
  39175. published (not as a draft) by the Free Software Foundation. If the
  39176. Document does not specify a version number of this License, you may
  39177. choose any version ever published (not as a draft) by the Free
  39178. Software Foundation. If the Document specifies that a proxy can
  39179. decide which future versions of this License can be used, that
  39180. proxy's public statement of acceptance of a version permanently
  39181. authorizes you to choose that version for the Document.
  39182. 11. RELICENSING
  39183. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  39184. World Wide Web server that publishes copyrightable works and also
  39185. provides prominent facilities for anybody to edit those works. A
  39186. public wiki that anybody can edit is an example of such a server.
  39187. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  39188. site means any set of copyrightable works thus published on the MMC
  39189. site.
  39190. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  39191. license published by Creative Commons Corporation, a not-for-profit
  39192. corporation with a principal place of business in San Francisco,
  39193. California, as well as future copyleft versions of that license
  39194. published by that same organization.
  39195. "Incorporate" means to publish or republish a Document, in whole or
  39196. in part, as part of another Document.
  39197. An MMC is "eligible for relicensing" if it is licensed under this
  39198. License, and if all works that were first published under this
  39199. License somewhere other than this MMC, and subsequently
  39200. incorporated in whole or in part into the MMC, (1) had no cover
  39201. texts or invariant sections, and (2) were thus incorporated prior
  39202. to November 1, 2008.
  39203. The operator of an MMC Site may republish an MMC contained in the
  39204. site under CC-BY-SA on the same site at any time before August 1,
  39205. 2009, provided the MMC is eligible for relicensing.
  39206. ADDENDUM: How to use this License for your documents
  39207. ====================================================
  39208. To use this License in a document you have written, include a copy of
  39209. the License in the document and put the following copyright and license
  39210. notices just after the title page:
  39211. Copyright (C) YEAR YOUR NAME.
  39212. Permission is granted to copy, distribute and/or modify this document
  39213. under the terms of the GNU Free Documentation License, Version 1.3
  39214. or any later version published by the Free Software Foundation;
  39215. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  39216. Texts. A copy of the license is included in the section entitled ``GNU
  39217. Free Documentation License''.
  39218. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  39219. replace the "with...Texts." line with this:
  39220. with the Invariant Sections being LIST THEIR TITLES, with
  39221. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  39222. being LIST.
  39223. If you have Invariant Sections without Cover Texts, or some other
  39224. combination of the three, merge those two alternatives to suit the
  39225. situation.
  39226. If your document contains nontrivial examples of program code, we
  39227. recommend releasing these examples in parallel under your choice of free
  39228. software license, such as the GNU General Public License, to permit
  39229. their use in free software.
  39230. 
  39231. File: gccint.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
  39232. Contributors to GCC
  39233. *******************
  39234. The GCC project would like to thank its many contributors. Without them
  39235. the project would not have been nearly as successful as it has been.
  39236. Any omissions in this list are accidental. Feel free to contact
  39237. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  39238. some of your contributions are not listed. Please keep this list in
  39239. alphabetical order.
  39240. * Analog Devices helped implement the support for complex data types
  39241. and iterators.
  39242. * John David Anglin for threading-related fixes and improvements to
  39243. libstdc++-v3, and the HP-UX port.
  39244. * James van Artsdalen wrote the code that makes efficient use of the
  39245. Intel 80387 register stack.
  39246. * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  39247. Series port.
  39248. * Alasdair Baird for various bug fixes.
  39249. * Giovanni Bajo for analyzing lots of complicated C++ problem
  39250. reports.
  39251. * Peter Barada for his work to improve code generation for new
  39252. ColdFire cores.
  39253. * Gerald Baumgartner added the signature extension to the C++ front
  39254. end.
  39255. * Godmar Back for his Java improvements and encouragement.
  39256. * Scott Bambrough for help porting the Java compiler.
  39257. * Wolfgang Bangerth for processing tons of bug reports.
  39258. * Jon Beniston for his Microsoft Windows port of Java and port to
  39259. Lattice Mico32.
  39260. * Daniel Berlin for better DWARF 2 support, faster/better
  39261. optimizations, improved alias analysis, plus migrating GCC to
  39262. Bugzilla.
  39263. * Geoff Berry for his Java object serialization work and various
  39264. patches.
  39265. * David Binderman tests weekly snapshots of GCC trunk against Fedora
  39266. Rawhide for several architectures.
  39267. * Laurynas Biveinis for memory management work and DJGPP port fixes.
  39268. * Uros Bizjak for the implementation of x87 math built-in functions
  39269. and for various middle end and i386 back end improvements and bug
  39270. fixes.
  39271. * Eric Blake for helping to make GCJ and libgcj conform to the
  39272. specifications.
  39273. * Janne Blomqvist for contributions to GNU Fortran.
  39274. * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  39275. other Java work.
  39276. * Segher Boessenkool for helping maintain the PowerPC port and the
  39277. instruction combiner plus various contributions to the middle end.
  39278. * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  39279. miscellaneous clean-ups.
  39280. * Steven Bosscher for integrating the GNU Fortran front end into GCC
  39281. and for contributing to the tree-ssa branch.
  39282. * Eric Botcazou for fixing middle- and backend bugs left and right.
  39283. * Per Bothner for his direction via the steering committee and
  39284. various improvements to the infrastructure for supporting new
  39285. languages. Chill front end implementation. Initial
  39286. implementations of cpplib, fix-header, config.guess, libio, and
  39287. past C++ library (libg++) maintainer. Dreaming up, designing and
  39288. implementing much of GCJ.
  39289. * Devon Bowen helped port GCC to the Tahoe.
  39290. * Don Bowman for mips-vxworks contributions.
  39291. * James Bowman for the FT32 port.
  39292. * Dave Brolley for work on cpplib and Chill.
  39293. * Paul Brook for work on the ARM architecture and maintaining GNU
  39294. Fortran.
  39295. * Robert Brown implemented the support for Encore 32000 systems.
  39296. * Christian Bruel for improvements to local store elimination.
  39297. * Herman A.J. ten Brugge for various fixes.
  39298. * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  39299. FAQ.
  39300. * Joe Buck for his direction via the steering committee from its
  39301. creation to 2013.
  39302. * Iain Buclaw for the D frontend.
  39303. * Craig Burley for leadership of the G77 Fortran effort.
  39304. * Tobias Burnus for contributions to GNU Fortran.
  39305. * Stephan Buys for contributing Doxygen notes for libstdc++.
  39306. * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  39307. to the C++ strings, streambufs and formatted I/O, hard detective
  39308. work on the frustrating localization issues, and keeping up with
  39309. the problem reports.
  39310. * John Carr for his alias work, SPARC hacking, infrastructure
  39311. improvements, previous contributions to the steering committee,
  39312. loop optimizations, etc.
  39313. * Stephane Carrez for 68HC11 and 68HC12 ports.
  39314. * Steve Chamberlain for support for the Renesas SH and H8 processors
  39315. and the PicoJava processor, and for GCJ config fixes.
  39316. * Glenn Chambers for help with the GCJ FAQ.
  39317. * John-Marc Chandonia for various libgcj patches.
  39318. * Denis Chertykov for contributing and maintaining the AVR port, the
  39319. first GCC port for an 8-bit architecture.
  39320. * Kito Cheng for his work on the RISC-V port, including bringing up
  39321. the test suite and maintenance.
  39322. * Scott Christley for his Objective-C contributions.
  39323. * Eric Christopher for his Java porting help and clean-ups.
  39324. * Branko Cibej for more warning contributions.
  39325. * The GNU Classpath project for all of their merged runtime code.
  39326. * Nick Clifton for arm, mcore, fr30, v850, m32r, msp430 rx work,
  39327. '--help', and other random hacking.
  39328. * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  39329. * R. Kelley Cook for making GCC buildable from a read-only directory
  39330. as well as other miscellaneous build process and documentation
  39331. clean-ups.
  39332. * Ralf Corsepius for SH testing and minor bug fixing.
  39333. * François-Xavier Coudert for contributions to GNU Fortran.
  39334. * Stan Cox for care and feeding of the x86 port and lots of behind
  39335. the scenes hacking.
  39336. * Alex Crain provided changes for the 3b1.
  39337. * Ian Dall for major improvements to the NS32k port.
  39338. * Paul Dale for his work to add uClinux platform support to the m68k
  39339. backend.
  39340. * Palmer Dabbelt for his work maintaining the RISC-V port.
  39341. * Dario Dariol contributed the four varieties of sample programs that
  39342. print a copy of their source.
  39343. * Russell Davidson for fstream and stringstream fixes in libstdc++.
  39344. * Bud Davis for work on the G77 and GNU Fortran compilers.
  39345. * Mo DeJong for GCJ and libgcj bug fixes.
  39346. * Jerry DeLisle for contributions to GNU Fortran.
  39347. * DJ Delorie for the DJGPP port, build and libiberty maintenance,
  39348. various bug fixes, and the M32C, MeP, MSP430, and RL78 ports.
  39349. * Arnaud Desitter for helping to debug GNU Fortran.
  39350. * Gabriel Dos Reis for contributions to G++, contributions and
  39351. maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  39352. including 'valarray<>', 'complex<>', maintaining the numerics
  39353. library (including that pesky '<limits>' :-) and keeping up-to-date
  39354. anything to do with numbers.
  39355. * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  39356. ISO C99 support, CFG dumping support, etc., plus support of the C++
  39357. runtime libraries including for all kinds of C interface issues,
  39358. contributing and maintaining 'complex<>', sanity checking and
  39359. disbursement, configuration architecture, libio maintenance, and
  39360. early math work.
  39361. * François Dumont for his work on libstdc++-v3, especially
  39362. maintaining and improving 'debug-mode' and associative and
  39363. unordered containers.
  39364. * Zdenek Dvorak for a new loop unroller and various fixes.
  39365. * Michael Eager for his work on the Xilinx MicroBlaze port.
  39366. * Richard Earnshaw for his ongoing work with the ARM.
  39367. * David Edelsohn for his direction via the steering committee,
  39368. ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  39369. loop changes, doing the entire AIX port of libstdc++ with his bare
  39370. hands, and for ensuring GCC properly keeps working on AIX.
  39371. * Kevin Ediger for the floating point formatting of num_put::do_put
  39372. in libstdc++.
  39373. * Phil Edwards for libstdc++ work including configuration hackery,
  39374. documentation maintainer, chief breaker of the web pages, the
  39375. occasional iostream bug fix, and work on shared library symbol
  39376. versioning.
  39377. * Paul Eggert for random hacking all over GCC.
  39378. * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  39379. configuration support for locales and fstream-related fixes.
  39380. * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  39381. iostreams.
  39382. * Christian Ehrhardt for dealing with bug reports.
  39383. * Ben Elliston for his work to move the Objective-C runtime into its
  39384. own subdirectory and for his work on autoconf.
  39385. * Revital Eres for work on the PowerPC 750CL port.
  39386. * Marc Espie for OpenBSD support.
  39387. * Doug Evans for much of the global optimization framework, arc,
  39388. m32r, and SPARC work.
  39389. * Christopher Faylor for his work on the Cygwin port and for caring
  39390. and feeding the gcc.gnu.org box and saving its users tons of spam.
  39391. * Fred Fish for BeOS support and Ada fixes.
  39392. * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
  39393. * Peter Gerwinski for various bug fixes and the Pascal front end.
  39394. * Kaveh R. Ghazi for his direction via the steering committee,
  39395. amazing work to make '-W -Wall -W* -Werror' useful, and testing GCC
  39396. on a plethora of platforms. Kaveh extends his gratitude to the
  39397. CAIP Center at Rutgers University for providing him with computing
  39398. resources to work on Free Software from the late 1980s to 2010.
  39399. * John Gilmore for a donation to the FSF earmarked improving GNU
  39400. Java.
  39401. * Judy Goldberg for c++ contributions.
  39402. * Torbjorn Granlund for various fixes and the c-torture testsuite,
  39403. multiply- and divide-by-constant optimization, improved long long
  39404. support, improved leaf function register allocation, and his
  39405. direction via the steering committee.
  39406. * Jonny Grant for improvements to 'collect2's' '--help'
  39407. documentation.
  39408. * Anthony Green for his '-Os' contributions, the moxie port, and Java
  39409. front end work.
  39410. * Stu Grossman for gdb hacking, allowing GCJ developers to debug Java
  39411. code.
  39412. * Michael K. Gschwind contributed the port to the PDP-11.
  39413. * Richard Biener for his ongoing middle-end contributions and bug
  39414. fixes and for release management.
  39415. * Ron Guilmette implemented the 'protoize' and 'unprotoize' tools,
  39416. the support for DWARF 1 symbolic debugging information, and much of
  39417. the support for System V Release 4. He has also worked heavily on
  39418. the Intel 386 and 860 support.
  39419. * Sumanth Gundapaneni for contributing the CR16 port.
  39420. * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
  39421. GCSE.
  39422. * Bruno Haible for improvements in the runtime overhead for EH, new
  39423. warnings and assorted bug fixes.
  39424. * Andrew Haley for his amazing Java compiler and library efforts.
  39425. * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  39426. series 300.
  39427. * Michael Hayes for various thankless work he's done trying to get
  39428. the c30/c40 ports functional. Lots of loop and unroll improvements
  39429. and fixes.
  39430. * Dara Hazeghi for wading through myriads of target-specific bug
  39431. reports.
  39432. * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  39433. * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  39434. work, loop opts, and generally fixing lots of old problems we've
  39435. ignored for years, flow rewrite and lots of further stuff,
  39436. including reviewing tons of patches.
  39437. * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  39438. various fixes.
  39439. * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  39440. contributed the support for the Sony NEWS machine.
  39441. * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  39442. various fixes.
  39443. * Katherine Holcomb for work on GNU Fortran.
  39444. * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  39445. of testing and bug fixing, particularly of GCC configury code.
  39446. * Steve Holmgren for MachTen patches.
  39447. * Mat Hostetter for work on the TILE-Gx and TILEPro ports.
  39448. * Jan Hubicka for his x86 port improvements.
  39449. * Falk Hueffner for working on C and optimization bug reports.
  39450. * Bernardo Innocenti for his m68k work, including merging of ColdFire
  39451. improvements and uClinux support.
  39452. * Christian Iseli for various bug fixes.
  39453. * Kamil Iskra for general m68k hacking.
  39454. * Lee Iverson for random fixes and MIPS testing.
  39455. * Balaji V. Iyer for Cilk+ development and merging.
  39456. * Andreas Jaeger for testing and benchmarking of GCC and various bug
  39457. fixes.
  39458. * Martin Jambor for his work on inter-procedural optimizations, the
  39459. switch conversion pass, and scalar replacement of aggregates.
  39460. * Jakub Jelinek for his SPARC work and sibling call optimizations as
  39461. well as lots of bug fixes and test cases, and for improving the
  39462. Java build system.
  39463. * Janis Johnson for ia64 testing and fixes, her quality improvement
  39464. sidetracks, and web page maintenance.
  39465. * Kean Johnston for SCO OpenServer support and various fixes.
  39466. * Tim Josling for the sample language treelang based originally on
  39467. Richard Kenner's "toy" language.
  39468. * Nicolai Josuttis for additional libstdc++ documentation.
  39469. * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  39470. target.
  39471. * Steven G. Kargl for work on GNU Fortran.
  39472. * David Kashtan of SRI adapted GCC to VMS.
  39473. * Ryszard Kabatek for many, many libstdc++ bug fixes and
  39474. optimizations of strings, especially member functions, and for
  39475. auto_ptr fixes.
  39476. * Geoffrey Keating for his ongoing work to make the PPC work for
  39477. GNU/Linux and his automatic regression tester.
  39478. * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  39479. work in just about every part of libstdc++.
  39480. * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  39481. MIL-STD-1750A.
  39482. * Richard Kenner of the New York University Ultracomputer Research
  39483. Laboratory wrote the machine descriptions for the AMD 29000, the
  39484. DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  39485. support for instruction attributes. He also made changes to better
  39486. support RISC processors including changes to common subexpression
  39487. elimination, strength reduction, function calling sequence
  39488. handling, and condition code support, in addition to generalizing
  39489. the code for frame pointer elimination and delay slot scheduling.
  39490. Richard Kenner was also the head maintainer of GCC for several
  39491. years.
  39492. * Mumit Khan for various contributions to the Cygwin and Mingw32
  39493. ports and maintaining binary releases for Microsoft Windows hosts,
  39494. and for massive libstdc++ porting work to Cygwin/Mingw32.
  39495. * Robin Kirkham for cpu32 support.
  39496. * Mark Klein for PA improvements.
  39497. * Thomas Koenig for various bug fixes.
  39498. * Bruce Korb for the new and improved fixincludes code.
  39499. * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  39500. effort.
  39501. * Maxim Kuvyrkov for contributions to the instruction scheduler, the
  39502. Android and m68k/Coldfire ports, and optimizations.
  39503. * Charles LaBrec contributed the support for the Integrated Solutions
  39504. 68020 system.
  39505. * Asher Langton and Mike Kumbera for contributing Cray pointer
  39506. support to GNU Fortran, and for other GNU Fortran improvements.
  39507. * Jeff Law for his direction via the steering committee, coordinating
  39508. the entire egcs project and GCC 2.95, rolling out snapshots and
  39509. releases, handling merges from GCC2, reviewing tons of patches that
  39510. might have fallen through the cracks else, and random but extensive
  39511. hacking.
  39512. * Walter Lee for work on the TILE-Gx and TILEPro ports.
  39513. * Marc Lehmann for his direction via the steering committee and
  39514. helping with analysis and improvements of x86 performance.
  39515. * Victor Leikehman for work on GNU Fortran.
  39516. * Ted Lemon wrote parts of the RTL reader and printer.
  39517. * Kriang Lerdsuwanakij for C++ improvements including template as
  39518. template parameter support, and many C++ fixes.
  39519. * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  39520. and random work on the Java front end.
  39521. * Alain Lichnewsky ported GCC to the MIPS CPU.
  39522. * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  39523. and patches.
  39524. * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  39525. * Chen Liqin for various S+core related fixes/improvement, and for
  39526. maintaining the S+core port.
  39527. * Martin Liska for his work on identical code folding, the
  39528. sanitizers, HSA, general bug fixing and for running automated
  39529. regression testing of GCC and reporting numerous bugs.
  39530. * Weiwen Liu for testing and various bug fixes.
  39531. * Manuel López-Ibáñez for improving '-Wconversion' and many other
  39532. diagnostics fixes and improvements.
  39533. * Dave Love for his ongoing work with the Fortran front end and
  39534. runtime libraries.
  39535. * Martin von Löwis for internal consistency checking infrastructure,
  39536. various C++ improvements including namespace support, and tons of
  39537. assistance with libstdc++/compiler merges.
  39538. * H.J. Lu for his previous contributions to the steering committee,
  39539. many x86 bug reports, prototype patches, and keeping the GNU/Linux
  39540. ports working.
  39541. * Greg McGary for random fixes and (someday) bounded pointers.
  39542. * Andrew MacLeod for his ongoing work in building a real EH system,
  39543. various code generation improvements, work on the global optimizer,
  39544. etc.
  39545. * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  39546. hacking improvements to compile-time performance, overall knowledge
  39547. and direction in the area of instruction scheduling, design and
  39548. implementation of the automaton based instruction scheduler and
  39549. design and implementation of the integrated and local register
  39550. allocators.
  39551. * David Malcolm for his work on improving GCC diagnostics, JIT,
  39552. self-tests and unit testing.
  39553. * Bob Manson for his behind the scenes work on dejagnu.
  39554. * John Marino for contributing the DragonFly BSD port.
  39555. * Philip Martin for lots of libstdc++ string and vector iterator
  39556. fixes and improvements, and string clean up and testsuites.
  39557. * Michael Matz for his work on dominance tree discovery, the x86-64
  39558. port, link-time optimization framework and general optimization
  39559. improvements.
  39560. * All of the Mauve project contributors for Java test code.
  39561. * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  39562. * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  39563. * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  39564. powerpc, haifa, ECOFF debug support, and other assorted hacking.
  39565. * Jason Merrill for his direction via the steering committee and
  39566. leading the G++ effort.
  39567. * Martin Michlmayr for testing GCC on several architectures using the
  39568. entire Debian archive.
  39569. * David Miller for his direction via the steering committee, lots of
  39570. SPARC work, improvements in jump.c and interfacing with the Linux
  39571. kernel developers.
  39572. * Gary Miller ported GCC to Charles River Data Systems machines.
  39573. * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  39574. the entire libstdc++ testsuite namespace-compatible.
  39575. * Mark Mitchell for his direction via the steering committee,
  39576. mountains of C++ work, load/store hoisting out of loops, alias
  39577. analysis improvements, ISO C 'restrict' support, and serving as
  39578. release manager from 2000 to 2011.
  39579. * Alan Modra for various GNU/Linux bits and testing.
  39580. * Toon Moene for his direction via the steering committee, Fortran
  39581. maintenance, and his ongoing work to make us make Fortran run fast.
  39582. * Jason Molenda for major help in the care and feeding of all the
  39583. services on the gcc.gnu.org (formerly egcs.cygnus.com)
  39584. machine--mail, web services, ftp services, etc etc. Doing all this
  39585. work on scrap paper and the backs of envelopes would have been...
  39586. difficult.
  39587. * Catherine Moore for fixing various ugly problems we have sent her
  39588. way, including the haifa bug which was killing the Alpha & PowerPC
  39589. Linux kernels.
  39590. * Mike Moreton for his various Java patches.
  39591. * David Mosberger-Tang for various Alpha improvements, and for the
  39592. initial IA-64 port.
  39593. * Stephen Moshier contributed the floating point emulator that
  39594. assists in cross-compilation and permits support for floating point
  39595. numbers wider than 64 bits and for ISO C99 support.
  39596. * Bill Moyer for his behind the scenes work on various issues.
  39597. * Philippe De Muyter for his work on the m68k port.
  39598. * Joseph S. Myers for his work on the PDP-11 port, format checking
  39599. and ISO C99 support, and continuous emphasis on (and contributions
  39600. to) documentation.
  39601. * Nathan Myers for his work on libstdc++-v3: architecture and
  39602. authorship through the first three snapshots, including
  39603. implementation of locale infrastructure, string, shadow C headers,
  39604. and the initial project documentation (DESIGN, CHECKLIST, and so
  39605. forth). Later, more work on MT-safe string and shadow headers.
  39606. * Felix Natter for documentation on porting libstdc++.
  39607. * Nathanael Nerode for cleaning up the configuration/build process.
  39608. * NeXT, Inc. donated the front end that supports the Objective-C
  39609. language.
  39610. * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to the
  39611. search engine setup, various documentation fixes and other small
  39612. fixes.
  39613. * Geoff Noer for his work on getting cygwin native builds working.
  39614. * Vegard Nossum for running automated regression testing of GCC and
  39615. reporting numerous bugs.
  39616. * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
  39617. tracking web pages, GIMPLE tuples, and assorted fixes.
  39618. * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  39619. FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and related
  39620. infrastructure improvements.
  39621. * Alexandre Oliva for various build infrastructure improvements,
  39622. scripts and amazing testing work, including keeping libtool issues
  39623. sane and happy.
  39624. * Stefan Olsson for work on mt_alloc.
  39625. * Melissa O'Neill for various NeXT fixes.
  39626. * Rainer Orth for random MIPS work, including improvements to GCC's
  39627. o32 ABI support, improvements to dejagnu's MIPS support, Java
  39628. configuration clean-ups and porting work, and maintaining the IRIX,
  39629. Solaris 2, and Tru64 UNIX ports.
  39630. * Steven Pemberton for his contribution of 'enquire' which allowed
  39631. GCC to determine various properties of the floating point unit and
  39632. generate 'float.h' in older versions of GCC.
  39633. * Hartmut Penner for work on the s390 port.
  39634. * Paul Petersen wrote the machine description for the Alliant FX/8.
  39635. * Alexandre Petit-Bianco for implementing much of the Java compiler
  39636. and continued Java maintainership.
  39637. * Matthias Pfaller for major improvements to the NS32k port.
  39638. * Gerald Pfeifer for his direction via the steering committee,
  39639. pointing out lots of problems we need to solve, maintenance of the
  39640. web pages, and taking care of documentation maintenance in general.
  39641. * Marek Polacek for his work on the C front end, the sanitizers and
  39642. general bug fixing.
  39643. * Andrew Pinski for processing bug reports by the dozen.
  39644. * Ovidiu Predescu for his work on the Objective-C front end and
  39645. runtime libraries.
  39646. * Jerry Quinn for major performance improvements in C++ formatted
  39647. I/O.
  39648. * Ken Raeburn for various improvements to checker, MIPS ports and
  39649. various cleanups in the compiler.
  39650. * Rolf W. Rasmussen for hacking on AWT.
  39651. * David Reese of Sun Microsystems contributed to the Solaris on
  39652. PowerPC port.
  39653. * John Regehr for running automated regression testing of GCC and
  39654. reporting numerous bugs.
  39655. * Volker Reichelt for running automated regression testing of GCC and
  39656. reporting numerous bugs and for keeping up with the problem
  39657. reports.
  39658. * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  39659. hacking and developing and maintaining the Epiphany port.
  39660. * Loren J. Rittle for improvements to libstdc++-v3 including the
  39661. FreeBSD port, threading fixes, thread-related configury changes,
  39662. critical threading documentation, and solutions to really tricky
  39663. I/O problems, as well as keeping GCC properly working on FreeBSD
  39664. and continuous testing.
  39665. * Craig Rodrigues for processing tons of bug reports.
  39666. * Ola Rönnerup for work on mt_alloc.
  39667. * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  39668. * David Ronis inspired and encouraged Craig to rewrite the G77
  39669. documentation in texinfo format by contributing a first pass at a
  39670. translation of the old 'g77-0.5.16/f/DOC' file.
  39671. * Ken Rose for fixes to GCC's delay slot filling code.
  39672. * Ira Rosen for her contributions to the auto-vectorizer.
  39673. * Paul Rubin wrote most of the preprocessor.
  39674. * Pétur Runólfsson for major performance improvements in C++
  39675. formatted I/O and large file support in C++ filebuf.
  39676. * Chip Salzenberg for libstdc++ patches and improvements to locales,
  39677. traits, Makefiles, libio, libtool hackery, and "long long" support.
  39678. * Juha Sarlin for improvements to the H8 code generator.
  39679. * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  39680. 300.
  39681. * Roger Sayle for improvements to constant folding and GCC's RTL
  39682. optimizers as well as for fixing numerous bugs.
  39683. * Bradley Schatz for his work on the GCJ FAQ.
  39684. * Peter Schauer wrote the code to allow debugging to work on the
  39685. Alpha.
  39686. * William Schelter did most of the work on the Intel 80386 support.
  39687. * Tobias Schlüter for work on GNU Fortran.
  39688. * Bernd Schmidt for various code generation improvements and major
  39689. work in the reload pass, serving as release manager for GCC 2.95.3,
  39690. and work on the Blackfin and C6X ports.
  39691. * Peter Schmid for constant testing of libstdc++--especially
  39692. application testing, going above and beyond what was requested for
  39693. the release criteria--and libstdc++ header file tweaks.
  39694. * Jason Schroeder for jcf-dump patches.
  39695. * Andreas Schwab for his work on the m68k port.
  39696. * Lars Segerlund for work on GNU Fortran.
  39697. * Dodji Seketeli for numerous C++ bug fixes and debug info
  39698. improvements.
  39699. * Tim Shen for major work on '<regex>'.
  39700. * Joel Sherrill for his direction via the steering committee, RTEMS
  39701. contributions and RTEMS testing.
  39702. * Nathan Sidwell for many C++ fixes/improvements.
  39703. * Jeffrey Siegal for helping RMS with the original design of GCC,
  39704. some code which handles the parse tree and RTL data structures,
  39705. constant folding and help with the original VAX & m68k ports.
  39706. * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  39707. from the LWG (thereby keeping GCC in line with updates from the
  39708. ISO).
  39709. * Franz Sirl for his ongoing work with making the PPC port stable for
  39710. GNU/Linux.
  39711. * Andrey Slepuhin for assorted AIX hacking.
  39712. * Trevor Smigiel for contributing the SPU port.
  39713. * Christopher Smith did the port for Convex machines.
  39714. * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  39715. Retired from GCC maintainership August 2010, having mentored two
  39716. new maintainers into the role.
  39717. * Randy Smith finished the Sun FPA support.
  39718. * Ed Smith-Rowland for his continuous work on libstdc++-v3, special
  39719. functions, '<random>', and various improvements to C++11 features.
  39720. * Scott Snyder for queue, iterator, istream, and string fixes and
  39721. libstdc++ testsuite entries. Also for providing the patch to G77
  39722. to add rudimentary support for 'INTEGER*1', 'INTEGER*2', and
  39723. 'LOGICAL*1'.
  39724. * Zdenek Sojka for running automated regression testing of GCC and
  39725. reporting numerous bugs.
  39726. * Arseny Solokha for running automated regression testing of GCC and
  39727. reporting numerous bugs.
  39728. * Jayant Sonar for contributing the CR16 port.
  39729. * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  39730. * Richard Stallman, for writing the original GCC and launching the
  39731. GNU project.
  39732. * Jan Stein of the Chalmers Computer Society provided support for
  39733. Genix, as well as part of the 32000 machine description.
  39734. * Gerhard Steinmetz for running automated regression testing of GCC
  39735. and reporting numerous bugs.
  39736. * Nigel Stephens for various mips16 related fixes/improvements.
  39737. * Jonathan Stone wrote the machine description for the Pyramid
  39738. computer.
  39739. * Graham Stott for various infrastructure improvements.
  39740. * John Stracke for his Java HTTP protocol fixes.
  39741. * Mike Stump for his Elxsi port, G++ contributions over the years and
  39742. more recently his vxworks contributions
  39743. * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  39744. * Zhendong Su for running automated regression testing of GCC and
  39745. reporting numerous bugs.
  39746. * Chengnian Sun for running automated regression testing of GCC and
  39747. reporting numerous bugs.
  39748. * Shigeya Suzuki for this fixes for the bsdi platforms.
  39749. * Ian Lance Taylor for the Go frontend, the initial mips16 and mips64
  39750. support, general configury hacking, fixincludes, etc.
  39751. * Holger Teutsch provided the support for the Clipper CPU.
  39752. * Gary Thomas for his ongoing work to make the PPC work for
  39753. GNU/Linux.
  39754. * Paul Thomas for contributions to GNU Fortran.
  39755. * Philipp Thomas for random bug fixes throughout the compiler
  39756. * Jason Thorpe for thread support in libstdc++ on NetBSD.
  39757. * Kresten Krab Thorup wrote the run time support for the Objective-C
  39758. language and the fantastic Java bytecode interpreter.
  39759. * Michael Tiemann for random bug fixes, the first instruction
  39760. scheduler, initial C++ support, function integration, NS32k, SPARC
  39761. and M88k machine description work, delay slot scheduling.
  39762. * Andreas Tobler for his work porting libgcj to Darwin.
  39763. * Teemu Torma for thread safe exception handling support.
  39764. * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  39765. definitions, and of the VAX machine description.
  39766. * Daniel Towner and Hariharan Sandanagobalane contributed and
  39767. maintain the picoChip port.
  39768. * Tom Tromey for internationalization support and for his many Java
  39769. contributions and libgcj maintainership.
  39770. * Lassi Tuura for improvements to config.guess to determine HP
  39771. processor types.
  39772. * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  39773. * Andy Vaught for the design and initial implementation of the GNU
  39774. Fortran front end.
  39775. * Brent Verner for work with the libstdc++ cshadow files and their
  39776. associated configure steps.
  39777. * Todd Vierling for contributions for NetBSD ports.
  39778. * Andrew Waterman for contributing the RISC-V port, as well as
  39779. maintaining it.
  39780. * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  39781. guidance and maintaining libstdc++.
  39782. * Dean Wakerley for converting the install documentation from HTML to
  39783. texinfo in time for GCC 3.0.
  39784. * Krister Walfridsson for random bug fixes.
  39785. * Feng Wang for contributions to GNU Fortran.
  39786. * Stephen M. Webb for time and effort on making libstdc++ shadow
  39787. files work with the tricky Solaris 8+ headers, and for pushing the
  39788. build-time header tree. Also, for starting and driving the
  39789. '<regex>' effort.
  39790. * John Wehle for various improvements for the x86 code generator,
  39791. related infrastructure improvements to help x86 code generation,
  39792. value range propagation and other work, WE32k port.
  39793. * Ulrich Weigand for work on the s390 port.
  39794. * Janus Weil for contributions to GNU Fortran.
  39795. * Zack Weinberg for major work on cpplib and various other bug fixes.
  39796. * Matt Welsh for help with Linux Threads support in GCJ.
  39797. * Urban Widmark for help fixing java.io.
  39798. * Mark Wielaard for new Java library code and his work integrating
  39799. with Classpath.
  39800. * Dale Wiles helped port GCC to the Tahoe.
  39801. * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  39802. * Jim Wilson for his direction via the steering committee, tackling
  39803. hard problems in various places that nobody else wanted to work on,
  39804. strength reduction and other loop optimizations.
  39805. * Paul Woegerer and Tal Agmon for the CRX port.
  39806. * Carlo Wood for various fixes.
  39807. * Tom Wood for work on the m88k port.
  39808. * Chung-Ju Wu for his work on the Andes NDS32 port.
  39809. * Canqun Yang for work on GNU Fortran.
  39810. * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  39811. description for the Tron architecture (specifically, the Gmicro).
  39812. * Kevin Zachmann helped port GCC to the Tahoe.
  39813. * Ayal Zaks for Swing Modulo Scheduling (SMS).
  39814. * Qirun Zhang for running automated regression testing of GCC and
  39815. reporting numerous bugs.
  39816. * Xiaoqiang Zhang for work on GNU Fortran.
  39817. * Gilles Zunino for help porting Java to Irix.
  39818. The following people are recognized for their contributions to GNAT,
  39819. the Ada front end of GCC:
  39820. * Bernard Banner
  39821. * Romain Berrendonner
  39822. * Geert Bosch
  39823. * Emmanuel Briot
  39824. * Joel Brobecker
  39825. * Ben Brosgol
  39826. * Vincent Celier
  39827. * Arnaud Charlet
  39828. * Chien Chieng
  39829. * Cyrille Comar
  39830. * Cyrille Crozes
  39831. * Robert Dewar
  39832. * Gary Dismukes
  39833. * Robert Duff
  39834. * Ed Falis
  39835. * Ramon Fernandez
  39836. * Sam Figueroa
  39837. * Vasiliy Fofanov
  39838. * Michael Friess
  39839. * Franco Gasperoni
  39840. * Ted Giering
  39841. * Matthew Gingell
  39842. * Laurent Guerby
  39843. * Jerome Guitton
  39844. * Olivier Hainque
  39845. * Jerome Hugues
  39846. * Hristian Kirtchev
  39847. * Jerome Lambourg
  39848. * Bruno Leclerc
  39849. * Albert Lee
  39850. * Sean McNeil
  39851. * Javier Miranda
  39852. * Laurent Nana
  39853. * Pascal Obry
  39854. * Dong-Ik Oh
  39855. * Laurent Pautet
  39856. * Brett Porter
  39857. * Thomas Quinot
  39858. * Nicolas Roche
  39859. * Pat Rogers
  39860. * Jose Ruiz
  39861. * Douglas Rupp
  39862. * Sergey Rybin
  39863. * Gail Schenker
  39864. * Ed Schonberg
  39865. * Nicolas Setton
  39866. * Samuel Tardieu
  39867. The following people are recognized for their contributions of new
  39868. features, bug reports, testing and integration of classpath/libgcj for
  39869. GCC version 4.1:
  39870. * Lillian Angel for 'JTree' implementation and lots Free Swing
  39871. additions and bug fixes.
  39872. * Wolfgang Baer for 'GapContent' bug fixes.
  39873. * Anthony Balkissoon for 'JList', Free Swing 1.5 updates and mouse
  39874. event fixes, lots of Free Swing work including 'JTable' editing.
  39875. * Stuart Ballard for RMI constant fixes.
  39876. * Goffredo Baroncelli for 'HTTPURLConnection' fixes.
  39877. * Gary Benson for 'MessageFormat' fixes.
  39878. * Daniel Bonniot for 'Serialization' fixes.
  39879. * Chris Burdess for lots of gnu.xml and http protocol fixes, 'StAX'
  39880. and 'DOM xml:id' support.
  39881. * Ka-Hing Cheung for 'TreePath' and 'TreeSelection' fixes.
  39882. * Archie Cobbs for build fixes, VM interface updates,
  39883. 'URLClassLoader' updates.
  39884. * Kelley Cook for build fixes.
  39885. * Martin Cordova for Suggestions for better 'SocketTimeoutException'.
  39886. * David Daney for 'BitSet' bug fixes, 'HttpURLConnection' rewrite and
  39887. improvements.
  39888. * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
  39889. 2D support. Lots of imageio framework additions, lots of AWT and
  39890. Free Swing bug fixes.
  39891. * Jeroen Frijters for 'ClassLoader' and nio cleanups, serialization
  39892. fixes, better 'Proxy' support, bug fixes and IKVM integration.
  39893. * Santiago Gala for 'AccessControlContext' fixes.
  39894. * Nicolas Geoffray for 'VMClassLoader' and 'AccessController'
  39895. improvements.
  39896. * David Gilbert for 'basic' and 'metal' icon and plaf support and
  39897. lots of documenting, Lots of Free Swing and metal theme additions.
  39898. 'MetalIconFactory' implementation.
  39899. * Anthony Green for 'MIDI' framework, 'ALSA' and 'DSSI' providers.
  39900. * Andrew Haley for 'Serialization' and 'URLClassLoader' fixes, gcj
  39901. build speedups.
  39902. * Kim Ho for 'JFileChooser' implementation.
  39903. * Andrew John Hughes for 'Locale' and net fixes, URI RFC2986 updates,
  39904. 'Serialization' fixes, 'Properties' XML support and generic branch
  39905. work, VMIntegration guide update.
  39906. * Bastiaan Huisman for 'TimeZone' bug fixing.
  39907. * Andreas Jaeger for mprec updates.
  39908. * Paul Jenner for better '-Werror' support.
  39909. * Ito Kazumitsu for 'NetworkInterface' implementation and updates.
  39910. * Roman Kennke for 'BoxLayout', 'GrayFilter' and 'SplitPane', plus
  39911. bug fixes all over. Lots of Free Swing work including styled text.
  39912. * Simon Kitching for 'String' cleanups and optimization suggestions.
  39913. * Michael Koch for configuration fixes, 'Locale' updates, bug and
  39914. build fixes.
  39915. * Guilhem Lavaux for configuration, thread and channel fixes and
  39916. Kaffe integration. JCL native 'Pointer' updates. Logger bug
  39917. fixes.
  39918. * David Lichteblau for JCL support library global/local reference
  39919. cleanups.
  39920. * Aaron Luchko for JDWP updates and documentation fixes.
  39921. * Ziga Mahkovec for 'Graphics2D' upgraded to Cairo 0.5 and new regex
  39922. features.
  39923. * Sven de Marothy for BMP imageio support, CSS and 'TextLayout'
  39924. fixes. 'GtkImage' rewrite, 2D, awt, free swing and date/time fixes
  39925. and implementing the Qt4 peers.
  39926. * Casey Marshall for crypto algorithm fixes, 'FileChannel' lock,
  39927. 'SystemLogger' and 'FileHandler' rotate implementations, NIO
  39928. 'FileChannel.map' support, security and policy updates.
  39929. * Bryce McKinlay for RMI work.
  39930. * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
  39931. testing and documenting.
  39932. * Kalle Olavi Niemitalo for build fixes.
  39933. * Rainer Orth for build fixes.
  39934. * Andrew Overholt for 'File' locking fixes.
  39935. * Ingo Proetel for 'Image', 'Logger' and 'URLClassLoader' updates.
  39936. * Olga Rodimina for 'MenuSelectionManager' implementation.
  39937. * Jan Roehrich for 'BasicTreeUI' and 'JTree' fixes.
  39938. * Julian Scheid for documentation updates and gjdoc support.
  39939. * Christian Schlichtherle for zip fixes and cleanups.
  39940. * Robert Schuster for documentation updates and beans fixes,
  39941. 'TreeNode' enumerations and 'ActionCommand' and various fixes, XML
  39942. and URL, AWT and Free Swing bug fixes.
  39943. * Keith Seitz for lots of JDWP work.
  39944. * Christian Thalinger for 64-bit cleanups, Configuration and VM
  39945. interface fixes and 'CACAO' integration, 'fdlibm' updates.
  39946. * Gael Thomas for 'VMClassLoader' boot packages support suggestions.
  39947. * Andreas Tobler for Darwin and Solaris testing and fixing, 'Qt4'
  39948. support for Darwin/OS X, 'Graphics2D' support, 'gtk+' updates.
  39949. * Dalibor Topic for better 'DEBUG' support, build cleanups and Kaffe
  39950. integration. 'Qt4' build infrastructure, 'SHA1PRNG' and
  39951. 'GdkPixbugDecoder' updates.
  39952. * Tom Tromey for Eclipse integration, generics work, lots of bug
  39953. fixes and gcj integration including coordinating The Big Merge.
  39954. * Mark Wielaard for bug fixes, packaging and release management,
  39955. 'Clipboard' implementation, system call interrupts and network
  39956. timeouts and 'GdkPixpufDecoder' fixes.
  39957. In addition to the above, all of which also contributed time and energy
  39958. in testing GCC, we would like to thank the following for their
  39959. contributions to testing:
  39960. * Michael Abd-El-Malek
  39961. * Thomas Arend
  39962. * Bonzo Armstrong
  39963. * Steven Ashe
  39964. * Chris Baldwin
  39965. * David Billinghurst
  39966. * Jim Blandy
  39967. * Stephane Bortzmeyer
  39968. * Horst von Brand
  39969. * Frank Braun
  39970. * Rodney Brown
  39971. * Sidney Cadot
  39972. * Bradford Castalia
  39973. * Robert Clark
  39974. * Jonathan Corbet
  39975. * Ralph Doncaster
  39976. * Richard Emberson
  39977. * Levente Farkas
  39978. * Graham Fawcett
  39979. * Mark Fernyhough
  39980. * Robert A. French
  39981. * Jörgen Freyh
  39982. * Mark K. Gardner
  39983. * Charles-Antoine Gauthier
  39984. * Yung Shing Gene
  39985. * David Gilbert
  39986. * Simon Gornall
  39987. * Fred Gray
  39988. * John Griffin
  39989. * Patrik Hagglund
  39990. * Phil Hargett
  39991. * Amancio Hasty
  39992. * Takafumi Hayashi
  39993. * Bryan W. Headley
  39994. * Kevin B. Hendricks
  39995. * Joep Jansen
  39996. * Christian Joensson
  39997. * Michel Kern
  39998. * David Kidd
  39999. * Tobias Kuipers
  40000. * Anand Krishnaswamy
  40001. * A. O. V. Le Blanc
  40002. * llewelly
  40003. * Damon Love
  40004. * Brad Lucier
  40005. * Matthias Klose
  40006. * Martin Knoblauch
  40007. * Rick Lutowski
  40008. * Jesse Macnish
  40009. * Stefan Morrell
  40010. * Anon A. Mous
  40011. * Matthias Mueller
  40012. * Pekka Nikander
  40013. * Rick Niles
  40014. * Jon Olson
  40015. * Magnus Persson
  40016. * Chris Pollard
  40017. * Richard Polton
  40018. * Derk Reefman
  40019. * David Rees
  40020. * Paul Reilly
  40021. * Tom Reilly
  40022. * Torsten Rueger
  40023. * Danny Sadinoff
  40024. * Marc Schifer
  40025. * Erik Schnetter
  40026. * Wayne K. Schroll
  40027. * David Schuler
  40028. * Vin Shelton
  40029. * Tim Souder
  40030. * Adam Sulmicki
  40031. * Bill Thorson
  40032. * George Talbot
  40033. * Pedro A. M. Vazquez
  40034. * Gregory Warnes
  40035. * Ian Watson
  40036. * David E. Young
  40037. * And many others
  40038. And finally we'd like to thank everyone who uses the compiler, provides
  40039. feedback and generally reminds us why we're doing this work in the first
  40040. place.
  40041. 
  40042. File: gccint.info, Node: Option Index, Next: Concept Index, Prev: Contributors, Up: Top
  40043. Option Index
  40044. ************
  40045. GCC's command line options are indexed here without any initial '-' or
  40046. '--'. Where an option has both positive and negative forms (such as
  40047. '-fOPTION' and '-fno-OPTION'), relevant entries in the manual are
  40048. indexed under the most appropriate form; it may sometimes be useful to
  40049. look up both forms.
  40050. �[index�]
  40051. * Menu:
  40052. * fltrans: Internal flags. (line 18)
  40053. * fltrans-output-list: Internal flags. (line 23)
  40054. * fresolution: Internal flags. (line 27)
  40055. * fwpa: Internal flags. (line 9)
  40056. * msoft-float: Soft float library routines.
  40057. (line 6)
  40058. 
  40059. File: gccint.info, Node: Concept Index, Prev: Option Index, Up: Top
  40060. Concept Index
  40061. *************
  40062. �[index�]
  40063. * Menu:
  40064. * ! in constraint: Multi-Alternative. (line 48)
  40065. * "real" instructions, RTL SSA: RTL SSA Basic Blocks.
  40066. (line 11)
  40067. * # in constraint: Modifiers. (line 78)
  40068. * # in template: Output Template. (line 66)
  40069. * #pragma: Misc. (line 422)
  40070. * $ in constraint: Multi-Alternative. (line 57)
  40071. * % in constraint: Modifiers. (line 52)
  40072. * % in GTY option: GTY Options. (line 18)
  40073. * % in template: Output Template. (line 6)
  40074. * & in constraint: Modifiers. (line 25)
  40075. * (gimple_stmt_iterator: GIMPLE API. (line 30)
  40076. * (nil): RTL Objects. (line 73)
  40077. * * in constraint: Modifiers. (line 83)
  40078. * * in template: Output Statement. (line 29)
  40079. * *gimple_build_asm_vec: GIMPLE_ASM. (line 6)
  40080. * *gimple_build_assign: GIMPLE_ASSIGN. (line 6)
  40081. * *gimple_build_assign <1>: GIMPLE_ASSIGN. (line 18)
  40082. * *gimple_build_assign <2>: GIMPLE_ASSIGN. (line 29)
  40083. * *gimple_build_assign <3>: GIMPLE_ASSIGN. (line 35)
  40084. * *gimple_build_bind: GIMPLE_BIND. (line 6)
  40085. * *gimple_build_call: GIMPLE_CALL. (line 6)
  40086. * *gimple_build_call_from_tree: GIMPLE_CALL. (line 15)
  40087. * *gimple_build_call_vec: GIMPLE_CALL. (line 25)
  40088. * *gimple_build_catch: GIMPLE_CATCH. (line 6)
  40089. * *gimple_build_cond: GIMPLE_COND. (line 6)
  40090. * *gimple_build_cond_from_tree: GIMPLE_COND. (line 14)
  40091. * *gimple_build_debug_bind: GIMPLE_DEBUG. (line 6)
  40092. * *gimple_build_eh_filter: GIMPLE_EH_FILTER. (line 6)
  40093. * *gimple_build_goto: GIMPLE_GOTO. (line 6)
  40094. * *gimple_build_label: GIMPLE_LABEL. (line 6)
  40095. * *gimple_build_omp_atomic_load: GIMPLE_OMP_ATOMIC_LOAD.
  40096. (line 6)
  40097. * *gimple_build_omp_atomic_store: GIMPLE_OMP_ATOMIC_STORE.
  40098. (line 6)
  40099. * *gimple_build_omp_continue: GIMPLE_OMP_CONTINUE.
  40100. (line 6)
  40101. * *gimple_build_omp_critical: GIMPLE_OMP_CRITICAL.
  40102. (line 6)
  40103. * *gimple_build_omp_for: GIMPLE_OMP_FOR. (line 6)
  40104. * *gimple_build_omp_parallel: GIMPLE_OMP_PARALLEL.
  40105. (line 6)
  40106. * *gimple_build_omp_sections: GIMPLE_OMP_SECTIONS.
  40107. (line 6)
  40108. * *gimple_build_omp_single: GIMPLE_OMP_SINGLE. (line 6)
  40109. * *gimple_build_resx: GIMPLE_RESX. (line 6)
  40110. * *gimple_build_return: GIMPLE_RETURN. (line 6)
  40111. * *gimple_build_switch: GIMPLE_SWITCH. (line 6)
  40112. * *gimple_build_try: GIMPLE_TRY. (line 6)
  40113. * + in constraint: Modifiers. (line 12)
  40114. * -fsection-anchors: Special Accessors. (line 117)
  40115. * -fsection-anchors <1>: Anchored Addresses. (line 6)
  40116. * /c in RTL dump: Flags. (line 230)
  40117. * /f in RTL dump: Flags. (line 238)
  40118. * /i in RTL dump: Flags. (line 283)
  40119. * /j in RTL dump: Flags. (line 295)
  40120. * /s in RTL dump: Flags. (line 254)
  40121. * /u in RTL dump: Flags. (line 307)
  40122. * /v in RTL dump: Flags. (line 339)
  40123. * 0 in constraint: Simple Constraints. (line 128)
  40124. * < in constraint: Simple Constraints. (line 47)
  40125. * = in constraint: Modifiers. (line 8)
  40126. * > in constraint: Simple Constraints. (line 59)
  40127. * ? in constraint: Multi-Alternative. (line 42)
  40128. * @ in instruction pattern names: Parameterized Names.
  40129. (line 6)
  40130. * \: Output Template. (line 46)
  40131. * ^ in constraint: Multi-Alternative. (line 53)
  40132. * __absvdi2: Integer library routines.
  40133. (line 106)
  40134. * __absvsi2: Integer library routines.
  40135. (line 105)
  40136. * __addda3: Fixed-point fractional library routines.
  40137. (line 44)
  40138. * __adddf3: Soft float library routines.
  40139. (line 22)
  40140. * __adddq3: Fixed-point fractional library routines.
  40141. (line 31)
  40142. * __addha3: Fixed-point fractional library routines.
  40143. (line 41)
  40144. * __addhq3: Fixed-point fractional library routines.
  40145. (line 29)
  40146. * __addqq3: Fixed-point fractional library routines.
  40147. (line 27)
  40148. * __addsa3: Fixed-point fractional library routines.
  40149. (line 43)
  40150. * __addsf3: Soft float library routines.
  40151. (line 21)
  40152. * __addsq3: Fixed-point fractional library routines.
  40153. (line 30)
  40154. * __addta3: Fixed-point fractional library routines.
  40155. (line 45)
  40156. * __addtf3: Soft float library routines.
  40157. (line 23)
  40158. * __adduda3: Fixed-point fractional library routines.
  40159. (line 51)
  40160. * __addudq3: Fixed-point fractional library routines.
  40161. (line 39)
  40162. * __adduha3: Fixed-point fractional library routines.
  40163. (line 47)
  40164. * __adduhq3: Fixed-point fractional library routines.
  40165. (line 35)
  40166. * __adduqq3: Fixed-point fractional library routines.
  40167. (line 33)
  40168. * __addusa3: Fixed-point fractional library routines.
  40169. (line 49)
  40170. * __addusq3: Fixed-point fractional library routines.
  40171. (line 37)
  40172. * __adduta3: Fixed-point fractional library routines.
  40173. (line 53)
  40174. * __addvdi3: Integer library routines.
  40175. (line 110)
  40176. * __addvsi3: Integer library routines.
  40177. (line 109)
  40178. * __addxf3: Soft float library routines.
  40179. (line 25)
  40180. * __ashlda3: Fixed-point fractional library routines.
  40181. (line 350)
  40182. * __ashldi3: Integer library routines.
  40183. (line 13)
  40184. * __ashldq3: Fixed-point fractional library routines.
  40185. (line 338)
  40186. * __ashlha3: Fixed-point fractional library routines.
  40187. (line 348)
  40188. * __ashlhq3: Fixed-point fractional library routines.
  40189. (line 336)
  40190. * __ashlqq3: Fixed-point fractional library routines.
  40191. (line 335)
  40192. * __ashlsa3: Fixed-point fractional library routines.
  40193. (line 349)
  40194. * __ashlsi3: Integer library routines.
  40195. (line 12)
  40196. * __ashlsq3: Fixed-point fractional library routines.
  40197. (line 337)
  40198. * __ashlta3: Fixed-point fractional library routines.
  40199. (line 351)
  40200. * __ashlti3: Integer library routines.
  40201. (line 14)
  40202. * __ashluda3: Fixed-point fractional library routines.
  40203. (line 357)
  40204. * __ashludq3: Fixed-point fractional library routines.
  40205. (line 346)
  40206. * __ashluha3: Fixed-point fractional library routines.
  40207. (line 353)
  40208. * __ashluhq3: Fixed-point fractional library routines.
  40209. (line 342)
  40210. * __ashluqq3: Fixed-point fractional library routines.
  40211. (line 340)
  40212. * __ashlusa3: Fixed-point fractional library routines.
  40213. (line 355)
  40214. * __ashlusq3: Fixed-point fractional library routines.
  40215. (line 344)
  40216. * __ashluta3: Fixed-point fractional library routines.
  40217. (line 359)
  40218. * __ashrda3: Fixed-point fractional library routines.
  40219. (line 370)
  40220. * __ashrdi3: Integer library routines.
  40221. (line 18)
  40222. * __ashrdq3: Fixed-point fractional library routines.
  40223. (line 366)
  40224. * __ashrha3: Fixed-point fractional library routines.
  40225. (line 368)
  40226. * __ashrhq3: Fixed-point fractional library routines.
  40227. (line 364)
  40228. * __ashrqq3: Fixed-point fractional library routines.
  40229. (line 363)
  40230. * __ashrsa3: Fixed-point fractional library routines.
  40231. (line 369)
  40232. * __ashrsi3: Integer library routines.
  40233. (line 17)
  40234. * __ashrsq3: Fixed-point fractional library routines.
  40235. (line 365)
  40236. * __ashrta3: Fixed-point fractional library routines.
  40237. (line 371)
  40238. * __ashrti3: Integer library routines.
  40239. (line 19)
  40240. * __bid_adddd3: Decimal float library routines.
  40241. (line 23)
  40242. * __bid_addsd3: Decimal float library routines.
  40243. (line 19)
  40244. * __bid_addtd3: Decimal float library routines.
  40245. (line 27)
  40246. * __bid_divdd3: Decimal float library routines.
  40247. (line 66)
  40248. * __bid_divsd3: Decimal float library routines.
  40249. (line 62)
  40250. * __bid_divtd3: Decimal float library routines.
  40251. (line 70)
  40252. * __bid_eqdd2: Decimal float library routines.
  40253. (line 258)
  40254. * __bid_eqsd2: Decimal float library routines.
  40255. (line 256)
  40256. * __bid_eqtd2: Decimal float library routines.
  40257. (line 260)
  40258. * __bid_extendddtd2: Decimal float library routines.
  40259. (line 91)
  40260. * __bid_extendddtf: Decimal float library routines.
  40261. (line 139)
  40262. * __bid_extendddxf: Decimal float library routines.
  40263. (line 133)
  40264. * __bid_extenddfdd: Decimal float library routines.
  40265. (line 146)
  40266. * __bid_extenddftd: Decimal float library routines.
  40267. (line 106)
  40268. * __bid_extendsddd2: Decimal float library routines.
  40269. (line 87)
  40270. * __bid_extendsddf: Decimal float library routines.
  40271. (line 127)
  40272. * __bid_extendsdtd2: Decimal float library routines.
  40273. (line 89)
  40274. * __bid_extendsdtf: Decimal float library routines.
  40275. (line 137)
  40276. * __bid_extendsdxf: Decimal float library routines.
  40277. (line 131)
  40278. * __bid_extendsfdd: Decimal float library routines.
  40279. (line 102)
  40280. * __bid_extendsfsd: Decimal float library routines.
  40281. (line 144)
  40282. * __bid_extendsftd: Decimal float library routines.
  40283. (line 104)
  40284. * __bid_extendtftd: Decimal float library routines.
  40285. (line 148)
  40286. * __bid_extendxftd: Decimal float library routines.
  40287. (line 108)
  40288. * __bid_fixdddi: Decimal float library routines.
  40289. (line 169)
  40290. * __bid_fixddsi: Decimal float library routines.
  40291. (line 161)
  40292. * __bid_fixsddi: Decimal float library routines.
  40293. (line 167)
  40294. * __bid_fixsdsi: Decimal float library routines.
  40295. (line 159)
  40296. * __bid_fixtddi: Decimal float library routines.
  40297. (line 171)
  40298. * __bid_fixtdsi: Decimal float library routines.
  40299. (line 163)
  40300. * __bid_fixunsdddi: Decimal float library routines.
  40301. (line 186)
  40302. * __bid_fixunsddsi: Decimal float library routines.
  40303. (line 177)
  40304. * __bid_fixunssddi: Decimal float library routines.
  40305. (line 184)
  40306. * __bid_fixunssdsi: Decimal float library routines.
  40307. (line 175)
  40308. * __bid_fixunstddi: Decimal float library routines.
  40309. (line 188)
  40310. * __bid_fixunstdsi: Decimal float library routines.
  40311. (line 179)
  40312. * __bid_floatdidd: Decimal float library routines.
  40313. (line 204)
  40314. * __bid_floatdisd: Decimal float library routines.
  40315. (line 202)
  40316. * __bid_floatditd: Decimal float library routines.
  40317. (line 206)
  40318. * __bid_floatsidd: Decimal float library routines.
  40319. (line 195)
  40320. * __bid_floatsisd: Decimal float library routines.
  40321. (line 193)
  40322. * __bid_floatsitd: Decimal float library routines.
  40323. (line 197)
  40324. * __bid_floatunsdidd: Decimal float library routines.
  40325. (line 222)
  40326. * __bid_floatunsdisd: Decimal float library routines.
  40327. (line 220)
  40328. * __bid_floatunsditd: Decimal float library routines.
  40329. (line 224)
  40330. * __bid_floatunssidd: Decimal float library routines.
  40331. (line 213)
  40332. * __bid_floatunssisd: Decimal float library routines.
  40333. (line 211)
  40334. * __bid_floatunssitd: Decimal float library routines.
  40335. (line 215)
  40336. * __bid_gedd2: Decimal float library routines.
  40337. (line 276)
  40338. * __bid_gesd2: Decimal float library routines.
  40339. (line 274)
  40340. * __bid_getd2: Decimal float library routines.
  40341. (line 278)
  40342. * __bid_gtdd2: Decimal float library routines.
  40343. (line 303)
  40344. * __bid_gtsd2: Decimal float library routines.
  40345. (line 301)
  40346. * __bid_gttd2: Decimal float library routines.
  40347. (line 305)
  40348. * __bid_ledd2: Decimal float library routines.
  40349. (line 294)
  40350. * __bid_lesd2: Decimal float library routines.
  40351. (line 292)
  40352. * __bid_letd2: Decimal float library routines.
  40353. (line 296)
  40354. * __bid_ltdd2: Decimal float library routines.
  40355. (line 285)
  40356. * __bid_ltsd2: Decimal float library routines.
  40357. (line 283)
  40358. * __bid_lttd2: Decimal float library routines.
  40359. (line 287)
  40360. * __bid_muldd3: Decimal float library routines.
  40361. (line 52)
  40362. * __bid_mulsd3: Decimal float library routines.
  40363. (line 48)
  40364. * __bid_multd3: Decimal float library routines.
  40365. (line 56)
  40366. * __bid_nedd2: Decimal float library routines.
  40367. (line 267)
  40368. * __bid_negdd2: Decimal float library routines.
  40369. (line 77)
  40370. * __bid_negsd2: Decimal float library routines.
  40371. (line 75)
  40372. * __bid_negtd2: Decimal float library routines.
  40373. (line 79)
  40374. * __bid_nesd2: Decimal float library routines.
  40375. (line 265)
  40376. * __bid_netd2: Decimal float library routines.
  40377. (line 269)
  40378. * __bid_subdd3: Decimal float library routines.
  40379. (line 37)
  40380. * __bid_subsd3: Decimal float library routines.
  40381. (line 33)
  40382. * __bid_subtd3: Decimal float library routines.
  40383. (line 41)
  40384. * __bid_truncdddf: Decimal float library routines.
  40385. (line 152)
  40386. * __bid_truncddsd2: Decimal float library routines.
  40387. (line 93)
  40388. * __bid_truncddsf: Decimal float library routines.
  40389. (line 123)
  40390. * __bid_truncdfsd: Decimal float library routines.
  40391. (line 110)
  40392. * __bid_truncsdsf: Decimal float library routines.
  40393. (line 150)
  40394. * __bid_trunctddd2: Decimal float library routines.
  40395. (line 97)
  40396. * __bid_trunctddf: Decimal float library routines.
  40397. (line 129)
  40398. * __bid_trunctdsd2: Decimal float library routines.
  40399. (line 95)
  40400. * __bid_trunctdsf: Decimal float library routines.
  40401. (line 125)
  40402. * __bid_trunctdtf: Decimal float library routines.
  40403. (line 154)
  40404. * __bid_trunctdxf: Decimal float library routines.
  40405. (line 135)
  40406. * __bid_trunctfdd: Decimal float library routines.
  40407. (line 118)
  40408. * __bid_trunctfsd: Decimal float library routines.
  40409. (line 114)
  40410. * __bid_truncxfdd: Decimal float library routines.
  40411. (line 116)
  40412. * __bid_truncxfsd: Decimal float library routines.
  40413. (line 112)
  40414. * __bid_unorddd2: Decimal float library routines.
  40415. (line 234)
  40416. * __bid_unordsd2: Decimal float library routines.
  40417. (line 232)
  40418. * __bid_unordtd2: Decimal float library routines.
  40419. (line 236)
  40420. * __bswapdi2: Integer library routines.
  40421. (line 161)
  40422. * __bswapsi2: Integer library routines.
  40423. (line 160)
  40424. * __builtin_classify_type: Varargs. (line 48)
  40425. * __builtin_next_arg: Varargs. (line 39)
  40426. * __builtin_saveregs: Varargs. (line 22)
  40427. * __clear_cache: Miscellaneous routines.
  40428. (line 9)
  40429. * __clzdi2: Integer library routines.
  40430. (line 130)
  40431. * __clzsi2: Integer library routines.
  40432. (line 129)
  40433. * __clzti2: Integer library routines.
  40434. (line 131)
  40435. * __cmpda2: Fixed-point fractional library routines.
  40436. (line 450)
  40437. * __cmpdf2: Soft float library routines.
  40438. (line 163)
  40439. * __cmpdi2: Integer library routines.
  40440. (line 86)
  40441. * __cmpdq2: Fixed-point fractional library routines.
  40442. (line 439)
  40443. * __cmpha2: Fixed-point fractional library routines.
  40444. (line 448)
  40445. * __cmphq2: Fixed-point fractional library routines.
  40446. (line 437)
  40447. * __cmpqq2: Fixed-point fractional library routines.
  40448. (line 436)
  40449. * __cmpsa2: Fixed-point fractional library routines.
  40450. (line 449)
  40451. * __cmpsf2: Soft float library routines.
  40452. (line 162)
  40453. * __cmpsq2: Fixed-point fractional library routines.
  40454. (line 438)
  40455. * __cmpta2: Fixed-point fractional library routines.
  40456. (line 451)
  40457. * __cmptf2: Soft float library routines.
  40458. (line 164)
  40459. * __cmpti2: Integer library routines.
  40460. (line 87)
  40461. * __cmpuda2: Fixed-point fractional library routines.
  40462. (line 456)
  40463. * __cmpudq2: Fixed-point fractional library routines.
  40464. (line 446)
  40465. * __cmpuha2: Fixed-point fractional library routines.
  40466. (line 453)
  40467. * __cmpuhq2: Fixed-point fractional library routines.
  40468. (line 443)
  40469. * __cmpuqq2: Fixed-point fractional library routines.
  40470. (line 441)
  40471. * __cmpusa2: Fixed-point fractional library routines.
  40472. (line 455)
  40473. * __cmpusq2: Fixed-point fractional library routines.
  40474. (line 444)
  40475. * __cmputa2: Fixed-point fractional library routines.
  40476. (line 458)
  40477. * __CTOR_LIST__: Initialization. (line 25)
  40478. * __ctzdi2: Integer library routines.
  40479. (line 137)
  40480. * __ctzsi2: Integer library routines.
  40481. (line 136)
  40482. * __ctzti2: Integer library routines.
  40483. (line 138)
  40484. * __divda3: Fixed-point fractional library routines.
  40485. (line 226)
  40486. * __divdc3: Soft float library routines.
  40487. (line 250)
  40488. * __divdf3: Soft float library routines.
  40489. (line 47)
  40490. * __divdi3: Integer library routines.
  40491. (line 24)
  40492. * __divdq3: Fixed-point fractional library routines.
  40493. (line 221)
  40494. * __divha3: Fixed-point fractional library routines.
  40495. (line 223)
  40496. * __divhq3: Fixed-point fractional library routines.
  40497. (line 219)
  40498. * __divqq3: Fixed-point fractional library routines.
  40499. (line 217)
  40500. * __divsa3: Fixed-point fractional library routines.
  40501. (line 225)
  40502. * __divsc3: Soft float library routines.
  40503. (line 248)
  40504. * __divsf3: Soft float library routines.
  40505. (line 46)
  40506. * __divsi3: Integer library routines.
  40507. (line 23)
  40508. * __divsq3: Fixed-point fractional library routines.
  40509. (line 220)
  40510. * __divta3: Fixed-point fractional library routines.
  40511. (line 227)
  40512. * __divtc3: Soft float library routines.
  40513. (line 252)
  40514. * __divtf3: Soft float library routines.
  40515. (line 48)
  40516. * __divti3: Integer library routines.
  40517. (line 25)
  40518. * __divxc3: Soft float library routines.
  40519. (line 254)
  40520. * __divxf3: Soft float library routines.
  40521. (line 50)
  40522. * __dpd_adddd3: Decimal float library routines.
  40523. (line 21)
  40524. * __dpd_addsd3: Decimal float library routines.
  40525. (line 17)
  40526. * __dpd_addtd3: Decimal float library routines.
  40527. (line 25)
  40528. * __dpd_divdd3: Decimal float library routines.
  40529. (line 64)
  40530. * __dpd_divsd3: Decimal float library routines.
  40531. (line 60)
  40532. * __dpd_divtd3: Decimal float library routines.
  40533. (line 68)
  40534. * __dpd_eqdd2: Decimal float library routines.
  40535. (line 257)
  40536. * __dpd_eqsd2: Decimal float library routines.
  40537. (line 255)
  40538. * __dpd_eqtd2: Decimal float library routines.
  40539. (line 259)
  40540. * __dpd_extendddtd2: Decimal float library routines.
  40541. (line 90)
  40542. * __dpd_extendddtf: Decimal float library routines.
  40543. (line 138)
  40544. * __dpd_extendddxf: Decimal float library routines.
  40545. (line 132)
  40546. * __dpd_extenddfdd: Decimal float library routines.
  40547. (line 145)
  40548. * __dpd_extenddftd: Decimal float library routines.
  40549. (line 105)
  40550. * __dpd_extendsddd2: Decimal float library routines.
  40551. (line 86)
  40552. * __dpd_extendsddf: Decimal float library routines.
  40553. (line 126)
  40554. * __dpd_extendsdtd2: Decimal float library routines.
  40555. (line 88)
  40556. * __dpd_extendsdtf: Decimal float library routines.
  40557. (line 136)
  40558. * __dpd_extendsdxf: Decimal float library routines.
  40559. (line 130)
  40560. * __dpd_extendsfdd: Decimal float library routines.
  40561. (line 101)
  40562. * __dpd_extendsfsd: Decimal float library routines.
  40563. (line 143)
  40564. * __dpd_extendsftd: Decimal float library routines.
  40565. (line 103)
  40566. * __dpd_extendtftd: Decimal float library routines.
  40567. (line 147)
  40568. * __dpd_extendxftd: Decimal float library routines.
  40569. (line 107)
  40570. * __dpd_fixdddi: Decimal float library routines.
  40571. (line 168)
  40572. * __dpd_fixddsi: Decimal float library routines.
  40573. (line 160)
  40574. * __dpd_fixsddi: Decimal float library routines.
  40575. (line 166)
  40576. * __dpd_fixsdsi: Decimal float library routines.
  40577. (line 158)
  40578. * __dpd_fixtddi: Decimal float library routines.
  40579. (line 170)
  40580. * __dpd_fixtdsi: Decimal float library routines.
  40581. (line 162)
  40582. * __dpd_fixunsdddi: Decimal float library routines.
  40583. (line 185)
  40584. * __dpd_fixunsddsi: Decimal float library routines.
  40585. (line 176)
  40586. * __dpd_fixunssddi: Decimal float library routines.
  40587. (line 183)
  40588. * __dpd_fixunssdsi: Decimal float library routines.
  40589. (line 174)
  40590. * __dpd_fixunstddi: Decimal float library routines.
  40591. (line 187)
  40592. * __dpd_fixunstdsi: Decimal float library routines.
  40593. (line 178)
  40594. * __dpd_floatdidd: Decimal float library routines.
  40595. (line 203)
  40596. * __dpd_floatdisd: Decimal float library routines.
  40597. (line 201)
  40598. * __dpd_floatditd: Decimal float library routines.
  40599. (line 205)
  40600. * __dpd_floatsidd: Decimal float library routines.
  40601. (line 194)
  40602. * __dpd_floatsisd: Decimal float library routines.
  40603. (line 192)
  40604. * __dpd_floatsitd: Decimal float library routines.
  40605. (line 196)
  40606. * __dpd_floatunsdidd: Decimal float library routines.
  40607. (line 221)
  40608. * __dpd_floatunsdisd: Decimal float library routines.
  40609. (line 219)
  40610. * __dpd_floatunsditd: Decimal float library routines.
  40611. (line 223)
  40612. * __dpd_floatunssidd: Decimal float library routines.
  40613. (line 212)
  40614. * __dpd_floatunssisd: Decimal float library routines.
  40615. (line 210)
  40616. * __dpd_floatunssitd: Decimal float library routines.
  40617. (line 214)
  40618. * __dpd_gedd2: Decimal float library routines.
  40619. (line 275)
  40620. * __dpd_gesd2: Decimal float library routines.
  40621. (line 273)
  40622. * __dpd_getd2: Decimal float library routines.
  40623. (line 277)
  40624. * __dpd_gtdd2: Decimal float library routines.
  40625. (line 302)
  40626. * __dpd_gtsd2: Decimal float library routines.
  40627. (line 300)
  40628. * __dpd_gttd2: Decimal float library routines.
  40629. (line 304)
  40630. * __dpd_ledd2: Decimal float library routines.
  40631. (line 293)
  40632. * __dpd_lesd2: Decimal float library routines.
  40633. (line 291)
  40634. * __dpd_letd2: Decimal float library routines.
  40635. (line 295)
  40636. * __dpd_ltdd2: Decimal float library routines.
  40637. (line 284)
  40638. * __dpd_ltsd2: Decimal float library routines.
  40639. (line 282)
  40640. * __dpd_lttd2: Decimal float library routines.
  40641. (line 286)
  40642. * __dpd_muldd3: Decimal float library routines.
  40643. (line 50)
  40644. * __dpd_mulsd3: Decimal float library routines.
  40645. (line 46)
  40646. * __dpd_multd3: Decimal float library routines.
  40647. (line 54)
  40648. * __dpd_nedd2: Decimal float library routines.
  40649. (line 266)
  40650. * __dpd_negdd2: Decimal float library routines.
  40651. (line 76)
  40652. * __dpd_negsd2: Decimal float library routines.
  40653. (line 74)
  40654. * __dpd_negtd2: Decimal float library routines.
  40655. (line 78)
  40656. * __dpd_nesd2: Decimal float library routines.
  40657. (line 264)
  40658. * __dpd_netd2: Decimal float library routines.
  40659. (line 268)
  40660. * __dpd_subdd3: Decimal float library routines.
  40661. (line 35)
  40662. * __dpd_subsd3: Decimal float library routines.
  40663. (line 31)
  40664. * __dpd_subtd3: Decimal float library routines.
  40665. (line 39)
  40666. * __dpd_truncdddf: Decimal float library routines.
  40667. (line 151)
  40668. * __dpd_truncddsd2: Decimal float library routines.
  40669. (line 92)
  40670. * __dpd_truncddsf: Decimal float library routines.
  40671. (line 122)
  40672. * __dpd_truncdfsd: Decimal float library routines.
  40673. (line 109)
  40674. * __dpd_truncsdsf: Decimal float library routines.
  40675. (line 149)
  40676. * __dpd_trunctddd2: Decimal float library routines.
  40677. (line 96)
  40678. * __dpd_trunctddf: Decimal float library routines.
  40679. (line 128)
  40680. * __dpd_trunctdsd2: Decimal float library routines.
  40681. (line 94)
  40682. * __dpd_trunctdsf: Decimal float library routines.
  40683. (line 124)
  40684. * __dpd_trunctdtf: Decimal float library routines.
  40685. (line 153)
  40686. * __dpd_trunctdxf: Decimal float library routines.
  40687. (line 134)
  40688. * __dpd_trunctfdd: Decimal float library routines.
  40689. (line 117)
  40690. * __dpd_trunctfsd: Decimal float library routines.
  40691. (line 113)
  40692. * __dpd_truncxfdd: Decimal float library routines.
  40693. (line 115)
  40694. * __dpd_truncxfsd: Decimal float library routines.
  40695. (line 111)
  40696. * __dpd_unorddd2: Decimal float library routines.
  40697. (line 233)
  40698. * __dpd_unordsd2: Decimal float library routines.
  40699. (line 231)
  40700. * __dpd_unordtd2: Decimal float library routines.
  40701. (line 235)
  40702. * __DTOR_LIST__: Initialization. (line 25)
  40703. * __eqdf2: Soft float library routines.
  40704. (line 193)
  40705. * __eqsf2: Soft float library routines.
  40706. (line 192)
  40707. * __eqtf2: Soft float library routines.
  40708. (line 194)
  40709. * __extenddftf2: Soft float library routines.
  40710. (line 67)
  40711. * __extenddfxf2: Soft float library routines.
  40712. (line 68)
  40713. * __extendsfdf2: Soft float library routines.
  40714. (line 64)
  40715. * __extendsftf2: Soft float library routines.
  40716. (line 65)
  40717. * __extendsfxf2: Soft float library routines.
  40718. (line 66)
  40719. * __ffsdi2: Integer library routines.
  40720. (line 143)
  40721. * __ffsti2: Integer library routines.
  40722. (line 144)
  40723. * __fixdfdi: Soft float library routines.
  40724. (line 87)
  40725. * __fixdfsi: Soft float library routines.
  40726. (line 80)
  40727. * __fixdfti: Soft float library routines.
  40728. (line 93)
  40729. * __fixsfdi: Soft float library routines.
  40730. (line 86)
  40731. * __fixsfsi: Soft float library routines.
  40732. (line 79)
  40733. * __fixsfti: Soft float library routines.
  40734. (line 92)
  40735. * __fixtfdi: Soft float library routines.
  40736. (line 88)
  40737. * __fixtfsi: Soft float library routines.
  40738. (line 81)
  40739. * __fixtfti: Soft float library routines.
  40740. (line 94)
  40741. * __fixunsdfdi: Soft float library routines.
  40742. (line 107)
  40743. * __fixunsdfsi: Soft float library routines.
  40744. (line 100)
  40745. * __fixunsdfti: Soft float library routines.
  40746. (line 114)
  40747. * __fixunssfdi: Soft float library routines.
  40748. (line 106)
  40749. * __fixunssfsi: Soft float library routines.
  40750. (line 99)
  40751. * __fixunssfti: Soft float library routines.
  40752. (line 113)
  40753. * __fixunstfdi: Soft float library routines.
  40754. (line 108)
  40755. * __fixunstfsi: Soft float library routines.
  40756. (line 101)
  40757. * __fixunstfti: Soft float library routines.
  40758. (line 115)
  40759. * __fixunsxfdi: Soft float library routines.
  40760. (line 109)
  40761. * __fixunsxfsi: Soft float library routines.
  40762. (line 102)
  40763. * __fixunsxfti: Soft float library routines.
  40764. (line 116)
  40765. * __fixxfdi: Soft float library routines.
  40766. (line 89)
  40767. * __fixxfsi: Soft float library routines.
  40768. (line 82)
  40769. * __fixxfti: Soft float library routines.
  40770. (line 95)
  40771. * __floatdidf: Soft float library routines.
  40772. (line 127)
  40773. * __floatdisf: Soft float library routines.
  40774. (line 126)
  40775. * __floatditf: Soft float library routines.
  40776. (line 128)
  40777. * __floatdixf: Soft float library routines.
  40778. (line 129)
  40779. * __floatsidf: Soft float library routines.
  40780. (line 121)
  40781. * __floatsisf: Soft float library routines.
  40782. (line 120)
  40783. * __floatsitf: Soft float library routines.
  40784. (line 122)
  40785. * __floatsixf: Soft float library routines.
  40786. (line 123)
  40787. * __floattidf: Soft float library routines.
  40788. (line 133)
  40789. * __floattisf: Soft float library routines.
  40790. (line 132)
  40791. * __floattitf: Soft float library routines.
  40792. (line 134)
  40793. * __floattixf: Soft float library routines.
  40794. (line 135)
  40795. * __floatundidf: Soft float library routines.
  40796. (line 145)
  40797. * __floatundisf: Soft float library routines.
  40798. (line 144)
  40799. * __floatunditf: Soft float library routines.
  40800. (line 146)
  40801. * __floatundixf: Soft float library routines.
  40802. (line 147)
  40803. * __floatunsidf: Soft float library routines.
  40804. (line 139)
  40805. * __floatunsisf: Soft float library routines.
  40806. (line 138)
  40807. * __floatunsitf: Soft float library routines.
  40808. (line 140)
  40809. * __floatunsixf: Soft float library routines.
  40810. (line 141)
  40811. * __floatuntidf: Soft float library routines.
  40812. (line 151)
  40813. * __floatuntisf: Soft float library routines.
  40814. (line 150)
  40815. * __floatuntitf: Soft float library routines.
  40816. (line 152)
  40817. * __floatuntixf: Soft float library routines.
  40818. (line 153)
  40819. * __fractdadf: Fixed-point fractional library routines.
  40820. (line 635)
  40821. * __fractdadi: Fixed-point fractional library routines.
  40822. (line 632)
  40823. * __fractdadq: Fixed-point fractional library routines.
  40824. (line 615)
  40825. * __fractdaha2: Fixed-point fractional library routines.
  40826. (line 616)
  40827. * __fractdahi: Fixed-point fractional library routines.
  40828. (line 630)
  40829. * __fractdahq: Fixed-point fractional library routines.
  40830. (line 613)
  40831. * __fractdaqi: Fixed-point fractional library routines.
  40832. (line 629)
  40833. * __fractdaqq: Fixed-point fractional library routines.
  40834. (line 612)
  40835. * __fractdasa2: Fixed-point fractional library routines.
  40836. (line 617)
  40837. * __fractdasf: Fixed-point fractional library routines.
  40838. (line 634)
  40839. * __fractdasi: Fixed-point fractional library routines.
  40840. (line 631)
  40841. * __fractdasq: Fixed-point fractional library routines.
  40842. (line 614)
  40843. * __fractdata2: Fixed-point fractional library routines.
  40844. (line 618)
  40845. * __fractdati: Fixed-point fractional library routines.
  40846. (line 633)
  40847. * __fractdauda: Fixed-point fractional library routines.
  40848. (line 626)
  40849. * __fractdaudq: Fixed-point fractional library routines.
  40850. (line 622)
  40851. * __fractdauha: Fixed-point fractional library routines.
  40852. (line 624)
  40853. * __fractdauhq: Fixed-point fractional library routines.
  40854. (line 620)
  40855. * __fractdauqq: Fixed-point fractional library routines.
  40856. (line 619)
  40857. * __fractdausa: Fixed-point fractional library routines.
  40858. (line 625)
  40859. * __fractdausq: Fixed-point fractional library routines.
  40860. (line 621)
  40861. * __fractdauta: Fixed-point fractional library routines.
  40862. (line 627)
  40863. * __fractdfda: Fixed-point fractional library routines.
  40864. (line 1024)
  40865. * __fractdfdq: Fixed-point fractional library routines.
  40866. (line 1021)
  40867. * __fractdfha: Fixed-point fractional library routines.
  40868. (line 1022)
  40869. * __fractdfhq: Fixed-point fractional library routines.
  40870. (line 1019)
  40871. * __fractdfqq: Fixed-point fractional library routines.
  40872. (line 1018)
  40873. * __fractdfsa: Fixed-point fractional library routines.
  40874. (line 1023)
  40875. * __fractdfsq: Fixed-point fractional library routines.
  40876. (line 1020)
  40877. * __fractdfta: Fixed-point fractional library routines.
  40878. (line 1025)
  40879. * __fractdfuda: Fixed-point fractional library routines.
  40880. (line 1032)
  40881. * __fractdfudq: Fixed-point fractional library routines.
  40882. (line 1029)
  40883. * __fractdfuha: Fixed-point fractional library routines.
  40884. (line 1030)
  40885. * __fractdfuhq: Fixed-point fractional library routines.
  40886. (line 1027)
  40887. * __fractdfuqq: Fixed-point fractional library routines.
  40888. (line 1026)
  40889. * __fractdfusa: Fixed-point fractional library routines.
  40890. (line 1031)
  40891. * __fractdfusq: Fixed-point fractional library routines.
  40892. (line 1028)
  40893. * __fractdfuta: Fixed-point fractional library routines.
  40894. (line 1033)
  40895. * __fractdida: Fixed-point fractional library routines.
  40896. (line 974)
  40897. * __fractdidq: Fixed-point fractional library routines.
  40898. (line 971)
  40899. * __fractdiha: Fixed-point fractional library routines.
  40900. (line 972)
  40901. * __fractdihq: Fixed-point fractional library routines.
  40902. (line 969)
  40903. * __fractdiqq: Fixed-point fractional library routines.
  40904. (line 968)
  40905. * __fractdisa: Fixed-point fractional library routines.
  40906. (line 973)
  40907. * __fractdisq: Fixed-point fractional library routines.
  40908. (line 970)
  40909. * __fractdita: Fixed-point fractional library routines.
  40910. (line 975)
  40911. * __fractdiuda: Fixed-point fractional library routines.
  40912. (line 982)
  40913. * __fractdiudq: Fixed-point fractional library routines.
  40914. (line 979)
  40915. * __fractdiuha: Fixed-point fractional library routines.
  40916. (line 980)
  40917. * __fractdiuhq: Fixed-point fractional library routines.
  40918. (line 977)
  40919. * __fractdiuqq: Fixed-point fractional library routines.
  40920. (line 976)
  40921. * __fractdiusa: Fixed-point fractional library routines.
  40922. (line 981)
  40923. * __fractdiusq: Fixed-point fractional library routines.
  40924. (line 978)
  40925. * __fractdiuta: Fixed-point fractional library routines.
  40926. (line 983)
  40927. * __fractdqda: Fixed-point fractional library routines.
  40928. (line 543)
  40929. * __fractdqdf: Fixed-point fractional library routines.
  40930. (line 565)
  40931. * __fractdqdi: Fixed-point fractional library routines.
  40932. (line 562)
  40933. * __fractdqha: Fixed-point fractional library routines.
  40934. (line 541)
  40935. * __fractdqhi: Fixed-point fractional library routines.
  40936. (line 560)
  40937. * __fractdqhq2: Fixed-point fractional library routines.
  40938. (line 539)
  40939. * __fractdqqi: Fixed-point fractional library routines.
  40940. (line 559)
  40941. * __fractdqqq2: Fixed-point fractional library routines.
  40942. (line 538)
  40943. * __fractdqsa: Fixed-point fractional library routines.
  40944. (line 542)
  40945. * __fractdqsf: Fixed-point fractional library routines.
  40946. (line 564)
  40947. * __fractdqsi: Fixed-point fractional library routines.
  40948. (line 561)
  40949. * __fractdqsq2: Fixed-point fractional library routines.
  40950. (line 540)
  40951. * __fractdqta: Fixed-point fractional library routines.
  40952. (line 544)
  40953. * __fractdqti: Fixed-point fractional library routines.
  40954. (line 563)
  40955. * __fractdquda: Fixed-point fractional library routines.
  40956. (line 555)
  40957. * __fractdqudq: Fixed-point fractional library routines.
  40958. (line 550)
  40959. * __fractdquha: Fixed-point fractional library routines.
  40960. (line 552)
  40961. * __fractdquhq: Fixed-point fractional library routines.
  40962. (line 547)
  40963. * __fractdquqq: Fixed-point fractional library routines.
  40964. (line 545)
  40965. * __fractdqusa: Fixed-point fractional library routines.
  40966. (line 554)
  40967. * __fractdqusq: Fixed-point fractional library routines.
  40968. (line 548)
  40969. * __fractdquta: Fixed-point fractional library routines.
  40970. (line 557)
  40971. * __fracthada2: Fixed-point fractional library routines.
  40972. (line 571)
  40973. * __fracthadf: Fixed-point fractional library routines.
  40974. (line 589)
  40975. * __fracthadi: Fixed-point fractional library routines.
  40976. (line 586)
  40977. * __fracthadq: Fixed-point fractional library routines.
  40978. (line 569)
  40979. * __fracthahi: Fixed-point fractional library routines.
  40980. (line 584)
  40981. * __fracthahq: Fixed-point fractional library routines.
  40982. (line 567)
  40983. * __fracthaqi: Fixed-point fractional library routines.
  40984. (line 583)
  40985. * __fracthaqq: Fixed-point fractional library routines.
  40986. (line 566)
  40987. * __fracthasa2: Fixed-point fractional library routines.
  40988. (line 570)
  40989. * __fracthasf: Fixed-point fractional library routines.
  40990. (line 588)
  40991. * __fracthasi: Fixed-point fractional library routines.
  40992. (line 585)
  40993. * __fracthasq: Fixed-point fractional library routines.
  40994. (line 568)
  40995. * __fracthata2: Fixed-point fractional library routines.
  40996. (line 572)
  40997. * __fracthati: Fixed-point fractional library routines.
  40998. (line 587)
  40999. * __fracthauda: Fixed-point fractional library routines.
  41000. (line 580)
  41001. * __fracthaudq: Fixed-point fractional library routines.
  41002. (line 576)
  41003. * __fracthauha: Fixed-point fractional library routines.
  41004. (line 578)
  41005. * __fracthauhq: Fixed-point fractional library routines.
  41006. (line 574)
  41007. * __fracthauqq: Fixed-point fractional library routines.
  41008. (line 573)
  41009. * __fracthausa: Fixed-point fractional library routines.
  41010. (line 579)
  41011. * __fracthausq: Fixed-point fractional library routines.
  41012. (line 575)
  41013. * __fracthauta: Fixed-point fractional library routines.
  41014. (line 581)
  41015. * __fracthida: Fixed-point fractional library routines.
  41016. (line 942)
  41017. * __fracthidq: Fixed-point fractional library routines.
  41018. (line 939)
  41019. * __fracthiha: Fixed-point fractional library routines.
  41020. (line 940)
  41021. * __fracthihq: Fixed-point fractional library routines.
  41022. (line 937)
  41023. * __fracthiqq: Fixed-point fractional library routines.
  41024. (line 936)
  41025. * __fracthisa: Fixed-point fractional library routines.
  41026. (line 941)
  41027. * __fracthisq: Fixed-point fractional library routines.
  41028. (line 938)
  41029. * __fracthita: Fixed-point fractional library routines.
  41030. (line 943)
  41031. * __fracthiuda: Fixed-point fractional library routines.
  41032. (line 950)
  41033. * __fracthiudq: Fixed-point fractional library routines.
  41034. (line 947)
  41035. * __fracthiuha: Fixed-point fractional library routines.
  41036. (line 948)
  41037. * __fracthiuhq: Fixed-point fractional library routines.
  41038. (line 945)
  41039. * __fracthiuqq: Fixed-point fractional library routines.
  41040. (line 944)
  41041. * __fracthiusa: Fixed-point fractional library routines.
  41042. (line 949)
  41043. * __fracthiusq: Fixed-point fractional library routines.
  41044. (line 946)
  41045. * __fracthiuta: Fixed-point fractional library routines.
  41046. (line 951)
  41047. * __fracthqda: Fixed-point fractional library routines.
  41048. (line 497)
  41049. * __fracthqdf: Fixed-point fractional library routines.
  41050. (line 513)
  41051. * __fracthqdi: Fixed-point fractional library routines.
  41052. (line 510)
  41053. * __fracthqdq2: Fixed-point fractional library routines.
  41054. (line 494)
  41055. * __fracthqha: Fixed-point fractional library routines.
  41056. (line 495)
  41057. * __fracthqhi: Fixed-point fractional library routines.
  41058. (line 508)
  41059. * __fracthqqi: Fixed-point fractional library routines.
  41060. (line 507)
  41061. * __fracthqqq2: Fixed-point fractional library routines.
  41062. (line 492)
  41063. * __fracthqsa: Fixed-point fractional library routines.
  41064. (line 496)
  41065. * __fracthqsf: Fixed-point fractional library routines.
  41066. (line 512)
  41067. * __fracthqsi: Fixed-point fractional library routines.
  41068. (line 509)
  41069. * __fracthqsq2: Fixed-point fractional library routines.
  41070. (line 493)
  41071. * __fracthqta: Fixed-point fractional library routines.
  41072. (line 498)
  41073. * __fracthqti: Fixed-point fractional library routines.
  41074. (line 511)
  41075. * __fracthquda: Fixed-point fractional library routines.
  41076. (line 505)
  41077. * __fracthqudq: Fixed-point fractional library routines.
  41078. (line 502)
  41079. * __fracthquha: Fixed-point fractional library routines.
  41080. (line 503)
  41081. * __fracthquhq: Fixed-point fractional library routines.
  41082. (line 500)
  41083. * __fracthquqq: Fixed-point fractional library routines.
  41084. (line 499)
  41085. * __fracthqusa: Fixed-point fractional library routines.
  41086. (line 504)
  41087. * __fracthqusq: Fixed-point fractional library routines.
  41088. (line 501)
  41089. * __fracthquta: Fixed-point fractional library routines.
  41090. (line 506)
  41091. * __fractqida: Fixed-point fractional library routines.
  41092. (line 924)
  41093. * __fractqidq: Fixed-point fractional library routines.
  41094. (line 921)
  41095. * __fractqiha: Fixed-point fractional library routines.
  41096. (line 922)
  41097. * __fractqihq: Fixed-point fractional library routines.
  41098. (line 919)
  41099. * __fractqiqq: Fixed-point fractional library routines.
  41100. (line 918)
  41101. * __fractqisa: Fixed-point fractional library routines.
  41102. (line 923)
  41103. * __fractqisq: Fixed-point fractional library routines.
  41104. (line 920)
  41105. * __fractqita: Fixed-point fractional library routines.
  41106. (line 925)
  41107. * __fractqiuda: Fixed-point fractional library routines.
  41108. (line 933)
  41109. * __fractqiudq: Fixed-point fractional library routines.
  41110. (line 929)
  41111. * __fractqiuha: Fixed-point fractional library routines.
  41112. (line 931)
  41113. * __fractqiuhq: Fixed-point fractional library routines.
  41114. (line 927)
  41115. * __fractqiuqq: Fixed-point fractional library routines.
  41116. (line 926)
  41117. * __fractqiusa: Fixed-point fractional library routines.
  41118. (line 932)
  41119. * __fractqiusq: Fixed-point fractional library routines.
  41120. (line 928)
  41121. * __fractqiuta: Fixed-point fractional library routines.
  41122. (line 934)
  41123. * __fractqqda: Fixed-point fractional library routines.
  41124. (line 473)
  41125. * __fractqqdf: Fixed-point fractional library routines.
  41126. (line 491)
  41127. * __fractqqdi: Fixed-point fractional library routines.
  41128. (line 488)
  41129. * __fractqqdq2: Fixed-point fractional library routines.
  41130. (line 470)
  41131. * __fractqqha: Fixed-point fractional library routines.
  41132. (line 471)
  41133. * __fractqqhi: Fixed-point fractional library routines.
  41134. (line 486)
  41135. * __fractqqhq2: Fixed-point fractional library routines.
  41136. (line 468)
  41137. * __fractqqqi: Fixed-point fractional library routines.
  41138. (line 485)
  41139. * __fractqqsa: Fixed-point fractional library routines.
  41140. (line 472)
  41141. * __fractqqsf: Fixed-point fractional library routines.
  41142. (line 490)
  41143. * __fractqqsi: Fixed-point fractional library routines.
  41144. (line 487)
  41145. * __fractqqsq2: Fixed-point fractional library routines.
  41146. (line 469)
  41147. * __fractqqta: Fixed-point fractional library routines.
  41148. (line 474)
  41149. * __fractqqti: Fixed-point fractional library routines.
  41150. (line 489)
  41151. * __fractqquda: Fixed-point fractional library routines.
  41152. (line 482)
  41153. * __fractqqudq: Fixed-point fractional library routines.
  41154. (line 478)
  41155. * __fractqquha: Fixed-point fractional library routines.
  41156. (line 480)
  41157. * __fractqquhq: Fixed-point fractional library routines.
  41158. (line 476)
  41159. * __fractqquqq: Fixed-point fractional library routines.
  41160. (line 475)
  41161. * __fractqqusa: Fixed-point fractional library routines.
  41162. (line 481)
  41163. * __fractqqusq: Fixed-point fractional library routines.
  41164. (line 477)
  41165. * __fractqquta: Fixed-point fractional library routines.
  41166. (line 483)
  41167. * __fractsada2: Fixed-point fractional library routines.
  41168. (line 595)
  41169. * __fractsadf: Fixed-point fractional library routines.
  41170. (line 611)
  41171. * __fractsadi: Fixed-point fractional library routines.
  41172. (line 608)
  41173. * __fractsadq: Fixed-point fractional library routines.
  41174. (line 593)
  41175. * __fractsaha2: Fixed-point fractional library routines.
  41176. (line 594)
  41177. * __fractsahi: Fixed-point fractional library routines.
  41178. (line 606)
  41179. * __fractsahq: Fixed-point fractional library routines.
  41180. (line 591)
  41181. * __fractsaqi: Fixed-point fractional library routines.
  41182. (line 605)
  41183. * __fractsaqq: Fixed-point fractional library routines.
  41184. (line 590)
  41185. * __fractsasf: Fixed-point fractional library routines.
  41186. (line 610)
  41187. * __fractsasi: Fixed-point fractional library routines.
  41188. (line 607)
  41189. * __fractsasq: Fixed-point fractional library routines.
  41190. (line 592)
  41191. * __fractsata2: Fixed-point fractional library routines.
  41192. (line 596)
  41193. * __fractsati: Fixed-point fractional library routines.
  41194. (line 609)
  41195. * __fractsauda: Fixed-point fractional library routines.
  41196. (line 603)
  41197. * __fractsaudq: Fixed-point fractional library routines.
  41198. (line 600)
  41199. * __fractsauha: Fixed-point fractional library routines.
  41200. (line 601)
  41201. * __fractsauhq: Fixed-point fractional library routines.
  41202. (line 598)
  41203. * __fractsauqq: Fixed-point fractional library routines.
  41204. (line 597)
  41205. * __fractsausa: Fixed-point fractional library routines.
  41206. (line 602)
  41207. * __fractsausq: Fixed-point fractional library routines.
  41208. (line 599)
  41209. * __fractsauta: Fixed-point fractional library routines.
  41210. (line 604)
  41211. * __fractsfda: Fixed-point fractional library routines.
  41212. (line 1008)
  41213. * __fractsfdq: Fixed-point fractional library routines.
  41214. (line 1005)
  41215. * __fractsfha: Fixed-point fractional library routines.
  41216. (line 1006)
  41217. * __fractsfhq: Fixed-point fractional library routines.
  41218. (line 1003)
  41219. * __fractsfqq: Fixed-point fractional library routines.
  41220. (line 1002)
  41221. * __fractsfsa: Fixed-point fractional library routines.
  41222. (line 1007)
  41223. * __fractsfsq: Fixed-point fractional library routines.
  41224. (line 1004)
  41225. * __fractsfta: Fixed-point fractional library routines.
  41226. (line 1009)
  41227. * __fractsfuda: Fixed-point fractional library routines.
  41228. (line 1016)
  41229. * __fractsfudq: Fixed-point fractional library routines.
  41230. (line 1013)
  41231. * __fractsfuha: Fixed-point fractional library routines.
  41232. (line 1014)
  41233. * __fractsfuhq: Fixed-point fractional library routines.
  41234. (line 1011)
  41235. * __fractsfuqq: Fixed-point fractional library routines.
  41236. (line 1010)
  41237. * __fractsfusa: Fixed-point fractional library routines.
  41238. (line 1015)
  41239. * __fractsfusq: Fixed-point fractional library routines.
  41240. (line 1012)
  41241. * __fractsfuta: Fixed-point fractional library routines.
  41242. (line 1017)
  41243. * __fractsida: Fixed-point fractional library routines.
  41244. (line 958)
  41245. * __fractsidq: Fixed-point fractional library routines.
  41246. (line 955)
  41247. * __fractsiha: Fixed-point fractional library routines.
  41248. (line 956)
  41249. * __fractsihq: Fixed-point fractional library routines.
  41250. (line 953)
  41251. * __fractsiqq: Fixed-point fractional library routines.
  41252. (line 952)
  41253. * __fractsisa: Fixed-point fractional library routines.
  41254. (line 957)
  41255. * __fractsisq: Fixed-point fractional library routines.
  41256. (line 954)
  41257. * __fractsita: Fixed-point fractional library routines.
  41258. (line 959)
  41259. * __fractsiuda: Fixed-point fractional library routines.
  41260. (line 966)
  41261. * __fractsiudq: Fixed-point fractional library routines.
  41262. (line 963)
  41263. * __fractsiuha: Fixed-point fractional library routines.
  41264. (line 964)
  41265. * __fractsiuhq: Fixed-point fractional library routines.
  41266. (line 961)
  41267. * __fractsiuqq: Fixed-point fractional library routines.
  41268. (line 960)
  41269. * __fractsiusa: Fixed-point fractional library routines.
  41270. (line 965)
  41271. * __fractsiusq: Fixed-point fractional library routines.
  41272. (line 962)
  41273. * __fractsiuta: Fixed-point fractional library routines.
  41274. (line 967)
  41275. * __fractsqda: Fixed-point fractional library routines.
  41276. (line 519)
  41277. * __fractsqdf: Fixed-point fractional library routines.
  41278. (line 537)
  41279. * __fractsqdi: Fixed-point fractional library routines.
  41280. (line 534)
  41281. * __fractsqdq2: Fixed-point fractional library routines.
  41282. (line 516)
  41283. * __fractsqha: Fixed-point fractional library routines.
  41284. (line 517)
  41285. * __fractsqhi: Fixed-point fractional library routines.
  41286. (line 532)
  41287. * __fractsqhq2: Fixed-point fractional library routines.
  41288. (line 515)
  41289. * __fractsqqi: Fixed-point fractional library routines.
  41290. (line 531)
  41291. * __fractsqqq2: Fixed-point fractional library routines.
  41292. (line 514)
  41293. * __fractsqsa: Fixed-point fractional library routines.
  41294. (line 518)
  41295. * __fractsqsf: Fixed-point fractional library routines.
  41296. (line 536)
  41297. * __fractsqsi: Fixed-point fractional library routines.
  41298. (line 533)
  41299. * __fractsqta: Fixed-point fractional library routines.
  41300. (line 520)
  41301. * __fractsqti: Fixed-point fractional library routines.
  41302. (line 535)
  41303. * __fractsquda: Fixed-point fractional library routines.
  41304. (line 528)
  41305. * __fractsqudq: Fixed-point fractional library routines.
  41306. (line 524)
  41307. * __fractsquha: Fixed-point fractional library routines.
  41308. (line 526)
  41309. * __fractsquhq: Fixed-point fractional library routines.
  41310. (line 522)
  41311. * __fractsquqq: Fixed-point fractional library routines.
  41312. (line 521)
  41313. * __fractsqusa: Fixed-point fractional library routines.
  41314. (line 527)
  41315. * __fractsqusq: Fixed-point fractional library routines.
  41316. (line 523)
  41317. * __fractsquta: Fixed-point fractional library routines.
  41318. (line 529)
  41319. * __fracttada2: Fixed-point fractional library routines.
  41320. (line 642)
  41321. * __fracttadf: Fixed-point fractional library routines.
  41322. (line 663)
  41323. * __fracttadi: Fixed-point fractional library routines.
  41324. (line 660)
  41325. * __fracttadq: Fixed-point fractional library routines.
  41326. (line 639)
  41327. * __fracttaha2: Fixed-point fractional library routines.
  41328. (line 640)
  41329. * __fracttahi: Fixed-point fractional library routines.
  41330. (line 658)
  41331. * __fracttahq: Fixed-point fractional library routines.
  41332. (line 637)
  41333. * __fracttaqi: Fixed-point fractional library routines.
  41334. (line 657)
  41335. * __fracttaqq: Fixed-point fractional library routines.
  41336. (line 636)
  41337. * __fracttasa2: Fixed-point fractional library routines.
  41338. (line 641)
  41339. * __fracttasf: Fixed-point fractional library routines.
  41340. (line 662)
  41341. * __fracttasi: Fixed-point fractional library routines.
  41342. (line 659)
  41343. * __fracttasq: Fixed-point fractional library routines.
  41344. (line 638)
  41345. * __fracttati: Fixed-point fractional library routines.
  41346. (line 661)
  41347. * __fracttauda: Fixed-point fractional library routines.
  41348. (line 653)
  41349. * __fracttaudq: Fixed-point fractional library routines.
  41350. (line 648)
  41351. * __fracttauha: Fixed-point fractional library routines.
  41352. (line 650)
  41353. * __fracttauhq: Fixed-point fractional library routines.
  41354. (line 645)
  41355. * __fracttauqq: Fixed-point fractional library routines.
  41356. (line 643)
  41357. * __fracttausa: Fixed-point fractional library routines.
  41358. (line 652)
  41359. * __fracttausq: Fixed-point fractional library routines.
  41360. (line 646)
  41361. * __fracttauta: Fixed-point fractional library routines.
  41362. (line 655)
  41363. * __fracttida: Fixed-point fractional library routines.
  41364. (line 990)
  41365. * __fracttidq: Fixed-point fractional library routines.
  41366. (line 987)
  41367. * __fracttiha: Fixed-point fractional library routines.
  41368. (line 988)
  41369. * __fracttihq: Fixed-point fractional library routines.
  41370. (line 985)
  41371. * __fracttiqq: Fixed-point fractional library routines.
  41372. (line 984)
  41373. * __fracttisa: Fixed-point fractional library routines.
  41374. (line 989)
  41375. * __fracttisq: Fixed-point fractional library routines.
  41376. (line 986)
  41377. * __fracttita: Fixed-point fractional library routines.
  41378. (line 991)
  41379. * __fracttiuda: Fixed-point fractional library routines.
  41380. (line 999)
  41381. * __fracttiudq: Fixed-point fractional library routines.
  41382. (line 995)
  41383. * __fracttiuha: Fixed-point fractional library routines.
  41384. (line 997)
  41385. * __fracttiuhq: Fixed-point fractional library routines.
  41386. (line 993)
  41387. * __fracttiuqq: Fixed-point fractional library routines.
  41388. (line 992)
  41389. * __fracttiusa: Fixed-point fractional library routines.
  41390. (line 998)
  41391. * __fracttiusq: Fixed-point fractional library routines.
  41392. (line 994)
  41393. * __fracttiuta: Fixed-point fractional library routines.
  41394. (line 1000)
  41395. * __fractudada: Fixed-point fractional library routines.
  41396. (line 857)
  41397. * __fractudadf: Fixed-point fractional library routines.
  41398. (line 880)
  41399. * __fractudadi: Fixed-point fractional library routines.
  41400. (line 877)
  41401. * __fractudadq: Fixed-point fractional library routines.
  41402. (line 853)
  41403. * __fractudaha: Fixed-point fractional library routines.
  41404. (line 855)
  41405. * __fractudahi: Fixed-point fractional library routines.
  41406. (line 875)
  41407. * __fractudahq: Fixed-point fractional library routines.
  41408. (line 851)
  41409. * __fractudaqi: Fixed-point fractional library routines.
  41410. (line 874)
  41411. * __fractudaqq: Fixed-point fractional library routines.
  41412. (line 850)
  41413. * __fractudasa: Fixed-point fractional library routines.
  41414. (line 856)
  41415. * __fractudasf: Fixed-point fractional library routines.
  41416. (line 879)
  41417. * __fractudasi: Fixed-point fractional library routines.
  41418. (line 876)
  41419. * __fractudasq: Fixed-point fractional library routines.
  41420. (line 852)
  41421. * __fractudata: Fixed-point fractional library routines.
  41422. (line 858)
  41423. * __fractudati: Fixed-point fractional library routines.
  41424. (line 878)
  41425. * __fractudaudq: Fixed-point fractional library routines.
  41426. (line 866)
  41427. * __fractudauha2: Fixed-point fractional library routines.
  41428. (line 868)
  41429. * __fractudauhq: Fixed-point fractional library routines.
  41430. (line 862)
  41431. * __fractudauqq: Fixed-point fractional library routines.
  41432. (line 860)
  41433. * __fractudausa2: Fixed-point fractional library routines.
  41434. (line 870)
  41435. * __fractudausq: Fixed-point fractional library routines.
  41436. (line 864)
  41437. * __fractudauta2: Fixed-point fractional library routines.
  41438. (line 872)
  41439. * __fractudqda: Fixed-point fractional library routines.
  41440. (line 764)
  41441. * __fractudqdf: Fixed-point fractional library routines.
  41442. (line 790)
  41443. * __fractudqdi: Fixed-point fractional library routines.
  41444. (line 786)
  41445. * __fractudqdq: Fixed-point fractional library routines.
  41446. (line 759)
  41447. * __fractudqha: Fixed-point fractional library routines.
  41448. (line 761)
  41449. * __fractudqhi: Fixed-point fractional library routines.
  41450. (line 784)
  41451. * __fractudqhq: Fixed-point fractional library routines.
  41452. (line 756)
  41453. * __fractudqqi: Fixed-point fractional library routines.
  41454. (line 782)
  41455. * __fractudqqq: Fixed-point fractional library routines.
  41456. (line 754)
  41457. * __fractudqsa: Fixed-point fractional library routines.
  41458. (line 763)
  41459. * __fractudqsf: Fixed-point fractional library routines.
  41460. (line 789)
  41461. * __fractudqsi: Fixed-point fractional library routines.
  41462. (line 785)
  41463. * __fractudqsq: Fixed-point fractional library routines.
  41464. (line 757)
  41465. * __fractudqta: Fixed-point fractional library routines.
  41466. (line 766)
  41467. * __fractudqti: Fixed-point fractional library routines.
  41468. (line 787)
  41469. * __fractudquda: Fixed-point fractional library routines.
  41470. (line 778)
  41471. * __fractudquha: Fixed-point fractional library routines.
  41472. (line 774)
  41473. * __fractudquhq2: Fixed-point fractional library routines.
  41474. (line 770)
  41475. * __fractudquqq2: Fixed-point fractional library routines.
  41476. (line 768)
  41477. * __fractudqusa: Fixed-point fractional library routines.
  41478. (line 776)
  41479. * __fractudqusq2: Fixed-point fractional library routines.
  41480. (line 772)
  41481. * __fractudquta: Fixed-point fractional library routines.
  41482. (line 780)
  41483. * __fractuhada: Fixed-point fractional library routines.
  41484. (line 798)
  41485. * __fractuhadf: Fixed-point fractional library routines.
  41486. (line 821)
  41487. * __fractuhadi: Fixed-point fractional library routines.
  41488. (line 818)
  41489. * __fractuhadq: Fixed-point fractional library routines.
  41490. (line 794)
  41491. * __fractuhaha: Fixed-point fractional library routines.
  41492. (line 796)
  41493. * __fractuhahi: Fixed-point fractional library routines.
  41494. (line 816)
  41495. * __fractuhahq: Fixed-point fractional library routines.
  41496. (line 792)
  41497. * __fractuhaqi: Fixed-point fractional library routines.
  41498. (line 815)
  41499. * __fractuhaqq: Fixed-point fractional library routines.
  41500. (line 791)
  41501. * __fractuhasa: Fixed-point fractional library routines.
  41502. (line 797)
  41503. * __fractuhasf: Fixed-point fractional library routines.
  41504. (line 820)
  41505. * __fractuhasi: Fixed-point fractional library routines.
  41506. (line 817)
  41507. * __fractuhasq: Fixed-point fractional library routines.
  41508. (line 793)
  41509. * __fractuhata: Fixed-point fractional library routines.
  41510. (line 799)
  41511. * __fractuhati: Fixed-point fractional library routines.
  41512. (line 819)
  41513. * __fractuhauda2: Fixed-point fractional library routines.
  41514. (line 811)
  41515. * __fractuhaudq: Fixed-point fractional library routines.
  41516. (line 807)
  41517. * __fractuhauhq: Fixed-point fractional library routines.
  41518. (line 803)
  41519. * __fractuhauqq: Fixed-point fractional library routines.
  41520. (line 801)
  41521. * __fractuhausa2: Fixed-point fractional library routines.
  41522. (line 809)
  41523. * __fractuhausq: Fixed-point fractional library routines.
  41524. (line 805)
  41525. * __fractuhauta2: Fixed-point fractional library routines.
  41526. (line 813)
  41527. * __fractuhqda: Fixed-point fractional library routines.
  41528. (line 701)
  41529. * __fractuhqdf: Fixed-point fractional library routines.
  41530. (line 722)
  41531. * __fractuhqdi: Fixed-point fractional library routines.
  41532. (line 719)
  41533. * __fractuhqdq: Fixed-point fractional library routines.
  41534. (line 698)
  41535. * __fractuhqha: Fixed-point fractional library routines.
  41536. (line 699)
  41537. * __fractuhqhi: Fixed-point fractional library routines.
  41538. (line 717)
  41539. * __fractuhqhq: Fixed-point fractional library routines.
  41540. (line 696)
  41541. * __fractuhqqi: Fixed-point fractional library routines.
  41542. (line 716)
  41543. * __fractuhqqq: Fixed-point fractional library routines.
  41544. (line 695)
  41545. * __fractuhqsa: Fixed-point fractional library routines.
  41546. (line 700)
  41547. * __fractuhqsf: Fixed-point fractional library routines.
  41548. (line 721)
  41549. * __fractuhqsi: Fixed-point fractional library routines.
  41550. (line 718)
  41551. * __fractuhqsq: Fixed-point fractional library routines.
  41552. (line 697)
  41553. * __fractuhqta: Fixed-point fractional library routines.
  41554. (line 702)
  41555. * __fractuhqti: Fixed-point fractional library routines.
  41556. (line 720)
  41557. * __fractuhquda: Fixed-point fractional library routines.
  41558. (line 712)
  41559. * __fractuhqudq2: Fixed-point fractional library routines.
  41560. (line 707)
  41561. * __fractuhquha: Fixed-point fractional library routines.
  41562. (line 709)
  41563. * __fractuhquqq2: Fixed-point fractional library routines.
  41564. (line 703)
  41565. * __fractuhqusa: Fixed-point fractional library routines.
  41566. (line 711)
  41567. * __fractuhqusq2: Fixed-point fractional library routines.
  41568. (line 705)
  41569. * __fractuhquta: Fixed-point fractional library routines.
  41570. (line 714)
  41571. * __fractunsdadi: Fixed-point fractional library routines.
  41572. (line 1554)
  41573. * __fractunsdahi: Fixed-point fractional library routines.
  41574. (line 1552)
  41575. * __fractunsdaqi: Fixed-point fractional library routines.
  41576. (line 1551)
  41577. * __fractunsdasi: Fixed-point fractional library routines.
  41578. (line 1553)
  41579. * __fractunsdati: Fixed-point fractional library routines.
  41580. (line 1555)
  41581. * __fractunsdida: Fixed-point fractional library routines.
  41582. (line 1706)
  41583. * __fractunsdidq: Fixed-point fractional library routines.
  41584. (line 1703)
  41585. * __fractunsdiha: Fixed-point fractional library routines.
  41586. (line 1704)
  41587. * __fractunsdihq: Fixed-point fractional library routines.
  41588. (line 1701)
  41589. * __fractunsdiqq: Fixed-point fractional library routines.
  41590. (line 1700)
  41591. * __fractunsdisa: Fixed-point fractional library routines.
  41592. (line 1705)
  41593. * __fractunsdisq: Fixed-point fractional library routines.
  41594. (line 1702)
  41595. * __fractunsdita: Fixed-point fractional library routines.
  41596. (line 1707)
  41597. * __fractunsdiuda: Fixed-point fractional library routines.
  41598. (line 1718)
  41599. * __fractunsdiudq: Fixed-point fractional library routines.
  41600. (line 1713)
  41601. * __fractunsdiuha: Fixed-point fractional library routines.
  41602. (line 1715)
  41603. * __fractunsdiuhq: Fixed-point fractional library routines.
  41604. (line 1710)
  41605. * __fractunsdiuqq: Fixed-point fractional library routines.
  41606. (line 1708)
  41607. * __fractunsdiusa: Fixed-point fractional library routines.
  41608. (line 1717)
  41609. * __fractunsdiusq: Fixed-point fractional library routines.
  41610. (line 1711)
  41611. * __fractunsdiuta: Fixed-point fractional library routines.
  41612. (line 1720)
  41613. * __fractunsdqdi: Fixed-point fractional library routines.
  41614. (line 1538)
  41615. * __fractunsdqhi: Fixed-point fractional library routines.
  41616. (line 1536)
  41617. * __fractunsdqqi: Fixed-point fractional library routines.
  41618. (line 1535)
  41619. * __fractunsdqsi: Fixed-point fractional library routines.
  41620. (line 1537)
  41621. * __fractunsdqti: Fixed-point fractional library routines.
  41622. (line 1539)
  41623. * __fractunshadi: Fixed-point fractional library routines.
  41624. (line 1544)
  41625. * __fractunshahi: Fixed-point fractional library routines.
  41626. (line 1542)
  41627. * __fractunshaqi: Fixed-point fractional library routines.
  41628. (line 1541)
  41629. * __fractunshasi: Fixed-point fractional library routines.
  41630. (line 1543)
  41631. * __fractunshati: Fixed-point fractional library routines.
  41632. (line 1545)
  41633. * __fractunshida: Fixed-point fractional library routines.
  41634. (line 1662)
  41635. * __fractunshidq: Fixed-point fractional library routines.
  41636. (line 1659)
  41637. * __fractunshiha: Fixed-point fractional library routines.
  41638. (line 1660)
  41639. * __fractunshihq: Fixed-point fractional library routines.
  41640. (line 1657)
  41641. * __fractunshiqq: Fixed-point fractional library routines.
  41642. (line 1656)
  41643. * __fractunshisa: Fixed-point fractional library routines.
  41644. (line 1661)
  41645. * __fractunshisq: Fixed-point fractional library routines.
  41646. (line 1658)
  41647. * __fractunshita: Fixed-point fractional library routines.
  41648. (line 1663)
  41649. * __fractunshiuda: Fixed-point fractional library routines.
  41650. (line 1674)
  41651. * __fractunshiudq: Fixed-point fractional library routines.
  41652. (line 1669)
  41653. * __fractunshiuha: Fixed-point fractional library routines.
  41654. (line 1671)
  41655. * __fractunshiuhq: Fixed-point fractional library routines.
  41656. (line 1666)
  41657. * __fractunshiuqq: Fixed-point fractional library routines.
  41658. (line 1664)
  41659. * __fractunshiusa: Fixed-point fractional library routines.
  41660. (line 1673)
  41661. * __fractunshiusq: Fixed-point fractional library routines.
  41662. (line 1667)
  41663. * __fractunshiuta: Fixed-point fractional library routines.
  41664. (line 1676)
  41665. * __fractunshqdi: Fixed-point fractional library routines.
  41666. (line 1528)
  41667. * __fractunshqhi: Fixed-point fractional library routines.
  41668. (line 1526)
  41669. * __fractunshqqi: Fixed-point fractional library routines.
  41670. (line 1525)
  41671. * __fractunshqsi: Fixed-point fractional library routines.
  41672. (line 1527)
  41673. * __fractunshqti: Fixed-point fractional library routines.
  41674. (line 1529)
  41675. * __fractunsqida: Fixed-point fractional library routines.
  41676. (line 1640)
  41677. * __fractunsqidq: Fixed-point fractional library routines.
  41678. (line 1637)
  41679. * __fractunsqiha: Fixed-point fractional library routines.
  41680. (line 1638)
  41681. * __fractunsqihq: Fixed-point fractional library routines.
  41682. (line 1635)
  41683. * __fractunsqiqq: Fixed-point fractional library routines.
  41684. (line 1634)
  41685. * __fractunsqisa: Fixed-point fractional library routines.
  41686. (line 1639)
  41687. * __fractunsqisq: Fixed-point fractional library routines.
  41688. (line 1636)
  41689. * __fractunsqita: Fixed-point fractional library routines.
  41690. (line 1641)
  41691. * __fractunsqiuda: Fixed-point fractional library routines.
  41692. (line 1652)
  41693. * __fractunsqiudq: Fixed-point fractional library routines.
  41694. (line 1647)
  41695. * __fractunsqiuha: Fixed-point fractional library routines.
  41696. (line 1649)
  41697. * __fractunsqiuhq: Fixed-point fractional library routines.
  41698. (line 1644)
  41699. * __fractunsqiuqq: Fixed-point fractional library routines.
  41700. (line 1642)
  41701. * __fractunsqiusa: Fixed-point fractional library routines.
  41702. (line 1651)
  41703. * __fractunsqiusq: Fixed-point fractional library routines.
  41704. (line 1645)
  41705. * __fractunsqiuta: Fixed-point fractional library routines.
  41706. (line 1654)
  41707. * __fractunsqqdi: Fixed-point fractional library routines.
  41708. (line 1523)
  41709. * __fractunsqqhi: Fixed-point fractional library routines.
  41710. (line 1521)
  41711. * __fractunsqqqi: Fixed-point fractional library routines.
  41712. (line 1520)
  41713. * __fractunsqqsi: Fixed-point fractional library routines.
  41714. (line 1522)
  41715. * __fractunsqqti: Fixed-point fractional library routines.
  41716. (line 1524)
  41717. * __fractunssadi: Fixed-point fractional library routines.
  41718. (line 1549)
  41719. * __fractunssahi: Fixed-point fractional library routines.
  41720. (line 1547)
  41721. * __fractunssaqi: Fixed-point fractional library routines.
  41722. (line 1546)
  41723. * __fractunssasi: Fixed-point fractional library routines.
  41724. (line 1548)
  41725. * __fractunssati: Fixed-point fractional library routines.
  41726. (line 1550)
  41727. * __fractunssida: Fixed-point fractional library routines.
  41728. (line 1684)
  41729. * __fractunssidq: Fixed-point fractional library routines.
  41730. (line 1681)
  41731. * __fractunssiha: Fixed-point fractional library routines.
  41732. (line 1682)
  41733. * __fractunssihq: Fixed-point fractional library routines.
  41734. (line 1679)
  41735. * __fractunssiqq: Fixed-point fractional library routines.
  41736. (line 1678)
  41737. * __fractunssisa: Fixed-point fractional library routines.
  41738. (line 1683)
  41739. * __fractunssisq: Fixed-point fractional library routines.
  41740. (line 1680)
  41741. * __fractunssita: Fixed-point fractional library routines.
  41742. (line 1685)
  41743. * __fractunssiuda: Fixed-point fractional library routines.
  41744. (line 1696)
  41745. * __fractunssiudq: Fixed-point fractional library routines.
  41746. (line 1691)
  41747. * __fractunssiuha: Fixed-point fractional library routines.
  41748. (line 1693)
  41749. * __fractunssiuhq: Fixed-point fractional library routines.
  41750. (line 1688)
  41751. * __fractunssiuqq: Fixed-point fractional library routines.
  41752. (line 1686)
  41753. * __fractunssiusa: Fixed-point fractional library routines.
  41754. (line 1695)
  41755. * __fractunssiusq: Fixed-point fractional library routines.
  41756. (line 1689)
  41757. * __fractunssiuta: Fixed-point fractional library routines.
  41758. (line 1698)
  41759. * __fractunssqdi: Fixed-point fractional library routines.
  41760. (line 1533)
  41761. * __fractunssqhi: Fixed-point fractional library routines.
  41762. (line 1531)
  41763. * __fractunssqqi: Fixed-point fractional library routines.
  41764. (line 1530)
  41765. * __fractunssqsi: Fixed-point fractional library routines.
  41766. (line 1532)
  41767. * __fractunssqti: Fixed-point fractional library routines.
  41768. (line 1534)
  41769. * __fractunstadi: Fixed-point fractional library routines.
  41770. (line 1559)
  41771. * __fractunstahi: Fixed-point fractional library routines.
  41772. (line 1557)
  41773. * __fractunstaqi: Fixed-point fractional library routines.
  41774. (line 1556)
  41775. * __fractunstasi: Fixed-point fractional library routines.
  41776. (line 1558)
  41777. * __fractunstati: Fixed-point fractional library routines.
  41778. (line 1560)
  41779. * __fractunstida: Fixed-point fractional library routines.
  41780. (line 1729)
  41781. * __fractunstidq: Fixed-point fractional library routines.
  41782. (line 1725)
  41783. * __fractunstiha: Fixed-point fractional library routines.
  41784. (line 1727)
  41785. * __fractunstihq: Fixed-point fractional library routines.
  41786. (line 1723)
  41787. * __fractunstiqq: Fixed-point fractional library routines.
  41788. (line 1722)
  41789. * __fractunstisa: Fixed-point fractional library routines.
  41790. (line 1728)
  41791. * __fractunstisq: Fixed-point fractional library routines.
  41792. (line 1724)
  41793. * __fractunstita: Fixed-point fractional library routines.
  41794. (line 1730)
  41795. * __fractunstiuda: Fixed-point fractional library routines.
  41796. (line 1744)
  41797. * __fractunstiudq: Fixed-point fractional library routines.
  41798. (line 1738)
  41799. * __fractunstiuha: Fixed-point fractional library routines.
  41800. (line 1740)
  41801. * __fractunstiuhq: Fixed-point fractional library routines.
  41802. (line 1734)
  41803. * __fractunstiuqq: Fixed-point fractional library routines.
  41804. (line 1732)
  41805. * __fractunstiusa: Fixed-point fractional library routines.
  41806. (line 1742)
  41807. * __fractunstiusq: Fixed-point fractional library routines.
  41808. (line 1736)
  41809. * __fractunstiuta: Fixed-point fractional library routines.
  41810. (line 1746)
  41811. * __fractunsudadi: Fixed-point fractional library routines.
  41812. (line 1620)
  41813. * __fractunsudahi: Fixed-point fractional library routines.
  41814. (line 1616)
  41815. * __fractunsudaqi: Fixed-point fractional library routines.
  41816. (line 1614)
  41817. * __fractunsudasi: Fixed-point fractional library routines.
  41818. (line 1618)
  41819. * __fractunsudati: Fixed-point fractional library routines.
  41820. (line 1622)
  41821. * __fractunsudqdi: Fixed-point fractional library routines.
  41822. (line 1594)
  41823. * __fractunsudqhi: Fixed-point fractional library routines.
  41824. (line 1590)
  41825. * __fractunsudqqi: Fixed-point fractional library routines.
  41826. (line 1588)
  41827. * __fractunsudqsi: Fixed-point fractional library routines.
  41828. (line 1592)
  41829. * __fractunsudqti: Fixed-point fractional library routines.
  41830. (line 1596)
  41831. * __fractunsuhadi: Fixed-point fractional library routines.
  41832. (line 1604)
  41833. * __fractunsuhahi: Fixed-point fractional library routines.
  41834. (line 1600)
  41835. * __fractunsuhaqi: Fixed-point fractional library routines.
  41836. (line 1598)
  41837. * __fractunsuhasi: Fixed-point fractional library routines.
  41838. (line 1602)
  41839. * __fractunsuhati: Fixed-point fractional library routines.
  41840. (line 1606)
  41841. * __fractunsuhqdi: Fixed-point fractional library routines.
  41842. (line 1575)
  41843. * __fractunsuhqhi: Fixed-point fractional library routines.
  41844. (line 1573)
  41845. * __fractunsuhqqi: Fixed-point fractional library routines.
  41846. (line 1572)
  41847. * __fractunsuhqsi: Fixed-point fractional library routines.
  41848. (line 1574)
  41849. * __fractunsuhqti: Fixed-point fractional library routines.
  41850. (line 1576)
  41851. * __fractunsuqqdi: Fixed-point fractional library routines.
  41852. (line 1568)
  41853. * __fractunsuqqhi: Fixed-point fractional library routines.
  41854. (line 1564)
  41855. * __fractunsuqqqi: Fixed-point fractional library routines.
  41856. (line 1562)
  41857. * __fractunsuqqsi: Fixed-point fractional library routines.
  41858. (line 1566)
  41859. * __fractunsuqqti: Fixed-point fractional library routines.
  41860. (line 1570)
  41861. * __fractunsusadi: Fixed-point fractional library routines.
  41862. (line 1611)
  41863. * __fractunsusahi: Fixed-point fractional library routines.
  41864. (line 1609)
  41865. * __fractunsusaqi: Fixed-point fractional library routines.
  41866. (line 1608)
  41867. * __fractunsusasi: Fixed-point fractional library routines.
  41868. (line 1610)
  41869. * __fractunsusati: Fixed-point fractional library routines.
  41870. (line 1612)
  41871. * __fractunsusqdi: Fixed-point fractional library routines.
  41872. (line 1584)
  41873. * __fractunsusqhi: Fixed-point fractional library routines.
  41874. (line 1580)
  41875. * __fractunsusqqi: Fixed-point fractional library routines.
  41876. (line 1578)
  41877. * __fractunsusqsi: Fixed-point fractional library routines.
  41878. (line 1582)
  41879. * __fractunsusqti: Fixed-point fractional library routines.
  41880. (line 1586)
  41881. * __fractunsutadi: Fixed-point fractional library routines.
  41882. (line 1630)
  41883. * __fractunsutahi: Fixed-point fractional library routines.
  41884. (line 1626)
  41885. * __fractunsutaqi: Fixed-point fractional library routines.
  41886. (line 1624)
  41887. * __fractunsutasi: Fixed-point fractional library routines.
  41888. (line 1628)
  41889. * __fractunsutati: Fixed-point fractional library routines.
  41890. (line 1632)
  41891. * __fractuqqda: Fixed-point fractional library routines.
  41892. (line 671)
  41893. * __fractuqqdf: Fixed-point fractional library routines.
  41894. (line 694)
  41895. * __fractuqqdi: Fixed-point fractional library routines.
  41896. (line 691)
  41897. * __fractuqqdq: Fixed-point fractional library routines.
  41898. (line 667)
  41899. * __fractuqqha: Fixed-point fractional library routines.
  41900. (line 669)
  41901. * __fractuqqhi: Fixed-point fractional library routines.
  41902. (line 689)
  41903. * __fractuqqhq: Fixed-point fractional library routines.
  41904. (line 665)
  41905. * __fractuqqqi: Fixed-point fractional library routines.
  41906. (line 688)
  41907. * __fractuqqqq: Fixed-point fractional library routines.
  41908. (line 664)
  41909. * __fractuqqsa: Fixed-point fractional library routines.
  41910. (line 670)
  41911. * __fractuqqsf: Fixed-point fractional library routines.
  41912. (line 693)
  41913. * __fractuqqsi: Fixed-point fractional library routines.
  41914. (line 690)
  41915. * __fractuqqsq: Fixed-point fractional library routines.
  41916. (line 666)
  41917. * __fractuqqta: Fixed-point fractional library routines.
  41918. (line 672)
  41919. * __fractuqqti: Fixed-point fractional library routines.
  41920. (line 692)
  41921. * __fractuqquda: Fixed-point fractional library routines.
  41922. (line 684)
  41923. * __fractuqqudq2: Fixed-point fractional library routines.
  41924. (line 678)
  41925. * __fractuqquha: Fixed-point fractional library routines.
  41926. (line 680)
  41927. * __fractuqquhq2: Fixed-point fractional library routines.
  41928. (line 674)
  41929. * __fractuqqusa: Fixed-point fractional library routines.
  41930. (line 682)
  41931. * __fractuqqusq2: Fixed-point fractional library routines.
  41932. (line 676)
  41933. * __fractuqquta: Fixed-point fractional library routines.
  41934. (line 686)
  41935. * __fractusada: Fixed-point fractional library routines.
  41936. (line 828)
  41937. * __fractusadf: Fixed-point fractional library routines.
  41938. (line 849)
  41939. * __fractusadi: Fixed-point fractional library routines.
  41940. (line 846)
  41941. * __fractusadq: Fixed-point fractional library routines.
  41942. (line 825)
  41943. * __fractusaha: Fixed-point fractional library routines.
  41944. (line 826)
  41945. * __fractusahi: Fixed-point fractional library routines.
  41946. (line 844)
  41947. * __fractusahq: Fixed-point fractional library routines.
  41948. (line 823)
  41949. * __fractusaqi: Fixed-point fractional library routines.
  41950. (line 843)
  41951. * __fractusaqq: Fixed-point fractional library routines.
  41952. (line 822)
  41953. * __fractusasa: Fixed-point fractional library routines.
  41954. (line 827)
  41955. * __fractusasf: Fixed-point fractional library routines.
  41956. (line 848)
  41957. * __fractusasi: Fixed-point fractional library routines.
  41958. (line 845)
  41959. * __fractusasq: Fixed-point fractional library routines.
  41960. (line 824)
  41961. * __fractusata: Fixed-point fractional library routines.
  41962. (line 829)
  41963. * __fractusati: Fixed-point fractional library routines.
  41964. (line 847)
  41965. * __fractusauda2: Fixed-point fractional library routines.
  41966. (line 839)
  41967. * __fractusaudq: Fixed-point fractional library routines.
  41968. (line 835)
  41969. * __fractusauha2: Fixed-point fractional library routines.
  41970. (line 837)
  41971. * __fractusauhq: Fixed-point fractional library routines.
  41972. (line 832)
  41973. * __fractusauqq: Fixed-point fractional library routines.
  41974. (line 830)
  41975. * __fractusausq: Fixed-point fractional library routines.
  41976. (line 833)
  41977. * __fractusauta2: Fixed-point fractional library routines.
  41978. (line 841)
  41979. * __fractusqda: Fixed-point fractional library routines.
  41980. (line 730)
  41981. * __fractusqdf: Fixed-point fractional library routines.
  41982. (line 753)
  41983. * __fractusqdi: Fixed-point fractional library routines.
  41984. (line 750)
  41985. * __fractusqdq: Fixed-point fractional library routines.
  41986. (line 726)
  41987. * __fractusqha: Fixed-point fractional library routines.
  41988. (line 728)
  41989. * __fractusqhi: Fixed-point fractional library routines.
  41990. (line 748)
  41991. * __fractusqhq: Fixed-point fractional library routines.
  41992. (line 724)
  41993. * __fractusqqi: Fixed-point fractional library routines.
  41994. (line 747)
  41995. * __fractusqqq: Fixed-point fractional library routines.
  41996. (line 723)
  41997. * __fractusqsa: Fixed-point fractional library routines.
  41998. (line 729)
  41999. * __fractusqsf: Fixed-point fractional library routines.
  42000. (line 752)
  42001. * __fractusqsi: Fixed-point fractional library routines.
  42002. (line 749)
  42003. * __fractusqsq: Fixed-point fractional library routines.
  42004. (line 725)
  42005. * __fractusqta: Fixed-point fractional library routines.
  42006. (line 731)
  42007. * __fractusqti: Fixed-point fractional library routines.
  42008. (line 751)
  42009. * __fractusquda: Fixed-point fractional library routines.
  42010. (line 743)
  42011. * __fractusqudq2: Fixed-point fractional library routines.
  42012. (line 737)
  42013. * __fractusquha: Fixed-point fractional library routines.
  42014. (line 739)
  42015. * __fractusquhq2: Fixed-point fractional library routines.
  42016. (line 735)
  42017. * __fractusquqq2: Fixed-point fractional library routines.
  42018. (line 733)
  42019. * __fractusqusa: Fixed-point fractional library routines.
  42020. (line 741)
  42021. * __fractusquta: Fixed-point fractional library routines.
  42022. (line 745)
  42023. * __fractutada: Fixed-point fractional library routines.
  42024. (line 891)
  42025. * __fractutadf: Fixed-point fractional library routines.
  42026. (line 917)
  42027. * __fractutadi: Fixed-point fractional library routines.
  42028. (line 913)
  42029. * __fractutadq: Fixed-point fractional library routines.
  42030. (line 886)
  42031. * __fractutaha: Fixed-point fractional library routines.
  42032. (line 888)
  42033. * __fractutahi: Fixed-point fractional library routines.
  42034. (line 911)
  42035. * __fractutahq: Fixed-point fractional library routines.
  42036. (line 883)
  42037. * __fractutaqi: Fixed-point fractional library routines.
  42038. (line 909)
  42039. * __fractutaqq: Fixed-point fractional library routines.
  42040. (line 881)
  42041. * __fractutasa: Fixed-point fractional library routines.
  42042. (line 890)
  42043. * __fractutasf: Fixed-point fractional library routines.
  42044. (line 916)
  42045. * __fractutasi: Fixed-point fractional library routines.
  42046. (line 912)
  42047. * __fractutasq: Fixed-point fractional library routines.
  42048. (line 884)
  42049. * __fractutata: Fixed-point fractional library routines.
  42050. (line 893)
  42051. * __fractutati: Fixed-point fractional library routines.
  42052. (line 914)
  42053. * __fractutauda2: Fixed-point fractional library routines.
  42054. (line 907)
  42055. * __fractutaudq: Fixed-point fractional library routines.
  42056. (line 901)
  42057. * __fractutauha2: Fixed-point fractional library routines.
  42058. (line 903)
  42059. * __fractutauhq: Fixed-point fractional library routines.
  42060. (line 897)
  42061. * __fractutauqq: Fixed-point fractional library routines.
  42062. (line 895)
  42063. * __fractutausa2: Fixed-point fractional library routines.
  42064. (line 905)
  42065. * __fractutausq: Fixed-point fractional library routines.
  42066. (line 899)
  42067. * __gedf2: Soft float library routines.
  42068. (line 205)
  42069. * __gesf2: Soft float library routines.
  42070. (line 204)
  42071. * __getf2: Soft float library routines.
  42072. (line 206)
  42073. * __gtdf2: Soft float library routines.
  42074. (line 223)
  42075. * __gtsf2: Soft float library routines.
  42076. (line 222)
  42077. * __gttf2: Soft float library routines.
  42078. (line 224)
  42079. * __ledf2: Soft float library routines.
  42080. (line 217)
  42081. * __lesf2: Soft float library routines.
  42082. (line 216)
  42083. * __letf2: Soft float library routines.
  42084. (line 218)
  42085. * __lshrdi3: Integer library routines.
  42086. (line 30)
  42087. * __lshrsi3: Integer library routines.
  42088. (line 29)
  42089. * __lshrti3: Integer library routines.
  42090. (line 31)
  42091. * __lshruda3: Fixed-point fractional library routines.
  42092. (line 388)
  42093. * __lshrudq3: Fixed-point fractional library routines.
  42094. (line 382)
  42095. * __lshruha3: Fixed-point fractional library routines.
  42096. (line 384)
  42097. * __lshruhq3: Fixed-point fractional library routines.
  42098. (line 378)
  42099. * __lshruqq3: Fixed-point fractional library routines.
  42100. (line 376)
  42101. * __lshrusa3: Fixed-point fractional library routines.
  42102. (line 386)
  42103. * __lshrusq3: Fixed-point fractional library routines.
  42104. (line 380)
  42105. * __lshruta3: Fixed-point fractional library routines.
  42106. (line 390)
  42107. * __ltdf2: Soft float library routines.
  42108. (line 211)
  42109. * __ltsf2: Soft float library routines.
  42110. (line 210)
  42111. * __lttf2: Soft float library routines.
  42112. (line 212)
  42113. * __main: Collect2. (line 15)
  42114. * __moddi3: Integer library routines.
  42115. (line 36)
  42116. * __modsi3: Integer library routines.
  42117. (line 35)
  42118. * __modti3: Integer library routines.
  42119. (line 37)
  42120. * __morestack_current_segment: Miscellaneous routines.
  42121. (line 45)
  42122. * __morestack_initial_sp: Miscellaneous routines.
  42123. (line 46)
  42124. * __morestack_segments: Miscellaneous routines.
  42125. (line 44)
  42126. * __mulda3: Fixed-point fractional library routines.
  42127. (line 170)
  42128. * __muldc3: Soft float library routines.
  42129. (line 239)
  42130. * __muldf3: Soft float library routines.
  42131. (line 39)
  42132. * __muldi3: Integer library routines.
  42133. (line 42)
  42134. * __muldq3: Fixed-point fractional library routines.
  42135. (line 157)
  42136. * __mulha3: Fixed-point fractional library routines.
  42137. (line 167)
  42138. * __mulhq3: Fixed-point fractional library routines.
  42139. (line 155)
  42140. * __mulqq3: Fixed-point fractional library routines.
  42141. (line 153)
  42142. * __mulsa3: Fixed-point fractional library routines.
  42143. (line 169)
  42144. * __mulsc3: Soft float library routines.
  42145. (line 237)
  42146. * __mulsf3: Soft float library routines.
  42147. (line 38)
  42148. * __mulsi3: Integer library routines.
  42149. (line 41)
  42150. * __mulsq3: Fixed-point fractional library routines.
  42151. (line 156)
  42152. * __multa3: Fixed-point fractional library routines.
  42153. (line 171)
  42154. * __multc3: Soft float library routines.
  42155. (line 241)
  42156. * __multf3: Soft float library routines.
  42157. (line 40)
  42158. * __multi3: Integer library routines.
  42159. (line 43)
  42160. * __muluda3: Fixed-point fractional library routines.
  42161. (line 177)
  42162. * __muludq3: Fixed-point fractional library routines.
  42163. (line 165)
  42164. * __muluha3: Fixed-point fractional library routines.
  42165. (line 173)
  42166. * __muluhq3: Fixed-point fractional library routines.
  42167. (line 161)
  42168. * __muluqq3: Fixed-point fractional library routines.
  42169. (line 159)
  42170. * __mulusa3: Fixed-point fractional library routines.
  42171. (line 175)
  42172. * __mulusq3: Fixed-point fractional library routines.
  42173. (line 163)
  42174. * __muluta3: Fixed-point fractional library routines.
  42175. (line 179)
  42176. * __mulvdi3: Integer library routines.
  42177. (line 114)
  42178. * __mulvsi3: Integer library routines.
  42179. (line 113)
  42180. * __mulxc3: Soft float library routines.
  42181. (line 243)
  42182. * __mulxf3: Soft float library routines.
  42183. (line 42)
  42184. * __nedf2: Soft float library routines.
  42185. (line 199)
  42186. * __negda2: Fixed-point fractional library routines.
  42187. (line 298)
  42188. * __negdf2: Soft float library routines.
  42189. (line 55)
  42190. * __negdi2: Integer library routines.
  42191. (line 46)
  42192. * __negdq2: Fixed-point fractional library routines.
  42193. (line 288)
  42194. * __negha2: Fixed-point fractional library routines.
  42195. (line 296)
  42196. * __neghq2: Fixed-point fractional library routines.
  42197. (line 286)
  42198. * __negqq2: Fixed-point fractional library routines.
  42199. (line 285)
  42200. * __negsa2: Fixed-point fractional library routines.
  42201. (line 297)
  42202. * __negsf2: Soft float library routines.
  42203. (line 54)
  42204. * __negsq2: Fixed-point fractional library routines.
  42205. (line 287)
  42206. * __negta2: Fixed-point fractional library routines.
  42207. (line 299)
  42208. * __negtf2: Soft float library routines.
  42209. (line 56)
  42210. * __negti2: Integer library routines.
  42211. (line 47)
  42212. * __neguda2: Fixed-point fractional library routines.
  42213. (line 303)
  42214. * __negudq2: Fixed-point fractional library routines.
  42215. (line 294)
  42216. * __neguha2: Fixed-point fractional library routines.
  42217. (line 300)
  42218. * __neguhq2: Fixed-point fractional library routines.
  42219. (line 291)
  42220. * __neguqq2: Fixed-point fractional library routines.
  42221. (line 289)
  42222. * __negusa2: Fixed-point fractional library routines.
  42223. (line 302)
  42224. * __negusq2: Fixed-point fractional library routines.
  42225. (line 292)
  42226. * __neguta2: Fixed-point fractional library routines.
  42227. (line 305)
  42228. * __negvdi2: Integer library routines.
  42229. (line 118)
  42230. * __negvsi2: Integer library routines.
  42231. (line 117)
  42232. * __negxf2: Soft float library routines.
  42233. (line 57)
  42234. * __nesf2: Soft float library routines.
  42235. (line 198)
  42236. * __netf2: Soft float library routines.
  42237. (line 200)
  42238. * __paritydi2: Integer library routines.
  42239. (line 150)
  42240. * __paritysi2: Integer library routines.
  42241. (line 149)
  42242. * __parityti2: Integer library routines.
  42243. (line 151)
  42244. * __popcountdi2: Integer library routines.
  42245. (line 156)
  42246. * __popcountsi2: Integer library routines.
  42247. (line 155)
  42248. * __popcountti2: Integer library routines.
  42249. (line 157)
  42250. * __powidf2: Soft float library routines.
  42251. (line 232)
  42252. * __powisf2: Soft float library routines.
  42253. (line 231)
  42254. * __powitf2: Soft float library routines.
  42255. (line 233)
  42256. * __powixf2: Soft float library routines.
  42257. (line 234)
  42258. * __satfractdadq: Fixed-point fractional library routines.
  42259. (line 1152)
  42260. * __satfractdaha2: Fixed-point fractional library routines.
  42261. (line 1153)
  42262. * __satfractdahq: Fixed-point fractional library routines.
  42263. (line 1150)
  42264. * __satfractdaqq: Fixed-point fractional library routines.
  42265. (line 1149)
  42266. * __satfractdasa2: Fixed-point fractional library routines.
  42267. (line 1154)
  42268. * __satfractdasq: Fixed-point fractional library routines.
  42269. (line 1151)
  42270. * __satfractdata2: Fixed-point fractional library routines.
  42271. (line 1155)
  42272. * __satfractdauda: Fixed-point fractional library routines.
  42273. (line 1165)
  42274. * __satfractdaudq: Fixed-point fractional library routines.
  42275. (line 1160)
  42276. * __satfractdauha: Fixed-point fractional library routines.
  42277. (line 1162)
  42278. * __satfractdauhq: Fixed-point fractional library routines.
  42279. (line 1158)
  42280. * __satfractdauqq: Fixed-point fractional library routines.
  42281. (line 1156)
  42282. * __satfractdausa: Fixed-point fractional library routines.
  42283. (line 1164)
  42284. * __satfractdausq: Fixed-point fractional library routines.
  42285. (line 1159)
  42286. * __satfractdauta: Fixed-point fractional library routines.
  42287. (line 1166)
  42288. * __satfractdfda: Fixed-point fractional library routines.
  42289. (line 1505)
  42290. * __satfractdfdq: Fixed-point fractional library routines.
  42291. (line 1502)
  42292. * __satfractdfha: Fixed-point fractional library routines.
  42293. (line 1503)
  42294. * __satfractdfhq: Fixed-point fractional library routines.
  42295. (line 1500)
  42296. * __satfractdfqq: Fixed-point fractional library routines.
  42297. (line 1499)
  42298. * __satfractdfsa: Fixed-point fractional library routines.
  42299. (line 1504)
  42300. * __satfractdfsq: Fixed-point fractional library routines.
  42301. (line 1501)
  42302. * __satfractdfta: Fixed-point fractional library routines.
  42303. (line 1506)
  42304. * __satfractdfuda: Fixed-point fractional library routines.
  42305. (line 1514)
  42306. * __satfractdfudq: Fixed-point fractional library routines.
  42307. (line 1510)
  42308. * __satfractdfuha: Fixed-point fractional library routines.
  42309. (line 1512)
  42310. * __satfractdfuhq: Fixed-point fractional library routines.
  42311. (line 1508)
  42312. * __satfractdfuqq: Fixed-point fractional library routines.
  42313. (line 1507)
  42314. * __satfractdfusa: Fixed-point fractional library routines.
  42315. (line 1513)
  42316. * __satfractdfusq: Fixed-point fractional library routines.
  42317. (line 1509)
  42318. * __satfractdfuta: Fixed-point fractional library routines.
  42319. (line 1515)
  42320. * __satfractdida: Fixed-point fractional library routines.
  42321. (line 1455)
  42322. * __satfractdidq: Fixed-point fractional library routines.
  42323. (line 1452)
  42324. * __satfractdiha: Fixed-point fractional library routines.
  42325. (line 1453)
  42326. * __satfractdihq: Fixed-point fractional library routines.
  42327. (line 1450)
  42328. * __satfractdiqq: Fixed-point fractional library routines.
  42329. (line 1449)
  42330. * __satfractdisa: Fixed-point fractional library routines.
  42331. (line 1454)
  42332. * __satfractdisq: Fixed-point fractional library routines.
  42333. (line 1451)
  42334. * __satfractdita: Fixed-point fractional library routines.
  42335. (line 1456)
  42336. * __satfractdiuda: Fixed-point fractional library routines.
  42337. (line 1463)
  42338. * __satfractdiudq: Fixed-point fractional library routines.
  42339. (line 1460)
  42340. * __satfractdiuha: Fixed-point fractional library routines.
  42341. (line 1461)
  42342. * __satfractdiuhq: Fixed-point fractional library routines.
  42343. (line 1458)
  42344. * __satfractdiuqq: Fixed-point fractional library routines.
  42345. (line 1457)
  42346. * __satfractdiusa: Fixed-point fractional library routines.
  42347. (line 1462)
  42348. * __satfractdiusq: Fixed-point fractional library routines.
  42349. (line 1459)
  42350. * __satfractdiuta: Fixed-point fractional library routines.
  42351. (line 1464)
  42352. * __satfractdqda: Fixed-point fractional library routines.
  42353. (line 1097)
  42354. * __satfractdqha: Fixed-point fractional library routines.
  42355. (line 1095)
  42356. * __satfractdqhq2: Fixed-point fractional library routines.
  42357. (line 1093)
  42358. * __satfractdqqq2: Fixed-point fractional library routines.
  42359. (line 1092)
  42360. * __satfractdqsa: Fixed-point fractional library routines.
  42361. (line 1096)
  42362. * __satfractdqsq2: Fixed-point fractional library routines.
  42363. (line 1094)
  42364. * __satfractdqta: Fixed-point fractional library routines.
  42365. (line 1098)
  42366. * __satfractdquda: Fixed-point fractional library routines.
  42367. (line 1109)
  42368. * __satfractdqudq: Fixed-point fractional library routines.
  42369. (line 1104)
  42370. * __satfractdquha: Fixed-point fractional library routines.
  42371. (line 1106)
  42372. * __satfractdquhq: Fixed-point fractional library routines.
  42373. (line 1101)
  42374. * __satfractdquqq: Fixed-point fractional library routines.
  42375. (line 1099)
  42376. * __satfractdqusa: Fixed-point fractional library routines.
  42377. (line 1108)
  42378. * __satfractdqusq: Fixed-point fractional library routines.
  42379. (line 1102)
  42380. * __satfractdquta: Fixed-point fractional library routines.
  42381. (line 1111)
  42382. * __satfracthada2: Fixed-point fractional library routines.
  42383. (line 1118)
  42384. * __satfracthadq: Fixed-point fractional library routines.
  42385. (line 1116)
  42386. * __satfracthahq: Fixed-point fractional library routines.
  42387. (line 1114)
  42388. * __satfracthaqq: Fixed-point fractional library routines.
  42389. (line 1113)
  42390. * __satfracthasa2: Fixed-point fractional library routines.
  42391. (line 1117)
  42392. * __satfracthasq: Fixed-point fractional library routines.
  42393. (line 1115)
  42394. * __satfracthata2: Fixed-point fractional library routines.
  42395. (line 1119)
  42396. * __satfracthauda: Fixed-point fractional library routines.
  42397. (line 1130)
  42398. * __satfracthaudq: Fixed-point fractional library routines.
  42399. (line 1125)
  42400. * __satfracthauha: Fixed-point fractional library routines.
  42401. (line 1127)
  42402. * __satfracthauhq: Fixed-point fractional library routines.
  42403. (line 1122)
  42404. * __satfracthauqq: Fixed-point fractional library routines.
  42405. (line 1120)
  42406. * __satfracthausa: Fixed-point fractional library routines.
  42407. (line 1129)
  42408. * __satfracthausq: Fixed-point fractional library routines.
  42409. (line 1123)
  42410. * __satfracthauta: Fixed-point fractional library routines.
  42411. (line 1132)
  42412. * __satfracthida: Fixed-point fractional library routines.
  42413. (line 1423)
  42414. * __satfracthidq: Fixed-point fractional library routines.
  42415. (line 1420)
  42416. * __satfracthiha: Fixed-point fractional library routines.
  42417. (line 1421)
  42418. * __satfracthihq: Fixed-point fractional library routines.
  42419. (line 1418)
  42420. * __satfracthiqq: Fixed-point fractional library routines.
  42421. (line 1417)
  42422. * __satfracthisa: Fixed-point fractional library routines.
  42423. (line 1422)
  42424. * __satfracthisq: Fixed-point fractional library routines.
  42425. (line 1419)
  42426. * __satfracthita: Fixed-point fractional library routines.
  42427. (line 1424)
  42428. * __satfracthiuda: Fixed-point fractional library routines.
  42429. (line 1431)
  42430. * __satfracthiudq: Fixed-point fractional library routines.
  42431. (line 1428)
  42432. * __satfracthiuha: Fixed-point fractional library routines.
  42433. (line 1429)
  42434. * __satfracthiuhq: Fixed-point fractional library routines.
  42435. (line 1426)
  42436. * __satfracthiuqq: Fixed-point fractional library routines.
  42437. (line 1425)
  42438. * __satfracthiusa: Fixed-point fractional library routines.
  42439. (line 1430)
  42440. * __satfracthiusq: Fixed-point fractional library routines.
  42441. (line 1427)
  42442. * __satfracthiuta: Fixed-point fractional library routines.
  42443. (line 1432)
  42444. * __satfracthqda: Fixed-point fractional library routines.
  42445. (line 1063)
  42446. * __satfracthqdq2: Fixed-point fractional library routines.
  42447. (line 1060)
  42448. * __satfracthqha: Fixed-point fractional library routines.
  42449. (line 1061)
  42450. * __satfracthqqq2: Fixed-point fractional library routines.
  42451. (line 1058)
  42452. * __satfracthqsa: Fixed-point fractional library routines.
  42453. (line 1062)
  42454. * __satfracthqsq2: Fixed-point fractional library routines.
  42455. (line 1059)
  42456. * __satfracthqta: Fixed-point fractional library routines.
  42457. (line 1064)
  42458. * __satfracthquda: Fixed-point fractional library routines.
  42459. (line 1071)
  42460. * __satfracthqudq: Fixed-point fractional library routines.
  42461. (line 1068)
  42462. * __satfracthquha: Fixed-point fractional library routines.
  42463. (line 1069)
  42464. * __satfracthquhq: Fixed-point fractional library routines.
  42465. (line 1066)
  42466. * __satfracthquqq: Fixed-point fractional library routines.
  42467. (line 1065)
  42468. * __satfracthqusa: Fixed-point fractional library routines.
  42469. (line 1070)
  42470. * __satfracthqusq: Fixed-point fractional library routines.
  42471. (line 1067)
  42472. * __satfracthquta: Fixed-point fractional library routines.
  42473. (line 1072)
  42474. * __satfractqida: Fixed-point fractional library routines.
  42475. (line 1401)
  42476. * __satfractqidq: Fixed-point fractional library routines.
  42477. (line 1398)
  42478. * __satfractqiha: Fixed-point fractional library routines.
  42479. (line 1399)
  42480. * __satfractqihq: Fixed-point fractional library routines.
  42481. (line 1396)
  42482. * __satfractqiqq: Fixed-point fractional library routines.
  42483. (line 1395)
  42484. * __satfractqisa: Fixed-point fractional library routines.
  42485. (line 1400)
  42486. * __satfractqisq: Fixed-point fractional library routines.
  42487. (line 1397)
  42488. * __satfractqita: Fixed-point fractional library routines.
  42489. (line 1402)
  42490. * __satfractqiuda: Fixed-point fractional library routines.
  42491. (line 1413)
  42492. * __satfractqiudq: Fixed-point fractional library routines.
  42493. (line 1408)
  42494. * __satfractqiuha: Fixed-point fractional library routines.
  42495. (line 1410)
  42496. * __satfractqiuhq: Fixed-point fractional library routines.
  42497. (line 1405)
  42498. * __satfractqiuqq: Fixed-point fractional library routines.
  42499. (line 1403)
  42500. * __satfractqiusa: Fixed-point fractional library routines.
  42501. (line 1412)
  42502. * __satfractqiusq: Fixed-point fractional library routines.
  42503. (line 1406)
  42504. * __satfractqiuta: Fixed-point fractional library routines.
  42505. (line 1415)
  42506. * __satfractqqda: Fixed-point fractional library routines.
  42507. (line 1042)
  42508. * __satfractqqdq2: Fixed-point fractional library routines.
  42509. (line 1039)
  42510. * __satfractqqha: Fixed-point fractional library routines.
  42511. (line 1040)
  42512. * __satfractqqhq2: Fixed-point fractional library routines.
  42513. (line 1037)
  42514. * __satfractqqsa: Fixed-point fractional library routines.
  42515. (line 1041)
  42516. * __satfractqqsq2: Fixed-point fractional library routines.
  42517. (line 1038)
  42518. * __satfractqqta: Fixed-point fractional library routines.
  42519. (line 1043)
  42520. * __satfractqquda: Fixed-point fractional library routines.
  42521. (line 1054)
  42522. * __satfractqqudq: Fixed-point fractional library routines.
  42523. (line 1049)
  42524. * __satfractqquha: Fixed-point fractional library routines.
  42525. (line 1051)
  42526. * __satfractqquhq: Fixed-point fractional library routines.
  42527. (line 1046)
  42528. * __satfractqquqq: Fixed-point fractional library routines.
  42529. (line 1044)
  42530. * __satfractqqusa: Fixed-point fractional library routines.
  42531. (line 1053)
  42532. * __satfractqqusq: Fixed-point fractional library routines.
  42533. (line 1047)
  42534. * __satfractqquta: Fixed-point fractional library routines.
  42535. (line 1056)
  42536. * __satfractsada2: Fixed-point fractional library routines.
  42537. (line 1139)
  42538. * __satfractsadq: Fixed-point fractional library routines.
  42539. (line 1137)
  42540. * __satfractsaha2: Fixed-point fractional library routines.
  42541. (line 1138)
  42542. * __satfractsahq: Fixed-point fractional library routines.
  42543. (line 1135)
  42544. * __satfractsaqq: Fixed-point fractional library routines.
  42545. (line 1134)
  42546. * __satfractsasq: Fixed-point fractional library routines.
  42547. (line 1136)
  42548. * __satfractsata2: Fixed-point fractional library routines.
  42549. (line 1140)
  42550. * __satfractsauda: Fixed-point fractional library routines.
  42551. (line 1147)
  42552. * __satfractsaudq: Fixed-point fractional library routines.
  42553. (line 1144)
  42554. * __satfractsauha: Fixed-point fractional library routines.
  42555. (line 1145)
  42556. * __satfractsauhq: Fixed-point fractional library routines.
  42557. (line 1142)
  42558. * __satfractsauqq: Fixed-point fractional library routines.
  42559. (line 1141)
  42560. * __satfractsausa: Fixed-point fractional library routines.
  42561. (line 1146)
  42562. * __satfractsausq: Fixed-point fractional library routines.
  42563. (line 1143)
  42564. * __satfractsauta: Fixed-point fractional library routines.
  42565. (line 1148)
  42566. * __satfractsfda: Fixed-point fractional library routines.
  42567. (line 1489)
  42568. * __satfractsfdq: Fixed-point fractional library routines.
  42569. (line 1486)
  42570. * __satfractsfha: Fixed-point fractional library routines.
  42571. (line 1487)
  42572. * __satfractsfhq: Fixed-point fractional library routines.
  42573. (line 1484)
  42574. * __satfractsfqq: Fixed-point fractional library routines.
  42575. (line 1483)
  42576. * __satfractsfsa: Fixed-point fractional library routines.
  42577. (line 1488)
  42578. * __satfractsfsq: Fixed-point fractional library routines.
  42579. (line 1485)
  42580. * __satfractsfta: Fixed-point fractional library routines.
  42581. (line 1490)
  42582. * __satfractsfuda: Fixed-point fractional library routines.
  42583. (line 1497)
  42584. * __satfractsfudq: Fixed-point fractional library routines.
  42585. (line 1494)
  42586. * __satfractsfuha: Fixed-point fractional library routines.
  42587. (line 1495)
  42588. * __satfractsfuhq: Fixed-point fractional library routines.
  42589. (line 1492)
  42590. * __satfractsfuqq: Fixed-point fractional library routines.
  42591. (line 1491)
  42592. * __satfractsfusa: Fixed-point fractional library routines.
  42593. (line 1496)
  42594. * __satfractsfusq: Fixed-point fractional library routines.
  42595. (line 1493)
  42596. * __satfractsfuta: Fixed-point fractional library routines.
  42597. (line 1498)
  42598. * __satfractsida: Fixed-point fractional library routines.
  42599. (line 1439)
  42600. * __satfractsidq: Fixed-point fractional library routines.
  42601. (line 1436)
  42602. * __satfractsiha: Fixed-point fractional library routines.
  42603. (line 1437)
  42604. * __satfractsihq: Fixed-point fractional library routines.
  42605. (line 1434)
  42606. * __satfractsiqq: Fixed-point fractional library routines.
  42607. (line 1433)
  42608. * __satfractsisa: Fixed-point fractional library routines.
  42609. (line 1438)
  42610. * __satfractsisq: Fixed-point fractional library routines.
  42611. (line 1435)
  42612. * __satfractsita: Fixed-point fractional library routines.
  42613. (line 1440)
  42614. * __satfractsiuda: Fixed-point fractional library routines.
  42615. (line 1447)
  42616. * __satfractsiudq: Fixed-point fractional library routines.
  42617. (line 1444)
  42618. * __satfractsiuha: Fixed-point fractional library routines.
  42619. (line 1445)
  42620. * __satfractsiuhq: Fixed-point fractional library routines.
  42621. (line 1442)
  42622. * __satfractsiuqq: Fixed-point fractional library routines.
  42623. (line 1441)
  42624. * __satfractsiusa: Fixed-point fractional library routines.
  42625. (line 1446)
  42626. * __satfractsiusq: Fixed-point fractional library routines.
  42627. (line 1443)
  42628. * __satfractsiuta: Fixed-point fractional library routines.
  42629. (line 1448)
  42630. * __satfractsqda: Fixed-point fractional library routines.
  42631. (line 1078)
  42632. * __satfractsqdq2: Fixed-point fractional library routines.
  42633. (line 1075)
  42634. * __satfractsqha: Fixed-point fractional library routines.
  42635. (line 1076)
  42636. * __satfractsqhq2: Fixed-point fractional library routines.
  42637. (line 1074)
  42638. * __satfractsqqq2: Fixed-point fractional library routines.
  42639. (line 1073)
  42640. * __satfractsqsa: Fixed-point fractional library routines.
  42641. (line 1077)
  42642. * __satfractsqta: Fixed-point fractional library routines.
  42643. (line 1079)
  42644. * __satfractsquda: Fixed-point fractional library routines.
  42645. (line 1089)
  42646. * __satfractsqudq: Fixed-point fractional library routines.
  42647. (line 1084)
  42648. * __satfractsquha: Fixed-point fractional library routines.
  42649. (line 1086)
  42650. * __satfractsquhq: Fixed-point fractional library routines.
  42651. (line 1082)
  42652. * __satfractsquqq: Fixed-point fractional library routines.
  42653. (line 1080)
  42654. * __satfractsqusa: Fixed-point fractional library routines.
  42655. (line 1088)
  42656. * __satfractsqusq: Fixed-point fractional library routines.
  42657. (line 1083)
  42658. * __satfractsquta: Fixed-point fractional library routines.
  42659. (line 1090)
  42660. * __satfracttada2: Fixed-point fractional library routines.
  42661. (line 1174)
  42662. * __satfracttadq: Fixed-point fractional library routines.
  42663. (line 1171)
  42664. * __satfracttaha2: Fixed-point fractional library routines.
  42665. (line 1172)
  42666. * __satfracttahq: Fixed-point fractional library routines.
  42667. (line 1169)
  42668. * __satfracttaqq: Fixed-point fractional library routines.
  42669. (line 1168)
  42670. * __satfracttasa2: Fixed-point fractional library routines.
  42671. (line 1173)
  42672. * __satfracttasq: Fixed-point fractional library routines.
  42673. (line 1170)
  42674. * __satfracttauda: Fixed-point fractional library routines.
  42675. (line 1185)
  42676. * __satfracttaudq: Fixed-point fractional library routines.
  42677. (line 1180)
  42678. * __satfracttauha: Fixed-point fractional library routines.
  42679. (line 1182)
  42680. * __satfracttauhq: Fixed-point fractional library routines.
  42681. (line 1177)
  42682. * __satfracttauqq: Fixed-point fractional library routines.
  42683. (line 1175)
  42684. * __satfracttausa: Fixed-point fractional library routines.
  42685. (line 1184)
  42686. * __satfracttausq: Fixed-point fractional library routines.
  42687. (line 1178)
  42688. * __satfracttauta: Fixed-point fractional library routines.
  42689. (line 1187)
  42690. * __satfracttida: Fixed-point fractional library routines.
  42691. (line 1471)
  42692. * __satfracttidq: Fixed-point fractional library routines.
  42693. (line 1468)
  42694. * __satfracttiha: Fixed-point fractional library routines.
  42695. (line 1469)
  42696. * __satfracttihq: Fixed-point fractional library routines.
  42697. (line 1466)
  42698. * __satfracttiqq: Fixed-point fractional library routines.
  42699. (line 1465)
  42700. * __satfracttisa: Fixed-point fractional library routines.
  42701. (line 1470)
  42702. * __satfracttisq: Fixed-point fractional library routines.
  42703. (line 1467)
  42704. * __satfracttita: Fixed-point fractional library routines.
  42705. (line 1472)
  42706. * __satfracttiuda: Fixed-point fractional library routines.
  42707. (line 1480)
  42708. * __satfracttiudq: Fixed-point fractional library routines.
  42709. (line 1476)
  42710. * __satfracttiuha: Fixed-point fractional library routines.
  42711. (line 1478)
  42712. * __satfracttiuhq: Fixed-point fractional library routines.
  42713. (line 1474)
  42714. * __satfracttiuqq: Fixed-point fractional library routines.
  42715. (line 1473)
  42716. * __satfracttiusa: Fixed-point fractional library routines.
  42717. (line 1479)
  42718. * __satfracttiusq: Fixed-point fractional library routines.
  42719. (line 1475)
  42720. * __satfracttiuta: Fixed-point fractional library routines.
  42721. (line 1481)
  42722. * __satfractudada: Fixed-point fractional library routines.
  42723. (line 1350)
  42724. * __satfractudadq: Fixed-point fractional library routines.
  42725. (line 1345)
  42726. * __satfractudaha: Fixed-point fractional library routines.
  42727. (line 1347)
  42728. * __satfractudahq: Fixed-point fractional library routines.
  42729. (line 1343)
  42730. * __satfractudaqq: Fixed-point fractional library routines.
  42731. (line 1341)
  42732. * __satfractudasa: Fixed-point fractional library routines.
  42733. (line 1349)
  42734. * __satfractudasq: Fixed-point fractional library routines.
  42735. (line 1344)
  42736. * __satfractudata: Fixed-point fractional library routines.
  42737. (line 1351)
  42738. * __satfractudaudq: Fixed-point fractional library routines.
  42739. (line 1359)
  42740. * __satfractudauha2: Fixed-point fractional library routines.
  42741. (line 1361)
  42742. * __satfractudauhq: Fixed-point fractional library routines.
  42743. (line 1355)
  42744. * __satfractudauqq: Fixed-point fractional library routines.
  42745. (line 1353)
  42746. * __satfractudausa2: Fixed-point fractional library routines.
  42747. (line 1363)
  42748. * __satfractudausq: Fixed-point fractional library routines.
  42749. (line 1357)
  42750. * __satfractudauta2: Fixed-point fractional library routines.
  42751. (line 1365)
  42752. * __satfractudqda: Fixed-point fractional library routines.
  42753. (line 1274)
  42754. * __satfractudqdq: Fixed-point fractional library routines.
  42755. (line 1269)
  42756. * __satfractudqha: Fixed-point fractional library routines.
  42757. (line 1271)
  42758. * __satfractudqhq: Fixed-point fractional library routines.
  42759. (line 1266)
  42760. * __satfractudqqq: Fixed-point fractional library routines.
  42761. (line 1264)
  42762. * __satfractudqsa: Fixed-point fractional library routines.
  42763. (line 1273)
  42764. * __satfractudqsq: Fixed-point fractional library routines.
  42765. (line 1267)
  42766. * __satfractudqta: Fixed-point fractional library routines.
  42767. (line 1276)
  42768. * __satfractudquda: Fixed-point fractional library routines.
  42769. (line 1288)
  42770. * __satfractudquha: Fixed-point fractional library routines.
  42771. (line 1284)
  42772. * __satfractudquhq2: Fixed-point fractional library routines.
  42773. (line 1280)
  42774. * __satfractudquqq2: Fixed-point fractional library routines.
  42775. (line 1278)
  42776. * __satfractudqusa: Fixed-point fractional library routines.
  42777. (line 1286)
  42778. * __satfractudqusq2: Fixed-point fractional library routines.
  42779. (line 1282)
  42780. * __satfractudquta: Fixed-point fractional library routines.
  42781. (line 1290)
  42782. * __satfractuhada: Fixed-point fractional library routines.
  42783. (line 1302)
  42784. * __satfractuhadq: Fixed-point fractional library routines.
  42785. (line 1297)
  42786. * __satfractuhaha: Fixed-point fractional library routines.
  42787. (line 1299)
  42788. * __satfractuhahq: Fixed-point fractional library routines.
  42789. (line 1294)
  42790. * __satfractuhaqq: Fixed-point fractional library routines.
  42791. (line 1292)
  42792. * __satfractuhasa: Fixed-point fractional library routines.
  42793. (line 1301)
  42794. * __satfractuhasq: Fixed-point fractional library routines.
  42795. (line 1295)
  42796. * __satfractuhata: Fixed-point fractional library routines.
  42797. (line 1304)
  42798. * __satfractuhauda2: Fixed-point fractional library routines.
  42799. (line 1316)
  42800. * __satfractuhaudq: Fixed-point fractional library routines.
  42801. (line 1312)
  42802. * __satfractuhauhq: Fixed-point fractional library routines.
  42803. (line 1308)
  42804. * __satfractuhauqq: Fixed-point fractional library routines.
  42805. (line 1306)
  42806. * __satfractuhausa2: Fixed-point fractional library routines.
  42807. (line 1314)
  42808. * __satfractuhausq: Fixed-point fractional library routines.
  42809. (line 1310)
  42810. * __satfractuhauta2: Fixed-point fractional library routines.
  42811. (line 1318)
  42812. * __satfractuhqda: Fixed-point fractional library routines.
  42813. (line 1223)
  42814. * __satfractuhqdq: Fixed-point fractional library routines.
  42815. (line 1220)
  42816. * __satfractuhqha: Fixed-point fractional library routines.
  42817. (line 1221)
  42818. * __satfractuhqhq: Fixed-point fractional library routines.
  42819. (line 1218)
  42820. * __satfractuhqqq: Fixed-point fractional library routines.
  42821. (line 1217)
  42822. * __satfractuhqsa: Fixed-point fractional library routines.
  42823. (line 1222)
  42824. * __satfractuhqsq: Fixed-point fractional library routines.
  42825. (line 1219)
  42826. * __satfractuhqta: Fixed-point fractional library routines.
  42827. (line 1224)
  42828. * __satfractuhquda: Fixed-point fractional library routines.
  42829. (line 1234)
  42830. * __satfractuhqudq2: Fixed-point fractional library routines.
  42831. (line 1229)
  42832. * __satfractuhquha: Fixed-point fractional library routines.
  42833. (line 1231)
  42834. * __satfractuhquqq2: Fixed-point fractional library routines.
  42835. (line 1225)
  42836. * __satfractuhqusa: Fixed-point fractional library routines.
  42837. (line 1233)
  42838. * __satfractuhqusq2: Fixed-point fractional library routines.
  42839. (line 1227)
  42840. * __satfractuhquta: Fixed-point fractional library routines.
  42841. (line 1236)
  42842. * __satfractunsdida: Fixed-point fractional library routines.
  42843. (line 1833)
  42844. * __satfractunsdidq: Fixed-point fractional library routines.
  42845. (line 1829)
  42846. * __satfractunsdiha: Fixed-point fractional library routines.
  42847. (line 1831)
  42848. * __satfractunsdihq: Fixed-point fractional library routines.
  42849. (line 1827)
  42850. * __satfractunsdiqq: Fixed-point fractional library routines.
  42851. (line 1826)
  42852. * __satfractunsdisa: Fixed-point fractional library routines.
  42853. (line 1832)
  42854. * __satfractunsdisq: Fixed-point fractional library routines.
  42855. (line 1828)
  42856. * __satfractunsdita: Fixed-point fractional library routines.
  42857. (line 1834)
  42858. * __satfractunsdiuda: Fixed-point fractional library routines.
  42859. (line 1848)
  42860. * __satfractunsdiudq: Fixed-point fractional library routines.
  42861. (line 1842)
  42862. * __satfractunsdiuha: Fixed-point fractional library routines.
  42863. (line 1844)
  42864. * __satfractunsdiuhq: Fixed-point fractional library routines.
  42865. (line 1838)
  42866. * __satfractunsdiuqq: Fixed-point fractional library routines.
  42867. (line 1836)
  42868. * __satfractunsdiusa: Fixed-point fractional library routines.
  42869. (line 1846)
  42870. * __satfractunsdiusq: Fixed-point fractional library routines.
  42871. (line 1840)
  42872. * __satfractunsdiuta: Fixed-point fractional library routines.
  42873. (line 1850)
  42874. * __satfractunshida: Fixed-point fractional library routines.
  42875. (line 1785)
  42876. * __satfractunshidq: Fixed-point fractional library routines.
  42877. (line 1781)
  42878. * __satfractunshiha: Fixed-point fractional library routines.
  42879. (line 1783)
  42880. * __satfractunshihq: Fixed-point fractional library routines.
  42881. (line 1779)
  42882. * __satfractunshiqq: Fixed-point fractional library routines.
  42883. (line 1778)
  42884. * __satfractunshisa: Fixed-point fractional library routines.
  42885. (line 1784)
  42886. * __satfractunshisq: Fixed-point fractional library routines.
  42887. (line 1780)
  42888. * __satfractunshita: Fixed-point fractional library routines.
  42889. (line 1786)
  42890. * __satfractunshiuda: Fixed-point fractional library routines.
  42891. (line 1800)
  42892. * __satfractunshiudq: Fixed-point fractional library routines.
  42893. (line 1794)
  42894. * __satfractunshiuha: Fixed-point fractional library routines.
  42895. (line 1796)
  42896. * __satfractunshiuhq: Fixed-point fractional library routines.
  42897. (line 1790)
  42898. * __satfractunshiuqq: Fixed-point fractional library routines.
  42899. (line 1788)
  42900. * __satfractunshiusa: Fixed-point fractional library routines.
  42901. (line 1798)
  42902. * __satfractunshiusq: Fixed-point fractional library routines.
  42903. (line 1792)
  42904. * __satfractunshiuta: Fixed-point fractional library routines.
  42905. (line 1802)
  42906. * __satfractunsqida: Fixed-point fractional library routines.
  42907. (line 1759)
  42908. * __satfractunsqidq: Fixed-point fractional library routines.
  42909. (line 1755)
  42910. * __satfractunsqiha: Fixed-point fractional library routines.
  42911. (line 1757)
  42912. * __satfractunsqihq: Fixed-point fractional library routines.
  42913. (line 1753)
  42914. * __satfractunsqiqq: Fixed-point fractional library routines.
  42915. (line 1752)
  42916. * __satfractunsqisa: Fixed-point fractional library routines.
  42917. (line 1758)
  42918. * __satfractunsqisq: Fixed-point fractional library routines.
  42919. (line 1754)
  42920. * __satfractunsqita: Fixed-point fractional library routines.
  42921. (line 1760)
  42922. * __satfractunsqiuda: Fixed-point fractional library routines.
  42923. (line 1774)
  42924. * __satfractunsqiudq: Fixed-point fractional library routines.
  42925. (line 1768)
  42926. * __satfractunsqiuha: Fixed-point fractional library routines.
  42927. (line 1770)
  42928. * __satfractunsqiuhq: Fixed-point fractional library routines.
  42929. (line 1764)
  42930. * __satfractunsqiuqq: Fixed-point fractional library routines.
  42931. (line 1762)
  42932. * __satfractunsqiusa: Fixed-point fractional library routines.
  42933. (line 1772)
  42934. * __satfractunsqiusq: Fixed-point fractional library routines.
  42935. (line 1766)
  42936. * __satfractunsqiuta: Fixed-point fractional library routines.
  42937. (line 1776)
  42938. * __satfractunssida: Fixed-point fractional library routines.
  42939. (line 1810)
  42940. * __satfractunssidq: Fixed-point fractional library routines.
  42941. (line 1807)
  42942. * __satfractunssiha: Fixed-point fractional library routines.
  42943. (line 1808)
  42944. * __satfractunssihq: Fixed-point fractional library routines.
  42945. (line 1805)
  42946. * __satfractunssiqq: Fixed-point fractional library routines.
  42947. (line 1804)
  42948. * __satfractunssisa: Fixed-point fractional library routines.
  42949. (line 1809)
  42950. * __satfractunssisq: Fixed-point fractional library routines.
  42951. (line 1806)
  42952. * __satfractunssita: Fixed-point fractional library routines.
  42953. (line 1811)
  42954. * __satfractunssiuda: Fixed-point fractional library routines.
  42955. (line 1822)
  42956. * __satfractunssiudq: Fixed-point fractional library routines.
  42957. (line 1817)
  42958. * __satfractunssiuha: Fixed-point fractional library routines.
  42959. (line 1819)
  42960. * __satfractunssiuhq: Fixed-point fractional library routines.
  42961. (line 1814)
  42962. * __satfractunssiuqq: Fixed-point fractional library routines.
  42963. (line 1812)
  42964. * __satfractunssiusa: Fixed-point fractional library routines.
  42965. (line 1821)
  42966. * __satfractunssiusq: Fixed-point fractional library routines.
  42967. (line 1815)
  42968. * __satfractunssiuta: Fixed-point fractional library routines.
  42969. (line 1824)
  42970. * __satfractunstida: Fixed-point fractional library routines.
  42971. (line 1862)
  42972. * __satfractunstidq: Fixed-point fractional library routines.
  42973. (line 1857)
  42974. * __satfractunstiha: Fixed-point fractional library routines.
  42975. (line 1859)
  42976. * __satfractunstihq: Fixed-point fractional library routines.
  42977. (line 1854)
  42978. * __satfractunstiqq: Fixed-point fractional library routines.
  42979. (line 1852)
  42980. * __satfractunstisa: Fixed-point fractional library routines.
  42981. (line 1861)
  42982. * __satfractunstisq: Fixed-point fractional library routines.
  42983. (line 1855)
  42984. * __satfractunstita: Fixed-point fractional library routines.
  42985. (line 1864)
  42986. * __satfractunstiuda: Fixed-point fractional library routines.
  42987. (line 1878)
  42988. * __satfractunstiudq: Fixed-point fractional library routines.
  42989. (line 1872)
  42990. * __satfractunstiuha: Fixed-point fractional library routines.
  42991. (line 1874)
  42992. * __satfractunstiuhq: Fixed-point fractional library routines.
  42993. (line 1868)
  42994. * __satfractunstiuqq: Fixed-point fractional library routines.
  42995. (line 1866)
  42996. * __satfractunstiusa: Fixed-point fractional library routines.
  42997. (line 1876)
  42998. * __satfractunstiusq: Fixed-point fractional library routines.
  42999. (line 1870)
  43000. * __satfractunstiuta: Fixed-point fractional library routines.
  43001. (line 1880)
  43002. * __satfractuqqda: Fixed-point fractional library routines.
  43003. (line 1199)
  43004. * __satfractuqqdq: Fixed-point fractional library routines.
  43005. (line 1194)
  43006. * __satfractuqqha: Fixed-point fractional library routines.
  43007. (line 1196)
  43008. * __satfractuqqhq: Fixed-point fractional library routines.
  43009. (line 1191)
  43010. * __satfractuqqqq: Fixed-point fractional library routines.
  43011. (line 1189)
  43012. * __satfractuqqsa: Fixed-point fractional library routines.
  43013. (line 1198)
  43014. * __satfractuqqsq: Fixed-point fractional library routines.
  43015. (line 1192)
  43016. * __satfractuqqta: Fixed-point fractional library routines.
  43017. (line 1201)
  43018. * __satfractuqquda: Fixed-point fractional library routines.
  43019. (line 1213)
  43020. * __satfractuqqudq2: Fixed-point fractional library routines.
  43021. (line 1207)
  43022. * __satfractuqquha: Fixed-point fractional library routines.
  43023. (line 1209)
  43024. * __satfractuqquhq2: Fixed-point fractional library routines.
  43025. (line 1203)
  43026. * __satfractuqqusa: Fixed-point fractional library routines.
  43027. (line 1211)
  43028. * __satfractuqqusq2: Fixed-point fractional library routines.
  43029. (line 1205)
  43030. * __satfractuqquta: Fixed-point fractional library routines.
  43031. (line 1215)
  43032. * __satfractusada: Fixed-point fractional library routines.
  43033. (line 1326)
  43034. * __satfractusadq: Fixed-point fractional library routines.
  43035. (line 1323)
  43036. * __satfractusaha: Fixed-point fractional library routines.
  43037. (line 1324)
  43038. * __satfractusahq: Fixed-point fractional library routines.
  43039. (line 1321)
  43040. * __satfractusaqq: Fixed-point fractional library routines.
  43041. (line 1320)
  43042. * __satfractusasa: Fixed-point fractional library routines.
  43043. (line 1325)
  43044. * __satfractusasq: Fixed-point fractional library routines.
  43045. (line 1322)
  43046. * __satfractusata: Fixed-point fractional library routines.
  43047. (line 1327)
  43048. * __satfractusauda2: Fixed-point fractional library routines.
  43049. (line 1337)
  43050. * __satfractusaudq: Fixed-point fractional library routines.
  43051. (line 1333)
  43052. * __satfractusauha2: Fixed-point fractional library routines.
  43053. (line 1335)
  43054. * __satfractusauhq: Fixed-point fractional library routines.
  43055. (line 1330)
  43056. * __satfractusauqq: Fixed-point fractional library routines.
  43057. (line 1328)
  43058. * __satfractusausq: Fixed-point fractional library routines.
  43059. (line 1331)
  43060. * __satfractusauta2: Fixed-point fractional library routines.
  43061. (line 1339)
  43062. * __satfractusqda: Fixed-point fractional library routines.
  43063. (line 1247)
  43064. * __satfractusqdq: Fixed-point fractional library routines.
  43065. (line 1242)
  43066. * __satfractusqha: Fixed-point fractional library routines.
  43067. (line 1244)
  43068. * __satfractusqhq: Fixed-point fractional library routines.
  43069. (line 1240)
  43070. * __satfractusqqq: Fixed-point fractional library routines.
  43071. (line 1238)
  43072. * __satfractusqsa: Fixed-point fractional library routines.
  43073. (line 1246)
  43074. * __satfractusqsq: Fixed-point fractional library routines.
  43075. (line 1241)
  43076. * __satfractusqta: Fixed-point fractional library routines.
  43077. (line 1248)
  43078. * __satfractusquda: Fixed-point fractional library routines.
  43079. (line 1260)
  43080. * __satfractusqudq2: Fixed-point fractional library routines.
  43081. (line 1254)
  43082. * __satfractusquha: Fixed-point fractional library routines.
  43083. (line 1256)
  43084. * __satfractusquhq2: Fixed-point fractional library routines.
  43085. (line 1252)
  43086. * __satfractusquqq2: Fixed-point fractional library routines.
  43087. (line 1250)
  43088. * __satfractusqusa: Fixed-point fractional library routines.
  43089. (line 1258)
  43090. * __satfractusquta: Fixed-point fractional library routines.
  43091. (line 1262)
  43092. * __satfractutada: Fixed-point fractional library routines.
  43093. (line 1377)
  43094. * __satfractutadq: Fixed-point fractional library routines.
  43095. (line 1372)
  43096. * __satfractutaha: Fixed-point fractional library routines.
  43097. (line 1374)
  43098. * __satfractutahq: Fixed-point fractional library routines.
  43099. (line 1369)
  43100. * __satfractutaqq: Fixed-point fractional library routines.
  43101. (line 1367)
  43102. * __satfractutasa: Fixed-point fractional library routines.
  43103. (line 1376)
  43104. * __satfractutasq: Fixed-point fractional library routines.
  43105. (line 1370)
  43106. * __satfractutata: Fixed-point fractional library routines.
  43107. (line 1379)
  43108. * __satfractutauda2: Fixed-point fractional library routines.
  43109. (line 1393)
  43110. * __satfractutaudq: Fixed-point fractional library routines.
  43111. (line 1387)
  43112. * __satfractutauha2: Fixed-point fractional library routines.
  43113. (line 1389)
  43114. * __satfractutauhq: Fixed-point fractional library routines.
  43115. (line 1383)
  43116. * __satfractutauqq: Fixed-point fractional library routines.
  43117. (line 1381)
  43118. * __satfractutausa2: Fixed-point fractional library routines.
  43119. (line 1391)
  43120. * __satfractutausq: Fixed-point fractional library routines.
  43121. (line 1385)
  43122. * __splitstack_find: Miscellaneous routines.
  43123. (line 15)
  43124. * __ssaddda3: Fixed-point fractional library routines.
  43125. (line 66)
  43126. * __ssadddq3: Fixed-point fractional library routines.
  43127. (line 61)
  43128. * __ssaddha3: Fixed-point fractional library routines.
  43129. (line 63)
  43130. * __ssaddhq3: Fixed-point fractional library routines.
  43131. (line 59)
  43132. * __ssaddqq3: Fixed-point fractional library routines.
  43133. (line 57)
  43134. * __ssaddsa3: Fixed-point fractional library routines.
  43135. (line 65)
  43136. * __ssaddsq3: Fixed-point fractional library routines.
  43137. (line 60)
  43138. * __ssaddta3: Fixed-point fractional library routines.
  43139. (line 67)
  43140. * __ssashlda3: Fixed-point fractional library routines.
  43141. (line 401)
  43142. * __ssashldq3: Fixed-point fractional library routines.
  43143. (line 397)
  43144. * __ssashlha3: Fixed-point fractional library routines.
  43145. (line 399)
  43146. * __ssashlhq3: Fixed-point fractional library routines.
  43147. (line 395)
  43148. * __ssashlsa3: Fixed-point fractional library routines.
  43149. (line 400)
  43150. * __ssashlsq3: Fixed-point fractional library routines.
  43151. (line 396)
  43152. * __ssashlta3: Fixed-point fractional library routines.
  43153. (line 402)
  43154. * __ssdivda3: Fixed-point fractional library routines.
  43155. (line 260)
  43156. * __ssdivdq3: Fixed-point fractional library routines.
  43157. (line 255)
  43158. * __ssdivha3: Fixed-point fractional library routines.
  43159. (line 257)
  43160. * __ssdivhq3: Fixed-point fractional library routines.
  43161. (line 253)
  43162. * __ssdivqq3: Fixed-point fractional library routines.
  43163. (line 251)
  43164. * __ssdivsa3: Fixed-point fractional library routines.
  43165. (line 259)
  43166. * __ssdivsq3: Fixed-point fractional library routines.
  43167. (line 254)
  43168. * __ssdivta3: Fixed-point fractional library routines.
  43169. (line 261)
  43170. * __ssmulda3: Fixed-point fractional library routines.
  43171. (line 192)
  43172. * __ssmuldq3: Fixed-point fractional library routines.
  43173. (line 187)
  43174. * __ssmulha3: Fixed-point fractional library routines.
  43175. (line 189)
  43176. * __ssmulhq3: Fixed-point fractional library routines.
  43177. (line 185)
  43178. * __ssmulqq3: Fixed-point fractional library routines.
  43179. (line 183)
  43180. * __ssmulsa3: Fixed-point fractional library routines.
  43181. (line 191)
  43182. * __ssmulsq3: Fixed-point fractional library routines.
  43183. (line 186)
  43184. * __ssmulta3: Fixed-point fractional library routines.
  43185. (line 193)
  43186. * __ssnegda2: Fixed-point fractional library routines.
  43187. (line 315)
  43188. * __ssnegdq2: Fixed-point fractional library routines.
  43189. (line 312)
  43190. * __ssnegha2: Fixed-point fractional library routines.
  43191. (line 313)
  43192. * __ssneghq2: Fixed-point fractional library routines.
  43193. (line 310)
  43194. * __ssnegqq2: Fixed-point fractional library routines.
  43195. (line 309)
  43196. * __ssnegsa2: Fixed-point fractional library routines.
  43197. (line 314)
  43198. * __ssnegsq2: Fixed-point fractional library routines.
  43199. (line 311)
  43200. * __ssnegta2: Fixed-point fractional library routines.
  43201. (line 316)
  43202. * __sssubda3: Fixed-point fractional library routines.
  43203. (line 128)
  43204. * __sssubdq3: Fixed-point fractional library routines.
  43205. (line 123)
  43206. * __sssubha3: Fixed-point fractional library routines.
  43207. (line 125)
  43208. * __sssubhq3: Fixed-point fractional library routines.
  43209. (line 121)
  43210. * __sssubqq3: Fixed-point fractional library routines.
  43211. (line 119)
  43212. * __sssubsa3: Fixed-point fractional library routines.
  43213. (line 127)
  43214. * __sssubsq3: Fixed-point fractional library routines.
  43215. (line 122)
  43216. * __sssubta3: Fixed-point fractional library routines.
  43217. (line 129)
  43218. * __subda3: Fixed-point fractional library routines.
  43219. (line 106)
  43220. * __subdf3: Soft float library routines.
  43221. (line 30)
  43222. * __subdq3: Fixed-point fractional library routines.
  43223. (line 93)
  43224. * __subha3: Fixed-point fractional library routines.
  43225. (line 103)
  43226. * __subhq3: Fixed-point fractional library routines.
  43227. (line 91)
  43228. * __subqq3: Fixed-point fractional library routines.
  43229. (line 89)
  43230. * __subsa3: Fixed-point fractional library routines.
  43231. (line 105)
  43232. * __subsf3: Soft float library routines.
  43233. (line 29)
  43234. * __subsq3: Fixed-point fractional library routines.
  43235. (line 92)
  43236. * __subta3: Fixed-point fractional library routines.
  43237. (line 107)
  43238. * __subtf3: Soft float library routines.
  43239. (line 31)
  43240. * __subuda3: Fixed-point fractional library routines.
  43241. (line 113)
  43242. * __subudq3: Fixed-point fractional library routines.
  43243. (line 101)
  43244. * __subuha3: Fixed-point fractional library routines.
  43245. (line 109)
  43246. * __subuhq3: Fixed-point fractional library routines.
  43247. (line 97)
  43248. * __subuqq3: Fixed-point fractional library routines.
  43249. (line 95)
  43250. * __subusa3: Fixed-point fractional library routines.
  43251. (line 111)
  43252. * __subusq3: Fixed-point fractional library routines.
  43253. (line 99)
  43254. * __subuta3: Fixed-point fractional library routines.
  43255. (line 115)
  43256. * __subvdi3: Integer library routines.
  43257. (line 122)
  43258. * __subvsi3: Integer library routines.
  43259. (line 121)
  43260. * __subxf3: Soft float library routines.
  43261. (line 33)
  43262. * __truncdfsf2: Soft float library routines.
  43263. (line 75)
  43264. * __trunctfdf2: Soft float library routines.
  43265. (line 72)
  43266. * __trunctfsf2: Soft float library routines.
  43267. (line 74)
  43268. * __truncxfdf2: Soft float library routines.
  43269. (line 71)
  43270. * __truncxfsf2: Soft float library routines.
  43271. (line 73)
  43272. * __ucmpdi2: Integer library routines.
  43273. (line 92)
  43274. * __ucmpti2: Integer library routines.
  43275. (line 93)
  43276. * __udivdi3: Integer library routines.
  43277. (line 52)
  43278. * __udivmoddi4: Integer library routines.
  43279. (line 59)
  43280. * __udivmodti4: Integer library routines.
  43281. (line 61)
  43282. * __udivsi3: Integer library routines.
  43283. (line 50)
  43284. * __udivti3: Integer library routines.
  43285. (line 54)
  43286. * __udivuda3: Fixed-point fractional library routines.
  43287. (line 244)
  43288. * __udivudq3: Fixed-point fractional library routines.
  43289. (line 238)
  43290. * __udivuha3: Fixed-point fractional library routines.
  43291. (line 240)
  43292. * __udivuhq3: Fixed-point fractional library routines.
  43293. (line 234)
  43294. * __udivuqq3: Fixed-point fractional library routines.
  43295. (line 232)
  43296. * __udivusa3: Fixed-point fractional library routines.
  43297. (line 242)
  43298. * __udivusq3: Fixed-point fractional library routines.
  43299. (line 236)
  43300. * __udivuta3: Fixed-point fractional library routines.
  43301. (line 246)
  43302. * __umoddi3: Integer library routines.
  43303. (line 69)
  43304. * __umodsi3: Integer library routines.
  43305. (line 67)
  43306. * __umodti3: Integer library routines.
  43307. (line 71)
  43308. * __unorddf2: Soft float library routines.
  43309. (line 172)
  43310. * __unordsf2: Soft float library routines.
  43311. (line 171)
  43312. * __unordtf2: Soft float library routines.
  43313. (line 173)
  43314. * __usadduda3: Fixed-point fractional library routines.
  43315. (line 83)
  43316. * __usaddudq3: Fixed-point fractional library routines.
  43317. (line 77)
  43318. * __usadduha3: Fixed-point fractional library routines.
  43319. (line 79)
  43320. * __usadduhq3: Fixed-point fractional library routines.
  43321. (line 73)
  43322. * __usadduqq3: Fixed-point fractional library routines.
  43323. (line 71)
  43324. * __usaddusa3: Fixed-point fractional library routines.
  43325. (line 81)
  43326. * __usaddusq3: Fixed-point fractional library routines.
  43327. (line 75)
  43328. * __usadduta3: Fixed-point fractional library routines.
  43329. (line 85)
  43330. * __usashluda3: Fixed-point fractional library routines.
  43331. (line 419)
  43332. * __usashludq3: Fixed-point fractional library routines.
  43333. (line 413)
  43334. * __usashluha3: Fixed-point fractional library routines.
  43335. (line 415)
  43336. * __usashluhq3: Fixed-point fractional library routines.
  43337. (line 409)
  43338. * __usashluqq3: Fixed-point fractional library routines.
  43339. (line 407)
  43340. * __usashlusa3: Fixed-point fractional library routines.
  43341. (line 417)
  43342. * __usashlusq3: Fixed-point fractional library routines.
  43343. (line 411)
  43344. * __usashluta3: Fixed-point fractional library routines.
  43345. (line 421)
  43346. * __usdivuda3: Fixed-point fractional library routines.
  43347. (line 278)
  43348. * __usdivudq3: Fixed-point fractional library routines.
  43349. (line 272)
  43350. * __usdivuha3: Fixed-point fractional library routines.
  43351. (line 274)
  43352. * __usdivuhq3: Fixed-point fractional library routines.
  43353. (line 268)
  43354. * __usdivuqq3: Fixed-point fractional library routines.
  43355. (line 266)
  43356. * __usdivusa3: Fixed-point fractional library routines.
  43357. (line 276)
  43358. * __usdivusq3: Fixed-point fractional library routines.
  43359. (line 270)
  43360. * __usdivuta3: Fixed-point fractional library routines.
  43361. (line 280)
  43362. * __usmuluda3: Fixed-point fractional library routines.
  43363. (line 210)
  43364. * __usmuludq3: Fixed-point fractional library routines.
  43365. (line 204)
  43366. * __usmuluha3: Fixed-point fractional library routines.
  43367. (line 206)
  43368. * __usmuluhq3: Fixed-point fractional library routines.
  43369. (line 200)
  43370. * __usmuluqq3: Fixed-point fractional library routines.
  43371. (line 198)
  43372. * __usmulusa3: Fixed-point fractional library routines.
  43373. (line 208)
  43374. * __usmulusq3: Fixed-point fractional library routines.
  43375. (line 202)
  43376. * __usmuluta3: Fixed-point fractional library routines.
  43377. (line 212)
  43378. * __usneguda2: Fixed-point fractional library routines.
  43379. (line 329)
  43380. * __usnegudq2: Fixed-point fractional library routines.
  43381. (line 324)
  43382. * __usneguha2: Fixed-point fractional library routines.
  43383. (line 326)
  43384. * __usneguhq2: Fixed-point fractional library routines.
  43385. (line 321)
  43386. * __usneguqq2: Fixed-point fractional library routines.
  43387. (line 319)
  43388. * __usnegusa2: Fixed-point fractional library routines.
  43389. (line 328)
  43390. * __usnegusq2: Fixed-point fractional library routines.
  43391. (line 322)
  43392. * __usneguta2: Fixed-point fractional library routines.
  43393. (line 331)
  43394. * __ussubuda3: Fixed-point fractional library routines.
  43395. (line 146)
  43396. * __ussubudq3: Fixed-point fractional library routines.
  43397. (line 140)
  43398. * __ussubuha3: Fixed-point fractional library routines.
  43399. (line 142)
  43400. * __ussubuhq3: Fixed-point fractional library routines.
  43401. (line 136)
  43402. * __ussubuqq3: Fixed-point fractional library routines.
  43403. (line 134)
  43404. * __ussubusa3: Fixed-point fractional library routines.
  43405. (line 144)
  43406. * __ussubusq3: Fixed-point fractional library routines.
  43407. (line 138)
  43408. * __ussubuta3: Fixed-point fractional library routines.
  43409. (line 148)
  43410. * abort: Portability. (line 20)
  43411. * abs: Arithmetic. (line 200)
  43412. * abs and attributes: Expressions. (line 83)
  43413. * absence_set: Processor pipeline description.
  43414. (line 223)
  43415. * absM2 instruction pattern: Standard Names. (line 917)
  43416. * absolute value: Arithmetic. (line 200)
  43417. * ABSU_EXPR: Unary and Binary Expressions.
  43418. (line 6)
  43419. * ABS_EXPR: Unary and Binary Expressions.
  43420. (line 6)
  43421. * access to operands: Accessors. (line 6)
  43422. * access to special operands: Special Accessors. (line 6)
  43423. * accessors: Accessors. (line 6)
  43424. * ACCUMULATE_OUTGOING_ARGS: Stack Arguments. (line 48)
  43425. * ACCUMULATE_OUTGOING_ARGS and stack frames: Function Entry. (line 140)
  43426. * ACCUM_TYPE_SIZE: Type Layout. (line 87)
  43427. * acosM2 instruction pattern: Standard Names. (line 1004)
  43428. * ADA_LONG_TYPE_SIZE: Type Layout. (line 25)
  43429. * Adding a new GIMPLE statement code: Adding a new GIMPLE statement code.
  43430. (line 6)
  43431. * ADDITIONAL_REGISTER_NAMES: Instruction Output. (line 14)
  43432. * addM3 instruction pattern: Standard Names. (line 460)
  43433. * addMODEcc instruction pattern: Standard Names. (line 1788)
  43434. * addptrM3 instruction pattern: Standard Names. (line 493)
  43435. * address constraints: Simple Constraints. (line 162)
  43436. * addressing modes: Addressing Modes. (line 6)
  43437. * address_operand: Machine-Independent Predicates.
  43438. (line 62)
  43439. * address_operand <1>: Simple Constraints. (line 166)
  43440. * addr_diff_vec: Side Effects. (line 314)
  43441. * addr_diff_vec, length of: Insn Lengths. (line 26)
  43442. * ADDR_EXPR: Storage References. (line 6)
  43443. * addr_vec: Side Effects. (line 309)
  43444. * addr_vec, length of: Insn Lengths. (line 26)
  43445. * addvM4 instruction pattern: Standard Names. (line 476)
  43446. * ADJUST_FIELD_ALIGN: Storage Layout. (line 212)
  43447. * ADJUST_INSN_LENGTH: Insn Lengths. (line 41)
  43448. * ADJUST_REG_ALLOC_ORDER: Allocation Order. (line 22)
  43449. * aggregates as return values: Aggregate Return. (line 6)
  43450. * alias: Alias analysis. (line 6)
  43451. * allocate_stack instruction pattern: Standard Names. (line 2155)
  43452. * ALL_REGS: Register Classes. (line 17)
  43453. * alternate entry points: Insns. (line 146)
  43454. * analyzer: Static Analyzer. (line 6)
  43455. * analyzer, debugging: Debugging the Analyzer.
  43456. (line 6)
  43457. * analyzer, internals: Analyzer Internals. (line 6)
  43458. * anchored addresses: Anchored Addresses. (line 6)
  43459. * and: Arithmetic. (line 158)
  43460. * and and attributes: Expressions. (line 50)
  43461. * and, canonicalization of: Insn Canonicalizations.
  43462. (line 67)
  43463. * andM3 instruction pattern: Standard Names. (line 466)
  43464. * ANNOTATE_EXPR: Unary and Binary Expressions.
  43465. (line 6)
  43466. * annotations: Annotations. (line 6)
  43467. * APPLY_RESULT_SIZE: Scalar Return. (line 112)
  43468. * ARGS_GROW_DOWNWARD: Frame Layout. (line 30)
  43469. * argument passing: Interface. (line 36)
  43470. * arguments in registers: Register Arguments. (line 6)
  43471. * arguments on stack: Stack Arguments. (line 6)
  43472. * ARG_POINTER_CFA_OFFSET: Frame Layout. (line 207)
  43473. * ARG_POINTER_REGNUM: Frame Registers. (line 40)
  43474. * ARG_POINTER_REGNUM and virtual registers: Regs and Memory. (line 65)
  43475. * arg_pointer_rtx: Frame Registers. (line 104)
  43476. * arithmetic library: Soft float library routines.
  43477. (line 6)
  43478. * arithmetic shift: Arithmetic. (line 173)
  43479. * arithmetic shift with signed saturation: Arithmetic. (line 173)
  43480. * arithmetic shift with unsigned saturation: Arithmetic. (line 173)
  43481. * arithmetic, in RTL: Arithmetic. (line 6)
  43482. * ARITHMETIC_TYPE_P: Types for C++. (line 59)
  43483. * array: Types. (line 6)
  43484. * ARRAY_RANGE_REF: Storage References. (line 6)
  43485. * ARRAY_REF: Storage References. (line 6)
  43486. * ARRAY_TYPE: Types. (line 6)
  43487. * ashift: Arithmetic. (line 173)
  43488. * ashift and attributes: Expressions. (line 83)
  43489. * ashiftrt: Arithmetic. (line 190)
  43490. * ashiftrt and attributes: Expressions. (line 83)
  43491. * ashlM3 instruction pattern: Standard Names. (line 866)
  43492. * ashrM3 instruction pattern: Standard Names. (line 878)
  43493. * asinM2 instruction pattern: Standard Names. (line 998)
  43494. * ASM_APP_OFF: File Framework. (line 76)
  43495. * ASM_APP_ON: File Framework. (line 69)
  43496. * ASM_COMMENT_START: File Framework. (line 64)
  43497. * ASM_DECLARE_COLD_FUNCTION_NAME: Label Output. (line 136)
  43498. * ASM_DECLARE_COLD_FUNCTION_SIZE: Label Output. (line 151)
  43499. * ASM_DECLARE_FUNCTION_NAME: Label Output. (line 108)
  43500. * ASM_DECLARE_FUNCTION_SIZE: Label Output. (line 123)
  43501. * ASM_DECLARE_OBJECT_NAME: Label Output. (line 164)
  43502. * ASM_DECLARE_REGISTER_GLOBAL: Label Output. (line 192)
  43503. * ASM_FINAL_SPEC: Driver. (line 81)
  43504. * ASM_FINISH_DECLARE_OBJECT: Label Output. (line 200)
  43505. * ASM_FORMAT_PRIVATE_NAME: Label Output. (line 426)
  43506. * asm_fprintf: Instruction Output. (line 150)
  43507. * ASM_FPRINTF_EXTENSIONS: Instruction Output. (line 160)
  43508. * ASM_GENERATE_INTERNAL_LABEL: Label Output. (line 410)
  43509. * asm_input: Side Effects. (line 296)
  43510. * asm_input and /v: Flags. (line 65)
  43511. * ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX: Exception Handling. (line 80)
  43512. * asm_noperands: Insns. (line 327)
  43513. * ASM_NO_SKIP_IN_TEXT: Alignment Output. (line 59)
  43514. * asm_operands and /v: Flags. (line 65)
  43515. * asm_operands, RTL sharing: Sharing. (line 48)
  43516. * asm_operands, usage: Assembler. (line 6)
  43517. * ASM_OUTPUT_ADDR_DIFF_ELT: Dispatch Tables. (line 8)
  43518. * ASM_OUTPUT_ADDR_VEC_ELT: Dispatch Tables. (line 25)
  43519. * ASM_OUTPUT_ALIGN: Alignment Output. (line 66)
  43520. * ASM_OUTPUT_ALIGNED_BSS: Uninitialized Data. (line 45)
  43521. * ASM_OUTPUT_ALIGNED_COMMON: Uninitialized Data. (line 29)
  43522. * ASM_OUTPUT_ALIGNED_DECL_COMMON: Uninitialized Data. (line 36)
  43523. * ASM_OUTPUT_ALIGNED_DECL_LOCAL: Uninitialized Data. (line 89)
  43524. * ASM_OUTPUT_ALIGNED_LOCAL: Uninitialized Data. (line 82)
  43525. * ASM_OUTPUT_ALIGN_WITH_NOP: Alignment Output. (line 71)
  43526. * ASM_OUTPUT_ASCII: Data Output. (line 60)
  43527. * ASM_OUTPUT_CASE_END: Dispatch Tables. (line 50)
  43528. * ASM_OUTPUT_CASE_LABEL: Dispatch Tables. (line 37)
  43529. * ASM_OUTPUT_COMMON: Uninitialized Data. (line 9)
  43530. * ASM_OUTPUT_DEBUG_LABEL: Label Output. (line 398)
  43531. * ASM_OUTPUT_DEF: Label Output. (line 447)
  43532. * ASM_OUTPUT_DEF_FROM_DECLS: Label Output. (line 454)
  43533. * ASM_OUTPUT_DWARF_DATAREL: DWARF. (line 110)
  43534. * ASM_OUTPUT_DWARF_DELTA: DWARF. (line 89)
  43535. * ASM_OUTPUT_DWARF_OFFSET: DWARF. (line 98)
  43536. * ASM_OUTPUT_DWARF_PCREL: DWARF. (line 105)
  43537. * ASM_OUTPUT_DWARF_TABLE_REF: DWARF. (line 115)
  43538. * ASM_OUTPUT_DWARF_VMS_DELTA: DWARF. (line 93)
  43539. * ASM_OUTPUT_EXTERNAL: Label Output. (line 327)
  43540. * ASM_OUTPUT_FDESC: Data Output. (line 69)
  43541. * ASM_OUTPUT_FUNCTION_LABEL: Label Output. (line 16)
  43542. * ASM_OUTPUT_INTERNAL_LABEL: Label Output. (line 27)
  43543. * ASM_OUTPUT_LABEL: Label Output. (line 8)
  43544. * ASM_OUTPUT_LABELREF: Label Output. (line 349)
  43545. * ASM_OUTPUT_LABEL_REF: Label Output. (line 371)
  43546. * ASM_OUTPUT_LOCAL: Uninitialized Data. (line 69)
  43547. * ASM_OUTPUT_MAX_SKIP_ALIGN: Alignment Output. (line 75)
  43548. * ASM_OUTPUT_MEASURED_SIZE: Label Output. (line 51)
  43549. * ASM_OUTPUT_OPCODE: Instruction Output. (line 35)
  43550. * ASM_OUTPUT_POOL_EPILOGUE: Data Output. (line 118)
  43551. * ASM_OUTPUT_POOL_PROLOGUE: Data Output. (line 82)
  43552. * ASM_OUTPUT_REG_POP: Instruction Output. (line 206)
  43553. * ASM_OUTPUT_REG_PUSH: Instruction Output. (line 201)
  43554. * ASM_OUTPUT_SIZE_DIRECTIVE: Label Output. (line 45)
  43555. * ASM_OUTPUT_SKIP: Alignment Output. (line 53)
  43556. * ASM_OUTPUT_SOURCE_FILENAME: File Framework. (line 83)
  43557. * ASM_OUTPUT_SPECIAL_POOL_ENTRY: Data Output. (line 93)
  43558. * ASM_OUTPUT_SYMBOL_REF: Label Output. (line 364)
  43559. * ASM_OUTPUT_TYPE_DIRECTIVE: Label Output. (line 98)
  43560. * ASM_OUTPUT_WEAKREF: Label Output. (line 259)
  43561. * ASM_OUTPUT_WEAK_ALIAS: Label Output. (line 473)
  43562. * ASM_PREFERRED_EH_DATA_FORMAT: Exception Handling. (line 66)
  43563. * ASM_SPEC: Driver. (line 73)
  43564. * ASM_STABD_OP: DBX Options. (line 34)
  43565. * ASM_STABN_OP: DBX Options. (line 41)
  43566. * ASM_STABS_OP: DBX Options. (line 28)
  43567. * ASM_WEAKEN_DECL: Label Output. (line 251)
  43568. * ASM_WEAKEN_LABEL: Label Output. (line 238)
  43569. * assembler format: File Framework. (line 6)
  43570. * assembler instructions in RTL: Assembler. (line 6)
  43571. * ASSEMBLER_DIALECT: Instruction Output. (line 172)
  43572. * assemble_name: Label Output. (line 8)
  43573. * assemble_name_raw: Label Output. (line 27)
  43574. * assigning attribute values to insns: Tagging Insns. (line 6)
  43575. * ASSUME_EXTENDED_UNWIND_CONTEXT: Frame Registers. (line 163)
  43576. * asterisk in template: Output Statement. (line 29)
  43577. * AS_NEEDS_DASH_FOR_PIPED_INPUT: Driver. (line 88)
  43578. * atan2M3 instruction pattern: Standard Names. (line 1099)
  43579. * atanM2 instruction pattern: Standard Names. (line 1010)
  43580. * atomic: GTY Options. (line 196)
  43581. * atomic_addMODE instruction pattern: Standard Names. (line 2579)
  43582. * atomic_add_fetchMODE instruction pattern: Standard Names. (line 2608)
  43583. * atomic_andMODE instruction pattern: Standard Names. (line 2579)
  43584. * atomic_and_fetchMODE instruction pattern: Standard Names. (line 2608)
  43585. * atomic_bit_test_and_complementMODE instruction pattern: Standard Names.
  43586. (line 2636)
  43587. * atomic_bit_test_and_resetMODE instruction pattern: Standard Names.
  43588. (line 2636)
  43589. * atomic_bit_test_and_setMODE instruction pattern: Standard Names.
  43590. (line 2636)
  43591. * atomic_compare_and_swapMODE instruction pattern: Standard Names.
  43592. (line 2515)
  43593. * atomic_exchangeMODE instruction pattern: Standard Names. (line 2567)
  43594. * atomic_fetch_addMODE instruction pattern: Standard Names. (line 2593)
  43595. * atomic_fetch_andMODE instruction pattern: Standard Names. (line 2593)
  43596. * atomic_fetch_nandMODE instruction pattern: Standard Names. (line 2593)
  43597. * atomic_fetch_orMODE instruction pattern: Standard Names. (line 2593)
  43598. * atomic_fetch_subMODE instruction pattern: Standard Names. (line 2593)
  43599. * atomic_fetch_xorMODE instruction pattern: Standard Names. (line 2593)
  43600. * atomic_loadMODE instruction pattern: Standard Names. (line 2546)
  43601. * atomic_nandMODE instruction pattern: Standard Names. (line 2579)
  43602. * atomic_nand_fetchMODE instruction pattern: Standard Names. (line 2608)
  43603. * atomic_orMODE instruction pattern: Standard Names. (line 2579)
  43604. * atomic_or_fetchMODE instruction pattern: Standard Names. (line 2608)
  43605. * atomic_storeMODE instruction pattern: Standard Names. (line 2556)
  43606. * atomic_subMODE instruction pattern: Standard Names. (line 2579)
  43607. * atomic_sub_fetchMODE instruction pattern: Standard Names. (line 2608)
  43608. * atomic_test_and_set instruction pattern: Standard Names. (line 2625)
  43609. * atomic_xorMODE instruction pattern: Standard Names. (line 2579)
  43610. * atomic_xor_fetchMODE instruction pattern: Standard Names. (line 2608)
  43611. * attr: Expressions. (line 163)
  43612. * attr <1>: Tagging Insns. (line 54)
  43613. * attribute expressions: Expressions. (line 6)
  43614. * attribute specifications: Attr Example. (line 6)
  43615. * attribute specifications example: Attr Example. (line 6)
  43616. * attributes: Attributes. (line 6)
  43617. * attributes, defining: Defining Attributes.
  43618. (line 6)
  43619. * attributes, target-specific: Target Attributes. (line 6)
  43620. * ATTRIBUTE_ALIGNED_VALUE: Storage Layout. (line 194)
  43621. * attr_flag: Expressions. (line 138)
  43622. * autoincrement addressing, availability: Portability. (line 20)
  43623. * autoincrement/decrement addressing: Simple Constraints. (line 30)
  43624. * automata_option: Processor pipeline description.
  43625. (line 304)
  43626. * automaton based pipeline description: Processor pipeline description.
  43627. (line 6)
  43628. * automaton based pipeline description <1>: Processor pipeline description.
  43629. (line 49)
  43630. * automaton based scheduler: Processor pipeline description.
  43631. (line 6)
  43632. * avgM3_ceil instruction pattern: Standard Names. (line 898)
  43633. * avgM3_floor instruction pattern: Standard Names. (line 886)
  43634. * AVOID_CCMODE_COPIES: Values in Registers.
  43635. (line 148)
  43636. * backslash: Output Template. (line 46)
  43637. * barrier: Insns. (line 176)
  43638. * barrier and /f: Flags. (line 135)
  43639. * barrier and /v: Flags. (line 33)
  43640. * BASE_REG_CLASS: Register Classes. (line 111)
  43641. * basic block: Basic Blocks. (line 6)
  43642. * basic blocks, RTL SSA: RTL SSA Basic Blocks.
  43643. (line 6)
  43644. * Basic Statements: Basic Statements. (line 6)
  43645. * basic-block.h: Control Flow. (line 6)
  43646. * basic_block: RTL SSA Basic Blocks.
  43647. (line 6)
  43648. * basic_block <1>: Basic Blocks. (line 6)
  43649. * BASIC_BLOCK: Basic Blocks. (line 14)
  43650. * BB_HEAD, BB_END: Maintaining the CFG.
  43651. (line 76)
  43652. * bb_seq: GIMPLE sequences. (line 72)
  43653. * BIGGEST_ALIGNMENT: Storage Layout. (line 179)
  43654. * BIGGEST_FIELD_ALIGNMENT: Storage Layout. (line 205)
  43655. * BImode: Machine Modes. (line 22)
  43656. * BIND_EXPR: Unary and Binary Expressions.
  43657. (line 6)
  43658. * BINFO_TYPE: Classes. (line 6)
  43659. * bit-fields: Bit-Fields. (line 6)
  43660. * BITFIELD_NBYTES_LIMITED: Storage Layout. (line 432)
  43661. * BITS_BIG_ENDIAN: Storage Layout. (line 11)
  43662. * BITS_BIG_ENDIAN, effect on sign_extract: Bit-Fields. (line 8)
  43663. * BITS_PER_UNIT: Machine Modes. (line 445)
  43664. * BITS_PER_WORD: Storage Layout. (line 50)
  43665. * bitwise complement: Arithmetic. (line 154)
  43666. * bitwise exclusive-or: Arithmetic. (line 168)
  43667. * bitwise inclusive-or: Arithmetic. (line 163)
  43668. * bitwise logical-and: Arithmetic. (line 158)
  43669. * BIT_AND_EXPR: Unary and Binary Expressions.
  43670. (line 6)
  43671. * BIT_IOR_EXPR: Unary and Binary Expressions.
  43672. (line 6)
  43673. * BIT_NOT_EXPR: Unary and Binary Expressions.
  43674. (line 6)
  43675. * BIT_XOR_EXPR: Unary and Binary Expressions.
  43676. (line 6)
  43677. * BLKmode: Machine Modes. (line 185)
  43678. * BLKmode, and function return values: Calls. (line 23)
  43679. * blockage instruction pattern: Standard Names. (line 2355)
  43680. * Blocks: Blocks. (line 6)
  43681. * BLOCK_FOR_INSN, gimple_bb: Maintaining the CFG.
  43682. (line 28)
  43683. * BLOCK_REG_PADDING: Register Arguments. (line 238)
  43684. * BND32mode: Machine Modes. (line 210)
  43685. * BND64mode: Machine Modes. (line 210)
  43686. * bool: Misc. (line 963)
  43687. * BOOLEAN_TYPE: Types. (line 6)
  43688. * BOOL_TYPE_SIZE: Type Layout. (line 43)
  43689. * branch prediction: Profile information.
  43690. (line 24)
  43691. * BRANCH_COST: Costs. (line 104)
  43692. * break_out_memory_refs: Addressing Modes. (line 134)
  43693. * BREAK_STMT: Statements for C and C++.
  43694. (line 6)
  43695. * BSS_SECTION_ASM_OP: Sections. (line 67)
  43696. * bswap: Arithmetic. (line 246)
  43697. * bswapM2 instruction pattern: Standard Names. (line 906)
  43698. * btruncM2 instruction pattern: Standard Names. (line 1116)
  43699. * build0: Macros and Functions.
  43700. (line 16)
  43701. * build1: Macros and Functions.
  43702. (line 17)
  43703. * build2: Macros and Functions.
  43704. (line 18)
  43705. * build3: Macros and Functions.
  43706. (line 19)
  43707. * build4: Macros and Functions.
  43708. (line 20)
  43709. * build5: Macros and Functions.
  43710. (line 21)
  43711. * build6: Macros and Functions.
  43712. (line 22)
  43713. * builtin_longjmp instruction pattern: Standard Names. (line 2253)
  43714. * builtin_setjmp_receiver instruction pattern: Standard Names.
  43715. (line 2243)
  43716. * builtin_setjmp_setup instruction pattern: Standard Names. (line 2232)
  43717. * BYTES_BIG_ENDIAN: Storage Layout. (line 23)
  43718. * BYTES_BIG_ENDIAN, effect on subreg: Regs and Memory. (line 229)
  43719. * byte_mode: Machine Modes. (line 463)
  43720. * C statements for assembler output: Output Statement. (line 6)
  43721. * cache: GTY Options. (line 127)
  43722. * cadd270M3 instruction pattern: Standard Names. (line 1217)
  43723. * cadd90M3 instruction pattern: Standard Names. (line 1195)
  43724. * call: Flags. (line 230)
  43725. * call <1>: Side Effects. (line 92)
  43726. * call instruction pattern: Standard Names. (line 1908)
  43727. * call usage: Calls. (line 10)
  43728. * call, in call_insn: Flags. (line 129)
  43729. * call, in mem: Flags. (line 70)
  43730. * call-clobbered register: Register Basics. (line 35)
  43731. * call-clobbered register <1>: Register Basics. (line 50)
  43732. * call-clobbered register <2>: Register Basics. (line 58)
  43733. * call-clobbered register <3>: Register Basics. (line 76)
  43734. * call-saved register: Register Basics. (line 35)
  43735. * call-saved register <1>: Register Basics. (line 50)
  43736. * call-saved register <2>: Register Basics. (line 58)
  43737. * call-saved register <3>: Register Basics. (line 76)
  43738. * call-used register: Register Basics. (line 35)
  43739. * call-used register <1>: Register Basics. (line 50)
  43740. * call-used register <2>: Register Basics. (line 58)
  43741. * call-used register <3>: Register Basics. (line 76)
  43742. * calling conventions: Stack and Calling. (line 6)
  43743. * calling functions in RTL: Calls. (line 6)
  43744. * CALL_EXPR: Unary and Binary Expressions.
  43745. (line 6)
  43746. * call_insn: Insns. (line 95)
  43747. * call_insn and /c: Flags. (line 129)
  43748. * call_insn and /f: Flags. (line 135)
  43749. * call_insn and /i: Flags. (line 120)
  43750. * call_insn and /j: Flags. (line 175)
  43751. * call_insn and /s: Flags. (line 38)
  43752. * call_insn and /s <1>: Flags. (line 162)
  43753. * call_insn and /u: Flags. (line 28)
  43754. * call_insn and /u <1>: Flags. (line 115)
  43755. * call_insn and /u or /i: Flags. (line 125)
  43756. * call_insn and /v: Flags. (line 33)
  43757. * CALL_INSN_FUNCTION_USAGE: Insns. (line 101)
  43758. * call_pop instruction pattern: Standard Names. (line 1936)
  43759. * CALL_POPS_ARGS: Stack Arguments. (line 138)
  43760. * CALL_REALLY_USED_REGISTERS: Register Basics. (line 49)
  43761. * CALL_USED_REGISTERS: Register Basics. (line 34)
  43762. * call_used_regs: Register Basics. (line 102)
  43763. * call_value instruction pattern: Standard Names. (line 1928)
  43764. * call_value_pop instruction pattern: Standard Names. (line 1936)
  43765. * canadian: Configure Terms. (line 6)
  43766. * canonicalization of instructions: Insn Canonicalizations.
  43767. (line 6)
  43768. * canonicalize_funcptr_for_compare instruction pattern: Standard Names.
  43769. (line 2087)
  43770. * can_create_pseudo_p: Standard Names. (line 75)
  43771. * can_fallthru: Basic Blocks. (line 67)
  43772. * caret: Multi-Alternative. (line 53)
  43773. * caret <1>: Guidelines for Diagnostics.
  43774. (line 183)
  43775. * casesi instruction pattern: Standard Names. (line 2029)
  43776. * CASE_VECTOR_MODE: Misc. (line 26)
  43777. * CASE_VECTOR_PC_RELATIVE: Misc. (line 39)
  43778. * CASE_VECTOR_SHORTEN_MODE: Misc. (line 30)
  43779. * cbranchMODE4 instruction pattern: Standard Names. (line 1897)
  43780. * cc0: Regs and Memory. (line 334)
  43781. * cc0 <1>: CC0 Condition Codes.
  43782. (line 6)
  43783. * cc0, RTL sharing: Sharing. (line 30)
  43784. * cc0_rtx: Regs and Memory. (line 360)
  43785. * CC1PLUS_SPEC: Driver. (line 63)
  43786. * CC1_SPEC: Driver. (line 55)
  43787. * CCmode: Machine Modes. (line 178)
  43788. * CCmode <1>: MODE_CC Condition Codes.
  43789. (line 6)
  43790. * cc_status: CC0 Condition Codes.
  43791. (line 6)
  43792. * CC_STATUS_MDEP: CC0 Condition Codes.
  43793. (line 16)
  43794. * CC_STATUS_MDEP_INIT: CC0 Condition Codes.
  43795. (line 22)
  43796. * CDImode: Machine Modes. (line 204)
  43797. * ceilM2 instruction pattern: Standard Names. (line 1135)
  43798. * CEIL_DIV_EXPR: Unary and Binary Expressions.
  43799. (line 6)
  43800. * CEIL_MOD_EXPR: Unary and Binary Expressions.
  43801. (line 6)
  43802. * CFA_FRAME_BASE_OFFSET: Frame Layout. (line 239)
  43803. * CFG verification: Maintaining the CFG.
  43804. (line 116)
  43805. * CFG, Control Flow Graph: Control Flow. (line 6)
  43806. * cfghooks.h: Maintaining the CFG.
  43807. (line 6)
  43808. * cgraph_finalize_function: Parsing pass. (line 51)
  43809. * chain_circular: GTY Options. (line 160)
  43810. * chain_next: GTY Options. (line 160)
  43811. * chain_prev: GTY Options. (line 160)
  43812. * change_address: Standard Names. (line 47)
  43813. * CHAR_TYPE_SIZE: Type Layout. (line 38)
  43814. * check_raw_ptrsM instruction pattern: Standard Names. (line 330)
  43815. * check_stack instruction pattern: Standard Names. (line 2173)
  43816. * check_war_ptrsM instruction pattern: Standard Names. (line 349)
  43817. * CHImode: Machine Modes. (line 204)
  43818. * class definitions, register: Register Classes. (line 6)
  43819. * class preference constraints: Class Preferences. (line 6)
  43820. * class, scope: Classes. (line 6)
  43821. * classes of RTX codes: RTL Classes. (line 6)
  43822. * CLASSTYPE_DECLARED_CLASS: Classes. (line 6)
  43823. * CLASSTYPE_HAS_MUTABLE: Classes. (line 82)
  43824. * CLASSTYPE_NON_POD_P: Classes. (line 87)
  43825. * CLASS_MAX_NREGS: Register Classes. (line 531)
  43826. * CLASS_TYPE_P: Types for C++. (line 63)
  43827. * Cleanups: Cleanups. (line 6)
  43828. * CLEANUP_DECL: Statements for C and C++.
  43829. (line 6)
  43830. * CLEANUP_EXPR: Statements for C and C++.
  43831. (line 6)
  43832. * CLEANUP_POINT_EXPR: Unary and Binary Expressions.
  43833. (line 6)
  43834. * CLEANUP_STMT: Statements for C and C++.
  43835. (line 6)
  43836. * clear_cache instruction pattern: Standard Names. (line 2742)
  43837. * CLEAR_INSN_CACHE: Trampolines. (line 164)
  43838. * CLEAR_RATIO: Costs. (line 225)
  43839. * clobber: Side Effects. (line 106)
  43840. * clrsb: Arithmetic. (line 215)
  43841. * clrsbM2 instruction pattern: Standard Names. (line 1369)
  43842. * clz: Arithmetic. (line 222)
  43843. * clzM2 instruction pattern: Standard Names. (line 1385)
  43844. * CLZ_DEFINED_VALUE_AT_ZERO: Misc. (line 340)
  43845. * cmlaM4 instruction pattern: Standard Names. (line 1239)
  43846. * cmla_conjM4 instruction pattern: Standard Names. (line 1258)
  43847. * cmlsM4 instruction pattern: Standard Names. (line 1278)
  43848. * cmls_conjM4 instruction pattern: Standard Names. (line 1297)
  43849. * cmpmemM instruction pattern: Standard Names. (line 1588)
  43850. * cmpstrM instruction pattern: Standard Names. (line 1567)
  43851. * cmpstrnM instruction pattern: Standard Names. (line 1554)
  43852. * cmulM4 instruction pattern: Standard Names. (line 1317)
  43853. * cmul_conjM4 instruction pattern: Standard Names. (line 1336)
  43854. * code generation RTL sequences: Expander Definitions.
  43855. (line 6)
  43856. * code iterators in .md files: Code Iterators. (line 6)
  43857. * codes, RTL expression: RTL Objects. (line 47)
  43858. * code_label: Insns. (line 125)
  43859. * CODE_LABEL: Basic Blocks. (line 50)
  43860. * code_label and /i: Flags. (line 48)
  43861. * code_label and /v: Flags. (line 33)
  43862. * CODE_LABEL_NUMBER: Insns. (line 125)
  43863. * COImode: Machine Modes. (line 204)
  43864. * COLLECT2_HOST_INITIALIZATION: Host Misc. (line 32)
  43865. * COLLECT_EXPORT_LIST: Misc. (line 869)
  43866. * COLLECT_SHARED_FINI_FUNC: Macros for Initialization.
  43867. (line 43)
  43868. * COLLECT_SHARED_INIT_FUNC: Macros for Initialization.
  43869. (line 32)
  43870. * command-line options, guidelines for: Guidelines for Options.
  43871. (line 6)
  43872. * commit_edge_insertions: Maintaining the CFG.
  43873. (line 104)
  43874. * compare: Arithmetic. (line 46)
  43875. * compare, canonicalization of: Insn Canonicalizations.
  43876. (line 36)
  43877. * COMPARE_MAX_PIECES: Costs. (line 220)
  43878. * comparison_operator: Machine-Independent Predicates.
  43879. (line 110)
  43880. * compiler passes and files: Passes. (line 6)
  43881. * complement, bitwise: Arithmetic. (line 154)
  43882. * COMPLEX_CST: Constant expressions.
  43883. (line 6)
  43884. * COMPLEX_EXPR: Unary and Binary Expressions.
  43885. (line 6)
  43886. * complex_mode: Machine Modes. (line 307)
  43887. * COMPLEX_TYPE: Types. (line 6)
  43888. * COMPONENT_REF: Storage References. (line 6)
  43889. * Compound Expressions: Compound Expressions.
  43890. (line 6)
  43891. * Compound Lvalues: Compound Lvalues. (line 6)
  43892. * COMPOUND_EXPR: Unary and Binary Expressions.
  43893. (line 6)
  43894. * COMPOUND_LITERAL_EXPR: Unary and Binary Expressions.
  43895. (line 6)
  43896. * COMPOUND_LITERAL_EXPR_DECL: Unary and Binary Expressions.
  43897. (line 392)
  43898. * COMPOUND_LITERAL_EXPR_DECL_EXPR: Unary and Binary Expressions.
  43899. (line 392)
  43900. * computed jump: Edges. (line 127)
  43901. * computing the length of an insn: Insn Lengths. (line 6)
  43902. * concat: Regs and Memory. (line 412)
  43903. * concatn: Regs and Memory. (line 418)
  43904. * cond: Comparisons. (line 90)
  43905. * cond and attributes: Expressions. (line 37)
  43906. * condition code register: Regs and Memory. (line 334)
  43907. * condition code status: Condition Code. (line 6)
  43908. * condition codes: Comparisons. (line 20)
  43909. * conditional execution: Conditional Execution.
  43910. (line 6)
  43911. * Conditional Expressions: Conditional Expressions.
  43912. (line 6)
  43913. * conditions, in patterns: Patterns. (line 55)
  43914. * cond_addMODE instruction pattern: Standard Names. (line 1795)
  43915. * cond_andMODE instruction pattern: Standard Names. (line 1795)
  43916. * cond_divMODE instruction pattern: Standard Names. (line 1795)
  43917. * cond_exec: Side Effects. (line 254)
  43918. * COND_EXPR: Unary and Binary Expressions.
  43919. (line 6)
  43920. * cond_fmaMODE instruction pattern: Standard Names. (line 1833)
  43921. * cond_fmsMODE instruction pattern: Standard Names. (line 1833)
  43922. * cond_fnmaMODE instruction pattern: Standard Names. (line 1833)
  43923. * cond_fnmsMODE instruction pattern: Standard Names. (line 1833)
  43924. * cond_iorMODE instruction pattern: Standard Names. (line 1795)
  43925. * cond_modMODE instruction pattern: Standard Names. (line 1795)
  43926. * cond_mulMODE instruction pattern: Standard Names. (line 1795)
  43927. * cond_smaxMODE instruction pattern: Standard Names. (line 1795)
  43928. * cond_sminMODE instruction pattern: Standard Names. (line 1795)
  43929. * cond_subMODE instruction pattern: Standard Names. (line 1795)
  43930. * cond_udivMODE instruction pattern: Standard Names. (line 1795)
  43931. * cond_umaxMODE instruction pattern: Standard Names. (line 1795)
  43932. * cond_uminMODE instruction pattern: Standard Names. (line 1795)
  43933. * cond_umodMODE instruction pattern: Standard Names. (line 1795)
  43934. * cond_xorMODE instruction pattern: Standard Names. (line 1795)
  43935. * configuration file: Filesystem. (line 6)
  43936. * configuration file <1>: Host Misc. (line 6)
  43937. * configure terms: Configure Terms. (line 6)
  43938. * CONJ_EXPR: Unary and Binary Expressions.
  43939. (line 6)
  43940. * const: Constants. (line 226)
  43941. * const0_rtx: Constants. (line 21)
  43942. * CONST0_RTX: Constants. (line 244)
  43943. * const1_rtx: Constants. (line 21)
  43944. * CONST1_RTX: Constants. (line 244)
  43945. * const2_rtx: Constants. (line 21)
  43946. * CONST2_RTX: Constants. (line 244)
  43947. * constant attributes: Constant Attributes.
  43948. (line 6)
  43949. * constant definitions: Constant Definitions.
  43950. (line 6)
  43951. * constants in constraints: Simple Constraints. (line 68)
  43952. * CONSTANT_ADDRESS_P: Addressing Modes. (line 28)
  43953. * CONSTANT_P: Addressing Modes. (line 35)
  43954. * CONSTANT_POOL_ADDRESS_P: Flags. (line 19)
  43955. * CONSTANT_POOL_BEFORE_FUNCTION: Data Output. (line 74)
  43956. * constm1_rtx: Constants. (line 21)
  43957. * constraint modifier characters: Modifiers. (line 6)
  43958. * constraint, matching: Simple Constraints. (line 140)
  43959. * constraints: Constraints. (line 6)
  43960. * constraints, defining: Define Constraints. (line 6)
  43961. * constraints, machine specific: Machine Constraints.
  43962. (line 6)
  43963. * constraints, testing: C Constraint Interface.
  43964. (line 6)
  43965. * constraint_num: C Constraint Interface.
  43966. (line 30)
  43967. * constraint_satisfied_p: C Constraint Interface.
  43968. (line 42)
  43969. * CONSTRUCTOR: Unary and Binary Expressions.
  43970. (line 6)
  43971. * constructors, automatic calls: Collect2. (line 15)
  43972. * constructors, output of: Initialization. (line 6)
  43973. * CONST_DECL: Declarations. (line 6)
  43974. * const_double: Constants. (line 37)
  43975. * const_double, RTL sharing: Sharing. (line 32)
  43976. * CONST_DOUBLE_LOW: Constants. (line 54)
  43977. * const_double_operand: Machine-Independent Predicates.
  43978. (line 20)
  43979. * const_double_zero: Constants. (line 67)
  43980. * const_fixed: Constants. (line 107)
  43981. * const_int: Constants. (line 8)
  43982. * const_int and attribute tests: Expressions. (line 47)
  43983. * const_int and attributes: Expressions. (line 10)
  43984. * const_int, RTL sharing: Sharing. (line 23)
  43985. * const_int_operand: Machine-Independent Predicates.
  43986. (line 15)
  43987. * const_poly_int: Constants. (line 114)
  43988. * const_poly_int, RTL sharing: Sharing. (line 25)
  43989. * const_string: Constants. (line 198)
  43990. * const_string and attributes: Expressions. (line 20)
  43991. * const_true_rtx: Constants. (line 31)
  43992. * const_vector: Constants. (line 121)
  43993. * const_vector, RTL sharing: Sharing. (line 35)
  43994. * CONST_WIDE_INT: Constants. (line 81)
  43995. * CONST_WIDE_INT_ELT: Constants. (line 103)
  43996. * CONST_WIDE_INT_NUNITS: Constants. (line 98)
  43997. * CONST_WIDE_INT_VEC: Constants. (line 94)
  43998. * container: Containers. (line 6)
  43999. * CONTINUE_STMT: Statements for C and C++.
  44000. (line 6)
  44001. * contributors: Contributors. (line 6)
  44002. * controlling register usage: Register Basics. (line 116)
  44003. * controlling the compilation driver: Driver. (line 6)
  44004. * conventions, run-time: Interface. (line 6)
  44005. * conversions: Conversions. (line 6)
  44006. * CONVERT_EXPR: Unary and Binary Expressions.
  44007. (line 6)
  44008. * copysignM3 instruction pattern: Standard Names. (line 1180)
  44009. * copy_rtx: Addressing Modes. (line 189)
  44010. * copy_rtx_if_shared: Sharing. (line 67)
  44011. * cosM2 instruction pattern: Standard Names. (line 969)
  44012. * costs of instructions: Costs. (line 6)
  44013. * CPLUSPLUS_CPP_SPEC: Driver. (line 50)
  44014. * CPP_SPEC: Driver. (line 43)
  44015. * CPSImode: Machine Modes. (line 204)
  44016. * cpymemM instruction pattern: Standard Names. (line 1443)
  44017. * CP_INTEGRAL_TYPE: Types for C++. (line 55)
  44018. * cp_namespace_decls: Namespaces. (line 49)
  44019. * CP_TYPE_CONST_NON_VOLATILE_P: Types for C++. (line 33)
  44020. * CP_TYPE_CONST_P: Types for C++. (line 24)
  44021. * cp_type_quals: Types for C++. (line 6)
  44022. * cp_type_quals <1>: Types for C++. (line 16)
  44023. * CP_TYPE_RESTRICT_P: Types for C++. (line 30)
  44024. * CP_TYPE_VOLATILE_P: Types for C++. (line 27)
  44025. * CQImode: Machine Modes. (line 204)
  44026. * cross compilation and floating point: Floating Point. (line 6)
  44027. * CROSSING_JUMP_P: Flags. (line 10)
  44028. * crtl->args.pops_args: Function Entry. (line 111)
  44029. * crtl->args.pretend_args_size: Function Entry. (line 117)
  44030. * crtl->outgoing_args_size: Stack Arguments. (line 48)
  44031. * CRTSTUFF_T_CFLAGS: Target Fragment. (line 15)
  44032. * CRTSTUFF_T_CFLAGS_S: Target Fragment. (line 19)
  44033. * CRT_CALL_STATIC_FUNCTION: Sections. (line 125)
  44034. * CSImode: Machine Modes. (line 204)
  44035. * cstoreMODE4 instruction pattern: Standard Names. (line 1858)
  44036. * CTImode: Machine Modes. (line 204)
  44037. * ctrapMM4 instruction pattern: Standard Names. (line 2324)
  44038. * ctz: Arithmetic. (line 230)
  44039. * ctzM2 instruction pattern: Standard Names. (line 1400)
  44040. * CTZ_DEFINED_VALUE_AT_ZERO: Misc. (line 341)
  44041. * CUMULATIVE_ARGS: Register Arguments. (line 137)
  44042. * current_function_is_leaf: Leaf Functions. (line 50)
  44043. * current_function_uses_only_leaf_regs: Leaf Functions. (line 50)
  44044. * current_insn_predicate: Conditional Execution.
  44045. (line 27)
  44046. * C_COMMON_OVERRIDE_OPTIONS: Run-time Target. (line 136)
  44047. * c_register_pragma: Misc. (line 442)
  44048. * c_register_pragma_with_expansion: Misc. (line 444)
  44049. * DAmode: Machine Modes. (line 154)
  44050. * data bypass: Processor pipeline description.
  44051. (line 105)
  44052. * data bypass <1>: Processor pipeline description.
  44053. (line 196)
  44054. * data dependence delays: Processor pipeline description.
  44055. (line 6)
  44056. * Data Dependency Analysis: Dependency analysis.
  44057. (line 6)
  44058. * data structures: Per-Function Data. (line 6)
  44059. * DATA_ABI_ALIGNMENT: Storage Layout. (line 267)
  44060. * DATA_ALIGNMENT: Storage Layout. (line 254)
  44061. * DATA_SECTION_ASM_OP: Sections. (line 52)
  44062. * DBR_OUTPUT_SEQEND: Instruction Output. (line 133)
  44063. * dbr_sequence_length: Instruction Output. (line 133)
  44064. * DBX_BLOCKS_FUNCTION_RELATIVE: DBX Options. (line 100)
  44065. * DBX_CONTIN_CHAR: DBX Options. (line 63)
  44066. * DBX_CONTIN_LENGTH: DBX Options. (line 53)
  44067. * DBX_DEBUGGING_INFO: DBX Options. (line 8)
  44068. * DBX_FUNCTION_FIRST: DBX Options. (line 94)
  44069. * DBX_LINES_FUNCTION_RELATIVE: DBX Options. (line 106)
  44070. * DBX_NO_XREFS: DBX Options. (line 47)
  44071. * DBX_OUTPUT_MAIN_SOURCE_FILENAME: File Names and DBX. (line 8)
  44072. * DBX_OUTPUT_MAIN_SOURCE_FILE_END: File Names and DBX. (line 33)
  44073. * DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END: File Names and DBX.
  44074. (line 41)
  44075. * DBX_OUTPUT_SOURCE_LINE: DBX Hooks. (line 8)
  44076. * DBX_REGISTER_NUMBER: All Debuggers. (line 8)
  44077. * DBX_REGPARM_STABS_CODE: DBX Options. (line 84)
  44078. * DBX_REGPARM_STABS_LETTER: DBX Options. (line 89)
  44079. * DBX_STATIC_CONST_VAR_CODE: DBX Options. (line 79)
  44080. * DBX_STATIC_STAB_DATA_SECTION: DBX Options. (line 70)
  44081. * DBX_TYPE_DECL_STABS_CODE: DBX Options. (line 75)
  44082. * DBX_USE_BINCL: DBX Options. (line 112)
  44083. * DCmode: Machine Modes. (line 199)
  44084. * DDmode: Machine Modes. (line 93)
  44085. * De Morgan's law: Insn Canonicalizations.
  44086. (line 67)
  44087. * dead_or_set_p: define_peephole. (line 65)
  44088. * DEBUGGER_ARG_OFFSET: All Debuggers. (line 35)
  44089. * DEBUGGER_AUTO_OFFSET: All Debuggers. (line 27)
  44090. * debug_expr: Debug Information. (line 22)
  44091. * DEBUG_EXPR_DECL: Declarations. (line 6)
  44092. * debug_implicit_ptr: Debug Information. (line 27)
  44093. * debug_insn: Insns. (line 247)
  44094. * debug_marker: Debug Information. (line 37)
  44095. * debug_parameter_ref: Debug Information. (line 34)
  44096. * DEBUG_SYMS_TEXT: DBX Options. (line 24)
  44097. * decimal float library: Decimal float library routines.
  44098. (line 6)
  44099. * declaration: Declarations. (line 6)
  44100. * declarations, RTL: RTL Declarations. (line 6)
  44101. * DECLARE_LIBRARY_RENAMES: Library Calls. (line 8)
  44102. * DECL_ALIGN: Declarations. (line 6)
  44103. * DECL_ANTICIPATED: Functions for C++. (line 42)
  44104. * DECL_ARGUMENTS: Function Basics. (line 36)
  44105. * DECL_ARRAY_DELETE_OPERATOR_P: Functions for C++. (line 158)
  44106. * DECL_ARTIFICIAL: Working with declarations.
  44107. (line 24)
  44108. * DECL_ARTIFICIAL <1>: Function Basics. (line 6)
  44109. * DECL_ARTIFICIAL <2>: Function Properties.
  44110. (line 47)
  44111. * DECL_ASSEMBLER_NAME: Function Basics. (line 6)
  44112. * DECL_ASSEMBLER_NAME <1>: Function Basics. (line 19)
  44113. * DECL_ATTRIBUTES: Attributes. (line 21)
  44114. * DECL_BASE_CONSTRUCTOR_P: Functions for C++. (line 88)
  44115. * DECL_COMPLETE_CONSTRUCTOR_P: Functions for C++. (line 84)
  44116. * DECL_COMPLETE_DESTRUCTOR_P: Functions for C++. (line 98)
  44117. * DECL_CONSTRUCTOR_P: Functions for C++. (line 77)
  44118. * DECL_CONST_MEMFUNC_P: Functions for C++. (line 71)
  44119. * DECL_CONTEXT: Namespaces. (line 31)
  44120. * DECL_CONV_FN_P: Functions for C++. (line 105)
  44121. * DECL_COPY_CONSTRUCTOR_P: Functions for C++. (line 92)
  44122. * DECL_DESTRUCTOR_P: Functions for C++. (line 95)
  44123. * DECL_EXTERNAL: Declarations. (line 6)
  44124. * DECL_EXTERNAL <1>: Function Properties.
  44125. (line 25)
  44126. * DECL_EXTERN_C_FUNCTION_P: Functions for C++. (line 46)
  44127. * DECL_FUNCTION_MEMBER_P: Functions for C++. (line 61)
  44128. * DECL_FUNCTION_SPECIFIC_OPTIMIZATION: Function Basics. (line 6)
  44129. * DECL_FUNCTION_SPECIFIC_OPTIMIZATION <1>: Function Properties.
  44130. (line 61)
  44131. * DECL_FUNCTION_SPECIFIC_TARGET: Function Basics. (line 6)
  44132. * DECL_FUNCTION_SPECIFIC_TARGET <1>: Function Properties.
  44133. (line 55)
  44134. * DECL_GLOBAL_CTOR_P: Functions for C++. (line 108)
  44135. * DECL_GLOBAL_DTOR_P: Functions for C++. (line 112)
  44136. * DECL_INITIAL: Declarations. (line 6)
  44137. * DECL_INITIAL <1>: Function Basics. (line 51)
  44138. * DECL_LINKONCE_P: Functions for C++. (line 50)
  44139. * DECL_LOCAL_FUNCTION_P: Functions for C++. (line 38)
  44140. * DECL_MAIN_P: Functions for C++. (line 34)
  44141. * DECL_NAME: Working with declarations.
  44142. (line 7)
  44143. * DECL_NAME <1>: Function Basics. (line 6)
  44144. * DECL_NAME <2>: Function Basics. (line 9)
  44145. * DECL_NAME <3>: Namespaces. (line 20)
  44146. * DECL_NAMESPACE_ALIAS: Namespaces. (line 35)
  44147. * DECL_NAMESPACE_STD_P: Namespaces. (line 45)
  44148. * DECL_NONCONVERTING_P: Functions for C++. (line 80)
  44149. * DECL_NONSTATIC_MEMBER_FUNCTION_P: Functions for C++. (line 68)
  44150. * DECL_NON_THUNK_FUNCTION_P: Functions for C++. (line 138)
  44151. * DECL_OVERLOADED_OPERATOR_P: Functions for C++. (line 102)
  44152. * DECL_PURE_P: Function Properties.
  44153. (line 40)
  44154. * DECL_RESULT: Function Basics. (line 41)
  44155. * DECL_SAVED_TREE: Function Basics. (line 44)
  44156. * DECL_SIZE: Declarations. (line 6)
  44157. * DECL_STATIC_FUNCTION_P: Functions for C++. (line 65)
  44158. * DECL_STMT: Statements for C and C++.
  44159. (line 6)
  44160. * DECL_STMT_DECL: Statements for C and C++.
  44161. (line 6)
  44162. * DECL_THUNK_P: Functions for C++. (line 116)
  44163. * DECL_VIRTUAL_P: Function Properties.
  44164. (line 44)
  44165. * DECL_VOLATILE_MEMFUNC_P: Functions for C++. (line 74)
  44166. * default: GTY Options. (line 90)
  44167. * default_file_start: File Framework. (line 8)
  44168. * DEFAULT_GDB_EXTENSIONS: DBX Options. (line 17)
  44169. * DEFAULT_INCOMING_FRAME_SP_OFFSET: Frame Layout. (line 199)
  44170. * DEFAULT_PCC_STRUCT_RETURN: Aggregate Return. (line 34)
  44171. * DEFAULT_SIGNED_CHAR: Type Layout. (line 117)
  44172. * define_address_constraint: Define Constraints. (line 137)
  44173. * define_asm_attributes: Tagging Insns. (line 73)
  44174. * define_attr: Defining Attributes.
  44175. (line 6)
  44176. * define_automaton: Processor pipeline description.
  44177. (line 53)
  44178. * define_bypass: Processor pipeline description.
  44179. (line 196)
  44180. * define_code_attr: Code Iterators. (line 6)
  44181. * define_code_iterator: Code Iterators. (line 6)
  44182. * define_cond_exec: Conditional Execution.
  44183. (line 13)
  44184. * define_constants: Constant Definitions.
  44185. (line 6)
  44186. * define_constraint: Define Constraints. (line 45)
  44187. * define_cpu_unit: Processor pipeline description.
  44188. (line 68)
  44189. * define_c_enum: Constant Definitions.
  44190. (line 49)
  44191. * define_delay: Delay Slots. (line 25)
  44192. * define_enum: Constant Definitions.
  44193. (line 118)
  44194. * define_enum_attr: Defining Attributes.
  44195. (line 83)
  44196. * define_enum_attr <1>: Constant Definitions.
  44197. (line 136)
  44198. * define_expand: Expander Definitions.
  44199. (line 11)
  44200. * define_insn: Patterns. (line 6)
  44201. * define_insn example: Example. (line 6)
  44202. * define_insn_and_rewrite: Insn Splitting. (line 236)
  44203. * define_insn_and_split: Insn Splitting. (line 190)
  44204. * define_insn_reservation: Processor pipeline description.
  44205. (line 105)
  44206. * define_int_attr: Int Iterators. (line 6)
  44207. * define_int_iterator: Int Iterators. (line 6)
  44208. * define_memory_constraint: Define Constraints. (line 80)
  44209. * define_mode_attr: Substitutions. (line 6)
  44210. * define_mode_iterator: Defining Mode Iterators.
  44211. (line 6)
  44212. * define_peephole: define_peephole. (line 6)
  44213. * define_peephole2: define_peephole2. (line 6)
  44214. * define_predicate: Defining Predicates.
  44215. (line 6)
  44216. * define_query_cpu_unit: Processor pipeline description.
  44217. (line 90)
  44218. * define_register_constraint: Define Constraints. (line 26)
  44219. * define_relaxed_memory_constraint: Define Constraints. (line 113)
  44220. * define_reservation: Processor pipeline description.
  44221. (line 185)
  44222. * define_special_memory_constraint: Define Constraints. (line 99)
  44223. * define_special_predicate: Defining Predicates.
  44224. (line 6)
  44225. * define_split: Insn Splitting. (line 32)
  44226. * define_subst: Define Subst. (line 6)
  44227. * define_subst <1>: Define Subst Example.
  44228. (line 6)
  44229. * define_subst <2>: Define Subst Pattern Matching.
  44230. (line 6)
  44231. * define_subst <3>: Define Subst Output Template.
  44232. (line 6)
  44233. * define_subst <4>: Define Subst. (line 14)
  44234. * define_subst <5>: Subst Iterators. (line 6)
  44235. * define_subst_attr: Subst Iterators. (line 6)
  44236. * define_subst_attr <1>: Subst Iterators. (line 26)
  44237. * defining attributes and their values: Defining Attributes.
  44238. (line 6)
  44239. * defining constraints: Define Constraints. (line 6)
  44240. * defining jump instruction patterns: Jump Patterns. (line 6)
  44241. * defining looping instruction patterns: Looping Patterns. (line 6)
  44242. * defining peephole optimizers: Peephole Definitions.
  44243. (line 6)
  44244. * defining predicates: Defining Predicates.
  44245. (line 6)
  44246. * defining RTL sequences for code generation: Expander Definitions.
  44247. (line 6)
  44248. * degenerate phi node, RTL SSA: RTL SSA Access Lists.
  44249. (line 25)
  44250. * delay slots, defining: Delay Slots. (line 6)
  44251. * deletable: GTY Options. (line 134)
  44252. * DELETE_IF_ORDINARY: Filesystem. (line 79)
  44253. * Dependent Patterns: Dependent Patterns. (line 6)
  44254. * desc: GTY Options. (line 90)
  44255. * descriptors for nested functions: Trampolines. (line 6)
  44256. * destructors, output of: Initialization. (line 6)
  44257. * deterministic finite state automaton: Processor pipeline description.
  44258. (line 6)
  44259. * deterministic finite state automaton <1>: Processor pipeline description.
  44260. (line 304)
  44261. * DFmode: Machine Modes. (line 76)
  44262. * diagnostics guidelines, fix-it hints: Guidelines for Diagnostics.
  44263. (line 344)
  44264. * diagnostics, actionable: Guidelines for Diagnostics.
  44265. (line 15)
  44266. * diagnostics, false positive: Guidelines for Diagnostics.
  44267. (line 39)
  44268. * diagnostics, guidelines for: Guidelines for Diagnostics.
  44269. (line 5)
  44270. * diagnostics, locations: Guidelines for Diagnostics.
  44271. (line 183)
  44272. * diagnostics, true positive: Guidelines for Diagnostics.
  44273. (line 39)
  44274. * digits in constraint: Simple Constraints. (line 128)
  44275. * DImode: Machine Modes. (line 45)
  44276. * directory options .md: Including Patterns. (line 47)
  44277. * DIR_SEPARATOR: Filesystem. (line 18)
  44278. * DIR_SEPARATOR_2: Filesystem. (line 19)
  44279. * disabling certain registers: Register Basics. (line 116)
  44280. * dispatch table: Dispatch Tables. (line 8)
  44281. * div: Arithmetic. (line 116)
  44282. * div and attributes: Expressions. (line 83)
  44283. * division: Arithmetic. (line 116)
  44284. * division <1>: Arithmetic. (line 130)
  44285. * division <2>: Arithmetic. (line 136)
  44286. * divM3 instruction pattern: Standard Names. (line 466)
  44287. * divmodM4 instruction pattern: Standard Names. (line 846)
  44288. * dollar sign: Multi-Alternative. (line 57)
  44289. * DOLLARS_IN_IDENTIFIERS: Misc. (line 487)
  44290. * doloop_begin instruction pattern: Standard Names. (line 2078)
  44291. * doloop_end instruction pattern: Standard Names. (line 2066)
  44292. * DONE: Expander Definitions.
  44293. (line 77)
  44294. * DONE <1>: Insn Splitting. (line 61)
  44295. * DONE <2>: define_peephole2. (line 76)
  44296. * DONT_USE_BUILTIN_SETJMP: Exception Region Output.
  44297. (line 78)
  44298. * DOUBLE_TYPE_SIZE: Type Layout. (line 52)
  44299. * DO_BODY: Statements for C and C++.
  44300. (line 6)
  44301. * DO_COND: Statements for C and C++.
  44302. (line 6)
  44303. * DO_STMT: Statements for C and C++.
  44304. (line 6)
  44305. * DQmode: Machine Modes. (line 118)
  44306. * driver: Driver. (line 6)
  44307. * DRIVER_SELF_SPECS: Driver. (line 8)
  44308. * dump examples: Dump examples. (line 6)
  44309. * dump setup: Dump setup. (line 6)
  44310. * dump types: Dump types. (line 6)
  44311. * dump verbosity: Dump output verbosity.
  44312. (line 6)
  44313. * DUMPFILE_FORMAT: Filesystem. (line 67)
  44314. * dump_basic_block: Dump types. (line 29)
  44315. * dump_generic_expr: Dump types. (line 31)
  44316. * dump_gimple_stmt: Dump types. (line 33)
  44317. * dump_printf: Dump types. (line 6)
  44318. * DWARF2_ASM_LINE_DEBUG_INFO: DWARF. (line 45)
  44319. * DWARF2_ASM_VIEW_DEBUG_INFO: DWARF. (line 51)
  44320. * DWARF2_DEBUGGING_INFO: DWARF. (line 8)
  44321. * DWARF2_FRAME_INFO: DWARF. (line 25)
  44322. * DWARF2_FRAME_REG_OUT: Frame Registers. (line 149)
  44323. * DWARF2_UNWIND_INFO: Exception Region Output.
  44324. (line 39)
  44325. * DWARF_ALT_FRAME_RETURN_COLUMN: Frame Layout. (line 146)
  44326. * DWARF_CIE_DATA_ALIGNMENT: Exception Region Output.
  44327. (line 90)
  44328. * DWARF_FRAME_REGISTERS: Frame Registers. (line 109)
  44329. * DWARF_FRAME_REGNUM: Frame Registers. (line 141)
  44330. * DWARF_LAZY_REGISTER_VALUE: Frame Registers. (line 170)
  44331. * DWARF_REG_TO_UNWIND_COLUMN: Frame Registers. (line 134)
  44332. * DWARF_ZERO_REG: Frame Layout. (line 157)
  44333. * DYNAMIC_CHAIN_ADDRESS: Frame Layout. (line 84)
  44334. * E in constraint: Simple Constraints. (line 87)
  44335. * earlyclobber operand: Modifiers. (line 25)
  44336. * edge: Edges. (line 6)
  44337. * edge in the flow graph: Edges. (line 6)
  44338. * edge iterators: Edges. (line 15)
  44339. * edge splitting: Maintaining the CFG.
  44340. (line 104)
  44341. * EDGE_ABNORMAL: Edges. (line 127)
  44342. * EDGE_ABNORMAL, EDGE_ABNORMAL_CALL: Edges. (line 171)
  44343. * EDGE_ABNORMAL, EDGE_EH: Edges. (line 95)
  44344. * EDGE_ABNORMAL, EDGE_SIBCALL: Edges. (line 121)
  44345. * EDGE_FALLTHRU, force_nonfallthru: Edges. (line 85)
  44346. * EDOM, implicit usage: Library Calls. (line 59)
  44347. * EH_FRAME_SECTION_NAME: Exception Region Output.
  44348. (line 9)
  44349. * EH_FRAME_THROUGH_COLLECT2: Exception Region Output.
  44350. (line 19)
  44351. * eh_return instruction pattern: Standard Names. (line 2259)
  44352. * EH_RETURN_DATA_REGNO: Exception Handling. (line 6)
  44353. * EH_RETURN_HANDLER_RTX: Exception Handling. (line 38)
  44354. * EH_RETURN_STACKADJ_RTX: Exception Handling. (line 21)
  44355. * EH_TABLES_CAN_BE_READ_ONLY: Exception Region Output.
  44356. (line 29)
  44357. * EH_USES: Function Entry. (line 162)
  44358. * ei_edge: Edges. (line 43)
  44359. * ei_end_p: Edges. (line 27)
  44360. * ei_last: Edges. (line 23)
  44361. * ei_next: Edges. (line 35)
  44362. * ei_one_before_end_p: Edges. (line 31)
  44363. * ei_prev: Edges. (line 39)
  44364. * ei_safe_safe: Edges. (line 47)
  44365. * ei_start: Edges. (line 19)
  44366. * ELIMINABLE_REGS: Elimination. (line 34)
  44367. * ELSE_CLAUSE: Statements for C and C++.
  44368. (line 6)
  44369. * Embedded C: Fixed-point fractional library routines.
  44370. (line 6)
  44371. * Empty Statements: Empty Statements. (line 6)
  44372. * EMPTY_CLASS_EXPR: Statements for C and C++.
  44373. (line 6)
  44374. * EMPTY_FIELD_BOUNDARY: Storage Layout. (line 345)
  44375. * Emulated TLS: Emulated TLS. (line 6)
  44376. * enabled: Disable Insn Alternatives.
  44377. (line 6)
  44378. * ENDFILE_SPEC: Driver. (line 155)
  44379. * endianness: Portability. (line 20)
  44380. * ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR: Basic Blocks. (line 10)
  44381. * entry_value: Debug Information. (line 30)
  44382. * enum reg_class: Register Classes. (line 70)
  44383. * ENUMERAL_TYPE: Types. (line 6)
  44384. * enumerations: Constant Definitions.
  44385. (line 49)
  44386. * epilogue: Function Entry. (line 6)
  44387. * epilogue instruction pattern: Standard Names. (line 2297)
  44388. * EPILOGUE_USES: Function Entry. (line 156)
  44389. * eq: Comparisons. (line 52)
  44390. * eq and attributes: Expressions. (line 83)
  44391. * equal: Comparisons. (line 52)
  44392. * eq_attr: Expressions. (line 104)
  44393. * EQ_EXPR: Unary and Binary Expressions.
  44394. (line 6)
  44395. * errno, implicit usage: Library Calls. (line 71)
  44396. * EXACT_DIV_EXPR: Unary and Binary Expressions.
  44397. (line 6)
  44398. * examining SSA_NAMEs: SSA. (line 182)
  44399. * exception handling: Edges. (line 95)
  44400. * exception handling <1>: Exception Handling. (line 6)
  44401. * exception_receiver instruction pattern: Standard Names. (line 2224)
  44402. * exclamation point: Multi-Alternative. (line 48)
  44403. * exclusion_set: Processor pipeline description.
  44404. (line 223)
  44405. * exclusive-or, bitwise: Arithmetic. (line 168)
  44406. * EXIT_EXPR: Unary and Binary Expressions.
  44407. (line 6)
  44408. * EXIT_IGNORE_STACK: Function Entry. (line 144)
  44409. * exp10M2 instruction pattern: Standard Names. (line 1033)
  44410. * exp2M2 instruction pattern: Standard Names. (line 1040)
  44411. * expander definitions: Expander Definitions.
  44412. (line 6)
  44413. * expm1M2 instruction pattern: Standard Names. (line 1023)
  44414. * expM2 instruction pattern: Standard Names. (line 1016)
  44415. * expression: Expression trees. (line 6)
  44416. * expression codes: RTL Objects. (line 47)
  44417. * EXPR_FILENAME: Working with declarations.
  44418. (line 14)
  44419. * EXPR_LINENO: Working with declarations.
  44420. (line 20)
  44421. * expr_list: Insns. (line 568)
  44422. * EXPR_STMT: Statements for C and C++.
  44423. (line 6)
  44424. * EXPR_STMT_EXPR: Statements for C and C++.
  44425. (line 6)
  44426. * extended basic blocks, RTL SSA: RTL SSA Basic Blocks.
  44427. (line 29)
  44428. * extendMN2 instruction pattern: Standard Names. (line 1646)
  44429. * extensible constraints: Simple Constraints. (line 171)
  44430. * extract_last_M instruction pattern: Standard Names. (line 567)
  44431. * EXTRA_SPECS: Driver. (line 182)
  44432. * extv instruction pattern: Standard Names. (line 1737)
  44433. * extvM instruction pattern: Standard Names. (line 1682)
  44434. * extvmisalignM instruction pattern: Standard Names. (line 1692)
  44435. * extzv instruction pattern: Standard Names. (line 1755)
  44436. * extzvM instruction pattern: Standard Names. (line 1706)
  44437. * extzvmisalignM instruction pattern: Standard Names. (line 1709)
  44438. * F in constraint: Simple Constraints. (line 92)
  44439. * FAIL: Expander Definitions.
  44440. (line 83)
  44441. * FAIL <1>: Insn Splitting. (line 68)
  44442. * FAIL <2>: define_peephole2. (line 83)
  44443. * fall-thru: Edges. (line 68)
  44444. * false positive: Guidelines for Diagnostics.
  44445. (line 39)
  44446. * FATAL_EXIT_CODE: Host Misc. (line 6)
  44447. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  44448. (line 6)
  44449. * features, optional, in system conventions: Run-time Target.
  44450. (line 59)
  44451. * ffs: Arithmetic. (line 210)
  44452. * ffsM2 instruction pattern: Standard Names. (line 1356)
  44453. * FIELD_DECL: Declarations. (line 6)
  44454. * files and passes of the compiler: Passes. (line 6)
  44455. * files, generated: Files. (line 6)
  44456. * file_end_indicate_exec_stack: File Framework. (line 39)
  44457. * final_absence_set: Processor pipeline description.
  44458. (line 223)
  44459. * FINAL_PRESCAN_INSN: Instruction Output. (line 60)
  44460. * final_presence_set: Processor pipeline description.
  44461. (line 223)
  44462. * final_sequence: Instruction Output. (line 144)
  44463. * FIND_BASE_TERM: Addressing Modes. (line 117)
  44464. * finite state automaton minimization: Processor pipeline description.
  44465. (line 304)
  44466. * FINI_ARRAY_SECTION_ASM_OP: Sections. (line 113)
  44467. * FINI_SECTION_ASM_OP: Sections. (line 98)
  44468. * FIRST_PARM_OFFSET: Frame Layout. (line 59)
  44469. * FIRST_PARM_OFFSET and virtual registers: Regs and Memory. (line 65)
  44470. * FIRST_PSEUDO_REGISTER: Register Basics. (line 8)
  44471. * FIRST_STACK_REG: Stack Registers. (line 26)
  44472. * FIRST_VIRTUAL_REGISTER: Regs and Memory. (line 51)
  44473. * fix: Conversions. (line 66)
  44474. * fix-it hints: Guidelines for Diagnostics.
  44475. (line 344)
  44476. * fixed register: Register Basics. (line 15)
  44477. * fixed-point fractional library: Fixed-point fractional library routines.
  44478. (line 6)
  44479. * FIXED_CONVERT_EXPR: Unary and Binary Expressions.
  44480. (line 6)
  44481. * FIXED_CST: Constant expressions.
  44482. (line 6)
  44483. * FIXED_POINT_TYPE: Types. (line 6)
  44484. * FIXED_REGISTERS: Register Basics. (line 14)
  44485. * fixed_regs: Register Basics. (line 102)
  44486. * fixed_size_mode: Machine Modes. (line 310)
  44487. * fixMN2 instruction pattern: Standard Names. (line 1613)
  44488. * fixunsMN2 instruction pattern: Standard Names. (line 1622)
  44489. * fixuns_truncMN2 instruction pattern: Standard Names. (line 1637)
  44490. * fix_truncMN2 instruction pattern: Standard Names. (line 1633)
  44491. * FIX_TRUNC_EXPR: Unary and Binary Expressions.
  44492. (line 6)
  44493. * flags in RTL expression: Flags. (line 6)
  44494. * float: Conversions. (line 58)
  44495. * floating point and cross compilation: Floating Point. (line 6)
  44496. * floatMN2 instruction pattern: Standard Names. (line 1605)
  44497. * floatunsMN2 instruction pattern: Standard Names. (line 1609)
  44498. * FLOAT_EXPR: Unary and Binary Expressions.
  44499. (line 6)
  44500. * float_extend: Conversions. (line 33)
  44501. * FLOAT_LIB_COMPARE_RETURNS_BOOL: Library Calls. (line 32)
  44502. * FLOAT_STORE_FLAG_VALUE: Misc. (line 322)
  44503. * float_truncate: Conversions. (line 53)
  44504. * FLOAT_TYPE_SIZE: Type Layout. (line 48)
  44505. * FLOAT_WORDS_BIG_ENDIAN: Storage Layout. (line 41)
  44506. * FLOAT_WORDS_BIG_ENDIAN, (lack of) effect on subreg: Regs and Memory.
  44507. (line 234)
  44508. * floorM2 instruction pattern: Standard Names. (line 1107)
  44509. * FLOOR_DIV_EXPR: Unary and Binary Expressions.
  44510. (line 6)
  44511. * FLOOR_MOD_EXPR: Unary and Binary Expressions.
  44512. (line 6)
  44513. * flow-insensitive alias analysis: Alias analysis. (line 6)
  44514. * flow-sensitive alias analysis: Alias analysis. (line 6)
  44515. * fma: Arithmetic. (line 112)
  44516. * fmaM4 instruction pattern: Standard Names. (line 502)
  44517. * fmaxM3 instruction pattern: Standard Names. (line 533)
  44518. * fminM3 instruction pattern: Standard Names. (line 533)
  44519. * fmodM3 instruction pattern: Standard Names. (line 939)
  44520. * fmsM4 instruction pattern: Standard Names. (line 509)
  44521. * fnmaM4 instruction pattern: Standard Names. (line 515)
  44522. * fnmsM4 instruction pattern: Standard Names. (line 521)
  44523. * fold_extract_last_M instruction pattern: Standard Names. (line 574)
  44524. * fold_left_plus_M instruction pattern: Standard Names. (line 582)
  44525. * FORCE_CODE_SECTION_ALIGN: Sections. (line 149)
  44526. * force_reg: Standard Names. (line 36)
  44527. * FOR_BODY: Statements for C and C++.
  44528. (line 6)
  44529. * FOR_COND: Statements for C and C++.
  44530. (line 6)
  44531. * FOR_EXPR: Statements for C and C++.
  44532. (line 6)
  44533. * FOR_INIT_STMT: Statements for C and C++.
  44534. (line 6)
  44535. * FOR_STMT: Statements for C and C++.
  44536. (line 6)
  44537. * for_user: GTY Options. (line 82)
  44538. * fractional types: Fixed-point fractional library routines.
  44539. (line 6)
  44540. * fractMN2 instruction pattern: Standard Names. (line 1655)
  44541. * fractunsMN2 instruction pattern: Standard Names. (line 1670)
  44542. * fract_convert: Conversions. (line 82)
  44543. * FRACT_TYPE_SIZE: Type Layout. (line 67)
  44544. * frame layout: Frame Layout. (line 6)
  44545. * FRAME_ADDR_RTX: Frame Layout. (line 108)
  44546. * FRAME_GROWS_DOWNWARD: Frame Layout. (line 26)
  44547. * FRAME_GROWS_DOWNWARD and virtual registers: Regs and Memory.
  44548. (line 69)
  44549. * FRAME_POINTER_CFA_OFFSET: Frame Layout. (line 225)
  44550. * frame_pointer_needed: Function Entry. (line 42)
  44551. * FRAME_POINTER_REGNUM: Frame Registers. (line 13)
  44552. * FRAME_POINTER_REGNUM and virtual registers: Regs and Memory.
  44553. (line 74)
  44554. * frame_pointer_rtx: Frame Registers. (line 104)
  44555. * frame_related: Flags. (line 238)
  44556. * frame_related, in insn, call_insn, jump_insn, barrier, and set: Flags.
  44557. (line 135)
  44558. * frame_related, in mem: Flags. (line 74)
  44559. * frame_related, in reg: Flags. (line 102)
  44560. * frame_related, in symbol_ref: Flags. (line 179)
  44561. * frequency, count, BB_FREQ_BASE: Profile information.
  44562. (line 30)
  44563. * ftruncM2 instruction pattern: Standard Names. (line 1628)
  44564. * function: Functions. (line 6)
  44565. * function <1>: Functions for C++. (line 6)
  44566. * function call conventions: Interface. (line 6)
  44567. * function entry and exit: Function Entry. (line 6)
  44568. * function entry point, alternate function entry point: Edges.
  44569. (line 180)
  44570. * function properties: Function Properties.
  44571. (line 6)
  44572. * function-call insns: Calls. (line 6)
  44573. * functions, leaf: Leaf Functions. (line 6)
  44574. * FUNCTION_ARG_REGNO_P: Register Arguments. (line 261)
  44575. * FUNCTION_BOUNDARY: Storage Layout. (line 176)
  44576. * FUNCTION_DECL: Functions. (line 6)
  44577. * FUNCTION_DECL <1>: Functions for C++. (line 6)
  44578. * FUNCTION_MODE: Misc. (line 377)
  44579. * FUNCTION_PROFILER: Profiling. (line 8)
  44580. * FUNCTION_TYPE: Types. (line 6)
  44581. * FUNCTION_VALUE: Scalar Return. (line 52)
  44582. * FUNCTION_VALUE_REGNO_P: Scalar Return. (line 78)
  44583. * fundamental type: Types. (line 6)
  44584. * G in constraint: Simple Constraints. (line 96)
  44585. * g in constraint: Simple Constraints. (line 118)
  44586. * garbage collector, invocation: Invoking the garbage collector.
  44587. (line 6)
  44588. * garbage collector, troubleshooting: Troubleshooting. (line 6)
  44589. * gather_loadMN instruction pattern: Standard Names. (line 232)
  44590. * GCC and portability: Portability. (line 6)
  44591. * GCC_DRIVER_HOST_INITIALIZATION: Host Misc. (line 36)
  44592. * gcov_type: Profile information.
  44593. (line 41)
  44594. * ge: Comparisons. (line 72)
  44595. * ge and attributes: Expressions. (line 83)
  44596. * gencodes: RTL passes. (line 18)
  44597. * general_operand: Machine-Independent Predicates.
  44598. (line 104)
  44599. * GENERAL_REGS: Register Classes. (line 22)
  44600. * generated files: Files. (line 6)
  44601. * generating assembler output: Output Statement. (line 6)
  44602. * generating insns: RTL Template. (line 6)
  44603. * GENERIC: Parsing pass. (line 6)
  44604. * GENERIC <1>: GENERIC. (line 6)
  44605. * generic predicates: Machine-Independent Predicates.
  44606. (line 6)
  44607. * genflags: RTL passes. (line 18)
  44608. * GEN_ERRNO_RTX: Library Calls. (line 71)
  44609. * get_attr: Expressions. (line 99)
  44610. * get_attr_length: Insn Lengths. (line 52)
  44611. * GET_CLASS_NARROWEST_MODE: Machine Modes. (line 435)
  44612. * GET_CODE: RTL Objects. (line 47)
  44613. * get_insns: Insns. (line 34)
  44614. * get_last_insn: Insns. (line 34)
  44615. * GET_MODE: Machine Modes. (line 382)
  44616. * GET_MODE_ALIGNMENT: Machine Modes. (line 422)
  44617. * GET_MODE_BITSIZE: Machine Modes. (line 406)
  44618. * GET_MODE_CLASS: Machine Modes. (line 396)
  44619. * GET_MODE_FBIT: Machine Modes. (line 413)
  44620. * GET_MODE_IBIT: Machine Modes. (line 409)
  44621. * GET_MODE_MASK: Machine Modes. (line 417)
  44622. * GET_MODE_NAME: Machine Modes. (line 393)
  44623. * GET_MODE_NUNITS: Machine Modes. (line 431)
  44624. * GET_MODE_SIZE: Machine Modes. (line 403)
  44625. * GET_MODE_UNIT_SIZE: Machine Modes. (line 425)
  44626. * GET_MODE_WIDER_MODE: Machine Modes. (line 399)
  44627. * GET_RTX_CLASS: RTL Classes. (line 6)
  44628. * GET_RTX_FORMAT: RTL Classes. (line 136)
  44629. * GET_RTX_LENGTH: RTL Classes. (line 133)
  44630. * get_thread_pointerMODE instruction pattern: Standard Names.
  44631. (line 2676)
  44632. * geu: Comparisons. (line 72)
  44633. * geu and attributes: Expressions. (line 83)
  44634. * GE_EXPR: Unary and Binary Expressions.
  44635. (line 6)
  44636. * GGC: Type Information. (line 6)
  44637. * ggc_collect: Invoking the garbage collector.
  44638. (line 6)
  44639. * GIMPLE: Parsing pass. (line 13)
  44640. * GIMPLE <1>: Gimplification pass.
  44641. (line 6)
  44642. * GIMPLE <2>: GIMPLE. (line 6)
  44643. * gimple: Tuple representation.
  44644. (line 14)
  44645. * GIMPLE API: GIMPLE API. (line 6)
  44646. * GIMPLE class hierarchy: Class hierarchy of GIMPLE statements.
  44647. (line 6)
  44648. * GIMPLE Exception Handling: GIMPLE Exception Handling.
  44649. (line 6)
  44650. * GIMPLE instruction set: GIMPLE instruction set.
  44651. (line 6)
  44652. * GIMPLE sequences: GIMPLE sequences. (line 6)
  44653. * GIMPLE statement iterators: Basic Blocks. (line 78)
  44654. * GIMPLE statement iterators <1>: Maintaining the CFG.
  44655. (line 33)
  44656. * gimple_addresses_taken: Manipulating GIMPLE statements.
  44657. (line 89)
  44658. * GIMPLE_ASM: GIMPLE_ASM. (line 6)
  44659. * gimple_asm_clobber_op: GIMPLE_ASM. (line 39)
  44660. * gimple_asm_input_op: GIMPLE_ASM. (line 23)
  44661. * gimple_asm_nclobbers: GIMPLE_ASM. (line 20)
  44662. * gimple_asm_ninputs: GIMPLE_ASM. (line 14)
  44663. * gimple_asm_noutputs: GIMPLE_ASM. (line 17)
  44664. * gimple_asm_output_op: GIMPLE_ASM. (line 31)
  44665. * gimple_asm_set_clobber_op: GIMPLE_ASM. (line 43)
  44666. * gimple_asm_set_input_op: GIMPLE_ASM. (line 27)
  44667. * gimple_asm_set_output_op: GIMPLE_ASM. (line 35)
  44668. * gimple_asm_set_volatile: GIMPLE_ASM. (line 54)
  44669. * gimple_asm_string: GIMPLE_ASM. (line 47)
  44670. * gimple_asm_volatile_p: GIMPLE_ASM. (line 51)
  44671. * GIMPLE_ASSIGN: GIMPLE_ASSIGN. (line 6)
  44672. * gimple_assign_cast_p: Logical Operators. (line 158)
  44673. * gimple_assign_cast_p <1>: GIMPLE_ASSIGN. (line 104)
  44674. * gimple_assign_lhs: GIMPLE_ASSIGN. (line 62)
  44675. * gimple_assign_lhs_ptr: GIMPLE_ASSIGN. (line 65)
  44676. * gimple_assign_rhs1: GIMPLE_ASSIGN. (line 68)
  44677. * gimple_assign_rhs1_ptr: GIMPLE_ASSIGN. (line 71)
  44678. * gimple_assign_rhs2: GIMPLE_ASSIGN. (line 75)
  44679. * gimple_assign_rhs2_ptr: GIMPLE_ASSIGN. (line 78)
  44680. * gimple_assign_rhs3: GIMPLE_ASSIGN. (line 82)
  44681. * gimple_assign_rhs3_ptr: GIMPLE_ASSIGN. (line 85)
  44682. * gimple_assign_rhs_class: GIMPLE_ASSIGN. (line 56)
  44683. * gimple_assign_rhs_code: GIMPLE_ASSIGN. (line 52)
  44684. * gimple_assign_set_lhs: GIMPLE_ASSIGN. (line 89)
  44685. * gimple_assign_set_rhs1: GIMPLE_ASSIGN. (line 92)
  44686. * gimple_assign_set_rhs2: GIMPLE_ASSIGN. (line 96)
  44687. * gimple_assign_set_rhs3: GIMPLE_ASSIGN. (line 100)
  44688. * gimple_bb: Manipulating GIMPLE statements.
  44689. (line 17)
  44690. * GIMPLE_BIND: GIMPLE_BIND. (line 6)
  44691. * gimple_bind_add_seq: GIMPLE_BIND. (line 34)
  44692. * gimple_bind_add_stmt: GIMPLE_BIND. (line 31)
  44693. * gimple_bind_append_vars: GIMPLE_BIND. (line 18)
  44694. * gimple_bind_block: GIMPLE_BIND. (line 39)
  44695. * gimple_bind_body: GIMPLE_BIND. (line 22)
  44696. * gimple_bind_set_block: GIMPLE_BIND. (line 44)
  44697. * gimple_bind_set_body: GIMPLE_BIND. (line 26)
  44698. * gimple_bind_set_vars: GIMPLE_BIND. (line 14)
  44699. * gimple_bind_vars: GIMPLE_BIND. (line 11)
  44700. * gimple_block: Manipulating GIMPLE statements.
  44701. (line 20)
  44702. * gimple_build: GIMPLE API. (line 34)
  44703. * gimple_build <1>: GIMPLE API. (line 36)
  44704. * gimple_build <2>: GIMPLE API. (line 38)
  44705. * gimple_build <3>: GIMPLE API. (line 41)
  44706. * gimple_build <4>: GIMPLE API. (line 44)
  44707. * gimple_build <5>: GIMPLE API. (line 47)
  44708. * gimple_build_debug_begin_stmt: GIMPLE_DEBUG. (line 72)
  44709. * gimple_build_debug_inline_entry: GIMPLE_DEBUG. (line 82)
  44710. * gimple_build_nop: GIMPLE_NOP. (line 6)
  44711. * gimple_build_omp_master: GIMPLE_OMP_MASTER. (line 6)
  44712. * gimple_build_omp_ordered: GIMPLE_OMP_ORDERED. (line 6)
  44713. * gimple_build_omp_return: GIMPLE_OMP_RETURN. (line 6)
  44714. * gimple_build_omp_section: GIMPLE_OMP_SECTION. (line 6)
  44715. * gimple_build_omp_sections_switch: GIMPLE_OMP_SECTIONS.
  44716. (line 13)
  44717. * gimple_build_wce: GIMPLE_WITH_CLEANUP_EXPR.
  44718. (line 6)
  44719. * GIMPLE_CALL: GIMPLE_CALL. (line 6)
  44720. * gimple_call_arg: GIMPLE_CALL. (line 67)
  44721. * gimple_call_arg_ptr: GIMPLE_CALL. (line 71)
  44722. * gimple_call_chain: GIMPLE_CALL. (line 58)
  44723. * gimple_call_copy_skip_args: GIMPLE_CALL. (line 92)
  44724. * gimple_call_fn: GIMPLE_CALL. (line 39)
  44725. * gimple_call_fndecl: GIMPLE_CALL. (line 47)
  44726. * gimple_call_lhs: GIMPLE_CALL. (line 30)
  44727. * gimple_call_lhs_ptr: GIMPLE_CALL. (line 33)
  44728. * gimple_call_noreturn_p: GIMPLE_CALL. (line 89)
  44729. * gimple_call_num_args: GIMPLE_CALL. (line 64)
  44730. * gimple_call_return_type: GIMPLE_CALL. (line 55)
  44731. * gimple_call_set_arg: GIMPLE_CALL. (line 76)
  44732. * gimple_call_set_chain: GIMPLE_CALL. (line 61)
  44733. * gimple_call_set_fn: GIMPLE_CALL. (line 43)
  44734. * gimple_call_set_fndecl: GIMPLE_CALL. (line 52)
  44735. * gimple_call_set_lhs: GIMPLE_CALL. (line 36)
  44736. * gimple_call_set_tail: GIMPLE_CALL. (line 81)
  44737. * gimple_call_tail_p: GIMPLE_CALL. (line 86)
  44738. * GIMPLE_CATCH: GIMPLE_CATCH. (line 6)
  44739. * gimple_catch_handler: GIMPLE_CATCH. (line 19)
  44740. * gimple_catch_set_handler: GIMPLE_CATCH. (line 26)
  44741. * gimple_catch_set_types: GIMPLE_CATCH. (line 23)
  44742. * gimple_catch_types: GIMPLE_CATCH. (line 12)
  44743. * gimple_catch_types_ptr: GIMPLE_CATCH. (line 15)
  44744. * gimple_code: Manipulating GIMPLE statements.
  44745. (line 14)
  44746. * GIMPLE_COND: GIMPLE_COND. (line 6)
  44747. * gimple_cond_code: GIMPLE_COND. (line 20)
  44748. * gimple_cond_false_label: GIMPLE_COND. (line 59)
  44749. * gimple_cond_lhs: GIMPLE_COND. (line 29)
  44750. * gimple_cond_make_false: GIMPLE_COND. (line 63)
  44751. * gimple_cond_make_true: GIMPLE_COND. (line 66)
  44752. * gimple_cond_rhs: GIMPLE_COND. (line 37)
  44753. * gimple_cond_set_code: GIMPLE_COND. (line 24)
  44754. * gimple_cond_set_false_label: GIMPLE_COND. (line 54)
  44755. * gimple_cond_set_lhs: GIMPLE_COND. (line 33)
  44756. * gimple_cond_set_rhs: GIMPLE_COND. (line 41)
  44757. * gimple_cond_set_true_label: GIMPLE_COND. (line 49)
  44758. * gimple_cond_true_label: GIMPLE_COND. (line 45)
  44759. * gimple_convert: GIMPLE API. (line 50)
  44760. * gimple_copy: Manipulating GIMPLE statements.
  44761. (line 146)
  44762. * GIMPLE_DEBUG: GIMPLE_DEBUG. (line 6)
  44763. * GIMPLE_DEBUG_BEGIN_STMT: GIMPLE_DEBUG. (line 6)
  44764. * gimple_debug_begin_stmt_p: Logical Operators. (line 169)
  44765. * GIMPLE_DEBUG_BIND: GIMPLE_DEBUG. (line 6)
  44766. * gimple_debug_bind_get_value: GIMPLE_DEBUG. (line 46)
  44767. * gimple_debug_bind_get_value_ptr: GIMPLE_DEBUG. (line 50)
  44768. * gimple_debug_bind_get_var: GIMPLE_DEBUG. (line 43)
  44769. * gimple_debug_bind_has_value_p: GIMPLE_DEBUG. (line 68)
  44770. * gimple_debug_bind_p: Logical Operators. (line 162)
  44771. * gimple_debug_bind_reset_value: GIMPLE_DEBUG. (line 64)
  44772. * gimple_debug_bind_set_value: GIMPLE_DEBUG. (line 59)
  44773. * gimple_debug_bind_set_var: GIMPLE_DEBUG. (line 55)
  44774. * GIMPLE_DEBUG_INLINE_ENTRY: GIMPLE_DEBUG. (line 6)
  44775. * gimple_debug_inline_entry_p: Logical Operators. (line 173)
  44776. * gimple_debug_nonbind_marker_p: Logical Operators. (line 177)
  44777. * gimple_def_ops: Manipulating GIMPLE statements.
  44778. (line 93)
  44779. * GIMPLE_EH_FILTER: GIMPLE_EH_FILTER. (line 6)
  44780. * gimple_eh_filter_failure: GIMPLE_EH_FILTER. (line 18)
  44781. * gimple_eh_filter_set_failure: GIMPLE_EH_FILTER. (line 27)
  44782. * gimple_eh_filter_set_types: GIMPLE_EH_FILTER. (line 22)
  44783. * gimple_eh_filter_types: GIMPLE_EH_FILTER. (line 11)
  44784. * gimple_eh_filter_types_ptr: GIMPLE_EH_FILTER. (line 14)
  44785. * gimple_eh_must_not_throw_fndecl: GIMPLE_EH_FILTER. (line 32)
  44786. * gimple_eh_must_not_throw_set_fndecl: GIMPLE_EH_FILTER. (line 36)
  44787. * gimple_expr_code: Manipulating GIMPLE statements.
  44788. (line 30)
  44789. * gimple_expr_type: Manipulating GIMPLE statements.
  44790. (line 23)
  44791. * GIMPLE_GOTO: GIMPLE_GOTO. (line 6)
  44792. * gimple_goto_dest: GIMPLE_GOTO. (line 9)
  44793. * gimple_goto_set_dest: GIMPLE_GOTO. (line 12)
  44794. * gimple_has_mem_ops: Manipulating GIMPLE statements.
  44795. (line 71)
  44796. * gimple_has_ops: Manipulating GIMPLE statements.
  44797. (line 68)
  44798. * gimple_has_volatile_ops: Manipulating GIMPLE statements.
  44799. (line 133)
  44800. * GIMPLE_LABEL: GIMPLE_LABEL. (line 6)
  44801. * gimple_label_label: GIMPLE_LABEL. (line 10)
  44802. * gimple_label_set_label: GIMPLE_LABEL. (line 13)
  44803. * gimple_loaded_syms: Manipulating GIMPLE statements.
  44804. (line 121)
  44805. * gimple_locus: Manipulating GIMPLE statements.
  44806. (line 41)
  44807. * gimple_locus_empty_p: Manipulating GIMPLE statements.
  44808. (line 47)
  44809. * gimple_modified_p: Manipulating GIMPLE statements.
  44810. (line 129)
  44811. * GIMPLE_NOP: GIMPLE_NOP. (line 6)
  44812. * gimple_nop_p: GIMPLE_NOP. (line 9)
  44813. * gimple_no_warning_p: Manipulating GIMPLE statements.
  44814. (line 50)
  44815. * gimple_num_ops: Logical Operators. (line 76)
  44816. * gimple_num_ops <1>: Manipulating GIMPLE statements.
  44817. (line 74)
  44818. * GIMPLE_OMP_ATOMIC_LOAD: GIMPLE_OMP_ATOMIC_LOAD.
  44819. (line 6)
  44820. * gimple_omp_atomic_load_lhs: GIMPLE_OMP_ATOMIC_LOAD.
  44821. (line 16)
  44822. * gimple_omp_atomic_load_rhs: GIMPLE_OMP_ATOMIC_LOAD.
  44823. (line 24)
  44824. * gimple_omp_atomic_load_set_lhs: GIMPLE_OMP_ATOMIC_LOAD.
  44825. (line 12)
  44826. * gimple_omp_atomic_load_set_rhs: GIMPLE_OMP_ATOMIC_LOAD.
  44827. (line 20)
  44828. * GIMPLE_OMP_ATOMIC_STORE: GIMPLE_OMP_ATOMIC_STORE.
  44829. (line 6)
  44830. * gimple_omp_atomic_store_set_val: GIMPLE_OMP_ATOMIC_STORE.
  44831. (line 11)
  44832. * gimple_omp_atomic_store_val: GIMPLE_OMP_ATOMIC_STORE.
  44833. (line 15)
  44834. * gimple_omp_body: GIMPLE_OMP_PARALLEL.
  44835. (line 23)
  44836. * GIMPLE_OMP_CONTINUE: GIMPLE_OMP_CONTINUE.
  44837. (line 6)
  44838. * gimple_omp_continue_control_def: GIMPLE_OMP_CONTINUE.
  44839. (line 12)
  44840. * gimple_omp_continue_control_def_ptr: GIMPLE_OMP_CONTINUE.
  44841. (line 17)
  44842. * gimple_omp_continue_control_use: GIMPLE_OMP_CONTINUE.
  44843. (line 26)
  44844. * gimple_omp_continue_control_use_ptr: GIMPLE_OMP_CONTINUE.
  44845. (line 31)
  44846. * gimple_omp_continue_set_control_def: GIMPLE_OMP_CONTINUE.
  44847. (line 21)
  44848. * gimple_omp_continue_set_control_use: GIMPLE_OMP_CONTINUE.
  44849. (line 35)
  44850. * GIMPLE_OMP_CRITICAL: GIMPLE_OMP_CRITICAL.
  44851. (line 6)
  44852. * gimple_omp_critical_name: GIMPLE_OMP_CRITICAL.
  44853. (line 12)
  44854. * gimple_omp_critical_name_ptr: GIMPLE_OMP_CRITICAL.
  44855. (line 16)
  44856. * gimple_omp_critical_set_name: GIMPLE_OMP_CRITICAL.
  44857. (line 21)
  44858. * GIMPLE_OMP_FOR: GIMPLE_OMP_FOR. (line 6)
  44859. * gimple_omp_for_clauses: GIMPLE_OMP_FOR. (line 17)
  44860. * gimple_omp_for_clauses_ptr: GIMPLE_OMP_FOR. (line 20)
  44861. * gimple_omp_for_cond: GIMPLE_OMP_FOR. (line 80)
  44862. * gimple_omp_for_final: GIMPLE_OMP_FOR. (line 48)
  44863. * gimple_omp_for_final_ptr: GIMPLE_OMP_FOR. (line 51)
  44864. * gimple_omp_for_incr: GIMPLE_OMP_FOR. (line 58)
  44865. * gimple_omp_for_incr_ptr: GIMPLE_OMP_FOR. (line 61)
  44866. * gimple_omp_for_index: GIMPLE_OMP_FOR. (line 28)
  44867. * gimple_omp_for_index_ptr: GIMPLE_OMP_FOR. (line 31)
  44868. * gimple_omp_for_initial: GIMPLE_OMP_FOR. (line 38)
  44869. * gimple_omp_for_initial_ptr: GIMPLE_OMP_FOR. (line 41)
  44870. * gimple_omp_for_pre_body: GIMPLE_OMP_FOR. (line 67)
  44871. * gimple_omp_for_set_clauses: GIMPLE_OMP_FOR. (line 23)
  44872. * gimple_omp_for_set_cond: GIMPLE_OMP_FOR. (line 76)
  44873. * gimple_omp_for_set_final: GIMPLE_OMP_FOR. (line 54)
  44874. * gimple_omp_for_set_incr: GIMPLE_OMP_FOR. (line 64)
  44875. * gimple_omp_for_set_index: GIMPLE_OMP_FOR. (line 34)
  44876. * gimple_omp_for_set_initial: GIMPLE_OMP_FOR. (line 44)
  44877. * gimple_omp_for_set_pre_body: GIMPLE_OMP_FOR. (line 71)
  44878. * GIMPLE_OMP_MASTER: GIMPLE_OMP_MASTER. (line 6)
  44879. * GIMPLE_OMP_ORDERED: GIMPLE_OMP_ORDERED. (line 6)
  44880. * GIMPLE_OMP_PARALLEL: GIMPLE_OMP_PARALLEL.
  44881. (line 6)
  44882. * gimple_omp_parallel_child_fn: GIMPLE_OMP_PARALLEL.
  44883. (line 42)
  44884. * gimple_omp_parallel_child_fn_ptr: GIMPLE_OMP_PARALLEL.
  44885. (line 47)
  44886. * gimple_omp_parallel_clauses: GIMPLE_OMP_PARALLEL.
  44887. (line 30)
  44888. * gimple_omp_parallel_clauses_ptr: GIMPLE_OMP_PARALLEL.
  44889. (line 33)
  44890. * gimple_omp_parallel_combined_p: GIMPLE_OMP_PARALLEL.
  44891. (line 15)
  44892. * gimple_omp_parallel_data_arg: GIMPLE_OMP_PARALLEL.
  44893. (line 56)
  44894. * gimple_omp_parallel_data_arg_ptr: GIMPLE_OMP_PARALLEL.
  44895. (line 61)
  44896. * gimple_omp_parallel_set_child_fn: GIMPLE_OMP_PARALLEL.
  44897. (line 52)
  44898. * gimple_omp_parallel_set_clauses: GIMPLE_OMP_PARALLEL.
  44899. (line 37)
  44900. * gimple_omp_parallel_set_combined_p: GIMPLE_OMP_PARALLEL.
  44901. (line 19)
  44902. * gimple_omp_parallel_set_data_arg: GIMPLE_OMP_PARALLEL.
  44903. (line 65)
  44904. * GIMPLE_OMP_RETURN: GIMPLE_OMP_RETURN. (line 6)
  44905. * gimple_omp_return_nowait_p: GIMPLE_OMP_RETURN. (line 13)
  44906. * gimple_omp_return_set_nowait: GIMPLE_OMP_RETURN. (line 10)
  44907. * GIMPLE_OMP_SECTION: GIMPLE_OMP_SECTION. (line 6)
  44908. * GIMPLE_OMP_SECTIONS: GIMPLE_OMP_SECTIONS.
  44909. (line 6)
  44910. * gimple_omp_sections_clauses: GIMPLE_OMP_SECTIONS.
  44911. (line 29)
  44912. * gimple_omp_sections_clauses_ptr: GIMPLE_OMP_SECTIONS.
  44913. (line 32)
  44914. * gimple_omp_sections_control: GIMPLE_OMP_SECTIONS.
  44915. (line 16)
  44916. * gimple_omp_sections_control_ptr: GIMPLE_OMP_SECTIONS.
  44917. (line 20)
  44918. * gimple_omp_sections_set_clauses: GIMPLE_OMP_SECTIONS.
  44919. (line 35)
  44920. * gimple_omp_sections_set_control: GIMPLE_OMP_SECTIONS.
  44921. (line 24)
  44922. * gimple_omp_section_last_p: GIMPLE_OMP_SECTION. (line 11)
  44923. * gimple_omp_section_set_last: GIMPLE_OMP_SECTION. (line 15)
  44924. * gimple_omp_set_body: GIMPLE_OMP_PARALLEL.
  44925. (line 26)
  44926. * GIMPLE_OMP_SINGLE: GIMPLE_OMP_SINGLE. (line 6)
  44927. * gimple_omp_single_clauses: GIMPLE_OMP_SINGLE. (line 13)
  44928. * gimple_omp_single_clauses_ptr: GIMPLE_OMP_SINGLE. (line 16)
  44929. * gimple_omp_single_set_clauses: GIMPLE_OMP_SINGLE. (line 19)
  44930. * gimple_op: Logical Operators. (line 79)
  44931. * gimple_op <1>: Manipulating GIMPLE statements.
  44932. (line 80)
  44933. * gimple_ops: Logical Operators. (line 82)
  44934. * gimple_ops <1>: Manipulating GIMPLE statements.
  44935. (line 77)
  44936. * gimple_op_ptr: Manipulating GIMPLE statements.
  44937. (line 83)
  44938. * GIMPLE_PHI: GIMPLE_PHI. (line 6)
  44939. * gimple_phi_arg: GIMPLE_PHI. (line 24)
  44940. * gimple_phi_arg <1>: SSA. (line 62)
  44941. * gimple_phi_arg_def: SSA. (line 68)
  44942. * gimple_phi_arg_edge: SSA. (line 65)
  44943. * gimple_phi_capacity: GIMPLE_PHI. (line 6)
  44944. * gimple_phi_num_args: GIMPLE_PHI. (line 10)
  44945. * gimple_phi_num_args <1>: SSA. (line 58)
  44946. * gimple_phi_result: GIMPLE_PHI. (line 15)
  44947. * gimple_phi_result <1>: SSA. (line 55)
  44948. * gimple_phi_result_ptr: GIMPLE_PHI. (line 18)
  44949. * gimple_phi_set_arg: GIMPLE_PHI. (line 28)
  44950. * gimple_phi_set_result: GIMPLE_PHI. (line 21)
  44951. * gimple_plf: Manipulating GIMPLE statements.
  44952. (line 64)
  44953. * GIMPLE_RESX: GIMPLE_RESX. (line 6)
  44954. * gimple_resx_region: GIMPLE_RESX. (line 12)
  44955. * gimple_resx_set_region: GIMPLE_RESX. (line 15)
  44956. * GIMPLE_RETURN: GIMPLE_RETURN. (line 6)
  44957. * gimple_return_retval: GIMPLE_RETURN. (line 9)
  44958. * gimple_return_set_retval: GIMPLE_RETURN. (line 12)
  44959. * gimple_seq_add_seq: GIMPLE sequences. (line 30)
  44960. * gimple_seq_add_stmt: GIMPLE sequences. (line 24)
  44961. * gimple_seq_alloc: GIMPLE sequences. (line 61)
  44962. * gimple_seq_copy: GIMPLE sequences. (line 65)
  44963. * gimple_seq_deep_copy: GIMPLE sequences. (line 36)
  44964. * gimple_seq_empty_p: GIMPLE sequences. (line 69)
  44965. * gimple_seq_first: GIMPLE sequences. (line 43)
  44966. * gimple_seq_init: GIMPLE sequences. (line 58)
  44967. * gimple_seq_last: GIMPLE sequences. (line 46)
  44968. * gimple_seq_reverse: GIMPLE sequences. (line 39)
  44969. * gimple_seq_set_first: GIMPLE sequences. (line 53)
  44970. * gimple_seq_set_last: GIMPLE sequences. (line 49)
  44971. * gimple_seq_singleton_p: GIMPLE sequences. (line 78)
  44972. * gimple_set_block: Manipulating GIMPLE statements.
  44973. (line 38)
  44974. * gimple_set_def_ops: Manipulating GIMPLE statements.
  44975. (line 96)
  44976. * gimple_set_has_volatile_ops: Manipulating GIMPLE statements.
  44977. (line 136)
  44978. * gimple_set_locus: Manipulating GIMPLE statements.
  44979. (line 44)
  44980. * gimple_set_op: Manipulating GIMPLE statements.
  44981. (line 86)
  44982. * gimple_set_plf: Manipulating GIMPLE statements.
  44983. (line 60)
  44984. * gimple_set_use_ops: Manipulating GIMPLE statements.
  44985. (line 103)
  44986. * gimple_set_vdef_ops: Manipulating GIMPLE statements.
  44987. (line 117)
  44988. * gimple_set_visited: Manipulating GIMPLE statements.
  44989. (line 53)
  44990. * gimple_set_vuse_ops: Manipulating GIMPLE statements.
  44991. (line 110)
  44992. * gimple_simplify: GIMPLE API. (line 6)
  44993. * gimple_simplify <1>: GIMPLE API. (line 8)
  44994. * gimple_simplify <2>: GIMPLE API. (line 10)
  44995. * gimple_simplify <3>: GIMPLE API. (line 12)
  44996. * gimple_simplify <4>: GIMPLE API. (line 14)
  44997. * gimple_simplify <5>: GIMPLE API. (line 16)
  44998. * gimple_statement_with_ops: Tuple representation.
  44999. (line 96)
  45000. * gimple_stored_syms: Manipulating GIMPLE statements.
  45001. (line 125)
  45002. * GIMPLE_SWITCH: GIMPLE_SWITCH. (line 6)
  45003. * gimple_switch_default_label: GIMPLE_SWITCH. (line 41)
  45004. * gimple_switch_index: GIMPLE_SWITCH. (line 24)
  45005. * gimple_switch_label: GIMPLE_SWITCH. (line 31)
  45006. * gimple_switch_num_labels: GIMPLE_SWITCH. (line 14)
  45007. * gimple_switch_set_default_label: GIMPLE_SWITCH. (line 45)
  45008. * gimple_switch_set_index: GIMPLE_SWITCH. (line 27)
  45009. * gimple_switch_set_label: GIMPLE_SWITCH. (line 36)
  45010. * gimple_switch_set_num_labels: GIMPLE_SWITCH. (line 19)
  45011. * GIMPLE_TRY: GIMPLE_TRY. (line 6)
  45012. * gimple_try_catch_is_cleanup: GIMPLE_TRY. (line 19)
  45013. * gimple_try_cleanup: GIMPLE_TRY. (line 26)
  45014. * gimple_try_eval: GIMPLE_TRY. (line 22)
  45015. * gimple_try_kind: GIMPLE_TRY. (line 15)
  45016. * gimple_try_set_catch_is_cleanup: GIMPLE_TRY. (line 30)
  45017. * gimple_try_set_cleanup: GIMPLE_TRY. (line 38)
  45018. * gimple_try_set_eval: GIMPLE_TRY. (line 34)
  45019. * gimple_use_ops: Manipulating GIMPLE statements.
  45020. (line 100)
  45021. * gimple_vdef_ops: Manipulating GIMPLE statements.
  45022. (line 114)
  45023. * gimple_visited_p: Manipulating GIMPLE statements.
  45024. (line 57)
  45025. * gimple_vuse_ops: Manipulating GIMPLE statements.
  45026. (line 107)
  45027. * gimple_wce_cleanup: GIMPLE_WITH_CLEANUP_EXPR.
  45028. (line 10)
  45029. * gimple_wce_cleanup_eh_only: GIMPLE_WITH_CLEANUP_EXPR.
  45030. (line 17)
  45031. * gimple_wce_set_cleanup: GIMPLE_WITH_CLEANUP_EXPR.
  45032. (line 13)
  45033. * gimple_wce_set_cleanup_eh_only: GIMPLE_WITH_CLEANUP_EXPR.
  45034. (line 20)
  45035. * GIMPLE_WITH_CLEANUP_EXPR: GIMPLE_WITH_CLEANUP_EXPR.
  45036. (line 6)
  45037. * gimplification: Parsing pass. (line 13)
  45038. * gimplification <1>: Gimplification pass.
  45039. (line 6)
  45040. * gimplifier: Parsing pass. (line 13)
  45041. * gimplify_assign: GIMPLE_ASSIGN. (line 41)
  45042. * gimplify_expr: Gimplification pass.
  45043. (line 18)
  45044. * gimplify_function_tree: Gimplification pass.
  45045. (line 18)
  45046. * GLOBAL_INIT_PRIORITY: Functions for C++. (line 141)
  45047. * global_regs: Register Basics. (line 102)
  45048. * GO_IF_LEGITIMATE_ADDRESS: Addressing Modes. (line 90)
  45049. * greater than: Comparisons. (line 60)
  45050. * greater than <1>: Comparisons. (line 64)
  45051. * greater than <2>: Comparisons. (line 72)
  45052. * gsi_after_labels: Sequence iterators. (line 74)
  45053. * gsi_bb: Sequence iterators. (line 82)
  45054. * gsi_commit_edge_inserts: Sequence iterators. (line 193)
  45055. * gsi_commit_edge_inserts <1>: Maintaining the CFG.
  45056. (line 104)
  45057. * gsi_commit_one_edge_insert: Sequence iterators. (line 188)
  45058. * gsi_end_p: Sequence iterators. (line 59)
  45059. * gsi_end_p <1>: Maintaining the CFG.
  45060. (line 48)
  45061. * gsi_for_stmt: Sequence iterators. (line 156)
  45062. * gsi_insert_after: Sequence iterators. (line 145)
  45063. * gsi_insert_after <1>: Maintaining the CFG.
  45064. (line 60)
  45065. * gsi_insert_before: Sequence iterators. (line 134)
  45066. * gsi_insert_before <1>: Maintaining the CFG.
  45067. (line 66)
  45068. * gsi_insert_on_edge: Sequence iterators. (line 173)
  45069. * gsi_insert_on_edge <1>: Maintaining the CFG.
  45070. (line 104)
  45071. * gsi_insert_on_edge_immediate: Sequence iterators. (line 183)
  45072. * gsi_insert_seq_after: Sequence iterators. (line 152)
  45073. * gsi_insert_seq_before: Sequence iterators. (line 141)
  45074. * gsi_insert_seq_on_edge: Sequence iterators. (line 177)
  45075. * gsi_last: Sequence iterators. (line 49)
  45076. * gsi_last <1>: Maintaining the CFG.
  45077. (line 44)
  45078. * gsi_last_bb: Sequence iterators. (line 55)
  45079. * gsi_link_after: Sequence iterators. (line 113)
  45080. * gsi_link_before: Sequence iterators. (line 103)
  45081. * gsi_link_seq_after: Sequence iterators. (line 108)
  45082. * gsi_link_seq_before: Sequence iterators. (line 97)
  45083. * gsi_move_after: Sequence iterators. (line 159)
  45084. * gsi_move_before: Sequence iterators. (line 164)
  45085. * gsi_move_to_bb_end: Sequence iterators. (line 169)
  45086. * gsi_next: Sequence iterators. (line 65)
  45087. * gsi_next <1>: Maintaining the CFG.
  45088. (line 52)
  45089. * gsi_one_before_end_p: Sequence iterators. (line 62)
  45090. * gsi_prev: Sequence iterators. (line 68)
  45091. * gsi_prev <1>: Maintaining the CFG.
  45092. (line 56)
  45093. * gsi_remove: Sequence iterators. (line 88)
  45094. * gsi_remove <1>: Maintaining the CFG.
  45095. (line 72)
  45096. * gsi_replace: Sequence iterators. (line 128)
  45097. * gsi_seq: Sequence iterators. (line 85)
  45098. * gsi_split_seq_after: Sequence iterators. (line 118)
  45099. * gsi_split_seq_before: Sequence iterators. (line 123)
  45100. * gsi_start: Sequence iterators. (line 39)
  45101. * gsi_start <1>: Maintaining the CFG.
  45102. (line 40)
  45103. * gsi_start_bb: Sequence iterators. (line 45)
  45104. * gsi_stmt: Sequence iterators. (line 71)
  45105. * gsi_stmt_ptr: Sequence iterators. (line 79)
  45106. * gt: Comparisons. (line 60)
  45107. * gt and attributes: Expressions. (line 83)
  45108. * gtu: Comparisons. (line 64)
  45109. * gtu and attributes: Expressions. (line 83)
  45110. * GTY: Type Information. (line 6)
  45111. * GT_EXPR: Unary and Binary Expressions.
  45112. (line 6)
  45113. * guidelines for diagnostics: Guidelines for Diagnostics.
  45114. (line 6)
  45115. * guidelines for options: Guidelines for Options.
  45116. (line 6)
  45117. * guidelines, user experience: User Experience Guidelines.
  45118. (line 6)
  45119. * H in constraint: Simple Constraints. (line 96)
  45120. * HAmode: Machine Modes. (line 146)
  45121. * HANDLER: Statements for C and C++.
  45122. (line 6)
  45123. * HANDLER_BODY: Statements for C and C++.
  45124. (line 6)
  45125. * HANDLER_PARMS: Statements for C and C++.
  45126. (line 6)
  45127. * HANDLE_PRAGMA_PACK_WITH_EXPANSION: Misc. (line 477)
  45128. * hard registers: Regs and Memory. (line 9)
  45129. * HARD_FRAME_POINTER_IS_ARG_POINTER: Frame Registers. (line 57)
  45130. * HARD_FRAME_POINTER_IS_FRAME_POINTER: Frame Registers. (line 50)
  45131. * HARD_FRAME_POINTER_REGNUM: Frame Registers. (line 19)
  45132. * HARD_REGNO_CALLER_SAVE_MODE: Caller Saves. (line 10)
  45133. * HARD_REGNO_NREGS_HAS_PADDING: Values in Registers.
  45134. (line 21)
  45135. * HARD_REGNO_NREGS_WITH_PADDING: Values in Registers.
  45136. (line 39)
  45137. * HARD_REGNO_RENAME_OK: Values in Registers.
  45138. (line 113)
  45139. * HAS_INIT_SECTION: Macros for Initialization.
  45140. (line 18)
  45141. * HAS_LONG_COND_BRANCH: Misc. (line 8)
  45142. * HAS_LONG_UNCOND_BRANCH: Misc. (line 17)
  45143. * HAVE_DOS_BASED_FILE_SYSTEM: Filesystem. (line 11)
  45144. * HAVE_POST_DECREMENT: Addressing Modes. (line 11)
  45145. * HAVE_POST_INCREMENT: Addressing Modes. (line 10)
  45146. * HAVE_POST_MODIFY_DISP: Addressing Modes. (line 17)
  45147. * HAVE_POST_MODIFY_REG: Addressing Modes. (line 23)
  45148. * HAVE_PRE_DECREMENT: Addressing Modes. (line 9)
  45149. * HAVE_PRE_INCREMENT: Addressing Modes. (line 8)
  45150. * HAVE_PRE_MODIFY_DISP: Addressing Modes. (line 16)
  45151. * HAVE_PRE_MODIFY_REG: Addressing Modes. (line 22)
  45152. * HCmode: Machine Modes. (line 199)
  45153. * HFmode: Machine Modes. (line 61)
  45154. * high: Constants. (line 234)
  45155. * HImode: Machine Modes. (line 29)
  45156. * HImode, in insn: Insns. (line 291)
  45157. * HONOR_REG_ALLOC_ORDER: Allocation Order. (line 36)
  45158. * host configuration: Host Config. (line 6)
  45159. * host functions: Host Common. (line 6)
  45160. * host hooks: Host Common. (line 6)
  45161. * host makefile fragment: Host Fragment. (line 6)
  45162. * HOST_BIT_BUCKET: Filesystem. (line 51)
  45163. * HOST_EXECUTABLE_SUFFIX: Filesystem. (line 45)
  45164. * HOST_HOOKS_EXTRA_SIGNALS: Host Common. (line 11)
  45165. * HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY: Host Common. (line 43)
  45166. * HOST_HOOKS_GT_PCH_GET_ADDRESS: Host Common. (line 15)
  45167. * HOST_HOOKS_GT_PCH_USE_ADDRESS: Host Common. (line 24)
  45168. * HOST_LACKS_INODE_NUMBERS: Filesystem. (line 89)
  45169. * HOST_LONG_FORMAT: Host Misc. (line 45)
  45170. * HOST_LONG_LONG_FORMAT: Host Misc. (line 41)
  45171. * HOST_OBJECT_SUFFIX: Filesystem. (line 40)
  45172. * HOST_PTR_PRINTF: Host Misc. (line 49)
  45173. * HOT_TEXT_SECTION_NAME: Sections. (line 42)
  45174. * HQmode: Machine Modes. (line 110)
  45175. * i in constraint: Simple Constraints. (line 68)
  45176. * I in constraint: Simple Constraints. (line 79)
  45177. * identifier: Identifiers. (line 6)
  45178. * IDENTIFIER_LENGTH: Identifiers. (line 22)
  45179. * IDENTIFIER_NODE: Identifiers. (line 6)
  45180. * IDENTIFIER_OPNAME_P: Identifiers. (line 27)
  45181. * IDENTIFIER_POINTER: Identifiers. (line 17)
  45182. * IDENTIFIER_TYPENAME_P: Identifiers. (line 33)
  45183. * IEEE 754-2008: Decimal float library routines.
  45184. (line 6)
  45185. * IFCVT_MACHDEP_INIT: Misc. (line 606)
  45186. * IFCVT_MODIFY_CANCEL: Misc. (line 600)
  45187. * IFCVT_MODIFY_FINAL: Misc. (line 594)
  45188. * IFCVT_MODIFY_INSN: Misc. (line 588)
  45189. * IFCVT_MODIFY_MULTIPLE_TESTS: Misc. (line 580)
  45190. * IFCVT_MODIFY_TESTS: Misc. (line 570)
  45191. * IF_COND: Statements for C and C++.
  45192. (line 6)
  45193. * IF_STMT: Statements for C and C++.
  45194. (line 6)
  45195. * if_then_else: Comparisons. (line 80)
  45196. * if_then_else and attributes: Expressions. (line 32)
  45197. * if_then_else usage: Side Effects. (line 56)
  45198. * IMAGPART_EXPR: Unary and Binary Expressions.
  45199. (line 6)
  45200. * Immediate Uses: SSA Operands. (line 258)
  45201. * immediate_operand: Machine-Independent Predicates.
  45202. (line 10)
  45203. * IMMEDIATE_PREFIX: Instruction Output. (line 153)
  45204. * include: Including Patterns. (line 6)
  45205. * INCLUDE_DEFAULTS: Driver. (line 331)
  45206. * inclusive-or, bitwise: Arithmetic. (line 163)
  45207. * INCOMING_FRAME_SP_OFFSET: Frame Layout. (line 188)
  45208. * INCOMING_REGNO: Register Basics. (line 129)
  45209. * INCOMING_REG_PARM_STACK_SPACE: Stack Arguments. (line 73)
  45210. * INCOMING_RETURN_ADDR_RTX: Frame Layout. (line 133)
  45211. * INCOMING_STACK_BOUNDARY: Storage Layout. (line 171)
  45212. * INDEX_REG_CLASS: Register Classes. (line 140)
  45213. * indirect_jump instruction pattern: Standard Names. (line 2025)
  45214. * indirect_operand: Machine-Independent Predicates.
  45215. (line 70)
  45216. * INDIRECT_REF: Storage References. (line 6)
  45217. * initialization routines: Initialization. (line 6)
  45218. * INITIAL_ELIMINATION_OFFSET: Elimination. (line 68)
  45219. * INITIAL_FRAME_ADDRESS_RTX: Frame Layout. (line 75)
  45220. * INIT_ARRAY_SECTION_ASM_OP: Sections. (line 106)
  45221. * INIT_CUMULATIVE_ARGS: Register Arguments. (line 158)
  45222. * INIT_CUMULATIVE_INCOMING_ARGS: Register Arguments. (line 186)
  45223. * INIT_CUMULATIVE_LIBCALL_ARGS: Register Arguments. (line 180)
  45224. * INIT_ENVIRONMENT: Driver. (line 309)
  45225. * INIT_EXPANDERS: Per-Function Data. (line 36)
  45226. * INIT_EXPR: Unary and Binary Expressions.
  45227. (line 6)
  45228. * init_machine_status: Per-Function Data. (line 42)
  45229. * init_one_libfunc: Library Calls. (line 15)
  45230. * INIT_SECTION_ASM_OP: Sections. (line 90)
  45231. * INIT_SECTION_ASM_OP <1>: Macros for Initialization.
  45232. (line 9)
  45233. * inlining: Target Attributes. (line 103)
  45234. * insert_insn_on_edge: Maintaining the CFG.
  45235. (line 104)
  45236. * insn: Insns. (line 63)
  45237. * insn and /f: Flags. (line 135)
  45238. * insn and /j: Flags. (line 171)
  45239. * insn and /s: Flags. (line 38)
  45240. * insn and /s <1>: Flags. (line 162)
  45241. * insn and /u: Flags. (line 28)
  45242. * insn and /v: Flags. (line 33)
  45243. * insn attributes: Insn Attributes. (line 6)
  45244. * insn canonicalization: Insn Canonicalizations.
  45245. (line 6)
  45246. * insn includes: Including Patterns. (line 6)
  45247. * insn lengths, computing: Insn Lengths. (line 6)
  45248. * insn notes, notes: Basic Blocks. (line 52)
  45249. * insn splitting: Insn Splitting. (line 6)
  45250. * insn-attr.h: Defining Attributes.
  45251. (line 34)
  45252. * insns: Insns. (line 6)
  45253. * insns, generating: RTL Template. (line 6)
  45254. * insns, recognizing: RTL Template. (line 6)
  45255. * INSN_ANNULLED_BRANCH_P: Flags. (line 28)
  45256. * INSN_CODE: Insns. (line 318)
  45257. * INSN_DELETED_P: Flags. (line 33)
  45258. * INSN_FROM_TARGET_P: Flags. (line 38)
  45259. * insn_list: Insns. (line 568)
  45260. * INSN_REFERENCES_ARE_DELAYED: Misc. (line 504)
  45261. * INSN_SETS_ARE_DELAYED: Misc. (line 493)
  45262. * INSN_UID: Insns. (line 23)
  45263. * INSN_VAR_LOCATION: Insns. (line 247)
  45264. * instruction attributes: Insn Attributes. (line 6)
  45265. * instruction latency time: Processor pipeline description.
  45266. (line 6)
  45267. * instruction latency time <1>: Processor pipeline description.
  45268. (line 105)
  45269. * instruction latency time <2>: Processor pipeline description.
  45270. (line 196)
  45271. * instruction patterns: Patterns. (line 6)
  45272. * instruction splitting: Insn Splitting. (line 6)
  45273. * instructions, RTL SSA: RTL SSA Instructions.
  45274. (line 6)
  45275. * insv instruction pattern: Standard Names. (line 1761)
  45276. * insvM instruction pattern: Standard Names. (line 1713)
  45277. * insvmisalignM instruction pattern: Standard Names. (line 1723)
  45278. * int iterators in .md files: Int Iterators. (line 6)
  45279. * INT16_TYPE: Type Layout. (line 210)
  45280. * INT32_TYPE: Type Layout. (line 211)
  45281. * INT64_TYPE: Type Layout. (line 212)
  45282. * INT8_TYPE: Type Layout. (line 209)
  45283. * INTEGER_CST: Constant expressions.
  45284. (line 6)
  45285. * INTEGER_TYPE: Types. (line 6)
  45286. * inter-procedural optimization passes: IPA passes. (line 6)
  45287. * Interdependence of Patterns: Dependent Patterns. (line 6)
  45288. * interfacing to GCC output: Interface. (line 6)
  45289. * interlock delays: Processor pipeline description.
  45290. (line 6)
  45291. * intermediate representation lowering: Parsing pass. (line 13)
  45292. * INTMAX_TYPE: Type Layout. (line 186)
  45293. * INTPTR_TYPE: Type Layout. (line 233)
  45294. * introduction: Top. (line 6)
  45295. * INT_FAST16_TYPE: Type Layout. (line 226)
  45296. * INT_FAST32_TYPE: Type Layout. (line 227)
  45297. * INT_FAST64_TYPE: Type Layout. (line 228)
  45298. * INT_FAST8_TYPE: Type Layout. (line 225)
  45299. * INT_LEAST16_TYPE: Type Layout. (line 218)
  45300. * INT_LEAST32_TYPE: Type Layout. (line 219)
  45301. * INT_LEAST64_TYPE: Type Layout. (line 220)
  45302. * INT_LEAST8_TYPE: Type Layout. (line 217)
  45303. * INT_TYPE_SIZE: Type Layout. (line 11)
  45304. * INVOKE__main: Macros for Initialization.
  45305. (line 50)
  45306. * in_struct: Flags. (line 254)
  45307. * in_struct, in code_label and note: Flags. (line 48)
  45308. * in_struct, in insn and jump_insn and call_insn: Flags. (line 38)
  45309. * in_struct, in insn, call_insn, jump_insn and jump_table_data: Flags.
  45310. (line 162)
  45311. * in_struct, in subreg: Flags. (line 201)
  45312. * ior: Arithmetic. (line 163)
  45313. * ior and attributes: Expressions. (line 50)
  45314. * ior, canonicalization of: Insn Canonicalizations.
  45315. (line 67)
  45316. * iorM3 instruction pattern: Standard Names. (line 466)
  45317. * IPA passes: IPA passes. (line 6)
  45318. * IRA_HARD_REGNO_ADD_COST_MULTIPLIER: Allocation Order. (line 44)
  45319. * is_a: Machine Modes. (line 352)
  45320. * IS_ASM_LOGICAL_LINE_SEPARATOR: Data Output. (line 129)
  45321. * is_gimple_addressable: Logical Operators. (line 113)
  45322. * is_gimple_asm_val: Logical Operators. (line 117)
  45323. * is_gimple_assign: Logical Operators. (line 149)
  45324. * is_gimple_call: Logical Operators. (line 152)
  45325. * is_gimple_call_addr: Logical Operators. (line 120)
  45326. * is_gimple_constant: Logical Operators. (line 128)
  45327. * is_gimple_debug: Logical Operators. (line 155)
  45328. * is_gimple_ip_invariant: Logical Operators. (line 137)
  45329. * is_gimple_ip_invariant_address: Logical Operators. (line 142)
  45330. * is_gimple_mem_ref_addr: Logical Operators. (line 124)
  45331. * is_gimple_min_invariant: Logical Operators. (line 131)
  45332. * is_gimple_omp: Logical Operators. (line 166)
  45333. * is_gimple_val: Logical Operators. (line 107)
  45334. * iterators in .md files: Iterators. (line 6)
  45335. * IV analysis on GIMPLE: Scalar evolutions. (line 6)
  45336. * IV analysis on RTL: loop-iv. (line 6)
  45337. * JMP_BUF_SIZE: Exception Region Output.
  45338. (line 83)
  45339. * jump: Flags. (line 295)
  45340. * jump instruction pattern: Standard Names. (line 1903)
  45341. * jump instruction patterns: Jump Patterns. (line 6)
  45342. * jump instructions and set: Side Effects. (line 56)
  45343. * jump, in call_insn: Flags. (line 175)
  45344. * jump, in insn: Flags. (line 171)
  45345. * jump, in mem: Flags. (line 59)
  45346. * Jumps: Jumps. (line 6)
  45347. * JUMP_ALIGN: Alignment Output. (line 8)
  45348. * jump_insn: Insns. (line 73)
  45349. * jump_insn and /f: Flags. (line 135)
  45350. * jump_insn and /j: Flags. (line 10)
  45351. * jump_insn and /s: Flags. (line 38)
  45352. * jump_insn and /s <1>: Flags. (line 162)
  45353. * jump_insn and /u: Flags. (line 28)
  45354. * jump_insn and /v: Flags. (line 33)
  45355. * JUMP_LABEL: Insns. (line 80)
  45356. * JUMP_TABLES_IN_TEXT_SECTION: Sections. (line 155)
  45357. * jump_table_data: Insns. (line 166)
  45358. * jump_table_data and /s: Flags. (line 162)
  45359. * jump_table_data and /v: Flags. (line 33)
  45360. * LABEL_ALIGN: Alignment Output. (line 42)
  45361. * LABEL_ALIGN_AFTER_BARRIER: Alignment Output. (line 21)
  45362. * LABEL_ALTERNATE_NAME: Edges. (line 180)
  45363. * LABEL_ALT_ENTRY_P: Insns. (line 146)
  45364. * LABEL_DECL: Declarations. (line 6)
  45365. * LABEL_KIND: Insns. (line 146)
  45366. * LABEL_NUSES: Insns. (line 142)
  45367. * LABEL_PRESERVE_P: Flags. (line 48)
  45368. * label_ref: Constants. (line 213)
  45369. * label_ref and /v: Flags. (line 54)
  45370. * label_ref, RTL sharing: Sharing. (line 38)
  45371. * LABEL_REF_NONLOCAL_P: Flags. (line 54)
  45372. * language-dependent trees: Language-dependent trees.
  45373. (line 6)
  45374. * language-independent intermediate representation: Parsing pass.
  45375. (line 13)
  45376. * lang_hooks.gimplify_expr: Gimplification pass.
  45377. (line 18)
  45378. * lang_hooks.parse_file: Parsing pass. (line 6)
  45379. * large return values: Aggregate Return. (line 6)
  45380. * LAST_STACK_REG: Stack Registers. (line 30)
  45381. * LAST_VIRTUAL_REGISTER: Regs and Memory. (line 51)
  45382. * late IPA passes: Late IPA passes. (line 6)
  45383. * lceilMN2: Standard Names. (line 1175)
  45384. * LCSSA: LCSSA. (line 6)
  45385. * LDD_SUFFIX: Macros for Initialization.
  45386. (line 121)
  45387. * ldexpM3 instruction pattern: Standard Names. (line 960)
  45388. * LD_FINI_SWITCH: Macros for Initialization.
  45389. (line 28)
  45390. * LD_INIT_SWITCH: Macros for Initialization.
  45391. (line 24)
  45392. * le: Comparisons. (line 76)
  45393. * le and attributes: Expressions. (line 83)
  45394. * leaf functions: Leaf Functions. (line 6)
  45395. * leaf_function_p: Standard Names. (line 1987)
  45396. * LEAF_REGISTERS: Leaf Functions. (line 23)
  45397. * LEAF_REG_REMAP: Leaf Functions. (line 37)
  45398. * left rotate: Arithmetic. (line 195)
  45399. * left shift: Arithmetic. (line 173)
  45400. * LEGITIMATE_PIC_OPERAND_P: PIC. (line 31)
  45401. * LEGITIMIZE_RELOAD_ADDRESS: Addressing Modes. (line 150)
  45402. * length: GTY Options. (line 47)
  45403. * len_load_M instruction pattern: Standard Names. (line 410)
  45404. * len_store_M instruction pattern: Standard Names. (line 422)
  45405. * less than: Comparisons. (line 68)
  45406. * less than or equal: Comparisons. (line 76)
  45407. * leu: Comparisons. (line 76)
  45408. * leu and attributes: Expressions. (line 83)
  45409. * LE_EXPR: Unary and Binary Expressions.
  45410. (line 6)
  45411. * lfloorMN2: Standard Names. (line 1170)
  45412. * LIB2FUNCS_EXTRA: Target Fragment. (line 11)
  45413. * LIBCALL_VALUE: Scalar Return. (line 56)
  45414. * libgcc.a: Library Calls. (line 6)
  45415. * LIBGCC2_CFLAGS: Target Fragment. (line 8)
  45416. * LIBGCC2_GNU_PREFIX: Type Layout. (line 102)
  45417. * LIBGCC2_UNWIND_ATTRIBUTE: Misc. (line 1052)
  45418. * LIBGCC_SPEC: Driver. (line 115)
  45419. * library subroutine names: Library Calls. (line 6)
  45420. * LIBRARY_PATH_ENV: Misc. (line 548)
  45421. * LIB_SPEC: Driver. (line 107)
  45422. * LIMIT_RELOAD_CLASS: Register Classes. (line 296)
  45423. * LINK_COMMAND_SPEC: Driver. (line 240)
  45424. * LINK_EH_SPEC: Driver. (line 142)
  45425. * LINK_GCC_C_SEQUENCE_SPEC: Driver. (line 232)
  45426. * LINK_LIBGCC_SPECIAL_1: Driver. (line 227)
  45427. * LINK_SPEC: Driver. (line 100)
  45428. * list: Containers. (line 6)
  45429. * Liveness representation: Liveness information.
  45430. (line 6)
  45431. * load address instruction: Simple Constraints. (line 162)
  45432. * LOAD_EXTEND_OP: Misc. (line 80)
  45433. * load_multiple instruction pattern: Standard Names. (line 136)
  45434. * Local Register Allocator (LRA): RTL passes. (line 187)
  45435. * LOCAL_ALIGNMENT: Storage Layout. (line 288)
  45436. * LOCAL_CLASS_P: Classes. (line 70)
  45437. * LOCAL_DECL_ALIGNMENT: Storage Layout. (line 325)
  45438. * LOCAL_INCLUDE_DIR: Driver. (line 316)
  45439. * LOCAL_LABEL_PREFIX: Instruction Output. (line 151)
  45440. * LOCAL_REGNO: Register Basics. (line 143)
  45441. * location information: Guidelines for Diagnostics.
  45442. (line 183)
  45443. * log10M2 instruction pattern: Standard Names. (line 1064)
  45444. * log1pM2 instruction pattern: Standard Names. (line 1054)
  45445. * log2M2 instruction pattern: Standard Names. (line 1071)
  45446. * logbM2 instruction pattern: Standard Names. (line 1078)
  45447. * Logical Operators: Logical Operators. (line 6)
  45448. * logical-and, bitwise: Arithmetic. (line 158)
  45449. * LOGICAL_OP_NON_SHORT_CIRCUIT: Costs. (line 294)
  45450. * logM2 instruction pattern: Standard Names. (line 1047)
  45451. * LOG_LINKS: Insns. (line 337)
  45452. * longjmp and automatic variables: Interface. (line 52)
  45453. * LONG_ACCUM_TYPE_SIZE: Type Layout. (line 92)
  45454. * LONG_DOUBLE_TYPE_SIZE: Type Layout. (line 57)
  45455. * LONG_FRACT_TYPE_SIZE: Type Layout. (line 72)
  45456. * LONG_LONG_ACCUM_TYPE_SIZE: Type Layout. (line 97)
  45457. * LONG_LONG_FRACT_TYPE_SIZE: Type Layout. (line 77)
  45458. * LONG_LONG_TYPE_SIZE: Type Layout. (line 32)
  45459. * LONG_TYPE_SIZE: Type Layout. (line 21)
  45460. * Loop analysis: Loop representation.
  45461. (line 6)
  45462. * Loop manipulation: Loop manipulation. (line 6)
  45463. * Loop querying: Loop querying. (line 6)
  45464. * Loop representation: Loop representation.
  45465. (line 6)
  45466. * Loop-closed SSA form: LCSSA. (line 6)
  45467. * looping instruction patterns: Looping Patterns. (line 6)
  45468. * LOOP_ALIGN: Alignment Output. (line 29)
  45469. * LOOP_EXPR: Unary and Binary Expressions.
  45470. (line 6)
  45471. * lowering, language-dependent intermediate representation: Parsing pass.
  45472. (line 13)
  45473. * lo_sum: Arithmetic. (line 25)
  45474. * lrintMN2: Standard Names. (line 1160)
  45475. * lroundMN2: Standard Names. (line 1165)
  45476. * lshiftrt: Arithmetic. (line 190)
  45477. * lshiftrt and attributes: Expressions. (line 83)
  45478. * LSHIFT_EXPR: Unary and Binary Expressions.
  45479. (line 6)
  45480. * lshrM3 instruction pattern: Standard Names. (line 878)
  45481. * lt: Comparisons. (line 68)
  45482. * lt and attributes: Expressions. (line 83)
  45483. * LTGT_EXPR: Unary and Binary Expressions.
  45484. (line 6)
  45485. * lto: LTO. (line 6)
  45486. * ltrans: LTO. (line 6)
  45487. * ltu: Comparisons. (line 68)
  45488. * LT_EXPR: Unary and Binary Expressions.
  45489. (line 6)
  45490. * m in constraint: Simple Constraints. (line 17)
  45491. * machine attributes: Target Attributes. (line 6)
  45492. * machine description macros: Target Macros. (line 6)
  45493. * machine descriptions: Machine Desc. (line 6)
  45494. * machine mode conversions: Conversions. (line 6)
  45495. * machine mode wrapper classes: Machine Modes. (line 291)
  45496. * machine modes: Machine Modes. (line 6)
  45497. * machine specific constraints: Machine Constraints.
  45498. (line 6)
  45499. * machine-independent predicates: Machine-Independent Predicates.
  45500. (line 6)
  45501. * machine_mode: Machine Modes. (line 6)
  45502. * MACH_DEP_SECTION_ASM_FLAG: Sections. (line 120)
  45503. * macros, target description: Target Macros. (line 6)
  45504. * maddMN4 instruction pattern: Standard Names. (line 799)
  45505. * makefile fragment: Fragments. (line 6)
  45506. * makefile targets: Makefile. (line 6)
  45507. * MAKE_DECL_ONE_ONLY: Label Output. (line 281)
  45508. * make_safe_from: Expander Definitions.
  45509. (line 151)
  45510. * MALLOC_ABI_ALIGNMENT: Storage Layout. (line 190)
  45511. * Manipulating GIMPLE statements: Manipulating GIMPLE statements.
  45512. (line 6)
  45513. * marking roots: GGC Roots. (line 6)
  45514. * maskloadMN instruction pattern: Standard Names. (line 396)
  45515. * maskstoreMN instruction pattern: Standard Names. (line 403)
  45516. * mask_fold_left_plus_M instruction pattern: Standard Names. (line 588)
  45517. * mask_gather_loadMN instruction pattern: Standard Names. (line 249)
  45518. * MASK_RETURN_ADDR: Exception Region Output.
  45519. (line 35)
  45520. * mask_scatter_storeMN instruction pattern: Standard Names. (line 272)
  45521. * Match and Simplify: Match and Simplify. (line 6)
  45522. * matching constraint: Simple Constraints. (line 140)
  45523. * matching operands: Output Template. (line 49)
  45524. * match_dup: RTL Template. (line 73)
  45525. * match_dup <1>: define_peephole2. (line 28)
  45526. * match_dup and attributes: Insn Lengths. (line 16)
  45527. * match_operand: RTL Template. (line 16)
  45528. * match_operand and attributes: Expressions. (line 55)
  45529. * match_operator: RTL Template. (line 95)
  45530. * match_op_dup: RTL Template. (line 163)
  45531. * match_parallel: RTL Template. (line 172)
  45532. * match_par_dup: RTL Template. (line 219)
  45533. * match_scratch: RTL Template. (line 58)
  45534. * match_scratch <1>: define_peephole2. (line 28)
  45535. * match_test and attributes: Expressions. (line 64)
  45536. * math library: Soft float library routines.
  45537. (line 6)
  45538. * math, in RTL: Arithmetic. (line 6)
  45539. * matherr: Library Calls. (line 59)
  45540. * MATH_LIBRARY: Misc. (line 541)
  45541. * maxM3 instruction pattern: Standard Names. (line 527)
  45542. * MAX_BITSIZE_MODE_ANY_INT: Machine Modes. (line 449)
  45543. * MAX_BITSIZE_MODE_ANY_MODE: Machine Modes. (line 455)
  45544. * MAX_BITS_PER_WORD: Storage Layout. (line 54)
  45545. * MAX_CONDITIONAL_EXECUTE: Misc. (line 563)
  45546. * MAX_FIXED_MODE_SIZE: Storage Layout. (line 470)
  45547. * MAX_MOVE_MAX: Misc. (line 127)
  45548. * MAX_OFILE_ALIGNMENT: Storage Layout. (line 228)
  45549. * MAX_REGS_PER_ADDRESS: Addressing Modes. (line 42)
  45550. * MAX_STACK_ALIGNMENT: Storage Layout. (line 222)
  45551. * maybe_undef: GTY Options. (line 141)
  45552. * may_trap_p, tree_could_trap_p: Edges. (line 114)
  45553. * mcount: Profiling. (line 12)
  45554. * MD_EXEC_PREFIX: Driver. (line 271)
  45555. * MD_FALLBACK_FRAME_STATE_FOR: Exception Handling. (line 93)
  45556. * MD_HANDLE_UNWABI: Exception Handling. (line 112)
  45557. * MD_STARTFILE_PREFIX: Driver. (line 299)
  45558. * MD_STARTFILE_PREFIX_1: Driver. (line 304)
  45559. * mem: Regs and Memory. (line 401)
  45560. * mem and /c: Flags. (line 70)
  45561. * mem and /f: Flags. (line 74)
  45562. * mem and /j: Flags. (line 59)
  45563. * mem and /u: Flags. (line 78)
  45564. * mem and /v: Flags. (line 65)
  45565. * mem, RTL sharing: Sharing. (line 43)
  45566. * memory model: Memory model. (line 6)
  45567. * memory reference, nonoffsettable: Simple Constraints. (line 254)
  45568. * memory references in constraints: Simple Constraints. (line 17)
  45569. * memory_barrier instruction pattern: Standard Names. (line 2371)
  45570. * memory_blockage instruction pattern: Standard Names. (line 2362)
  45571. * MEMORY_MOVE_COST: Costs. (line 53)
  45572. * memory_operand: Machine-Independent Predicates.
  45573. (line 57)
  45574. * MEM_ADDR_SPACE: Special Accessors. (line 48)
  45575. * MEM_ALIAS_SET: Special Accessors. (line 9)
  45576. * MEM_ALIGN: Special Accessors. (line 45)
  45577. * MEM_EXPR: Special Accessors. (line 19)
  45578. * MEM_KEEP_ALIAS_SET_P: Flags. (line 59)
  45579. * MEM_NOTRAP_P: Flags. (line 70)
  45580. * MEM_OFFSET: Special Accessors. (line 31)
  45581. * MEM_OFFSET_KNOWN_P: Special Accessors. (line 27)
  45582. * MEM_POINTER: Flags. (line 74)
  45583. * MEM_READONLY_P: Flags. (line 78)
  45584. * MEM_REF: Storage References. (line 6)
  45585. * MEM_SIZE: Special Accessors. (line 39)
  45586. * MEM_SIZE_KNOWN_P: Special Accessors. (line 35)
  45587. * mem_thread_fence instruction pattern: Standard Names. (line 2661)
  45588. * MEM_VOLATILE_P: Flags. (line 65)
  45589. * METHOD_TYPE: Types. (line 6)
  45590. * MINIMUM_ALIGNMENT: Storage Layout. (line 338)
  45591. * MINIMUM_ATOMIC_ALIGNMENT: Storage Layout. (line 198)
  45592. * minM3 instruction pattern: Standard Names. (line 527)
  45593. * minus: Arithmetic. (line 38)
  45594. * minus and attributes: Expressions. (line 83)
  45595. * minus, canonicalization of: Insn Canonicalizations.
  45596. (line 27)
  45597. * MINUS_EXPR: Unary and Binary Expressions.
  45598. (line 6)
  45599. * MIN_UNITS_PER_WORD: Storage Layout. (line 64)
  45600. * MIPS coprocessor-definition macros: MIPS Coprocessors. (line 6)
  45601. * miscellaneous register hooks: Miscellaneous Register Hooks.
  45602. (line 6)
  45603. * mnemonic attribute: Mnemonic Attribute. (line 6)
  45604. * mod: Arithmetic. (line 136)
  45605. * mod and attributes: Expressions. (line 83)
  45606. * mode classes: Machine Modes. (line 226)
  45607. * mode iterators in .md files: Mode Iterators. (line 6)
  45608. * mode switching: Mode Switching. (line 6)
  45609. * MODE_ACCUM: Machine Modes. (line 256)
  45610. * MODE_BASE_REG_CLASS: Register Classes. (line 116)
  45611. * MODE_BASE_REG_REG_CLASS: Register Classes. (line 122)
  45612. * MODE_CC: Machine Modes. (line 271)
  45613. * MODE_CC <1>: MODE_CC Condition Codes.
  45614. (line 6)
  45615. * MODE_CODE_BASE_REG_CLASS: Register Classes. (line 129)
  45616. * MODE_COMPLEX_FLOAT: Machine Modes. (line 267)
  45617. * MODE_COMPLEX_INT: Machine Modes. (line 264)
  45618. * MODE_DECIMAL_FLOAT: Machine Modes. (line 244)
  45619. * MODE_FLOAT: Machine Modes. (line 240)
  45620. * MODE_FRACT: Machine Modes. (line 248)
  45621. * MODE_INT: Machine Modes. (line 232)
  45622. * MODE_OPAQUE: Machine Modes. (line 281)
  45623. * MODE_PARTIAL_INT: Machine Modes. (line 236)
  45624. * MODE_POINTER_BOUNDS: Machine Modes. (line 276)
  45625. * MODE_RANDOM: Machine Modes. (line 286)
  45626. * MODE_UACCUM: Machine Modes. (line 260)
  45627. * MODE_UFRACT: Machine Modes. (line 252)
  45628. * modifiers in constraints: Modifiers. (line 6)
  45629. * MODIFY_EXPR: Unary and Binary Expressions.
  45630. (line 6)
  45631. * modM3 instruction pattern: Standard Names. (line 466)
  45632. * modulo scheduling: RTL passes. (line 123)
  45633. * MOVE_MAX: Misc. (line 122)
  45634. * MOVE_MAX_PIECES: Costs. (line 210)
  45635. * MOVE_RATIO: Costs. (line 149)
  45636. * movM instruction pattern: Standard Names. (line 11)
  45637. * movmemM instruction pattern: Standard Names. (line 1480)
  45638. * movmisalignM instruction pattern: Standard Names. (line 125)
  45639. * movMODEcc instruction pattern: Standard Names. (line 1775)
  45640. * movstr instruction pattern: Standard Names. (line 1516)
  45641. * movstrictM instruction pattern: Standard Names. (line 119)
  45642. * msubMN4 instruction pattern: Standard Names. (line 822)
  45643. * mulhisi3 instruction pattern: Standard Names. (line 775)
  45644. * mulM3 instruction pattern: Standard Names. (line 466)
  45645. * mulqihi3 instruction pattern: Standard Names. (line 779)
  45646. * mulsidi3 instruction pattern: Standard Names. (line 779)
  45647. * mult: Arithmetic. (line 93)
  45648. * mult and attributes: Expressions. (line 83)
  45649. * mult, canonicalization of: Insn Canonicalizations.
  45650. (line 27)
  45651. * mult, canonicalization of <1>: Insn Canonicalizations.
  45652. (line 107)
  45653. * MULTIARCH_DIRNAME: Target Fragment. (line 173)
  45654. * MULTILIB_DEFAULTS: Driver. (line 256)
  45655. * MULTILIB_DIRNAMES: Target Fragment. (line 44)
  45656. * MULTILIB_EXCEPTIONS: Target Fragment. (line 70)
  45657. * MULTILIB_EXTRA_OPTS: Target Fragment. (line 135)
  45658. * MULTILIB_MATCHES: Target Fragment. (line 63)
  45659. * MULTILIB_OPTIONS: Target Fragment. (line 24)
  45660. * MULTILIB_OSDIRNAMES: Target Fragment. (line 142)
  45661. * MULTILIB_REQUIRED: Target Fragment. (line 82)
  45662. * MULTILIB_REUSE: Target Fragment. (line 103)
  45663. * multiple alternative constraints: Multi-Alternative. (line 6)
  45664. * MULTIPLE_SYMBOL_SPACES: Misc. (line 517)
  45665. * multiplication: Arithmetic. (line 93)
  45666. * multiplication with signed saturation: Arithmetic. (line 93)
  45667. * multiplication with unsigned saturation: Arithmetic. (line 93)
  45668. * MULT_EXPR: Unary and Binary Expressions.
  45669. (line 6)
  45670. * MULT_HIGHPART_EXPR: Unary and Binary Expressions.
  45671. (line 6)
  45672. * mulvM4 instruction pattern: Standard Names. (line 482)
  45673. * n in constraint: Simple Constraints. (line 73)
  45674. * name: Identifiers. (line 6)
  45675. * named address spaces: Named Address Spaces.
  45676. (line 6)
  45677. * named patterns and conditions: Patterns. (line 61)
  45678. * names, pattern: Standard Names. (line 6)
  45679. * namespace, scope: Namespaces. (line 6)
  45680. * NAMESPACE_DECL: Declarations. (line 6)
  45681. * NAMESPACE_DECL <1>: Namespaces. (line 6)
  45682. * NATIVE_SYSTEM_HEADER_COMPONENT: Driver. (line 326)
  45683. * ne: Comparisons. (line 56)
  45684. * ne and attributes: Expressions. (line 83)
  45685. * nearbyintM2 instruction pattern: Standard Names. (line 1144)
  45686. * neg: Arithmetic. (line 82)
  45687. * neg and attributes: Expressions. (line 83)
  45688. * neg, canonicalization of: Insn Canonicalizations.
  45689. (line 27)
  45690. * NEGATE_EXPR: Unary and Binary Expressions.
  45691. (line 6)
  45692. * negation: Arithmetic. (line 82)
  45693. * negation with signed saturation: Arithmetic. (line 82)
  45694. * negation with unsigned saturation: Arithmetic. (line 82)
  45695. * negM2 instruction pattern: Standard Names. (line 910)
  45696. * negMODEcc instruction pattern: Standard Names. (line 1844)
  45697. * negvM3 instruction pattern: Standard Names. (line 913)
  45698. * nested functions, support for: Trampolines. (line 6)
  45699. * nested_ptr: GTY Options. (line 149)
  45700. * next_bb, prev_bb, FOR_EACH_BB, FOR_ALL_BB: Basic Blocks. (line 25)
  45701. * NEXT_INSN: Insns. (line 30)
  45702. * NEXT_OBJC_RUNTIME: Library Calls. (line 89)
  45703. * NE_EXPR: Unary and Binary Expressions.
  45704. (line 6)
  45705. * nil: RTL Objects. (line 73)
  45706. * NM_FLAGS: Macros for Initialization.
  45707. (line 110)
  45708. * nondeterministic finite state automaton: Processor pipeline description.
  45709. (line 304)
  45710. * nonimmediate_operand: Machine-Independent Predicates.
  45711. (line 100)
  45712. * nonlocal goto handler: Edges. (line 171)
  45713. * nonlocal_goto instruction pattern: Standard Names. (line 2197)
  45714. * nonlocal_goto_receiver instruction pattern: Standard Names.
  45715. (line 2214)
  45716. * nonmemory_operand: Machine-Independent Predicates.
  45717. (line 96)
  45718. * nonoffsettable memory reference: Simple Constraints. (line 254)
  45719. * NON_LVALUE_EXPR: Unary and Binary Expressions.
  45720. (line 6)
  45721. * nop instruction pattern: Standard Names. (line 2020)
  45722. * NOP_EXPR: Unary and Binary Expressions.
  45723. (line 6)
  45724. * normal predicates: Predicates. (line 31)
  45725. * not: Arithmetic. (line 154)
  45726. * not and attributes: Expressions. (line 50)
  45727. * not equal: Comparisons. (line 56)
  45728. * not, canonicalization of: Insn Canonicalizations.
  45729. (line 27)
  45730. * note: Insns. (line 183)
  45731. * note and /i: Flags. (line 48)
  45732. * note and /v: Flags. (line 33)
  45733. * NOTE_INSN_BASIC_BLOCK: Basic Blocks. (line 50)
  45734. * NOTE_INSN_BASIC_BLOCK <1>: Basic Blocks. (line 52)
  45735. * NOTE_INSN_BEGIN_STMT: Insns. (line 233)
  45736. * NOTE_INSN_BLOCK_BEG: Insns. (line 208)
  45737. * NOTE_INSN_BLOCK_END: Insns. (line 208)
  45738. * NOTE_INSN_DELETED: Insns. (line 198)
  45739. * NOTE_INSN_DELETED_LABEL: Insns. (line 203)
  45740. * NOTE_INSN_EH_REGION_BEG: Insns. (line 214)
  45741. * NOTE_INSN_EH_REGION_END: Insns. (line 214)
  45742. * NOTE_INSN_FUNCTION_BEG: Insns. (line 221)
  45743. * NOTE_INSN_INLINE_ENTRY: Insns. (line 238)
  45744. * NOTE_INSN_VAR_LOCATION: Insns. (line 225)
  45745. * NOTE_LINE_NUMBER: Insns. (line 183)
  45746. * NOTE_SOURCE_FILE: Insns. (line 183)
  45747. * NOTE_VAR_LOCATION: Insns. (line 225)
  45748. * NOTICE_UPDATE_CC: CC0 Condition Codes.
  45749. (line 30)
  45750. * notMODEcc instruction pattern: Standard Names. (line 1851)
  45751. * NO_DBX_BNSYM_ENSYM: DBX Hooks. (line 25)
  45752. * NO_DBX_FUNCTION_END: DBX Hooks. (line 19)
  45753. * NO_DBX_GCC_MARKER: File Names and DBX. (line 27)
  45754. * NO_DBX_MAIN_SOURCE_DIRECTORY: File Names and DBX. (line 22)
  45755. * NO_DOLLAR_IN_LABEL: Label Output. (line 64)
  45756. * NO_DOT_IN_LABEL: Label Output. (line 70)
  45757. * NO_FUNCTION_CSE: Costs. (line 289)
  45758. * NO_PROFILE_COUNTERS: Profiling. (line 27)
  45759. * NO_REGS: Register Classes. (line 17)
  45760. * Number of iterations analysis: Number of iterations.
  45761. (line 6)
  45762. * NUM_MACHINE_MODES: Machine Modes. (line 388)
  45763. * NUM_MODES_FOR_MODE_SWITCHING: Mode Switching. (line 30)
  45764. * NUM_POLY_INT_COEFFS: Overview of poly_int.
  45765. (line 24)
  45766. * N_REG_CLASSES: Register Classes. (line 81)
  45767. * o in constraint: Simple Constraints. (line 23)
  45768. * OACC_CACHE: OpenACC. (line 6)
  45769. * OACC_DATA: OpenACC. (line 6)
  45770. * OACC_DECLARE: OpenACC. (line 6)
  45771. * OACC_ENTER_DATA: OpenACC. (line 6)
  45772. * OACC_EXIT_DATA: OpenACC. (line 6)
  45773. * OACC_HOST_DATA: OpenACC. (line 6)
  45774. * OACC_KERNELS: OpenACC. (line 6)
  45775. * OACC_LOOP: OpenACC. (line 6)
  45776. * OACC_PARALLEL: OpenACC. (line 6)
  45777. * OACC_SERIAL: OpenACC. (line 6)
  45778. * OACC_UPDATE: OpenACC. (line 6)
  45779. * OBJC_GEN_METHOD_LABEL: Label Output. (line 482)
  45780. * OBJC_JBLEN: Misc. (line 1047)
  45781. * OBJECT_FORMAT_COFF: Macros for Initialization.
  45782. (line 96)
  45783. * offsettable address: Simple Constraints. (line 23)
  45784. * OFFSET_TYPE: Types. (line 6)
  45785. * OImode: Machine Modes. (line 51)
  45786. * OMP_ATOMIC: OpenMP. (line 6)
  45787. * OMP_CLAUSE: OpenMP. (line 6)
  45788. * OMP_CONTINUE: OpenMP. (line 6)
  45789. * OMP_CRITICAL: OpenMP. (line 6)
  45790. * OMP_FOR: OpenMP. (line 6)
  45791. * OMP_MASTER: OpenMP. (line 6)
  45792. * OMP_ORDERED: OpenMP. (line 6)
  45793. * OMP_PARALLEL: OpenMP. (line 6)
  45794. * OMP_RETURN: OpenMP. (line 6)
  45795. * OMP_SECTION: OpenMP. (line 6)
  45796. * OMP_SECTIONS: OpenMP. (line 6)
  45797. * OMP_SINGLE: OpenMP. (line 6)
  45798. * one_cmplM2 instruction pattern: Standard Names. (line 1440)
  45799. * OPAQUE_TYPE: Types. (line 6)
  45800. * operand access: Accessors. (line 6)
  45801. * Operand Access Routines: SSA Operands. (line 116)
  45802. * operand constraints: Constraints. (line 6)
  45803. * Operand Iterators: SSA Operands. (line 116)
  45804. * operand predicates: Predicates. (line 6)
  45805. * operand substitution: Output Template. (line 6)
  45806. * Operands: Operands. (line 6)
  45807. * operands: SSA Operands. (line 6)
  45808. * operands <1>: Patterns. (line 67)
  45809. * operator predicates: Predicates. (line 6)
  45810. * optc-gen.awk: Options. (line 6)
  45811. * OPTGROUP_ALL: Optimization groups.
  45812. (line 28)
  45813. * OPTGROUP_INLINE: Optimization groups.
  45814. (line 15)
  45815. * OPTGROUP_IPA: Optimization groups.
  45816. (line 9)
  45817. * OPTGROUP_LOOP: Optimization groups.
  45818. (line 12)
  45819. * OPTGROUP_OMP: Optimization groups.
  45820. (line 18)
  45821. * OPTGROUP_OTHER: Optimization groups.
  45822. (line 24)
  45823. * OPTGROUP_VEC: Optimization groups.
  45824. (line 21)
  45825. * optimization dumps: Optimization info. (line 6)
  45826. * optimization groups: Optimization groups.
  45827. (line 6)
  45828. * optimization info file names: Dump files and streams.
  45829. (line 6)
  45830. * Optimization infrastructure for GIMPLE: Tree SSA. (line 6)
  45831. * OPTIMIZE_MODE_SWITCHING: Mode Switching. (line 8)
  45832. * option specification files: Options. (line 6)
  45833. * optional hardware or system features: Run-time Target. (line 59)
  45834. * options, directory search: Including Patterns. (line 47)
  45835. * options, guidelines for: Guidelines for Options.
  45836. (line 6)
  45837. * OPTION_DEFAULT_SPECS: Driver. (line 25)
  45838. * opt_mode: Machine Modes. (line 327)
  45839. * order of register allocation: Allocation Order. (line 6)
  45840. * ordered_comparison_operator: Machine-Independent Predicates.
  45841. (line 115)
  45842. * ORDERED_EXPR: Unary and Binary Expressions.
  45843. (line 6)
  45844. * Ordering of Patterns: Pattern Ordering. (line 6)
  45845. * ORIGINAL_REGNO: Special Accessors. (line 53)
  45846. * other register constraints: Simple Constraints. (line 171)
  45847. * outgoing_args_size: Stack Arguments. (line 48)
  45848. * OUTGOING_REGNO: Register Basics. (line 136)
  45849. * OUTGOING_REG_PARM_STACK_SPACE: Stack Arguments. (line 79)
  45850. * output of assembler code: File Framework. (line 6)
  45851. * output statements: Output Statement. (line 6)
  45852. * output templates: Output Template. (line 6)
  45853. * output_asm_insn: Output Statement. (line 52)
  45854. * OUTPUT_QUOTED_STRING: File Framework. (line 105)
  45855. * OVERLAPPING_REGISTER_NAMES: Instruction Output. (line 20)
  45856. * OVERLOAD: Functions for C++. (line 6)
  45857. * OVERRIDE_ABI_FORMAT: Register Arguments. (line 150)
  45858. * OVL_CURRENT: Functions for C++. (line 6)
  45859. * OVL_NEXT: Functions for C++. (line 6)
  45860. * p in constraint: Simple Constraints. (line 162)
  45861. * PAD_VARARGS_DOWN: Register Arguments. (line 230)
  45862. * parallel: Side Effects. (line 210)
  45863. * parameters, c++ abi: C++ ABI. (line 6)
  45864. * parameters, d abi: D Language and ABI. (line 6)
  45865. * parameters, miscellaneous: Misc. (line 6)
  45866. * parameters, precompiled headers: PCH Target. (line 6)
  45867. * parity: Arithmetic. (line 242)
  45868. * parityM2 instruction pattern: Standard Names. (line 1427)
  45869. * PARM_BOUNDARY: Storage Layout. (line 150)
  45870. * PARM_DECL: Declarations. (line 6)
  45871. * PARSE_LDD_OUTPUT: Macros for Initialization.
  45872. (line 125)
  45873. * pass dumps: Passes. (line 6)
  45874. * passes and files of the compiler: Passes. (line 6)
  45875. * passing arguments: Interface. (line 36)
  45876. * pass_duplicate_computed_gotos: Edges. (line 161)
  45877. * PATH_SEPARATOR: Filesystem. (line 31)
  45878. * PATTERN: Insns. (line 307)
  45879. * pattern conditions: Patterns. (line 55)
  45880. * pattern names: Standard Names. (line 6)
  45881. * Pattern Ordering: Pattern Ordering. (line 6)
  45882. * patterns: Patterns. (line 6)
  45883. * pc: Regs and Memory. (line 388)
  45884. * pc and attributes: Insn Lengths. (line 20)
  45885. * pc, RTL sharing: Sharing. (line 28)
  45886. * PCC_BITFIELD_TYPE_MATTERS: Storage Layout. (line 364)
  45887. * PCC_STATIC_STRUCT_RETURN: Aggregate Return. (line 64)
  45888. * PC_REGNUM: Register Basics. (line 150)
  45889. * pc_rtx: Regs and Memory. (line 393)
  45890. * PDImode: Machine Modes. (line 40)
  45891. * peephole optimization, RTL representation: Side Effects. (line 244)
  45892. * peephole optimizer definitions: Peephole Definitions.
  45893. (line 6)
  45894. * per-function data: Per-Function Data. (line 6)
  45895. * percent sign: Output Template. (line 6)
  45896. * PHI nodes: SSA. (line 31)
  45897. * phi nodes, RTL SSA: RTL SSA Phi Nodes. (line 6)
  45898. * PIC: PIC. (line 6)
  45899. * PIC_OFFSET_TABLE_REGNUM: PIC. (line 15)
  45900. * PIC_OFFSET_TABLE_REG_CALL_CLOBBERED: PIC. (line 25)
  45901. * pipeline hazard recognizer: Processor pipeline description.
  45902. (line 6)
  45903. * pipeline hazard recognizer <1>: Processor pipeline description.
  45904. (line 53)
  45905. * Plugins: Plugins. (line 6)
  45906. * plus: Arithmetic. (line 14)
  45907. * plus and attributes: Expressions. (line 83)
  45908. * plus, canonicalization of: Insn Canonicalizations.
  45909. (line 27)
  45910. * PLUS_EXPR: Unary and Binary Expressions.
  45911. (line 6)
  45912. * Pmode: Misc. (line 365)
  45913. * pmode_register_operand: Machine-Independent Predicates.
  45914. (line 34)
  45915. * pointer: Types. (line 6)
  45916. * POINTERS_EXTEND_UNSIGNED: Storage Layout. (line 76)
  45917. * POINTER_DIFF_EXPR: Unary and Binary Expressions.
  45918. (line 6)
  45919. * POINTER_PLUS_EXPR: Unary and Binary Expressions.
  45920. (line 6)
  45921. * POINTER_SIZE: Storage Layout. (line 70)
  45922. * POINTER_TYPE: Types. (line 6)
  45923. * polynomial integers: poly_int. (line 6)
  45924. * poly_int: poly_int. (line 6)
  45925. * poly_int, invariant range: Overview of poly_int.
  45926. (line 31)
  45927. * poly_int, main typedefs: Overview of poly_int.
  45928. (line 46)
  45929. * poly_int, runtime value: Overview of poly_int.
  45930. (line 6)
  45931. * poly_int, template parameters: Overview of poly_int.
  45932. (line 24)
  45933. * poly_int, use in target-independent code: Consequences of using poly_int.
  45934. (line 32)
  45935. * poly_int, use in target-specific code: Consequences of using poly_int.
  45936. (line 40)
  45937. * POLY_INT_CST: Constant expressions.
  45938. (line 6)
  45939. * popcount: Arithmetic. (line 238)
  45940. * popcountM2 instruction pattern: Standard Names. (line 1415)
  45941. * pops_args: Function Entry. (line 111)
  45942. * pop_operand: Machine-Independent Predicates.
  45943. (line 87)
  45944. * portability: Portability. (line 6)
  45945. * position independent code: PIC. (line 6)
  45946. * POSTDECREMENT_EXPR: Unary and Binary Expressions.
  45947. (line 6)
  45948. * POSTINCREMENT_EXPR: Unary and Binary Expressions.
  45949. (line 6)
  45950. * post_dec: Incdec. (line 25)
  45951. * post_inc: Incdec. (line 30)
  45952. * POST_LINK_SPEC: Driver. (line 236)
  45953. * post_modify: Incdec. (line 33)
  45954. * post_order_compute, inverted_post_order_compute, walk_dominator_tree: Basic Blocks.
  45955. (line 34)
  45956. * POWI_MAX_MULTS: Misc. (line 932)
  45957. * powM3 instruction pattern: Standard Names. (line 1092)
  45958. * pragma: Misc. (line 422)
  45959. * PREDECREMENT_EXPR: Unary and Binary Expressions.
  45960. (line 6)
  45961. * predefined macros: Run-time Target. (line 6)
  45962. * predicates: Predicates. (line 6)
  45963. * predicates and machine modes: Predicates. (line 31)
  45964. * predication: Conditional Execution.
  45965. (line 6)
  45966. * predict.def: Profile information.
  45967. (line 24)
  45968. * PREFERRED_DEBUGGING_TYPE: All Debuggers. (line 40)
  45969. * PREFERRED_RELOAD_CLASS: Register Classes. (line 249)
  45970. * PREFERRED_STACK_BOUNDARY: Storage Layout. (line 164)
  45971. * prefetch: Side Effects. (line 324)
  45972. * prefetch and /v: Flags. (line 92)
  45973. * prefetch instruction pattern: Standard Names. (line 2339)
  45974. * PREFETCH_SCHEDULE_BARRIER_P: Flags. (line 92)
  45975. * PREINCREMENT_EXPR: Unary and Binary Expressions.
  45976. (line 6)
  45977. * presence_set: Processor pipeline description.
  45978. (line 223)
  45979. * preserving SSA form: SSA. (line 74)
  45980. * pretend_args_size: Function Entry. (line 117)
  45981. * prev_active_insn: define_peephole. (line 60)
  45982. * PREV_INSN: Insns. (line 26)
  45983. * pre_dec: Incdec. (line 8)
  45984. * PRE_GCC3_DWARF_FRAME_REGISTERS: Frame Registers. (line 126)
  45985. * pre_inc: Incdec. (line 22)
  45986. * pre_modify: Incdec. (line 52)
  45987. * PRINT_OPERAND: Instruction Output. (line 95)
  45988. * PRINT_OPERAND_ADDRESS: Instruction Output. (line 122)
  45989. * PRINT_OPERAND_PUNCT_VALID_P: Instruction Output. (line 115)
  45990. * probe_stack instruction pattern: Standard Names. (line 2189)
  45991. * probe_stack_address instruction pattern: Standard Names. (line 2182)
  45992. * processor functional units: Processor pipeline description.
  45993. (line 6)
  45994. * processor functional units <1>: Processor pipeline description.
  45995. (line 68)
  45996. * processor pipeline description: Processor pipeline description.
  45997. (line 6)
  45998. * product: Arithmetic. (line 93)
  45999. * profile feedback: Profile information.
  46000. (line 14)
  46001. * profile representation: Profile information.
  46002. (line 6)
  46003. * PROFILE_BEFORE_PROLOGUE: Profiling. (line 34)
  46004. * PROFILE_HOOK: Profiling. (line 22)
  46005. * profiling, code generation: Profiling. (line 6)
  46006. * program counter: Regs and Memory. (line 389)
  46007. * prologue: Function Entry. (line 6)
  46008. * prologue instruction pattern: Standard Names. (line 2278)
  46009. * PROMOTE_MODE: Storage Layout. (line 87)
  46010. * pseudo registers: Regs and Memory. (line 9)
  46011. * PSImode: Machine Modes. (line 32)
  46012. * PTRDIFF_TYPE: Type Layout. (line 157)
  46013. * purge_dead_edges: Edges. (line 103)
  46014. * purge_dead_edges <1>: Maintaining the CFG.
  46015. (line 81)
  46016. * push address instruction: Simple Constraints. (line 162)
  46017. * pushM1 instruction pattern: Standard Names. (line 453)
  46018. * PUSH_ARGS: Stack Arguments. (line 17)
  46019. * PUSH_ARGS_REVERSED: Stack Arguments. (line 25)
  46020. * push_operand: Machine-Independent Predicates.
  46021. (line 80)
  46022. * push_reload: Addressing Modes. (line 176)
  46023. * PUSH_ROUNDING: Stack Arguments. (line 31)
  46024. * PUT_CODE: RTL Objects. (line 47)
  46025. * PUT_MODE: Machine Modes. (line 385)
  46026. * PUT_REG_NOTE_KIND: Insns. (line 369)
  46027. * QCmode: Machine Modes. (line 199)
  46028. * QFmode: Machine Modes. (line 57)
  46029. * QImode: Machine Modes. (line 25)
  46030. * QImode, in insn: Insns. (line 291)
  46031. * QQmode: Machine Modes. (line 106)
  46032. * qualified type: Types. (line 6)
  46033. * qualified type <1>: Types for C++. (line 6)
  46034. * querying function unit reservations: Processor pipeline description.
  46035. (line 90)
  46036. * question mark: Multi-Alternative. (line 42)
  46037. * quotient: Arithmetic. (line 116)
  46038. * r in constraint: Simple Constraints. (line 64)
  46039. * RDIV_EXPR: Unary and Binary Expressions.
  46040. (line 6)
  46041. * READONLY_DATA_SECTION_ASM_OP: Sections. (line 62)
  46042. * real operands: SSA Operands. (line 6)
  46043. * REALPART_EXPR: Unary and Binary Expressions.
  46044. (line 6)
  46045. * REAL_CST: Constant expressions.
  46046. (line 6)
  46047. * REAL_LIBGCC_SPEC: Driver. (line 124)
  46048. * REAL_NM_FILE_NAME: Macros for Initialization.
  46049. (line 105)
  46050. * REAL_TYPE: Types. (line 6)
  46051. * REAL_VALUE_ABS: Floating Point. (line 58)
  46052. * REAL_VALUE_ATOF: Floating Point. (line 39)
  46053. * REAL_VALUE_FIX: Floating Point. (line 31)
  46054. * REAL_VALUE_ISINF: Floating Point. (line 49)
  46055. * REAL_VALUE_ISNAN: Floating Point. (line 52)
  46056. * REAL_VALUE_NEGATE: Floating Point. (line 55)
  46057. * REAL_VALUE_NEGATIVE: Floating Point. (line 46)
  46058. * REAL_VALUE_TO_TARGET_DECIMAL128: Data Output. (line 153)
  46059. * REAL_VALUE_TO_TARGET_DECIMAL32: Data Output. (line 151)
  46060. * REAL_VALUE_TO_TARGET_DECIMAL64: Data Output. (line 152)
  46061. * REAL_VALUE_TO_TARGET_DOUBLE: Data Output. (line 149)
  46062. * REAL_VALUE_TO_TARGET_LONG_DOUBLE: Data Output. (line 150)
  46063. * REAL_VALUE_TO_TARGET_SINGLE: Data Output. (line 148)
  46064. * REAL_VALUE_TYPE: Floating Point. (line 25)
  46065. * REAL_VALUE_UNSIGNED_FIX: Floating Point. (line 34)
  46066. * recognizing insns: RTL Template. (line 6)
  46067. * recog_data.operand: Instruction Output. (line 54)
  46068. * RECORD_TYPE: Types. (line 6)
  46069. * RECORD_TYPE <1>: Classes. (line 6)
  46070. * redirect_edge_and_branch: Profile information.
  46071. (line 71)
  46072. * redirect_edge_and_branch, redirect_jump: Maintaining the CFG.
  46073. (line 89)
  46074. * reduc_and_scal_M instruction pattern: Standard Names. (line 559)
  46075. * reduc_ior_scal_M instruction pattern: Standard Names. (line 560)
  46076. * reduc_plus_scal_M instruction pattern: Standard Names. (line 554)
  46077. * reduc_smax_scal_M instruction pattern: Standard Names. (line 544)
  46078. * reduc_smin_scal_M instruction pattern: Standard Names. (line 544)
  46079. * reduc_umax_scal_M instruction pattern: Standard Names. (line 549)
  46080. * reduc_umin_scal_M instruction pattern: Standard Names. (line 549)
  46081. * reduc_xor_scal_M instruction pattern: Standard Names. (line 561)
  46082. * reference: Types. (line 6)
  46083. * REFERENCE_TYPE: Types. (line 6)
  46084. * reg: Regs and Memory. (line 9)
  46085. * reg and /f: Flags. (line 102)
  46086. * reg and /i: Flags. (line 97)
  46087. * reg and /v: Flags. (line 106)
  46088. * reg, RTL sharing: Sharing. (line 17)
  46089. * register allocation order: Allocation Order. (line 6)
  46090. * register class definitions: Register Classes. (line 6)
  46091. * register class preference constraints: Class Preferences. (line 6)
  46092. * register pairs: Values in Registers.
  46093. (line 65)
  46094. * Register Transfer Language (RTL): RTL. (line 6)
  46095. * register usage: Registers. (line 6)
  46096. * registers arguments: Register Arguments. (line 6)
  46097. * registers in constraints: Simple Constraints. (line 64)
  46098. * REGISTER_MOVE_COST: Costs. (line 9)
  46099. * REGISTER_NAMES: Instruction Output. (line 8)
  46100. * register_operand: Machine-Independent Predicates.
  46101. (line 29)
  46102. * REGISTER_PREFIX: Instruction Output. (line 150)
  46103. * REGISTER_TARGET_PRAGMAS: Misc. (line 422)
  46104. * REGMODE_NATURAL_SIZE: Regs and Memory. (line 191)
  46105. * REGMODE_NATURAL_SIZE <1>: Regs and Memory. (line 273)
  46106. * REGMODE_NATURAL_SIZE <2>: Values in Registers.
  46107. (line 46)
  46108. * REGNO_MODE_CODE_OK_FOR_BASE_P: Register Classes. (line 172)
  46109. * REGNO_MODE_OK_FOR_BASE_P: Register Classes. (line 150)
  46110. * REGNO_MODE_OK_FOR_REG_BASE_P: Register Classes. (line 160)
  46111. * REGNO_OK_FOR_BASE_P: Register Classes. (line 146)
  46112. * REGNO_OK_FOR_INDEX_P: Register Classes. (line 186)
  46113. * REGNO_REG_CLASS: Register Classes. (line 105)
  46114. * regs_ever_live: Function Entry. (line 29)
  46115. * regular expressions: Processor pipeline description.
  46116. (line 6)
  46117. * regular expressions <1>: Processor pipeline description.
  46118. (line 105)
  46119. * regular IPA passes: Regular IPA passes. (line 6)
  46120. * REG_ALLOC_ORDER: Allocation Order. (line 8)
  46121. * REG_BR_PRED: Insns. (line 541)
  46122. * REG_BR_PROB: Insns. (line 533)
  46123. * REG_BR_PROB_BASE, BB_FREQ_BASE, count: Profile information.
  46124. (line 82)
  46125. * REG_BR_PROB_BASE, EDGE_FREQUENCY: Profile information.
  46126. (line 52)
  46127. * REG_CALL_NOCF_CHECK: Insns. (line 557)
  46128. * REG_CC_SETTER: Insns. (line 505)
  46129. * REG_CC_USER: Insns. (line 505)
  46130. * reg_class_contents: Register Basics. (line 102)
  46131. * REG_CLASS_CONTENTS: Register Classes. (line 91)
  46132. * reg_class_for_constraint: C Constraint Interface.
  46133. (line 48)
  46134. * REG_CLASS_NAMES: Register Classes. (line 86)
  46135. * REG_DEAD: Insns. (line 380)
  46136. * REG_DEAD, REG_UNUSED: Liveness information.
  46137. (line 32)
  46138. * REG_DEP_ANTI: Insns. (line 527)
  46139. * REG_DEP_OUTPUT: Insns. (line 523)
  46140. * REG_DEP_TRUE: Insns. (line 520)
  46141. * REG_EH_REGION, EDGE_ABNORMAL_CALL: Edges. (line 109)
  46142. * REG_EQUAL: Insns. (line 434)
  46143. * REG_EQUIV: Insns. (line 434)
  46144. * REG_EXPR: Special Accessors. (line 58)
  46145. * REG_FRAME_RELATED_EXPR: Insns. (line 547)
  46146. * REG_FUNCTION_VALUE_P: Flags. (line 97)
  46147. * REG_INC: Insns. (line 396)
  46148. * reg_label and /v: Flags. (line 54)
  46149. * REG_LABEL_OPERAND: Insns. (line 410)
  46150. * REG_LABEL_TARGET: Insns. (line 419)
  46151. * reg_names: Register Basics. (line 102)
  46152. * reg_names <1>: Instruction Output. (line 107)
  46153. * REG_NONNEG: Insns. (line 402)
  46154. * REG_NOTES: Insns. (line 344)
  46155. * REG_NOTE_KIND: Insns. (line 369)
  46156. * REG_OFFSET: Special Accessors. (line 62)
  46157. * REG_OK_STRICT: Addressing Modes. (line 99)
  46158. * REG_PARM_STACK_SPACE: Stack Arguments. (line 58)
  46159. * REG_PARM_STACK_SPACE, and TARGET_FUNCTION_ARG: Register Arguments.
  46160. (line 49)
  46161. * REG_POINTER: Flags. (line 102)
  46162. * REG_SETJMP: Insns. (line 428)
  46163. * REG_UNUSED: Insns. (line 389)
  46164. * REG_USERVAR_P: Flags. (line 106)
  46165. * REG_VALUE_IN_UNWIND_CONTEXT: Frame Registers. (line 156)
  46166. * REG_WORDS_BIG_ENDIAN: Storage Layout. (line 35)
  46167. * relative costs: Costs. (line 6)
  46168. * RELATIVE_PREFIX_NOT_LINKDIR: Driver. (line 266)
  46169. * reloading: RTL passes. (line 170)
  46170. * reload_completed: Standard Names. (line 1987)
  46171. * reload_in instruction pattern: Standard Names. (line 98)
  46172. * reload_in_progress: Standard Names. (line 57)
  46173. * reload_out instruction pattern: Standard Names. (line 98)
  46174. * remainder: Arithmetic. (line 136)
  46175. * remainderM3 instruction pattern: Standard Names. (line 946)
  46176. * reorder: GTY Options. (line 175)
  46177. * representation of RTL: RTL. (line 6)
  46178. * reservation delays: Processor pipeline description.
  46179. (line 6)
  46180. * restore_stack_block instruction pattern: Standard Names. (line 2103)
  46181. * restore_stack_function instruction pattern: Standard Names.
  46182. (line 2103)
  46183. * restore_stack_nonlocal instruction pattern: Standard Names.
  46184. (line 2103)
  46185. * rest_of_decl_compilation: Parsing pass. (line 51)
  46186. * rest_of_type_compilation: Parsing pass. (line 51)
  46187. * RESULT_DECL: Declarations. (line 6)
  46188. * return: Side Effects. (line 72)
  46189. * return instruction pattern: Standard Names. (line 1961)
  46190. * return values in registers: Scalar Return. (line 6)
  46191. * returning aggregate values: Aggregate Return. (line 6)
  46192. * returning structures and unions: Interface. (line 10)
  46193. * RETURN_ADDRESS_POINTER_REGNUM: Frame Registers. (line 64)
  46194. * RETURN_ADDR_IN_PREVIOUS_FRAME: Frame Layout. (line 127)
  46195. * RETURN_ADDR_OFFSET: Exception Handling. (line 59)
  46196. * RETURN_ADDR_RTX: Frame Layout. (line 116)
  46197. * RETURN_EXPR: Statements for C and C++.
  46198. (line 6)
  46199. * RETURN_STMT: Statements for C and C++.
  46200. (line 6)
  46201. * return_val: Flags. (line 283)
  46202. * return_val, in call_insn: Flags. (line 120)
  46203. * return_val, in reg: Flags. (line 97)
  46204. * return_val, in symbol_ref: Flags. (line 216)
  46205. * reverse postorder: RTL SSA Instructions.
  46206. (line 6)
  46207. * reverse probability: Profile information.
  46208. (line 66)
  46209. * REVERSE_CONDITION: MODE_CC Condition Codes.
  46210. (line 92)
  46211. * REVERSIBLE_CC_MODE: MODE_CC Condition Codes.
  46212. (line 77)
  46213. * right rotate: Arithmetic. (line 195)
  46214. * right shift: Arithmetic. (line 190)
  46215. * rintM2 instruction pattern: Standard Names. (line 1152)
  46216. * RISC: Processor pipeline description.
  46217. (line 6)
  46218. * RISC <1>: Processor pipeline description.
  46219. (line 223)
  46220. * roots, marking: GGC Roots. (line 6)
  46221. * rotate: Arithmetic. (line 195)
  46222. * rotate <1>: Arithmetic. (line 195)
  46223. * rotatert: Arithmetic. (line 195)
  46224. * rotlM3 instruction pattern: Standard Names. (line 878)
  46225. * rotrM3 instruction pattern: Standard Names. (line 878)
  46226. * roundM2 instruction pattern: Standard Names. (line 1125)
  46227. * ROUND_DIV_EXPR: Unary and Binary Expressions.
  46228. (line 6)
  46229. * ROUND_MOD_EXPR: Unary and Binary Expressions.
  46230. (line 6)
  46231. * ROUND_TYPE_ALIGN: Storage Layout. (line 461)
  46232. * RPO: RTL SSA Instructions.
  46233. (line 6)
  46234. * RSHIFT_EXPR: Unary and Binary Expressions.
  46235. (line 6)
  46236. * rsqrtM2 instruction pattern: Standard Names. (line 926)
  46237. * RTL addition: Arithmetic. (line 14)
  46238. * RTL addition with signed saturation: Arithmetic. (line 14)
  46239. * RTL addition with unsigned saturation: Arithmetic. (line 14)
  46240. * RTL classes: RTL Classes. (line 6)
  46241. * RTL comparison: Arithmetic. (line 46)
  46242. * RTL comparison operations: Comparisons. (line 6)
  46243. * RTL constant expression types: Constants. (line 6)
  46244. * RTL constants: Constants. (line 6)
  46245. * RTL declarations: RTL Declarations. (line 6)
  46246. * RTL difference: Arithmetic. (line 38)
  46247. * RTL expression: RTL Objects. (line 6)
  46248. * RTL expressions for arithmetic: Arithmetic. (line 6)
  46249. * RTL format: RTL Classes. (line 73)
  46250. * RTL format characters: RTL Classes. (line 78)
  46251. * RTL function-call insns: Calls. (line 6)
  46252. * RTL insn template: RTL Template. (line 6)
  46253. * RTL integers: RTL Objects. (line 6)
  46254. * RTL memory expressions: Regs and Memory. (line 6)
  46255. * RTL object types: RTL Objects. (line 6)
  46256. * RTL postdecrement: Incdec. (line 6)
  46257. * RTL postincrement: Incdec. (line 6)
  46258. * RTL predecrement: Incdec. (line 6)
  46259. * RTL preincrement: Incdec. (line 6)
  46260. * RTL register expressions: Regs and Memory. (line 6)
  46261. * RTL representation: RTL. (line 6)
  46262. * RTL side effect expressions: Side Effects. (line 6)
  46263. * RTL SSA: RTL SSA. (line 6)
  46264. * RTL strings: RTL Objects. (line 6)
  46265. * RTL structure sharing assumptions: Sharing. (line 6)
  46266. * RTL subtraction: Arithmetic. (line 38)
  46267. * RTL subtraction with signed saturation: Arithmetic. (line 38)
  46268. * RTL subtraction with unsigned saturation: Arithmetic. (line 38)
  46269. * RTL sum: Arithmetic. (line 14)
  46270. * RTL vectors: RTL Objects. (line 6)
  46271. * RTL_CONST_CALL_P: Flags. (line 115)
  46272. * RTL_CONST_OR_PURE_CALL_P: Flags. (line 125)
  46273. * RTL_LOOPING_CONST_OR_PURE_CALL_P: Flags. (line 129)
  46274. * RTL_PURE_CALL_P: Flags. (line 120)
  46275. * rtl_ssa::access_info: RTL SSA Accesses. (line 10)
  46276. * rtl_ssa::bb_info: RTL SSA Basic Blocks.
  46277. (line 6)
  46278. * rtl_ssa::clobber_info: RTL SSA Accesses. (line 10)
  46279. * rtl_ssa::def_info: RTL SSA Accesses. (line 10)
  46280. * rtl_ssa::ebb_info: RTL SSA Basic Blocks.
  46281. (line 29)
  46282. * rtl_ssa::insn_change: Changing RTL Instructions.
  46283. (line 6)
  46284. * rtl_ssa::insn_info: RTL SSA Instructions.
  46285. (line 6)
  46286. * rtl_ssa::phi_info: RTL SSA Accesses. (line 10)
  46287. * rtl_ssa::phi_info <1>: RTL SSA Phi Nodes. (line 6)
  46288. * rtl_ssa::set_info: RTL SSA Accesses. (line 10)
  46289. * rtl_ssa::use_info: RTL SSA Accesses. (line 10)
  46290. * RTX (See RTL): RTL Objects. (line 6)
  46291. * RTX codes, classes of: RTL Classes. (line 6)
  46292. * RTX_FRAME_RELATED_P: Flags. (line 135)
  46293. * run-time conventions: Interface. (line 6)
  46294. * run-time target specification: Run-time Target. (line 6)
  46295. * s in constraint: Simple Constraints. (line 100)
  46296. * SAD_EXPR: Vectors. (line 6)
  46297. * same_type_p: Types. (line 86)
  46298. * SAmode: Machine Modes. (line 150)
  46299. * satfractMN2 instruction pattern: Standard Names. (line 1663)
  46300. * satfractunsMN2 instruction pattern: Standard Names. (line 1676)
  46301. * satisfies_constraint_M: C Constraint Interface.
  46302. (line 36)
  46303. * sat_fract: Conversions. (line 90)
  46304. * SAVE_EXPR: Unary and Binary Expressions.
  46305. (line 6)
  46306. * save_stack_block instruction pattern: Standard Names. (line 2103)
  46307. * save_stack_function instruction pattern: Standard Names. (line 2103)
  46308. * save_stack_nonlocal instruction pattern: Standard Names. (line 2103)
  46309. * SBSS_SECTION_ASM_OP: Sections. (line 75)
  46310. * Scalar evolutions: Scalar evolutions. (line 6)
  46311. * scalars, returned as values: Scalar Return. (line 6)
  46312. * scalar_float_mode: Machine Modes. (line 298)
  46313. * scalar_int_mode: Machine Modes. (line 295)
  46314. * scalar_mode: Machine Modes. (line 301)
  46315. * scalbM3 instruction pattern: Standard Names. (line 953)
  46316. * scatter_storeMN instruction pattern: Standard Names. (line 255)
  46317. * SCHED_GROUP_P: Flags. (line 162)
  46318. * SCmode: Machine Modes. (line 199)
  46319. * scratch: Regs and Memory. (line 325)
  46320. * scratch operands: Regs and Memory. (line 325)
  46321. * scratch, RTL sharing: Sharing. (line 38)
  46322. * scratch_operand: Machine-Independent Predicates.
  46323. (line 49)
  46324. * SDATA_SECTION_ASM_OP: Sections. (line 57)
  46325. * sdiv_pow2M3 instruction pattern: Standard Names. (line 638)
  46326. * sdiv_pow2M3 instruction pattern <1>: Standard Names. (line 639)
  46327. * SDmode: Machine Modes. (line 88)
  46328. * sdot_prodM instruction pattern: Standard Names. (line 593)
  46329. * search options: Including Patterns. (line 47)
  46330. * SECONDARY_INPUT_RELOAD_CLASS: Register Classes. (line 391)
  46331. * SECONDARY_MEMORY_NEEDED_RTX: Register Classes. (line 457)
  46332. * SECONDARY_OUTPUT_RELOAD_CLASS: Register Classes. (line 392)
  46333. * SECONDARY_RELOAD_CLASS: Register Classes. (line 390)
  46334. * SELECT_CC_MODE: MODE_CC Condition Codes.
  46335. (line 6)
  46336. * sequence: Side Effects. (line 259)
  46337. * Sequence iterators: Sequence iterators. (line 6)
  46338. * set: Side Effects. (line 15)
  46339. * set and /f: Flags. (line 135)
  46340. * setmemM instruction pattern: Standard Names. (line 1527)
  46341. * SETUP_FRAME_ADDRESSES: Frame Layout. (line 94)
  46342. * SET_ASM_OP: Label Output. (line 451)
  46343. * SET_ASM_OP <1>: Label Output. (line 462)
  46344. * set_attr: Tagging Insns. (line 31)
  46345. * set_attr_alternative: Tagging Insns. (line 49)
  46346. * set_bb_seq: GIMPLE sequences. (line 75)
  46347. * SET_DEST: Side Effects. (line 69)
  46348. * SET_IS_RETURN_P: Flags. (line 171)
  46349. * SET_LABEL_KIND: Insns. (line 146)
  46350. * set_optab_libfunc: Library Calls. (line 15)
  46351. * SET_RATIO: Costs. (line 237)
  46352. * SET_SRC: Side Effects. (line 69)
  46353. * set_thread_pointerMODE instruction pattern: Standard Names.
  46354. (line 2676)
  46355. * SET_TYPE_STRUCTURAL_EQUALITY: Types. (line 6)
  46356. * SET_TYPE_STRUCTURAL_EQUALITY <1>: Types. (line 81)
  46357. * SFmode: Machine Modes. (line 69)
  46358. * sharing of RTL components: Sharing. (line 6)
  46359. * shift: Arithmetic. (line 173)
  46360. * SHIFT_COUNT_TRUNCATED: Misc. (line 134)
  46361. * SHLIB_SUFFIX: Macros for Initialization.
  46362. (line 133)
  46363. * SHORT_ACCUM_TYPE_SIZE: Type Layout. (line 82)
  46364. * SHORT_FRACT_TYPE_SIZE: Type Layout. (line 62)
  46365. * SHORT_IMMEDIATES_SIGN_EXTEND: Misc. (line 108)
  46366. * SHORT_TYPE_SIZE: Type Layout. (line 15)
  46367. * shrink-wrapping separate components: Shrink-wrapping separate components.
  46368. (line 6)
  46369. * sibcall_epilogue instruction pattern: Standard Names. (line 2310)
  46370. * sibling call: Edges. (line 121)
  46371. * SIBLING_CALL_P: Flags. (line 175)
  46372. * signal-to-noise ratio (metaphorical usage for diagnostics): Guidelines for Diagnostics.
  46373. (line 39)
  46374. * signed division: Arithmetic. (line 116)
  46375. * signed division with signed saturation: Arithmetic. (line 116)
  46376. * signed maximum: Arithmetic. (line 141)
  46377. * signed minimum: Arithmetic. (line 141)
  46378. * significandM2 instruction pattern: Standard Names. (line 1085)
  46379. * sign_extend: Conversions. (line 23)
  46380. * sign_extract: Bit-Fields. (line 8)
  46381. * sign_extract, canonicalization of: Insn Canonicalizations.
  46382. (line 103)
  46383. * SIG_ATOMIC_TYPE: Type Layout. (line 208)
  46384. * SImode: Machine Modes. (line 37)
  46385. * simple constraints: Simple Constraints. (line 6)
  46386. * simple_return: Side Effects. (line 86)
  46387. * simple_return instruction pattern: Standard Names. (line 1976)
  46388. * sincosM3 instruction pattern: Standard Names. (line 981)
  46389. * sinM2 instruction pattern: Standard Names. (line 975)
  46390. * SIZETYPE: Type Layout. (line 147)
  46391. * SIZE_ASM_OP: Label Output. (line 33)
  46392. * SIZE_TYPE: Type Layout. (line 131)
  46393. * skip: GTY Options. (line 76)
  46394. * SLOW_BYTE_ACCESS: Costs. (line 117)
  46395. * small IPA passes: Small IPA passes. (line 6)
  46396. * smax: Arithmetic. (line 141)
  46397. * smin: Arithmetic. (line 141)
  46398. * sms, swing, software pipelining: RTL passes. (line 123)
  46399. * smulhrsM3 instruction pattern: Standard Names. (line 628)
  46400. * smulhsM3 instruction pattern: Standard Names. (line 618)
  46401. * smulM3_highpart instruction pattern: Standard Names. (line 791)
  46402. * soft float library: Soft float library routines.
  46403. (line 6)
  46404. * source code, location information: Guidelines for Diagnostics.
  46405. (line 183)
  46406. * special: GTY Options. (line 237)
  46407. * special predicates: Predicates. (line 31)
  46408. * SPECS: Target Fragment. (line 194)
  46409. * speculation_barrier instruction pattern: Standard Names. (line 2377)
  46410. * speed of instructions: Costs. (line 6)
  46411. * splitting instructions: Insn Splitting. (line 6)
  46412. * split_block: Maintaining the CFG.
  46413. (line 96)
  46414. * SQmode: Machine Modes. (line 114)
  46415. * sqrt: Arithmetic. (line 206)
  46416. * sqrtM2 instruction pattern: Standard Names. (line 920)
  46417. * square root: Arithmetic. (line 206)
  46418. * SSA: SSA. (line 6)
  46419. * SSA, RTL form: RTL SSA. (line 6)
  46420. * ssaddM3 instruction pattern: Standard Names. (line 466)
  46421. * ssadM instruction pattern: Standard Names. (line 602)
  46422. * ssashlM3 instruction pattern: Standard Names. (line 866)
  46423. * SSA_NAME_DEF_STMT: SSA. (line 184)
  46424. * SSA_NAME_VERSION: SSA. (line 189)
  46425. * ssdivM3 instruction pattern: Standard Names. (line 466)
  46426. * ssmaddMN4 instruction pattern: Standard Names. (line 814)
  46427. * ssmsubMN4 instruction pattern: Standard Names. (line 838)
  46428. * ssmulM3 instruction pattern: Standard Names. (line 466)
  46429. * ssnegM2 instruction pattern: Standard Names. (line 910)
  46430. * sssubM3 instruction pattern: Standard Names. (line 466)
  46431. * ss_abs: Arithmetic. (line 200)
  46432. * ss_ashift: Arithmetic. (line 173)
  46433. * ss_div: Arithmetic. (line 116)
  46434. * ss_minus: Arithmetic. (line 38)
  46435. * ss_mult: Arithmetic. (line 93)
  46436. * ss_neg: Arithmetic. (line 82)
  46437. * ss_plus: Arithmetic. (line 14)
  46438. * ss_truncate: Conversions. (line 43)
  46439. * stack arguments: Stack Arguments. (line 6)
  46440. * stack frame layout: Frame Layout. (line 6)
  46441. * stack smashing protection: Stack Smashing Protection.
  46442. (line 6)
  46443. * STACK_ALIGNMENT_NEEDED: Frame Layout. (line 41)
  46444. * STACK_BOUNDARY: Storage Layout. (line 156)
  46445. * STACK_CHECK_BUILTIN: Stack Checking. (line 31)
  46446. * STACK_CHECK_FIXED_FRAME_SIZE: Stack Checking. (line 83)
  46447. * STACK_CHECK_MAX_FRAME_SIZE: Stack Checking. (line 74)
  46448. * STACK_CHECK_MAX_VAR_SIZE: Stack Checking. (line 90)
  46449. * STACK_CHECK_MOVING_SP: Stack Checking. (line 53)
  46450. * STACK_CHECK_PROBE_INTERVAL_EXP: Stack Checking. (line 45)
  46451. * STACK_CHECK_PROTECT: Stack Checking. (line 62)
  46452. * STACK_CHECK_STATIC_BUILTIN: Stack Checking. (line 38)
  46453. * STACK_DYNAMIC_OFFSET: Frame Layout. (line 67)
  46454. * STACK_DYNAMIC_OFFSET and virtual registers: Regs and Memory.
  46455. (line 83)
  46456. * STACK_GROWS_DOWNWARD: Frame Layout. (line 8)
  46457. * STACK_PARMS_IN_REG_PARM_AREA: Stack Arguments. (line 89)
  46458. * STACK_POINTER_OFFSET: Frame Layout. (line 51)
  46459. * STACK_POINTER_OFFSET and virtual registers: Regs and Memory.
  46460. (line 93)
  46461. * STACK_POINTER_REGNUM: Frame Registers. (line 8)
  46462. * STACK_POINTER_REGNUM and virtual registers: Regs and Memory.
  46463. (line 83)
  46464. * stack_pointer_rtx: Frame Registers. (line 104)
  46465. * stack_protect_combined_set instruction pattern: Standard Names.
  46466. (line 2686)
  46467. * stack_protect_combined_test instruction pattern: Standard Names.
  46468. (line 2716)
  46469. * stack_protect_set instruction pattern: Standard Names. (line 2702)
  46470. * stack_protect_test instruction pattern: Standard Names. (line 2733)
  46471. * STACK_PUSH_CODE: Frame Layout. (line 12)
  46472. * STACK_REGS: Stack Registers. (line 19)
  46473. * STACK_REG_COVER_CLASS: Stack Registers. (line 22)
  46474. * STACK_SAVEAREA_MODE: Storage Layout. (line 477)
  46475. * STACK_SIZE_MODE: Storage Layout. (line 488)
  46476. * STACK_SLOT_ALIGNMENT: Storage Layout. (line 309)
  46477. * standard pattern names: Standard Names. (line 6)
  46478. * STANDARD_STARTFILE_PREFIX: Driver. (line 278)
  46479. * STANDARD_STARTFILE_PREFIX_1: Driver. (line 285)
  46480. * STANDARD_STARTFILE_PREFIX_2: Driver. (line 292)
  46481. * STARTFILE_SPEC: Driver. (line 147)
  46482. * Statement and operand traversals: Statement and operand traversals.
  46483. (line 6)
  46484. * Statement Sequences: Statement Sequences.
  46485. (line 6)
  46486. * Statements: Statements. (line 6)
  46487. * statements: Function Properties.
  46488. (line 6)
  46489. * statements <1>: Statements for C and C++.
  46490. (line 6)
  46491. * static analysis: Static Analyzer. (line 6)
  46492. * static analyzer: Static Analyzer. (line 6)
  46493. * static analyzer, debugging: Debugging the Analyzer.
  46494. (line 5)
  46495. * static analyzer, internals: Analyzer Internals. (line 5)
  46496. * Static profile estimation: Profile information.
  46497. (line 24)
  46498. * static single assignment: SSA. (line 6)
  46499. * STATIC_CHAIN_INCOMING_REGNUM: Frame Registers. (line 77)
  46500. * STATIC_CHAIN_REGNUM: Frame Registers. (line 76)
  46501. * stdarg.h and register arguments: Register Arguments. (line 44)
  46502. * STDC_0_IN_SYSTEM_HEADERS: Misc. (line 386)
  46503. * STMT_EXPR: Unary and Binary Expressions.
  46504. (line 6)
  46505. * STMT_IS_FULL_EXPR_P: Statements for C and C++.
  46506. (line 18)
  46507. * storage layout: Storage Layout. (line 6)
  46508. * STORE_FLAG_VALUE: Misc. (line 237)
  46509. * STORE_MAX_PIECES: Costs. (line 215)
  46510. * store_multiple instruction pattern: Standard Names. (line 159)
  46511. * strcpy: Storage Layout. (line 262)
  46512. * STRICT_ALIGNMENT: Storage Layout. (line 359)
  46513. * strict_low_part: RTL Declarations. (line 9)
  46514. * strict_memory_address_p: Addressing Modes. (line 186)
  46515. * STRING_CST: Constant expressions.
  46516. (line 6)
  46517. * STRING_POOL_ADDRESS_P: Flags. (line 179)
  46518. * strlenM instruction pattern: Standard Names. (line 1598)
  46519. * structure value address: Aggregate Return. (line 6)
  46520. * structures, returning: Interface. (line 10)
  46521. * STRUCTURE_SIZE_BOUNDARY: Storage Layout. (line 351)
  46522. * subM3 instruction pattern: Standard Names. (line 466)
  46523. * SUBOBJECT: Statements for C and C++.
  46524. (line 6)
  46525. * SUBOBJECT_CLEANUP: Statements for C and C++.
  46526. (line 6)
  46527. * subreg: Regs and Memory. (line 97)
  46528. * subreg and /s: Flags. (line 201)
  46529. * subreg and /u: Flags. (line 194)
  46530. * subreg and /u and /v: Flags. (line 184)
  46531. * subreg, in strict_low_part: RTL Declarations. (line 9)
  46532. * SUBREG_BYTE: Regs and Memory. (line 316)
  46533. * SUBREG_PROMOTED_UNSIGNED_P: Flags. (line 184)
  46534. * SUBREG_PROMOTED_UNSIGNED_SET: Flags. (line 194)
  46535. * SUBREG_PROMOTED_VAR_P: Flags. (line 201)
  46536. * SUBREG_REG: Regs and Memory. (line 316)
  46537. * subst iterators in .md files: Subst Iterators. (line 6)
  46538. * subvM4 instruction pattern: Standard Names. (line 482)
  46539. * SUCCESS_EXIT_CODE: Host Misc. (line 12)
  46540. * support for nested functions: Trampolines. (line 6)
  46541. * SUPPORTS_INIT_PRIORITY: Macros for Initialization.
  46542. (line 57)
  46543. * SUPPORTS_ONE_ONLY: Label Output. (line 290)
  46544. * SUPPORTS_WEAK: Label Output. (line 264)
  46545. * SWITCHABLE_TARGET: Run-time Target. (line 160)
  46546. * SWITCH_BODY: Statements for C and C++.
  46547. (line 6)
  46548. * SWITCH_COND: Statements for C and C++.
  46549. (line 6)
  46550. * SWITCH_STMT: Statements for C and C++.
  46551. (line 6)
  46552. * symbolic label: Sharing. (line 20)
  46553. * SYMBOL_FLAG_ANCHOR: Special Accessors. (line 117)
  46554. * SYMBOL_FLAG_EXTERNAL: Special Accessors. (line 99)
  46555. * SYMBOL_FLAG_FUNCTION: Special Accessors. (line 92)
  46556. * SYMBOL_FLAG_HAS_BLOCK_INFO: Special Accessors. (line 113)
  46557. * SYMBOL_FLAG_LOCAL: Special Accessors. (line 95)
  46558. * SYMBOL_FLAG_SMALL: Special Accessors. (line 104)
  46559. * SYMBOL_FLAG_TLS_SHIFT: Special Accessors. (line 108)
  46560. * symbol_ref: Constants. (line 203)
  46561. * symbol_ref and /f: Flags. (line 179)
  46562. * symbol_ref and /i: Flags. (line 216)
  46563. * symbol_ref and /u: Flags. (line 19)
  46564. * symbol_ref and /v: Flags. (line 220)
  46565. * symbol_ref, RTL sharing: Sharing. (line 20)
  46566. * SYMBOL_REF_ANCHOR_P: Special Accessors. (line 117)
  46567. * SYMBOL_REF_BLOCK: Special Accessors. (line 130)
  46568. * SYMBOL_REF_BLOCK_OFFSET: Special Accessors. (line 135)
  46569. * SYMBOL_REF_CONSTANT: Special Accessors. (line 78)
  46570. * SYMBOL_REF_DATA: Special Accessors. (line 82)
  46571. * SYMBOL_REF_DECL: Special Accessors. (line 67)
  46572. * SYMBOL_REF_EXTERNAL_P: Special Accessors. (line 99)
  46573. * SYMBOL_REF_FLAG: Flags. (line 220)
  46574. * SYMBOL_REF_FLAG, in TARGET_ENCODE_SECTION_INFO: Sections. (line 291)
  46575. * SYMBOL_REF_FLAGS: Special Accessors. (line 86)
  46576. * SYMBOL_REF_FUNCTION_P: Special Accessors. (line 92)
  46577. * SYMBOL_REF_HAS_BLOCK_INFO_P: Special Accessors. (line 113)
  46578. * SYMBOL_REF_LOCAL_P: Special Accessors. (line 95)
  46579. * SYMBOL_REF_SMALL_P: Special Accessors. (line 104)
  46580. * SYMBOL_REF_TLS_MODEL: Special Accessors. (line 108)
  46581. * SYMBOL_REF_USED: Flags. (line 211)
  46582. * SYMBOL_REF_WEAK: Flags. (line 216)
  46583. * sync_addMODE instruction pattern: Standard Names. (line 2431)
  46584. * sync_andMODE instruction pattern: Standard Names. (line 2431)
  46585. * sync_compare_and_swapMODE instruction pattern: Standard Names.
  46586. (line 2391)
  46587. * sync_iorMODE instruction pattern: Standard Names. (line 2431)
  46588. * sync_lock_releaseMODE instruction pattern: Standard Names. (line 2496)
  46589. * sync_lock_test_and_setMODE instruction pattern: Standard Names.
  46590. (line 2470)
  46591. * sync_nandMODE instruction pattern: Standard Names. (line 2431)
  46592. * sync_new_addMODE instruction pattern: Standard Names. (line 2463)
  46593. * sync_new_andMODE instruction pattern: Standard Names. (line 2463)
  46594. * sync_new_iorMODE instruction pattern: Standard Names. (line 2463)
  46595. * sync_new_nandMODE instruction pattern: Standard Names. (line 2463)
  46596. * sync_new_subMODE instruction pattern: Standard Names. (line 2463)
  46597. * sync_new_xorMODE instruction pattern: Standard Names. (line 2463)
  46598. * sync_old_addMODE instruction pattern: Standard Names. (line 2446)
  46599. * sync_old_andMODE instruction pattern: Standard Names. (line 2446)
  46600. * sync_old_iorMODE instruction pattern: Standard Names. (line 2446)
  46601. * sync_old_nandMODE instruction pattern: Standard Names. (line 2446)
  46602. * sync_old_subMODE instruction pattern: Standard Names. (line 2446)
  46603. * sync_old_xorMODE instruction pattern: Standard Names. (line 2446)
  46604. * sync_subMODE instruction pattern: Standard Names. (line 2431)
  46605. * sync_xorMODE instruction pattern: Standard Names. (line 2431)
  46606. * SYSROOT_HEADERS_SUFFIX_SPEC: Driver. (line 176)
  46607. * SYSROOT_SUFFIX_SPEC: Driver. (line 171)
  46608. * SYSTEM_IMPLICIT_EXTERN_C: Misc. (line 417)
  46609. * t-TARGET: Target Fragment. (line 6)
  46610. * table jump: Basic Blocks. (line 67)
  46611. * tablejump instruction pattern: Standard Names. (line 2049)
  46612. * tag: GTY Options. (line 90)
  46613. * tagging insns: Tagging Insns. (line 6)
  46614. * tail calls: Tail Calls. (line 6)
  46615. * TAmode: Machine Modes. (line 158)
  46616. * tanM2 instruction pattern: Standard Names. (line 992)
  46617. * target attributes: Target Attributes. (line 6)
  46618. * target description macros: Target Macros. (line 6)
  46619. * target functions: Target Structure. (line 6)
  46620. * target hooks: Target Structure. (line 6)
  46621. * target makefile fragment: Target Fragment. (line 6)
  46622. * target specifications: Run-time Target. (line 6)
  46623. * targetm: Target Structure. (line 6)
  46624. * targets, makefile: Makefile. (line 6)
  46625. * TARGET_ABSOLUTE_BIGGEST_ALIGNMENT: Storage Layout. (line 185)
  46626. * TARGET_ADDITIONAL_ALLOCNO_CLASS_P: Register Classes. (line 639)
  46627. * TARGET_ADDRESS_COST: Costs. (line 344)
  46628. * TARGET_ADDR_SPACE_ADDRESS_MODE: Named Address Spaces.
  46629. (line 42)
  46630. * TARGET_ADDR_SPACE_CONVERT: Named Address Spaces.
  46631. (line 89)
  46632. * TARGET_ADDR_SPACE_DEBUG: Named Address Spaces.
  46633. (line 99)
  46634. * TARGET_ADDR_SPACE_DIAGNOSE_USAGE: Named Address Spaces.
  46635. (line 103)
  46636. * TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P: Named Address Spaces.
  46637. (line 59)
  46638. * TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS: Named Address Spaces.
  46639. (line 67)
  46640. * TARGET_ADDR_SPACE_POINTER_MODE: Named Address Spaces.
  46641. (line 36)
  46642. * TARGET_ADDR_SPACE_SUBSET_P: Named Address Spaces.
  46643. (line 74)
  46644. * TARGET_ADDR_SPACE_VALID_POINTER_MODE: Named Address Spaces.
  46645. (line 48)
  46646. * TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID: Named Address Spaces.
  46647. (line 83)
  46648. * TARGET_ALIGN_ANON_BITFIELD: Storage Layout. (line 436)
  46649. * TARGET_ALLOCATE_INITIAL_VALUE: Misc. (line 812)
  46650. * TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS: Misc. (line 1082)
  46651. * TARGET_ALWAYS_STRIP_DOTDOT: Driver. (line 250)
  46652. * TARGET_ARG_PARTIAL_BYTES: Register Arguments. (line 92)
  46653. * TARGET_ARM_EABI_UNWINDER: Exception Region Output.
  46654. (line 133)
  46655. * TARGET_ARRAY_MODE: Register Arguments. (line 373)
  46656. * TARGET_ARRAY_MODE_SUPPORTED_P: Register Arguments. (line 388)
  46657. * TARGET_ASAN_SHADOW_OFFSET: Misc. (line 1110)
  46658. * TARGET_ASM_ALIGNED_DI_OP: Data Output. (line 11)
  46659. * TARGET_ASM_ALIGNED_HI_OP: Data Output. (line 7)
  46660. * TARGET_ASM_ALIGNED_PDI_OP: Data Output. (line 10)
  46661. * TARGET_ASM_ALIGNED_PSI_OP: Data Output. (line 8)
  46662. * TARGET_ASM_ALIGNED_PTI_OP: Data Output. (line 12)
  46663. * TARGET_ASM_ALIGNED_SI_OP: Data Output. (line 9)
  46664. * TARGET_ASM_ALIGNED_TI_OP: Data Output. (line 13)
  46665. * TARGET_ASM_ASSEMBLE_UNDEFINED_DECL: Label Output. (line 231)
  46666. * TARGET_ASM_ASSEMBLE_VISIBILITY: Label Output. (line 301)
  46667. * TARGET_ASM_BYTE_OP: Data Output. (line 6)
  46668. * TARGET_ASM_CAN_OUTPUT_MI_THUNK: Function Entry. (line 209)
  46669. * TARGET_ASM_CLOSE_PAREN: Data Output. (line 139)
  46670. * TARGET_ASM_CODE_END: File Framework. (line 57)
  46671. * TARGET_ASM_CONSTRUCTOR: Macros for Initialization.
  46672. (line 68)
  46673. * TARGET_ASM_DECLARE_CONSTANT_NAME: Label Output. (line 177)
  46674. * TARGET_ASM_DECL_END: Data Output. (line 44)
  46675. * TARGET_ASM_DESTRUCTOR: Macros for Initialization.
  46676. (line 82)
  46677. * TARGET_ASM_ELF_FLAGS_NUMERIC: File Framework. (line 120)
  46678. * TARGET_ASM_EMIT_EXCEPT_PERSONALITY: Dispatch Tables. (line 89)
  46679. * TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL: Dispatch Tables. (line 82)
  46680. * TARGET_ASM_EMIT_UNWIND_LABEL: Dispatch Tables. (line 70)
  46681. * TARGET_ASM_EXTERNAL_LIBCALL: Label Output. (line 337)
  46682. * TARGET_ASM_FILE_END: File Framework. (line 35)
  46683. * TARGET_ASM_FILE_START: File Framework. (line 8)
  46684. * TARGET_ASM_FILE_START_APP_OFF: File Framework. (line 16)
  46685. * TARGET_ASM_FILE_START_FILE_DIRECTIVE: File Framework. (line 29)
  46686. * TARGET_ASM_FINAL_POSTSCAN_INSN: Instruction Output. (line 82)
  46687. * TARGET_ASM_FUNCTION_BEGIN_EPILOGUE: Function Entry. (line 67)
  46688. * TARGET_ASM_FUNCTION_END_PROLOGUE: Function Entry. (line 61)
  46689. * TARGET_ASM_FUNCTION_EPILOGUE: Function Entry. (line 73)
  46690. * TARGET_ASM_FUNCTION_PROLOGUE: Function Entry. (line 18)
  46691. * TARGET_ASM_FUNCTION_RODATA_SECTION: Sections. (line 225)
  46692. * TARGET_ASM_FUNCTION_SECTION: File Framework. (line 132)
  46693. * TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS: File Framework.
  46694. (line 142)
  46695. * TARGET_ASM_GENERATE_PIC_ADDR_DIFF_VEC: Sections. (line 184)
  46696. * TARGET_ASM_GLOBALIZE_DECL_NAME: Label Output. (line 222)
  46697. * TARGET_ASM_GLOBALIZE_LABEL: Label Output. (line 213)
  46698. * TARGET_ASM_INIT_SECTIONS: Sections. (line 164)
  46699. * TARGET_ASM_INTEGER: Data Output. (line 31)
  46700. * TARGET_ASM_INTERNAL_LABEL: Label Output. (line 380)
  46701. * TARGET_ASM_LTO_END: File Framework. (line 52)
  46702. * TARGET_ASM_LTO_START: File Framework. (line 47)
  46703. * TARGET_ASM_MAKE_EH_SYMBOL_INDIRECT: Dispatch Tables. (line 102)
  46704. * TARGET_ASM_MARK_DECL_PRESERVED: Label Output. (line 343)
  46705. * TARGET_ASM_MERGEABLE_RODATA_PREFIX: Sections. (line 235)
  46706. * TARGET_ASM_NAMED_SECTION: File Framework. (line 112)
  46707. * TARGET_ASM_OPEN_PAREN: Data Output. (line 138)
  46708. * TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA: Data Output. (line 48)
  46709. * TARGET_ASM_OUTPUT_ANCHOR: Anchored Addresses. (line 42)
  46710. * TARGET_ASM_OUTPUT_DWARF_DTPREL: DWARF. (line 121)
  46711. * TARGET_ASM_OUTPUT_IDENT: File Framework. (line 99)
  46712. * TARGET_ASM_OUTPUT_MI_THUNK: Function Entry. (line 167)
  46713. * TARGET_ASM_OUTPUT_SOURCE_FILENAME: File Framework. (line 91)
  46714. * TARGET_ASM_POST_CFI_STARTPROC: Dispatch Tables. (line 61)
  46715. * TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY: Function Entry. (line 9)
  46716. * TARGET_ASM_RECORD_GCC_SWITCHES: File Framework. (line 173)
  46717. * TARGET_ASM_RECORD_GCC_SWITCHES_SECTION: File Framework. (line 184)
  46718. * TARGET_ASM_RELOC_RW_MASK: Sections. (line 173)
  46719. * TARGET_ASM_SELECT_RTX_SECTION: Sections. (line 244)
  46720. * TARGET_ASM_SELECT_SECTION: Sections. (line 191)
  46721. * TARGET_ASM_SHOULD_RESTORE_CFA_STATE: Dispatch Tables. (line 113)
  46722. * TARGET_ASM_TM_CLONE_TABLE_SECTION: Sections. (line 240)
  46723. * TARGET_ASM_TRAMPOLINE_TEMPLATE: Trampolines. (line 81)
  46724. * TARGET_ASM_TTYPE: Exception Region Output.
  46725. (line 127)
  46726. * TARGET_ASM_UNALIGNED_DI_OP: Data Output. (line 18)
  46727. * TARGET_ASM_UNALIGNED_HI_OP: Data Output. (line 14)
  46728. * TARGET_ASM_UNALIGNED_PDI_OP: Data Output. (line 17)
  46729. * TARGET_ASM_UNALIGNED_PSI_OP: Data Output. (line 15)
  46730. * TARGET_ASM_UNALIGNED_PTI_OP: Data Output. (line 19)
  46731. * TARGET_ASM_UNALIGNED_SI_OP: Data Output. (line 16)
  46732. * TARGET_ASM_UNALIGNED_TI_OP: Data Output. (line 20)
  46733. * TARGET_ASM_UNIQUE_SECTION: Sections. (line 213)
  46734. * TARGET_ASM_UNWIND_EMIT: Dispatch Tables. (line 96)
  46735. * TARGET_ASM_UNWIND_EMIT_BEFORE_INSN: Dispatch Tables. (line 108)
  46736. * TARGET_ATOMIC_ALIGN_FOR_MODE: Misc. (line 1130)
  46737. * TARGET_ATOMIC_ASSIGN_EXPAND_FENV: Misc. (line 1136)
  46738. * TARGET_ATOMIC_TEST_AND_SET_TRUEVAL: Misc. (line 1121)
  46739. * TARGET_ATTRIBUTE_TABLE: Target Attributes. (line 10)
  46740. * TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P: Target Attributes. (line 17)
  46741. * TARGET_BINDS_LOCAL_P: Sections. (line 322)
  46742. * TARGET_BUILD_BUILTIN_VA_LIST: Register Arguments. (line 281)
  46743. * TARGET_BUILTIN_DECL: Misc. (line 642)
  46744. * TARGET_BUILTIN_RECIPROCAL: Addressing Modes. (line 261)
  46745. * TARGET_BUILTIN_SETJMP_FRAME_VALUE: Frame Layout. (line 101)
  46746. * TARGET_CALLEE_COPIES: Register Arguments. (line 124)
  46747. * TARGET_CALL_ARGS: Varargs. (line 123)
  46748. * TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS: Miscellaneous Register Hooks.
  46749. (line 6)
  46750. * TARGET_CANNOT_FORCE_CONST_MEM: Addressing Modes. (line 234)
  46751. * TARGET_CANNOT_MODIFY_JUMPS_P: Misc. (line 876)
  46752. * TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P: Register Classes. (line 610)
  46753. * TARGET_CANONICALIZE_COMPARISON: MODE_CC Condition Codes.
  46754. (line 55)
  46755. * TARGET_CANONICAL_VA_LIST_TYPE: Register Arguments. (line 302)
  46756. * TARGET_CAN_CHANGE_MODE_CLASS: Register Classes. (line 543)
  46757. * TARGET_CAN_CHANGE_MODE_CLASS and subreg semantics: Regs and Memory.
  46758. (line 299)
  46759. * TARGET_CAN_ELIMINATE: Elimination. (line 58)
  46760. * TARGET_CAN_FOLLOW_JUMP: Misc. (line 798)
  46761. * TARGET_CAN_INLINE_P: Target Attributes. (line 173)
  46762. * TARGET_CAN_USE_DOLOOP_P: Misc. (line 762)
  46763. * TARGET_CASE_VALUES_THRESHOLD: Misc. (line 46)
  46764. * TARGET_CC_MODES_COMPATIBLE: MODE_CC Condition Codes.
  46765. (line 120)
  46766. * TARGET_CHECK_BUILTIN_CALL: Misc. (line 674)
  46767. * TARGET_CHECK_PCH_TARGET_FLAGS: PCH Target. (line 26)
  46768. * TARGET_CHECK_STRING_OBJECT_FORMAT_ARG: Run-time Target. (line 119)
  46769. * TARGET_CLASS_LIKELY_SPILLED_P: Register Classes. (line 499)
  46770. * TARGET_CLASS_MAX_NREGS: Register Classes. (line 515)
  46771. * TARGET_COMMUTATIVE_P: Misc. (line 805)
  46772. * TARGET_COMPARE_BY_PIECES_BRANCH_RATIO: Costs. (line 200)
  46773. * TARGET_COMPARE_VERSION_PRIORITY: Misc. (line 706)
  46774. * TARGET_COMPATIBLE_VECTOR_TYPES_P: Register Arguments. (line 350)
  46775. * TARGET_COMPUTE_FRAME_LAYOUT: Elimination. (line 74)
  46776. * TARGET_COMPUTE_PRESSURE_CLASSES: Register Classes. (line 655)
  46777. * TARGET_COMP_TYPE_ATTRIBUTES: Target Attributes. (line 25)
  46778. * TARGET_CONDITIONAL_REGISTER_USAGE: Register Basics. (line 102)
  46779. * TARGET_CONSTANT_ALIGNMENT: Storage Layout. (line 275)
  46780. * TARGET_CONST_ANCHOR: Misc. (line 1093)
  46781. * TARGET_CONST_NOT_OK_FOR_DEBUG_P: Addressing Modes. (line 230)
  46782. * TARGET_CONVERT_TO_TYPE: Misc. (line 1027)
  46783. * TARGET_CPU_CPP_BUILTINS: Run-time Target. (line 8)
  46784. * TARGET_CSTORE_MODE: Register Classes. (line 647)
  46785. * TARGET_CUSTOM_FUNCTION_DESCRIPTORS: Trampolines. (line 39)
  46786. * TARGET_CXX_ADJUST_CLASS_AT_DEFINITION: C++ ABI. (line 86)
  46787. * TARGET_CXX_CDTOR_RETURNS_THIS: C++ ABI. (line 37)
  46788. * TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT: C++ ABI. (line 61)
  46789. * TARGET_CXX_COOKIE_HAS_SIZE: C++ ABI. (line 24)
  46790. * TARGET_CXX_DECL_MANGLING_CONTEXT: C++ ABI. (line 92)
  46791. * TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY: C++ ABI. (line 52)
  46792. * TARGET_CXX_GET_COOKIE_SIZE: C++ ABI. (line 17)
  46793. * TARGET_CXX_GUARD_MASK_BIT: C++ ABI. (line 11)
  46794. * TARGET_CXX_GUARD_TYPE: C++ ABI. (line 6)
  46795. * TARGET_CXX_IMPLICIT_EXTERN_C: Misc. (line 409)
  46796. * TARGET_CXX_IMPORT_EXPORT_CLASS: C++ ABI. (line 28)
  46797. * TARGET_CXX_KEY_METHOD_MAY_BE_INLINE: C++ ABI. (line 42)
  46798. * TARGET_CXX_LIBRARY_RTTI_COMDAT: C++ ABI. (line 68)
  46799. * TARGET_CXX_USE_AEABI_ATEXIT: C++ ABI. (line 73)
  46800. * TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT: C++ ABI. (line 79)
  46801. * TARGET_C_EXCESS_PRECISION: Storage Layout. (line 109)
  46802. * TARGET_C_PREINCLUDE: Misc. (line 397)
  46803. * TARGET_DEBUG_UNWIND_INFO: DWARF. (line 32)
  46804. * TARGET_DECIMAL_FLOAT_SUPPORTED_P: Storage Layout. (line 541)
  46805. * TARGET_DECLSPEC: Target Attributes. (line 72)
  46806. * TARGET_DEFAULT_PACK_STRUCT: Misc. (line 481)
  46807. * TARGET_DEFAULT_SHORT_ENUMS: Type Layout. (line 123)
  46808. * TARGET_DEFAULT_TARGET_FLAGS: Run-time Target. (line 55)
  46809. * TARGET_DEFERRED_OUTPUT_DEFS: Label Output. (line 465)
  46810. * TARGET_DELAY_SCHED2: DWARF. (line 77)
  46811. * TARGET_DELAY_VARTRACK: DWARF. (line 81)
  46812. * TARGET_DELEGITIMIZE_ADDRESS: Addressing Modes. (line 221)
  46813. * TARGET_DIFFERENT_ADDR_DISPLACEMENT_P: Register Classes. (line 603)
  46814. * TARGET_DLLIMPORT_DECL_ATTRIBUTES: Target Attributes. (line 55)
  46815. * TARGET_DOLOOP_COST_FOR_ADDRESS: Misc. (line 751)
  46816. * TARGET_DOLOOP_COST_FOR_GENERIC: Misc. (line 740)
  46817. * TARGET_DWARF_CALLING_CONVENTION: DWARF. (line 12)
  46818. * TARGET_DWARF_FRAME_REG_MODE: Exception Region Output.
  46819. (line 113)
  46820. * TARGET_DWARF_HANDLE_FRAME_UNSPEC: Frame Layout. (line 165)
  46821. * TARGET_DWARF_POLY_INDETERMINATE_VALUE: Frame Layout. (line 177)
  46822. * TARGET_DWARF_REGISTER_SPAN: Exception Region Output.
  46823. (line 104)
  46824. * TARGET_D_CPU_VERSIONS: D Language and ABI. (line 6)
  46825. * TARGET_D_HAS_STDCALL_CONVENTION: D Language and ABI. (line 47)
  46826. * TARGET_D_MINFO_END_NAME: D Language and ABI. (line 42)
  46827. * TARGET_D_MINFO_SECTION: D Language and ABI. (line 29)
  46828. * TARGET_D_MINFO_START_NAME: D Language and ABI. (line 37)
  46829. * TARGET_D_OS_VERSIONS: D Language and ABI. (line 13)
  46830. * TARGET_D_REGISTER_CPU_TARGET_INFO: D Language and ABI. (line 17)
  46831. * TARGET_D_REGISTER_OS_TARGET_INFO: D Language and ABI. (line 25)
  46832. * TARGET_D_TEMPLATES_ALWAYS_COMDAT: D Language and ABI. (line 55)
  46833. * TARGET_EDOM: Library Calls. (line 59)
  46834. * TARGET_EMIT_CALL_BUILTIN___CLEAR_CACHE: Trampolines. (line 128)
  46835. * TARGET_EMPTY_RECORD_P: Aggregate Return. (line 86)
  46836. * TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS: Emulated TLS. (line 67)
  46837. * TARGET_EMUTLS_GET_ADDRESS: Emulated TLS. (line 18)
  46838. * TARGET_EMUTLS_REGISTER_COMMON: Emulated TLS. (line 23)
  46839. * TARGET_EMUTLS_TMPL_PREFIX: Emulated TLS. (line 44)
  46840. * TARGET_EMUTLS_TMPL_SECTION: Emulated TLS. (line 35)
  46841. * TARGET_EMUTLS_VAR_ALIGN_FIXED: Emulated TLS. (line 62)
  46842. * TARGET_EMUTLS_VAR_FIELDS: Emulated TLS. (line 48)
  46843. * TARGET_EMUTLS_VAR_INIT: Emulated TLS. (line 55)
  46844. * TARGET_EMUTLS_VAR_PREFIX: Emulated TLS. (line 40)
  46845. * TARGET_EMUTLS_VAR_SECTION: Emulated TLS. (line 30)
  46846. * TARGET_ENCODE_SECTION_INFO: Sections. (line 265)
  46847. * TARGET_ENCODE_SECTION_INFO and address validation: Addressing Modes.
  46848. (line 82)
  46849. * TARGET_ENCODE_SECTION_INFO usage: Instruction Output. (line 127)
  46850. * TARGET_END_CALL_ARGS: Varargs. (line 137)
  46851. * TARGET_ENUM_VA_LIST_P: Register Arguments. (line 285)
  46852. * TARGET_ESTIMATED_POLY_VALUE: Costs. (line 432)
  46853. * TARGET_EXCEPT_UNWIND_INFO: Exception Region Output.
  46854. (line 46)
  46855. * TARGET_EXECUTABLE_SUFFIX: Misc. (line 863)
  46856. * TARGET_EXPAND_BUILTIN: Misc. (line 652)
  46857. * TARGET_EXPAND_BUILTIN_SAVEREGS: Varargs. (line 64)
  46858. * TARGET_EXPAND_DIVMOD_LIBFUNC: Scheduling. (line 461)
  46859. * TARGET_EXPAND_TO_RTL_HOOK: Storage Layout. (line 547)
  46860. * TARGET_EXPR: Unary and Binary Expressions.
  46861. (line 6)
  46862. * TARGET_EXTRA_INCLUDES: Misc. (line 942)
  46863. * TARGET_EXTRA_LIVE_ON_ENTRY: Tail Calls. (line 20)
  46864. * TARGET_EXTRA_PRE_INCLUDES: Misc. (line 949)
  46865. * TARGET_FIXED_CONDITION_CODE_REGS: MODE_CC Condition Codes.
  46866. (line 105)
  46867. * TARGET_FIXED_POINT_SUPPORTED_P: Storage Layout. (line 544)
  46868. * target_flags: Run-time Target. (line 51)
  46869. * TARGET_FLAGS_REGNUM: MODE_CC Condition Codes.
  46870. (line 133)
  46871. * TARGET_FLOATN_BUILTIN_P: Register Arguments. (line 438)
  46872. * TARGET_FLOATN_MODE: Register Arguments. (line 420)
  46873. * TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P: Run-time Target.
  46874. (line 179)
  46875. * TARGET_FNTYPE_ABI: Register Basics. (line 58)
  46876. * TARGET_FN_ABI_VA_LIST: Register Arguments. (line 297)
  46877. * TARGET_FOLD_BUILTIN: Misc. (line 689)
  46878. * TARGET_FORMAT_TYPES: Misc. (line 970)
  46879. * TARGET_FRAME_POINTER_REQUIRED: Elimination. (line 8)
  46880. * TARGET_FUNCTION_ARG: Register Arguments. (line 10)
  46881. * TARGET_FUNCTION_ARG_ADVANCE: Register Arguments. (line 195)
  46882. * TARGET_FUNCTION_ARG_BOUNDARY: Register Arguments. (line 248)
  46883. * TARGET_FUNCTION_ARG_OFFSET: Register Arguments. (line 206)
  46884. * TARGET_FUNCTION_ARG_PADDING: Register Arguments. (line 214)
  46885. * TARGET_FUNCTION_ARG_ROUND_BOUNDARY: Register Arguments. (line 254)
  46886. * TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P: Target Attributes. (line 101)
  46887. * TARGET_FUNCTION_INCOMING_ARG: Register Arguments. (line 64)
  46888. * TARGET_FUNCTION_OK_FOR_SIBCALL: Tail Calls. (line 6)
  46889. * TARGET_FUNCTION_VALUE: Scalar Return. (line 9)
  46890. * TARGET_FUNCTION_VALUE_REGNO_P: Scalar Return. (line 96)
  46891. * TARGET_GENERATE_VERSION_DISPATCHER_BODY: Misc. (line 722)
  46892. * TARGET_GEN_CCMP_FIRST: Misc. (line 895)
  46893. * TARGET_GEN_CCMP_NEXT: Misc. (line 906)
  46894. * TARGET_GET_DRAP_RTX: Misc. (line 1063)
  46895. * TARGET_GET_FUNCTION_VERSIONS_DISPATCHER: Misc. (line 715)
  46896. * TARGET_GET_MULTILIB_ABI_NAME: Register Basics. (line 99)
  46897. * TARGET_GET_PCH_VALIDITY: PCH Target. (line 6)
  46898. * TARGET_GET_RAW_ARG_MODE: Aggregate Return. (line 81)
  46899. * TARGET_GET_RAW_RESULT_MODE: Aggregate Return. (line 76)
  46900. * TARGET_GET_VALID_OPTION_VALUES: Stack Smashing Protection.
  46901. (line 39)
  46902. * TARGET_GIMPLE_FOLD_BUILTIN: Misc. (line 699)
  46903. * TARGET_GIMPLIFY_VA_ARG_EXPR: Register Arguments. (line 307)
  46904. * TARGET_GOACC_DIM_LIMIT: Addressing Modes. (line 541)
  46905. * TARGET_GOACC_FORK_JOIN: Addressing Modes. (line 545)
  46906. * TARGET_GOACC_REDUCTION: Addressing Modes. (line 556)
  46907. * TARGET_GOACC_VALIDATE_DIMS: Addressing Modes. (line 528)
  46908. * TARGET_HANDLE_C_OPTION: Run-time Target. (line 73)
  46909. * TARGET_HANDLE_GENERIC_ATTRIBUTE: Target Attributes. (line 93)
  46910. * TARGET_HANDLE_OPTION: Run-time Target. (line 59)
  46911. * TARGET_HARD_REGNO_CALL_PART_CLOBBERED: Register Basics. (line 76)
  46912. * TARGET_HARD_REGNO_MODE_OK: Values in Registers.
  46913. (line 54)
  46914. * TARGET_HARD_REGNO_NREGS: Values in Registers.
  46915. (line 10)
  46916. * TARGET_HARD_REGNO_SCRATCH_OK: Values in Registers.
  46917. (line 139)
  46918. * TARGET_HAS_IFUNC_P: Misc. (line 1125)
  46919. * TARGET_HAS_NO_HW_DIVIDE: Library Calls. (line 52)
  46920. * TARGET_HAVE_CONDITIONAL_EXECUTION: Misc. (line 889)
  46921. * TARGET_HAVE_COUNT_REG_DECR_P: Misc. (line 736)
  46922. * TARGET_HAVE_CTORS_DTORS: Macros for Initialization.
  46923. (line 63)
  46924. * TARGET_HAVE_NAMED_SECTIONS: File Framework. (line 150)
  46925. * TARGET_HAVE_SPECULATION_SAFE_VALUE: Misc. (line 1208)
  46926. * TARGET_HAVE_SRODATA_SECTION: Sections. (line 311)
  46927. * TARGET_HAVE_SWITCHABLE_BSS_SECTIONS: File Framework. (line 155)
  46928. * TARGET_HAVE_TLS: Sections. (line 331)
  46929. * TARGET_INIT_BUILTINS: Misc. (line 626)
  46930. * TARGET_INIT_DWARF_REG_SIZES_EXTRA: Exception Region Output.
  46931. (line 119)
  46932. * TARGET_INIT_LIBFUNCS: Library Calls. (line 15)
  46933. * TARGET_INIT_PIC_REG: Register Arguments. (line 88)
  46934. * TARGET_INSERT_ATTRIBUTES: Target Attributes. (line 80)
  46935. * TARGET_INSN_CALLEE_ABI: Register Basics. (line 65)
  46936. * TARGET_INSN_COST: Costs. (line 380)
  46937. * TARGET_INSTANTIATE_DECLS: Storage Layout. (line 555)
  46938. * TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN: Misc. (line 994)
  46939. * TARGET_INVALID_BINARY_OP: Misc. (line 1013)
  46940. * TARGET_INVALID_CONVERSION: Misc. (line 1000)
  46941. * TARGET_INVALID_UNARY_OP: Misc. (line 1006)
  46942. * TARGET_INVALID_WITHIN_DOLOOP: Misc. (line 779)
  46943. * TARGET_IN_SMALL_DATA_P: Sections. (line 307)
  46944. * TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS: Register Classes. (line 570)
  46945. * TARGET_KEEP_LEAF_WHEN_PROFILED: Profiling. (line 39)
  46946. * TARGET_LEGITIMATE_ADDRESS_P: Addressing Modes. (line 48)
  46947. * TARGET_LEGITIMATE_COMBINED_INSN: Misc. (line 793)
  46948. * TARGET_LEGITIMATE_CONSTANT_P: Addressing Modes. (line 213)
  46949. * TARGET_LEGITIMIZE_ADDRESS: Addressing Modes. (line 129)
  46950. * TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT: Register Classes. (line 618)
  46951. * TARGET_LIBCALL_VALUE: Scalar Return. (line 65)
  46952. * TARGET_LIBC_HAS_FAST_FUNCTION: Library Calls. (line 85)
  46953. * TARGET_LIBC_HAS_FUNCTION: Library Calls. (line 77)
  46954. * TARGET_LIBFUNC_GNU_PREFIX: Library Calls. (line 24)
  46955. * TARGET_LIBGCC_CMP_RETURN_MODE: Storage Layout. (line 497)
  46956. * TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P: Register Arguments.
  46957. (line 412)
  46958. * TARGET_LIBGCC_SDATA_SECTION: Sections. (line 136)
  46959. * TARGET_LIBGCC_SHIFT_COUNT_MODE: Storage Layout. (line 503)
  46960. * TARGET_LIB_INT_CMP_BIASED: Library Calls. (line 42)
  46961. * TARGET_LOAD_BOUNDS_FOR_ARG: Varargs. (line 153)
  46962. * TARGET_LOAD_RETURNED_BOUNDS: Varargs. (line 172)
  46963. * TARGET_LOOP_UNROLL_ADJUST: Misc. (line 923)
  46964. * TARGET_LOWER_LOCAL_DECL_ALIGNMENT: Storage Layout. (line 243)
  46965. * TARGET_LRA_P: Register Classes. (line 577)
  46966. * TARGET_MACHINE_DEPENDENT_REORG: Misc. (line 611)
  46967. * TARGET_MANGLE_ASSEMBLER_NAME: Label Output. (line 356)
  46968. * TARGET_MANGLE_DECL_ASSEMBLER_NAME: Sections. (line 255)
  46969. * TARGET_MANGLE_TYPE: Storage Layout. (line 559)
  46970. * TARGET_MAX_ANCHOR_OFFSET: Anchored Addresses. (line 38)
  46971. * TARGET_MAX_NOCE_IFCVT_SEQ_COST: Costs. (line 390)
  46972. * TARGET_MD_ASM_ADJUST: Misc. (line 526)
  46973. * TARGET_MEMBER_TYPE_FORCES_BLK: Storage Layout. (line 449)
  46974. * TARGET_MEMMODEL_CHECK: Misc. (line 1116)
  46975. * TARGET_MEMORY_MOVE_COST: Costs. (line 79)
  46976. * TARGET_MEMTAG_ADD_TAG: Misc. (line 1280)
  46977. * TARGET_MEMTAG_CAN_TAG_ADDRESSES: Misc. (line 1248)
  46978. * TARGET_MEMTAG_EXTRACT_TAG: Misc. (line 1297)
  46979. * TARGET_MEMTAG_GRANULE_SIZE: Misc. (line 1261)
  46980. * TARGET_MEMTAG_INSERT_RANDOM_TAG: Misc. (line 1273)
  46981. * TARGET_MEMTAG_SET_TAG: Misc. (line 1290)
  46982. * TARGET_MEMTAG_TAG_SIZE: Misc. (line 1256)
  46983. * TARGET_MEMTAG_UNTAGGED_POINTER: Misc. (line 1303)
  46984. * TARGET_MEM_CONSTRAINT: Addressing Modes. (line 107)
  46985. * TARGET_MEM_REF: Storage References. (line 6)
  46986. * TARGET_MERGE_DECL_ATTRIBUTES: Target Attributes. (line 45)
  46987. * TARGET_MERGE_TYPE_ATTRIBUTES: Target Attributes. (line 37)
  46988. * TARGET_MIN_ANCHOR_OFFSET: Anchored Addresses. (line 32)
  46989. * TARGET_MIN_ARITHMETIC_PRECISION: Misc. (line 63)
  46990. * TARGET_MIN_DIVISIONS_FOR_RECIP_MUL: Misc. (line 112)
  46991. * TARGET_MODES_TIEABLE_P: Values in Registers.
  46992. (line 123)
  46993. * TARGET_MODE_AFTER: Mode Switching. (line 57)
  46994. * TARGET_MODE_DEPENDENT_ADDRESS_P: Addressing Modes. (line 196)
  46995. * TARGET_MODE_EMIT: Mode Switching. (line 42)
  46996. * TARGET_MODE_ENTRY: Mode Switching. (line 64)
  46997. * TARGET_MODE_EXIT: Mode Switching. (line 71)
  46998. * TARGET_MODE_NEEDED: Mode Switching. (line 50)
  46999. * TARGET_MODE_PRIORITY: Mode Switching. (line 78)
  47000. * TARGET_MODE_REP_EXTENDED: Misc. (line 199)
  47001. * TARGET_MS_BITFIELD_LAYOUT_P: Storage Layout. (line 513)
  47002. * TARGET_MUST_PASS_IN_STACK: Register Arguments. (line 57)
  47003. * TARGET_MUST_PASS_IN_STACK, and TARGET_FUNCTION_ARG: Register Arguments.
  47004. (line 49)
  47005. * TARGET_NARROW_VOLATILE_BITFIELD: Storage Layout. (line 442)
  47006. * TARGET_NEW_ADDRESS_PROFITABLE_P: Costs. (line 415)
  47007. * TARGET_NOCE_CONVERSION_PROFITABLE_P: Costs. (line 409)
  47008. * TARGET_NO_REGISTER_ALLOCATION: DWARF. (line 85)
  47009. * TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P: Costs. (line 422)
  47010. * TARGET_N_FORMAT_TYPES: Misc. (line 975)
  47011. * TARGET_OBJC_CONSTRUCT_STRING_OBJECT: Run-time Target. (line 88)
  47012. * TARGET_OBJC_DECLARE_CLASS_DEFINITION: Run-time Target. (line 109)
  47013. * TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE: Run-time Target.
  47014. (line 104)
  47015. * TARGET_OBJECT_SUFFIX: Misc. (line 858)
  47016. * TARGET_OBJFMT_CPP_BUILTINS: Run-time Target. (line 45)
  47017. * TARGET_OFFLOAD_OPTIONS: Misc. (line 1159)
  47018. * TARGET_OMIT_STRUCT_RETURN_REG: Scalar Return. (line 117)
  47019. * TARGET_OMP_DEVICE_KIND_ARCH_ISA: Addressing Modes. (line 520)
  47020. * TARGET_OPTAB_SUPPORTED_P: Costs. (line 299)
  47021. * TARGET_OPTF: Misc. (line 957)
  47022. * TARGET_OPTION_FUNCTION_VERSIONS: Target Attributes. (line 165)
  47023. * TARGET_OPTION_INIT_STRUCT: Run-time Target. (line 156)
  47024. * TARGET_OPTION_OPTIMIZATION_TABLE: Run-time Target. (line 142)
  47025. * TARGET_OPTION_OVERRIDE: Target Attributes. (line 152)
  47026. * TARGET_OPTION_POST_STREAM_IN: Target Attributes. (line 133)
  47027. * TARGET_OPTION_PRAGMA_PARSE: Target Attributes. (line 145)
  47028. * TARGET_OPTION_PRINT: Target Attributes. (line 139)
  47029. * TARGET_OPTION_RESTORE: Target Attributes. (line 127)
  47030. * TARGET_OPTION_SAVE: Target Attributes. (line 120)
  47031. * TARGET_OPTION_VALID_ATTRIBUTE_P: Target Attributes. (line 108)
  47032. * TARGET_OS_CPP_BUILTINS: Run-time Target. (line 41)
  47033. * TARGET_OVERRIDES_FORMAT_ATTRIBUTES: Misc. (line 979)
  47034. * TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT: Misc. (line 985)
  47035. * TARGET_OVERRIDES_FORMAT_INIT: Misc. (line 989)
  47036. * TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE: Run-time Target. (line 126)
  47037. * TARGET_PASS_BY_REFERENCE: Register Arguments. (line 112)
  47038. * TARGET_PCH_VALID_P: PCH Target. (line 11)
  47039. * TARGET_POSIX_IO: Misc. (line 555)
  47040. * TARGET_PREDICT_DOLOOP_P: Misc. (line 729)
  47041. * TARGET_PREFERRED_ELSE_VALUE: Addressing Modes. (line 564)
  47042. * TARGET_PREFERRED_OUTPUT_RELOAD_CLASS: Register Classes. (line 284)
  47043. * TARGET_PREFERRED_RELOAD_CLASS: Register Classes. (line 213)
  47044. * TARGET_PREFERRED_RENAME_CLASS: Register Classes. (line 201)
  47045. * TARGET_PREPARE_PCH_SAVE: PCH Target. (line 34)
  47046. * TARGET_PRETEND_OUTGOING_VARARGS_NAMED: Varargs. (line 144)
  47047. * TARGET_PROFILE_BEFORE_PROLOGUE: Sections. (line 315)
  47048. * TARGET_PROMOTED_TYPE: Misc. (line 1019)
  47049. * TARGET_PROMOTE_FUNCTION_MODE: Storage Layout. (line 126)
  47050. * TARGET_PROMOTE_PROTOTYPES: Stack Arguments. (line 10)
  47051. * TARGET_PTRMEMFUNC_VBIT_LOCATION: Type Layout. (line 250)
  47052. * TARGET_RECORD_OFFLOAD_SYMBOL: Misc. (line 1154)
  47053. * TARGET_REF_MAY_ALIAS_ERRNO: Register Arguments. (line 318)
  47054. * TARGET_REGISTER_MOVE_COST: Costs. (line 31)
  47055. * TARGET_REGISTER_PRIORITY: Register Classes. (line 582)
  47056. * TARGET_REGISTER_USAGE_LEVELING_P: Register Classes. (line 593)
  47057. * TARGET_RELAYOUT_FUNCTION: Target Attributes. (line 180)
  47058. * TARGET_RESET_LOCATION_VIEW: DWARF. (line 57)
  47059. * TARGET_RESOLVE_OVERLOADED_BUILTIN: Misc. (line 663)
  47060. * TARGET_RETURN_IN_MEMORY: Aggregate Return. (line 15)
  47061. * TARGET_RETURN_IN_MSB: Scalar Return. (line 124)
  47062. * TARGET_RETURN_POPS_ARGS: Stack Arguments. (line 98)
  47063. * TARGET_RTX_COSTS: Costs. (line 313)
  47064. * TARGET_RUN_TARGET_SELFTESTS: Misc. (line 1245)
  47065. * TARGET_SCALAR_MODE_SUPPORTED_P: Register Arguments. (line 334)
  47066. * TARGET_SCHED_ADJUST_COST: Scheduling. (line 35)
  47067. * TARGET_SCHED_ADJUST_PRIORITY: Scheduling. (line 50)
  47068. * TARGET_SCHED_ALLOC_SCHED_CONTEXT: Scheduling. (line 294)
  47069. * TARGET_SCHED_CAN_SPECULATE_INSN: Scheduling. (line 354)
  47070. * TARGET_SCHED_CLEAR_SCHED_CONTEXT: Scheduling. (line 309)
  47071. * TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK: Scheduling. (line 101)
  47072. * TARGET_SCHED_DFA_NEW_CYCLE: Scheduling. (line 255)
  47073. * TARGET_SCHED_DFA_POST_ADVANCE_CYCLE: Scheduling. (line 172)
  47074. * TARGET_SCHED_DFA_POST_CYCLE_INSN: Scheduling. (line 156)
  47075. * TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE: Scheduling. (line 165)
  47076. * TARGET_SCHED_DFA_PRE_CYCLE_INSN: Scheduling. (line 144)
  47077. * TARGET_SCHED_DISPATCH: Scheduling. (line 370)
  47078. * TARGET_SCHED_DISPATCH_DO: Scheduling. (line 375)
  47079. * TARGET_SCHED_EXPOSED_PIPELINE: Scheduling. (line 379)
  47080. * TARGET_SCHED_FINISH: Scheduling. (line 122)
  47081. * TARGET_SCHED_FINISH_GLOBAL: Scheduling. (line 137)
  47082. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BACKTRACK: Scheduling. (line 235)
  47083. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BEGIN: Scheduling. (line 223)
  47084. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD: Scheduling.
  47085. (line 179)
  47086. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD: Scheduling.
  47087. (line 207)
  47088. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_END: Scheduling. (line 240)
  47089. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_FINI: Scheduling. (line 250)
  47090. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_INIT: Scheduling. (line 245)
  47091. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_ISSUE: Scheduling. (line 229)
  47092. * TARGET_SCHED_FREE_SCHED_CONTEXT: Scheduling. (line 313)
  47093. * TARGET_SCHED_FUSION_PRIORITY: Scheduling. (line 389)
  47094. * TARGET_SCHED_GEN_SPEC_CHECK: Scheduling. (line 335)
  47095. * TARGET_SCHED_H_I_D_EXTENDED: Scheduling. (line 289)
  47096. * TARGET_SCHED_INIT: Scheduling. (line 111)
  47097. * TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN: Scheduling. (line 161)
  47098. * TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN: Scheduling. (line 153)
  47099. * TARGET_SCHED_INIT_GLOBAL: Scheduling. (line 129)
  47100. * TARGET_SCHED_INIT_SCHED_CONTEXT: Scheduling. (line 298)
  47101. * TARGET_SCHED_ISSUE_RATE: Scheduling. (line 11)
  47102. * TARGET_SCHED_IS_COSTLY_DEPENDENCE: Scheduling. (line 267)
  47103. * TARGET_SCHED_MACRO_FUSION_P: Scheduling. (line 87)
  47104. * TARGET_SCHED_MACRO_FUSION_PAIR_P: Scheduling. (line 91)
  47105. * TARGET_SCHED_NEEDS_BLOCK_P: Scheduling. (line 328)
  47106. * TARGET_SCHED_REASSOCIATION_WIDTH: Scheduling. (line 384)
  47107. * TARGET_SCHED_REORDER: Scheduling. (line 58)
  47108. * TARGET_SCHED_REORDER2: Scheduling. (line 75)
  47109. * TARGET_SCHED_SET_SCHED_CONTEXT: Scheduling. (line 305)
  47110. * TARGET_SCHED_SET_SCHED_FLAGS: Scheduling. (line 347)
  47111. * TARGET_SCHED_SMS_RES_MII: Scheduling. (line 361)
  47112. * TARGET_SCHED_SPECULATE_INSN: Scheduling. (line 316)
  47113. * TARGET_SCHED_VARIABLE_ISSUE: Scheduling. (line 22)
  47114. * TARGET_SECONDARY_MEMORY_NEEDED: Register Classes. (line 447)
  47115. * TARGET_SECONDARY_MEMORY_NEEDED_MODE: Register Classes. (line 466)
  47116. * TARGET_SECONDARY_RELOAD: Register Classes. (line 312)
  47117. * TARGET_SECTION_TYPE_FLAGS: File Framework. (line 160)
  47118. * TARGET_SELECT_EARLY_REMAT_MODES: Register Classes. (line 488)
  47119. * TARGET_SETJMP_PRESERVES_NONVOLATILE_REGS_P: Misc. (line 225)
  47120. * TARGET_SETUP_INCOMING_VARARGS: Varargs. (line 71)
  47121. * TARGET_SET_CURRENT_FUNCTION: Misc. (line 840)
  47122. * TARGET_SET_DEFAULT_TYPE_ATTRIBUTES: Target Attributes. (line 33)
  47123. * TARGET_SET_UP_BY_PROLOGUE: Tail Calls. (line 29)
  47124. * TARGET_SHIFT_TRUNCATION_MASK: Misc. (line 160)
  47125. * TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB: Shrink-wrapping separate components.
  47126. (line 36)
  47127. * TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS: Shrink-wrapping separate components.
  47128. (line 43)
  47129. * TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS: Shrink-wrapping separate components.
  47130. (line 54)
  47131. * TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS: Shrink-wrapping separate components.
  47132. (line 50)
  47133. * TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS: Shrink-wrapping separate components.
  47134. (line 27)
  47135. * TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS: Shrink-wrapping separate components.
  47136. (line 58)
  47137. * TARGET_SIMD_CLONE_ADJUST: Addressing Modes. (line 507)
  47138. * TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN: Addressing Modes.
  47139. (line 499)
  47140. * TARGET_SIMD_CLONE_USABLE: Addressing Modes. (line 511)
  47141. * TARGET_SIMT_VF: Addressing Modes. (line 517)
  47142. * TARGET_SLOW_UNALIGNED_ACCESS: Costs. (line 132)
  47143. * TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P: Register Arguments.
  47144. (line 448)
  47145. * TARGET_SPECULATION_SAFE_VALUE: Misc. (line 1227)
  47146. * TARGET_SPILL_CLASS: Register Classes. (line 632)
  47147. * TARGET_SPLIT_COMPLEX_ARG: Register Arguments. (line 269)
  47148. * TARGET_STACK_CLASH_PROTECTION_ALLOCA_PROBE_RANGE: Stack Checking.
  47149. (line 97)
  47150. * TARGET_STACK_PROTECT_FAIL: Stack Smashing Protection.
  47151. (line 16)
  47152. * TARGET_STACK_PROTECT_GUARD: Stack Smashing Protection.
  47153. (line 6)
  47154. * TARGET_STACK_PROTECT_RUNTIME_ENABLED_P: Stack Smashing Protection.
  47155. (line 25)
  47156. * TARGET_STARTING_FRAME_OFFSET: Frame Layout. (line 34)
  47157. * TARGET_STARTING_FRAME_OFFSET and virtual registers: Regs and Memory.
  47158. (line 74)
  47159. * TARGET_STATIC_CHAIN: Frame Registers. (line 90)
  47160. * TARGET_STATIC_RTX_ALIGNMENT: Storage Layout. (line 247)
  47161. * TARGET_STORE_BOUNDS_FOR_ARG: Varargs. (line 163)
  47162. * TARGET_STORE_RETURNED_BOUNDS: Varargs. (line 177)
  47163. * TARGET_STRICT_ARGUMENT_NAMING: Varargs. (line 107)
  47164. * TARGET_STRING_OBJECT_REF_TYPE_P: Run-time Target. (line 114)
  47165. * TARGET_STRIP_NAME_ENCODING: Sections. (line 302)
  47166. * TARGET_STRUCT_VALUE_RTX: Aggregate Return. (line 44)
  47167. * TARGET_SUPPORTS_SPLIT_STACK: Stack Smashing Protection.
  47168. (line 30)
  47169. * TARGET_SUPPORTS_WEAK: Label Output. (line 272)
  47170. * TARGET_SUPPORTS_WIDE_INT: Misc. (line 1167)
  47171. * TARGET_TERMINATE_DW2_EH_FRAME_INFO: Exception Region Output.
  47172. (line 98)
  47173. * TARGET_TRAMPOLINE_ADJUST_ADDRESS: Trampolines. (line 140)
  47174. * TARGET_TRAMPOLINE_INIT: Trampolines. (line 107)
  47175. * TARGET_TRANSLATE_MODE_ATTRIBUTE: Register Arguments. (line 325)
  47176. * TARGET_TRULY_NOOP_TRUNCATION: Misc. (line 184)
  47177. * TARGET_UNSPEC_MAY_TRAP_P: Misc. (line 831)
  47178. * TARGET_UNWIND_TABLES_DEFAULT: Exception Region Output.
  47179. (line 73)
  47180. * TARGET_UNWIND_WORD_MODE: Storage Layout. (line 509)
  47181. * TARGET_UPDATE_STACK_BOUNDARY: Misc. (line 1059)
  47182. * TARGET_USES_WEAK_UNWIND_INFO: Exception Handling. (line 123)
  47183. * TARGET_USE_ANCHORS_FOR_SYMBOL_P: Anchored Addresses. (line 53)
  47184. * TARGET_USE_BLOCKS_FOR_CONSTANT_P: Addressing Modes. (line 248)
  47185. * TARGET_USE_BLOCKS_FOR_DECL_P: Addressing Modes. (line 255)
  47186. * TARGET_USE_BY_PIECES_INFRASTRUCTURE_P: Costs. (line 165)
  47187. * TARGET_USE_PSEUDO_PIC_REG: Register Arguments. (line 84)
  47188. * TARGET_VALID_DLLIMPORT_ATTRIBUTE_P: Target Attributes. (line 66)
  47189. * TARGET_VALID_POINTER_MODE: Register Arguments. (line 313)
  47190. * TARGET_VECTORIZE_ADD_STMT_COST: Addressing Modes. (line 461)
  47191. * TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES: Addressing Modes.
  47192. (line 376)
  47193. * TARGET_VECTORIZE_BUILTIN_GATHER: Addressing Modes. (line 485)
  47194. * TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD: Addressing Modes. (line 266)
  47195. * TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION: Addressing Modes.
  47196. (line 344)
  47197. * TARGET_VECTORIZE_BUILTIN_SCATTER: Addressing Modes. (line 492)
  47198. * TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST: Addressing Modes.
  47199. (line 292)
  47200. * TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION: Addressing Modes.
  47201. (line 336)
  47202. * TARGET_VECTORIZE_DESTROY_COST_DATA: Addressing Modes. (line 480)
  47203. * TARGET_VECTORIZE_EMPTY_MASK_IS_EXPENSIVE: Addressing Modes.
  47204. (line 445)
  47205. * TARGET_VECTORIZE_FINISH_COST: Addressing Modes. (line 473)
  47206. * TARGET_VECTORIZE_GET_MASK_MODE: Addressing Modes. (line 433)
  47207. * TARGET_VECTORIZE_INIT_COST: Addressing Modes. (line 452)
  47208. * TARGET_VECTORIZE_PREFERRED_SIMD_MODE: Addressing Modes. (line 361)
  47209. * TARGET_VECTORIZE_PREFERRED_VECTOR_ALIGNMENT: Addressing Modes.
  47210. (line 298)
  47211. * TARGET_VECTORIZE_RELATED_MODE: Addressing Modes. (line 407)
  47212. * TARGET_VECTORIZE_SPLIT_REDUCTION: Addressing Modes. (line 368)
  47213. * TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT: Addressing Modes.
  47214. (line 351)
  47215. * TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE: Addressing Modes.
  47216. (line 310)
  47217. * TARGET_VECTORIZE_VEC_PERM_CONST: Addressing Modes. (line 316)
  47218. * TARGET_VECTOR_ALIGNMENT: Storage Layout. (line 302)
  47219. * TARGET_VECTOR_MODE_SUPPORTED_P: Register Arguments. (line 345)
  47220. * TARGET_VERIFY_TYPE_CONTEXT: Misc. (line 1034)
  47221. * TARGET_VTABLE_DATA_ENTRY_DISTANCE: Type Layout. (line 303)
  47222. * TARGET_VTABLE_ENTRY_ALIGN: Type Layout. (line 297)
  47223. * TARGET_VTABLE_USES_DESCRIPTORS: Type Layout. (line 286)
  47224. * TARGET_WANT_DEBUG_PUB_SECTIONS: DWARF. (line 72)
  47225. * TARGET_WARN_FUNC_RETURN: Tail Calls. (line 35)
  47226. * TARGET_WARN_PARAMETER_PASSING_ABI: Aggregate Return. (line 90)
  47227. * TARGET_WEAK_NOT_IN_ARCHIVE_TOC: Label Output. (line 308)
  47228. * TARGET_ZERO_CALL_USED_REGS: Misc. (line 1069)
  47229. * TCmode: Machine Modes. (line 199)
  47230. * TDmode: Machine Modes. (line 97)
  47231. * TEMPLATE_DECL: Declarations. (line 6)
  47232. * Temporaries: Temporaries. (line 6)
  47233. * termination routines: Initialization. (line 6)
  47234. * testing constraints: C Constraint Interface.
  47235. (line 6)
  47236. * TEXT_SECTION_ASM_OP: Sections. (line 37)
  47237. * TFmode: Machine Modes. (line 101)
  47238. * The Language: The Language. (line 6)
  47239. * THEN_CLAUSE: Statements for C and C++.
  47240. (line 6)
  47241. * THREAD_MODEL_SPEC: Driver. (line 162)
  47242. * THROW_EXPR: Unary and Binary Expressions.
  47243. (line 6)
  47244. * THUNK_DECL: Declarations. (line 6)
  47245. * THUNK_DELTA: Declarations. (line 6)
  47246. * TImode: Machine Modes. (line 48)
  47247. * TImode, in insn: Insns. (line 291)
  47248. * TLS_COMMON_ASM_OP: Sections. (line 80)
  47249. * TLS_SECTION_ASM_FLAG: Sections. (line 85)
  47250. * tm.h macros: Target Macros. (line 6)
  47251. * TQFmode: Machine Modes. (line 65)
  47252. * TQmode: Machine Modes. (line 122)
  47253. * trampolines for nested functions: Trampolines. (line 6)
  47254. * TRAMPOLINE_ALIGNMENT: Trampolines. (line 101)
  47255. * TRAMPOLINE_SECTION: Trampolines. (line 92)
  47256. * TRAMPOLINE_SIZE: Trampolines. (line 97)
  47257. * TRANSFER_FROM_TRAMPOLINE: Trampolines. (line 176)
  47258. * trap instruction pattern: Standard Names. (line 2320)
  47259. * tree: Tree overview. (line 6)
  47260. * tree <1>: Macros and Functions.
  47261. (line 6)
  47262. * Tree SSA: Tree SSA. (line 6)
  47263. * TREE_CHAIN: Macros and Functions.
  47264. (line 6)
  47265. * TREE_CODE: Tree overview. (line 6)
  47266. * tree_fits_shwi_p: Constant expressions.
  47267. (line 6)
  47268. * tree_fits_uhwi_p: Constant expressions.
  47269. (line 6)
  47270. * TREE_INT_CST_ELT: Constant expressions.
  47271. (line 6)
  47272. * tree_int_cst_equal: Constant expressions.
  47273. (line 6)
  47274. * TREE_INT_CST_LOW: Constant expressions.
  47275. (line 6)
  47276. * tree_int_cst_lt: Constant expressions.
  47277. (line 6)
  47278. * TREE_INT_CST_NUNITS: Constant expressions.
  47279. (line 6)
  47280. * TREE_LIST: Containers. (line 6)
  47281. * TREE_OPERAND: Expression trees. (line 6)
  47282. * TREE_PUBLIC: Function Basics. (line 6)
  47283. * TREE_PUBLIC <1>: Function Properties.
  47284. (line 28)
  47285. * TREE_PURPOSE: Containers. (line 6)
  47286. * TREE_READONLY: Function Properties.
  47287. (line 37)
  47288. * tree_size: Macros and Functions.
  47289. (line 13)
  47290. * TREE_STATIC: Function Properties.
  47291. (line 31)
  47292. * TREE_STRING_LENGTH: Constant expressions.
  47293. (line 6)
  47294. * TREE_STRING_POINTER: Constant expressions.
  47295. (line 6)
  47296. * TREE_THIS_VOLATILE: Function Properties.
  47297. (line 34)
  47298. * tree_to_shwi: Constant expressions.
  47299. (line 6)
  47300. * tree_to_uhwi: Constant expressions.
  47301. (line 6)
  47302. * TREE_TYPE: Macros and Functions.
  47303. (line 6)
  47304. * TREE_TYPE <1>: Types. (line 6)
  47305. * TREE_TYPE <2>: Working with declarations.
  47306. (line 11)
  47307. * TREE_TYPE <3>: Expression trees. (line 6)
  47308. * TREE_TYPE <4>: Expression trees. (line 17)
  47309. * TREE_TYPE <5>: Function Basics. (line 47)
  47310. * TREE_TYPE <6>: Types for C++. (line 6)
  47311. * TREE_VALUE: Containers. (line 6)
  47312. * TREE_VEC: Containers. (line 6)
  47313. * TREE_VEC_ELT: Containers. (line 6)
  47314. * TREE_VEC_LENGTH: Containers. (line 6)
  47315. * true positive: Guidelines for Diagnostics.
  47316. (line 39)
  47317. * truncate: Conversions. (line 38)
  47318. * truncMN2 instruction pattern: Standard Names. (line 1641)
  47319. * TRUNC_DIV_EXPR: Unary and Binary Expressions.
  47320. (line 6)
  47321. * TRUNC_MOD_EXPR: Unary and Binary Expressions.
  47322. (line 6)
  47323. * TRUTH_ANDIF_EXPR: Unary and Binary Expressions.
  47324. (line 6)
  47325. * TRUTH_AND_EXPR: Unary and Binary Expressions.
  47326. (line 6)
  47327. * TRUTH_NOT_EXPR: Unary and Binary Expressions.
  47328. (line 6)
  47329. * TRUTH_ORIF_EXPR: Unary and Binary Expressions.
  47330. (line 6)
  47331. * TRUTH_OR_EXPR: Unary and Binary Expressions.
  47332. (line 6)
  47333. * TRUTH_XOR_EXPR: Unary and Binary Expressions.
  47334. (line 6)
  47335. * TRY_BLOCK: Statements for C and C++.
  47336. (line 6)
  47337. * TRY_HANDLERS: Statements for C and C++.
  47338. (line 6)
  47339. * TRY_STMTS: Statements for C and C++.
  47340. (line 6)
  47341. * Tuple specific accessors: Tuple specific accessors.
  47342. (line 6)
  47343. * tuples: Tuple representation.
  47344. (line 6)
  47345. * type: Types. (line 6)
  47346. * type declaration: Declarations. (line 6)
  47347. * TYPENAME_TYPE: Types for C++. (line 6)
  47348. * TYPENAME_TYPE_FULLNAME: Types. (line 6)
  47349. * TYPENAME_TYPE_FULLNAME <1>: Types for C++. (line 6)
  47350. * TYPEOF_TYPE: Types for C++. (line 6)
  47351. * TYPE_ALIGN: Types. (line 6)
  47352. * TYPE_ALIGN <1>: Types. (line 30)
  47353. * TYPE_ALIGN <2>: Types for C++. (line 6)
  47354. * TYPE_ALIGN <3>: Types for C++. (line 44)
  47355. * TYPE_ARG_TYPES: Types. (line 6)
  47356. * TYPE_ARG_TYPES <1>: Types for C++. (line 6)
  47357. * TYPE_ASM_OP: Label Output. (line 76)
  47358. * TYPE_ATTRIBUTES: Attributes. (line 24)
  47359. * TYPE_BINFO: Classes. (line 6)
  47360. * TYPE_BUILT_IN: Types for C++. (line 66)
  47361. * TYPE_CANONICAL: Types. (line 6)
  47362. * TYPE_CANONICAL <1>: Types. (line 41)
  47363. * TYPE_CONTEXT: Types. (line 6)
  47364. * TYPE_CONTEXT <1>: Types for C++. (line 6)
  47365. * TYPE_DECL: Declarations. (line 6)
  47366. * TYPE_FIELDS: Types. (line 6)
  47367. * TYPE_FIELDS <1>: Types for C++. (line 6)
  47368. * TYPE_FIELDS <2>: Classes. (line 6)
  47369. * TYPE_HAS_ARRAY_NEW_OPERATOR: Classes. (line 93)
  47370. * TYPE_HAS_DEFAULT_CONSTRUCTOR: Classes. (line 78)
  47371. * TYPE_HAS_MUTABLE_P: Classes. (line 83)
  47372. * TYPE_HAS_NEW_OPERATOR: Classes. (line 90)
  47373. * TYPE_MAIN_VARIANT: Types. (line 6)
  47374. * TYPE_MAIN_VARIANT <1>: Types. (line 19)
  47375. * TYPE_MAIN_VARIANT <2>: Types for C++. (line 6)
  47376. * TYPE_MAX_VALUE: Types. (line 6)
  47377. * TYPE_METHOD_BASETYPE: Types. (line 6)
  47378. * TYPE_METHOD_BASETYPE <1>: Types for C++. (line 6)
  47379. * TYPE_MIN_VALUE: Types. (line 6)
  47380. * TYPE_NAME: Types. (line 6)
  47381. * TYPE_NAME <1>: Types. (line 33)
  47382. * TYPE_NAME <2>: Types for C++. (line 6)
  47383. * TYPE_NAME <3>: Types for C++. (line 47)
  47384. * TYPE_NOTHROW_P: Functions for C++. (line 154)
  47385. * TYPE_OFFSET_BASETYPE: Types. (line 6)
  47386. * TYPE_OFFSET_BASETYPE <1>: Types for C++. (line 6)
  47387. * TYPE_OPERAND_FMT: Label Output. (line 87)
  47388. * TYPE_OVERLOADS_ARRAY_REF: Classes. (line 101)
  47389. * TYPE_OVERLOADS_ARROW: Classes. (line 104)
  47390. * TYPE_OVERLOADS_CALL_EXPR: Classes. (line 97)
  47391. * TYPE_POLYMORPHIC_P: Classes. (line 74)
  47392. * TYPE_PRECISION: Types. (line 6)
  47393. * TYPE_PRECISION <1>: Types for C++. (line 6)
  47394. * TYPE_PTRDATAMEM_P: Types for C++. (line 6)
  47395. * TYPE_PTRDATAMEM_P <1>: Types for C++. (line 69)
  47396. * TYPE_PTRFN_P: Types for C++. (line 76)
  47397. * TYPE_PTROBV_P: Types for C++. (line 6)
  47398. * TYPE_PTROB_P: Types for C++. (line 79)
  47399. * TYPE_PTR_P: Types for C++. (line 72)
  47400. * TYPE_QUAL_CONST: Types. (line 6)
  47401. * TYPE_QUAL_CONST <1>: Types for C++. (line 6)
  47402. * TYPE_QUAL_RESTRICT: Types. (line 6)
  47403. * TYPE_QUAL_RESTRICT <1>: Types for C++. (line 6)
  47404. * TYPE_QUAL_VOLATILE: Types. (line 6)
  47405. * TYPE_QUAL_VOLATILE <1>: Types for C++. (line 6)
  47406. * TYPE_RAISES_EXCEPTIONS: Functions for C++. (line 149)
  47407. * TYPE_SIZE: Types. (line 6)
  47408. * TYPE_SIZE <1>: Types. (line 25)
  47409. * TYPE_SIZE <2>: Types for C++. (line 6)
  47410. * TYPE_SIZE <3>: Types for C++. (line 39)
  47411. * TYPE_STRUCTURAL_EQUALITY_P: Types. (line 6)
  47412. * TYPE_STRUCTURAL_EQUALITY_P <1>: Types. (line 77)
  47413. * TYPE_UNQUALIFIED: Types. (line 6)
  47414. * TYPE_UNQUALIFIED <1>: Types for C++. (line 6)
  47415. * TYPE_VFIELD: Classes. (line 6)
  47416. * uaddvM4 instruction pattern: Standard Names. (line 485)
  47417. * uavgM3_ceil instruction pattern: Standard Names. (line 898)
  47418. * uavgM3_floor instruction pattern: Standard Names. (line 886)
  47419. * UDAmode: Machine Modes. (line 170)
  47420. * udiv: Arithmetic. (line 130)
  47421. * udivM3 instruction pattern: Standard Names. (line 466)
  47422. * udivmodM4 instruction pattern: Standard Names. (line 863)
  47423. * udot_prodM instruction pattern: Standard Names. (line 594)
  47424. * UDQmode: Machine Modes. (line 138)
  47425. * UHAmode: Machine Modes. (line 162)
  47426. * UHQmode: Machine Modes. (line 130)
  47427. * UINT16_TYPE: Type Layout. (line 214)
  47428. * UINT32_TYPE: Type Layout. (line 215)
  47429. * UINT64_TYPE: Type Layout. (line 216)
  47430. * UINT8_TYPE: Type Layout. (line 213)
  47431. * UINTMAX_TYPE: Type Layout. (line 197)
  47432. * UINTPTR_TYPE: Type Layout. (line 234)
  47433. * UINT_FAST16_TYPE: Type Layout. (line 230)
  47434. * UINT_FAST32_TYPE: Type Layout. (line 231)
  47435. * UINT_FAST64_TYPE: Type Layout. (line 232)
  47436. * UINT_FAST8_TYPE: Type Layout. (line 229)
  47437. * UINT_LEAST16_TYPE: Type Layout. (line 222)
  47438. * UINT_LEAST32_TYPE: Type Layout. (line 223)
  47439. * UINT_LEAST64_TYPE: Type Layout. (line 224)
  47440. * UINT_LEAST8_TYPE: Type Layout. (line 221)
  47441. * umaddMN4 instruction pattern: Standard Names. (line 810)
  47442. * umax: Arithmetic. (line 149)
  47443. * umaxM3 instruction pattern: Standard Names. (line 466)
  47444. * umin: Arithmetic. (line 149)
  47445. * uminM3 instruction pattern: Standard Names. (line 466)
  47446. * umod: Arithmetic. (line 136)
  47447. * umodM3 instruction pattern: Standard Names. (line 466)
  47448. * umsubMN4 instruction pattern: Standard Names. (line 834)
  47449. * umulhisi3 instruction pattern: Standard Names. (line 782)
  47450. * umulhrsM3 instruction pattern: Standard Names. (line 629)
  47451. * umulhsM3 instruction pattern: Standard Names. (line 619)
  47452. * umulM3_highpart instruction pattern: Standard Names. (line 796)
  47453. * umulqihi3 instruction pattern: Standard Names. (line 782)
  47454. * umulsidi3 instruction pattern: Standard Names. (line 782)
  47455. * umulvM4 instruction pattern: Standard Names. (line 490)
  47456. * unchanging: Flags. (line 307)
  47457. * unchanging, in call_insn: Flags. (line 115)
  47458. * unchanging, in jump_insn, call_insn and insn: Flags. (line 28)
  47459. * unchanging, in mem: Flags. (line 78)
  47460. * unchanging, in subreg: Flags. (line 184)
  47461. * unchanging, in subreg <1>: Flags. (line 194)
  47462. * unchanging, in symbol_ref: Flags. (line 19)
  47463. * UNEQ_EXPR: Unary and Binary Expressions.
  47464. (line 6)
  47465. * UNGE_EXPR: Unary and Binary Expressions.
  47466. (line 6)
  47467. * UNGT_EXPR: Unary and Binary Expressions.
  47468. (line 6)
  47469. * unions, returning: Interface. (line 10)
  47470. * UNION_TYPE: Types. (line 6)
  47471. * UNION_TYPE <1>: Classes. (line 6)
  47472. * UNITS_PER_WORD: Storage Layout. (line 60)
  47473. * UNKNOWN_TYPE: Types. (line 6)
  47474. * UNKNOWN_TYPE <1>: Types for C++. (line 6)
  47475. * UNLE_EXPR: Unary and Binary Expressions.
  47476. (line 6)
  47477. * UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Sections. (line 48)
  47478. * UNLT_EXPR: Unary and Binary Expressions.
  47479. (line 6)
  47480. * UNORDERED_EXPR: Unary and Binary Expressions.
  47481. (line 6)
  47482. * unshare_all_rtl: Sharing. (line 61)
  47483. * unsigned division: Arithmetic. (line 130)
  47484. * unsigned division with unsigned saturation: Arithmetic. (line 130)
  47485. * unsigned greater than: Comparisons. (line 64)
  47486. * unsigned greater than <1>: Comparisons. (line 72)
  47487. * unsigned less than: Comparisons. (line 68)
  47488. * unsigned less than <1>: Comparisons. (line 76)
  47489. * unsigned minimum and maximum: Arithmetic. (line 149)
  47490. * unsigned_fix: Conversions. (line 77)
  47491. * unsigned_float: Conversions. (line 62)
  47492. * unsigned_fract_convert: Conversions. (line 97)
  47493. * unsigned_sat_fract: Conversions. (line 103)
  47494. * unspec: Side Effects. (line 299)
  47495. * unspec <1>: Constant Definitions.
  47496. (line 111)
  47497. * unspec_volatile: Side Effects. (line 299)
  47498. * unspec_volatile <1>: Constant Definitions.
  47499. (line 99)
  47500. * untyped_call instruction pattern: Standard Names. (line 1946)
  47501. * untyped_return instruction pattern: Standard Names. (line 2009)
  47502. * UPDATE_PATH_HOST_CANONICALIZE (PATH): Filesystem. (line 59)
  47503. * update_ssa: SSA. (line 74)
  47504. * update_stmt: Manipulating GIMPLE statements.
  47505. (line 140)
  47506. * update_stmt <1>: SSA Operands. (line 6)
  47507. * update_stmt_if_modified: Manipulating GIMPLE statements.
  47508. (line 143)
  47509. * UQQmode: Machine Modes. (line 126)
  47510. * usaddM3 instruction pattern: Standard Names. (line 466)
  47511. * usadM instruction pattern: Standard Names. (line 603)
  47512. * USAmode: Machine Modes. (line 166)
  47513. * usashlM3 instruction pattern: Standard Names. (line 866)
  47514. * usdivM3 instruction pattern: Standard Names. (line 466)
  47515. * use: Side Effects. (line 168)
  47516. * used: Flags. (line 325)
  47517. * used, in symbol_ref: Flags. (line 211)
  47518. * user: GTY Options. (line 244)
  47519. * user experience guidelines: User Experience Guidelines.
  47520. (line 6)
  47521. * user gc: User GC. (line 6)
  47522. * USER_LABEL_PREFIX: Instruction Output. (line 152)
  47523. * USE_C_ALLOCA: Host Misc. (line 19)
  47524. * USE_LD_AS_NEEDED: Driver. (line 135)
  47525. * USE_LOAD_POST_DECREMENT: Costs. (line 254)
  47526. * USE_LOAD_POST_INCREMENT: Costs. (line 249)
  47527. * USE_LOAD_PRE_DECREMENT: Costs. (line 264)
  47528. * USE_LOAD_PRE_INCREMENT: Costs. (line 259)
  47529. * USE_SELECT_SECTION_FOR_FUNCTIONS: Sections. (line 205)
  47530. * USE_STORE_POST_DECREMENT: Costs. (line 274)
  47531. * USE_STORE_POST_INCREMENT: Costs. (line 269)
  47532. * USE_STORE_PRE_DECREMENT: Costs. (line 284)
  47533. * USE_STORE_PRE_INCREMENT: Costs. (line 279)
  47534. * USING_STMT: Statements for C and C++.
  47535. (line 6)
  47536. * usmaddMN4 instruction pattern: Standard Names. (line 818)
  47537. * usmsubMN4 instruction pattern: Standard Names. (line 842)
  47538. * usmulhisi3 instruction pattern: Standard Names. (line 786)
  47539. * usmulM3 instruction pattern: Standard Names. (line 466)
  47540. * usmulqihi3 instruction pattern: Standard Names. (line 786)
  47541. * usmulsidi3 instruction pattern: Standard Names. (line 786)
  47542. * usnegM2 instruction pattern: Standard Names. (line 910)
  47543. * USQmode: Machine Modes. (line 134)
  47544. * ussubM3 instruction pattern: Standard Names. (line 466)
  47545. * usubvM4 instruction pattern: Standard Names. (line 490)
  47546. * us_ashift: Arithmetic. (line 173)
  47547. * us_minus: Arithmetic. (line 38)
  47548. * us_mult: Arithmetic. (line 93)
  47549. * us_neg: Arithmetic. (line 82)
  47550. * us_plus: Arithmetic. (line 14)
  47551. * us_truncate: Conversions. (line 48)
  47552. * UTAmode: Machine Modes. (line 174)
  47553. * UTQmode: Machine Modes. (line 142)
  47554. * V in constraint: Simple Constraints. (line 43)
  47555. * values, returned by functions: Scalar Return. (line 6)
  47556. * varargs implementation: Varargs. (line 6)
  47557. * variable: Declarations. (line 6)
  47558. * Variable Location Debug Information in RTL: Debug Information.
  47559. (line 6)
  47560. * VAR_DECL: Declarations. (line 6)
  47561. * var_location: Debug Information. (line 14)
  47562. * vashlM3 instruction pattern: Standard Names. (line 882)
  47563. * vashrM3 instruction pattern: Standard Names. (line 882)
  47564. * VA_ARG_EXPR: Unary and Binary Expressions.
  47565. (line 6)
  47566. * vcondeqMN instruction pattern: Standard Names. (line 385)
  47567. * vcondMN instruction pattern: Standard Names. (line 372)
  47568. * vconduMN instruction pattern: Standard Names. (line 382)
  47569. * vcond_mask_MN instruction pattern: Standard Names. (line 392)
  47570. * vector: Containers. (line 6)
  47571. * vector operations: Vector Operations. (line 6)
  47572. * VECTOR_CST: Constant expressions.
  47573. (line 6)
  47574. * VECTOR_STORE_FLAG_VALUE: Misc. (line 329)
  47575. * vec_cmpeqMN instruction pattern: Standard Names. (line 365)
  47576. * vec_cmpMN instruction pattern: Standard Names. (line 355)
  47577. * vec_cmpuMN instruction pattern: Standard Names. (line 362)
  47578. * vec_concat: Vector Operations. (line 29)
  47579. * VEC_COND_EXPR: Vectors. (line 6)
  47580. * vec_duplicate: Vector Operations. (line 34)
  47581. * vec_duplicateM instruction pattern: Standard Names. (line 298)
  47582. * VEC_DUPLICATE_EXPR: Vectors. (line 6)
  47583. * vec_extractMN instruction pattern: Standard Names. (line 282)
  47584. * vec_initMN instruction pattern: Standard Names. (line 291)
  47585. * vec_load_lanesMN instruction pattern: Standard Names. (line 165)
  47586. * VEC_LSHIFT_EXPR: Vectors. (line 6)
  47587. * vec_mask_load_lanesMN instruction pattern: Standard Names. (line 189)
  47588. * vec_mask_store_lanesMN instruction pattern: Standard Names.
  47589. (line 219)
  47590. * vec_merge: Vector Operations. (line 11)
  47591. * vec_packs_float_M instruction pattern: Standard Names. (line 694)
  47592. * vec_packu_float_M instruction pattern: Standard Names. (line 694)
  47593. * VEC_PACK_FIX_TRUNC_EXPR: Vectors. (line 6)
  47594. * VEC_PACK_FLOAT_EXPR: Vectors. (line 6)
  47595. * VEC_PACK_SAT_EXPR: Vectors. (line 6)
  47596. * vec_pack_sbool_trunc_M instruction pattern: Standard Names.
  47597. (line 671)
  47598. * vec_pack_sfix_trunc_M instruction pattern: Standard Names. (line 687)
  47599. * vec_pack_ssat_M instruction pattern: Standard Names. (line 680)
  47600. * VEC_PACK_TRUNC_EXPR: Vectors. (line 6)
  47601. * vec_pack_trunc_M instruction pattern: Standard Names. (line 664)
  47602. * vec_pack_ufix_trunc_M instruction pattern: Standard Names. (line 687)
  47603. * vec_pack_usat_M instruction pattern: Standard Names. (line 680)
  47604. * vec_permM instruction pattern: Standard Names. (line 434)
  47605. * vec_permM instruction pattern <1>: Addressing Modes. (line 330)
  47606. * VEC_RSHIFT_EXPR: Vectors. (line 6)
  47607. * vec_select: Vector Operations. (line 19)
  47608. * vec_series: Vector Operations. (line 41)
  47609. * vec_seriesM instruction pattern: Standard Names. (line 308)
  47610. * VEC_SERIES_EXPR: Vectors. (line 6)
  47611. * vec_setM instruction pattern: Standard Names. (line 277)
  47612. * vec_shl_insert_M instruction pattern: Standard Names. (line 645)
  47613. * vec_shl_M instruction pattern: Standard Names. (line 652)
  47614. * vec_shr_M instruction pattern: Standard Names. (line 658)
  47615. * vec_store_lanesMN instruction pattern: Standard Names. (line 206)
  47616. * vec_unpacks_float_hi_M instruction pattern: Standard Names.
  47617. (line 724)
  47618. * vec_unpacks_float_lo_M instruction pattern: Standard Names.
  47619. (line 724)
  47620. * vec_unpacks_hi_M instruction pattern: Standard Names. (line 701)
  47621. * vec_unpacks_lo_M instruction pattern: Standard Names. (line 701)
  47622. * vec_unpacks_sbool_hi_M instruction pattern: Standard Names.
  47623. (line 715)
  47624. * vec_unpacks_sbool_lo_M instruction pattern: Standard Names.
  47625. (line 715)
  47626. * vec_unpacku_float_hi_M instruction pattern: Standard Names.
  47627. (line 724)
  47628. * vec_unpacku_float_lo_M instruction pattern: Standard Names.
  47629. (line 724)
  47630. * vec_unpacku_hi_M instruction pattern: Standard Names. (line 708)
  47631. * vec_unpacku_lo_M instruction pattern: Standard Names. (line 708)
  47632. * VEC_UNPACK_FIX_TRUNC_HI_EXPR: Vectors. (line 6)
  47633. * VEC_UNPACK_FIX_TRUNC_LO_EXPR: Vectors. (line 6)
  47634. * VEC_UNPACK_FLOAT_HI_EXPR: Vectors. (line 6)
  47635. * VEC_UNPACK_FLOAT_LO_EXPR: Vectors. (line 6)
  47636. * VEC_UNPACK_HI_EXPR: Vectors. (line 6)
  47637. * VEC_UNPACK_LO_EXPR: Vectors. (line 6)
  47638. * vec_unpack_sfix_trunc_hi_M instruction pattern: Standard Names.
  47639. (line 733)
  47640. * vec_unpack_sfix_trunc_lo_M instruction pattern: Standard Names.
  47641. (line 733)
  47642. * vec_unpack_ufix_trunc_hi_M instruction pattern: Standard Names.
  47643. (line 733)
  47644. * vec_unpack_ufix_trunc_lo_M instruction pattern: Standard Names.
  47645. (line 733)
  47646. * VEC_WIDEN_MINUS_HI_EXPR: Vectors. (line 6)
  47647. * VEC_WIDEN_MINUS_LO_EXPR: Vectors. (line 6)
  47648. * VEC_WIDEN_MULT_HI_EXPR: Vectors. (line 6)
  47649. * VEC_WIDEN_MULT_LO_EXPR: Vectors. (line 6)
  47650. * VEC_WIDEN_PLUS_HI_EXPR: Vectors. (line 6)
  47651. * VEC_WIDEN_PLUS_LO_EXPR: Vectors. (line 6)
  47652. * vec_widen_saddl_hi_M instruction pattern: Standard Names. (line 761)
  47653. * vec_widen_saddl_lo_M instruction pattern: Standard Names. (line 761)
  47654. * vec_widen_smult_even_M instruction pattern: Standard Names.
  47655. (line 743)
  47656. * vec_widen_smult_hi_M instruction pattern: Standard Names. (line 743)
  47657. * vec_widen_smult_lo_M instruction pattern: Standard Names. (line 743)
  47658. * vec_widen_smult_odd_M instruction pattern: Standard Names. (line 743)
  47659. * vec_widen_sshiftl_hi_M instruction pattern: Standard Names.
  47660. (line 754)
  47661. * vec_widen_sshiftl_lo_M instruction pattern: Standard Names.
  47662. (line 754)
  47663. * vec_widen_ssubl_hi_M instruction pattern: Standard Names. (line 768)
  47664. * vec_widen_ssubl_lo_M instruction pattern: Standard Names. (line 768)
  47665. * vec_widen_uaddl_hi_M instruction pattern: Standard Names. (line 761)
  47666. * vec_widen_uaddl_lo_M instruction pattern: Standard Names. (line 761)
  47667. * vec_widen_umult_even_M instruction pattern: Standard Names.
  47668. (line 743)
  47669. * vec_widen_umult_hi_M instruction pattern: Standard Names. (line 743)
  47670. * vec_widen_umult_lo_M instruction pattern: Standard Names. (line 743)
  47671. * vec_widen_umult_odd_M instruction pattern: Standard Names. (line 743)
  47672. * vec_widen_ushiftl_hi_M instruction pattern: Standard Names.
  47673. (line 754)
  47674. * vec_widen_ushiftl_lo_M instruction pattern: Standard Names.
  47675. (line 754)
  47676. * vec_widen_usubl_hi_M instruction pattern: Standard Names. (line 768)
  47677. * vec_widen_usubl_lo_M instruction pattern: Standard Names. (line 768)
  47678. * verify_flow_info: Maintaining the CFG.
  47679. (line 116)
  47680. * virtual operands: SSA Operands. (line 6)
  47681. * VIRTUAL_INCOMING_ARGS_REGNUM: Regs and Memory. (line 59)
  47682. * VIRTUAL_OUTGOING_ARGS_REGNUM: Regs and Memory. (line 87)
  47683. * VIRTUAL_STACK_DYNAMIC_REGNUM: Regs and Memory. (line 78)
  47684. * VIRTUAL_STACK_VARS_REGNUM: Regs and Memory. (line 69)
  47685. * VLIW: Processor pipeline description.
  47686. (line 6)
  47687. * VLIW <1>: Processor pipeline description.
  47688. (line 223)
  47689. * vlshrM3 instruction pattern: Standard Names. (line 882)
  47690. * VMS: Filesystem. (line 37)
  47691. * VMS_DEBUGGING_INFO: VMS Debug. (line 8)
  47692. * VOIDmode: Machine Modes. (line 192)
  47693. * VOID_TYPE: Types. (line 6)
  47694. * volatil: Flags. (line 339)
  47695. * volatil, in insn, call_insn, jump_insn, code_label, jump_table_data, barrier, and note: Flags.
  47696. (line 33)
  47697. * volatil, in label_ref and reg_label: Flags. (line 54)
  47698. * volatil, in mem, asm_operands, and asm_input: Flags. (line 65)
  47699. * volatil, in reg: Flags. (line 106)
  47700. * volatil, in subreg: Flags. (line 184)
  47701. * volatil, in subreg <1>: Flags. (line 194)
  47702. * volatil, in symbol_ref: Flags. (line 220)
  47703. * volatile memory references: Flags. (line 340)
  47704. * volatile, in prefetch: Flags. (line 92)
  47705. * voting between constraint alternatives: Class Preferences. (line 6)
  47706. * vrotlM3 instruction pattern: Standard Names. (line 882)
  47707. * vrotrM3 instruction pattern: Standard Names. (line 882)
  47708. * walk_dominator_tree: SSA. (line 195)
  47709. * walk_gimple_op: Statement and operand traversals.
  47710. (line 30)
  47711. * walk_gimple_seq: Statement and operand traversals.
  47712. (line 47)
  47713. * walk_gimple_stmt: Statement and operand traversals.
  47714. (line 10)
  47715. * WCHAR_TYPE: Type Layout. (line 165)
  47716. * WCHAR_TYPE_SIZE: Type Layout. (line 173)
  47717. * which_alternative: Output Statement. (line 58)
  47718. * WHILE_BODY: Statements for C and C++.
  47719. (line 6)
  47720. * WHILE_COND: Statements for C and C++.
  47721. (line 6)
  47722. * WHILE_STMT: Statements for C and C++.
  47723. (line 6)
  47724. * while_ultMN instruction pattern: Standard Names. (line 320)
  47725. * whopr: LTO. (line 6)
  47726. * widen_ssumM3 instruction pattern: Standard Names. (line 611)
  47727. * widen_usumM3 instruction pattern: Standard Names. (line 612)
  47728. * WIDEST_HARDWARE_FP_SIZE: Type Layout. (line 110)
  47729. * window_save instruction pattern: Standard Names. (line 2291)
  47730. * WINT_TYPE: Type Layout. (line 178)
  47731. * WORDS_BIG_ENDIAN: Storage Layout. (line 28)
  47732. * WORDS_BIG_ENDIAN, effect on subreg: Regs and Memory. (line 225)
  47733. * word_mode: Machine Modes. (line 463)
  47734. * WORD_REGISTER_OPERATIONS: Misc. (line 53)
  47735. * wpa: LTO. (line 6)
  47736. * X in constraint: Simple Constraints. (line 122)
  47737. * x-HOST: Host Fragment. (line 6)
  47738. * XCmode: Machine Modes. (line 199)
  47739. * XCOFF_DEBUGGING_INFO: DBX Options. (line 12)
  47740. * XEXP: Accessors. (line 6)
  47741. * XFmode: Machine Modes. (line 82)
  47742. * XImode: Machine Modes. (line 54)
  47743. * XINT: Accessors. (line 6)
  47744. * xm-MACHINE.h: Filesystem. (line 6)
  47745. * xm-MACHINE.h <1>: Host Misc. (line 6)
  47746. * xor: Arithmetic. (line 168)
  47747. * xor, canonicalization of: Insn Canonicalizations.
  47748. (line 94)
  47749. * xorM3 instruction pattern: Standard Names. (line 466)
  47750. * xorsignM3 instruction pattern: Standard Names. (line 1187)
  47751. * XSTR: Accessors. (line 6)
  47752. * XVEC: Accessors. (line 38)
  47753. * XVECEXP: Accessors. (line 45)
  47754. * XVECLEN: Accessors. (line 41)
  47755. * XWINT: Accessors. (line 6)
  47756. * zero_extend: Conversions. (line 28)
  47757. * zero_extendMN2 instruction pattern: Standard Names. (line 1651)
  47758. * zero_extract: Bit-Fields. (line 30)
  47759. * zero_extract, canonicalization of: Insn Canonicalizations.
  47760. (line 103)
  47761. 
  47762. Tag Table:
  47763. Node: Top1789
  47764. Node: Contributing5173
  47765. Node: Portability5903
  47766. Node: Interface7691
  47767. Node: Libgcc10732
  47768. Node: Integer library routines12559
  47769. Node: Soft float library routines19527
  47770. Node: Decimal float library routines31465
  47771. Node: Fixed-point fractional library routines47223
  47772. Node: Exception handling routines147619
  47773. Node: Miscellaneous routines148726
  47774. Node: Languages150846
  47775. Node: Source Tree152393
  47776. Node: Configure Terms152975
  47777. Node: Top Level155931
  47778. Node: gcc Directory159516
  47779. Node: Subdirectories160468
  47780. Node: Configuration162636
  47781. Node: Config Fragments163356
  47782. Node: System Config164581
  47783. Node: Configuration Files165517
  47784. Node: Build168133
  47785. Node: Makefile168545
  47786. Ref: Makefile-Footnote-1175320
  47787. Ref: Makefile-Footnote-2175467
  47788. Node: Library Files175541
  47789. Node: Headers176103
  47790. Node: Documentation178186
  47791. Node: Texinfo Manuals179045
  47792. Node: Man Page Generation181374
  47793. Node: Miscellaneous Docs183287
  47794. Node: Front End184674
  47795. Node: Front End Directory188353
  47796. Node: Front End Config189669
  47797. Node: Front End Makefile192505
  47798. Node: Back End196273
  47799. Node: Testsuites201159
  47800. Node: Test Idioms202148
  47801. Node: Test Directives205546
  47802. Node: Directives206073
  47803. Node: Selectors217848
  47804. Node: Effective-Target Keywords219204
  47805. Ref: arm_fp_ok232077
  47806. Ref: arm_fp_dp_ok232244
  47807. Ref: arm_neon_ok233277
  47808. Ref: arm_neon_ok_no_float_abi233446
  47809. Ref: arm_neonv2_ok233613
  47810. Ref: arm_fp16_ok233780
  47811. Ref: arm_neon_fp16_ok234122
  47812. Ref: arm_vfp3_ok235054
  47813. Ref: arm_arch_v8a_hard_ok235197
  47814. Ref: arm_v8_1a_neon_ok235947
  47815. Ref: arm_v8_2a_fp16_scalar_ok236375
  47816. Ref: arm_v8_2a_fp16_neon_ok236826
  47817. Ref: arm_v8_2a_dotprod_neon_ok237301
  47818. Ref: arm_fp16fml_neon_ok237721
  47819. Ref: arm_coproc1_ok240221
  47820. Ref: arm_coproc2_ok240347
  47821. Ref: arm_coproc3_ok240575
  47822. Ref: arm_simd32_ok240942
  47823. Ref: arm_qbit_ok241120
  47824. Ref: arm_dsp_ok241309
  47825. Ref: arm_softfp_ok241486
  47826. Ref: arm_hard_ok241559
  47827. Ref: arm_v8_1_lob_ok241634
  47828. Ref: stack_size_et255930
  47829. Node: Add Options258419
  47830. Ref: arm_fp16_ieee259657
  47831. Ref: arm_fp16_alternative259912
  47832. Ref: stack_size_ao262476
  47833. Node: Require Support262838
  47834. Node: Final Actions265740
  47835. Node: Ada Tests275709
  47836. Node: C Tests276872
  47837. Node: LTO Testing281244
  47838. Node: gcov Testing282887
  47839. Node: profopt Testing285857
  47840. Node: compat Testing287572
  47841. Node: Torture Tests291812
  47842. Node: GIMPLE Tests293446
  47843. Node: RTL Tests294688
  47844. Node: Options295994
  47845. Node: Option file format296435
  47846. Node: Option properties303424
  47847. Node: Passes319510
  47848. Node: Parsing pass320383
  47849. Node: Gimplification pass323911
  47850. Node: Pass manager325744
  47851. Node: IPA passes327585
  47852. Node: Small IPA passes328478
  47853. Node: Regular IPA passes331915
  47854. Node: Late IPA passes336693
  47855. Node: Tree SSA passes337652
  47856. Node: RTL passes359259
  47857. Node: Optimization info371523
  47858. Node: Dump setup372342
  47859. Node: Optimization groups373471
  47860. Node: Dump files and streams374450
  47861. Node: Dump output verbosity375648
  47862. Node: Dump types376704
  47863. Node: Dump examples379046
  47864. Node: poly_int380527
  47865. Node: Overview of poly_int382007
  47866. Node: Consequences of using poly_int384611
  47867. Node: Comparisons involving poly_int386246
  47868. Node: Comparison functions for poly_int387884
  47869. Node: Properties of the poly_int comparisons389091
  47870. Node: Comparing potentially-unordered poly_ints391533
  47871. Node: Comparing ordered poly_ints392444
  47872. Node: Checking for a poly_int marker value394468
  47873. Node: Range checks on poly_ints395317
  47874. Node: Sorting poly_ints397971
  47875. Node: Arithmetic on poly_ints398744
  47876. Node: Using poly_int with C++ arithmetic operators399545
  47877. Node: wi arithmetic on poly_ints401076
  47878. Node: Division of poly_ints401928
  47879. Node: Other poly_int arithmetic403435
  47880. Node: Alignment of poly_ints404841
  47881. Node: Computing bounds on poly_ints408118
  47882. Node: Converting poly_ints409507
  47883. Node: Miscellaneous poly_int routines413054
  47884. Node: Guidelines for using poly_int413694
  47885. Node: GENERIC418626
  47886. Node: Deficiencies420448
  47887. Node: Tree overview420689
  47888. Node: Macros and Functions424813
  47889. Node: Identifiers425638
  47890. Node: Containers427247
  47891. Node: Types428404
  47892. Node: Declarations440815
  47893. Node: Working with declarations441310
  47894. Node: Internal structure446914
  47895. Node: Current structure hierarchy447298
  47896. Node: Adding new DECL node types449391
  47897. Node: Attributes453675
  47898. Node: Expression trees454919
  47899. Node: Constant expressions456673
  47900. Node: Storage References462765
  47901. Node: Unary and Binary Expressions466284
  47902. Node: Vectors487186
  47903. Node: Statements495676
  47904. Node: Basic Statements496208
  47905. Node: Blocks500983
  47906. Node: Statement Sequences502684
  47907. Node: Empty Statements503017
  47908. Node: Jumps503591
  47909. Node: Cleanups504244
  47910. Node: OpenMP506285
  47911. Node: OpenACC512130
  47912. Node: Functions513247
  47913. Node: Function Basics513718
  47914. Node: Function Properties517402
  47915. Node: Language-dependent trees520183
  47916. Node: C and C++ Trees521070
  47917. Node: Types for C++523955
  47918. Node: Namespaces528925
  47919. Node: Classes532031
  47920. Node: Functions for C++536939
  47921. Node: Statements for C and C++543196
  47922. Node: C++ Expressions551703
  47923. Node: GIMPLE553214
  47924. Node: Tuple representation556879
  47925. Node: Class hierarchy of GIMPLE statements563839
  47926. Node: GIMPLE instruction set568827
  47927. Node: GIMPLE Exception Handling570459
  47928. Node: Temporaries572371
  47929. Ref: Temporaries-Footnote-1573689
  47930. Node: Operands573754
  47931. Node: Compound Expressions574515
  47932. Node: Compound Lvalues574749
  47933. Node: Conditional Expressions575511
  47934. Node: Logical Operators576170
  47935. Node: Manipulating GIMPLE statements583532
  47936. Node: Tuple specific accessors589468
  47937. Node: GIMPLE_ASM590247
  47938. Node: GIMPLE_ASSIGN592630
  47939. Node: GIMPLE_BIND597334
  47940. Node: GIMPLE_CALL599148
  47941. Node: GIMPLE_CATCH603289
  47942. Node: GIMPLE_COND604439
  47943. Node: GIMPLE_DEBUG607234
  47944. Node: GIMPLE_EH_FILTER611832
  47945. Node: GIMPLE_LABEL613395
  47946. Node: GIMPLE_GOTO614008
  47947. Node: GIMPLE_NOP614531
  47948. Node: GIMPLE_OMP_ATOMIC_LOAD614893
  47949. Node: GIMPLE_OMP_ATOMIC_STORE615889
  47950. Node: GIMPLE_OMP_CONTINUE616588
  47951. Node: GIMPLE_OMP_CRITICAL618067
  47952. Node: GIMPLE_OMP_FOR619061
  47953. Node: GIMPLE_OMP_MASTER622477
  47954. Node: GIMPLE_OMP_ORDERED622855
  47955. Node: GIMPLE_OMP_PARALLEL623249
  47956. Node: GIMPLE_OMP_RETURN626018
  47957. Node: GIMPLE_OMP_SECTION626663
  47958. Node: GIMPLE_OMP_SECTIONS627323
  47959. Node: GIMPLE_OMP_SINGLE628933
  47960. Node: GIMPLE_PHI629879
  47961. Node: GIMPLE_RESX631158
  47962. Node: GIMPLE_RETURN631877
  47963. Node: GIMPLE_SWITCH632451
  47964. Node: GIMPLE_TRY634324
  47965. Node: GIMPLE_WITH_CLEANUP_EXPR636096
  47966. Node: GIMPLE sequences636975
  47967. Node: Sequence iterators640181
  47968. Node: Adding a new GIMPLE statement code648638
  47969. Node: Statement and operand traversals649983
  47970. Node: Tree SSA652575
  47971. Node: Annotations654363
  47972. Node: SSA Operands654768
  47973. Node: SSA668571
  47974. Node: Alias analysis678277
  47975. Node: Memory model682051
  47976. Node: RTL683410
  47977. Node: RTL Objects685652
  47978. Node: RTL Classes689536
  47979. Node: Accessors694835
  47980. Node: Special Accessors697008
  47981. Node: Flags702795
  47982. Node: Machine Modes718058
  47983. Node: Constants735682
  47984. Node: Regs and Memory747481
  47985. Node: Arithmetic766879
  47986. Node: Comparisons777054
  47987. Node: Bit-Fields781346
  47988. Node: Vector Operations782897
  47989. Node: Conversions785001
  47990. Node: RTL Declarations789499
  47991. Node: Side Effects790343
  47992. Node: Incdec807352
  47993. Node: Assembler810688
  47994. Node: Debug Information812233
  47995. Node: Insns814160
  47996. Node: Calls842016
  47997. Node: RTL SSA844609
  47998. Node: Using RTL SSA846000
  47999. Node: RTL SSA Instructions847917
  48000. Ref: RTL SSA Instructions-Footnote-1849303
  48001. Node: RTL SSA Basic Blocks849437
  48002. Ref: real RTL SSA insns849905
  48003. Ref: RTL SSA Basic Blocks-Footnote-1852127
  48004. Node: RTL SSA Resources852261
  48005. Node: RTL SSA Accesses853378
  48006. Ref: RTL SSA Accesses-Footnote-1855079
  48007. Node: RTL SSA Phi Nodes855222
  48008. Node: RTL SSA Access Lists857226
  48009. Node: Changing RTL Instructions861507
  48010. Node: Changing One RTL SSA Instruction862116
  48011. Node: Changing Multiple RTL SSA Instructions867051
  48012. Node: Sharing871294
  48013. Node: Reading RTL874491
  48014. Node: Control Flow875482
  48015. Node: Basic Blocks877250
  48016. Node: Edges882704
  48017. Node: Profile information891323
  48018. Node: Maintaining the CFG896007
  48019. Node: Liveness information901775
  48020. Node: Loop Analysis and Representation903901
  48021. Node: Loop representation904937
  48022. Node: Loop querying912303
  48023. Node: Loop manipulation915124
  48024. Node: LCSSA917460
  48025. Node: Scalar evolutions919529
  48026. Node: loop-iv922773
  48027. Node: Number of iterations924695
  48028. Node: Dependency analysis928776
  48029. Node: Machine Desc935127
  48030. Node: Overview937690
  48031. Node: Patterns939730
  48032. Node: Example944697
  48033. Node: RTL Template946158
  48034. Node: Output Template956814
  48035. Node: Output Statement960995
  48036. Node: Predicates965334
  48037. Node: Machine-Independent Predicates968252
  48038. Node: Defining Predicates973196
  48039. Node: Constraints979159
  48040. Node: Simple Constraints980628
  48041. Node: Multi-Alternative993468
  48042. Node: Class Preferences996677
  48043. Node: Modifiers997569
  48044. Node: Machine Constraints1002303
  48045. Node: Disable Insn Alternatives1064407
  48046. Node: Define Constraints1067899
  48047. Node: C Constraint Interface1076488
  48048. Node: Standard Names1079615
  48049. Ref: shift patterns1117835
  48050. Ref: prologue instruction pattern1177743
  48051. Ref: window_save instruction pattern1178236
  48052. Ref: epilogue instruction pattern1178513
  48053. Node: Pattern Ordering1200489
  48054. Node: Dependent Patterns1201725
  48055. Node: Jump Patterns1203345
  48056. Ref: Jump Patterns-Footnote-11205490
  48057. Node: Looping Patterns1205538
  48058. Node: Insn Canonicalizations1211177
  48059. Node: Expander Definitions1216384
  48060. Node: Insn Splitting1224598
  48061. Node: Including Patterns1239628
  48062. Node: Peephole Definitions1241412
  48063. Node: define_peephole1242665
  48064. Node: define_peephole21248995
  48065. Node: Insn Attributes1253084
  48066. Node: Defining Attributes1254266
  48067. Ref: define_enum_attr1257758
  48068. Node: Expressions1258794
  48069. Node: Tagging Insns1265544
  48070. Node: Attr Example1269897
  48071. Node: Insn Lengths1272270
  48072. Node: Constant Attributes1275678
  48073. Node: Mnemonic Attribute1276854
  48074. Node: Delay Slots1278373
  48075. Node: Processor pipeline description1281596
  48076. Ref: Processor pipeline description-Footnote-11300408
  48077. Node: Conditional Execution1300732
  48078. Node: Define Subst1304215
  48079. Node: Define Subst Example1306250
  48080. Node: Define Subst Pattern Matching1309245
  48081. Node: Define Subst Output Template1310471
  48082. Node: Constant Definitions1312794
  48083. Ref: define_enum1316576
  48084. Node: Iterators1317064
  48085. Node: Mode Iterators1317709
  48086. Node: Defining Mode Iterators1318687
  48087. Node: Substitutions1320181
  48088. Node: Examples1322423
  48089. Node: Code Iterators1323871
  48090. Node: Int Iterators1327001
  48091. Node: Subst Iterators1329465
  48092. Node: Parameterized Names1331185
  48093. Node: Target Macros1335203
  48094. Node: Target Structure1338266
  48095. Node: Driver1340758
  48096. Node: Run-time Target1359728
  48097. Node: Per-Function Data1369261
  48098. Node: Storage Layout1372025
  48099. Node: Type Layout1399679
  48100. Node: Registers1413020
  48101. Node: Register Basics1413994
  48102. Node: Allocation Order1421556
  48103. Node: Values in Registers1424040
  48104. Node: Leaf Functions1431516
  48105. Node: Stack Registers1434375
  48106. Node: Register Classes1435647
  48107. Node: Stack and Calling1470429
  48108. Node: Frame Layout1471035
  48109. Node: Exception Handling1482870
  48110. Node: Stack Checking1489080
  48111. Node: Frame Registers1494705
  48112. Node: Elimination1503256
  48113. Node: Stack Arguments1507112
  48114. Node: Register Arguments1514308
  48115. Node: Scalar Return1539169
  48116. Node: Aggregate Return1545625
  48117. Node: Caller Saves1550179
  48118. Node: Function Entry1550921
  48119. Node: Profiling1562473
  48120. Node: Tail Calls1564583
  48121. Node: Shrink-wrapping separate components1566493
  48122. Node: Stack Smashing Protection1569534
  48123. Node: Miscellaneous Register Hooks1572023
  48124. Node: Varargs1572888
  48125. Node: Trampolines1582288
  48126. Node: Library Calls1591785
  48127. Node: Addressing Modes1596871
  48128. Node: Anchored Addresses1625920
  48129. Node: Condition Code1628563
  48130. Node: CC0 Condition Codes1630890
  48131. Node: MODE_CC Condition Codes1634136
  48132. Node: Costs1640962
  48133. Node: Scheduling1662924
  48134. Node: Sections1686846
  48135. Node: PIC1703211
  48136. Node: Assembler Format1705270
  48137. Node: File Framework1706408
  48138. Ref: TARGET_HAVE_SWITCHABLE_BSS_SECTIONS1714007
  48139. Node: Data Output1715682
  48140. Node: Uninitialized Data1723970
  48141. Node: Label Output1728984
  48142. Node: Initialization1753595
  48143. Node: Macros for Initialization1759556
  48144. Node: Instruction Output1766275
  48145. Node: Dispatch Tables1776904
  48146. Node: Exception Region Output1782655
  48147. Node: Alignment Output1789737
  48148. Node: Debugging Info1793424
  48149. Node: All Debuggers1794078
  48150. Node: DBX Options1796850
  48151. Node: DBX Hooks1802288
  48152. Node: File Names and DBX1803597
  48153. Node: DWARF1805701
  48154. Node: VMS Debug1811516
  48155. Node: Floating Point1812095
  48156. Node: Mode Switching1814850
  48157. Node: Target Attributes1819287
  48158. Node: Emulated TLS1828763
  48159. Node: MIPS Coprocessors1832153
  48160. Node: PCH Target1833312
  48161. Node: C++ ABI1835154
  48162. Node: D Language and ABI1839946
  48163. Node: Named Address Spaces1842889
  48164. Node: Misc1848816
  48165. Ref: TARGET_SHIFT_TRUNCATION_MASK1856687
  48166. Node: Host Config1915773
  48167. Node: Host Common1916842
  48168. Node: Filesystem1919216
  48169. Node: Host Misc1923331
  48170. Node: Fragments1925780
  48171. Node: Target Fragment1926975
  48172. Node: Host Fragment1937787
  48173. Node: Collect21938027
  48174. Node: Header Dirs1940663
  48175. Node: Type Information1942086
  48176. Node: GTY Options1945362
  48177. Node: Inheritance and GTY1956621
  48178. Ref: Inheritance and GTY-Footnote-11958186
  48179. Node: User GC1958456
  48180. Node: GGC Roots1962195
  48181. Node: Files1962908
  48182. Node: Invoking the garbage collector1965615
  48183. Node: Troubleshooting1967120
  48184. Node: Plugins1968195
  48185. Node: Plugins loading1969324
  48186. Node: Plugin API1970423
  48187. Node: Plugins pass1978290
  48188. Node: Plugins GC1980261
  48189. Node: Plugins description1981978
  48190. Node: Plugins attr1982514
  48191. Node: Plugins recording1984794
  48192. Node: Plugins gate1985644
  48193. Node: Plugins tracking1986235
  48194. Node: Plugins building1986823
  48195. Node: LTO1990324
  48196. Node: LTO Overview1991196
  48197. Node: LTO object file layout1997023
  48198. Node: IPA2001653
  48199. Node: WHOPR2010703
  48200. Node: Internal flags2015263
  48201. Node: Match and Simplify2016674
  48202. Node: GIMPLE API2017636
  48203. Node: The Language2020431
  48204. Node: Static Analyzer2032930
  48205. Node: Analyzer Internals2033195
  48206. Node: Debugging the Analyzer2049082
  48207. Node: User Experience Guidelines2051519
  48208. Node: Guidelines for Diagnostics2052455
  48209. Ref: input_location_example2060630
  48210. Node: Guidelines for Options2070315
  48211. Node: Funding2070492
  48212. Node: GNU Project2072999
  48213. Node: Copying2073648
  48214. Node: GNU Free Documentation License2111159
  48215. Node: Contributors2136280
  48216. Node: Option Index2177256
  48217. Node: Concept Index2178133
  48218. 
  48219. End Tag Table
  48220. 
  48221. Local Variables:
  48222. coding: utf-8
  48223. End: