gccint.info 2.4 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296
  1. This is gccint.info, produced by makeinfo version 5.2 from gccint.texi.
  2. Copyright (C) 1988-2017 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-2017 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
  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 (Linaro
  42. GCC 7.5-2019.12) version 7.5.0. The use of the GNU compilers is
  43. documented in a 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. * GENERIC:: Language-independent representation generated by Front Ends
  66. * GIMPLE:: Tuple representation used by Tree SSA optimizers
  67. * Tree SSA:: Analysis and optimization of GIMPLE
  68. * RTL:: Machine-dependent low-level intermediate representation.
  69. * Control Flow:: Maintaining and manipulating the control flow graph.
  70. * Loop Analysis and Representation:: Analysis and representation of loops
  71. * Machine Desc:: How to write machine description instruction patterns.
  72. * Target Macros:: How to write the machine description C macros and functions.
  73. * Host Config:: Writing the 'xm-MACHINE.h' file.
  74. * Fragments:: Writing the 't-TARGET' and 'x-HOST' files.
  75. * Collect2:: How 'collect2' works; how it finds 'ld'.
  76. * Header Dirs:: Understanding the standard header file directories.
  77. * Type Information:: GCC's memory management; generating type information.
  78. * Plugins:: Extending the compiler with plugins.
  79. * LTO:: Using Link-Time Optimization.
  80. * Match and Simplify:: How to write expression simplification patterns for GIMPLE and GENERIC
  81. * Funding:: How to help assure funding for free software.
  82. * GNU Project:: The GNU Project and GNU/Linux.
  83. * Copying:: GNU General Public License says
  84. how you can copy and share GCC.
  85. * GNU Free Documentation License:: How you can copy and share this manual.
  86. * Contributors:: People who have contributed to GCC.
  87. * Option Index:: Index to command line options.
  88. * Concept Index:: Index of concepts and symbol names.
  89. 
  90. File: gccint.info, Node: Contributing, Next: Portability, Up: Top
  91. 1 Contributing to GCC Development
  92. *********************************
  93. If you would like to help pretest GCC releases to assure they work well,
  94. current development sources are available by SVN (see
  95. <http://gcc.gnu.org/svn.html>). Source and binary snapshots are also
  96. available for FTP; see <http://gcc.gnu.org/snapshots.html>.
  97. If you would like to work on improvements to GCC, please read the
  98. advice at these URLs:
  99. <http://gcc.gnu.org/contribute.html>
  100. <http://gcc.gnu.org/contributewhy.html>
  101. for information on how to make useful contributions and avoid
  102. duplication of effort. Suggested projects are listed at
  103. <http://gcc.gnu.org/projects/>.
  104. 
  105. File: gccint.info, Node: Portability, Next: Interface, Prev: Contributing, Up: Top
  106. 2 GCC and Portability
  107. *********************
  108. GCC itself aims to be portable to any machine where 'int' is at least a
  109. 32-bit type. It aims to target machines with a flat (non-segmented)
  110. byte addressed data address space (the code address space can be
  111. separate). Target ABIs may have 8, 16, 32 or 64-bit 'int' type. 'char'
  112. can be wider than 8 bits.
  113. GCC gets most of the information about the target machine from a
  114. machine description which gives an algebraic formula for each of the
  115. machine's instructions. This is a very clean way to describe the
  116. target. But when the compiler needs information that is difficult to
  117. express in this fashion, ad-hoc parameters have been defined for machine
  118. descriptions. The purpose of portability is to reduce the total work
  119. needed on the compiler; it was not of interest for its own sake.
  120. GCC does not contain machine dependent code, but it does contain code
  121. that depends on machine parameters such as endianness (whether the most
  122. significant byte has the highest or lowest address of the bytes in a
  123. word) and the availability of autoincrement addressing. In the
  124. RTL-generation pass, it is often necessary to have multiple strategies
  125. for generating code for a particular kind of syntax tree, strategies
  126. that are usable for different combinations of parameters. Often, not
  127. all possible cases have been addressed, but only the common ones or only
  128. the ones that have been encountered. As a result, a new target may
  129. require additional strategies. You will know if this happens because
  130. the compiler will call 'abort'. Fortunately, the new strategies can be
  131. added in a machine-independent fashion, and will affect only the target
  132. machines that need them.
  133. 
  134. File: gccint.info, Node: Interface, Next: Libgcc, Prev: Portability, Up: Top
  135. 3 Interfacing to GCC Output
  136. ***************************
  137. GCC is normally configured to use the same function calling convention
  138. normally in use on the target system. This is done with the
  139. machine-description macros described (*note Target Macros::).
  140. However, returning of structure and union values is done differently on
  141. some target machines. As a result, functions compiled with PCC
  142. returning such types cannot be called from code compiled with GCC, and
  143. vice versa. This does not cause trouble often because few Unix library
  144. routines return structures or unions.
  145. GCC code returns structures and unions that are 1, 2, 4 or 8 bytes long
  146. in the same registers used for 'int' or 'double' return values. (GCC
  147. typically allocates variables of such types in registers also.)
  148. Structures and unions of other sizes are returned by storing them into
  149. an address passed by the caller (usually in a register). The target
  150. hook 'TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
  151. By contrast, PCC on most target machines returns structures and unions
  152. of any size by copying the data into an area of static storage, and then
  153. returning the address of that storage as if it were a pointer value.
  154. The caller must copy the data from that memory area to the place where
  155. the value is wanted. This is slower than the method used by GCC, and
  156. fails to be reentrant.
  157. On some target machines, such as RISC machines and the 80386, the
  158. standard system convention is to pass to the subroutine the address of
  159. where to return the value. On these machines, GCC has been configured
  160. to be compatible with the standard compiler, when this method is used.
  161. It may not be compatible for structures of 1, 2, 4 or 8 bytes.
  162. GCC uses the system's standard convention for passing arguments. On
  163. some machines, the first few arguments are passed in registers; in
  164. others, all are passed on the stack. It would be possible to use
  165. registers for argument passing on any machine, and this would probably
  166. result in a significant speedup. But the result would be complete
  167. incompatibility with code that follows the standard convention. So this
  168. change is practical only if you are switching to GCC as the sole C
  169. compiler for the system. We may implement register argument passing on
  170. certain machines once we have a complete GNU system so that we can
  171. compile the libraries with GCC.
  172. On some machines (particularly the SPARC), certain types of arguments
  173. are passed "by invisible reference". This means that the value is
  174. stored in memory, and the address of the memory location is passed to
  175. the subroutine.
  176. If you use 'longjmp', beware of automatic variables. ISO C says that
  177. automatic variables that are not declared 'volatile' have undefined
  178. values after a 'longjmp'. And this is all GCC promises to do, because
  179. it is very difficult to restore register variables correctly, and one of
  180. GCC's features is that it can put variables in registers without your
  181. asking it to.
  182. 
  183. File: gccint.info, Node: Libgcc, Next: Languages, Prev: Interface, Up: Top
  184. 4 The GCC low-level runtime library
  185. ***********************************
  186. GCC provides a low-level runtime library, 'libgcc.a' or 'libgcc_s.so.1'
  187. on some platforms. GCC generates calls to routines in this library
  188. automatically, whenever it needs to perform some operation that is too
  189. complicated to emit inline code for.
  190. Most of the routines in 'libgcc' handle arithmetic operations that the
  191. target processor cannot perform directly. This includes integer
  192. multiply and divide on some machines, and all floating-point and
  193. fixed-point operations on other machines. 'libgcc' also includes
  194. routines for exception handling, and a handful of miscellaneous
  195. operations.
  196. Some of these routines can be defined in mostly machine-independent C.
  197. Others must be hand-written in assembly language for each processor that
  198. needs them.
  199. GCC will also generate calls to C library routines, such as 'memcpy'
  200. and 'memset', in some cases. The set of routines that GCC may possibly
  201. use is documented in *note (gcc)Other Builtins::.
  202. These routines take arguments and return values of a specific machine
  203. mode, not a specific C type. *Note Machine Modes::, for an explanation
  204. of this concept. For illustrative purposes, in this chapter the
  205. floating point type 'float' is assumed to correspond to 'SFmode';
  206. 'double' to 'DFmode'; and 'long double' to both 'TFmode' and 'XFmode'.
  207. Similarly, the integer types 'int' and 'unsigned int' correspond to
  208. 'SImode'; 'long' and 'unsigned long' to 'DImode'; and 'long long' and
  209. 'unsigned long long' to 'TImode'.
  210. * Menu:
  211. * Integer library routines::
  212. * Soft float library routines::
  213. * Decimal float library routines::
  214. * Fixed-point fractional library routines::
  215. * Exception handling routines::
  216. * Miscellaneous routines::
  217. 
  218. File: gccint.info, Node: Integer library routines, Next: Soft float library routines, Up: Libgcc
  219. 4.1 Routines for integer arithmetic
  220. ===================================
  221. The integer arithmetic routines are used on platforms that don't provide
  222. hardware support for arithmetic operations on some modes.
  223. 4.1.1 Arithmetic functions
  224. --------------------------
  225. -- Runtime Function: int __ashlsi3 (int A, int B)
  226. -- Runtime Function: long __ashldi3 (long A, int B)
  227. -- Runtime Function: long long __ashlti3 (long long A, int B)
  228. These functions return the result of shifting A left by B bits.
  229. -- Runtime Function: int __ashrsi3 (int A, int B)
  230. -- Runtime Function: long __ashrdi3 (long A, int B)
  231. -- Runtime Function: long long __ashrti3 (long long A, int B)
  232. These functions return the result of arithmetically shifting A
  233. right by B bits.
  234. -- Runtime Function: int __divsi3 (int A, int B)
  235. -- Runtime Function: long __divdi3 (long A, long B)
  236. -- Runtime Function: long long __divti3 (long long A, long long B)
  237. These functions return the quotient of the signed division of A and
  238. B.
  239. -- Runtime Function: int __lshrsi3 (int A, int B)
  240. -- Runtime Function: long __lshrdi3 (long A, int B)
  241. -- Runtime Function: long long __lshrti3 (long long A, int B)
  242. These functions return the result of logically shifting A right by
  243. B bits.
  244. -- Runtime Function: int __modsi3 (int A, int B)
  245. -- Runtime Function: long __moddi3 (long A, long B)
  246. -- Runtime Function: long long __modti3 (long long A, long long B)
  247. These functions return the remainder of the signed division of A
  248. and B.
  249. -- Runtime Function: int __mulsi3 (int A, int B)
  250. -- Runtime Function: long __muldi3 (long A, long B)
  251. -- Runtime Function: long long __multi3 (long long A, long long B)
  252. These functions return the product of A and B.
  253. -- Runtime Function: long __negdi2 (long A)
  254. -- Runtime Function: long long __negti2 (long long A)
  255. These functions return the negation of A.
  256. -- Runtime Function: unsigned int __udivsi3 (unsigned int A, unsigned
  257. int B)
  258. -- Runtime Function: unsigned long __udivdi3 (unsigned long A, unsigned
  259. long B)
  260. -- Runtime Function: unsigned long long __udivti3 (unsigned long long
  261. A, unsigned long long B)
  262. These functions return the quotient of the unsigned division of A
  263. and B.
  264. -- Runtime Function: unsigned long __udivmoddi4 (unsigned long A,
  265. unsigned long B, unsigned long *C)
  266. -- Runtime Function: unsigned long long __udivmodti4 (unsigned long
  267. long A, unsigned long long B, unsigned long long *C)
  268. These functions calculate both the quotient and remainder of the
  269. unsigned division of A and B. The return value is the quotient,
  270. and the remainder is placed in variable pointed to by C.
  271. -- Runtime Function: unsigned int __umodsi3 (unsigned int A, unsigned
  272. int B)
  273. -- Runtime Function: unsigned long __umoddi3 (unsigned long A, unsigned
  274. long B)
  275. -- Runtime Function: unsigned long long __umodti3 (unsigned long long
  276. A, unsigned long long B)
  277. These functions return the remainder of the unsigned division of A
  278. and B.
  279. 4.1.2 Comparison functions
  280. --------------------------
  281. The following functions implement integral comparisons. These functions
  282. implement a low-level compare, upon which the higher level comparison
  283. operators (such as less than and greater than or equal to) can be
  284. constructed. The returned values lie in the range zero to two, to allow
  285. the high-level operators to be implemented by testing the returned
  286. result using either signed or unsigned comparison.
  287. -- Runtime Function: int __cmpdi2 (long A, long B)
  288. -- Runtime Function: int __cmpti2 (long long A, long long B)
  289. These functions perform a signed comparison of A and B. If A is
  290. less than B, they return 0; if A is greater than B, they return 2;
  291. and if A and B are equal they return 1.
  292. -- Runtime Function: int __ucmpdi2 (unsigned long A, unsigned long B)
  293. -- Runtime Function: int __ucmpti2 (unsigned long long A, unsigned long
  294. long B)
  295. These functions perform an unsigned comparison of A and B. If A is
  296. less than B, they return 0; if A is greater than B, they return 2;
  297. and if A and B are equal they return 1.
  298. 4.1.3 Trapping arithmetic functions
  299. -----------------------------------
  300. The following functions implement trapping arithmetic. These functions
  301. call the libc function 'abort' upon signed arithmetic overflow.
  302. -- Runtime Function: int __absvsi2 (int A)
  303. -- Runtime Function: long __absvdi2 (long A)
  304. These functions return the absolute value of A.
  305. -- Runtime Function: int __addvsi3 (int A, int B)
  306. -- Runtime Function: long __addvdi3 (long A, long B)
  307. These functions return the sum of A and B; that is 'A + B'.
  308. -- Runtime Function: int __mulvsi3 (int A, int B)
  309. -- Runtime Function: long __mulvdi3 (long A, long B)
  310. The functions return the product of A and B; that is 'A * B'.
  311. -- Runtime Function: int __negvsi2 (int A)
  312. -- Runtime Function: long __negvdi2 (long A)
  313. These functions return the negation of A; that is '-A'.
  314. -- Runtime Function: int __subvsi3 (int A, int B)
  315. -- Runtime Function: long __subvdi3 (long A, long B)
  316. These functions return the difference between B and A; that is 'A -
  317. B'.
  318. 4.1.4 Bit operations
  319. --------------------
  320. -- Runtime Function: int __clzsi2 (unsigned int A)
  321. -- Runtime Function: int __clzdi2 (unsigned long A)
  322. -- Runtime Function: int __clzti2 (unsigned long long A)
  323. These functions return the number of leading 0-bits in A, starting
  324. at the most significant bit position. If A is zero, the result is
  325. undefined.
  326. -- Runtime Function: int __ctzsi2 (unsigned int A)
  327. -- Runtime Function: int __ctzdi2 (unsigned long A)
  328. -- Runtime Function: int __ctzti2 (unsigned long long A)
  329. These functions return the number of trailing 0-bits in A, starting
  330. at the least significant bit position. If A is zero, the result is
  331. undefined.
  332. -- Runtime Function: int __ffsdi2 (unsigned long A)
  333. -- Runtime Function: int __ffsti2 (unsigned long long A)
  334. These functions return the index of the least significant 1-bit in
  335. A, or the value zero if A is zero. The least significant bit is
  336. index one.
  337. -- Runtime Function: int __paritysi2 (unsigned int A)
  338. -- Runtime Function: int __paritydi2 (unsigned long A)
  339. -- Runtime Function: int __parityti2 (unsigned long long A)
  340. These functions return the value zero if the number of bits set in
  341. A is even, and the value one otherwise.
  342. -- Runtime Function: int __popcountsi2 (unsigned int A)
  343. -- Runtime Function: int __popcountdi2 (unsigned long A)
  344. -- Runtime Function: int __popcountti2 (unsigned long long A)
  345. These functions return the number of bits set in A.
  346. -- Runtime Function: int32_t __bswapsi2 (int32_t A)
  347. -- Runtime Function: int64_t __bswapdi2 (int64_t A)
  348. These functions return the A byteswapped.
  349. 
  350. File: gccint.info, Node: Soft float library routines, Next: Decimal float library routines, Prev: Integer library routines, Up: Libgcc
  351. 4.2 Routines for floating point emulation
  352. =========================================
  353. The software floating point library is used on machines which do not
  354. have hardware support for floating point. It is also used whenever
  355. '-msoft-float' is used to disable generation of floating point
  356. instructions. (Not all targets support this switch.)
  357. For compatibility with other compilers, the floating point emulation
  358. routines can be renamed with the 'DECLARE_LIBRARY_RENAMES' macro (*note
  359. Library Calls::). In this section, the default names are used.
  360. Presently the library does not support 'XFmode', which is used for
  361. 'long double' on some architectures.
  362. 4.2.1 Arithmetic functions
  363. --------------------------
  364. -- Runtime Function: float __addsf3 (float A, float B)
  365. -- Runtime Function: double __adddf3 (double A, double B)
  366. -- Runtime Function: long double __addtf3 (long double A, long double
  367. B)
  368. -- Runtime Function: long double __addxf3 (long double A, long double
  369. B)
  370. These functions return the sum of A and B.
  371. -- Runtime Function: float __subsf3 (float A, float B)
  372. -- Runtime Function: double __subdf3 (double A, double B)
  373. -- Runtime Function: long double __subtf3 (long double A, long double
  374. B)
  375. -- Runtime Function: long double __subxf3 (long double A, long double
  376. B)
  377. These functions return the difference between B and A; that is,
  378. A - B.
  379. -- Runtime Function: float __mulsf3 (float A, float B)
  380. -- Runtime Function: double __muldf3 (double A, double B)
  381. -- Runtime Function: long double __multf3 (long double A, long double
  382. B)
  383. -- Runtime Function: long double __mulxf3 (long double A, long double
  384. B)
  385. These functions return the product of A and B.
  386. -- Runtime Function: float __divsf3 (float A, float B)
  387. -- Runtime Function: double __divdf3 (double A, double B)
  388. -- Runtime Function: long double __divtf3 (long double A, long double
  389. B)
  390. -- Runtime Function: long double __divxf3 (long double A, long double
  391. B)
  392. These functions return the quotient of A and B; that is, A / B.
  393. -- Runtime Function: float __negsf2 (float A)
  394. -- Runtime Function: double __negdf2 (double A)
  395. -- Runtime Function: long double __negtf2 (long double A)
  396. -- Runtime Function: long double __negxf2 (long double A)
  397. These functions return the negation of A. They simply flip the
  398. sign bit, so they can produce negative zero and negative NaN.
  399. 4.2.2 Conversion functions
  400. --------------------------
  401. -- Runtime Function: double __extendsfdf2 (float A)
  402. -- Runtime Function: long double __extendsftf2 (float A)
  403. -- Runtime Function: long double __extendsfxf2 (float A)
  404. -- Runtime Function: long double __extenddftf2 (double A)
  405. -- Runtime Function: long double __extenddfxf2 (double A)
  406. These functions extend A to the wider mode of their return type.
  407. -- Runtime Function: double __truncxfdf2 (long double A)
  408. -- Runtime Function: double __trunctfdf2 (long double A)
  409. -- Runtime Function: float __truncxfsf2 (long double A)
  410. -- Runtime Function: float __trunctfsf2 (long double A)
  411. -- Runtime Function: float __truncdfsf2 (double A)
  412. These functions truncate A to the narrower mode of their return
  413. type, rounding toward zero.
  414. -- Runtime Function: int __fixsfsi (float A)
  415. -- Runtime Function: int __fixdfsi (double A)
  416. -- Runtime Function: int __fixtfsi (long double A)
  417. -- Runtime Function: int __fixxfsi (long double A)
  418. These functions convert A to a signed integer, rounding toward
  419. zero.
  420. -- Runtime Function: long __fixsfdi (float A)
  421. -- Runtime Function: long __fixdfdi (double A)
  422. -- Runtime Function: long __fixtfdi (long double A)
  423. -- Runtime Function: long __fixxfdi (long double A)
  424. These functions convert A to a signed long, rounding toward zero.
  425. -- Runtime Function: long long __fixsfti (float A)
  426. -- Runtime Function: long long __fixdfti (double A)
  427. -- Runtime Function: long long __fixtfti (long double A)
  428. -- Runtime Function: long long __fixxfti (long double A)
  429. These functions convert A to a signed long long, rounding toward
  430. zero.
  431. -- Runtime Function: unsigned int __fixunssfsi (float A)
  432. -- Runtime Function: unsigned int __fixunsdfsi (double A)
  433. -- Runtime Function: unsigned int __fixunstfsi (long double A)
  434. -- Runtime Function: unsigned int __fixunsxfsi (long double A)
  435. These functions convert A to an unsigned integer, rounding toward
  436. zero. Negative values all become zero.
  437. -- Runtime Function: unsigned long __fixunssfdi (float A)
  438. -- Runtime Function: unsigned long __fixunsdfdi (double A)
  439. -- Runtime Function: unsigned long __fixunstfdi (long double A)
  440. -- Runtime Function: unsigned long __fixunsxfdi (long double A)
  441. These functions convert A to an unsigned long, rounding toward
  442. zero. Negative values all become zero.
  443. -- Runtime Function: unsigned long long __fixunssfti (float A)
  444. -- Runtime Function: unsigned long long __fixunsdfti (double A)
  445. -- Runtime Function: unsigned long long __fixunstfti (long double A)
  446. -- Runtime Function: unsigned long long __fixunsxfti (long double A)
  447. These functions convert A to an unsigned long long, rounding toward
  448. zero. Negative values all become zero.
  449. -- Runtime Function: float __floatsisf (int I)
  450. -- Runtime Function: double __floatsidf (int I)
  451. -- Runtime Function: long double __floatsitf (int I)
  452. -- Runtime Function: long double __floatsixf (int I)
  453. These functions convert I, a signed integer, to floating point.
  454. -- Runtime Function: float __floatdisf (long I)
  455. -- Runtime Function: double __floatdidf (long I)
  456. -- Runtime Function: long double __floatditf (long I)
  457. -- Runtime Function: long double __floatdixf (long I)
  458. These functions convert I, a signed long, to floating point.
  459. -- Runtime Function: float __floattisf (long long I)
  460. -- Runtime Function: double __floattidf (long long I)
  461. -- Runtime Function: long double __floattitf (long long I)
  462. -- Runtime Function: long double __floattixf (long long I)
  463. These functions convert I, a signed long long, to floating point.
  464. -- Runtime Function: float __floatunsisf (unsigned int I)
  465. -- Runtime Function: double __floatunsidf (unsigned int I)
  466. -- Runtime Function: long double __floatunsitf (unsigned int I)
  467. -- Runtime Function: long double __floatunsixf (unsigned int I)
  468. These functions convert I, an unsigned integer, to floating point.
  469. -- Runtime Function: float __floatundisf (unsigned long I)
  470. -- Runtime Function: double __floatundidf (unsigned long I)
  471. -- Runtime Function: long double __floatunditf (unsigned long I)
  472. -- Runtime Function: long double __floatundixf (unsigned long I)
  473. These functions convert I, an unsigned long, to floating point.
  474. -- Runtime Function: float __floatuntisf (unsigned long long I)
  475. -- Runtime Function: double __floatuntidf (unsigned long long I)
  476. -- Runtime Function: long double __floatuntitf (unsigned long long I)
  477. -- Runtime Function: long double __floatuntixf (unsigned long long I)
  478. These functions convert I, an unsigned long long, to floating
  479. point.
  480. 4.2.3 Comparison functions
  481. --------------------------
  482. There are two sets of basic comparison functions.
  483. -- Runtime Function: int __cmpsf2 (float A, float B)
  484. -- Runtime Function: int __cmpdf2 (double A, double B)
  485. -- Runtime Function: int __cmptf2 (long double A, long double B)
  486. These functions calculate a <=> b. That is, if A is less than B,
  487. they return -1; if A is greater than B, they return 1; and if A and
  488. B are equal they return 0. If either argument is NaN they return
  489. 1, but you should not rely on this; if NaN is a possibility, use
  490. one of the higher-level comparison functions.
  491. -- Runtime Function: int __unordsf2 (float A, float B)
  492. -- Runtime Function: int __unorddf2 (double A, double B)
  493. -- Runtime Function: int __unordtf2 (long double A, long double B)
  494. These functions return a nonzero value if either argument is NaN,
  495. otherwise 0.
  496. There is also a complete group of higher level functions which
  497. correspond directly to comparison operators. They implement the ISO C
  498. semantics for floating-point comparisons, taking NaN into account. Pay
  499. careful attention to the return values defined for each set. Under the
  500. hood, all of these routines are implemented as
  501. if (__unordXf2 (a, b))
  502. return E;
  503. return __cmpXf2 (a, b);
  504. where E is a constant chosen to give the proper behavior for NaN. Thus,
  505. the meaning of the return value is different for each set. Do not rely
  506. on this implementation; only the semantics documented below are
  507. guaranteed.
  508. -- Runtime Function: int __eqsf2 (float A, float B)
  509. -- Runtime Function: int __eqdf2 (double A, double B)
  510. -- Runtime Function: int __eqtf2 (long double A, long double B)
  511. These functions return zero if neither argument is NaN, and A and B
  512. are equal.
  513. -- Runtime Function: int __nesf2 (float A, float B)
  514. -- Runtime Function: int __nedf2 (double A, double B)
  515. -- Runtime Function: int __netf2 (long double A, long double B)
  516. These functions return a nonzero value if either argument is NaN,
  517. or if A and B are unequal.
  518. -- Runtime Function: int __gesf2 (float A, float B)
  519. -- Runtime Function: int __gedf2 (double A, double B)
  520. -- Runtime Function: int __getf2 (long double A, long double B)
  521. These functions return a value greater than or equal to zero if
  522. neither argument is NaN, and A is greater than or equal to B.
  523. -- Runtime Function: int __ltsf2 (float A, float B)
  524. -- Runtime Function: int __ltdf2 (double A, double B)
  525. -- Runtime Function: int __lttf2 (long double A, long double B)
  526. These functions return a value less than zero if neither argument
  527. is NaN, and A is strictly less than B.
  528. -- Runtime Function: int __lesf2 (float A, float B)
  529. -- Runtime Function: int __ledf2 (double A, double B)
  530. -- Runtime Function: int __letf2 (long double A, long double B)
  531. These functions return a value less than or equal to zero if
  532. neither argument is NaN, and A is less than or equal to B.
  533. -- Runtime Function: int __gtsf2 (float A, float B)
  534. -- Runtime Function: int __gtdf2 (double A, double B)
  535. -- Runtime Function: int __gttf2 (long double A, long double B)
  536. These functions return a value greater than zero if neither
  537. argument is NaN, and A is strictly greater than B.
  538. 4.2.4 Other floating-point functions
  539. ------------------------------------
  540. -- Runtime Function: float __powisf2 (float A, int B)
  541. -- Runtime Function: double __powidf2 (double A, int B)
  542. -- Runtime Function: long double __powitf2 (long double A, int B)
  543. -- Runtime Function: long double __powixf2 (long double A, int B)
  544. These functions convert raise A to the power B.
  545. -- Runtime Function: complex float __mulsc3 (float A, float B, float C,
  546. float D)
  547. -- Runtime Function: complex double __muldc3 (double A, double B,
  548. double C, double D)
  549. -- Runtime Function: complex long double __multc3 (long double A, long
  550. double B, long double C, long double D)
  551. -- Runtime Function: complex long double __mulxc3 (long double A, long
  552. double B, long double C, long double D)
  553. These functions return the product of A + iB and C + iD, following
  554. the rules of C99 Annex G.
  555. -- Runtime Function: complex float __divsc3 (float A, float B, float C,
  556. float D)
  557. -- Runtime Function: complex double __divdc3 (double A, double B,
  558. double C, double D)
  559. -- Runtime Function: complex long double __divtc3 (long double A, long
  560. double B, long double C, long double D)
  561. -- Runtime Function: complex long double __divxc3 (long double A, long
  562. double B, long double C, long double D)
  563. These functions return the quotient of A + iB and C + iD (i.e., (A
  564. + iB) / (C + iD)), following the rules of C99 Annex G.
  565. 
  566. File: gccint.info, Node: Decimal float library routines, Next: Fixed-point fractional library routines, Prev: Soft float library routines, Up: Libgcc
  567. 4.3 Routines for decimal floating point emulation
  568. =================================================
  569. The software decimal floating point library implements IEEE 754-2008
  570. decimal floating point arithmetic and is only activated on selected
  571. targets.
  572. The software decimal floating point library supports either DPD
  573. (Densely Packed Decimal) or BID (Binary Integer Decimal) encoding as
  574. selected at configure time.
  575. 4.3.1 Arithmetic functions
  576. --------------------------
  577. -- Runtime Function: _Decimal32 __dpd_addsd3 (_Decimal32 A, _Decimal32
  578. B)
  579. -- Runtime Function: _Decimal32 __bid_addsd3 (_Decimal32 A, _Decimal32
  580. B)
  581. -- Runtime Function: _Decimal64 __dpd_adddd3 (_Decimal64 A, _Decimal64
  582. B)
  583. -- Runtime Function: _Decimal64 __bid_adddd3 (_Decimal64 A, _Decimal64
  584. B)
  585. -- Runtime Function: _Decimal128 __dpd_addtd3 (_Decimal128 A,
  586. _Decimal128 B)
  587. -- Runtime Function: _Decimal128 __bid_addtd3 (_Decimal128 A,
  588. _Decimal128 B)
  589. These functions return the sum of A and B.
  590. -- Runtime Function: _Decimal32 __dpd_subsd3 (_Decimal32 A, _Decimal32
  591. B)
  592. -- Runtime Function: _Decimal32 __bid_subsd3 (_Decimal32 A, _Decimal32
  593. B)
  594. -- Runtime Function: _Decimal64 __dpd_subdd3 (_Decimal64 A, _Decimal64
  595. B)
  596. -- Runtime Function: _Decimal64 __bid_subdd3 (_Decimal64 A, _Decimal64
  597. B)
  598. -- Runtime Function: _Decimal128 __dpd_subtd3 (_Decimal128 A,
  599. _Decimal128 B)
  600. -- Runtime Function: _Decimal128 __bid_subtd3 (_Decimal128 A,
  601. _Decimal128 B)
  602. These functions return the difference between B and A; that is,
  603. A - B.
  604. -- Runtime Function: _Decimal32 __dpd_mulsd3 (_Decimal32 A, _Decimal32
  605. B)
  606. -- Runtime Function: _Decimal32 __bid_mulsd3 (_Decimal32 A, _Decimal32
  607. B)
  608. -- Runtime Function: _Decimal64 __dpd_muldd3 (_Decimal64 A, _Decimal64
  609. B)
  610. -- Runtime Function: _Decimal64 __bid_muldd3 (_Decimal64 A, _Decimal64
  611. B)
  612. -- Runtime Function: _Decimal128 __dpd_multd3 (_Decimal128 A,
  613. _Decimal128 B)
  614. -- Runtime Function: _Decimal128 __bid_multd3 (_Decimal128 A,
  615. _Decimal128 B)
  616. These functions return the product of A and B.
  617. -- Runtime Function: _Decimal32 __dpd_divsd3 (_Decimal32 A, _Decimal32
  618. B)
  619. -- Runtime Function: _Decimal32 __bid_divsd3 (_Decimal32 A, _Decimal32
  620. B)
  621. -- Runtime Function: _Decimal64 __dpd_divdd3 (_Decimal64 A, _Decimal64
  622. B)
  623. -- Runtime Function: _Decimal64 __bid_divdd3 (_Decimal64 A, _Decimal64
  624. B)
  625. -- Runtime Function: _Decimal128 __dpd_divtd3 (_Decimal128 A,
  626. _Decimal128 B)
  627. -- Runtime Function: _Decimal128 __bid_divtd3 (_Decimal128 A,
  628. _Decimal128 B)
  629. These functions return the quotient of A and B; that is, A / B.
  630. -- Runtime Function: _Decimal32 __dpd_negsd2 (_Decimal32 A)
  631. -- Runtime Function: _Decimal32 __bid_negsd2 (_Decimal32 A)
  632. -- Runtime Function: _Decimal64 __dpd_negdd2 (_Decimal64 A)
  633. -- Runtime Function: _Decimal64 __bid_negdd2 (_Decimal64 A)
  634. -- Runtime Function: _Decimal128 __dpd_negtd2 (_Decimal128 A)
  635. -- Runtime Function: _Decimal128 __bid_negtd2 (_Decimal128 A)
  636. These functions return the negation of A. They simply flip the
  637. sign bit, so they can produce negative zero and negative NaN.
  638. 4.3.2 Conversion functions
  639. --------------------------
  640. -- Runtime Function: _Decimal64 __dpd_extendsddd2 (_Decimal32 A)
  641. -- Runtime Function: _Decimal64 __bid_extendsddd2 (_Decimal32 A)
  642. -- Runtime Function: _Decimal128 __dpd_extendsdtd2 (_Decimal32 A)
  643. -- Runtime Function: _Decimal128 __bid_extendsdtd2 (_Decimal32 A)
  644. -- Runtime Function: _Decimal128 __dpd_extendddtd2 (_Decimal64 A)
  645. -- Runtime Function: _Decimal128 __bid_extendddtd2 (_Decimal64 A)
  646. -- Runtime Function: _Decimal32 __dpd_truncddsd2 (_Decimal64 A)
  647. -- Runtime Function: _Decimal32 __bid_truncddsd2 (_Decimal64 A)
  648. -- Runtime Function: _Decimal32 __dpd_trunctdsd2 (_Decimal128 A)
  649. -- Runtime Function: _Decimal32 __bid_trunctdsd2 (_Decimal128 A)
  650. -- Runtime Function: _Decimal64 __dpd_trunctddd2 (_Decimal128 A)
  651. -- Runtime Function: _Decimal64 __bid_trunctddd2 (_Decimal128 A)
  652. These functions convert the value A from one decimal floating type
  653. to another.
  654. -- Runtime Function: _Decimal64 __dpd_extendsfdd (float A)
  655. -- Runtime Function: _Decimal64 __bid_extendsfdd (float A)
  656. -- Runtime Function: _Decimal128 __dpd_extendsftd (float A)
  657. -- Runtime Function: _Decimal128 __bid_extendsftd (float A)
  658. -- Runtime Function: _Decimal128 __dpd_extenddftd (double A)
  659. -- Runtime Function: _Decimal128 __bid_extenddftd (double A)
  660. -- Runtime Function: _Decimal128 __dpd_extendxftd (long double A)
  661. -- Runtime Function: _Decimal128 __bid_extendxftd (long double A)
  662. -- Runtime Function: _Decimal32 __dpd_truncdfsd (double A)
  663. -- Runtime Function: _Decimal32 __bid_truncdfsd (double A)
  664. -- Runtime Function: _Decimal32 __dpd_truncxfsd (long double A)
  665. -- Runtime Function: _Decimal32 __bid_truncxfsd (long double A)
  666. -- Runtime Function: _Decimal32 __dpd_trunctfsd (long double A)
  667. -- Runtime Function: _Decimal32 __bid_trunctfsd (long double A)
  668. -- Runtime Function: _Decimal64 __dpd_truncxfdd (long double A)
  669. -- Runtime Function: _Decimal64 __bid_truncxfdd (long double A)
  670. -- Runtime Function: _Decimal64 __dpd_trunctfdd (long double A)
  671. -- Runtime Function: _Decimal64 __bid_trunctfdd (long double A)
  672. These functions convert the value of A from a binary floating type
  673. to a decimal floating type of a different size.
  674. -- Runtime Function: float __dpd_truncddsf (_Decimal64 A)
  675. -- Runtime Function: float __bid_truncddsf (_Decimal64 A)
  676. -- Runtime Function: float __dpd_trunctdsf (_Decimal128 A)
  677. -- Runtime Function: float __bid_trunctdsf (_Decimal128 A)
  678. -- Runtime Function: double __dpd_extendsddf (_Decimal32 A)
  679. -- Runtime Function: double __bid_extendsddf (_Decimal32 A)
  680. -- Runtime Function: double __dpd_trunctddf (_Decimal128 A)
  681. -- Runtime Function: double __bid_trunctddf (_Decimal128 A)
  682. -- Runtime Function: long double __dpd_extendsdxf (_Decimal32 A)
  683. -- Runtime Function: long double __bid_extendsdxf (_Decimal32 A)
  684. -- Runtime Function: long double __dpd_extendddxf (_Decimal64 A)
  685. -- Runtime Function: long double __bid_extendddxf (_Decimal64 A)
  686. -- Runtime Function: long double __dpd_trunctdxf (_Decimal128 A)
  687. -- Runtime Function: long double __bid_trunctdxf (_Decimal128 A)
  688. -- Runtime Function: long double __dpd_extendsdtf (_Decimal32 A)
  689. -- Runtime Function: long double __bid_extendsdtf (_Decimal32 A)
  690. -- Runtime Function: long double __dpd_extendddtf (_Decimal64 A)
  691. -- Runtime Function: long double __bid_extendddtf (_Decimal64 A)
  692. These functions convert the value of A from a decimal floating type
  693. to a binary floating type of a different size.
  694. -- Runtime Function: _Decimal32 __dpd_extendsfsd (float A)
  695. -- Runtime Function: _Decimal32 __bid_extendsfsd (float A)
  696. -- Runtime Function: _Decimal64 __dpd_extenddfdd (double A)
  697. -- Runtime Function: _Decimal64 __bid_extenddfdd (double A)
  698. -- Runtime Function: _Decimal128 __dpd_extendtftd (long double A)
  699. -- Runtime Function: _Decimal128 __bid_extendtftd (long double A)
  700. -- Runtime Function: float __dpd_truncsdsf (_Decimal32 A)
  701. -- Runtime Function: float __bid_truncsdsf (_Decimal32 A)
  702. -- Runtime Function: double __dpd_truncdddf (_Decimal64 A)
  703. -- Runtime Function: double __bid_truncdddf (_Decimal64 A)
  704. -- Runtime Function: long double __dpd_trunctdtf (_Decimal128 A)
  705. -- Runtime Function: long double __bid_trunctdtf (_Decimal128 A)
  706. These functions convert the value of A between decimal and binary
  707. floating types of the same size.
  708. -- Runtime Function: int __dpd_fixsdsi (_Decimal32 A)
  709. -- Runtime Function: int __bid_fixsdsi (_Decimal32 A)
  710. -- Runtime Function: int __dpd_fixddsi (_Decimal64 A)
  711. -- Runtime Function: int __bid_fixddsi (_Decimal64 A)
  712. -- Runtime Function: int __dpd_fixtdsi (_Decimal128 A)
  713. -- Runtime Function: int __bid_fixtdsi (_Decimal128 A)
  714. These functions convert A to a signed integer.
  715. -- Runtime Function: long __dpd_fixsddi (_Decimal32 A)
  716. -- Runtime Function: long __bid_fixsddi (_Decimal32 A)
  717. -- Runtime Function: long __dpd_fixdddi (_Decimal64 A)
  718. -- Runtime Function: long __bid_fixdddi (_Decimal64 A)
  719. -- Runtime Function: long __dpd_fixtddi (_Decimal128 A)
  720. -- Runtime Function: long __bid_fixtddi (_Decimal128 A)
  721. These functions convert A to a signed long.
  722. -- Runtime Function: unsigned int __dpd_fixunssdsi (_Decimal32 A)
  723. -- Runtime Function: unsigned int __bid_fixunssdsi (_Decimal32 A)
  724. -- Runtime Function: unsigned int __dpd_fixunsddsi (_Decimal64 A)
  725. -- Runtime Function: unsigned int __bid_fixunsddsi (_Decimal64 A)
  726. -- Runtime Function: unsigned int __dpd_fixunstdsi (_Decimal128 A)
  727. -- Runtime Function: unsigned int __bid_fixunstdsi (_Decimal128 A)
  728. These functions convert A to an unsigned integer. Negative values
  729. all become zero.
  730. -- Runtime Function: unsigned long __dpd_fixunssddi (_Decimal32 A)
  731. -- Runtime Function: unsigned long __bid_fixunssddi (_Decimal32 A)
  732. -- Runtime Function: unsigned long __dpd_fixunsdddi (_Decimal64 A)
  733. -- Runtime Function: unsigned long __bid_fixunsdddi (_Decimal64 A)
  734. -- Runtime Function: unsigned long __dpd_fixunstddi (_Decimal128 A)
  735. -- Runtime Function: unsigned long __bid_fixunstddi (_Decimal128 A)
  736. These functions convert A to an unsigned long. Negative values all
  737. become zero.
  738. -- Runtime Function: _Decimal32 __dpd_floatsisd (int I)
  739. -- Runtime Function: _Decimal32 __bid_floatsisd (int I)
  740. -- Runtime Function: _Decimal64 __dpd_floatsidd (int I)
  741. -- Runtime Function: _Decimal64 __bid_floatsidd (int I)
  742. -- Runtime Function: _Decimal128 __dpd_floatsitd (int I)
  743. -- Runtime Function: _Decimal128 __bid_floatsitd (int I)
  744. These functions convert I, a signed integer, to decimal floating
  745. point.
  746. -- Runtime Function: _Decimal32 __dpd_floatdisd (long I)
  747. -- Runtime Function: _Decimal32 __bid_floatdisd (long I)
  748. -- Runtime Function: _Decimal64 __dpd_floatdidd (long I)
  749. -- Runtime Function: _Decimal64 __bid_floatdidd (long I)
  750. -- Runtime Function: _Decimal128 __dpd_floatditd (long I)
  751. -- Runtime Function: _Decimal128 __bid_floatditd (long I)
  752. These functions convert I, a signed long, to decimal floating
  753. point.
  754. -- Runtime Function: _Decimal32 __dpd_floatunssisd (unsigned int I)
  755. -- Runtime Function: _Decimal32 __bid_floatunssisd (unsigned int I)
  756. -- Runtime Function: _Decimal64 __dpd_floatunssidd (unsigned int I)
  757. -- Runtime Function: _Decimal64 __bid_floatunssidd (unsigned int I)
  758. -- Runtime Function: _Decimal128 __dpd_floatunssitd (unsigned int I)
  759. -- Runtime Function: _Decimal128 __bid_floatunssitd (unsigned int I)
  760. These functions convert I, an unsigned integer, to decimal floating
  761. point.
  762. -- Runtime Function: _Decimal32 __dpd_floatunsdisd (unsigned long I)
  763. -- Runtime Function: _Decimal32 __bid_floatunsdisd (unsigned long I)
  764. -- Runtime Function: _Decimal64 __dpd_floatunsdidd (unsigned long I)
  765. -- Runtime Function: _Decimal64 __bid_floatunsdidd (unsigned long I)
  766. -- Runtime Function: _Decimal128 __dpd_floatunsditd (unsigned long I)
  767. -- Runtime Function: _Decimal128 __bid_floatunsditd (unsigned long I)
  768. These functions convert I, an unsigned long, to decimal floating
  769. point.
  770. 4.3.3 Comparison functions
  771. --------------------------
  772. -- Runtime Function: int __dpd_unordsd2 (_Decimal32 A, _Decimal32 B)
  773. -- Runtime Function: int __bid_unordsd2 (_Decimal32 A, _Decimal32 B)
  774. -- Runtime Function: int __dpd_unorddd2 (_Decimal64 A, _Decimal64 B)
  775. -- Runtime Function: int __bid_unorddd2 (_Decimal64 A, _Decimal64 B)
  776. -- Runtime Function: int __dpd_unordtd2 (_Decimal128 A, _Decimal128 B)
  777. -- Runtime Function: int __bid_unordtd2 (_Decimal128 A, _Decimal128 B)
  778. These functions return a nonzero value if either argument is NaN,
  779. otherwise 0.
  780. There is also a complete group of higher level functions which
  781. correspond directly to comparison operators. They implement the ISO C
  782. semantics for floating-point comparisons, taking NaN into account. Pay
  783. careful attention to the return values defined for each set. Under the
  784. hood, all of these routines are implemented as
  785. if (__bid_unordXd2 (a, b))
  786. return E;
  787. return __bid_cmpXd2 (a, b);
  788. where E is a constant chosen to give the proper behavior for NaN. Thus,
  789. the meaning of the return value is different for each set. Do not rely
  790. on this implementation; only the semantics documented below are
  791. guaranteed.
  792. -- Runtime Function: int __dpd_eqsd2 (_Decimal32 A, _Decimal32 B)
  793. -- Runtime Function: int __bid_eqsd2 (_Decimal32 A, _Decimal32 B)
  794. -- Runtime Function: int __dpd_eqdd2 (_Decimal64 A, _Decimal64 B)
  795. -- Runtime Function: int __bid_eqdd2 (_Decimal64 A, _Decimal64 B)
  796. -- Runtime Function: int __dpd_eqtd2 (_Decimal128 A, _Decimal128 B)
  797. -- Runtime Function: int __bid_eqtd2 (_Decimal128 A, _Decimal128 B)
  798. These functions return zero if neither argument is NaN, and A and B
  799. are equal.
  800. -- Runtime Function: int __dpd_nesd2 (_Decimal32 A, _Decimal32 B)
  801. -- Runtime Function: int __bid_nesd2 (_Decimal32 A, _Decimal32 B)
  802. -- Runtime Function: int __dpd_nedd2 (_Decimal64 A, _Decimal64 B)
  803. -- Runtime Function: int __bid_nedd2 (_Decimal64 A, _Decimal64 B)
  804. -- Runtime Function: int __dpd_netd2 (_Decimal128 A, _Decimal128 B)
  805. -- Runtime Function: int __bid_netd2 (_Decimal128 A, _Decimal128 B)
  806. These functions return a nonzero value if either argument is NaN,
  807. or if A and B are unequal.
  808. -- Runtime Function: int __dpd_gesd2 (_Decimal32 A, _Decimal32 B)
  809. -- Runtime Function: int __bid_gesd2 (_Decimal32 A, _Decimal32 B)
  810. -- Runtime Function: int __dpd_gedd2 (_Decimal64 A, _Decimal64 B)
  811. -- Runtime Function: int __bid_gedd2 (_Decimal64 A, _Decimal64 B)
  812. -- Runtime Function: int __dpd_getd2 (_Decimal128 A, _Decimal128 B)
  813. -- Runtime Function: int __bid_getd2 (_Decimal128 A, _Decimal128 B)
  814. These functions return a value greater than or equal to zero if
  815. neither argument is NaN, and A is greater than or equal to B.
  816. -- Runtime Function: int __dpd_ltsd2 (_Decimal32 A, _Decimal32 B)
  817. -- Runtime Function: int __bid_ltsd2 (_Decimal32 A, _Decimal32 B)
  818. -- Runtime Function: int __dpd_ltdd2 (_Decimal64 A, _Decimal64 B)
  819. -- Runtime Function: int __bid_ltdd2 (_Decimal64 A, _Decimal64 B)
  820. -- Runtime Function: int __dpd_lttd2 (_Decimal128 A, _Decimal128 B)
  821. -- Runtime Function: int __bid_lttd2 (_Decimal128 A, _Decimal128 B)
  822. These functions return a value less than zero if neither argument
  823. is NaN, and A is strictly less than B.
  824. -- Runtime Function: int __dpd_lesd2 (_Decimal32 A, _Decimal32 B)
  825. -- Runtime Function: int __bid_lesd2 (_Decimal32 A, _Decimal32 B)
  826. -- Runtime Function: int __dpd_ledd2 (_Decimal64 A, _Decimal64 B)
  827. -- Runtime Function: int __bid_ledd2 (_Decimal64 A, _Decimal64 B)
  828. -- Runtime Function: int __dpd_letd2 (_Decimal128 A, _Decimal128 B)
  829. -- Runtime Function: int __bid_letd2 (_Decimal128 A, _Decimal128 B)
  830. These functions return a value less than or equal to zero if
  831. neither argument is NaN, and A is less than or equal to B.
  832. -- Runtime Function: int __dpd_gtsd2 (_Decimal32 A, _Decimal32 B)
  833. -- Runtime Function: int __bid_gtsd2 (_Decimal32 A, _Decimal32 B)
  834. -- Runtime Function: int __dpd_gtdd2 (_Decimal64 A, _Decimal64 B)
  835. -- Runtime Function: int __bid_gtdd2 (_Decimal64 A, _Decimal64 B)
  836. -- Runtime Function: int __dpd_gttd2 (_Decimal128 A, _Decimal128 B)
  837. -- Runtime Function: int __bid_gttd2 (_Decimal128 A, _Decimal128 B)
  838. These functions return a value greater than zero if neither
  839. argument is NaN, and A is strictly greater than B.
  840. 
  841. File: gccint.info, Node: Fixed-point fractional library routines, Next: Exception handling routines, Prev: Decimal float library routines, Up: Libgcc
  842. 4.4 Routines for fixed-point fractional emulation
  843. =================================================
  844. The software fixed-point library implements fixed-point fractional
  845. arithmetic, and is only activated on selected targets.
  846. For ease of comprehension 'fract' is an alias for the '_Fract' type,
  847. 'accum' an alias for '_Accum', and 'sat' an alias for '_Sat'.
  848. For illustrative purposes, in this section the fixed-point fractional
  849. type 'short fract' is assumed to correspond to machine mode 'QQmode';
  850. 'unsigned short fract' to 'UQQmode'; 'fract' to 'HQmode';
  851. 'unsigned fract' to 'UHQmode'; 'long fract' to 'SQmode';
  852. 'unsigned long fract' to 'USQmode'; 'long long fract' to 'DQmode'; and
  853. 'unsigned long long fract' to 'UDQmode'. Similarly the fixed-point
  854. accumulator type 'short accum' corresponds to 'HAmode';
  855. 'unsigned short accum' to 'UHAmode'; 'accum' to 'SAmode';
  856. 'unsigned accum' to 'USAmode'; 'long accum' to 'DAmode';
  857. 'unsigned long accum' to 'UDAmode'; 'long long accum' to 'TAmode'; and
  858. 'unsigned long long accum' to 'UTAmode'.
  859. 4.4.1 Arithmetic functions
  860. --------------------------
  861. -- Runtime Function: short fract __addqq3 (short fract A, short fract
  862. B)
  863. -- Runtime Function: fract __addhq3 (fract A, fract B)
  864. -- Runtime Function: long fract __addsq3 (long fract A, long fract B)
  865. -- Runtime Function: long long fract __adddq3 (long long fract A, long
  866. long fract B)
  867. -- Runtime Function: unsigned short fract __adduqq3 (unsigned short
  868. fract A, unsigned short fract B)
  869. -- Runtime Function: unsigned fract __adduhq3 (unsigned fract A,
  870. unsigned fract B)
  871. -- Runtime Function: unsigned long fract __addusq3 (unsigned long fract
  872. A, unsigned long fract B)
  873. -- Runtime Function: unsigned long long fract __addudq3 (unsigned long
  874. long fract A, unsigned long long fract B)
  875. -- Runtime Function: short accum __addha3 (short accum A, short accum
  876. B)
  877. -- Runtime Function: accum __addsa3 (accum A, accum B)
  878. -- Runtime Function: long accum __addda3 (long accum A, long accum B)
  879. -- Runtime Function: long long accum __addta3 (long long accum A, long
  880. long accum B)
  881. -- Runtime Function: unsigned short accum __adduha3 (unsigned short
  882. accum A, unsigned short accum B)
  883. -- Runtime Function: unsigned accum __addusa3 (unsigned accum A,
  884. unsigned accum B)
  885. -- Runtime Function: unsigned long accum __adduda3 (unsigned long accum
  886. A, unsigned long accum B)
  887. -- Runtime Function: unsigned long long accum __adduta3 (unsigned long
  888. long accum A, unsigned long long accum B)
  889. These functions return the sum of A and B.
  890. -- Runtime Function: short fract __ssaddqq3 (short fract A, short fract
  891. B)
  892. -- Runtime Function: fract __ssaddhq3 (fract A, fract B)
  893. -- Runtime Function: long fract __ssaddsq3 (long fract A, long fract B)
  894. -- Runtime Function: long long fract __ssadddq3 (long long fract A,
  895. long long fract B)
  896. -- Runtime Function: short accum __ssaddha3 (short accum A, short accum
  897. B)
  898. -- Runtime Function: accum __ssaddsa3 (accum A, accum B)
  899. -- Runtime Function: long accum __ssaddda3 (long accum A, long accum B)
  900. -- Runtime Function: long long accum __ssaddta3 (long long accum A,
  901. long long accum B)
  902. These functions return the sum of A and B with signed saturation.
  903. -- Runtime Function: unsigned short fract __usadduqq3 (unsigned short
  904. fract A, unsigned short fract B)
  905. -- Runtime Function: unsigned fract __usadduhq3 (unsigned fract A,
  906. unsigned fract B)
  907. -- Runtime Function: unsigned long fract __usaddusq3 (unsigned long
  908. fract A, unsigned long fract B)
  909. -- Runtime Function: unsigned long long fract __usaddudq3 (unsigned
  910. long long fract A, unsigned long long fract B)
  911. -- Runtime Function: unsigned short accum __usadduha3 (unsigned short
  912. accum A, unsigned short accum B)
  913. -- Runtime Function: unsigned accum __usaddusa3 (unsigned accum A,
  914. unsigned accum B)
  915. -- Runtime Function: unsigned long accum __usadduda3 (unsigned long
  916. accum A, unsigned long accum B)
  917. -- Runtime Function: unsigned long long accum __usadduta3 (unsigned
  918. long long accum A, unsigned long long accum B)
  919. These functions return the sum of A and B with unsigned saturation.
  920. -- Runtime Function: short fract __subqq3 (short fract A, short fract
  921. B)
  922. -- Runtime Function: fract __subhq3 (fract A, fract B)
  923. -- Runtime Function: long fract __subsq3 (long fract A, long fract B)
  924. -- Runtime Function: long long fract __subdq3 (long long fract A, long
  925. long fract B)
  926. -- Runtime Function: unsigned short fract __subuqq3 (unsigned short
  927. fract A, unsigned short fract B)
  928. -- Runtime Function: unsigned fract __subuhq3 (unsigned fract A,
  929. unsigned fract B)
  930. -- Runtime Function: unsigned long fract __subusq3 (unsigned long fract
  931. A, unsigned long fract B)
  932. -- Runtime Function: unsigned long long fract __subudq3 (unsigned long
  933. long fract A, unsigned long long fract B)
  934. -- Runtime Function: short accum __subha3 (short accum A, short accum
  935. B)
  936. -- Runtime Function: accum __subsa3 (accum A, accum B)
  937. -- Runtime Function: long accum __subda3 (long accum A, long accum B)
  938. -- Runtime Function: long long accum __subta3 (long long accum A, long
  939. long accum B)
  940. -- Runtime Function: unsigned short accum __subuha3 (unsigned short
  941. accum A, unsigned short accum B)
  942. -- Runtime Function: unsigned accum __subusa3 (unsigned accum A,
  943. unsigned accum B)
  944. -- Runtime Function: unsigned long accum __subuda3 (unsigned long accum
  945. A, unsigned long accum B)
  946. -- Runtime Function: unsigned long long accum __subuta3 (unsigned long
  947. long accum A, unsigned long long accum B)
  948. These functions return the difference of A and B; that is, 'A - B'.
  949. -- Runtime Function: short fract __sssubqq3 (short fract A, short fract
  950. B)
  951. -- Runtime Function: fract __sssubhq3 (fract A, fract B)
  952. -- Runtime Function: long fract __sssubsq3 (long fract A, long fract B)
  953. -- Runtime Function: long long fract __sssubdq3 (long long fract A,
  954. long long fract B)
  955. -- Runtime Function: short accum __sssubha3 (short accum A, short accum
  956. B)
  957. -- Runtime Function: accum __sssubsa3 (accum A, accum B)
  958. -- Runtime Function: long accum __sssubda3 (long accum A, long accum B)
  959. -- Runtime Function: long long accum __sssubta3 (long long accum A,
  960. long long accum B)
  961. These functions return the difference of A and B with signed
  962. saturation; that is, 'A - B'.
  963. -- Runtime Function: unsigned short fract __ussubuqq3 (unsigned short
  964. fract A, unsigned short fract B)
  965. -- Runtime Function: unsigned fract __ussubuhq3 (unsigned fract A,
  966. unsigned fract B)
  967. -- Runtime Function: unsigned long fract __ussubusq3 (unsigned long
  968. fract A, unsigned long fract B)
  969. -- Runtime Function: unsigned long long fract __ussubudq3 (unsigned
  970. long long fract A, unsigned long long fract B)
  971. -- Runtime Function: unsigned short accum __ussubuha3 (unsigned short
  972. accum A, unsigned short accum B)
  973. -- Runtime Function: unsigned accum __ussubusa3 (unsigned accum A,
  974. unsigned accum B)
  975. -- Runtime Function: unsigned long accum __ussubuda3 (unsigned long
  976. accum A, unsigned long accum B)
  977. -- Runtime Function: unsigned long long accum __ussubuta3 (unsigned
  978. long long accum A, unsigned long long accum B)
  979. These functions return the difference of A and B with unsigned
  980. saturation; that is, 'A - B'.
  981. -- Runtime Function: short fract __mulqq3 (short fract A, short fract
  982. B)
  983. -- Runtime Function: fract __mulhq3 (fract A, fract B)
  984. -- Runtime Function: long fract __mulsq3 (long fract A, long fract B)
  985. -- Runtime Function: long long fract __muldq3 (long long fract A, long
  986. long fract B)
  987. -- Runtime Function: unsigned short fract __muluqq3 (unsigned short
  988. fract A, unsigned short fract B)
  989. -- Runtime Function: unsigned fract __muluhq3 (unsigned fract A,
  990. unsigned fract B)
  991. -- Runtime Function: unsigned long fract __mulusq3 (unsigned long fract
  992. A, unsigned long fract B)
  993. -- Runtime Function: unsigned long long fract __muludq3 (unsigned long
  994. long fract A, unsigned long long fract B)
  995. -- Runtime Function: short accum __mulha3 (short accum A, short accum
  996. B)
  997. -- Runtime Function: accum __mulsa3 (accum A, accum B)
  998. -- Runtime Function: long accum __mulda3 (long accum A, long accum B)
  999. -- Runtime Function: long long accum __multa3 (long long accum A, long
  1000. long accum B)
  1001. -- Runtime Function: unsigned short accum __muluha3 (unsigned short
  1002. accum A, unsigned short accum B)
  1003. -- Runtime Function: unsigned accum __mulusa3 (unsigned accum A,
  1004. unsigned accum B)
  1005. -- Runtime Function: unsigned long accum __muluda3 (unsigned long accum
  1006. A, unsigned long accum B)
  1007. -- Runtime Function: unsigned long long accum __muluta3 (unsigned long
  1008. long accum A, unsigned long long accum B)
  1009. These functions return the product of A and B.
  1010. -- Runtime Function: short fract __ssmulqq3 (short fract A, short fract
  1011. B)
  1012. -- Runtime Function: fract __ssmulhq3 (fract A, fract B)
  1013. -- Runtime Function: long fract __ssmulsq3 (long fract A, long fract B)
  1014. -- Runtime Function: long long fract __ssmuldq3 (long long fract A,
  1015. long long fract B)
  1016. -- Runtime Function: short accum __ssmulha3 (short accum A, short accum
  1017. B)
  1018. -- Runtime Function: accum __ssmulsa3 (accum A, accum B)
  1019. -- Runtime Function: long accum __ssmulda3 (long accum A, long accum B)
  1020. -- Runtime Function: long long accum __ssmulta3 (long long accum A,
  1021. long long accum B)
  1022. These functions return the product of A and B with signed
  1023. saturation.
  1024. -- Runtime Function: unsigned short fract __usmuluqq3 (unsigned short
  1025. fract A, unsigned short fract B)
  1026. -- Runtime Function: unsigned fract __usmuluhq3 (unsigned fract A,
  1027. unsigned fract B)
  1028. -- Runtime Function: unsigned long fract __usmulusq3 (unsigned long
  1029. fract A, unsigned long fract B)
  1030. -- Runtime Function: unsigned long long fract __usmuludq3 (unsigned
  1031. long long fract A, unsigned long long fract B)
  1032. -- Runtime Function: unsigned short accum __usmuluha3 (unsigned short
  1033. accum A, unsigned short accum B)
  1034. -- Runtime Function: unsigned accum __usmulusa3 (unsigned accum A,
  1035. unsigned accum B)
  1036. -- Runtime Function: unsigned long accum __usmuluda3 (unsigned long
  1037. accum A, unsigned long accum B)
  1038. -- Runtime Function: unsigned long long accum __usmuluta3 (unsigned
  1039. long long accum A, unsigned long long accum B)
  1040. These functions return the product of A and B with unsigned
  1041. saturation.
  1042. -- Runtime Function: short fract __divqq3 (short fract A, short fract
  1043. B)
  1044. -- Runtime Function: fract __divhq3 (fract A, fract B)
  1045. -- Runtime Function: long fract __divsq3 (long fract A, long fract B)
  1046. -- Runtime Function: long long fract __divdq3 (long long fract A, long
  1047. long fract B)
  1048. -- Runtime Function: short accum __divha3 (short accum A, short accum
  1049. B)
  1050. -- Runtime Function: accum __divsa3 (accum A, accum B)
  1051. -- Runtime Function: long accum __divda3 (long accum A, long accum B)
  1052. -- Runtime Function: long long accum __divta3 (long long accum A, long
  1053. long accum B)
  1054. These functions return the quotient of the signed division of A and
  1055. B.
  1056. -- Runtime Function: unsigned short fract __udivuqq3 (unsigned short
  1057. fract A, unsigned short fract B)
  1058. -- Runtime Function: unsigned fract __udivuhq3 (unsigned fract A,
  1059. unsigned fract B)
  1060. -- Runtime Function: unsigned long fract __udivusq3 (unsigned long
  1061. fract A, unsigned long fract B)
  1062. -- Runtime Function: unsigned long long fract __udivudq3 (unsigned long
  1063. long fract A, unsigned long long fract B)
  1064. -- Runtime Function: unsigned short accum __udivuha3 (unsigned short
  1065. accum A, unsigned short accum B)
  1066. -- Runtime Function: unsigned accum __udivusa3 (unsigned accum A,
  1067. unsigned accum B)
  1068. -- Runtime Function: unsigned long accum __udivuda3 (unsigned long
  1069. accum A, unsigned long accum B)
  1070. -- Runtime Function: unsigned long long accum __udivuta3 (unsigned long
  1071. long accum A, unsigned long long accum B)
  1072. These functions return the quotient of the unsigned division of A
  1073. and B.
  1074. -- Runtime Function: short fract __ssdivqq3 (short fract A, short fract
  1075. B)
  1076. -- Runtime Function: fract __ssdivhq3 (fract A, fract B)
  1077. -- Runtime Function: long fract __ssdivsq3 (long fract A, long fract B)
  1078. -- Runtime Function: long long fract __ssdivdq3 (long long fract A,
  1079. long long fract B)
  1080. -- Runtime Function: short accum __ssdivha3 (short accum A, short accum
  1081. B)
  1082. -- Runtime Function: accum __ssdivsa3 (accum A, accum B)
  1083. -- Runtime Function: long accum __ssdivda3 (long accum A, long accum B)
  1084. -- Runtime Function: long long accum __ssdivta3 (long long accum A,
  1085. long long accum B)
  1086. These functions return the quotient of the signed division of A and
  1087. B with signed saturation.
  1088. -- Runtime Function: unsigned short fract __usdivuqq3 (unsigned short
  1089. fract A, unsigned short fract B)
  1090. -- Runtime Function: unsigned fract __usdivuhq3 (unsigned fract A,
  1091. unsigned fract B)
  1092. -- Runtime Function: unsigned long fract __usdivusq3 (unsigned long
  1093. fract A, unsigned long fract B)
  1094. -- Runtime Function: unsigned long long fract __usdivudq3 (unsigned
  1095. long long fract A, unsigned long long fract B)
  1096. -- Runtime Function: unsigned short accum __usdivuha3 (unsigned short
  1097. accum A, unsigned short accum B)
  1098. -- Runtime Function: unsigned accum __usdivusa3 (unsigned accum A,
  1099. unsigned accum B)
  1100. -- Runtime Function: unsigned long accum __usdivuda3 (unsigned long
  1101. accum A, unsigned long accum B)
  1102. -- Runtime Function: unsigned long long accum __usdivuta3 (unsigned
  1103. long long accum A, unsigned long long accum B)
  1104. These functions return the quotient of the unsigned division of A
  1105. and B with unsigned saturation.
  1106. -- Runtime Function: short fract __negqq2 (short fract A)
  1107. -- Runtime Function: fract __neghq2 (fract A)
  1108. -- Runtime Function: long fract __negsq2 (long fract A)
  1109. -- Runtime Function: long long fract __negdq2 (long long fract A)
  1110. -- Runtime Function: unsigned short fract __neguqq2 (unsigned short
  1111. fract A)
  1112. -- Runtime Function: unsigned fract __neguhq2 (unsigned fract A)
  1113. -- Runtime Function: unsigned long fract __negusq2 (unsigned long fract
  1114. A)
  1115. -- Runtime Function: unsigned long long fract __negudq2 (unsigned long
  1116. long fract A)
  1117. -- Runtime Function: short accum __negha2 (short accum A)
  1118. -- Runtime Function: accum __negsa2 (accum A)
  1119. -- Runtime Function: long accum __negda2 (long accum A)
  1120. -- Runtime Function: long long accum __negta2 (long long accum A)
  1121. -- Runtime Function: unsigned short accum __neguha2 (unsigned short
  1122. accum A)
  1123. -- Runtime Function: unsigned accum __negusa2 (unsigned accum A)
  1124. -- Runtime Function: unsigned long accum __neguda2 (unsigned long accum
  1125. A)
  1126. -- Runtime Function: unsigned long long accum __neguta2 (unsigned long
  1127. long accum A)
  1128. These functions return the negation of A.
  1129. -- Runtime Function: short fract __ssnegqq2 (short fract A)
  1130. -- Runtime Function: fract __ssneghq2 (fract A)
  1131. -- Runtime Function: long fract __ssnegsq2 (long fract A)
  1132. -- Runtime Function: long long fract __ssnegdq2 (long long fract A)
  1133. -- Runtime Function: short accum __ssnegha2 (short accum A)
  1134. -- Runtime Function: accum __ssnegsa2 (accum A)
  1135. -- Runtime Function: long accum __ssnegda2 (long accum A)
  1136. -- Runtime Function: long long accum __ssnegta2 (long long accum A)
  1137. These functions return the negation of A with signed saturation.
  1138. -- Runtime Function: unsigned short fract __usneguqq2 (unsigned short
  1139. fract A)
  1140. -- Runtime Function: unsigned fract __usneguhq2 (unsigned fract A)
  1141. -- Runtime Function: unsigned long fract __usnegusq2 (unsigned long
  1142. fract A)
  1143. -- Runtime Function: unsigned long long fract __usnegudq2 (unsigned
  1144. long long fract A)
  1145. -- Runtime Function: unsigned short accum __usneguha2 (unsigned short
  1146. accum A)
  1147. -- Runtime Function: unsigned accum __usnegusa2 (unsigned accum A)
  1148. -- Runtime Function: unsigned long accum __usneguda2 (unsigned long
  1149. accum A)
  1150. -- Runtime Function: unsigned long long accum __usneguta2 (unsigned
  1151. long long accum A)
  1152. These functions return the negation of A with unsigned saturation.
  1153. -- Runtime Function: short fract __ashlqq3 (short fract A, int B)
  1154. -- Runtime Function: fract __ashlhq3 (fract A, int B)
  1155. -- Runtime Function: long fract __ashlsq3 (long fract A, int B)
  1156. -- Runtime Function: long long fract __ashldq3 (long long fract A, int
  1157. B)
  1158. -- Runtime Function: unsigned short fract __ashluqq3 (unsigned short
  1159. fract A, int B)
  1160. -- Runtime Function: unsigned fract __ashluhq3 (unsigned fract A, int
  1161. B)
  1162. -- Runtime Function: unsigned long fract __ashlusq3 (unsigned long
  1163. fract A, int B)
  1164. -- Runtime Function: unsigned long long fract __ashludq3 (unsigned long
  1165. long fract A, int B)
  1166. -- Runtime Function: short accum __ashlha3 (short accum A, int B)
  1167. -- Runtime Function: accum __ashlsa3 (accum A, int B)
  1168. -- Runtime Function: long accum __ashlda3 (long accum A, int B)
  1169. -- Runtime Function: long long accum __ashlta3 (long long accum A, int
  1170. B)
  1171. -- Runtime Function: unsigned short accum __ashluha3 (unsigned short
  1172. accum A, int B)
  1173. -- Runtime Function: unsigned accum __ashlusa3 (unsigned accum A, int
  1174. B)
  1175. -- Runtime Function: unsigned long accum __ashluda3 (unsigned long
  1176. accum A, int B)
  1177. -- Runtime Function: unsigned long long accum __ashluta3 (unsigned long
  1178. long accum A, int B)
  1179. These functions return the result of shifting A left by B bits.
  1180. -- Runtime Function: short fract __ashrqq3 (short fract A, int B)
  1181. -- Runtime Function: fract __ashrhq3 (fract A, int B)
  1182. -- Runtime Function: long fract __ashrsq3 (long fract A, int B)
  1183. -- Runtime Function: long long fract __ashrdq3 (long long fract A, int
  1184. B)
  1185. -- Runtime Function: short accum __ashrha3 (short accum A, int B)
  1186. -- Runtime Function: accum __ashrsa3 (accum A, int B)
  1187. -- Runtime Function: long accum __ashrda3 (long accum A, int B)
  1188. -- Runtime Function: long long accum __ashrta3 (long long accum A, int
  1189. B)
  1190. These functions return the result of arithmetically shifting A
  1191. right by B bits.
  1192. -- Runtime Function: unsigned short fract __lshruqq3 (unsigned short
  1193. fract A, int B)
  1194. -- Runtime Function: unsigned fract __lshruhq3 (unsigned fract A, int
  1195. B)
  1196. -- Runtime Function: unsigned long fract __lshrusq3 (unsigned long
  1197. fract A, int B)
  1198. -- Runtime Function: unsigned long long fract __lshrudq3 (unsigned long
  1199. long fract A, int B)
  1200. -- Runtime Function: unsigned short accum __lshruha3 (unsigned short
  1201. accum A, int B)
  1202. -- Runtime Function: unsigned accum __lshrusa3 (unsigned accum A, int
  1203. B)
  1204. -- Runtime Function: unsigned long accum __lshruda3 (unsigned long
  1205. accum A, int B)
  1206. -- Runtime Function: unsigned long long accum __lshruta3 (unsigned long
  1207. long accum A, int B)
  1208. These functions return the result of logically shifting A right by
  1209. B bits.
  1210. -- Runtime Function: fract __ssashlhq3 (fract A, int B)
  1211. -- Runtime Function: long fract __ssashlsq3 (long fract A, int B)
  1212. -- Runtime Function: long long fract __ssashldq3 (long long fract A,
  1213. int B)
  1214. -- Runtime Function: short accum __ssashlha3 (short accum A, int B)
  1215. -- Runtime Function: accum __ssashlsa3 (accum A, int B)
  1216. -- Runtime Function: long accum __ssashlda3 (long accum A, int B)
  1217. -- Runtime Function: long long accum __ssashlta3 (long long accum A,
  1218. int B)
  1219. These functions return the result of shifting A left by B bits with
  1220. signed saturation.
  1221. -- Runtime Function: unsigned short fract __usashluqq3 (unsigned short
  1222. fract A, int B)
  1223. -- Runtime Function: unsigned fract __usashluhq3 (unsigned fract A, int
  1224. B)
  1225. -- Runtime Function: unsigned long fract __usashlusq3 (unsigned long
  1226. fract A, int B)
  1227. -- Runtime Function: unsigned long long fract __usashludq3 (unsigned
  1228. long long fract A, int B)
  1229. -- Runtime Function: unsigned short accum __usashluha3 (unsigned short
  1230. accum A, int B)
  1231. -- Runtime Function: unsigned accum __usashlusa3 (unsigned accum A, int
  1232. B)
  1233. -- Runtime Function: unsigned long accum __usashluda3 (unsigned long
  1234. accum A, int B)
  1235. -- Runtime Function: unsigned long long accum __usashluta3 (unsigned
  1236. long long accum A, int B)
  1237. These functions return the result of shifting A left by B bits with
  1238. unsigned saturation.
  1239. 4.4.2 Comparison functions
  1240. --------------------------
  1241. The following functions implement fixed-point comparisons. These
  1242. functions implement a low-level compare, upon which the higher level
  1243. comparison operators (such as less than and greater than or equal to)
  1244. can be constructed. The returned values lie in the range zero to two,
  1245. to allow the high-level operators to be implemented by testing the
  1246. returned result using either signed or unsigned comparison.
  1247. -- Runtime Function: int __cmpqq2 (short fract A, short fract B)
  1248. -- Runtime Function: int __cmphq2 (fract A, fract B)
  1249. -- Runtime Function: int __cmpsq2 (long fract A, long fract B)
  1250. -- Runtime Function: int __cmpdq2 (long long fract A, long long fract
  1251. B)
  1252. -- Runtime Function: int __cmpuqq2 (unsigned short fract A, unsigned
  1253. short fract B)
  1254. -- Runtime Function: int __cmpuhq2 (unsigned fract A, unsigned fract B)
  1255. -- Runtime Function: int __cmpusq2 (unsigned long fract A, unsigned
  1256. long fract B)
  1257. -- Runtime Function: int __cmpudq2 (unsigned long long fract A,
  1258. unsigned long long fract B)
  1259. -- Runtime Function: int __cmpha2 (short accum A, short accum B)
  1260. -- Runtime Function: int __cmpsa2 (accum A, accum B)
  1261. -- Runtime Function: int __cmpda2 (long accum A, long accum B)
  1262. -- Runtime Function: int __cmpta2 (long long accum A, long long accum
  1263. B)
  1264. -- Runtime Function: int __cmpuha2 (unsigned short accum A, unsigned
  1265. short accum B)
  1266. -- Runtime Function: int __cmpusa2 (unsigned accum A, unsigned accum B)
  1267. -- Runtime Function: int __cmpuda2 (unsigned long accum A, unsigned
  1268. long accum B)
  1269. -- Runtime Function: int __cmputa2 (unsigned long long accum A,
  1270. unsigned long long accum B)
  1271. These functions perform a signed or unsigned comparison of A and B
  1272. (depending on the selected machine mode). If A is less than B,
  1273. they return 0; if A is greater than B, they return 2; and if A and
  1274. B are equal they return 1.
  1275. 4.4.3 Conversion functions
  1276. --------------------------
  1277. -- Runtime Function: fract __fractqqhq2 (short fract A)
  1278. -- Runtime Function: long fract __fractqqsq2 (short fract A)
  1279. -- Runtime Function: long long fract __fractqqdq2 (short fract A)
  1280. -- Runtime Function: short accum __fractqqha (short fract A)
  1281. -- Runtime Function: accum __fractqqsa (short fract A)
  1282. -- Runtime Function: long accum __fractqqda (short fract A)
  1283. -- Runtime Function: long long accum __fractqqta (short fract A)
  1284. -- Runtime Function: unsigned short fract __fractqquqq (short fract A)
  1285. -- Runtime Function: unsigned fract __fractqquhq (short fract A)
  1286. -- Runtime Function: unsigned long fract __fractqqusq (short fract A)
  1287. -- Runtime Function: unsigned long long fract __fractqqudq (short fract
  1288. A)
  1289. -- Runtime Function: unsigned short accum __fractqquha (short fract A)
  1290. -- Runtime Function: unsigned accum __fractqqusa (short fract A)
  1291. -- Runtime Function: unsigned long accum __fractqquda (short fract A)
  1292. -- Runtime Function: unsigned long long accum __fractqquta (short fract
  1293. A)
  1294. -- Runtime Function: signed char __fractqqqi (short fract A)
  1295. -- Runtime Function: short __fractqqhi (short fract A)
  1296. -- Runtime Function: int __fractqqsi (short fract A)
  1297. -- Runtime Function: long __fractqqdi (short fract A)
  1298. -- Runtime Function: long long __fractqqti (short fract A)
  1299. -- Runtime Function: float __fractqqsf (short fract A)
  1300. -- Runtime Function: double __fractqqdf (short fract A)
  1301. -- Runtime Function: short fract __fracthqqq2 (fract A)
  1302. -- Runtime Function: long fract __fracthqsq2 (fract A)
  1303. -- Runtime Function: long long fract __fracthqdq2 (fract A)
  1304. -- Runtime Function: short accum __fracthqha (fract A)
  1305. -- Runtime Function: accum __fracthqsa (fract A)
  1306. -- Runtime Function: long accum __fracthqda (fract A)
  1307. -- Runtime Function: long long accum __fracthqta (fract A)
  1308. -- Runtime Function: unsigned short fract __fracthquqq (fract A)
  1309. -- Runtime Function: unsigned fract __fracthquhq (fract A)
  1310. -- Runtime Function: unsigned long fract __fracthqusq (fract A)
  1311. -- Runtime Function: unsigned long long fract __fracthqudq (fract A)
  1312. -- Runtime Function: unsigned short accum __fracthquha (fract A)
  1313. -- Runtime Function: unsigned accum __fracthqusa (fract A)
  1314. -- Runtime Function: unsigned long accum __fracthquda (fract A)
  1315. -- Runtime Function: unsigned long long accum __fracthquta (fract A)
  1316. -- Runtime Function: signed char __fracthqqi (fract A)
  1317. -- Runtime Function: short __fracthqhi (fract A)
  1318. -- Runtime Function: int __fracthqsi (fract A)
  1319. -- Runtime Function: long __fracthqdi (fract A)
  1320. -- Runtime Function: long long __fracthqti (fract A)
  1321. -- Runtime Function: float __fracthqsf (fract A)
  1322. -- Runtime Function: double __fracthqdf (fract A)
  1323. -- Runtime Function: short fract __fractsqqq2 (long fract A)
  1324. -- Runtime Function: fract __fractsqhq2 (long fract A)
  1325. -- Runtime Function: long long fract __fractsqdq2 (long fract A)
  1326. -- Runtime Function: short accum __fractsqha (long fract A)
  1327. -- Runtime Function: accum __fractsqsa (long fract A)
  1328. -- Runtime Function: long accum __fractsqda (long fract A)
  1329. -- Runtime Function: long long accum __fractsqta (long fract A)
  1330. -- Runtime Function: unsigned short fract __fractsquqq (long fract A)
  1331. -- Runtime Function: unsigned fract __fractsquhq (long fract A)
  1332. -- Runtime Function: unsigned long fract __fractsqusq (long fract A)
  1333. -- Runtime Function: unsigned long long fract __fractsqudq (long fract
  1334. A)
  1335. -- Runtime Function: unsigned short accum __fractsquha (long fract A)
  1336. -- Runtime Function: unsigned accum __fractsqusa (long fract A)
  1337. -- Runtime Function: unsigned long accum __fractsquda (long fract A)
  1338. -- Runtime Function: unsigned long long accum __fractsquta (long fract
  1339. A)
  1340. -- Runtime Function: signed char __fractsqqi (long fract A)
  1341. -- Runtime Function: short __fractsqhi (long fract A)
  1342. -- Runtime Function: int __fractsqsi (long fract A)
  1343. -- Runtime Function: long __fractsqdi (long fract A)
  1344. -- Runtime Function: long long __fractsqti (long fract A)
  1345. -- Runtime Function: float __fractsqsf (long fract A)
  1346. -- Runtime Function: double __fractsqdf (long fract A)
  1347. -- Runtime Function: short fract __fractdqqq2 (long long fract A)
  1348. -- Runtime Function: fract __fractdqhq2 (long long fract A)
  1349. -- Runtime Function: long fract __fractdqsq2 (long long fract A)
  1350. -- Runtime Function: short accum __fractdqha (long long fract A)
  1351. -- Runtime Function: accum __fractdqsa (long long fract A)
  1352. -- Runtime Function: long accum __fractdqda (long long fract A)
  1353. -- Runtime Function: long long accum __fractdqta (long long fract A)
  1354. -- Runtime Function: unsigned short fract __fractdquqq (long long fract
  1355. A)
  1356. -- Runtime Function: unsigned fract __fractdquhq (long long fract A)
  1357. -- Runtime Function: unsigned long fract __fractdqusq (long long fract
  1358. A)
  1359. -- Runtime Function: unsigned long long fract __fractdqudq (long long
  1360. fract A)
  1361. -- Runtime Function: unsigned short accum __fractdquha (long long fract
  1362. A)
  1363. -- Runtime Function: unsigned accum __fractdqusa (long long fract A)
  1364. -- Runtime Function: unsigned long accum __fractdquda (long long fract
  1365. A)
  1366. -- Runtime Function: unsigned long long accum __fractdquta (long long
  1367. fract A)
  1368. -- Runtime Function: signed char __fractdqqi (long long fract A)
  1369. -- Runtime Function: short __fractdqhi (long long fract A)
  1370. -- Runtime Function: int __fractdqsi (long long fract A)
  1371. -- Runtime Function: long __fractdqdi (long long fract A)
  1372. -- Runtime Function: long long __fractdqti (long long fract A)
  1373. -- Runtime Function: float __fractdqsf (long long fract A)
  1374. -- Runtime Function: double __fractdqdf (long long fract A)
  1375. -- Runtime Function: short fract __fracthaqq (short accum A)
  1376. -- Runtime Function: fract __fracthahq (short accum A)
  1377. -- Runtime Function: long fract __fracthasq (short accum A)
  1378. -- Runtime Function: long long fract __fracthadq (short accum A)
  1379. -- Runtime Function: accum __fracthasa2 (short accum A)
  1380. -- Runtime Function: long accum __fracthada2 (short accum A)
  1381. -- Runtime Function: long long accum __fracthata2 (short accum A)
  1382. -- Runtime Function: unsigned short fract __fracthauqq (short accum A)
  1383. -- Runtime Function: unsigned fract __fracthauhq (short accum A)
  1384. -- Runtime Function: unsigned long fract __fracthausq (short accum A)
  1385. -- Runtime Function: unsigned long long fract __fracthaudq (short accum
  1386. A)
  1387. -- Runtime Function: unsigned short accum __fracthauha (short accum A)
  1388. -- Runtime Function: unsigned accum __fracthausa (short accum A)
  1389. -- Runtime Function: unsigned long accum __fracthauda (short accum A)
  1390. -- Runtime Function: unsigned long long accum __fracthauta (short accum
  1391. A)
  1392. -- Runtime Function: signed char __fracthaqi (short accum A)
  1393. -- Runtime Function: short __fracthahi (short accum A)
  1394. -- Runtime Function: int __fracthasi (short accum A)
  1395. -- Runtime Function: long __fracthadi (short accum A)
  1396. -- Runtime Function: long long __fracthati (short accum A)
  1397. -- Runtime Function: float __fracthasf (short accum A)
  1398. -- Runtime Function: double __fracthadf (short accum A)
  1399. -- Runtime Function: short fract __fractsaqq (accum A)
  1400. -- Runtime Function: fract __fractsahq (accum A)
  1401. -- Runtime Function: long fract __fractsasq (accum A)
  1402. -- Runtime Function: long long fract __fractsadq (accum A)
  1403. -- Runtime Function: short accum __fractsaha2 (accum A)
  1404. -- Runtime Function: long accum __fractsada2 (accum A)
  1405. -- Runtime Function: long long accum __fractsata2 (accum A)
  1406. -- Runtime Function: unsigned short fract __fractsauqq (accum A)
  1407. -- Runtime Function: unsigned fract __fractsauhq (accum A)
  1408. -- Runtime Function: unsigned long fract __fractsausq (accum A)
  1409. -- Runtime Function: unsigned long long fract __fractsaudq (accum A)
  1410. -- Runtime Function: unsigned short accum __fractsauha (accum A)
  1411. -- Runtime Function: unsigned accum __fractsausa (accum A)
  1412. -- Runtime Function: unsigned long accum __fractsauda (accum A)
  1413. -- Runtime Function: unsigned long long accum __fractsauta (accum A)
  1414. -- Runtime Function: signed char __fractsaqi (accum A)
  1415. -- Runtime Function: short __fractsahi (accum A)
  1416. -- Runtime Function: int __fractsasi (accum A)
  1417. -- Runtime Function: long __fractsadi (accum A)
  1418. -- Runtime Function: long long __fractsati (accum A)
  1419. -- Runtime Function: float __fractsasf (accum A)
  1420. -- Runtime Function: double __fractsadf (accum A)
  1421. -- Runtime Function: short fract __fractdaqq (long accum A)
  1422. -- Runtime Function: fract __fractdahq (long accum A)
  1423. -- Runtime Function: long fract __fractdasq (long accum A)
  1424. -- Runtime Function: long long fract __fractdadq (long accum A)
  1425. -- Runtime Function: short accum __fractdaha2 (long accum A)
  1426. -- Runtime Function: accum __fractdasa2 (long accum A)
  1427. -- Runtime Function: long long accum __fractdata2 (long accum A)
  1428. -- Runtime Function: unsigned short fract __fractdauqq (long accum A)
  1429. -- Runtime Function: unsigned fract __fractdauhq (long accum A)
  1430. -- Runtime Function: unsigned long fract __fractdausq (long accum A)
  1431. -- Runtime Function: unsigned long long fract __fractdaudq (long accum
  1432. A)
  1433. -- Runtime Function: unsigned short accum __fractdauha (long accum A)
  1434. -- Runtime Function: unsigned accum __fractdausa (long accum A)
  1435. -- Runtime Function: unsigned long accum __fractdauda (long accum A)
  1436. -- Runtime Function: unsigned long long accum __fractdauta (long accum
  1437. A)
  1438. -- Runtime Function: signed char __fractdaqi (long accum A)
  1439. -- Runtime Function: short __fractdahi (long accum A)
  1440. -- Runtime Function: int __fractdasi (long accum A)
  1441. -- Runtime Function: long __fractdadi (long accum A)
  1442. -- Runtime Function: long long __fractdati (long accum A)
  1443. -- Runtime Function: float __fractdasf (long accum A)
  1444. -- Runtime Function: double __fractdadf (long accum A)
  1445. -- Runtime Function: short fract __fracttaqq (long long accum A)
  1446. -- Runtime Function: fract __fracttahq (long long accum A)
  1447. -- Runtime Function: long fract __fracttasq (long long accum A)
  1448. -- Runtime Function: long long fract __fracttadq (long long accum A)
  1449. -- Runtime Function: short accum __fracttaha2 (long long accum A)
  1450. -- Runtime Function: accum __fracttasa2 (long long accum A)
  1451. -- Runtime Function: long accum __fracttada2 (long long accum A)
  1452. -- Runtime Function: unsigned short fract __fracttauqq (long long accum
  1453. A)
  1454. -- Runtime Function: unsigned fract __fracttauhq (long long accum A)
  1455. -- Runtime Function: unsigned long fract __fracttausq (long long accum
  1456. A)
  1457. -- Runtime Function: unsigned long long fract __fracttaudq (long long
  1458. accum A)
  1459. -- Runtime Function: unsigned short accum __fracttauha (long long accum
  1460. A)
  1461. -- Runtime Function: unsigned accum __fracttausa (long long accum A)
  1462. -- Runtime Function: unsigned long accum __fracttauda (long long accum
  1463. A)
  1464. -- Runtime Function: unsigned long long accum __fracttauta (long long
  1465. accum A)
  1466. -- Runtime Function: signed char __fracttaqi (long long accum A)
  1467. -- Runtime Function: short __fracttahi (long long accum A)
  1468. -- Runtime Function: int __fracttasi (long long accum A)
  1469. -- Runtime Function: long __fracttadi (long long accum A)
  1470. -- Runtime Function: long long __fracttati (long long accum A)
  1471. -- Runtime Function: float __fracttasf (long long accum A)
  1472. -- Runtime Function: double __fracttadf (long long accum A)
  1473. -- Runtime Function: short fract __fractuqqqq (unsigned short fract A)
  1474. -- Runtime Function: fract __fractuqqhq (unsigned short fract A)
  1475. -- Runtime Function: long fract __fractuqqsq (unsigned short fract A)
  1476. -- Runtime Function: long long fract __fractuqqdq (unsigned short fract
  1477. A)
  1478. -- Runtime Function: short accum __fractuqqha (unsigned short fract A)
  1479. -- Runtime Function: accum __fractuqqsa (unsigned short fract A)
  1480. -- Runtime Function: long accum __fractuqqda (unsigned short fract A)
  1481. -- Runtime Function: long long accum __fractuqqta (unsigned short fract
  1482. A)
  1483. -- Runtime Function: unsigned fract __fractuqquhq2 (unsigned short
  1484. fract A)
  1485. -- Runtime Function: unsigned long fract __fractuqqusq2 (unsigned short
  1486. fract A)
  1487. -- Runtime Function: unsigned long long fract __fractuqqudq2 (unsigned
  1488. short fract A)
  1489. -- Runtime Function: unsigned short accum __fractuqquha (unsigned short
  1490. fract A)
  1491. -- Runtime Function: unsigned accum __fractuqqusa (unsigned short fract
  1492. A)
  1493. -- Runtime Function: unsigned long accum __fractuqquda (unsigned short
  1494. fract A)
  1495. -- Runtime Function: unsigned long long accum __fractuqquta (unsigned
  1496. short fract A)
  1497. -- Runtime Function: signed char __fractuqqqi (unsigned short fract A)
  1498. -- Runtime Function: short __fractuqqhi (unsigned short fract A)
  1499. -- Runtime Function: int __fractuqqsi (unsigned short fract A)
  1500. -- Runtime Function: long __fractuqqdi (unsigned short fract A)
  1501. -- Runtime Function: long long __fractuqqti (unsigned short fract A)
  1502. -- Runtime Function: float __fractuqqsf (unsigned short fract A)
  1503. -- Runtime Function: double __fractuqqdf (unsigned short fract A)
  1504. -- Runtime Function: short fract __fractuhqqq (unsigned fract A)
  1505. -- Runtime Function: fract __fractuhqhq (unsigned fract A)
  1506. -- Runtime Function: long fract __fractuhqsq (unsigned fract A)
  1507. -- Runtime Function: long long fract __fractuhqdq (unsigned fract A)
  1508. -- Runtime Function: short accum __fractuhqha (unsigned fract A)
  1509. -- Runtime Function: accum __fractuhqsa (unsigned fract A)
  1510. -- Runtime Function: long accum __fractuhqda (unsigned fract A)
  1511. -- Runtime Function: long long accum __fractuhqta (unsigned fract A)
  1512. -- Runtime Function: unsigned short fract __fractuhquqq2 (unsigned
  1513. fract A)
  1514. -- Runtime Function: unsigned long fract __fractuhqusq2 (unsigned fract
  1515. A)
  1516. -- Runtime Function: unsigned long long fract __fractuhqudq2 (unsigned
  1517. fract A)
  1518. -- Runtime Function: unsigned short accum __fractuhquha (unsigned fract
  1519. A)
  1520. -- Runtime Function: unsigned accum __fractuhqusa (unsigned fract A)
  1521. -- Runtime Function: unsigned long accum __fractuhquda (unsigned fract
  1522. A)
  1523. -- Runtime Function: unsigned long long accum __fractuhquta (unsigned
  1524. fract A)
  1525. -- Runtime Function: signed char __fractuhqqi (unsigned fract A)
  1526. -- Runtime Function: short __fractuhqhi (unsigned fract A)
  1527. -- Runtime Function: int __fractuhqsi (unsigned fract A)
  1528. -- Runtime Function: long __fractuhqdi (unsigned fract A)
  1529. -- Runtime Function: long long __fractuhqti (unsigned fract A)
  1530. -- Runtime Function: float __fractuhqsf (unsigned fract A)
  1531. -- Runtime Function: double __fractuhqdf (unsigned fract A)
  1532. -- Runtime Function: short fract __fractusqqq (unsigned long fract A)
  1533. -- Runtime Function: fract __fractusqhq (unsigned long fract A)
  1534. -- Runtime Function: long fract __fractusqsq (unsigned long fract A)
  1535. -- Runtime Function: long long fract __fractusqdq (unsigned long fract
  1536. A)
  1537. -- Runtime Function: short accum __fractusqha (unsigned long fract A)
  1538. -- Runtime Function: accum __fractusqsa (unsigned long fract A)
  1539. -- Runtime Function: long accum __fractusqda (unsigned long fract A)
  1540. -- Runtime Function: long long accum __fractusqta (unsigned long fract
  1541. A)
  1542. -- Runtime Function: unsigned short fract __fractusquqq2 (unsigned long
  1543. fract A)
  1544. -- Runtime Function: unsigned fract __fractusquhq2 (unsigned long fract
  1545. A)
  1546. -- Runtime Function: unsigned long long fract __fractusqudq2 (unsigned
  1547. long fract A)
  1548. -- Runtime Function: unsigned short accum __fractusquha (unsigned long
  1549. fract A)
  1550. -- Runtime Function: unsigned accum __fractusqusa (unsigned long fract
  1551. A)
  1552. -- Runtime Function: unsigned long accum __fractusquda (unsigned long
  1553. fract A)
  1554. -- Runtime Function: unsigned long long accum __fractusquta (unsigned
  1555. long fract A)
  1556. -- Runtime Function: signed char __fractusqqi (unsigned long fract A)
  1557. -- Runtime Function: short __fractusqhi (unsigned long fract A)
  1558. -- Runtime Function: int __fractusqsi (unsigned long fract A)
  1559. -- Runtime Function: long __fractusqdi (unsigned long fract A)
  1560. -- Runtime Function: long long __fractusqti (unsigned long fract A)
  1561. -- Runtime Function: float __fractusqsf (unsigned long fract A)
  1562. -- Runtime Function: double __fractusqdf (unsigned long fract A)
  1563. -- Runtime Function: short fract __fractudqqq (unsigned long long fract
  1564. A)
  1565. -- Runtime Function: fract __fractudqhq (unsigned long long fract A)
  1566. -- Runtime Function: long fract __fractudqsq (unsigned long long fract
  1567. A)
  1568. -- Runtime Function: long long fract __fractudqdq (unsigned long long
  1569. fract A)
  1570. -- Runtime Function: short accum __fractudqha (unsigned long long fract
  1571. A)
  1572. -- Runtime Function: accum __fractudqsa (unsigned long long fract A)
  1573. -- Runtime Function: long accum __fractudqda (unsigned long long fract
  1574. A)
  1575. -- Runtime Function: long long accum __fractudqta (unsigned long long
  1576. fract A)
  1577. -- Runtime Function: unsigned short fract __fractudquqq2 (unsigned long
  1578. long fract A)
  1579. -- Runtime Function: unsigned fract __fractudquhq2 (unsigned long long
  1580. fract A)
  1581. -- Runtime Function: unsigned long fract __fractudqusq2 (unsigned long
  1582. long fract A)
  1583. -- Runtime Function: unsigned short accum __fractudquha (unsigned long
  1584. long fract A)
  1585. -- Runtime Function: unsigned accum __fractudqusa (unsigned long long
  1586. fract A)
  1587. -- Runtime Function: unsigned long accum __fractudquda (unsigned long
  1588. long fract A)
  1589. -- Runtime Function: unsigned long long accum __fractudquta (unsigned
  1590. long long fract A)
  1591. -- Runtime Function: signed char __fractudqqi (unsigned long long fract
  1592. A)
  1593. -- Runtime Function: short __fractudqhi (unsigned long long fract A)
  1594. -- Runtime Function: int __fractudqsi (unsigned long long fract A)
  1595. -- Runtime Function: long __fractudqdi (unsigned long long fract A)
  1596. -- Runtime Function: long long __fractudqti (unsigned long long fract
  1597. A)
  1598. -- Runtime Function: float __fractudqsf (unsigned long long fract A)
  1599. -- Runtime Function: double __fractudqdf (unsigned long long fract A)
  1600. -- Runtime Function: short fract __fractuhaqq (unsigned short accum A)
  1601. -- Runtime Function: fract __fractuhahq (unsigned short accum A)
  1602. -- Runtime Function: long fract __fractuhasq (unsigned short accum A)
  1603. -- Runtime Function: long long fract __fractuhadq (unsigned short accum
  1604. A)
  1605. -- Runtime Function: short accum __fractuhaha (unsigned short accum A)
  1606. -- Runtime Function: accum __fractuhasa (unsigned short accum A)
  1607. -- Runtime Function: long accum __fractuhada (unsigned short accum A)
  1608. -- Runtime Function: long long accum __fractuhata (unsigned short accum
  1609. A)
  1610. -- Runtime Function: unsigned short fract __fractuhauqq (unsigned short
  1611. accum A)
  1612. -- Runtime Function: unsigned fract __fractuhauhq (unsigned short accum
  1613. A)
  1614. -- Runtime Function: unsigned long fract __fractuhausq (unsigned short
  1615. accum A)
  1616. -- Runtime Function: unsigned long long fract __fractuhaudq (unsigned
  1617. short accum A)
  1618. -- Runtime Function: unsigned accum __fractuhausa2 (unsigned short
  1619. accum A)
  1620. -- Runtime Function: unsigned long accum __fractuhauda2 (unsigned short
  1621. accum A)
  1622. -- Runtime Function: unsigned long long accum __fractuhauta2 (unsigned
  1623. short accum A)
  1624. -- Runtime Function: signed char __fractuhaqi (unsigned short accum A)
  1625. -- Runtime Function: short __fractuhahi (unsigned short accum A)
  1626. -- Runtime Function: int __fractuhasi (unsigned short accum A)
  1627. -- Runtime Function: long __fractuhadi (unsigned short accum A)
  1628. -- Runtime Function: long long __fractuhati (unsigned short accum A)
  1629. -- Runtime Function: float __fractuhasf (unsigned short accum A)
  1630. -- Runtime Function: double __fractuhadf (unsigned short accum A)
  1631. -- Runtime Function: short fract __fractusaqq (unsigned accum A)
  1632. -- Runtime Function: fract __fractusahq (unsigned accum A)
  1633. -- Runtime Function: long fract __fractusasq (unsigned accum A)
  1634. -- Runtime Function: long long fract __fractusadq (unsigned accum A)
  1635. -- Runtime Function: short accum __fractusaha (unsigned accum A)
  1636. -- Runtime Function: accum __fractusasa (unsigned accum A)
  1637. -- Runtime Function: long accum __fractusada (unsigned accum A)
  1638. -- Runtime Function: long long accum __fractusata (unsigned accum A)
  1639. -- Runtime Function: unsigned short fract __fractusauqq (unsigned accum
  1640. A)
  1641. -- Runtime Function: unsigned fract __fractusauhq (unsigned accum A)
  1642. -- Runtime Function: unsigned long fract __fractusausq (unsigned accum
  1643. A)
  1644. -- Runtime Function: unsigned long long fract __fractusaudq (unsigned
  1645. accum A)
  1646. -- Runtime Function: unsigned short accum __fractusauha2 (unsigned
  1647. accum A)
  1648. -- Runtime Function: unsigned long accum __fractusauda2 (unsigned accum
  1649. A)
  1650. -- Runtime Function: unsigned long long accum __fractusauta2 (unsigned
  1651. accum A)
  1652. -- Runtime Function: signed char __fractusaqi (unsigned accum A)
  1653. -- Runtime Function: short __fractusahi (unsigned accum A)
  1654. -- Runtime Function: int __fractusasi (unsigned accum A)
  1655. -- Runtime Function: long __fractusadi (unsigned accum A)
  1656. -- Runtime Function: long long __fractusati (unsigned accum A)
  1657. -- Runtime Function: float __fractusasf (unsigned accum A)
  1658. -- Runtime Function: double __fractusadf (unsigned accum A)
  1659. -- Runtime Function: short fract __fractudaqq (unsigned long accum A)
  1660. -- Runtime Function: fract __fractudahq (unsigned long accum A)
  1661. -- Runtime Function: long fract __fractudasq (unsigned long accum A)
  1662. -- Runtime Function: long long fract __fractudadq (unsigned long accum
  1663. A)
  1664. -- Runtime Function: short accum __fractudaha (unsigned long accum A)
  1665. -- Runtime Function: accum __fractudasa (unsigned long accum A)
  1666. -- Runtime Function: long accum __fractudada (unsigned long accum A)
  1667. -- Runtime Function: long long accum __fractudata (unsigned long accum
  1668. A)
  1669. -- Runtime Function: unsigned short fract __fractudauqq (unsigned long
  1670. accum A)
  1671. -- Runtime Function: unsigned fract __fractudauhq (unsigned long accum
  1672. A)
  1673. -- Runtime Function: unsigned long fract __fractudausq (unsigned long
  1674. accum A)
  1675. -- Runtime Function: unsigned long long fract __fractudaudq (unsigned
  1676. long accum A)
  1677. -- Runtime Function: unsigned short accum __fractudauha2 (unsigned long
  1678. accum A)
  1679. -- Runtime Function: unsigned accum __fractudausa2 (unsigned long accum
  1680. A)
  1681. -- Runtime Function: unsigned long long accum __fractudauta2 (unsigned
  1682. long accum A)
  1683. -- Runtime Function: signed char __fractudaqi (unsigned long accum A)
  1684. -- Runtime Function: short __fractudahi (unsigned long accum A)
  1685. -- Runtime Function: int __fractudasi (unsigned long accum A)
  1686. -- Runtime Function: long __fractudadi (unsigned long accum A)
  1687. -- Runtime Function: long long __fractudati (unsigned long accum A)
  1688. -- Runtime Function: float __fractudasf (unsigned long accum A)
  1689. -- Runtime Function: double __fractudadf (unsigned long accum A)
  1690. -- Runtime Function: short fract __fractutaqq (unsigned long long accum
  1691. A)
  1692. -- Runtime Function: fract __fractutahq (unsigned long long accum A)
  1693. -- Runtime Function: long fract __fractutasq (unsigned long long accum
  1694. A)
  1695. -- Runtime Function: long long fract __fractutadq (unsigned long long
  1696. accum A)
  1697. -- Runtime Function: short accum __fractutaha (unsigned long long accum
  1698. A)
  1699. -- Runtime Function: accum __fractutasa (unsigned long long accum A)
  1700. -- Runtime Function: long accum __fractutada (unsigned long long accum
  1701. A)
  1702. -- Runtime Function: long long accum __fractutata (unsigned long long
  1703. accum A)
  1704. -- Runtime Function: unsigned short fract __fractutauqq (unsigned long
  1705. long accum A)
  1706. -- Runtime Function: unsigned fract __fractutauhq (unsigned long long
  1707. accum A)
  1708. -- Runtime Function: unsigned long fract __fractutausq (unsigned long
  1709. long accum A)
  1710. -- Runtime Function: unsigned long long fract __fractutaudq (unsigned
  1711. long long accum A)
  1712. -- Runtime Function: unsigned short accum __fractutauha2 (unsigned long
  1713. long accum A)
  1714. -- Runtime Function: unsigned accum __fractutausa2 (unsigned long long
  1715. accum A)
  1716. -- Runtime Function: unsigned long accum __fractutauda2 (unsigned long
  1717. long accum A)
  1718. -- Runtime Function: signed char __fractutaqi (unsigned long long accum
  1719. A)
  1720. -- Runtime Function: short __fractutahi (unsigned long long accum A)
  1721. -- Runtime Function: int __fractutasi (unsigned long long accum A)
  1722. -- Runtime Function: long __fractutadi (unsigned long long accum A)
  1723. -- Runtime Function: long long __fractutati (unsigned long long accum
  1724. A)
  1725. -- Runtime Function: float __fractutasf (unsigned long long accum A)
  1726. -- Runtime Function: double __fractutadf (unsigned long long accum A)
  1727. -- Runtime Function: short fract __fractqiqq (signed char A)
  1728. -- Runtime Function: fract __fractqihq (signed char A)
  1729. -- Runtime Function: long fract __fractqisq (signed char A)
  1730. -- Runtime Function: long long fract __fractqidq (signed char A)
  1731. -- Runtime Function: short accum __fractqiha (signed char A)
  1732. -- Runtime Function: accum __fractqisa (signed char A)
  1733. -- Runtime Function: long accum __fractqida (signed char A)
  1734. -- Runtime Function: long long accum __fractqita (signed char A)
  1735. -- Runtime Function: unsigned short fract __fractqiuqq (signed char A)
  1736. -- Runtime Function: unsigned fract __fractqiuhq (signed char A)
  1737. -- Runtime Function: unsigned long fract __fractqiusq (signed char A)
  1738. -- Runtime Function: unsigned long long fract __fractqiudq (signed char
  1739. A)
  1740. -- Runtime Function: unsigned short accum __fractqiuha (signed char A)
  1741. -- Runtime Function: unsigned accum __fractqiusa (signed char A)
  1742. -- Runtime Function: unsigned long accum __fractqiuda (signed char A)
  1743. -- Runtime Function: unsigned long long accum __fractqiuta (signed char
  1744. A)
  1745. -- Runtime Function: short fract __fracthiqq (short A)
  1746. -- Runtime Function: fract __fracthihq (short A)
  1747. -- Runtime Function: long fract __fracthisq (short A)
  1748. -- Runtime Function: long long fract __fracthidq (short A)
  1749. -- Runtime Function: short accum __fracthiha (short A)
  1750. -- Runtime Function: accum __fracthisa (short A)
  1751. -- Runtime Function: long accum __fracthida (short A)
  1752. -- Runtime Function: long long accum __fracthita (short A)
  1753. -- Runtime Function: unsigned short fract __fracthiuqq (short A)
  1754. -- Runtime Function: unsigned fract __fracthiuhq (short A)
  1755. -- Runtime Function: unsigned long fract __fracthiusq (short A)
  1756. -- Runtime Function: unsigned long long fract __fracthiudq (short A)
  1757. -- Runtime Function: unsigned short accum __fracthiuha (short A)
  1758. -- Runtime Function: unsigned accum __fracthiusa (short A)
  1759. -- Runtime Function: unsigned long accum __fracthiuda (short A)
  1760. -- Runtime Function: unsigned long long accum __fracthiuta (short A)
  1761. -- Runtime Function: short fract __fractsiqq (int A)
  1762. -- Runtime Function: fract __fractsihq (int A)
  1763. -- Runtime Function: long fract __fractsisq (int A)
  1764. -- Runtime Function: long long fract __fractsidq (int A)
  1765. -- Runtime Function: short accum __fractsiha (int A)
  1766. -- Runtime Function: accum __fractsisa (int A)
  1767. -- Runtime Function: long accum __fractsida (int A)
  1768. -- Runtime Function: long long accum __fractsita (int A)
  1769. -- Runtime Function: unsigned short fract __fractsiuqq (int A)
  1770. -- Runtime Function: unsigned fract __fractsiuhq (int A)
  1771. -- Runtime Function: unsigned long fract __fractsiusq (int A)
  1772. -- Runtime Function: unsigned long long fract __fractsiudq (int A)
  1773. -- Runtime Function: unsigned short accum __fractsiuha (int A)
  1774. -- Runtime Function: unsigned accum __fractsiusa (int A)
  1775. -- Runtime Function: unsigned long accum __fractsiuda (int A)
  1776. -- Runtime Function: unsigned long long accum __fractsiuta (int A)
  1777. -- Runtime Function: short fract __fractdiqq (long A)
  1778. -- Runtime Function: fract __fractdihq (long A)
  1779. -- Runtime Function: long fract __fractdisq (long A)
  1780. -- Runtime Function: long long fract __fractdidq (long A)
  1781. -- Runtime Function: short accum __fractdiha (long A)
  1782. -- Runtime Function: accum __fractdisa (long A)
  1783. -- Runtime Function: long accum __fractdida (long A)
  1784. -- Runtime Function: long long accum __fractdita (long A)
  1785. -- Runtime Function: unsigned short fract __fractdiuqq (long A)
  1786. -- Runtime Function: unsigned fract __fractdiuhq (long A)
  1787. -- Runtime Function: unsigned long fract __fractdiusq (long A)
  1788. -- Runtime Function: unsigned long long fract __fractdiudq (long A)
  1789. -- Runtime Function: unsigned short accum __fractdiuha (long A)
  1790. -- Runtime Function: unsigned accum __fractdiusa (long A)
  1791. -- Runtime Function: unsigned long accum __fractdiuda (long A)
  1792. -- Runtime Function: unsigned long long accum __fractdiuta (long A)
  1793. -- Runtime Function: short fract __fracttiqq (long long A)
  1794. -- Runtime Function: fract __fracttihq (long long A)
  1795. -- Runtime Function: long fract __fracttisq (long long A)
  1796. -- Runtime Function: long long fract __fracttidq (long long A)
  1797. -- Runtime Function: short accum __fracttiha (long long A)
  1798. -- Runtime Function: accum __fracttisa (long long A)
  1799. -- Runtime Function: long accum __fracttida (long long A)
  1800. -- Runtime Function: long long accum __fracttita (long long A)
  1801. -- Runtime Function: unsigned short fract __fracttiuqq (long long A)
  1802. -- Runtime Function: unsigned fract __fracttiuhq (long long A)
  1803. -- Runtime Function: unsigned long fract __fracttiusq (long long A)
  1804. -- Runtime Function: unsigned long long fract __fracttiudq (long long
  1805. A)
  1806. -- Runtime Function: unsigned short accum __fracttiuha (long long A)
  1807. -- Runtime Function: unsigned accum __fracttiusa (long long A)
  1808. -- Runtime Function: unsigned long accum __fracttiuda (long long A)
  1809. -- Runtime Function: unsigned long long accum __fracttiuta (long long
  1810. A)
  1811. -- Runtime Function: short fract __fractsfqq (float A)
  1812. -- Runtime Function: fract __fractsfhq (float A)
  1813. -- Runtime Function: long fract __fractsfsq (float A)
  1814. -- Runtime Function: long long fract __fractsfdq (float A)
  1815. -- Runtime Function: short accum __fractsfha (float A)
  1816. -- Runtime Function: accum __fractsfsa (float A)
  1817. -- Runtime Function: long accum __fractsfda (float A)
  1818. -- Runtime Function: long long accum __fractsfta (float A)
  1819. -- Runtime Function: unsigned short fract __fractsfuqq (float A)
  1820. -- Runtime Function: unsigned fract __fractsfuhq (float A)
  1821. -- Runtime Function: unsigned long fract __fractsfusq (float A)
  1822. -- Runtime Function: unsigned long long fract __fractsfudq (float A)
  1823. -- Runtime Function: unsigned short accum __fractsfuha (float A)
  1824. -- Runtime Function: unsigned accum __fractsfusa (float A)
  1825. -- Runtime Function: unsigned long accum __fractsfuda (float A)
  1826. -- Runtime Function: unsigned long long accum __fractsfuta (float A)
  1827. -- Runtime Function: short fract __fractdfqq (double A)
  1828. -- Runtime Function: fract __fractdfhq (double A)
  1829. -- Runtime Function: long fract __fractdfsq (double A)
  1830. -- Runtime Function: long long fract __fractdfdq (double A)
  1831. -- Runtime Function: short accum __fractdfha (double A)
  1832. -- Runtime Function: accum __fractdfsa (double A)
  1833. -- Runtime Function: long accum __fractdfda (double A)
  1834. -- Runtime Function: long long accum __fractdfta (double A)
  1835. -- Runtime Function: unsigned short fract __fractdfuqq (double A)
  1836. -- Runtime Function: unsigned fract __fractdfuhq (double A)
  1837. -- Runtime Function: unsigned long fract __fractdfusq (double A)
  1838. -- Runtime Function: unsigned long long fract __fractdfudq (double A)
  1839. -- Runtime Function: unsigned short accum __fractdfuha (double A)
  1840. -- Runtime Function: unsigned accum __fractdfusa (double A)
  1841. -- Runtime Function: unsigned long accum __fractdfuda (double A)
  1842. -- Runtime Function: unsigned long long accum __fractdfuta (double A)
  1843. These functions convert from fractional and signed non-fractionals
  1844. to fractionals and signed non-fractionals, without saturation.
  1845. -- Runtime Function: fract __satfractqqhq2 (short fract A)
  1846. -- Runtime Function: long fract __satfractqqsq2 (short fract A)
  1847. -- Runtime Function: long long fract __satfractqqdq2 (short fract A)
  1848. -- Runtime Function: short accum __satfractqqha (short fract A)
  1849. -- Runtime Function: accum __satfractqqsa (short fract A)
  1850. -- Runtime Function: long accum __satfractqqda (short fract A)
  1851. -- Runtime Function: long long accum __satfractqqta (short fract A)
  1852. -- Runtime Function: unsigned short fract __satfractqquqq (short fract
  1853. A)
  1854. -- Runtime Function: unsigned fract __satfractqquhq (short fract A)
  1855. -- Runtime Function: unsigned long fract __satfractqqusq (short fract
  1856. A)
  1857. -- Runtime Function: unsigned long long fract __satfractqqudq (short
  1858. fract A)
  1859. -- Runtime Function: unsigned short accum __satfractqquha (short fract
  1860. A)
  1861. -- Runtime Function: unsigned accum __satfractqqusa (short fract A)
  1862. -- Runtime Function: unsigned long accum __satfractqquda (short fract
  1863. A)
  1864. -- Runtime Function: unsigned long long accum __satfractqquta (short
  1865. fract A)
  1866. -- Runtime Function: short fract __satfracthqqq2 (fract A)
  1867. -- Runtime Function: long fract __satfracthqsq2 (fract A)
  1868. -- Runtime Function: long long fract __satfracthqdq2 (fract A)
  1869. -- Runtime Function: short accum __satfracthqha (fract A)
  1870. -- Runtime Function: accum __satfracthqsa (fract A)
  1871. -- Runtime Function: long accum __satfracthqda (fract A)
  1872. -- Runtime Function: long long accum __satfracthqta (fract A)
  1873. -- Runtime Function: unsigned short fract __satfracthquqq (fract A)
  1874. -- Runtime Function: unsigned fract __satfracthquhq (fract A)
  1875. -- Runtime Function: unsigned long fract __satfracthqusq (fract A)
  1876. -- Runtime Function: unsigned long long fract __satfracthqudq (fract A)
  1877. -- Runtime Function: unsigned short accum __satfracthquha (fract A)
  1878. -- Runtime Function: unsigned accum __satfracthqusa (fract A)
  1879. -- Runtime Function: unsigned long accum __satfracthquda (fract A)
  1880. -- Runtime Function: unsigned long long accum __satfracthquta (fract A)
  1881. -- Runtime Function: short fract __satfractsqqq2 (long fract A)
  1882. -- Runtime Function: fract __satfractsqhq2 (long fract A)
  1883. -- Runtime Function: long long fract __satfractsqdq2 (long fract A)
  1884. -- Runtime Function: short accum __satfractsqha (long fract A)
  1885. -- Runtime Function: accum __satfractsqsa (long fract A)
  1886. -- Runtime Function: long accum __satfractsqda (long fract A)
  1887. -- Runtime Function: long long accum __satfractsqta (long fract A)
  1888. -- Runtime Function: unsigned short fract __satfractsquqq (long fract
  1889. A)
  1890. -- Runtime Function: unsigned fract __satfractsquhq (long fract A)
  1891. -- Runtime Function: unsigned long fract __satfractsqusq (long fract A)
  1892. -- Runtime Function: unsigned long long fract __satfractsqudq (long
  1893. fract A)
  1894. -- Runtime Function: unsigned short accum __satfractsquha (long fract
  1895. A)
  1896. -- Runtime Function: unsigned accum __satfractsqusa (long fract A)
  1897. -- Runtime Function: unsigned long accum __satfractsquda (long fract A)
  1898. -- Runtime Function: unsigned long long accum __satfractsquta (long
  1899. fract A)
  1900. -- Runtime Function: short fract __satfractdqqq2 (long long fract A)
  1901. -- Runtime Function: fract __satfractdqhq2 (long long fract A)
  1902. -- Runtime Function: long fract __satfractdqsq2 (long long fract A)
  1903. -- Runtime Function: short accum __satfractdqha (long long fract A)
  1904. -- Runtime Function: accum __satfractdqsa (long long fract A)
  1905. -- Runtime Function: long accum __satfractdqda (long long fract A)
  1906. -- Runtime Function: long long accum __satfractdqta (long long fract A)
  1907. -- Runtime Function: unsigned short fract __satfractdquqq (long long
  1908. fract A)
  1909. -- Runtime Function: unsigned fract __satfractdquhq (long long fract A)
  1910. -- Runtime Function: unsigned long fract __satfractdqusq (long long
  1911. fract A)
  1912. -- Runtime Function: unsigned long long fract __satfractdqudq (long
  1913. long fract A)
  1914. -- Runtime Function: unsigned short accum __satfractdquha (long long
  1915. fract A)
  1916. -- Runtime Function: unsigned accum __satfractdqusa (long long fract A)
  1917. -- Runtime Function: unsigned long accum __satfractdquda (long long
  1918. fract A)
  1919. -- Runtime Function: unsigned long long accum __satfractdquta (long
  1920. long fract A)
  1921. -- Runtime Function: short fract __satfracthaqq (short accum A)
  1922. -- Runtime Function: fract __satfracthahq (short accum A)
  1923. -- Runtime Function: long fract __satfracthasq (short accum A)
  1924. -- Runtime Function: long long fract __satfracthadq (short accum A)
  1925. -- Runtime Function: accum __satfracthasa2 (short accum A)
  1926. -- Runtime Function: long accum __satfracthada2 (short accum A)
  1927. -- Runtime Function: long long accum __satfracthata2 (short accum A)
  1928. -- Runtime Function: unsigned short fract __satfracthauqq (short accum
  1929. A)
  1930. -- Runtime Function: unsigned fract __satfracthauhq (short accum A)
  1931. -- Runtime Function: unsigned long fract __satfracthausq (short accum
  1932. A)
  1933. -- Runtime Function: unsigned long long fract __satfracthaudq (short
  1934. accum A)
  1935. -- Runtime Function: unsigned short accum __satfracthauha (short accum
  1936. A)
  1937. -- Runtime Function: unsigned accum __satfracthausa (short accum A)
  1938. -- Runtime Function: unsigned long accum __satfracthauda (short accum
  1939. A)
  1940. -- Runtime Function: unsigned long long accum __satfracthauta (short
  1941. accum A)
  1942. -- Runtime Function: short fract __satfractsaqq (accum A)
  1943. -- Runtime Function: fract __satfractsahq (accum A)
  1944. -- Runtime Function: long fract __satfractsasq (accum A)
  1945. -- Runtime Function: long long fract __satfractsadq (accum A)
  1946. -- Runtime Function: short accum __satfractsaha2 (accum A)
  1947. -- Runtime Function: long accum __satfractsada2 (accum A)
  1948. -- Runtime Function: long long accum __satfractsata2 (accum A)
  1949. -- Runtime Function: unsigned short fract __satfractsauqq (accum A)
  1950. -- Runtime Function: unsigned fract __satfractsauhq (accum A)
  1951. -- Runtime Function: unsigned long fract __satfractsausq (accum A)
  1952. -- Runtime Function: unsigned long long fract __satfractsaudq (accum A)
  1953. -- Runtime Function: unsigned short accum __satfractsauha (accum A)
  1954. -- Runtime Function: unsigned accum __satfractsausa (accum A)
  1955. -- Runtime Function: unsigned long accum __satfractsauda (accum A)
  1956. -- Runtime Function: unsigned long long accum __satfractsauta (accum A)
  1957. -- Runtime Function: short fract __satfractdaqq (long accum A)
  1958. -- Runtime Function: fract __satfractdahq (long accum A)
  1959. -- Runtime Function: long fract __satfractdasq (long accum A)
  1960. -- Runtime Function: long long fract __satfractdadq (long accum A)
  1961. -- Runtime Function: short accum __satfractdaha2 (long accum A)
  1962. -- Runtime Function: accum __satfractdasa2 (long accum A)
  1963. -- Runtime Function: long long accum __satfractdata2 (long accum A)
  1964. -- Runtime Function: unsigned short fract __satfractdauqq (long accum
  1965. A)
  1966. -- Runtime Function: unsigned fract __satfractdauhq (long accum A)
  1967. -- Runtime Function: unsigned long fract __satfractdausq (long accum A)
  1968. -- Runtime Function: unsigned long long fract __satfractdaudq (long
  1969. accum A)
  1970. -- Runtime Function: unsigned short accum __satfractdauha (long accum
  1971. A)
  1972. -- Runtime Function: unsigned accum __satfractdausa (long accum A)
  1973. -- Runtime Function: unsigned long accum __satfractdauda (long accum A)
  1974. -- Runtime Function: unsigned long long accum __satfractdauta (long
  1975. accum A)
  1976. -- Runtime Function: short fract __satfracttaqq (long long accum A)
  1977. -- Runtime Function: fract __satfracttahq (long long accum A)
  1978. -- Runtime Function: long fract __satfracttasq (long long accum A)
  1979. -- Runtime Function: long long fract __satfracttadq (long long accum A)
  1980. -- Runtime Function: short accum __satfracttaha2 (long long accum A)
  1981. -- Runtime Function: accum __satfracttasa2 (long long accum A)
  1982. -- Runtime Function: long accum __satfracttada2 (long long accum A)
  1983. -- Runtime Function: unsigned short fract __satfracttauqq (long long
  1984. accum A)
  1985. -- Runtime Function: unsigned fract __satfracttauhq (long long accum A)
  1986. -- Runtime Function: unsigned long fract __satfracttausq (long long
  1987. accum A)
  1988. -- Runtime Function: unsigned long long fract __satfracttaudq (long
  1989. long accum A)
  1990. -- Runtime Function: unsigned short accum __satfracttauha (long long
  1991. accum A)
  1992. -- Runtime Function: unsigned accum __satfracttausa (long long accum A)
  1993. -- Runtime Function: unsigned long accum __satfracttauda (long long
  1994. accum A)
  1995. -- Runtime Function: unsigned long long accum __satfracttauta (long
  1996. long accum A)
  1997. -- Runtime Function: short fract __satfractuqqqq (unsigned short fract
  1998. A)
  1999. -- Runtime Function: fract __satfractuqqhq (unsigned short fract A)
  2000. -- Runtime Function: long fract __satfractuqqsq (unsigned short fract
  2001. A)
  2002. -- Runtime Function: long long fract __satfractuqqdq (unsigned short
  2003. fract A)
  2004. -- Runtime Function: short accum __satfractuqqha (unsigned short fract
  2005. A)
  2006. -- Runtime Function: accum __satfractuqqsa (unsigned short fract A)
  2007. -- Runtime Function: long accum __satfractuqqda (unsigned short fract
  2008. A)
  2009. -- Runtime Function: long long accum __satfractuqqta (unsigned short
  2010. fract A)
  2011. -- Runtime Function: unsigned fract __satfractuqquhq2 (unsigned short
  2012. fract A)
  2013. -- Runtime Function: unsigned long fract __satfractuqqusq2 (unsigned
  2014. short fract A)
  2015. -- Runtime Function: unsigned long long fract __satfractuqqudq2
  2016. (unsigned short fract A)
  2017. -- Runtime Function: unsigned short accum __satfractuqquha (unsigned
  2018. short fract A)
  2019. -- Runtime Function: unsigned accum __satfractuqqusa (unsigned short
  2020. fract A)
  2021. -- Runtime Function: unsigned long accum __satfractuqquda (unsigned
  2022. short fract A)
  2023. -- Runtime Function: unsigned long long accum __satfractuqquta
  2024. (unsigned short fract A)
  2025. -- Runtime Function: short fract __satfractuhqqq (unsigned fract A)
  2026. -- Runtime Function: fract __satfractuhqhq (unsigned fract A)
  2027. -- Runtime Function: long fract __satfractuhqsq (unsigned fract A)
  2028. -- Runtime Function: long long fract __satfractuhqdq (unsigned fract A)
  2029. -- Runtime Function: short accum __satfractuhqha (unsigned fract A)
  2030. -- Runtime Function: accum __satfractuhqsa (unsigned fract A)
  2031. -- Runtime Function: long accum __satfractuhqda (unsigned fract A)
  2032. -- Runtime Function: long long accum __satfractuhqta (unsigned fract A)
  2033. -- Runtime Function: unsigned short fract __satfractuhquqq2 (unsigned
  2034. fract A)
  2035. -- Runtime Function: unsigned long fract __satfractuhqusq2 (unsigned
  2036. fract A)
  2037. -- Runtime Function: unsigned long long fract __satfractuhqudq2
  2038. (unsigned fract A)
  2039. -- Runtime Function: unsigned short accum __satfractuhquha (unsigned
  2040. fract A)
  2041. -- Runtime Function: unsigned accum __satfractuhqusa (unsigned fract A)
  2042. -- Runtime Function: unsigned long accum __satfractuhquda (unsigned
  2043. fract A)
  2044. -- Runtime Function: unsigned long long accum __satfractuhquta
  2045. (unsigned fract A)
  2046. -- Runtime Function: short fract __satfractusqqq (unsigned long fract
  2047. A)
  2048. -- Runtime Function: fract __satfractusqhq (unsigned long fract A)
  2049. -- Runtime Function: long fract __satfractusqsq (unsigned long fract A)
  2050. -- Runtime Function: long long fract __satfractusqdq (unsigned long
  2051. fract A)
  2052. -- Runtime Function: short accum __satfractusqha (unsigned long fract
  2053. A)
  2054. -- Runtime Function: accum __satfractusqsa (unsigned long fract A)
  2055. -- Runtime Function: long accum __satfractusqda (unsigned long fract A)
  2056. -- Runtime Function: long long accum __satfractusqta (unsigned long
  2057. fract A)
  2058. -- Runtime Function: unsigned short fract __satfractusquqq2 (unsigned
  2059. long fract A)
  2060. -- Runtime Function: unsigned fract __satfractusquhq2 (unsigned long
  2061. fract A)
  2062. -- Runtime Function: unsigned long long fract __satfractusqudq2
  2063. (unsigned long fract A)
  2064. -- Runtime Function: unsigned short accum __satfractusquha (unsigned
  2065. long fract A)
  2066. -- Runtime Function: unsigned accum __satfractusqusa (unsigned long
  2067. fract A)
  2068. -- Runtime Function: unsigned long accum __satfractusquda (unsigned
  2069. long fract A)
  2070. -- Runtime Function: unsigned long long accum __satfractusquta
  2071. (unsigned long fract A)
  2072. -- Runtime Function: short fract __satfractudqqq (unsigned long long
  2073. fract A)
  2074. -- Runtime Function: fract __satfractudqhq (unsigned long long fract A)
  2075. -- Runtime Function: long fract __satfractudqsq (unsigned long long
  2076. fract A)
  2077. -- Runtime Function: long long fract __satfractudqdq (unsigned long
  2078. long fract A)
  2079. -- Runtime Function: short accum __satfractudqha (unsigned long long
  2080. fract A)
  2081. -- Runtime Function: accum __satfractudqsa (unsigned long long fract A)
  2082. -- Runtime Function: long accum __satfractudqda (unsigned long long
  2083. fract A)
  2084. -- Runtime Function: long long accum __satfractudqta (unsigned long
  2085. long fract A)
  2086. -- Runtime Function: unsigned short fract __satfractudquqq2 (unsigned
  2087. long long fract A)
  2088. -- Runtime Function: unsigned fract __satfractudquhq2 (unsigned long
  2089. long fract A)
  2090. -- Runtime Function: unsigned long fract __satfractudqusq2 (unsigned
  2091. long long fract A)
  2092. -- Runtime Function: unsigned short accum __satfractudquha (unsigned
  2093. long long fract A)
  2094. -- Runtime Function: unsigned accum __satfractudqusa (unsigned long
  2095. long fract A)
  2096. -- Runtime Function: unsigned long accum __satfractudquda (unsigned
  2097. long long fract A)
  2098. -- Runtime Function: unsigned long long accum __satfractudquta
  2099. (unsigned long long fract A)
  2100. -- Runtime Function: short fract __satfractuhaqq (unsigned short accum
  2101. A)
  2102. -- Runtime Function: fract __satfractuhahq (unsigned short accum A)
  2103. -- Runtime Function: long fract __satfractuhasq (unsigned short accum
  2104. A)
  2105. -- Runtime Function: long long fract __satfractuhadq (unsigned short
  2106. accum A)
  2107. -- Runtime Function: short accum __satfractuhaha (unsigned short accum
  2108. A)
  2109. -- Runtime Function: accum __satfractuhasa (unsigned short accum A)
  2110. -- Runtime Function: long accum __satfractuhada (unsigned short accum
  2111. A)
  2112. -- Runtime Function: long long accum __satfractuhata (unsigned short
  2113. accum A)
  2114. -- Runtime Function: unsigned short fract __satfractuhauqq (unsigned
  2115. short accum A)
  2116. -- Runtime Function: unsigned fract __satfractuhauhq (unsigned short
  2117. accum A)
  2118. -- Runtime Function: unsigned long fract __satfractuhausq (unsigned
  2119. short accum A)
  2120. -- Runtime Function: unsigned long long fract __satfractuhaudq
  2121. (unsigned short accum A)
  2122. -- Runtime Function: unsigned accum __satfractuhausa2 (unsigned short
  2123. accum A)
  2124. -- Runtime Function: unsigned long accum __satfractuhauda2 (unsigned
  2125. short accum A)
  2126. -- Runtime Function: unsigned long long accum __satfractuhauta2
  2127. (unsigned short accum A)
  2128. -- Runtime Function: short fract __satfractusaqq (unsigned accum A)
  2129. -- Runtime Function: fract __satfractusahq (unsigned accum A)
  2130. -- Runtime Function: long fract __satfractusasq (unsigned accum A)
  2131. -- Runtime Function: long long fract __satfractusadq (unsigned accum A)
  2132. -- Runtime Function: short accum __satfractusaha (unsigned accum A)
  2133. -- Runtime Function: accum __satfractusasa (unsigned accum A)
  2134. -- Runtime Function: long accum __satfractusada (unsigned accum A)
  2135. -- Runtime Function: long long accum __satfractusata (unsigned accum A)
  2136. -- Runtime Function: unsigned short fract __satfractusauqq (unsigned
  2137. accum A)
  2138. -- Runtime Function: unsigned fract __satfractusauhq (unsigned accum A)
  2139. -- Runtime Function: unsigned long fract __satfractusausq (unsigned
  2140. accum A)
  2141. -- Runtime Function: unsigned long long fract __satfractusaudq
  2142. (unsigned accum A)
  2143. -- Runtime Function: unsigned short accum __satfractusauha2 (unsigned
  2144. accum A)
  2145. -- Runtime Function: unsigned long accum __satfractusauda2 (unsigned
  2146. accum A)
  2147. -- Runtime Function: unsigned long long accum __satfractusauta2
  2148. (unsigned accum A)
  2149. -- Runtime Function: short fract __satfractudaqq (unsigned long accum
  2150. A)
  2151. -- Runtime Function: fract __satfractudahq (unsigned long accum A)
  2152. -- Runtime Function: long fract __satfractudasq (unsigned long accum A)
  2153. -- Runtime Function: long long fract __satfractudadq (unsigned long
  2154. accum A)
  2155. -- Runtime Function: short accum __satfractudaha (unsigned long accum
  2156. A)
  2157. -- Runtime Function: accum __satfractudasa (unsigned long accum A)
  2158. -- Runtime Function: long accum __satfractudada (unsigned long accum A)
  2159. -- Runtime Function: long long accum __satfractudata (unsigned long
  2160. accum A)
  2161. -- Runtime Function: unsigned short fract __satfractudauqq (unsigned
  2162. long accum A)
  2163. -- Runtime Function: unsigned fract __satfractudauhq (unsigned long
  2164. accum A)
  2165. -- Runtime Function: unsigned long fract __satfractudausq (unsigned
  2166. long accum A)
  2167. -- Runtime Function: unsigned long long fract __satfractudaudq
  2168. (unsigned long accum A)
  2169. -- Runtime Function: unsigned short accum __satfractudauha2 (unsigned
  2170. long accum A)
  2171. -- Runtime Function: unsigned accum __satfractudausa2 (unsigned long
  2172. accum A)
  2173. -- Runtime Function: unsigned long long accum __satfractudauta2
  2174. (unsigned long accum A)
  2175. -- Runtime Function: short fract __satfractutaqq (unsigned long long
  2176. accum A)
  2177. -- Runtime Function: fract __satfractutahq (unsigned long long accum A)
  2178. -- Runtime Function: long fract __satfractutasq (unsigned long long
  2179. accum A)
  2180. -- Runtime Function: long long fract __satfractutadq (unsigned long
  2181. long accum A)
  2182. -- Runtime Function: short accum __satfractutaha (unsigned long long
  2183. accum A)
  2184. -- Runtime Function: accum __satfractutasa (unsigned long long accum A)
  2185. -- Runtime Function: long accum __satfractutada (unsigned long long
  2186. accum A)
  2187. -- Runtime Function: long long accum __satfractutata (unsigned long
  2188. long accum A)
  2189. -- Runtime Function: unsigned short fract __satfractutauqq (unsigned
  2190. long long accum A)
  2191. -- Runtime Function: unsigned fract __satfractutauhq (unsigned long
  2192. long accum A)
  2193. -- Runtime Function: unsigned long fract __satfractutausq (unsigned
  2194. long long accum A)
  2195. -- Runtime Function: unsigned long long fract __satfractutaudq
  2196. (unsigned long long accum A)
  2197. -- Runtime Function: unsigned short accum __satfractutauha2 (unsigned
  2198. long long accum A)
  2199. -- Runtime Function: unsigned accum __satfractutausa2 (unsigned long
  2200. long accum A)
  2201. -- Runtime Function: unsigned long accum __satfractutauda2 (unsigned
  2202. long long accum A)
  2203. -- Runtime Function: short fract __satfractqiqq (signed char A)
  2204. -- Runtime Function: fract __satfractqihq (signed char A)
  2205. -- Runtime Function: long fract __satfractqisq (signed char A)
  2206. -- Runtime Function: long long fract __satfractqidq (signed char A)
  2207. -- Runtime Function: short accum __satfractqiha (signed char A)
  2208. -- Runtime Function: accum __satfractqisa (signed char A)
  2209. -- Runtime Function: long accum __satfractqida (signed char A)
  2210. -- Runtime Function: long long accum __satfractqita (signed char A)
  2211. -- Runtime Function: unsigned short fract __satfractqiuqq (signed char
  2212. A)
  2213. -- Runtime Function: unsigned fract __satfractqiuhq (signed char A)
  2214. -- Runtime Function: unsigned long fract __satfractqiusq (signed char
  2215. A)
  2216. -- Runtime Function: unsigned long long fract __satfractqiudq (signed
  2217. char A)
  2218. -- Runtime Function: unsigned short accum __satfractqiuha (signed char
  2219. A)
  2220. -- Runtime Function: unsigned accum __satfractqiusa (signed char A)
  2221. -- Runtime Function: unsigned long accum __satfractqiuda (signed char
  2222. A)
  2223. -- Runtime Function: unsigned long long accum __satfractqiuta (signed
  2224. char A)
  2225. -- Runtime Function: short fract __satfracthiqq (short A)
  2226. -- Runtime Function: fract __satfracthihq (short A)
  2227. -- Runtime Function: long fract __satfracthisq (short A)
  2228. -- Runtime Function: long long fract __satfracthidq (short A)
  2229. -- Runtime Function: short accum __satfracthiha (short A)
  2230. -- Runtime Function: accum __satfracthisa (short A)
  2231. -- Runtime Function: long accum __satfracthida (short A)
  2232. -- Runtime Function: long long accum __satfracthita (short A)
  2233. -- Runtime Function: unsigned short fract __satfracthiuqq (short A)
  2234. -- Runtime Function: unsigned fract __satfracthiuhq (short A)
  2235. -- Runtime Function: unsigned long fract __satfracthiusq (short A)
  2236. -- Runtime Function: unsigned long long fract __satfracthiudq (short A)
  2237. -- Runtime Function: unsigned short accum __satfracthiuha (short A)
  2238. -- Runtime Function: unsigned accum __satfracthiusa (short A)
  2239. -- Runtime Function: unsigned long accum __satfracthiuda (short A)
  2240. -- Runtime Function: unsigned long long accum __satfracthiuta (short A)
  2241. -- Runtime Function: short fract __satfractsiqq (int A)
  2242. -- Runtime Function: fract __satfractsihq (int A)
  2243. -- Runtime Function: long fract __satfractsisq (int A)
  2244. -- Runtime Function: long long fract __satfractsidq (int A)
  2245. -- Runtime Function: short accum __satfractsiha (int A)
  2246. -- Runtime Function: accum __satfractsisa (int A)
  2247. -- Runtime Function: long accum __satfractsida (int A)
  2248. -- Runtime Function: long long accum __satfractsita (int A)
  2249. -- Runtime Function: unsigned short fract __satfractsiuqq (int A)
  2250. -- Runtime Function: unsigned fract __satfractsiuhq (int A)
  2251. -- Runtime Function: unsigned long fract __satfractsiusq (int A)
  2252. -- Runtime Function: unsigned long long fract __satfractsiudq (int A)
  2253. -- Runtime Function: unsigned short accum __satfractsiuha (int A)
  2254. -- Runtime Function: unsigned accum __satfractsiusa (int A)
  2255. -- Runtime Function: unsigned long accum __satfractsiuda (int A)
  2256. -- Runtime Function: unsigned long long accum __satfractsiuta (int A)
  2257. -- Runtime Function: short fract __satfractdiqq (long A)
  2258. -- Runtime Function: fract __satfractdihq (long A)
  2259. -- Runtime Function: long fract __satfractdisq (long A)
  2260. -- Runtime Function: long long fract __satfractdidq (long A)
  2261. -- Runtime Function: short accum __satfractdiha (long A)
  2262. -- Runtime Function: accum __satfractdisa (long A)
  2263. -- Runtime Function: long accum __satfractdida (long A)
  2264. -- Runtime Function: long long accum __satfractdita (long A)
  2265. -- Runtime Function: unsigned short fract __satfractdiuqq (long A)
  2266. -- Runtime Function: unsigned fract __satfractdiuhq (long A)
  2267. -- Runtime Function: unsigned long fract __satfractdiusq (long A)
  2268. -- Runtime Function: unsigned long long fract __satfractdiudq (long A)
  2269. -- Runtime Function: unsigned short accum __satfractdiuha (long A)
  2270. -- Runtime Function: unsigned accum __satfractdiusa (long A)
  2271. -- Runtime Function: unsigned long accum __satfractdiuda (long A)
  2272. -- Runtime Function: unsigned long long accum __satfractdiuta (long A)
  2273. -- Runtime Function: short fract __satfracttiqq (long long A)
  2274. -- Runtime Function: fract __satfracttihq (long long A)
  2275. -- Runtime Function: long fract __satfracttisq (long long A)
  2276. -- Runtime Function: long long fract __satfracttidq (long long A)
  2277. -- Runtime Function: short accum __satfracttiha (long long A)
  2278. -- Runtime Function: accum __satfracttisa (long long A)
  2279. -- Runtime Function: long accum __satfracttida (long long A)
  2280. -- Runtime Function: long long accum __satfracttita (long long A)
  2281. -- Runtime Function: unsigned short fract __satfracttiuqq (long long A)
  2282. -- Runtime Function: unsigned fract __satfracttiuhq (long long A)
  2283. -- Runtime Function: unsigned long fract __satfracttiusq (long long A)
  2284. -- Runtime Function: unsigned long long fract __satfracttiudq (long
  2285. long A)
  2286. -- Runtime Function: unsigned short accum __satfracttiuha (long long A)
  2287. -- Runtime Function: unsigned accum __satfracttiusa (long long A)
  2288. -- Runtime Function: unsigned long accum __satfracttiuda (long long A)
  2289. -- Runtime Function: unsigned long long accum __satfracttiuta (long
  2290. long A)
  2291. -- Runtime Function: short fract __satfractsfqq (float A)
  2292. -- Runtime Function: fract __satfractsfhq (float A)
  2293. -- Runtime Function: long fract __satfractsfsq (float A)
  2294. -- Runtime Function: long long fract __satfractsfdq (float A)
  2295. -- Runtime Function: short accum __satfractsfha (float A)
  2296. -- Runtime Function: accum __satfractsfsa (float A)
  2297. -- Runtime Function: long accum __satfractsfda (float A)
  2298. -- Runtime Function: long long accum __satfractsfta (float A)
  2299. -- Runtime Function: unsigned short fract __satfractsfuqq (float A)
  2300. -- Runtime Function: unsigned fract __satfractsfuhq (float A)
  2301. -- Runtime Function: unsigned long fract __satfractsfusq (float A)
  2302. -- Runtime Function: unsigned long long fract __satfractsfudq (float A)
  2303. -- Runtime Function: unsigned short accum __satfractsfuha (float A)
  2304. -- Runtime Function: unsigned accum __satfractsfusa (float A)
  2305. -- Runtime Function: unsigned long accum __satfractsfuda (float A)
  2306. -- Runtime Function: unsigned long long accum __satfractsfuta (float A)
  2307. -- Runtime Function: short fract __satfractdfqq (double A)
  2308. -- Runtime Function: fract __satfractdfhq (double A)
  2309. -- Runtime Function: long fract __satfractdfsq (double A)
  2310. -- Runtime Function: long long fract __satfractdfdq (double A)
  2311. -- Runtime Function: short accum __satfractdfha (double A)
  2312. -- Runtime Function: accum __satfractdfsa (double A)
  2313. -- Runtime Function: long accum __satfractdfda (double A)
  2314. -- Runtime Function: long long accum __satfractdfta (double A)
  2315. -- Runtime Function: unsigned short fract __satfractdfuqq (double A)
  2316. -- Runtime Function: unsigned fract __satfractdfuhq (double A)
  2317. -- Runtime Function: unsigned long fract __satfractdfusq (double A)
  2318. -- Runtime Function: unsigned long long fract __satfractdfudq (double
  2319. A)
  2320. -- Runtime Function: unsigned short accum __satfractdfuha (double A)
  2321. -- Runtime Function: unsigned accum __satfractdfusa (double A)
  2322. -- Runtime Function: unsigned long accum __satfractdfuda (double A)
  2323. -- Runtime Function: unsigned long long accum __satfractdfuta (double
  2324. A)
  2325. The functions convert from fractional and signed non-fractionals to
  2326. fractionals, with saturation.
  2327. -- Runtime Function: unsigned char __fractunsqqqi (short fract A)
  2328. -- Runtime Function: unsigned short __fractunsqqhi (short fract A)
  2329. -- Runtime Function: unsigned int __fractunsqqsi (short fract A)
  2330. -- Runtime Function: unsigned long __fractunsqqdi (short fract A)
  2331. -- Runtime Function: unsigned long long __fractunsqqti (short fract A)
  2332. -- Runtime Function: unsigned char __fractunshqqi (fract A)
  2333. -- Runtime Function: unsigned short __fractunshqhi (fract A)
  2334. -- Runtime Function: unsigned int __fractunshqsi (fract A)
  2335. -- Runtime Function: unsigned long __fractunshqdi (fract A)
  2336. -- Runtime Function: unsigned long long __fractunshqti (fract A)
  2337. -- Runtime Function: unsigned char __fractunssqqi (long fract A)
  2338. -- Runtime Function: unsigned short __fractunssqhi (long fract A)
  2339. -- Runtime Function: unsigned int __fractunssqsi (long fract A)
  2340. -- Runtime Function: unsigned long __fractunssqdi (long fract A)
  2341. -- Runtime Function: unsigned long long __fractunssqti (long fract A)
  2342. -- Runtime Function: unsigned char __fractunsdqqi (long long fract A)
  2343. -- Runtime Function: unsigned short __fractunsdqhi (long long fract A)
  2344. -- Runtime Function: unsigned int __fractunsdqsi (long long fract A)
  2345. -- Runtime Function: unsigned long __fractunsdqdi (long long fract A)
  2346. -- Runtime Function: unsigned long long __fractunsdqti (long long fract
  2347. A)
  2348. -- Runtime Function: unsigned char __fractunshaqi (short accum A)
  2349. -- Runtime Function: unsigned short __fractunshahi (short accum A)
  2350. -- Runtime Function: unsigned int __fractunshasi (short accum A)
  2351. -- Runtime Function: unsigned long __fractunshadi (short accum A)
  2352. -- Runtime Function: unsigned long long __fractunshati (short accum A)
  2353. -- Runtime Function: unsigned char __fractunssaqi (accum A)
  2354. -- Runtime Function: unsigned short __fractunssahi (accum A)
  2355. -- Runtime Function: unsigned int __fractunssasi (accum A)
  2356. -- Runtime Function: unsigned long __fractunssadi (accum A)
  2357. -- Runtime Function: unsigned long long __fractunssati (accum A)
  2358. -- Runtime Function: unsigned char __fractunsdaqi (long accum A)
  2359. -- Runtime Function: unsigned short __fractunsdahi (long accum A)
  2360. -- Runtime Function: unsigned int __fractunsdasi (long accum A)
  2361. -- Runtime Function: unsigned long __fractunsdadi (long accum A)
  2362. -- Runtime Function: unsigned long long __fractunsdati (long accum A)
  2363. -- Runtime Function: unsigned char __fractunstaqi (long long accum A)
  2364. -- Runtime Function: unsigned short __fractunstahi (long long accum A)
  2365. -- Runtime Function: unsigned int __fractunstasi (long long accum A)
  2366. -- Runtime Function: unsigned long __fractunstadi (long long accum A)
  2367. -- Runtime Function: unsigned long long __fractunstati (long long accum
  2368. A)
  2369. -- Runtime Function: unsigned char __fractunsuqqqi (unsigned short
  2370. fract A)
  2371. -- Runtime Function: unsigned short __fractunsuqqhi (unsigned short
  2372. fract A)
  2373. -- Runtime Function: unsigned int __fractunsuqqsi (unsigned short fract
  2374. A)
  2375. -- Runtime Function: unsigned long __fractunsuqqdi (unsigned short
  2376. fract A)
  2377. -- Runtime Function: unsigned long long __fractunsuqqti (unsigned short
  2378. fract A)
  2379. -- Runtime Function: unsigned char __fractunsuhqqi (unsigned fract A)
  2380. -- Runtime Function: unsigned short __fractunsuhqhi (unsigned fract A)
  2381. -- Runtime Function: unsigned int __fractunsuhqsi (unsigned fract A)
  2382. -- Runtime Function: unsigned long __fractunsuhqdi (unsigned fract A)
  2383. -- Runtime Function: unsigned long long __fractunsuhqti (unsigned fract
  2384. A)
  2385. -- Runtime Function: unsigned char __fractunsusqqi (unsigned long fract
  2386. A)
  2387. -- Runtime Function: unsigned short __fractunsusqhi (unsigned long
  2388. fract A)
  2389. -- Runtime Function: unsigned int __fractunsusqsi (unsigned long fract
  2390. A)
  2391. -- Runtime Function: unsigned long __fractunsusqdi (unsigned long fract
  2392. A)
  2393. -- Runtime Function: unsigned long long __fractunsusqti (unsigned long
  2394. fract A)
  2395. -- Runtime Function: unsigned char __fractunsudqqi (unsigned long long
  2396. fract A)
  2397. -- Runtime Function: unsigned short __fractunsudqhi (unsigned long long
  2398. fract A)
  2399. -- Runtime Function: unsigned int __fractunsudqsi (unsigned long long
  2400. fract A)
  2401. -- Runtime Function: unsigned long __fractunsudqdi (unsigned long long
  2402. fract A)
  2403. -- Runtime Function: unsigned long long __fractunsudqti (unsigned long
  2404. long fract A)
  2405. -- Runtime Function: unsigned char __fractunsuhaqi (unsigned short
  2406. accum A)
  2407. -- Runtime Function: unsigned short __fractunsuhahi (unsigned short
  2408. accum A)
  2409. -- Runtime Function: unsigned int __fractunsuhasi (unsigned short accum
  2410. A)
  2411. -- Runtime Function: unsigned long __fractunsuhadi (unsigned short
  2412. accum A)
  2413. -- Runtime Function: unsigned long long __fractunsuhati (unsigned short
  2414. accum A)
  2415. -- Runtime Function: unsigned char __fractunsusaqi (unsigned accum A)
  2416. -- Runtime Function: unsigned short __fractunsusahi (unsigned accum A)
  2417. -- Runtime Function: unsigned int __fractunsusasi (unsigned accum A)
  2418. -- Runtime Function: unsigned long __fractunsusadi (unsigned accum A)
  2419. -- Runtime Function: unsigned long long __fractunsusati (unsigned accum
  2420. A)
  2421. -- Runtime Function: unsigned char __fractunsudaqi (unsigned long accum
  2422. A)
  2423. -- Runtime Function: unsigned short __fractunsudahi (unsigned long
  2424. accum A)
  2425. -- Runtime Function: unsigned int __fractunsudasi (unsigned long accum
  2426. A)
  2427. -- Runtime Function: unsigned long __fractunsudadi (unsigned long accum
  2428. A)
  2429. -- Runtime Function: unsigned long long __fractunsudati (unsigned long
  2430. accum A)
  2431. -- Runtime Function: unsigned char __fractunsutaqi (unsigned long long
  2432. accum A)
  2433. -- Runtime Function: unsigned short __fractunsutahi (unsigned long long
  2434. accum A)
  2435. -- Runtime Function: unsigned int __fractunsutasi (unsigned long long
  2436. accum A)
  2437. -- Runtime Function: unsigned long __fractunsutadi (unsigned long long
  2438. accum A)
  2439. -- Runtime Function: unsigned long long __fractunsutati (unsigned long
  2440. long accum A)
  2441. -- Runtime Function: short fract __fractunsqiqq (unsigned char A)
  2442. -- Runtime Function: fract __fractunsqihq (unsigned char A)
  2443. -- Runtime Function: long fract __fractunsqisq (unsigned char A)
  2444. -- Runtime Function: long long fract __fractunsqidq (unsigned char A)
  2445. -- Runtime Function: short accum __fractunsqiha (unsigned char A)
  2446. -- Runtime Function: accum __fractunsqisa (unsigned char A)
  2447. -- Runtime Function: long accum __fractunsqida (unsigned char A)
  2448. -- Runtime Function: long long accum __fractunsqita (unsigned char A)
  2449. -- Runtime Function: unsigned short fract __fractunsqiuqq (unsigned
  2450. char A)
  2451. -- Runtime Function: unsigned fract __fractunsqiuhq (unsigned char A)
  2452. -- Runtime Function: unsigned long fract __fractunsqiusq (unsigned char
  2453. A)
  2454. -- Runtime Function: unsigned long long fract __fractunsqiudq (unsigned
  2455. char A)
  2456. -- Runtime Function: unsigned short accum __fractunsqiuha (unsigned
  2457. char A)
  2458. -- Runtime Function: unsigned accum __fractunsqiusa (unsigned char A)
  2459. -- Runtime Function: unsigned long accum __fractunsqiuda (unsigned char
  2460. A)
  2461. -- Runtime Function: unsigned long long accum __fractunsqiuta (unsigned
  2462. char A)
  2463. -- Runtime Function: short fract __fractunshiqq (unsigned short A)
  2464. -- Runtime Function: fract __fractunshihq (unsigned short A)
  2465. -- Runtime Function: long fract __fractunshisq (unsigned short A)
  2466. -- Runtime Function: long long fract __fractunshidq (unsigned short A)
  2467. -- Runtime Function: short accum __fractunshiha (unsigned short A)
  2468. -- Runtime Function: accum __fractunshisa (unsigned short A)
  2469. -- Runtime Function: long accum __fractunshida (unsigned short A)
  2470. -- Runtime Function: long long accum __fractunshita (unsigned short A)
  2471. -- Runtime Function: unsigned short fract __fractunshiuqq (unsigned
  2472. short A)
  2473. -- Runtime Function: unsigned fract __fractunshiuhq (unsigned short A)
  2474. -- Runtime Function: unsigned long fract __fractunshiusq (unsigned
  2475. short A)
  2476. -- Runtime Function: unsigned long long fract __fractunshiudq (unsigned
  2477. short A)
  2478. -- Runtime Function: unsigned short accum __fractunshiuha (unsigned
  2479. short A)
  2480. -- Runtime Function: unsigned accum __fractunshiusa (unsigned short A)
  2481. -- Runtime Function: unsigned long accum __fractunshiuda (unsigned
  2482. short A)
  2483. -- Runtime Function: unsigned long long accum __fractunshiuta (unsigned
  2484. short A)
  2485. -- Runtime Function: short fract __fractunssiqq (unsigned int A)
  2486. -- Runtime Function: fract __fractunssihq (unsigned int A)
  2487. -- Runtime Function: long fract __fractunssisq (unsigned int A)
  2488. -- Runtime Function: long long fract __fractunssidq (unsigned int A)
  2489. -- Runtime Function: short accum __fractunssiha (unsigned int A)
  2490. -- Runtime Function: accum __fractunssisa (unsigned int A)
  2491. -- Runtime Function: long accum __fractunssida (unsigned int A)
  2492. -- Runtime Function: long long accum __fractunssita (unsigned int A)
  2493. -- Runtime Function: unsigned short fract __fractunssiuqq (unsigned int
  2494. A)
  2495. -- Runtime Function: unsigned fract __fractunssiuhq (unsigned int A)
  2496. -- Runtime Function: unsigned long fract __fractunssiusq (unsigned int
  2497. A)
  2498. -- Runtime Function: unsigned long long fract __fractunssiudq (unsigned
  2499. int A)
  2500. -- Runtime Function: unsigned short accum __fractunssiuha (unsigned int
  2501. A)
  2502. -- Runtime Function: unsigned accum __fractunssiusa (unsigned int A)
  2503. -- Runtime Function: unsigned long accum __fractunssiuda (unsigned int
  2504. A)
  2505. -- Runtime Function: unsigned long long accum __fractunssiuta (unsigned
  2506. int A)
  2507. -- Runtime Function: short fract __fractunsdiqq (unsigned long A)
  2508. -- Runtime Function: fract __fractunsdihq (unsigned long A)
  2509. -- Runtime Function: long fract __fractunsdisq (unsigned long A)
  2510. -- Runtime Function: long long fract __fractunsdidq (unsigned long A)
  2511. -- Runtime Function: short accum __fractunsdiha (unsigned long A)
  2512. -- Runtime Function: accum __fractunsdisa (unsigned long A)
  2513. -- Runtime Function: long accum __fractunsdida (unsigned long A)
  2514. -- Runtime Function: long long accum __fractunsdita (unsigned long A)
  2515. -- Runtime Function: unsigned short fract __fractunsdiuqq (unsigned
  2516. long A)
  2517. -- Runtime Function: unsigned fract __fractunsdiuhq (unsigned long A)
  2518. -- Runtime Function: unsigned long fract __fractunsdiusq (unsigned long
  2519. A)
  2520. -- Runtime Function: unsigned long long fract __fractunsdiudq (unsigned
  2521. long A)
  2522. -- Runtime Function: unsigned short accum __fractunsdiuha (unsigned
  2523. long A)
  2524. -- Runtime Function: unsigned accum __fractunsdiusa (unsigned long A)
  2525. -- Runtime Function: unsigned long accum __fractunsdiuda (unsigned long
  2526. A)
  2527. -- Runtime Function: unsigned long long accum __fractunsdiuta (unsigned
  2528. long A)
  2529. -- Runtime Function: short fract __fractunstiqq (unsigned long long A)
  2530. -- Runtime Function: fract __fractunstihq (unsigned long long A)
  2531. -- Runtime Function: long fract __fractunstisq (unsigned long long A)
  2532. -- Runtime Function: long long fract __fractunstidq (unsigned long long
  2533. A)
  2534. -- Runtime Function: short accum __fractunstiha (unsigned long long A)
  2535. -- Runtime Function: accum __fractunstisa (unsigned long long A)
  2536. -- Runtime Function: long accum __fractunstida (unsigned long long A)
  2537. -- Runtime Function: long long accum __fractunstita (unsigned long long
  2538. A)
  2539. -- Runtime Function: unsigned short fract __fractunstiuqq (unsigned
  2540. long long A)
  2541. -- Runtime Function: unsigned fract __fractunstiuhq (unsigned long long
  2542. A)
  2543. -- Runtime Function: unsigned long fract __fractunstiusq (unsigned long
  2544. long A)
  2545. -- Runtime Function: unsigned long long fract __fractunstiudq (unsigned
  2546. long long A)
  2547. -- Runtime Function: unsigned short accum __fractunstiuha (unsigned
  2548. long long A)
  2549. -- Runtime Function: unsigned accum __fractunstiusa (unsigned long long
  2550. A)
  2551. -- Runtime Function: unsigned long accum __fractunstiuda (unsigned long
  2552. long A)
  2553. -- Runtime Function: unsigned long long accum __fractunstiuta (unsigned
  2554. long long A)
  2555. These functions convert from fractionals to unsigned
  2556. non-fractionals; and from unsigned non-fractionals to fractionals,
  2557. without saturation.
  2558. -- Runtime Function: short fract __satfractunsqiqq (unsigned char A)
  2559. -- Runtime Function: fract __satfractunsqihq (unsigned char A)
  2560. -- Runtime Function: long fract __satfractunsqisq (unsigned char A)
  2561. -- Runtime Function: long long fract __satfractunsqidq (unsigned char
  2562. A)
  2563. -- Runtime Function: short accum __satfractunsqiha (unsigned char A)
  2564. -- Runtime Function: accum __satfractunsqisa (unsigned char A)
  2565. -- Runtime Function: long accum __satfractunsqida (unsigned char A)
  2566. -- Runtime Function: long long accum __satfractunsqita (unsigned char
  2567. A)
  2568. -- Runtime Function: unsigned short fract __satfractunsqiuqq (unsigned
  2569. char A)
  2570. -- Runtime Function: unsigned fract __satfractunsqiuhq (unsigned char
  2571. A)
  2572. -- Runtime Function: unsigned long fract __satfractunsqiusq (unsigned
  2573. char A)
  2574. -- Runtime Function: unsigned long long fract __satfractunsqiudq
  2575. (unsigned char A)
  2576. -- Runtime Function: unsigned short accum __satfractunsqiuha (unsigned
  2577. char A)
  2578. -- Runtime Function: unsigned accum __satfractunsqiusa (unsigned char
  2579. A)
  2580. -- Runtime Function: unsigned long accum __satfractunsqiuda (unsigned
  2581. char A)
  2582. -- Runtime Function: unsigned long long accum __satfractunsqiuta
  2583. (unsigned char A)
  2584. -- Runtime Function: short fract __satfractunshiqq (unsigned short A)
  2585. -- Runtime Function: fract __satfractunshihq (unsigned short A)
  2586. -- Runtime Function: long fract __satfractunshisq (unsigned short A)
  2587. -- Runtime Function: long long fract __satfractunshidq (unsigned short
  2588. A)
  2589. -- Runtime Function: short accum __satfractunshiha (unsigned short A)
  2590. -- Runtime Function: accum __satfractunshisa (unsigned short A)
  2591. -- Runtime Function: long accum __satfractunshida (unsigned short A)
  2592. -- Runtime Function: long long accum __satfractunshita (unsigned short
  2593. A)
  2594. -- Runtime Function: unsigned short fract __satfractunshiuqq (unsigned
  2595. short A)
  2596. -- Runtime Function: unsigned fract __satfractunshiuhq (unsigned short
  2597. A)
  2598. -- Runtime Function: unsigned long fract __satfractunshiusq (unsigned
  2599. short A)
  2600. -- Runtime Function: unsigned long long fract __satfractunshiudq
  2601. (unsigned short A)
  2602. -- Runtime Function: unsigned short accum __satfractunshiuha (unsigned
  2603. short A)
  2604. -- Runtime Function: unsigned accum __satfractunshiusa (unsigned short
  2605. A)
  2606. -- Runtime Function: unsigned long accum __satfractunshiuda (unsigned
  2607. short A)
  2608. -- Runtime Function: unsigned long long accum __satfractunshiuta
  2609. (unsigned short A)
  2610. -- Runtime Function: short fract __satfractunssiqq (unsigned int A)
  2611. -- Runtime Function: fract __satfractunssihq (unsigned int A)
  2612. -- Runtime Function: long fract __satfractunssisq (unsigned int A)
  2613. -- Runtime Function: long long fract __satfractunssidq (unsigned int A)
  2614. -- Runtime Function: short accum __satfractunssiha (unsigned int A)
  2615. -- Runtime Function: accum __satfractunssisa (unsigned int A)
  2616. -- Runtime Function: long accum __satfractunssida (unsigned int A)
  2617. -- Runtime Function: long long accum __satfractunssita (unsigned int A)
  2618. -- Runtime Function: unsigned short fract __satfractunssiuqq (unsigned
  2619. int A)
  2620. -- Runtime Function: unsigned fract __satfractunssiuhq (unsigned int A)
  2621. -- Runtime Function: unsigned long fract __satfractunssiusq (unsigned
  2622. int A)
  2623. -- Runtime Function: unsigned long long fract __satfractunssiudq
  2624. (unsigned int A)
  2625. -- Runtime Function: unsigned short accum __satfractunssiuha (unsigned
  2626. int A)
  2627. -- Runtime Function: unsigned accum __satfractunssiusa (unsigned int A)
  2628. -- Runtime Function: unsigned long accum __satfractunssiuda (unsigned
  2629. int A)
  2630. -- Runtime Function: unsigned long long accum __satfractunssiuta
  2631. (unsigned int A)
  2632. -- Runtime Function: short fract __satfractunsdiqq (unsigned long A)
  2633. -- Runtime Function: fract __satfractunsdihq (unsigned long A)
  2634. -- Runtime Function: long fract __satfractunsdisq (unsigned long A)
  2635. -- Runtime Function: long long fract __satfractunsdidq (unsigned long
  2636. A)
  2637. -- Runtime Function: short accum __satfractunsdiha (unsigned long A)
  2638. -- Runtime Function: accum __satfractunsdisa (unsigned long A)
  2639. -- Runtime Function: long accum __satfractunsdida (unsigned long A)
  2640. -- Runtime Function: long long accum __satfractunsdita (unsigned long
  2641. A)
  2642. -- Runtime Function: unsigned short fract __satfractunsdiuqq (unsigned
  2643. long A)
  2644. -- Runtime Function: unsigned fract __satfractunsdiuhq (unsigned long
  2645. A)
  2646. -- Runtime Function: unsigned long fract __satfractunsdiusq (unsigned
  2647. long A)
  2648. -- Runtime Function: unsigned long long fract __satfractunsdiudq
  2649. (unsigned long A)
  2650. -- Runtime Function: unsigned short accum __satfractunsdiuha (unsigned
  2651. long A)
  2652. -- Runtime Function: unsigned accum __satfractunsdiusa (unsigned long
  2653. A)
  2654. -- Runtime Function: unsigned long accum __satfractunsdiuda (unsigned
  2655. long A)
  2656. -- Runtime Function: unsigned long long accum __satfractunsdiuta
  2657. (unsigned long A)
  2658. -- Runtime Function: short fract __satfractunstiqq (unsigned long long
  2659. A)
  2660. -- Runtime Function: fract __satfractunstihq (unsigned long long A)
  2661. -- Runtime Function: long fract __satfractunstisq (unsigned long long
  2662. A)
  2663. -- Runtime Function: long long fract __satfractunstidq (unsigned long
  2664. long A)
  2665. -- Runtime Function: short accum __satfractunstiha (unsigned long long
  2666. A)
  2667. -- Runtime Function: accum __satfractunstisa (unsigned long long A)
  2668. -- Runtime Function: long accum __satfractunstida (unsigned long long
  2669. A)
  2670. -- Runtime Function: long long accum __satfractunstita (unsigned long
  2671. long A)
  2672. -- Runtime Function: unsigned short fract __satfractunstiuqq (unsigned
  2673. long long A)
  2674. -- Runtime Function: unsigned fract __satfractunstiuhq (unsigned long
  2675. long A)
  2676. -- Runtime Function: unsigned long fract __satfractunstiusq (unsigned
  2677. long long A)
  2678. -- Runtime Function: unsigned long long fract __satfractunstiudq
  2679. (unsigned long long A)
  2680. -- Runtime Function: unsigned short accum __satfractunstiuha (unsigned
  2681. long long A)
  2682. -- Runtime Function: unsigned accum __satfractunstiusa (unsigned long
  2683. long A)
  2684. -- Runtime Function: unsigned long accum __satfractunstiuda (unsigned
  2685. long long A)
  2686. -- Runtime Function: unsigned long long accum __satfractunstiuta
  2687. (unsigned long long A)
  2688. These functions convert from unsigned non-fractionals to
  2689. fractionals, with saturation.
  2690. 
  2691. File: gccint.info, Node: Exception handling routines, Next: Miscellaneous routines, Prev: Fixed-point fractional library routines, Up: Libgcc
  2692. 4.5 Language-independent routines for exception handling
  2693. ========================================================
  2694. document me!
  2695. _Unwind_DeleteException
  2696. _Unwind_Find_FDE
  2697. _Unwind_ForcedUnwind
  2698. _Unwind_GetGR
  2699. _Unwind_GetIP
  2700. _Unwind_GetLanguageSpecificData
  2701. _Unwind_GetRegionStart
  2702. _Unwind_GetTextRelBase
  2703. _Unwind_GetDataRelBase
  2704. _Unwind_RaiseException
  2705. _Unwind_Resume
  2706. _Unwind_SetGR
  2707. _Unwind_SetIP
  2708. _Unwind_FindEnclosingFunction
  2709. _Unwind_SjLj_Register
  2710. _Unwind_SjLj_Unregister
  2711. _Unwind_SjLj_RaiseException
  2712. _Unwind_SjLj_ForcedUnwind
  2713. _Unwind_SjLj_Resume
  2714. __deregister_frame
  2715. __deregister_frame_info
  2716. __deregister_frame_info_bases
  2717. __register_frame
  2718. __register_frame_info
  2719. __register_frame_info_bases
  2720. __register_frame_info_table
  2721. __register_frame_info_table_bases
  2722. __register_frame_table
  2723. 
  2724. File: gccint.info, Node: Miscellaneous routines, Prev: Exception handling routines, Up: Libgcc
  2725. 4.6 Miscellaneous runtime library routines
  2726. ==========================================
  2727. 4.6.1 Cache control functions
  2728. -----------------------------
  2729. -- Runtime Function: void __clear_cache (char *BEG, char *END)
  2730. This function clears the instruction cache between BEG and END.
  2731. 4.6.2 Split stack functions and variables
  2732. -----------------------------------------
  2733. -- Runtime Function: void * __splitstack_find (void *SEGMENT_ARG, void
  2734. *SP, size_t LEN, void **NEXT_SEGMENT, void **NEXT_SP, void
  2735. **INITIAL_SP)
  2736. When using '-fsplit-stack', this call may be used to iterate over
  2737. the stack segments. It may be called like this:
  2738. void *next_segment = NULL;
  2739. void *next_sp = NULL;
  2740. void *initial_sp = NULL;
  2741. void *stack;
  2742. size_t stack_size;
  2743. while ((stack = __splitstack_find (next_segment, next_sp,
  2744. &stack_size, &next_segment,
  2745. &next_sp, &initial_sp))
  2746. != NULL)
  2747. {
  2748. /* Stack segment starts at stack and is
  2749. stack_size bytes long. */
  2750. }
  2751. There is no way to iterate over the stack segments of a different
  2752. thread. However, what is permitted is for one thread to call this
  2753. with the SEGMENT_ARG and SP arguments NULL, to pass NEXT_SEGMENT,
  2754. NEXT_SP, and INITIAL_SP to a different thread, and then to suspend
  2755. one way or another. A different thread may run the subsequent
  2756. '__splitstack_find' iterations. Of course, this will only work if
  2757. the first thread is suspended while the second thread is calling
  2758. '__splitstack_find'. If not, the second thread could be looking at
  2759. the stack while it is changing, and anything could happen.
  2760. -- Variable: __morestack_segments
  2761. -- Variable: __morestack_current_segment
  2762. -- Variable: __morestack_initial_sp
  2763. Internal variables used by the '-fsplit-stack' implementation.
  2764. 
  2765. File: gccint.info, Node: Languages, Next: Source Tree, Prev: Libgcc, Up: Top
  2766. 5 Language Front Ends in GCC
  2767. ****************************
  2768. The interface to front ends for languages in GCC, and in particular the
  2769. 'tree' structure (*note GENERIC::), was initially designed for C, and
  2770. many aspects of it are still somewhat biased towards C and C-like
  2771. languages. It is, however, reasonably well suited to other procedural
  2772. languages, and front ends for many such languages have been written for
  2773. GCC.
  2774. Writing a compiler as a front end for GCC, rather than compiling
  2775. directly to assembler or generating C code which is then compiled by
  2776. GCC, has several advantages:
  2777. * GCC front ends benefit from the support for many different target
  2778. machines already present in GCC.
  2779. * GCC front ends benefit from all the optimizations in GCC. Some of
  2780. these, such as alias analysis, may work better when GCC is
  2781. compiling directly from source code then when it is compiling from
  2782. generated C code.
  2783. * Better debugging information is generated when compiling directly
  2784. from source code than when going via intermediate generated C code.
  2785. Because of the advantages of writing a compiler as a GCC front end, GCC
  2786. front ends have also been created for languages very different from
  2787. those for which GCC was designed, such as the declarative
  2788. logic/functional language Mercury. For these reasons, it may also be
  2789. useful to implement compilers created for specialized purposes (for
  2790. example, as part of a research project) as GCC front ends.
  2791. 
  2792. File: gccint.info, Node: Source Tree, Next: Testsuites, Prev: Languages, Up: Top
  2793. 6 Source Tree Structure and Build System
  2794. ****************************************
  2795. This chapter describes the structure of the GCC source tree, and how GCC
  2796. is built. The user documentation for building and installing GCC is in
  2797. a separate manual (<http://gcc.gnu.org/install/>), with which it is
  2798. presumed that you are familiar.
  2799. * Menu:
  2800. * Configure Terms:: Configuration terminology and history.
  2801. * Top Level:: The top level source directory.
  2802. * gcc Directory:: The 'gcc' subdirectory.
  2803. 
  2804. File: gccint.info, Node: Configure Terms, Next: Top Level, Up: Source Tree
  2805. 6.1 Configure Terms and History
  2806. ===============================
  2807. The configure and build process has a long and colorful history, and can
  2808. be confusing to anyone who doesn't know why things are the way they are.
  2809. While there are other documents which describe the configuration process
  2810. in detail, here are a few things that everyone working on GCC should
  2811. know.
  2812. There are three system names that the build knows about: the machine
  2813. you are building on ("build"), the machine that you are building for
  2814. ("host"), and the machine that GCC will produce code for ("target").
  2815. When you configure GCC, you specify these with '--build=', '--host=',
  2816. and '--target='.
  2817. Specifying the host without specifying the build should be avoided, as
  2818. 'configure' may (and once did) assume that the host you specify is also
  2819. the build, which may not be true.
  2820. If build, host, and target are all the same, this is called a "native".
  2821. If build and host are the same but target is different, this is called a
  2822. "cross". If build, host, and target are all different this is called a
  2823. "canadian" (for obscure reasons dealing with Canada's political party
  2824. and the background of the person working on the build at that time). If
  2825. host and target are the same, but build is different, you are using a
  2826. cross-compiler to build a native for a different system. Some people
  2827. call this a "host-x-host", "crossed native", or "cross-built native".
  2828. If build and target are the same, but host is different, you are using a
  2829. cross compiler to build a cross compiler that produces code for the
  2830. machine you're building on. This is rare, so there is no common way of
  2831. describing it. There is a proposal to call this a "crossback".
  2832. If build and host are the same, the GCC you are building will also be
  2833. used to build the target libraries (like 'libstdc++'). If build and
  2834. host are different, you must have already built and installed a cross
  2835. compiler that will be used to build the target libraries (if you
  2836. configured with '--target=foo-bar', this compiler will be called
  2837. 'foo-bar-gcc').
  2838. In the case of target libraries, the machine you're building for is the
  2839. machine you specified with '--target'. So, build is the machine you're
  2840. building on (no change there), host is the machine you're building for
  2841. (the target libraries are built for the target, so host is the target
  2842. you specified), and target doesn't apply (because you're not building a
  2843. compiler, you're building libraries). The configure/make process will
  2844. adjust these variables as needed. It also sets '$with_cross_host' to
  2845. the original '--host' value in case you need it.
  2846. The 'libiberty' support library is built up to three times: once for
  2847. the host, once for the target (even if they are the same), and once for
  2848. the build if build and host are different. This allows it to be used by
  2849. all programs which are generated in the course of the build process.
  2850. 
  2851. File: gccint.info, Node: Top Level, Next: gcc Directory, Prev: Configure Terms, Up: Source Tree
  2852. 6.2 Top Level Source Directory
  2853. ==============================
  2854. The top level source directory in a GCC distribution contains several
  2855. files and directories that are shared with other software distributions
  2856. such as that of GNU Binutils. It also contains several subdirectories
  2857. that contain parts of GCC and its runtime libraries:
  2858. 'boehm-gc'
  2859. The Boehm conservative garbage collector, optionally used as part
  2860. of the ObjC runtime library when configured with
  2861. '--enable-objc-gc'.
  2862. 'config'
  2863. Autoconf macros and Makefile fragments used throughout the tree.
  2864. 'contrib'
  2865. Contributed scripts that may be found useful in conjunction with
  2866. GCC. One of these, 'contrib/texi2pod.pl', is used to generate man
  2867. pages from Texinfo manuals as part of the GCC build process.
  2868. 'fixincludes'
  2869. The support for fixing system headers to work with GCC. See
  2870. 'fixincludes/README' for more information. The headers fixed by
  2871. this mechanism are installed in 'LIBSUBDIR/include-fixed'. Along
  2872. with those headers, 'README-fixinc' is also installed, as
  2873. 'LIBSUBDIR/include-fixed/README'.
  2874. 'gcc'
  2875. The main sources of GCC itself (except for runtime libraries),
  2876. including optimizers, support for different target architectures,
  2877. language front ends, and testsuites. *Note The 'gcc' Subdirectory:
  2878. gcc Directory, for details.
  2879. 'gnattools'
  2880. Support tools for GNAT.
  2881. 'include'
  2882. Headers for the 'libiberty' library.
  2883. 'intl'
  2884. GNU 'libintl', from GNU 'gettext', for systems which do not include
  2885. it in 'libc'.
  2886. 'libada'
  2887. The Ada runtime library.
  2888. 'libatomic'
  2889. The runtime support library for atomic operations (e.g. for
  2890. '__sync' and '__atomic').
  2891. 'libcpp'
  2892. The C preprocessor library.
  2893. 'libdecnumber'
  2894. The Decimal Float support library.
  2895. 'libffi'
  2896. The 'libffi' library, used as part of the Go runtime library.
  2897. 'libgcc'
  2898. The GCC runtime library.
  2899. 'libgfortran'
  2900. The Fortran runtime library.
  2901. 'libgo'
  2902. The Go runtime library. The bulk of this library is mirrored from
  2903. the master Go repository (https://github.com/golang/go).
  2904. 'libgomp'
  2905. The GNU Offloading and Multi Processing Runtime Library.
  2906. 'libiberty'
  2907. The 'libiberty' library, used for portability and for some
  2908. generally useful data structures and algorithms. *Note
  2909. Introduction: (libiberty)Top, for more information about this
  2910. library.
  2911. 'libitm'
  2912. The runtime support library for transactional memory.
  2913. 'libobjc'
  2914. The Objective-C and Objective-C++ runtime library.
  2915. 'libquadmath'
  2916. The runtime support library for quad-precision math operations.
  2917. 'libssp'
  2918. The Stack protector runtime library.
  2919. 'libstdc++-v3'
  2920. The C++ runtime library.
  2921. 'lto-plugin'
  2922. Plugin used by the linker if link-time optimizations are enabled.
  2923. 'maintainer-scripts'
  2924. Scripts used by the 'gccadmin' account on 'gcc.gnu.org'.
  2925. 'zlib'
  2926. The 'zlib' compression library, used for compressing and
  2927. uncompressing GCC's intermediate language in LTO object files.
  2928. The build system in the top level directory, including how recursion
  2929. into subdirectories works and how building runtime libraries for
  2930. multilibs is handled, is documented in a separate manual, included with
  2931. GNU Binutils. *Note GNU configure and build system: (configure)Top, for
  2932. details.
  2933. 
  2934. File: gccint.info, Node: gcc Directory, Prev: Top Level, Up: Source Tree
  2935. 6.3 The 'gcc' Subdirectory
  2936. ==========================
  2937. The 'gcc' directory contains many files that are part of the C sources
  2938. of GCC, other files used as part of the configuration and build process,
  2939. and subdirectories including documentation and a testsuite. The files
  2940. that are sources of GCC are documented in a separate chapter. *Note
  2941. Passes and Files of the Compiler: Passes.
  2942. * Menu:
  2943. * Subdirectories:: Subdirectories of 'gcc'.
  2944. * Configuration:: The configuration process, and the files it uses.
  2945. * Build:: The build system in the 'gcc' directory.
  2946. * Makefile:: Targets in 'gcc/Makefile'.
  2947. * Library Files:: Library source files and headers under 'gcc/'.
  2948. * Headers:: Headers installed by GCC.
  2949. * Documentation:: Building documentation in GCC.
  2950. * Front End:: Anatomy of a language front end.
  2951. * Back End:: Anatomy of a target back end.
  2952. 
  2953. File: gccint.info, Node: Subdirectories, Next: Configuration, Up: gcc Directory
  2954. 6.3.1 Subdirectories of 'gcc'
  2955. -----------------------------
  2956. The 'gcc' directory contains the following subdirectories:
  2957. 'LANGUAGE'
  2958. Subdirectories for various languages. Directories containing a
  2959. file 'config-lang.in' are language subdirectories. The contents of
  2960. the subdirectories 'c' (for C), 'cp' (for C++), 'objc' (for
  2961. Objective-C), 'objcp' (for Objective-C++), and 'lto' (for LTO) are
  2962. documented in this manual (*note Passes and Files of the Compiler:
  2963. Passes.); those for other languages are not. *Note Anatomy of a
  2964. Language Front End: Front End, for details of the files in these
  2965. directories.
  2966. 'common'
  2967. Source files shared between the compiler drivers (such as 'gcc')
  2968. and the compilers proper (such as 'cc1'). If an architecture
  2969. defines target hooks shared between those places, it also has a
  2970. subdirectory in 'common/config'. *Note Target Structure::.
  2971. 'config'
  2972. Configuration files for supported architectures and operating
  2973. systems. *Note Anatomy of a Target Back End: Back End, for details
  2974. of the files in this directory.
  2975. 'doc'
  2976. Texinfo documentation for GCC, together with automatically
  2977. generated man pages and support for converting the installation
  2978. manual to HTML. *Note Documentation::.
  2979. 'ginclude'
  2980. System headers installed by GCC, mainly those required by the C
  2981. standard of freestanding implementations. *Note Headers Installed
  2982. by GCC: Headers, for details of when these and other headers are
  2983. installed.
  2984. 'po'
  2985. Message catalogs with translations of messages produced by GCC into
  2986. various languages, 'LANGUAGE.po'. This directory also contains
  2987. 'gcc.pot', the template for these message catalogues, 'exgettext',
  2988. a wrapper around 'gettext' to extract the messages from the GCC
  2989. sources and create 'gcc.pot', which is run by 'make gcc.pot', and
  2990. 'EXCLUDES', a list of files from which messages should not be
  2991. extracted.
  2992. 'testsuite'
  2993. The GCC testsuites (except for those for runtime libraries). *Note
  2994. Testsuites::.
  2995. 
  2996. File: gccint.info, Node: Configuration, Next: Build, Prev: Subdirectories, Up: gcc Directory
  2997. 6.3.2 Configuration in the 'gcc' Directory
  2998. ------------------------------------------
  2999. The 'gcc' directory is configured with an Autoconf-generated script
  3000. 'configure'. The 'configure' script is generated from 'configure.ac'
  3001. and 'aclocal.m4'. From the files 'configure.ac' and 'acconfig.h',
  3002. Autoheader generates the file 'config.in'. The file 'cstamp-h.in' is
  3003. used as a timestamp.
  3004. * Menu:
  3005. * Config Fragments:: Scripts used by 'configure'.
  3006. * System Config:: The 'config.build', 'config.host', and
  3007. 'config.gcc' files.
  3008. * Configuration Files:: Files created by running 'configure'.
  3009. 
  3010. File: gccint.info, Node: Config Fragments, Next: System Config, Up: Configuration
  3011. 6.3.2.1 Scripts Used by 'configure'
  3012. ...................................
  3013. 'configure' uses some other scripts to help in its work:
  3014. * The standard GNU 'config.sub' and 'config.guess' files, kept in the
  3015. top level directory, are used.
  3016. * The file 'config.gcc' is used to handle configuration specific to
  3017. the particular target machine. The file 'config.build' is used to
  3018. handle configuration specific to the particular build machine. The
  3019. file 'config.host' is used to handle configuration specific to the
  3020. particular host machine. (In general, these should only be used
  3021. for features that cannot reasonably be tested in Autoconf feature
  3022. tests.) *Note The 'config.build'; 'config.host'; and 'config.gcc'
  3023. Files: System Config, for details of the contents of these files.
  3024. * Each language subdirectory has a file 'LANGUAGE/config-lang.in'
  3025. that is used for front-end-specific configuration. *Note The Front
  3026. End 'config-lang.in' File: Front End Config, for details of this
  3027. file.
  3028. * A helper script 'configure.frag' is used as part of creating the
  3029. output of 'configure'.
  3030. 
  3031. File: gccint.info, Node: System Config, Next: Configuration Files, Prev: Config Fragments, Up: Configuration
  3032. 6.3.2.2 The 'config.build'; 'config.host'; and 'config.gcc' Files
  3033. .................................................................
  3034. The 'config.build' file contains specific rules for particular systems
  3035. which GCC is built on. This should be used as rarely as possible, as
  3036. the behavior of the build system can always be detected by autoconf.
  3037. The 'config.host' file contains specific rules for particular systems
  3038. which GCC will run on. This is rarely needed.
  3039. The 'config.gcc' file contains specific rules for particular systems
  3040. which GCC will generate code for. This is usually needed.
  3041. Each file has a list of the shell variables it sets, with descriptions,
  3042. at the top of the file.
  3043. FIXME: document the contents of these files, and what variables should
  3044. be set to control build, host and target configuration.
  3045. 
  3046. File: gccint.info, Node: Configuration Files, Prev: System Config, Up: Configuration
  3047. 6.3.2.3 Files Created by 'configure'
  3048. ....................................
  3049. Here we spell out what files will be set up by 'configure' in the 'gcc'
  3050. directory. Some other files are created as temporary files in the
  3051. configuration process, and are not used in the subsequent build; these
  3052. are not documented.
  3053. * 'Makefile' is constructed from 'Makefile.in', together with the
  3054. host and target fragments (*note Makefile Fragments: Fragments.)
  3055. 't-TARGET' and 'x-HOST' from 'config', if any, and language
  3056. Makefile fragments 'LANGUAGE/Make-lang.in'.
  3057. * 'auto-host.h' contains information about the host machine
  3058. determined by 'configure'. If the host machine is different from
  3059. the build machine, then 'auto-build.h' is also created, containing
  3060. such information about the build machine.
  3061. * 'config.status' is a script that may be run to recreate the current
  3062. configuration.
  3063. * 'configargs.h' is a header containing details of the arguments
  3064. passed to 'configure' to configure GCC, and of the thread model
  3065. used.
  3066. * 'cstamp-h' is used as a timestamp.
  3067. * If a language 'config-lang.in' file (*note The Front End
  3068. 'config-lang.in' File: Front End Config.) sets 'outputs', then the
  3069. files listed in 'outputs' there are also generated.
  3070. The following configuration headers are created from the Makefile,
  3071. using 'mkconfig.sh', rather than directly by 'configure'. 'config.h',
  3072. 'bconfig.h' and 'tconfig.h' all contain the 'xm-MACHINE.h' header, if
  3073. any, appropriate to the host, build and target machines respectively,
  3074. the configuration headers for the target, and some definitions; for the
  3075. host and build machines, these include the autoconfigured headers
  3076. generated by 'configure'. The other configuration headers are
  3077. determined by 'config.gcc'. They also contain the typedefs for 'rtx',
  3078. 'rtvec' and 'tree'.
  3079. * 'config.h', for use in programs that run on the host machine.
  3080. * 'bconfig.h', for use in programs that run on the build machine.
  3081. * 'tconfig.h', for use in programs and libraries for the target
  3082. machine.
  3083. * 'tm_p.h', which includes the header 'MACHINE-protos.h' that
  3084. contains prototypes for functions in the target 'MACHINE.c' file.
  3085. The header 'MACHINE-protos.h' can include prototypes of functions
  3086. that use rtl and tree data structures inside appropriate '#ifdef
  3087. RTX_CODE' and '#ifdef TREE_CODE' conditional code segements. The
  3088. 'MACHINE-protos.h' is included after the 'rtl.h' and/or 'tree.h'
  3089. would have been included. The 'tm_p.h' also includes the header
  3090. 'tm-preds.h' which is generated by 'genpreds' program during the
  3091. build to define the declarations and inline functions for the
  3092. predicate functions.
  3093. 
  3094. File: gccint.info, Node: Build, Next: Makefile, Prev: Configuration, Up: gcc Directory
  3095. 6.3.3 Build System in the 'gcc' Directory
  3096. -----------------------------------------
  3097. FIXME: describe the build system, including what is built in what
  3098. stages. Also list the various source files that are used in the build
  3099. process but aren't source files of GCC itself and so aren't documented
  3100. below (*note Passes::).
  3101. 
  3102. File: gccint.info, Node: Makefile, Next: Library Files, Prev: Build, Up: gcc Directory
  3103. 6.3.4 Makefile Targets
  3104. ----------------------
  3105. These targets are available from the 'gcc' directory:
  3106. 'all'
  3107. This is the default target. Depending on what your
  3108. build/host/target configuration is, it coordinates all the things
  3109. that need to be built.
  3110. 'doc'
  3111. Produce info-formatted documentation and man pages. Essentially it
  3112. calls 'make man' and 'make info'.
  3113. 'dvi'
  3114. Produce DVI-formatted documentation.
  3115. 'pdf'
  3116. Produce PDF-formatted documentation.
  3117. 'html'
  3118. Produce HTML-formatted documentation.
  3119. 'man'
  3120. Generate man pages.
  3121. 'info'
  3122. Generate info-formatted pages.
  3123. 'mostlyclean'
  3124. Delete the files made while building the compiler.
  3125. 'clean'
  3126. That, and all the other files built by 'make all'.
  3127. 'distclean'
  3128. That, and all the files created by 'configure'.
  3129. 'maintainer-clean'
  3130. Distclean plus any file that can be generated from other files.
  3131. Note that additional tools may be required beyond what is normally
  3132. needed to build GCC.
  3133. 'srcextra'
  3134. Generates files in the source directory that are not
  3135. version-controlled but should go into a release tarball.
  3136. 'srcinfo'
  3137. 'srcman'
  3138. Copies the info-formatted and manpage documentation into the source
  3139. directory usually for the purpose of generating a release tarball.
  3140. 'install'
  3141. Installs GCC.
  3142. 'uninstall'
  3143. Deletes installed files, though this is not supported.
  3144. 'check'
  3145. Run the testsuite. This creates a 'testsuite' subdirectory that
  3146. has various '.sum' and '.log' files containing the results of the
  3147. testing. You can run subsets with, for example, 'make check-gcc'.
  3148. You can specify specific tests by setting 'RUNTESTFLAGS' to be the
  3149. name of the '.exp' file, optionally followed by (for some tests) an
  3150. equals and a file wildcard, like:
  3151. make check-gcc RUNTESTFLAGS="execute.exp=19980413-*"
  3152. Note that running the testsuite may require additional tools be
  3153. installed, such as Tcl or DejaGnu.
  3154. The toplevel tree from which you start GCC compilation is not the GCC
  3155. directory, but rather a complex Makefile that coordinates the various
  3156. steps of the build, including bootstrapping the compiler and using the
  3157. new compiler to build target libraries.
  3158. When GCC is configured for a native configuration, the default action
  3159. for 'make' is to do a full three-stage bootstrap. This means that GCC
  3160. is built three times--once with the native compiler, once with the
  3161. native-built compiler it just built, and once with the compiler it built
  3162. the second time. In theory, the last two should produce the same
  3163. results, which 'make compare' can check. Each stage is configured
  3164. separately and compiled into a separate directory, to minimize problems
  3165. due to ABI incompatibilities between the native compiler and GCC.
  3166. If you do a change, rebuilding will also start from the first stage and
  3167. "bubble" up the change through the three stages. Each stage is taken
  3168. from its build directory (if it had been built previously), rebuilt, and
  3169. copied to its subdirectory. This will allow you to, for example,
  3170. continue a bootstrap after fixing a bug which causes the stage2 build to
  3171. crash. It does not provide as good coverage of the compiler as
  3172. bootstrapping from scratch, but it ensures that the new code is
  3173. syntactically correct (e.g., that you did not use GCC extensions by
  3174. mistake), and avoids spurious bootstrap comparison failures(1).
  3175. Other targets available from the top level include:
  3176. 'bootstrap-lean'
  3177. Like 'bootstrap', except that the various stages are removed once
  3178. they're no longer needed. This saves disk space.
  3179. 'bootstrap2'
  3180. 'bootstrap2-lean'
  3181. Performs only the first two stages of bootstrap. Unlike a
  3182. three-stage bootstrap, this does not perform a comparison to test
  3183. that the compiler is running properly. Note that the disk space
  3184. required by a "lean" bootstrap is approximately independent of the
  3185. number of stages.
  3186. 'stageN-bubble (N = 1...4, profile, feedback)'
  3187. Rebuild all the stages up to N, with the appropriate flags,
  3188. "bubbling" the changes as described above.
  3189. 'all-stageN (N = 1...4, profile, feedback)'
  3190. Assuming that stage N has already been built, rebuild it with the
  3191. appropriate flags. This is rarely needed.
  3192. 'cleanstrap'
  3193. Remove everything ('make clean') and rebuilds ('make bootstrap').
  3194. 'compare'
  3195. Compares the results of stages 2 and 3. This ensures that the
  3196. compiler is running properly, since it should produce the same
  3197. object files regardless of how it itself was compiled.
  3198. 'profiledbootstrap'
  3199. Builds a compiler with profiling feedback information. In this
  3200. case, the second and third stages are named 'profile' and
  3201. 'feedback', respectively. For more information, see the
  3202. installation instructions.
  3203. 'restrap'
  3204. Restart a bootstrap, so that everything that was not built with the
  3205. system compiler is rebuilt.
  3206. 'stageN-start (N = 1...4, profile, feedback)'
  3207. For each package that is bootstrapped, rename directories so that,
  3208. for example, 'gcc' points to the stageN GCC, compiled with the
  3209. stageN-1 GCC(2).
  3210. You will invoke this target if you need to test or debug the stageN
  3211. GCC. If you only need to execute GCC (but you need not run 'make'
  3212. either to rebuild it or to run test suites), you should be able to
  3213. work directly in the 'stageN-gcc' directory. This makes it easier
  3214. to debug multiple stages in parallel.
  3215. 'stage'
  3216. For each package that is bootstrapped, relocate its build directory
  3217. to indicate its stage. For example, if the 'gcc' directory points
  3218. to the stage2 GCC, after invoking this target it will be renamed to
  3219. 'stage2-gcc'.
  3220. If you wish to use non-default GCC flags when compiling the stage2 and
  3221. stage3 compilers, set 'BOOT_CFLAGS' on the command line when doing
  3222. 'make'.
  3223. Usually, the first stage only builds the languages that the compiler is
  3224. written in: typically, C and maybe Ada. If you are debugging a
  3225. miscompilation of a different stage2 front-end (for example, of the
  3226. Fortran front-end), you may want to have front-ends for other languages
  3227. in the first stage as well. To do so, set 'STAGE1_LANGUAGES' on the
  3228. command line when doing 'make'.
  3229. For example, in the aforementioned scenario of debugging a Fortran
  3230. front-end miscompilation caused by the stage1 compiler, you may need a
  3231. command like
  3232. make stage2-bubble STAGE1_LANGUAGES=c,fortran
  3233. Alternatively, you can use per-language targets to build and test
  3234. languages that are not enabled by default in stage1. For example, 'make
  3235. f951' will build a Fortran compiler even in the stage1 build directory.
  3236. ---------- Footnotes ----------
  3237. (1) Except if the compiler was buggy and miscompiled some of the
  3238. files that were not modified. In this case, it's best to use 'make
  3239. restrap'.
  3240. (2) Customarily, the system compiler is also termed the 'stage0' GCC.
  3241. 
  3242. File: gccint.info, Node: Library Files, Next: Headers, Prev: Makefile, Up: gcc Directory
  3243. 6.3.5 Library Source Files and Headers under the 'gcc' Directory
  3244. ----------------------------------------------------------------
  3245. FIXME: list here, with explanation, all the C source files and headers
  3246. under the 'gcc' directory that aren't built into the GCC executable but
  3247. rather are part of runtime libraries and object files, such as
  3248. 'crtstuff.c' and 'unwind-dw2.c'. *Note Headers Installed by GCC:
  3249. Headers, for more information about the 'ginclude' directory.
  3250. 
  3251. File: gccint.info, Node: Headers, Next: Documentation, Prev: Library Files, Up: gcc Directory
  3252. 6.3.6 Headers Installed by GCC
  3253. ------------------------------
  3254. In general, GCC expects the system C library to provide most of the
  3255. headers to be used with it. However, GCC will fix those headers if
  3256. necessary to make them work with GCC, and will install some headers
  3257. required of freestanding implementations. These headers are installed
  3258. in 'LIBSUBDIR/include'. Headers for non-C runtime libraries are also
  3259. installed by GCC; these are not documented here. (FIXME: document them
  3260. somewhere.)
  3261. Several of the headers GCC installs are in the 'ginclude' directory.
  3262. These headers, 'iso646.h', 'stdarg.h', 'stdbool.h', and 'stddef.h', are
  3263. installed in 'LIBSUBDIR/include', unless the target Makefile fragment
  3264. (*note Target Fragment::) overrides this by setting 'USER_H'.
  3265. In addition to these headers and those generated by fixing system
  3266. headers to work with GCC, some other headers may also be installed in
  3267. 'LIBSUBDIR/include'. 'config.gcc' may set 'extra_headers'; this
  3268. specifies additional headers under 'config' to be installed on some
  3269. systems.
  3270. GCC installs its own version of '<float.h>', from 'ginclude/float.h'.
  3271. This is done to cope with command-line options that change the
  3272. representation of floating point numbers.
  3273. GCC also installs its own version of '<limits.h>'; this is generated
  3274. from 'glimits.h', together with 'limitx.h' and 'limity.h' if the system
  3275. also has its own version of '<limits.h>'. (GCC provides its own header
  3276. because it is required of ISO C freestanding implementations, but needs
  3277. to include the system header from its own header as well because other
  3278. standards such as POSIX specify additional values to be defined in
  3279. '<limits.h>'.) The system's '<limits.h>' header is used via
  3280. 'LIBSUBDIR/include/syslimits.h', which is copied from 'gsyslimits.h' if
  3281. it does not need fixing to work with GCC; if it needs fixing,
  3282. 'syslimits.h' is the fixed copy.
  3283. GCC can also install '<tgmath.h>'. It will do this when 'config.gcc'
  3284. sets 'use_gcc_tgmath' to 'yes'.
  3285. 
  3286. File: gccint.info, Node: Documentation, Next: Front End, Prev: Headers, Up: gcc Directory
  3287. 6.3.7 Building Documentation
  3288. ----------------------------
  3289. The main GCC documentation is in the form of manuals in Texinfo format.
  3290. These are installed in Info format; DVI versions may be generated by
  3291. 'make dvi', PDF versions by 'make pdf', and HTML versions by 'make
  3292. html'. In addition, some man pages are generated from the Texinfo
  3293. manuals, there are some other text files with miscellaneous
  3294. documentation, and runtime libraries have their own documentation
  3295. outside the 'gcc' directory. FIXME: document the documentation for
  3296. runtime libraries somewhere.
  3297. * Menu:
  3298. * Texinfo Manuals:: GCC manuals in Texinfo format.
  3299. * Man Page Generation:: Generating man pages from Texinfo manuals.
  3300. * Miscellaneous Docs:: Miscellaneous text files with documentation.
  3301. 
  3302. File: gccint.info, Node: Texinfo Manuals, Next: Man Page Generation, Up: Documentation
  3303. 6.3.7.1 Texinfo Manuals
  3304. .......................
  3305. The manuals for GCC as a whole, and the C and C++ front ends, are in
  3306. files 'doc/*.texi'. Other front ends have their own manuals in files
  3307. 'LANGUAGE/*.texi'. Common files 'doc/include/*.texi' are provided which
  3308. may be included in multiple manuals; the following files are in
  3309. 'doc/include':
  3310. 'fdl.texi'
  3311. The GNU Free Documentation License.
  3312. 'funding.texi'
  3313. The section "Funding Free Software".
  3314. 'gcc-common.texi'
  3315. Common definitions for manuals.
  3316. 'gpl_v3.texi'
  3317. The GNU General Public License.
  3318. 'texinfo.tex'
  3319. A copy of 'texinfo.tex' known to work with the GCC manuals.
  3320. DVI-formatted manuals are generated by 'make dvi', which uses
  3321. 'texi2dvi' (via the Makefile macro '$(TEXI2DVI)'). PDF-formatted
  3322. manuals are generated by 'make pdf', which uses 'texi2pdf' (via the
  3323. Makefile macro '$(TEXI2PDF)'). HTML formatted manuals are generated by
  3324. 'make html'. Info manuals are generated by 'make info' (which is run as
  3325. part of a bootstrap); this generates the manuals in the source
  3326. directory, using 'makeinfo' via the Makefile macro '$(MAKEINFO)', and
  3327. they are included in release distributions.
  3328. Manuals are also provided on the GCC web site, in both HTML and
  3329. PostScript forms. This is done via the script
  3330. 'maintainer-scripts/update_web_docs_svn'. Each manual to be provided
  3331. online must be listed in the definition of 'MANUALS' in that file; a
  3332. file 'NAME.texi' must only appear once in the source tree, and the
  3333. output manual must have the same name as the source file. (However,
  3334. other Texinfo files, included in manuals but not themselves the root
  3335. files of manuals, may have names that appear more than once in the
  3336. source tree.) The manual file 'NAME.texi' should only include other
  3337. files in its own directory or in 'doc/include'. HTML manuals will be
  3338. generated by 'makeinfo --html', PostScript manuals by 'texi2dvi' and
  3339. 'dvips', and PDF manuals by 'texi2pdf'. All Texinfo files that are
  3340. parts of manuals must be version-controlled, even if they are generated
  3341. files, for the generation of online manuals to work.
  3342. The installation manual, 'doc/install.texi', is also provided on the
  3343. GCC web site. The HTML version is generated by the script
  3344. 'doc/install.texi2html'.
  3345. 
  3346. File: gccint.info, Node: Man Page Generation, Next: Miscellaneous Docs, Prev: Texinfo Manuals, Up: Documentation
  3347. 6.3.7.2 Man Page Generation
  3348. ...........................
  3349. Because of user demand, in addition to full Texinfo manuals, man pages
  3350. are provided which contain extracts from those manuals. These man pages
  3351. are generated from the Texinfo manuals using 'contrib/texi2pod.pl' and
  3352. 'pod2man'. (The man page for 'g++', 'cp/g++.1', just contains a '.so'
  3353. reference to 'gcc.1', but all the other man pages are generated from
  3354. Texinfo manuals.)
  3355. Because many systems may not have the necessary tools installed to
  3356. generate the man pages, they are only generated if the 'configure'
  3357. script detects that recent enough tools are installed, and the Makefiles
  3358. allow generating man pages to fail without aborting the build. Man
  3359. pages are also included in release distributions. They are generated in
  3360. the source directory.
  3361. Magic comments in Texinfo files starting '@c man' control what parts of
  3362. a Texinfo file go into a man page. Only a subset of Texinfo is
  3363. supported by 'texi2pod.pl', and it may be necessary to add support for
  3364. more Texinfo features to this script when generating new man pages. To
  3365. improve the man page output, some special Texinfo macros are provided in
  3366. 'doc/include/gcc-common.texi' which 'texi2pod.pl' understands:
  3367. '@gcctabopt'
  3368. Use in the form '@table @gcctabopt' for tables of options, where
  3369. for printed output the effect of '@code' is better than that of
  3370. '@option' but for man page output a different effect is wanted.
  3371. '@gccoptlist'
  3372. Use for summary lists of options in manuals.
  3373. '@gol'
  3374. Use at the end of each line inside '@gccoptlist'. This is
  3375. necessary to avoid problems with differences in how the
  3376. '@gccoptlist' macro is handled by different Texinfo formatters.
  3377. FIXME: describe the 'texi2pod.pl' input language and magic comments in
  3378. more detail.
  3379. 
  3380. File: gccint.info, Node: Miscellaneous Docs, Prev: Man Page Generation, Up: Documentation
  3381. 6.3.7.3 Miscellaneous Documentation
  3382. ...................................
  3383. In addition to the formal documentation that is installed by GCC, there
  3384. are several other text files in the 'gcc' subdirectory with
  3385. miscellaneous documentation:
  3386. 'ABOUT-GCC-NLS'
  3387. Notes on GCC's Native Language Support. FIXME: this should be part
  3388. of this manual rather than a separate file.
  3389. 'ABOUT-NLS'
  3390. Notes on the Free Translation Project.
  3391. 'COPYING'
  3392. 'COPYING3'
  3393. The GNU General Public License, Versions 2 and 3.
  3394. 'COPYING.LIB'
  3395. 'COPYING3.LIB'
  3396. The GNU Lesser General Public License, Versions 2.1 and 3.
  3397. '*ChangeLog*'
  3398. '*/ChangeLog*'
  3399. Change log files for various parts of GCC.
  3400. 'LANGUAGES'
  3401. Details of a few changes to the GCC front-end interface. FIXME:
  3402. the information in this file should be part of general
  3403. documentation of the front-end interface in this manual.
  3404. 'ONEWS'
  3405. Information about new features in old versions of GCC. (For recent
  3406. versions, the information is on the GCC web site.)
  3407. 'README.Portability'
  3408. Information about portability issues when writing code in GCC.
  3409. FIXME: why isn't this part of this manual or of the GCC Coding
  3410. Conventions?
  3411. FIXME: document such files in subdirectories, at least 'config', 'c',
  3412. 'cp', 'objc', 'testsuite'.
  3413. 
  3414. File: gccint.info, Node: Front End, Next: Back End, Prev: Documentation, Up: gcc Directory
  3415. 6.3.8 Anatomy of a Language Front End
  3416. -------------------------------------
  3417. A front end for a language in GCC has the following parts:
  3418. * A directory 'LANGUAGE' under 'gcc' containing source files for that
  3419. front end. *Note The Front End 'LANGUAGE' Directory: Front End
  3420. Directory, for details.
  3421. * A mention of the language in the list of supported languages in
  3422. 'gcc/doc/install.texi'.
  3423. * A mention of the name under which the language's runtime library is
  3424. recognized by '--enable-shared=PACKAGE' in the documentation of
  3425. that option in 'gcc/doc/install.texi'.
  3426. * A mention of any special prerequisites for building the front end
  3427. in the documentation of prerequisites in 'gcc/doc/install.texi'.
  3428. * Details of contributors to that front end in
  3429. 'gcc/doc/contrib.texi'. If the details are in that front end's own
  3430. manual then there should be a link to that manual's list in
  3431. 'contrib.texi'.
  3432. * Information about support for that language in
  3433. 'gcc/doc/frontends.texi'.
  3434. * Information about standards for that language, and the front end's
  3435. support for them, in 'gcc/doc/standards.texi'. This may be a link
  3436. to such information in the front end's own manual.
  3437. * Details of source file suffixes for that language and '-x LANG'
  3438. options supported, in 'gcc/doc/invoke.texi'.
  3439. * Entries in 'default_compilers' in 'gcc.c' for source file suffixes
  3440. for that language.
  3441. * Preferably testsuites, which may be under 'gcc/testsuite' or
  3442. runtime library directories. FIXME: document somewhere how to
  3443. write testsuite harnesses.
  3444. * Probably a runtime library for the language, outside the 'gcc'
  3445. directory. FIXME: document this further.
  3446. * Details of the directories of any runtime libraries in
  3447. 'gcc/doc/sourcebuild.texi'.
  3448. * Check targets in 'Makefile.def' for the top-level 'Makefile' to
  3449. check just the compiler or the compiler and runtime library for the
  3450. language.
  3451. If the front end is added to the official GCC source repository, the
  3452. following are also necessary:
  3453. * At least one Bugzilla component for bugs in that front end and
  3454. runtime libraries. This category needs to be added to the Bugzilla
  3455. database.
  3456. * Normally, one or more maintainers of that front end listed in
  3457. 'MAINTAINERS'.
  3458. * Mentions on the GCC web site in 'index.html' and 'frontends.html',
  3459. with any relevant links on 'readings.html'. (Front ends that are
  3460. not an official part of GCC may also be listed on 'frontends.html',
  3461. with relevant links.)
  3462. * A news item on 'index.html', and possibly an announcement on the
  3463. <gcc-announce@gcc.gnu.org> mailing list.
  3464. * The front end's manuals should be mentioned in
  3465. 'maintainer-scripts/update_web_docs_svn' (*note Texinfo Manuals::)
  3466. and the online manuals should be linked to from
  3467. 'onlinedocs/index.html'.
  3468. * Any old releases or CVS repositories of the front end, before its
  3469. inclusion in GCC, should be made available on the GCC FTP site
  3470. <ftp://gcc.gnu.org/pub/gcc/old-releases/>.
  3471. * The release and snapshot script 'maintainer-scripts/gcc_release'
  3472. should be updated to generate appropriate tarballs for this front
  3473. end.
  3474. * If this front end includes its own version files that include the
  3475. current date, 'maintainer-scripts/update_version' should be updated
  3476. accordingly.
  3477. * Menu:
  3478. * Front End Directory:: The front end 'LANGUAGE' directory.
  3479. * Front End Config:: The front end 'config-lang.in' file.
  3480. * Front End Makefile:: The front end 'Make-lang.in' file.
  3481. 
  3482. File: gccint.info, Node: Front End Directory, Next: Front End Config, Up: Front End
  3483. 6.3.8.1 The Front End 'LANGUAGE' Directory
  3484. ..........................................
  3485. A front end 'LANGUAGE' directory contains the source files of that front
  3486. end (but not of any runtime libraries, which should be outside the 'gcc'
  3487. directory). This includes documentation, and possibly some subsidiary
  3488. programs built alongside the front end. Certain files are special and
  3489. other parts of the compiler depend on their names:
  3490. 'config-lang.in'
  3491. This file is required in all language subdirectories. *Note The
  3492. Front End 'config-lang.in' File: Front End Config, for details of
  3493. its contents
  3494. 'Make-lang.in'
  3495. This file is required in all language subdirectories. *Note The
  3496. Front End 'Make-lang.in' File: Front End Makefile, for details of
  3497. its contents.
  3498. 'lang.opt'
  3499. This file registers the set of switches that the front end accepts
  3500. on the command line, and their '--help' text. *Note Options::.
  3501. 'lang-specs.h'
  3502. This file provides entries for 'default_compilers' in 'gcc.c' which
  3503. override the default of giving an error that a compiler for that
  3504. language is not installed.
  3505. 'LANGUAGE-tree.def'
  3506. This file, which need not exist, defines any language-specific tree
  3507. codes.
  3508. 
  3509. File: gccint.info, Node: Front End Config, Next: Front End Makefile, Prev: Front End Directory, Up: Front End
  3510. 6.3.8.2 The Front End 'config-lang.in' File
  3511. ...........................................
  3512. Each language subdirectory contains a 'config-lang.in' file. This file
  3513. is a shell script that may define some variables describing the
  3514. language:
  3515. 'language'
  3516. This definition must be present, and gives the name of the language
  3517. for some purposes such as arguments to '--enable-languages'.
  3518. 'lang_requires'
  3519. If defined, this variable lists (space-separated) language front
  3520. ends other than C that this front end requires to be enabled (with
  3521. the names given being their 'language' settings). For example, the
  3522. Obj-C++ front end depends on the C++ and ObjC front ends, so sets
  3523. 'lang_requires="objc c++"'.
  3524. 'subdir_requires'
  3525. If defined, this variable lists (space-separated) front end
  3526. directories other than C that this front end requires to be
  3527. present. For example, the Objective-C++ front end uses source
  3528. files from the C++ and Objective-C front ends, so sets
  3529. 'subdir_requires="cp objc"'.
  3530. 'target_libs'
  3531. If defined, this variable lists (space-separated) targets in the
  3532. top level 'Makefile' to build the runtime libraries for this
  3533. language, such as 'target-libobjc'.
  3534. 'lang_dirs'
  3535. If defined, this variable lists (space-separated) top level
  3536. directories (parallel to 'gcc'), apart from the runtime libraries,
  3537. that should not be configured if this front end is not built.
  3538. 'build_by_default'
  3539. If defined to 'no', this language front end is not built unless
  3540. enabled in a '--enable-languages' argument. Otherwise, front ends
  3541. are built by default, subject to any special logic in
  3542. 'configure.ac' (as is present to disable the Ada front end if the
  3543. Ada compiler is not already installed).
  3544. 'boot_language'
  3545. If defined to 'yes', this front end is built in stage1 of the
  3546. bootstrap. This is only relevant to front ends written in their
  3547. own languages.
  3548. 'compilers'
  3549. If defined, a space-separated list of compiler executables that
  3550. will be run by the driver. The names here will each end with
  3551. '\$(exeext)'.
  3552. 'outputs'
  3553. If defined, a space-separated list of files that should be
  3554. generated by 'configure' substituting values in them. This
  3555. mechanism can be used to create a file 'LANGUAGE/Makefile' from
  3556. 'LANGUAGE/Makefile.in', but this is deprecated, building everything
  3557. from the single 'gcc/Makefile' is preferred.
  3558. 'gtfiles'
  3559. If defined, a space-separated list of files that should be scanned
  3560. by 'gengtype.c' to generate the garbage collection tables and
  3561. routines for this language. This excludes the files that are
  3562. common to all front ends. *Note Type Information::.
  3563. 
  3564. File: gccint.info, Node: Front End Makefile, Prev: Front End Config, Up: Front End
  3565. 6.3.8.3 The Front End 'Make-lang.in' File
  3566. .........................................
  3567. Each language subdirectory contains a 'Make-lang.in' file. It contains
  3568. targets 'LANG.HOOK' (where 'LANG' is the setting of 'language' in
  3569. 'config-lang.in') for the following values of 'HOOK', and any other
  3570. Makefile rules required to build those targets (which may if necessary
  3571. use other Makefiles specified in 'outputs' in 'config-lang.in', although
  3572. this is deprecated). It also adds any testsuite targets that can use
  3573. the standard rule in 'gcc/Makefile.in' to the variable 'lang_checks'.
  3574. 'all.cross'
  3575. 'start.encap'
  3576. 'rest.encap'
  3577. FIXME: exactly what goes in each of these targets?
  3578. 'tags'
  3579. Build an 'etags' 'TAGS' file in the language subdirectory in the
  3580. source tree.
  3581. 'info'
  3582. Build info documentation for the front end, in the build directory.
  3583. This target is only called by 'make bootstrap' if a suitable
  3584. version of 'makeinfo' is available, so does not need to check for
  3585. this, and should fail if an error occurs.
  3586. 'dvi'
  3587. Build DVI documentation for the front end, in the build directory.
  3588. This should be done using '$(TEXI2DVI)', with appropriate '-I'
  3589. arguments pointing to directories of included files.
  3590. 'pdf'
  3591. Build PDF documentation for the front end, in the build directory.
  3592. This should be done using '$(TEXI2PDF)', with appropriate '-I'
  3593. arguments pointing to directories of included files.
  3594. 'html'
  3595. Build HTML documentation for the front end, in the build directory.
  3596. 'man'
  3597. Build generated man pages for the front end from Texinfo manuals
  3598. (*note Man Page Generation::), in the build directory. This target
  3599. is only called if the necessary tools are available, but should
  3600. ignore errors so as not to stop the build if errors occur; man
  3601. pages are optional and the tools involved may be installed in a
  3602. broken way.
  3603. 'install-common'
  3604. Install everything that is part of the front end, apart from the
  3605. compiler executables listed in 'compilers' in 'config-lang.in'.
  3606. 'install-info'
  3607. Install info documentation for the front end, if it is present in
  3608. the source directory. This target should have dependencies on info
  3609. files that should be installed.
  3610. 'install-man'
  3611. Install man pages for the front end. This target should ignore
  3612. errors.
  3613. 'install-plugin'
  3614. Install headers needed for plugins.
  3615. 'srcextra'
  3616. Copies its dependencies into the source directory. This generally
  3617. should be used for generated files such as Bison output files which
  3618. are not version-controlled, but should be included in any release
  3619. tarballs. This target will be executed during a bootstrap if
  3620. '--enable-generated-files-in-srcdir' was specified as a 'configure'
  3621. option.
  3622. 'srcinfo'
  3623. 'srcman'
  3624. Copies its dependencies into the source directory. These targets
  3625. will be executed during a bootstrap if
  3626. '--enable-generated-files-in-srcdir' was specified as a 'configure'
  3627. option.
  3628. 'uninstall'
  3629. Uninstall files installed by installing the compiler. This is
  3630. currently documented not to be supported, so the hook need not do
  3631. anything.
  3632. 'mostlyclean'
  3633. 'clean'
  3634. 'distclean'
  3635. 'maintainer-clean'
  3636. The language parts of the standard GNU '*clean' targets. *Note
  3637. Standard Targets for Users: (standards)Standard Targets, for
  3638. details of the standard targets. For GCC, 'maintainer-clean'
  3639. should delete all generated files in the source directory that are
  3640. not version-controlled, but should not delete anything that is.
  3641. 'Make-lang.in' must also define a variable 'LANG_OBJS' to a list of
  3642. host object files that are used by that language.
  3643. 
  3644. File: gccint.info, Node: Back End, Prev: Front End, Up: gcc Directory
  3645. 6.3.9 Anatomy of a Target Back End
  3646. ----------------------------------
  3647. A back end for a target architecture in GCC has the following parts:
  3648. * A directory 'MACHINE' under 'gcc/config', containing a machine
  3649. description 'MACHINE.md' file (*note Machine Descriptions: Machine
  3650. Desc.), header files 'MACHINE.h' and 'MACHINE-protos.h' and a
  3651. source file 'MACHINE.c' (*note Target Description Macros and
  3652. Functions: Target Macros.), possibly a target Makefile fragment
  3653. 't-MACHINE' (*note The Target Makefile Fragment: Target Fragment.),
  3654. and maybe some other files. The names of these files may be
  3655. changed from the defaults given by explicit specifications in
  3656. 'config.gcc'.
  3657. * If necessary, a file 'MACHINE-modes.def' in the 'MACHINE'
  3658. directory, containing additional machine modes to represent
  3659. condition codes. *Note Condition Code::, for further details.
  3660. * An optional 'MACHINE.opt' file in the 'MACHINE' directory,
  3661. containing a list of target-specific options. You can also add
  3662. other option files using the 'extra_options' variable in
  3663. 'config.gcc'. *Note Options::.
  3664. * Entries in 'config.gcc' (*note The 'config.gcc' File: System
  3665. Config.) for the systems with this target architecture.
  3666. * Documentation in 'gcc/doc/invoke.texi' for any command-line options
  3667. supported by this target (*note Run-time Target Specification:
  3668. Run-time Target.). This means both entries in the summary table of
  3669. options and details of the individual options.
  3670. * Documentation in 'gcc/doc/extend.texi' for any target-specific
  3671. attributes supported (*note Defining target-specific uses of
  3672. '__attribute__': Target Attributes.), including where the same
  3673. attribute is already supported on some targets, which are
  3674. enumerated in the manual.
  3675. * Documentation in 'gcc/doc/extend.texi' for any target-specific
  3676. pragmas supported.
  3677. * Documentation in 'gcc/doc/extend.texi' of any target-specific
  3678. built-in functions supported.
  3679. * Documentation in 'gcc/doc/extend.texi' of any target-specific
  3680. format checking styles supported.
  3681. * Documentation in 'gcc/doc/md.texi' of any target-specific
  3682. constraint letters (*note Constraints for Particular Machines:
  3683. Machine Constraints.).
  3684. * A note in 'gcc/doc/contrib.texi' under the person or people who
  3685. contributed the target support.
  3686. * Entries in 'gcc/doc/install.texi' for all target triplets supported
  3687. with this target architecture, giving details of any special notes
  3688. about installation for this target, or saying that there are no
  3689. special notes if there are none.
  3690. * Possibly other support outside the 'gcc' directory for runtime
  3691. libraries. FIXME: reference docs for this. The 'libstdc++'
  3692. porting manual needs to be installed as info for this to work, or
  3693. to be a chapter of this manual.
  3694. If the back end is added to the official GCC source repository, the
  3695. following are also necessary:
  3696. * An entry for the target architecture in 'readings.html' on the GCC
  3697. web site, with any relevant links.
  3698. * Details of the properties of the back end and target architecture
  3699. in 'backends.html' on the GCC web site.
  3700. * A news item about the contribution of support for that target
  3701. architecture, in 'index.html' on the GCC web site.
  3702. * Normally, one or more maintainers of that target listed in
  3703. 'MAINTAINERS'. Some existing architectures may be unmaintained,
  3704. but it would be unusual to add support for a target that does not
  3705. have a maintainer when support is added.
  3706. * Target triplets covering all 'config.gcc' stanzas for the target,
  3707. in the list in 'contrib/config-list.mk'.
  3708. 
  3709. File: gccint.info, Node: Testsuites, Next: Options, Prev: Source Tree, Up: Top
  3710. 7 Testsuites
  3711. ************
  3712. GCC contains several testsuites to help maintain compiler quality. Most
  3713. of the runtime libraries and language front ends in GCC have testsuites.
  3714. Currently only the C language testsuites are documented here; FIXME:
  3715. document the others.
  3716. * Menu:
  3717. * Test Idioms:: Idioms used in testsuite code.
  3718. * Test Directives:: Directives used within DejaGnu tests.
  3719. * Ada Tests:: The Ada language testsuites.
  3720. * C Tests:: The C language testsuites.
  3721. * LTO Testing:: Support for testing link-time optimizations.
  3722. * gcov Testing:: Support for testing gcov.
  3723. * profopt Testing:: Support for testing profile-directed optimizations.
  3724. * compat Testing:: Support for testing binary compatibility.
  3725. * Torture Tests:: Support for torture testing using multiple options.
  3726. * GIMPLE Tests:: Support for testing GIMPLE passes.
  3727. * RTL Tests:: Support for testing RTL passes.
  3728. 
  3729. File: gccint.info, Node: Test Idioms, Next: Test Directives, Up: Testsuites
  3730. 7.1 Idioms Used in Testsuite Code
  3731. =================================
  3732. In general, C testcases have a trailing '-N.c', starting with '-1.c', in
  3733. case other testcases with similar names are added later. If the test is
  3734. a test of some well-defined feature, it should have a name referring to
  3735. that feature such as 'FEATURE-1.c'. If it does not test a well-defined
  3736. feature but just happens to exercise a bug somewhere in the compiler,
  3737. and a bug report has been filed for this bug in the GCC bug database,
  3738. 'prBUG-NUMBER-1.c' is the appropriate form of name. Otherwise (for
  3739. miscellaneous bugs not filed in the GCC bug database), and previously
  3740. more generally, test cases are named after the date on which they were
  3741. added. This allows people to tell at a glance whether a test failure is
  3742. because of a recently found bug that has not yet been fixed, or whether
  3743. it may be a regression, but does not give any other information about
  3744. the bug or where discussion of it may be found. Some other language
  3745. testsuites follow similar conventions.
  3746. In the 'gcc.dg' testsuite, it is often necessary to test that an error
  3747. is indeed a hard error and not just a warning--for example, where it is
  3748. a constraint violation in the C standard, which must become an error
  3749. with '-pedantic-errors'. The following idiom, where the first line
  3750. shown is line LINE of the file and the line that generates the error, is
  3751. used for this:
  3752. /* { dg-bogus "warning" "warning in place of error" } */
  3753. /* { dg-error "REGEXP" "MESSAGE" { target *-*-* } LINE } */
  3754. It may be necessary to check that an expression is an integer constant
  3755. expression and has a certain value. To check that 'E' has value 'V', an
  3756. idiom similar to the following is used:
  3757. char x[((E) == (V) ? 1 : -1)];
  3758. In 'gcc.dg' tests, '__typeof__' is sometimes used to make assertions
  3759. about the types of expressions. See, for example,
  3760. 'gcc.dg/c99-condexpr-1.c'. The more subtle uses depend on the exact
  3761. rules for the types of conditional expressions in the C standard; see,
  3762. for example, 'gcc.dg/c99-intconst-1.c'.
  3763. It is useful to be able to test that optimizations are being made
  3764. properly. This cannot be done in all cases, but it can be done where
  3765. the optimization will lead to code being optimized away (for example,
  3766. where flow analysis or alias analysis should show that certain code
  3767. cannot be called) or to functions not being called because they have
  3768. been expanded as built-in functions. Such tests go in
  3769. 'gcc.c-torture/execute'. Where code should be optimized away, a call to
  3770. a nonexistent function such as 'link_failure ()' may be inserted; a
  3771. definition
  3772. #ifndef __OPTIMIZE__
  3773. void
  3774. link_failure (void)
  3775. {
  3776. abort ();
  3777. }
  3778. #endif
  3779. will also be needed so that linking still succeeds when the test is run
  3780. without optimization. When all calls to a built-in function should have
  3781. been optimized and no calls to the non-built-in version of the function
  3782. should remain, that function may be defined as 'static' to call 'abort
  3783. ()' (although redeclaring a function as static may not work on all
  3784. targets).
  3785. All testcases must be portable. Target-specific testcases must have
  3786. appropriate code to avoid causing failures on unsupported systems;
  3787. unfortunately, the mechanisms for this differ by directory.
  3788. FIXME: discuss non-C testsuites here.
  3789. 
  3790. File: gccint.info, Node: Test Directives, Next: Ada Tests, Prev: Test Idioms, Up: Testsuites
  3791. 7.2 Directives used within DejaGnu tests
  3792. ========================================
  3793. * Menu:
  3794. * Directives:: Syntax and descriptions of test directives.
  3795. * Selectors:: Selecting targets to which a test applies.
  3796. * Effective-Target Keywords:: Keywords describing target attributes.
  3797. * Add Options:: Features for 'dg-add-options'
  3798. * Require Support:: Variants of 'dg-require-SUPPORT'
  3799. * Final Actions:: Commands for use in 'dg-final'
  3800. 
  3801. File: gccint.info, Node: Directives, Next: Selectors, Up: Test Directives
  3802. 7.2.1 Syntax and Descriptions of test directives
  3803. ------------------------------------------------
  3804. Test directives appear within comments in a test source file and begin
  3805. with 'dg-'. Some of these are defined within DejaGnu and others are
  3806. local to the GCC testsuite.
  3807. The order in which test directives appear in a test can be important:
  3808. directives local to GCC sometimes override information used by the
  3809. DejaGnu directives, which know nothing about the GCC directives, so the
  3810. DejaGnu directives must precede GCC directives.
  3811. Several test directives include selectors (*note Selectors::) which are
  3812. usually preceded by the keyword 'target' or 'xfail'.
  3813. 7.2.1.1 Specify how to build the test
  3814. .....................................
  3815. '{ dg-do DO-WHAT-KEYWORD [{ target/xfail SELECTOR }] }'
  3816. DO-WHAT-KEYWORD specifies how the test is compiled and whether it
  3817. is executed. It is one of:
  3818. 'preprocess'
  3819. Compile with '-E' to run only the preprocessor.
  3820. 'compile'
  3821. Compile with '-S' to produce an assembly code file.
  3822. 'assemble'
  3823. Compile with '-c' to produce a relocatable object file.
  3824. 'link'
  3825. Compile, assemble, and link to produce an executable file.
  3826. 'run'
  3827. Produce and run an executable file, which is expected to
  3828. return an exit code of 0.
  3829. The default is 'compile'. That can be overridden for a set of
  3830. tests by redefining 'dg-do-what-default' within the '.exp' file for
  3831. those tests.
  3832. If the directive includes the optional '{ target SELECTOR }' then
  3833. the test is skipped unless the target system matches the SELECTOR.
  3834. If DO-WHAT-KEYWORD is 'run' and the directive includes the optional
  3835. '{ xfail SELECTOR }' and the selector is met then the test is
  3836. expected to fail. The 'xfail' clause is ignored for other values
  3837. of DO-WHAT-KEYWORD; those tests can use directive 'dg-xfail-if'.
  3838. 7.2.1.2 Specify additional compiler options
  3839. ...........................................
  3840. '{ dg-options OPTIONS [{ target SELECTOR }] }'
  3841. This DejaGnu directive provides a list of compiler options, to be
  3842. used if the target system matches SELECTOR, that replace the
  3843. default options used for this set of tests.
  3844. '{ dg-add-options FEATURE ... }'
  3845. Add any compiler options that are needed to access certain
  3846. features. This directive does nothing on targets that enable the
  3847. features by default, or that don't provide them at all. It must
  3848. come after all 'dg-options' directives. For supported values of
  3849. FEATURE see *note Add Options::.
  3850. '{ dg-additional-options OPTIONS [{ target SELECTOR }] }'
  3851. This directive provides a list of compiler options, to be used if
  3852. the target system matches SELECTOR, that are added to the default
  3853. options used for this set of tests.
  3854. 7.2.1.3 Modify the test timeout value
  3855. .....................................
  3856. The normal timeout limit, in seconds, is found by searching the
  3857. following in order:
  3858. * the value defined by an earlier 'dg-timeout' directive in the test
  3859. * variable TOOL_TIMEOUT defined by the set of tests
  3860. * GCC,TIMEOUT set in the target board
  3861. * 300
  3862. '{ dg-timeout N [{target SELECTOR }] }'
  3863. Set the time limit for the compilation and for the execution of the
  3864. test to the specified number of seconds.
  3865. '{ dg-timeout-factor X [{ target SELECTOR }] }'
  3866. Multiply the normal time limit for compilation and execution of the
  3867. test by the specified floating-point factor.
  3868. 7.2.1.4 Skip a test for some targets
  3869. ....................................
  3870. '{ dg-skip-if COMMENT { SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]] }'
  3871. Arguments INCLUDE-OPTS and EXCLUDE-OPTS are lists in which each
  3872. element is a string of zero or more GCC options. Skip the test if
  3873. all of the following conditions are met:
  3874. * the test system is included in SELECTOR
  3875. * for at least one of the option strings in INCLUDE-OPTS, every
  3876. option from that string is in the set of options with which
  3877. the test would be compiled; use '"*"' for an INCLUDE-OPTS list
  3878. that matches any options; that is the default if INCLUDE-OPTS
  3879. is not specified
  3880. * for each of the option strings in EXCLUDE-OPTS, at least one
  3881. option from that string is not in the set of options with
  3882. which the test would be compiled; use '""' for an empty
  3883. EXCLUDE-OPTS list; that is the default if EXCLUDE-OPTS is not
  3884. specified
  3885. For example, to skip a test if option '-Os' is present:
  3886. /* { dg-skip-if "" { *-*-* } { "-Os" } { "" } } */
  3887. To skip a test if both options '-O2' and '-g' are present:
  3888. /* { dg-skip-if "" { *-*-* } { "-O2 -g" } { "" } } */
  3889. To skip a test if either '-O2' or '-O3' is present:
  3890. /* { dg-skip-if "" { *-*-* } { "-O2" "-O3" } { "" } } */
  3891. To skip a test unless option '-Os' is present:
  3892. /* { dg-skip-if "" { *-*-* } { "*" } { "-Os" } } */
  3893. To skip a test if either '-O2' or '-O3' is used with '-g' but not
  3894. if '-fpic' is also present:
  3895. /* { dg-skip-if "" { *-*-* } { "-O2 -g" "-O3 -g" } { "-fpic" } } */
  3896. '{ dg-require-effective-target KEYWORD [{ SELECTOR }] }'
  3897. Skip the test if the test target, including current multilib flags,
  3898. is not covered by the effective-target keyword. If the directive
  3899. includes the optional '{ SELECTOR }' then the effective-target test
  3900. is only performed if the target system matches the SELECTOR. This
  3901. directive must appear after any 'dg-do' directive in the test and
  3902. before any 'dg-additional-sources' directive. *Note
  3903. Effective-Target Keywords::.
  3904. '{ dg-require-SUPPORT args }'
  3905. Skip the test if the target does not provide the required support.
  3906. These directives must appear after any 'dg-do' directive in the
  3907. test and before any 'dg-additional-sources' directive. They
  3908. require at least one argument, which can be an empty string if the
  3909. specific procedure does not examine the argument. *Note Require
  3910. Support::, for a complete list of these directives.
  3911. 7.2.1.5 Expect a test to fail for some targets
  3912. ..............................................
  3913. '{ dg-xfail-if COMMENT { SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]] }'
  3914. Expect the test to fail if the conditions (which are the same as
  3915. for 'dg-skip-if') are met. This does not affect the execute step.
  3916. '{ dg-xfail-run-if COMMENT { SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]] }'
  3917. Expect the execute step of a test to fail if the conditions (which
  3918. are the same as for 'dg-skip-if') are met.
  3919. 7.2.1.6 Expect the test executable to fail
  3920. ..........................................
  3921. '{ dg-shouldfail COMMENT [{ SELECTOR } [{ INCLUDE-OPTS } [{ EXCLUDE-OPTS }]]] }'
  3922. Expect the test executable to return a nonzero exit status if the
  3923. conditions (which are the same as for 'dg-skip-if') are met.
  3924. 7.2.1.7 Verify compiler messages
  3925. ................................
  3926. '{ dg-error REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3927. This DejaGnu directive appears on a source line that is expected to
  3928. get an error message, or else specifies the source line associated
  3929. with the message. If there is no message for that line or if the
  3930. text of that message is not matched by REGEXP then the check fails
  3931. and COMMENT is included in the 'FAIL' message. The check does not
  3932. look for the string 'error' unless it is part of REGEXP.
  3933. '{ dg-warning REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3934. This DejaGnu directive appears on a source line that is expected to
  3935. get a warning message, or else specifies the source line associated
  3936. with the message. If there is no message for that line or if the
  3937. text of that message is not matched by REGEXP then the check fails
  3938. and COMMENT is included in the 'FAIL' message. The check does not
  3939. look for the string 'warning' unless it is part of REGEXP.
  3940. '{ dg-message REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3941. The line is expected to get a message other than an error or
  3942. warning. If there is no message for that line or if the text of
  3943. that message is not matched by REGEXP then the check fails and
  3944. COMMENT is included in the 'FAIL' message.
  3945. '{ dg-bogus REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] ]] }'
  3946. This DejaGnu directive appears on a source line that should not get
  3947. a message matching REGEXP, or else specifies the source line
  3948. associated with the bogus message. It is usually used with 'xfail'
  3949. to indicate that the message is a known problem for a particular
  3950. set of targets.
  3951. '{ dg-excess-errors COMMENT [{ target/xfail SELECTOR }] }'
  3952. This DejaGnu directive indicates that the test is expected to fail
  3953. due to compiler messages that are not handled by 'dg-error',
  3954. 'dg-warning' or 'dg-bogus'. For this directive 'xfail' has the
  3955. same effect as 'target'.
  3956. '{ dg-prune-output REGEXP }'
  3957. Prune messages matching REGEXP from the test output.
  3958. 7.2.1.8 Verify output of the test executable
  3959. ............................................
  3960. '{ dg-output REGEXP [{ target/xfail SELECTOR }] }'
  3961. This DejaGnu directive compares REGEXP to the combined output that
  3962. the test executable writes to 'stdout' and 'stderr'.
  3963. 7.2.1.9 Specify additional files for a test
  3964. ...........................................
  3965. '{ dg-additional-files "FILELIST" }'
  3966. Specify additional files, other than source files, that must be
  3967. copied to the system where the compiler runs.
  3968. '{ dg-additional-sources "FILELIST" }'
  3969. Specify additional source files to appear in the compile line
  3970. following the main test file.
  3971. 7.2.1.10 Add checks at the end of a test
  3972. ........................................
  3973. '{ dg-final { LOCAL-DIRECTIVE } }'
  3974. This DejaGnu directive is placed within a comment anywhere in the
  3975. source file and is processed after the test has been compiled and
  3976. run. Multiple 'dg-final' commands are processed in the order in
  3977. which they appear in the source file. *Note Final Actions::, for a
  3978. list of directives that can be used within 'dg-final'.
  3979. 
  3980. File: gccint.info, Node: Selectors, Next: Effective-Target Keywords, Prev: Directives, Up: Test Directives
  3981. 7.2.2 Selecting targets to which a test applies
  3982. -----------------------------------------------
  3983. Several test directives include SELECTORs to limit the targets for which
  3984. a test is run or to declare that a test is expected to fail on
  3985. particular targets.
  3986. A selector is:
  3987. * one or more target triplets, possibly including wildcard
  3988. characters; use '*-*-*' to match any target
  3989. * a single effective-target keyword (*note Effective-Target
  3990. Keywords::)
  3991. * a logical expression
  3992. Depending on the context, the selector specifies whether a test is
  3993. skipped and reported as unsupported or is expected to fail. A context
  3994. that allows either 'target' or 'xfail' also allows '{ target SELECTOR1
  3995. xfail SELECTOR2 }' to skip the test for targets that don't match
  3996. SELECTOR1 and the test to fail for targets that match SELECTOR2.
  3997. A selector expression appears within curly braces and uses a single
  3998. logical operator: one of '!', '&&', or '||'. An operand is another
  3999. selector expression, an effective-target keyword, a single target
  4000. triplet, or a list of target triplets within quotes or curly braces.
  4001. For example:
  4002. { target { ! "hppa*-*-* ia64*-*-*" } }
  4003. { target { powerpc*-*-* && lp64 } }
  4004. { xfail { lp64 || vect_no_align } }
  4005. 
  4006. File: gccint.info, Node: Effective-Target Keywords, Next: Add Options, Prev: Selectors, Up: Test Directives
  4007. 7.2.3 Keywords describing target attributes
  4008. -------------------------------------------
  4009. Effective-target keywords identify sets of targets that support
  4010. particular functionality. They are used to limit tests to be run only
  4011. for particular targets, or to specify that particular sets of targets
  4012. are expected to fail some tests.
  4013. Effective-target keywords are defined in 'lib/target-supports.exp' in
  4014. the GCC testsuite, with the exception of those that are documented as
  4015. being local to a particular test directory.
  4016. The 'effective target' takes into account all of the compiler options
  4017. with which the test will be compiled, including the multilib options.
  4018. By convention, keywords ending in '_nocache' can also include options
  4019. specified for the particular test in an earlier 'dg-options' or
  4020. 'dg-add-options' directive.
  4021. 7.2.3.1 Endianness
  4022. ..................
  4023. 'be'
  4024. Target uses big-endian memory order for multi-byte and multi-word
  4025. data.
  4026. 'le'
  4027. Target uses little-endian memory order for multi-byte and
  4028. multi-word data.
  4029. 7.2.3.2 Data type sizes
  4030. .......................
  4031. 'ilp32'
  4032. Target has 32-bit 'int', 'long', and pointers.
  4033. 'lp64'
  4034. Target has 32-bit 'int', 64-bit 'long' and pointers.
  4035. 'llp64'
  4036. Target has 32-bit 'int' and 'long', 64-bit 'long long' and
  4037. pointers.
  4038. 'double64'
  4039. Target has 64-bit 'double'.
  4040. 'double64plus'
  4041. Target has 'double' that is 64 bits or longer.
  4042. 'longdouble128'
  4043. Target has 128-bit 'long double'.
  4044. 'int32plus'
  4045. Target has 'int' that is at 32 bits or longer.
  4046. 'int16'
  4047. Target has 'int' that is 16 bits or shorter.
  4048. 'long_neq_int'
  4049. Target has 'int' and 'long' with different sizes.
  4050. 'large_double'
  4051. Target supports 'double' that is longer than 'float'.
  4052. 'large_long_double'
  4053. Target supports 'long double' that is longer than 'double'.
  4054. 'ptr32plus'
  4055. Target has pointers that are 32 bits or longer.
  4056. 'size32plus'
  4057. Target supports array and structure sizes that are 32 bits or
  4058. longer.
  4059. '4byte_wchar_t'
  4060. Target has 'wchar_t' that is at least 4 bytes.
  4061. 'floatN'
  4062. Target has the '_FloatN' type.
  4063. 'floatNx'
  4064. Target has the '_FloatNx' type.
  4065. 'floatN_runtime'
  4066. Target has the '_FloatN' type, including runtime support for any
  4067. options added with 'dg-add-options'.
  4068. 'floatNx_runtime'
  4069. Target has the '_FloatNx' type, including runtime support for any
  4070. options added with 'dg-add-options'.
  4071. 'floatn_nx_runtime'
  4072. Target has runtime support for any options added with
  4073. 'dg-add-options' for any '_FloatN' or '_FloatNx' type.
  4074. 7.2.3.3 Fortran-specific attributes
  4075. ...................................
  4076. 'fortran_integer_16'
  4077. Target supports Fortran 'integer' that is 16 bytes or longer.
  4078. 'fortran_large_int'
  4079. Target supports Fortran 'integer' kinds larger than 'integer(8)'.
  4080. 'fortran_large_real'
  4081. Target supports Fortran 'real' kinds larger than 'real(8)'.
  4082. 7.2.3.4 Vector-specific attributes
  4083. ..................................
  4084. 'vect_condition'
  4085. Target supports vector conditional operations.
  4086. 'vect_cond_mixed'
  4087. Target supports vector conditional operations where comparison
  4088. operands have different type from the value operands.
  4089. 'vect_double'
  4090. Target supports hardware vectors of 'double'.
  4091. 'vect_float'
  4092. Target supports hardware vectors of 'float'.
  4093. 'vect_int'
  4094. Target supports hardware vectors of 'int'.
  4095. 'vect_long'
  4096. Target supports hardware vectors of 'long'.
  4097. 'vect_long_long'
  4098. Target supports hardware vectors of 'long long'.
  4099. 'vect_aligned_arrays'
  4100. Target aligns arrays to vector alignment boundary.
  4101. 'vect_hw_misalign'
  4102. Target supports a vector misalign access.
  4103. 'vect_no_align'
  4104. Target does not support a vector alignment mechanism.
  4105. 'vect_no_int_min_max'
  4106. Target does not support a vector min and max instruction on 'int'.
  4107. 'vect_no_int_add'
  4108. Target does not support a vector add instruction on 'int'.
  4109. 'vect_no_bitwise'
  4110. Target does not support vector bitwise instructions.
  4111. 'vect_char_mult'
  4112. Target supports 'vector char' multiplication.
  4113. 'vect_short_mult'
  4114. Target supports 'vector short' multiplication.
  4115. 'vect_int_mult'
  4116. Target supports 'vector int' multiplication.
  4117. 'vect_extract_even_odd'
  4118. Target supports vector even/odd element extraction.
  4119. 'vect_extract_even_odd_wide'
  4120. Target supports vector even/odd element extraction of vectors with
  4121. elements 'SImode' or larger.
  4122. 'vect_interleave'
  4123. Target supports vector interleaving.
  4124. 'vect_strided'
  4125. Target supports vector interleaving and extract even/odd.
  4126. 'vect_strided_wide'
  4127. Target supports vector interleaving and extract even/odd for wide
  4128. element types.
  4129. 'vect_perm'
  4130. Target supports vector permutation.
  4131. 'vect_shift'
  4132. Target supports a hardware vector shift operation.
  4133. 'vect_widen_sum_hi_to_si'
  4134. Target supports a vector widening summation of 'short' operands
  4135. into 'int' results, or can promote (unpack) from 'short' to 'int'.
  4136. 'vect_widen_sum_qi_to_hi'
  4137. Target supports a vector widening summation of 'char' operands into
  4138. 'short' results, or can promote (unpack) from 'char' to 'short'.
  4139. 'vect_widen_sum_qi_to_si'
  4140. Target supports a vector widening summation of 'char' operands into
  4141. 'int' results.
  4142. 'vect_widen_mult_qi_to_hi'
  4143. Target supports a vector widening multiplication of 'char' operands
  4144. into 'short' results, or can promote (unpack) from 'char' to
  4145. 'short' and perform non-widening multiplication of 'short'.
  4146. 'vect_widen_mult_hi_to_si'
  4147. Target supports a vector widening multiplication of 'short'
  4148. operands into 'int' results, or can promote (unpack) from 'short'
  4149. to 'int' and perform non-widening multiplication of 'int'.
  4150. 'vect_widen_mult_si_to_di_pattern'
  4151. Target supports a vector widening multiplication of 'int' operands
  4152. into 'long' results.
  4153. 'vect_sdot_qi'
  4154. Target supports a vector dot-product of 'signed char'.
  4155. 'vect_udot_qi'
  4156. Target supports a vector dot-product of 'unsigned char'.
  4157. 'vect_sdot_hi'
  4158. Target supports a vector dot-product of 'signed short'.
  4159. 'vect_udot_hi'
  4160. Target supports a vector dot-product of 'unsigned short'.
  4161. 'vect_pack_trunc'
  4162. Target supports a vector demotion (packing) of 'short' to 'char'
  4163. and from 'int' to 'short' using modulo arithmetic.
  4164. 'vect_unpack'
  4165. Target supports a vector promotion (unpacking) of 'char' to 'short'
  4166. and from 'char' to 'int'.
  4167. 'vect_intfloat_cvt'
  4168. Target supports conversion from 'signed int' to 'float'.
  4169. 'vect_uintfloat_cvt'
  4170. Target supports conversion from 'unsigned int' to 'float'.
  4171. 'vect_floatint_cvt'
  4172. Target supports conversion from 'float' to 'signed int'.
  4173. 'vect_floatuint_cvt'
  4174. Target supports conversion from 'float' to 'unsigned int'.
  4175. 'vect_max_reduc'
  4176. Target supports max reduction for vectors.
  4177. 7.2.3.5 Thread Local Storage attributes
  4178. .......................................
  4179. 'tls'
  4180. Target supports thread-local storage.
  4181. 'tls_native'
  4182. Target supports native (rather than emulated) thread-local storage.
  4183. 'tls_runtime'
  4184. Test system supports executing TLS executables.
  4185. 7.2.3.6 Decimal floating point attributes
  4186. .........................................
  4187. 'dfp'
  4188. Targets supports compiling decimal floating point extension to C.
  4189. 'dfp_nocache'
  4190. Including the options used to compile this particular test, the
  4191. target supports compiling decimal floating point extension to C.
  4192. 'dfprt'
  4193. Test system can execute decimal floating point tests.
  4194. 'dfprt_nocache'
  4195. Including the options used to compile this particular test, the
  4196. test system can execute decimal floating point tests.
  4197. 'hard_dfp'
  4198. Target generates decimal floating point instructions with current
  4199. options.
  4200. 7.2.3.7 ARM-specific attributes
  4201. ...............................
  4202. 'arm32'
  4203. ARM target generates 32-bit code.
  4204. 'arm_eabi'
  4205. ARM target adheres to the ABI for the ARM Architecture.
  4206. 'arm_fp_ok'
  4207. ARM target defines '__ARM_FP' using '-mfloat-abi=softfp' or
  4208. equivalent options. Some multilibs may be incompatible with these
  4209. options.
  4210. 'arm_hf_eabi'
  4211. ARM target adheres to the VFP and Advanced SIMD Register Arguments
  4212. variant of the ABI for the ARM Architecture (as selected with
  4213. '-mfloat-abi=hard').
  4214. 'arm_hard_vfp_ok'
  4215. ARM target supports '-mfpu=vfp -mfloat-abi=hard'. Some multilibs
  4216. may be incompatible with these options.
  4217. 'arm_iwmmxt_ok'
  4218. ARM target supports '-mcpu=iwmmxt'. Some multilibs may be
  4219. incompatible with this option.
  4220. 'arm_neon'
  4221. ARM target supports generating NEON instructions.
  4222. 'arm_tune_string_ops_prefer_neon'
  4223. Test CPU tune supports inlining string operations with NEON
  4224. instructions.
  4225. 'arm_neon_hw'
  4226. Test system supports executing NEON instructions.
  4227. 'arm_neonv2_hw'
  4228. Test system supports executing NEON v2 instructions.
  4229. 'arm_neon_ok'
  4230. ARM Target supports '-mfpu=neon -mfloat-abi=softfp' or compatible
  4231. options. Some multilibs may be incompatible with these options.
  4232. 'arm_neon_ok_no_float_abi'
  4233. ARM Target supports NEON with '-mfpu=neon', but without any
  4234. -mfloat-abi= option. Some multilibs may be incompatible with this
  4235. option.
  4236. 'arm_neonv2_ok'
  4237. ARM Target supports '-mfpu=neon-vfpv4 -mfloat-abi=softfp' or
  4238. compatible options. Some multilibs may be incompatible with these
  4239. options.
  4240. 'arm_fp16_ok'
  4241. Target supports options to generate VFP half-precision
  4242. floating-point instructions. Some multilibs may be incompatible
  4243. with these options. This test is valid for ARM only.
  4244. 'arm_fp16_hw'
  4245. Target supports executing VFP half-precision floating-point
  4246. instructions. This test is valid for ARM only.
  4247. 'arm_neon_fp16_ok'
  4248. ARM Target supports '-mfpu=neon-fp16 -mfloat-abi=softfp' or
  4249. compatible options, including '-mfp16-format=ieee' if necessary to
  4250. obtain the '__fp16' type. Some multilibs may be incompatible with
  4251. these options.
  4252. 'arm_neon_fp16_hw'
  4253. Test system supports executing Neon half-precision float
  4254. instructions. (Implies previous.)
  4255. 'arm_fp16_alternative_ok'
  4256. ARM target supports the ARM FP16 alternative format. Some
  4257. multilibs may be incompatible with the options needed.
  4258. 'arm_fp16_none_ok'
  4259. ARM target supports specifying none as the ARM FP16 format.
  4260. 'arm_thumb1_ok'
  4261. ARM target generates Thumb-1 code for '-mthumb'.
  4262. 'arm_thumb2_ok'
  4263. ARM target generates Thumb-2 code for '-mthumb'.
  4264. 'arm_vfp_ok'
  4265. ARM target supports '-mfpu=vfp -mfloat-abi=softfp'. Some multilibs
  4266. may be incompatible with these options.
  4267. 'arm_vfp3_ok'
  4268. ARM target supports '-mfpu=vfp3 -mfloat-abi=softfp'. Some
  4269. multilibs may be incompatible with these options.
  4270. 'arm_v8_vfp_ok'
  4271. ARM target supports '-mfpu=fp-armv8 -mfloat-abi=softfp'. Some
  4272. multilibs may be incompatible with these options.
  4273. 'arm_v8_neon_ok'
  4274. ARM target supports '-mfpu=neon-fp-armv8 -mfloat-abi=softfp'. Some
  4275. multilibs may be incompatible with these options.
  4276. 'arm_v8_1a_neon_ok'
  4277. ARM target supports options to generate ARMv8.1 Adv.SIMD
  4278. instructions. Some multilibs may be incompatible with these
  4279. options.
  4280. 'arm_v8_1a_neon_hw'
  4281. ARM target supports executing ARMv8.1 Adv.SIMD instructions. Some
  4282. multilibs may be incompatible with the options needed. Implies
  4283. arm_v8_1a_neon_ok.
  4284. 'arm_acq_rel'
  4285. ARM target supports acquire-release instructions.
  4286. 'arm_v8_2a_fp16_scalar_ok'
  4287. ARM target supports options to generate instructions for ARMv8.2
  4288. and scalar instructions from the FP16 extension. Some multilibs
  4289. may be incompatible with these options.
  4290. 'arm_v8_2a_fp16_scalar_hw'
  4291. ARM target supports executing instructions for ARMv8.2 and scalar
  4292. instructions from the FP16 extension. Some multilibs may be
  4293. incompatible with these options. Implies arm_v8_2a_fp16_neon_ok.
  4294. 'arm_v8_2a_fp16_neon_ok'
  4295. ARM target supports options to generate instructions from ARMv8.2
  4296. with the FP16 extension. Some multilibs may be incompatible with
  4297. these options. Implies arm_v8_2a_fp16_scalar_ok.
  4298. 'arm_v8_2a_fp16_neon_hw'
  4299. ARM target supports executing instructions from ARMv8.2 with the
  4300. FP16 extension. Some multilibs may be incompatible with these
  4301. options. Implies arm_v8_2a_fp16_neon_ok and
  4302. arm_v8_2a_fp16_scalar_hw.
  4303. 'arm_v8_2a_dotprod_neon_ok'
  4304. ARM target supports options to generate instructions from ARMv8.2
  4305. with the Dot Product extension. Some multilibs may be incompatible
  4306. with these options.
  4307. 'arm_v8_2a_dotprod_neon_hw'
  4308. ARM target supports executing instructions from ARMv8.2 with the
  4309. Dot Product extension. Some multilibs may be incompatible with
  4310. these options. Implies arm_v8_2a_dotprod_neon_ok.
  4311. 'arm_prefer_ldrd_strd'
  4312. ARM target prefers 'LDRD' and 'STRD' instructions over 'LDM' and
  4313. 'STM' instructions.
  4314. 'arm_thumb1_movt_ok'
  4315. ARM target generates Thumb-1 code for '-mthumb' with 'MOVW' and
  4316. 'MOVT' instructions available.
  4317. 'arm_thumb1_cbz_ok'
  4318. ARM target generates Thumb-1 code for '-mthumb' with 'CBZ' and
  4319. 'CBNZ' instructions available.
  4320. 'arm_divmod_simode'
  4321. ARM target for which divmod transform is disabled, if it supports
  4322. hardware div instruction.
  4323. 'arm_cmse_ok'
  4324. ARM target supports ARMv8-M Security Extensions, enabled by the
  4325. '-mcmse' option.
  4326. 'arm_coproc1_ok'
  4327. ARM target supports the following coprocessor instructions: 'CDP',
  4328. 'LDC', 'STC', 'MCR' and 'MRC'.
  4329. 'arm_coproc2_ok'
  4330. ARM target supports all the coprocessor instructions also listed as
  4331. supported in *note arm_coproc1_ok:: in addition to the following:
  4332. 'CDP2', 'LDC2', 'LDC2l', 'STC2', 'STC2l', 'MCR2' and 'MRC2'.
  4333. 'arm_coproc3_ok'
  4334. ARM target supports all the coprocessor instructions also listed as
  4335. supported in *note arm_coproc2_ok:: in addition the following:
  4336. 'MCRR' and 'MRRC'.
  4337. 'arm_coproc4_ok'
  4338. ARM target supports all the coprocessor instructions also listed as
  4339. supported in *note arm_coproc3_ok:: in addition the following:
  4340. 'MCRR2' and 'MRRC2'.
  4341. 7.2.3.8 AArch64-specific attributes
  4342. ...................................
  4343. 'aarch64_asm_<ext>_ok'
  4344. AArch64 assembler supports the architecture extension 'ext' via the
  4345. '.arch_extension' pseudo-op.
  4346. 'aarch64_tiny'
  4347. AArch64 target which generates instruction sequences for tiny
  4348. memory model.
  4349. 'aarch64_small'
  4350. AArch64 target which generates instruction sequences for small
  4351. memory model.
  4352. 'aarch64_large'
  4353. AArch64 target which generates instruction sequences for large
  4354. memory model.
  4355. 'aarch64_little_endian'
  4356. AArch64 target which generates instruction sequences for little
  4357. endian.
  4358. 'aarch64_big_endian'
  4359. AArch64 target which generates instruction sequences for big
  4360. endian.
  4361. 'aarch64_small_fpic'
  4362. Binutils installed on test system supports relocation types
  4363. required by -fpic for AArch64 small memory model.
  4364. 7.2.3.9 MIPS-specific attributes
  4365. ................................
  4366. 'mips64'
  4367. MIPS target supports 64-bit instructions.
  4368. 'nomips16'
  4369. MIPS target does not produce MIPS16 code.
  4370. 'mips16_attribute'
  4371. MIPS target can generate MIPS16 code.
  4372. 'mips_loongson'
  4373. MIPS target is a Loongson-2E or -2F target using an ABI that
  4374. supports the Loongson vector modes.
  4375. 'mips_msa'
  4376. MIPS target supports '-mmsa', MIPS SIMD Architecture (MSA).
  4377. 'mips_newabi_large_long_double'
  4378. MIPS target supports 'long double' larger than 'double' when using
  4379. the new ABI.
  4380. 'mpaired_single'
  4381. MIPS target supports '-mpaired-single'.
  4382. 7.2.3.10 PowerPC-specific attributes
  4383. ....................................
  4384. 'dfp_hw'
  4385. PowerPC target supports executing hardware DFP instructions.
  4386. 'p8vector_hw'
  4387. PowerPC target supports executing VSX instructions (ISA 2.07).
  4388. 'powerpc64'
  4389. Test system supports executing 64-bit instructions.
  4390. 'powerpc_altivec'
  4391. PowerPC target supports AltiVec.
  4392. 'powerpc_altivec_ok'
  4393. PowerPC target supports '-maltivec'.
  4394. 'powerpc_eabi_ok'
  4395. PowerPC target supports '-meabi'.
  4396. 'powerpc_elfv2'
  4397. PowerPC target supports '-mabi=elfv2'.
  4398. 'powerpc_fprs'
  4399. PowerPC target supports floating-point registers.
  4400. 'powerpc_hard_double'
  4401. PowerPC target supports hardware double-precision floating-point.
  4402. 'powerpc_htm_ok'
  4403. PowerPC target supports '-mhtm'
  4404. 'powerpc_p8vector_ok'
  4405. PowerPC target supports '-mpower8-vector'
  4406. 'powerpc_popcntb_ok'
  4407. PowerPC target supports the 'popcntb' instruction, indicating that
  4408. this target supports '-mcpu=power5'.
  4409. 'powerpc_ppu_ok'
  4410. PowerPC target supports '-mcpu=cell'.
  4411. 'powerpc_spe'
  4412. PowerPC target supports PowerPC SPE.
  4413. 'powerpc_spe_nocache'
  4414. Including the options used to compile this particular test, the
  4415. PowerPC target supports PowerPC SPE.
  4416. 'powerpc_spu'
  4417. PowerPC target supports PowerPC SPU.
  4418. 'powerpc_vsx_ok'
  4419. PowerPC target supports '-mvsx'.
  4420. 'powerpc_405_nocache'
  4421. Including the options used to compile this particular test, the
  4422. PowerPC target supports PowerPC 405.
  4423. 'ppc_recip_hw'
  4424. PowerPC target supports executing reciprocal estimate instructions.
  4425. 'spu_auto_overlay'
  4426. SPU target has toolchain that supports automatic overlay
  4427. generation.
  4428. 'vmx_hw'
  4429. PowerPC target supports executing AltiVec instructions.
  4430. 'vsx_hw'
  4431. PowerPC target supports executing VSX instructions (ISA 2.06).
  4432. 7.2.3.11 Other hardware attributes
  4433. ..................................
  4434. 'avx'
  4435. Target supports compiling 'avx' instructions.
  4436. 'avx_runtime'
  4437. Target supports the execution of 'avx' instructions.
  4438. 'cell_hw'
  4439. Test system can execute AltiVec and Cell PPU instructions.
  4440. 'coldfire_fpu'
  4441. Target uses a ColdFire FPU.
  4442. 'hard_float'
  4443. Target supports FPU instructions.
  4444. 'non_strict_align'
  4445. Target does not require strict alignment.
  4446. 'sqrt_insn'
  4447. Target has a square root instruction that the compiler can
  4448. generate.
  4449. 'sse'
  4450. Target supports compiling 'sse' instructions.
  4451. 'sse_runtime'
  4452. Target supports the execution of 'sse' instructions.
  4453. 'sse2'
  4454. Target supports compiling 'sse2' instructions.
  4455. 'sse2_runtime'
  4456. Target supports the execution of 'sse2' instructions.
  4457. 'sync_char_short'
  4458. Target supports atomic operations on 'char' and 'short'.
  4459. 'sync_int_long'
  4460. Target supports atomic operations on 'int' and 'long'.
  4461. 'ultrasparc_hw'
  4462. Test environment appears to run executables on a simulator that
  4463. accepts only 'EM_SPARC' executables and chokes on 'EM_SPARC32PLUS'
  4464. or 'EM_SPARCV9' executables.
  4465. 'vect_cmdline_needed'
  4466. Target requires a command line argument to enable a SIMD
  4467. instruction set.
  4468. 'pie_copyreloc'
  4469. The x86-64 target linker supports PIE with copy reloc.
  4470. 'divmod'
  4471. Target supporting hardware divmod insn or divmod libcall.
  4472. 'divmod_simode'
  4473. Target supporting hardware divmod insn or divmod libcall for
  4474. SImode.
  4475. 7.2.3.12 Environment attributes
  4476. ...............................
  4477. 'c'
  4478. The language for the compiler under test is C.
  4479. 'c++'
  4480. The language for the compiler under test is C++.
  4481. 'c99_runtime'
  4482. Target provides a full C99 runtime.
  4483. 'correct_iso_cpp_string_wchar_protos'
  4484. Target 'string.h' and 'wchar.h' headers provide C++ required
  4485. overloads for 'strchr' etc. functions.
  4486. 'dummy_wcsftime'
  4487. Target uses a dummy 'wcsftime' function that always returns zero.
  4488. 'fd_truncate'
  4489. Target can truncate a file from a file descriptor, as used by
  4490. 'libgfortran/io/unix.c:fd_truncate'; i.e. 'ftruncate' or 'chsize'.
  4491. 'freestanding'
  4492. Target is 'freestanding' as defined in section 4 of the C99
  4493. standard. Effectively, it is a target which supports no extra
  4494. headers or libraries other than what is considered essential.
  4495. 'gettimeofday'
  4496. Target supports 'gettimeofday'.
  4497. 'init_priority'
  4498. Target supports constructors with initialization priority
  4499. arguments.
  4500. 'inttypes_types'
  4501. Target has the basic signed and unsigned types in 'inttypes.h'.
  4502. This is for tests that GCC's notions of these types agree with
  4503. those in the header, as some systems have only 'inttypes.h'.
  4504. 'lax_strtofp'
  4505. Target might have errors of a few ULP in string to floating-point
  4506. conversion functions and overflow is not always detected correctly
  4507. by those functions.
  4508. 'mempcpy'
  4509. Target provides 'mempcpy' function.
  4510. 'mmap'
  4511. Target supports 'mmap'.
  4512. 'newlib'
  4513. Target supports Newlib.
  4514. 'pow10'
  4515. Target provides 'pow10' function.
  4516. 'pthread'
  4517. Target can compile using 'pthread.h' with no errors or warnings.
  4518. 'pthread_h'
  4519. Target has 'pthread.h'.
  4520. 'run_expensive_tests'
  4521. Expensive testcases (usually those that consume excessive amounts
  4522. of CPU time) should be run on this target. This can be enabled by
  4523. setting the 'GCC_TEST_RUN_EXPENSIVE' environment variable to a
  4524. non-empty string.
  4525. 'simulator'
  4526. Test system runs executables on a simulator (i.e. slowly) rather
  4527. than hardware (i.e. fast).
  4528. 'stabs'
  4529. Target supports the stabs debugging format.
  4530. 'stdint_types'
  4531. Target has the basic signed and unsigned C types in 'stdint.h'.
  4532. This will be obsolete when GCC ensures a working 'stdint.h' for all
  4533. targets.
  4534. 'stpcpy'
  4535. Target provides 'stpcpy' function.
  4536. 'trampolines'
  4537. Target supports trampolines.
  4538. 'uclibc'
  4539. Target supports uClibc.
  4540. 'unwrapped'
  4541. Target does not use a status wrapper.
  4542. 'vxworks_kernel'
  4543. Target is a VxWorks kernel.
  4544. 'vxworks_rtp'
  4545. Target is a VxWorks RTP.
  4546. 'wchar'
  4547. Target supports wide characters.
  4548. 7.2.3.13 Other attributes
  4549. .........................
  4550. 'automatic_stack_alignment'
  4551. Target supports automatic stack alignment.
  4552. 'cilkplus_runtime'
  4553. Target supports the Cilk Plus runtime library.
  4554. 'cxa_atexit'
  4555. Target uses '__cxa_atexit'.
  4556. 'default_packed'
  4557. Target has packed layout of structure members by default.
  4558. 'fgraphite'
  4559. Target supports Graphite optimizations.
  4560. 'fixed_point'
  4561. Target supports fixed-point extension to C.
  4562. 'fopenacc'
  4563. Target supports OpenACC via '-fopenacc'.
  4564. 'fopenmp'
  4565. Target supports OpenMP via '-fopenmp'.
  4566. 'fpic'
  4567. Target supports '-fpic' and '-fPIC'.
  4568. 'freorder'
  4569. Target supports '-freorder-blocks-and-partition'.
  4570. 'fstack_protector'
  4571. Target supports '-fstack-protector'.
  4572. 'gas'
  4573. Target uses GNU 'as'.
  4574. 'gc_sections'
  4575. Target supports '--gc-sections'.
  4576. 'gld'
  4577. Target uses GNU 'ld'.
  4578. 'keeps_null_pointer_checks'
  4579. Target keeps null pointer checks, either due to the use of
  4580. '-fno-delete-null-pointer-checks' or hardwired into the target.
  4581. 'lto'
  4582. Compiler has been configured to support link-time optimization
  4583. (LTO).
  4584. 'naked_functions'
  4585. Target supports the 'naked' function attribute.
  4586. 'named_sections'
  4587. Target supports named sections.
  4588. 'natural_alignment_32'
  4589. Target uses natural alignment (aligned to type size) for types of
  4590. 32 bits or less.
  4591. 'target_natural_alignment_64'
  4592. Target uses natural alignment (aligned to type size) for types of
  4593. 64 bits or less.
  4594. 'nonpic'
  4595. Target does not generate PIC by default.
  4596. 'pie_enabled'
  4597. Target generates PIE by default.
  4598. 'pcc_bitfield_type_matters'
  4599. Target defines 'PCC_BITFIELD_TYPE_MATTERS'.
  4600. 'pe_aligned_commons'
  4601. Target supports '-mpe-aligned-commons'.
  4602. 'pie'
  4603. Target supports '-pie', '-fpie' and '-fPIE'.
  4604. 'rdynamic'
  4605. Target supports '-rdynamic'.
  4606. 'section_anchors'
  4607. Target supports section anchors.
  4608. 'short_enums'
  4609. Target defaults to short enums.
  4610. 'static'
  4611. Target supports '-static'.
  4612. 'static_libgfortran'
  4613. Target supports statically linking 'libgfortran'.
  4614. 'string_merging'
  4615. Target supports merging string constants at link time.
  4616. 'ucn'
  4617. Target supports compiling and assembling UCN.
  4618. 'ucn_nocache'
  4619. Including the options used to compile this particular test, the
  4620. target supports compiling and assembling UCN.
  4621. 'unaligned_stack'
  4622. Target does not guarantee that its 'STACK_BOUNDARY' is greater than
  4623. or equal to the required vector alignment.
  4624. 'vector_alignment_reachable'
  4625. Vector alignment is reachable for types of 32 bits or less.
  4626. 'vector_alignment_reachable_for_64bit'
  4627. Vector alignment is reachable for types of 64 bits or less.
  4628. 'wchar_t_char16_t_compatible'
  4629. Target supports 'wchar_t' that is compatible with 'char16_t'.
  4630. 'wchar_t_char32_t_compatible'
  4631. Target supports 'wchar_t' that is compatible with 'char32_t'.
  4632. 'comdat_group'
  4633. Target uses comdat groups.
  4634. 7.2.3.14 Local to tests in 'gcc.target/i386'
  4635. ............................................
  4636. '3dnow'
  4637. Target supports compiling '3dnow' instructions.
  4638. 'aes'
  4639. Target supports compiling 'aes' instructions.
  4640. 'fma4'
  4641. Target supports compiling 'fma4' instructions.
  4642. 'ms_hook_prologue'
  4643. Target supports attribute 'ms_hook_prologue'.
  4644. 'pclmul'
  4645. Target supports compiling 'pclmul' instructions.
  4646. 'sse3'
  4647. Target supports compiling 'sse3' instructions.
  4648. 'sse4'
  4649. Target supports compiling 'sse4' instructions.
  4650. 'sse4a'
  4651. Target supports compiling 'sse4a' instructions.
  4652. 'ssse3'
  4653. Target supports compiling 'ssse3' instructions.
  4654. 'vaes'
  4655. Target supports compiling 'vaes' instructions.
  4656. 'vpclmul'
  4657. Target supports compiling 'vpclmul' instructions.
  4658. 'xop'
  4659. Target supports compiling 'xop' instructions.
  4660. 7.2.3.15 Local to tests in 'gcc.target/spu/ea'
  4661. ..............................................
  4662. 'ealib'
  4663. Target '__ea' library functions are available.
  4664. 7.2.3.16 Local to tests in 'gcc.test-framework'
  4665. ...............................................
  4666. 'no'
  4667. Always returns 0.
  4668. 'yes'
  4669. Always returns 1.
  4670. 
  4671. File: gccint.info, Node: Add Options, Next: Require Support, Prev: Effective-Target Keywords, Up: Test Directives
  4672. 7.2.4 Features for 'dg-add-options'
  4673. -----------------------------------
  4674. The supported values of FEATURE for directive 'dg-add-options' are:
  4675. 'arm_fp'
  4676. '__ARM_FP' definition. Only ARM targets support this feature, and
  4677. only then in certain modes; see the *note arm_fp_ok effective
  4678. target keyword: arm_fp_ok.
  4679. 'arm_neon'
  4680. NEON support. Only ARM targets support this feature, and only then
  4681. in certain modes; see the *note arm_neon_ok effective target
  4682. keyword: arm_neon_ok.
  4683. 'arm_fp16'
  4684. VFP half-precision floating point support. This does not select
  4685. the FP16 format; for that, use *note arm_fp16_ieee: arm_fp16_ieee.
  4686. or *note arm_fp16_alternative: arm_fp16_alternative. instead. This
  4687. feature is only supported by ARM targets and then only in certain
  4688. modes; see the *note arm_fp16_ok effective target keyword:
  4689. arm_fp16_ok.
  4690. 'arm_fp16_ieee'
  4691. ARM IEEE 754-2008 format VFP half-precision floating point support.
  4692. This feature is only supported by ARM targets and then only in
  4693. certain modes; see the *note arm_fp16_ok effective target keyword:
  4694. arm_fp16_ok.
  4695. 'arm_fp16_alternative'
  4696. ARM Alternative format VFP half-precision floating point support.
  4697. This feature is only supported by ARM targets and then only in
  4698. certain modes; see the *note arm_fp16_ok effective target keyword:
  4699. arm_fp16_ok.
  4700. 'arm_neon_fp16'
  4701. NEON and half-precision floating point support. Only ARM targets
  4702. support this feature, and only then in certain modes; see the *note
  4703. arm_neon_fp16_ok effective target keyword: arm_neon_fp16_ok.
  4704. 'arm_vfp3'
  4705. arm vfp3 floating point support; see the *note arm_vfp3_ok
  4706. effective target keyword: arm_vfp3_ok.
  4707. 'arm_v8_1a_neon'
  4708. Add options for ARMv8.1 with Adv.SIMD support, if this is supported
  4709. by the target; see the *note arm_v8_1a_neon_ok: arm_v8_1a_neon_ok.
  4710. effective target keyword.
  4711. 'arm_v8_2a_fp16_scalar'
  4712. Add options for ARMv8.2 with scalar FP16 support, if this is
  4713. supported by the target; see the *note arm_v8_2a_fp16_scalar_ok:
  4714. arm_v8_2a_fp16_scalar_ok. effective target keyword.
  4715. 'arm_v8_2a_fp16_neon'
  4716. Add options for ARMv8.2 with Adv.SIMD FP16 support, if this is
  4717. supported by the target; see the *note arm_v8_2a_fp16_neon_ok:
  4718. arm_v8_2a_fp16_neon_ok. effective target keyword.
  4719. 'arm_v8_2a_dotprod_neon'
  4720. Add options for ARMv8.2 with Adv.SIMD Dot Product support, if this
  4721. is supported by the target; see the *note
  4722. arm_v8_2a_dotprod_neon_ok:: effective target keyword.
  4723. 'bind_pic_locally'
  4724. Add the target-specific flags needed to enable functions to bind
  4725. locally when using pic/PIC passes in the testsuite.
  4726. 'c99_runtime'
  4727. Add the target-specific flags needed to access the C99 runtime.
  4728. 'floatN'
  4729. Add the target-specific flags needed to use the '_FloatN' type.
  4730. 'floatNx'
  4731. Add the target-specific flags needed to use the '_FloatNx' type.
  4732. 'ieee'
  4733. Add the target-specific flags needed to enable full IEEE compliance
  4734. mode.
  4735. 'mips16_attribute'
  4736. 'mips16' function attributes. Only MIPS targets support this
  4737. feature, and only then in certain modes.
  4738. 'tls'
  4739. Add the target-specific flags needed to use thread-local storage.
  4740. 
  4741. File: gccint.info, Node: Require Support, Next: Final Actions, Prev: Add Options, Up: Test Directives
  4742. 7.2.5 Variants of 'dg-require-SUPPORT'
  4743. --------------------------------------
  4744. A few of the 'dg-require' directives take arguments.
  4745. 'dg-require-iconv CODESET'
  4746. Skip the test if the target does not support iconv. CODESET is the
  4747. codeset to convert to.
  4748. 'dg-require-profiling PROFOPT'
  4749. Skip the test if the target does not support profiling with option
  4750. PROFOPT.
  4751. 'dg-require-stack-check CHECK'
  4752. Skip the test if the target does not support the '-fstack-check'
  4753. option. If CHECK is '""', support for '-fstack-check' is checked,
  4754. for '-fstack-check=("CHECK")' otherwise.
  4755. 'dg-require-visibility VIS'
  4756. Skip the test if the target does not support the 'visibility'
  4757. attribute. If VIS is '""', support for 'visibility("hidden")' is
  4758. checked, for 'visibility("VIS")' otherwise.
  4759. The original 'dg-require' directives were defined before there was
  4760. support for effective-target keywords. The directives that do not take
  4761. arguments could be replaced with effective-target keywords.
  4762. 'dg-require-alias ""'
  4763. Skip the test if the target does not support the 'alias' attribute.
  4764. 'dg-require-ascii-locale ""'
  4765. Skip the test if the host does not support an ASCII locale.
  4766. 'dg-require-compat-dfp ""'
  4767. Skip this test unless both compilers in a 'compat' testsuite
  4768. support decimal floating point.
  4769. 'dg-require-cxa-atexit ""'
  4770. Skip the test if the target does not support '__cxa_atexit'. This
  4771. is equivalent to 'dg-require-effective-target cxa_atexit'.
  4772. 'dg-require-dll ""'
  4773. Skip the test if the target does not support DLL attributes.
  4774. 'dg-require-fork ""'
  4775. Skip the test if the target does not support 'fork'.
  4776. 'dg-require-gc-sections ""'
  4777. Skip the test if the target's linker does not support the
  4778. '--gc-sections' flags. This is equivalent to
  4779. 'dg-require-effective-target gc-sections'.
  4780. 'dg-require-host-local ""'
  4781. Skip the test if the host is remote, rather than the same as the
  4782. build system. Some tests are incompatible with DejaGnu's handling
  4783. of remote hosts, which involves copying the source file to the host
  4784. and compiling it with a relative path and "'-o a.out'".
  4785. 'dg-require-mkfifo ""'
  4786. Skip the test if the target does not support 'mkfifo'.
  4787. 'dg-require-named-sections ""'
  4788. Skip the test is the target does not support named sections. This
  4789. is equivalent to 'dg-require-effective-target named_sections'.
  4790. 'dg-require-weak ""'
  4791. Skip the test if the target does not support weak symbols.
  4792. 'dg-require-weak-override ""'
  4793. Skip the test if the target does not support overriding weak
  4794. symbols.
  4795. 
  4796. File: gccint.info, Node: Final Actions, Prev: Require Support, Up: Test Directives
  4797. 7.2.6 Commands for use in 'dg-final'
  4798. ------------------------------------
  4799. The GCC testsuite defines the following directives to be used within
  4800. 'dg-final'.
  4801. 7.2.6.1 Scan a particular file
  4802. ..............................
  4803. 'scan-file FILENAME REGEXP [{ target/xfail SELECTOR }]'
  4804. Passes if REGEXP matches text in FILENAME.
  4805. 'scan-file-not FILENAME REGEXP [{ target/xfail SELECTOR }]'
  4806. Passes if REGEXP does not match text in FILENAME.
  4807. 'scan-module MODULE REGEXP [{ target/xfail SELECTOR }]'
  4808. Passes if REGEXP matches in Fortran module MODULE.
  4809. 7.2.6.2 Scan the assembly output
  4810. ................................
  4811. 'scan-assembler REGEX [{ target/xfail SELECTOR }]'
  4812. Passes if REGEX matches text in the test's assembler output.
  4813. 'scan-assembler-not REGEX [{ target/xfail SELECTOR }]'
  4814. Passes if REGEX does not match text in the test's assembler output.
  4815. 'scan-assembler-times REGEX NUM [{ target/xfail SELECTOR }]'
  4816. Passes if REGEX is matched exactly NUM times in the test's
  4817. assembler output.
  4818. 'scan-assembler-dem REGEX [{ target/xfail SELECTOR }]'
  4819. Passes if REGEX matches text in the test's demangled assembler
  4820. output.
  4821. 'scan-assembler-dem-not REGEX [{ target/xfail SELECTOR }]'
  4822. Passes if REGEX does not match text in the test's demangled
  4823. assembler output.
  4824. 'scan-hidden SYMBOL [{ target/xfail SELECTOR }]'
  4825. Passes if SYMBOL is defined as a hidden symbol in the test's
  4826. assembly output.
  4827. 'scan-not-hidden SYMBOL [{ target/xfail SELECTOR }]'
  4828. Passes if SYMBOL is not defined as a hidden symbol in the test's
  4829. assembly output.
  4830. 7.2.6.3 Scan optimization dump files
  4831. ....................................
  4832. These commands are available for KIND of 'tree', 'rtl', and 'ipa'.
  4833. 'scan-KIND-dump REGEX SUFFIX [{ target/xfail SELECTOR }]'
  4834. Passes if REGEX matches text in the dump file with suffix SUFFIX.
  4835. 'scan-KIND-dump-not REGEX SUFFIX [{ target/xfail SELECTOR }]'
  4836. Passes if REGEX does not match text in the dump file with suffix
  4837. SUFFIX.
  4838. 'scan-KIND-dump-times REGEX NUM SUFFIX [{ target/xfail SELECTOR }]'
  4839. Passes if REGEX is found exactly NUM times in the dump file with
  4840. suffix SUFFIX.
  4841. 'scan-KIND-dump-dem REGEX SUFFIX [{ target/xfail SELECTOR }]'
  4842. Passes if REGEX matches demangled text in the dump file with suffix
  4843. SUFFIX.
  4844. 'scan-KIND-dump-dem-not REGEX SUFFIX [{ target/xfail SELECTOR }]'
  4845. Passes if REGEX does not match demangled text in the dump file with
  4846. suffix SUFFIX.
  4847. 7.2.6.4 Verify that an output files exists or not
  4848. .................................................
  4849. 'output-exists [{ target/xfail SELECTOR }]'
  4850. Passes if compiler output file exists.
  4851. 'output-exists-not [{ target/xfail SELECTOR }]'
  4852. Passes if compiler output file does not exist.
  4853. 7.2.6.5 Check for LTO tests
  4854. ...........................
  4855. 'scan-symbol REGEXP [{ target/xfail SELECTOR }]'
  4856. Passes if the pattern is present in the final executable.
  4857. 7.2.6.6 Checks for 'gcov' tests
  4858. ...............................
  4859. 'run-gcov SOURCEFILE'
  4860. Check line counts in 'gcov' tests.
  4861. 'run-gcov [branches] [calls] { OPTS SOURCEFILE }'
  4862. Check branch and/or call counts, in addition to line counts, in
  4863. 'gcov' tests.
  4864. 7.2.6.7 Clean up generated test files
  4865. .....................................
  4866. Usually the test-framework removes files that were generated during
  4867. testing. If a testcase, for example, uses any dumping mechanism to
  4868. inspect a passes dump file, the testsuite recognized the dump option
  4869. passed to the tool and schedules a final cleanup to remove these files.
  4870. There are, however, following additional cleanup directives that can be
  4871. used to annotate a testcase "manually".
  4872. 'cleanup-coverage-files'
  4873. Removes coverage data files generated for this test.
  4874. 'cleanup-modules "LIST-OF-EXTRA-MODULES"'
  4875. Removes Fortran module files generated for this test, excluding the
  4876. module names listed in keep-modules. Cleaning up module files is
  4877. usually done automatically by the testsuite by looking at the
  4878. source files and removing the modules after the test has been
  4879. executed.
  4880. module MoD1
  4881. end module MoD1
  4882. module Mod2
  4883. end module Mod2
  4884. module moD3
  4885. end module moD3
  4886. module mod4
  4887. end module mod4
  4888. ! { dg-final { cleanup-modules "mod1 mod2" } } ! redundant
  4889. ! { dg-final { keep-modules "mod3 mod4" } }
  4890. 'keep-modules "LIST-OF-MODULES-NOT-TO-DELETE"'
  4891. Whitespace separated list of module names that should not be
  4892. deleted by cleanup-modules. If the list of modules is empty, all
  4893. modules defined in this file are kept.
  4894. module maybe_unneeded
  4895. end module maybe_unneeded
  4896. module keep1
  4897. end module keep1
  4898. module keep2
  4899. end module keep2
  4900. ! { dg-final { keep-modules "keep1 keep2" } } ! just keep these two
  4901. ! { dg-final { keep-modules "" } } ! keep all
  4902. 'dg-keep-saved-temps "LIST-OF-SUFFIXES-NOT-TO-DELETE"'
  4903. Whitespace separated list of suffixes that should not be deleted
  4904. automatically in a testcase that uses '-save-temps'.
  4905. // { dg-options "-save-temps -fpch-preprocess -I." }
  4906. int main() { return 0; }
  4907. // { dg-keep-saved-temps ".s" } ! just keep assembler file
  4908. // { dg-keep-saved-temps ".s" ".i" } ! ... and .i
  4909. // { dg-keep-saved-temps ".ii" ".o" } ! or just .ii and .o
  4910. 'cleanup-profile-file'
  4911. Removes profiling files generated for this test.
  4912. 'cleanup-repo-files'
  4913. Removes files generated for this test for '-frepo'.
  4914. 
  4915. File: gccint.info, Node: Ada Tests, Next: C Tests, Prev: Test Directives, Up: Testsuites
  4916. 7.3 Ada Language Testsuites
  4917. ===========================
  4918. The Ada testsuite includes executable tests from the ACATS testsuite,
  4919. publicly available at <http://www.ada-auth.org/acats.html>.
  4920. These tests are integrated in the GCC testsuite in the 'ada/acats'
  4921. directory, and enabled automatically when running 'make check', assuming
  4922. the Ada language has been enabled when configuring GCC.
  4923. You can also run the Ada testsuite independently, using 'make
  4924. check-ada', or run a subset of the tests by specifying which chapter to
  4925. run, e.g.:
  4926. $ make check-ada CHAPTERS="c3 c9"
  4927. The tests are organized by directory, each directory corresponding to a
  4928. chapter of the Ada Reference Manual. So for example, 'c9' corresponds
  4929. to chapter 9, which deals with tasking features of the language.
  4930. The tests are run using two 'sh' scripts: 'run_acats' and 'run_all.sh'.
  4931. To run the tests using a simulator or a cross target, see the small
  4932. customization section at the top of 'run_all.sh'.
  4933. These tests are run using the build tree: they can be run without doing
  4934. a 'make install'.
  4935. 
  4936. File: gccint.info, Node: C Tests, Next: LTO Testing, Prev: Ada Tests, Up: Testsuites
  4937. 7.4 C Language Testsuites
  4938. =========================
  4939. GCC contains the following C language testsuites, in the 'gcc/testsuite'
  4940. directory:
  4941. 'gcc.dg'
  4942. This contains tests of particular features of the C compiler, using
  4943. the more modern 'dg' harness. Correctness tests for various
  4944. compiler features should go here if possible.
  4945. Magic comments determine whether the file is preprocessed,
  4946. compiled, linked or run. In these tests, error and warning message
  4947. texts are compared against expected texts or regular expressions
  4948. given in comments. These tests are run with the options '-ansi
  4949. -pedantic' unless other options are given in the test. Except as
  4950. noted below they are not run with multiple optimization options.
  4951. 'gcc.dg/compat'
  4952. This subdirectory contains tests for binary compatibility using
  4953. 'lib/compat.exp', which in turn uses the language-independent
  4954. support (*note Support for testing binary compatibility: compat
  4955. Testing.).
  4956. 'gcc.dg/cpp'
  4957. This subdirectory contains tests of the preprocessor.
  4958. 'gcc.dg/debug'
  4959. This subdirectory contains tests for debug formats. Tests in this
  4960. subdirectory are run for each debug format that the compiler
  4961. supports.
  4962. 'gcc.dg/format'
  4963. This subdirectory contains tests of the '-Wformat' format checking.
  4964. Tests in this directory are run with and without '-DWIDE'.
  4965. 'gcc.dg/noncompile'
  4966. This subdirectory contains tests of code that should not compile
  4967. and does not need any special compilation options. They are run
  4968. with multiple optimization options, since sometimes invalid code
  4969. crashes the compiler with optimization.
  4970. 'gcc.dg/special'
  4971. FIXME: describe this.
  4972. 'gcc.c-torture'
  4973. This contains particular code fragments which have historically
  4974. broken easily. These tests are run with multiple optimization
  4975. options, so tests for features which only break at some
  4976. optimization levels belong here. This also contains tests to check
  4977. that certain optimizations occur. It might be worthwhile to
  4978. separate the correctness tests cleanly from the code quality tests,
  4979. but it hasn't been done yet.
  4980. 'gcc.c-torture/compat'
  4981. FIXME: describe this.
  4982. This directory should probably not be used for new tests.
  4983. 'gcc.c-torture/compile'
  4984. This testsuite contains test cases that should compile, but do not
  4985. need to link or run. These test cases are compiled with several
  4986. different combinations of optimization options. All warnings are
  4987. disabled for these test cases, so this directory is not suitable if
  4988. you wish to test for the presence or absence of compiler warnings.
  4989. While special options can be set, and tests disabled on specific
  4990. platforms, by the use of '.x' files, mostly these test cases should
  4991. not contain platform dependencies. FIXME: discuss how defines such
  4992. as 'NO_LABEL_VALUES' and 'STACK_SIZE' are used.
  4993. 'gcc.c-torture/execute'
  4994. This testsuite contains test cases that should compile, link and
  4995. run; otherwise the same comments as for 'gcc.c-torture/compile'
  4996. apply.
  4997. 'gcc.c-torture/execute/ieee'
  4998. This contains tests which are specific to IEEE floating point.
  4999. 'gcc.c-torture/unsorted'
  5000. FIXME: describe this.
  5001. This directory should probably not be used for new tests.
  5002. 'gcc.misc-tests'
  5003. This directory contains C tests that require special handling.
  5004. Some of these tests have individual expect files, and others share
  5005. special-purpose expect files:
  5006. 'bprob*.c'
  5007. Test '-fbranch-probabilities' using
  5008. 'gcc.misc-tests/bprob.exp', which in turn uses the generic,
  5009. language-independent framework (*note Support for testing
  5010. profile-directed optimizations: profopt Testing.).
  5011. 'gcov*.c'
  5012. Test 'gcov' output using 'gcov.exp', which in turn uses the
  5013. language-independent support (*note Support for testing gcov:
  5014. gcov Testing.).
  5015. 'i386-pf-*.c'
  5016. Test i386-specific support for data prefetch using
  5017. 'i386-prefetch.exp'.
  5018. 'gcc.test-framework'
  5019. 'dg-*.c'
  5020. Test the testsuite itself using
  5021. 'gcc.test-framework/test-framework.exp'.
  5022. FIXME: merge in 'testsuite/README.gcc' and discuss the format of test
  5023. cases and magic comments more.
  5024. 
  5025. File: gccint.info, Node: LTO Testing, Next: gcov Testing, Prev: C Tests, Up: Testsuites
  5026. 7.5 Support for testing link-time optimizations
  5027. ===============================================
  5028. Tests for link-time optimizations usually require multiple source files
  5029. that are compiled separately, perhaps with different sets of options.
  5030. There are several special-purpose test directives used for these tests.
  5031. '{ dg-lto-do DO-WHAT-KEYWORD }'
  5032. DO-WHAT-KEYWORD specifies how the test is compiled and whether it
  5033. is executed. It is one of:
  5034. 'assemble'
  5035. Compile with '-c' to produce a relocatable object file.
  5036. 'link'
  5037. Compile, assemble, and link to produce an executable file.
  5038. 'run'
  5039. Produce and run an executable file, which is expected to
  5040. return an exit code of 0.
  5041. The default is 'assemble'. That can be overridden for a set of
  5042. tests by redefining 'dg-do-what-default' within the '.exp' file for
  5043. those tests.
  5044. Unlike 'dg-do', 'dg-lto-do' does not support an optional 'target'
  5045. or 'xfail' list. Use 'dg-skip-if', 'dg-xfail-if', or
  5046. 'dg-xfail-run-if'.
  5047. '{ dg-lto-options { { OPTIONS } [{ OPTIONS }] } [{ target SELECTOR }]}'
  5048. This directive provides a list of one or more sets of compiler
  5049. options to override LTO_OPTIONS. Each test will be compiled and
  5050. run with each of these sets of options.
  5051. '{ dg-extra-ld-options OPTIONS [{ target SELECTOR }]}'
  5052. This directive adds OPTIONS to the linker options used.
  5053. '{ dg-suppress-ld-options OPTIONS [{ target SELECTOR }]}'
  5054. This directive removes OPTIONS from the set of linker options used.
  5055. 
  5056. File: gccint.info, Node: gcov Testing, Next: profopt Testing, Prev: LTO Testing, Up: Testsuites
  5057. 7.6 Support for testing 'gcov'
  5058. ==============================
  5059. Language-independent support for testing 'gcov', and for checking that
  5060. branch profiling produces expected values, is provided by the expect
  5061. file 'lib/gcov.exp'. 'gcov' tests also rely on procedures in
  5062. 'lib/gcc-dg.exp' to compile and run the test program. A typical 'gcov'
  5063. test contains the following DejaGnu commands within comments:
  5064. { dg-options "-fprofile-arcs -ftest-coverage" }
  5065. { dg-do run { target native } }
  5066. { dg-final { run-gcov sourcefile } }
  5067. Checks of 'gcov' output can include line counts, branch percentages,
  5068. and call return percentages. All of these checks are requested via
  5069. commands that appear in comments in the test's source file. Commands to
  5070. check line counts are processed by default. Commands to check branch
  5071. percentages and call return percentages are processed if the 'run-gcov'
  5072. command has arguments 'branches' or 'calls', respectively. For example,
  5073. the following specifies checking both, as well as passing '-b' to
  5074. 'gcov':
  5075. { dg-final { run-gcov branches calls { -b sourcefile } } }
  5076. A line count command appears within a comment on the source line that
  5077. is expected to get the specified count and has the form 'count(CNT)'. A
  5078. test should only check line counts for lines that will get the same
  5079. count for any architecture.
  5080. Commands to check branch percentages ('branch') and call return
  5081. percentages ('returns') are very similar to each other. A beginning
  5082. command appears on or before the first of a range of lines that will
  5083. report the percentage, and the ending command follows that range of
  5084. lines. The beginning command can include a list of percentages, all of
  5085. which are expected to be found within the range. A range is terminated
  5086. by the next command of the same kind. A command 'branch(end)' or
  5087. 'returns(end)' marks the end of a range without starting a new one. For
  5088. example:
  5089. if (i > 10 && j > i && j < 20) /* branch(27 50 75) */
  5090. /* branch(end) */
  5091. foo (i, j);
  5092. For a call return percentage, the value specified is the percentage of
  5093. calls reported to return. For a branch percentage, the value is either
  5094. the expected percentage or 100 minus that value, since the direction of
  5095. a branch can differ depending on the target or the optimization level.
  5096. Not all branches and calls need to be checked. A test should not check
  5097. for branches that might be optimized away or replaced with predicated
  5098. instructions. Don't check for calls inserted by the compiler or ones
  5099. that might be inlined or optimized away.
  5100. A single test can check for combinations of line counts, branch
  5101. percentages, and call return percentages. The command to check a line
  5102. count must appear on the line that will report that count, but commands
  5103. to check branch percentages and call return percentages can bracket the
  5104. lines that report them.
  5105. 
  5106. File: gccint.info, Node: profopt Testing, Next: compat Testing, Prev: gcov Testing, Up: Testsuites
  5107. 7.7 Support for testing profile-directed optimizations
  5108. ======================================================
  5109. The file 'profopt.exp' provides language-independent support for
  5110. checking correct execution of a test built with profile-directed
  5111. optimization. This testing requires that a test program be built and
  5112. executed twice. The first time it is compiled to generate profile data,
  5113. and the second time it is compiled to use the data that was generated
  5114. during the first execution. The second execution is to verify that the
  5115. test produces the expected results.
  5116. To check that the optimization actually generated better code, a test
  5117. can be built and run a third time with normal optimizations to verify
  5118. that the performance is better with the profile-directed optimizations.
  5119. 'profopt.exp' has the beginnings of this kind of support.
  5120. 'profopt.exp' provides generic support for profile-directed
  5121. optimizations. Each set of tests that uses it provides information
  5122. about a specific optimization:
  5123. 'tool'
  5124. tool being tested, e.g., 'gcc'
  5125. 'profile_option'
  5126. options used to generate profile data
  5127. 'feedback_option'
  5128. options used to optimize using that profile data
  5129. 'prof_ext'
  5130. suffix of profile data files
  5131. 'PROFOPT_OPTIONS'
  5132. list of options with which to run each test, similar to the lists
  5133. for torture tests
  5134. '{ dg-final-generate { LOCAL-DIRECTIVE } }'
  5135. This directive is similar to 'dg-final', but the LOCAL-DIRECTIVE is
  5136. run after the generation of profile data.
  5137. '{ dg-final-use { LOCAL-DIRECTIVE } }'
  5138. The LOCAL-DIRECTIVE is run after the profile data have been used.
  5139. 
  5140. File: gccint.info, Node: compat Testing, Next: Torture Tests, Prev: profopt Testing, Up: Testsuites
  5141. 7.8 Support for testing binary compatibility
  5142. ============================================
  5143. The file 'compat.exp' provides language-independent support for binary
  5144. compatibility testing. It supports testing interoperability of two
  5145. compilers that follow the same ABI, or of multiple sets of compiler
  5146. options that should not affect binary compatibility. It is intended to
  5147. be used for testsuites that complement ABI testsuites.
  5148. A test supported by this framework has three parts, each in a separate
  5149. source file: a main program and two pieces that interact with each other
  5150. to split up the functionality being tested.
  5151. 'TESTNAME_main.SUFFIX'
  5152. Contains the main program, which calls a function in file
  5153. 'TESTNAME_x.SUFFIX'.
  5154. 'TESTNAME_x.SUFFIX'
  5155. Contains at least one call to a function in 'TESTNAME_y.SUFFIX'.
  5156. 'TESTNAME_y.SUFFIX'
  5157. Shares data with, or gets arguments from, 'TESTNAME_x.SUFFIX'.
  5158. Within each test, the main program and one functional piece are
  5159. compiled by the GCC under test. The other piece can be compiled by an
  5160. alternate compiler. If no alternate compiler is specified, then all
  5161. three source files are all compiled by the GCC under test. You can
  5162. specify pairs of sets of compiler options. The first element of such a
  5163. pair specifies options used with the GCC under test, and the second
  5164. element of the pair specifies options used with the alternate compiler.
  5165. Each test is compiled with each pair of options.
  5166. 'compat.exp' defines default pairs of compiler options. These can be
  5167. overridden by defining the environment variable 'COMPAT_OPTIONS' as:
  5168. COMPAT_OPTIONS="[list [list {TST1} {ALT1}]
  5169. ...[list {TSTN} {ALTN}]]"
  5170. where TSTI and ALTI are lists of options, with TSTI used by the
  5171. compiler under test and ALTI used by the alternate compiler. For
  5172. example, with '[list [list {-g -O0} {-O3}] [list {-fpic} {-fPIC -O2}]]',
  5173. the test is first built with '-g -O0' by the compiler under test and
  5174. with '-O3' by the alternate compiler. The test is built a second time
  5175. using '-fpic' by the compiler under test and '-fPIC -O2' by the
  5176. alternate compiler.
  5177. An alternate compiler is specified by defining an environment variable
  5178. to be the full pathname of an installed compiler; for C define
  5179. 'ALT_CC_UNDER_TEST', and for C++ define 'ALT_CXX_UNDER_TEST'. These
  5180. will be written to the 'site.exp' file used by DejaGnu. The default is
  5181. to build each test with the compiler under test using the first of each
  5182. pair of compiler options from 'COMPAT_OPTIONS'. When
  5183. 'ALT_CC_UNDER_TEST' or 'ALT_CXX_UNDER_TEST' is 'same', each test is
  5184. built using the compiler under test but with combinations of the options
  5185. from 'COMPAT_OPTIONS'.
  5186. To run only the C++ compatibility suite using the compiler under test
  5187. and another version of GCC using specific compiler options, do the
  5188. following from 'OBJDIR/gcc':
  5189. rm site.exp
  5190. make -k \
  5191. ALT_CXX_UNDER_TEST=${alt_prefix}/bin/g++ \
  5192. COMPAT_OPTIONS="LISTS AS SHOWN ABOVE" \
  5193. check-c++ \
  5194. RUNTESTFLAGS="compat.exp"
  5195. A test that fails when the source files are compiled with different
  5196. compilers, but passes when the files are compiled with the same
  5197. compiler, demonstrates incompatibility of the generated code or runtime
  5198. support. A test that fails for the alternate compiler but passes for
  5199. the compiler under test probably tests for a bug that was fixed in the
  5200. compiler under test but is present in the alternate compiler.
  5201. The binary compatibility tests support a small number of test framework
  5202. commands that appear within comments in a test file.
  5203. 'dg-require-*'
  5204. These commands can be used in 'TESTNAME_main.SUFFIX' to skip the
  5205. test if specific support is not available on the target.
  5206. 'dg-options'
  5207. The specified options are used for compiling this particular source
  5208. file, appended to the options from 'COMPAT_OPTIONS'. When this
  5209. command appears in 'TESTNAME_main.SUFFIX' the options are also used
  5210. to link the test program.
  5211. 'dg-xfail-if'
  5212. This command can be used in a secondary source file to specify that
  5213. compilation is expected to fail for particular options on
  5214. particular targets.
  5215. 
  5216. File: gccint.info, Node: Torture Tests, Next: GIMPLE Tests, Prev: compat Testing, Up: Testsuites
  5217. 7.9 Support for torture testing using multiple options
  5218. ======================================================
  5219. Throughout the compiler testsuite there are several directories whose
  5220. tests are run multiple times, each with a different set of options.
  5221. These are known as torture tests. 'lib/torture-options.exp' defines
  5222. procedures to set up these lists:
  5223. 'torture-init'
  5224. Initialize use of torture lists.
  5225. 'set-torture-options'
  5226. Set lists of torture options to use for tests with and without
  5227. loops. Optionally combine a set of torture options with a set of
  5228. other options, as is done with Objective-C runtime options.
  5229. 'torture-finish'
  5230. Finalize use of torture lists.
  5231. The '.exp' file for a set of tests that use torture options must
  5232. include calls to these three procedures if:
  5233. * It calls 'gcc-dg-runtest' and overrides DG_TORTURE_OPTIONS.
  5234. * It calls ${TOOL}'-torture' or ${TOOL}'-torture-execute', where TOOL
  5235. is 'c', 'fortran', or 'objc'.
  5236. * It calls 'dg-pch'.
  5237. It is not necessary for a '.exp' file that calls 'gcc-dg-runtest' to
  5238. call the torture procedures if the tests should use the list in
  5239. DG_TORTURE_OPTIONS defined in 'gcc-dg.exp'.
  5240. Most uses of torture options can override the default lists by defining
  5241. TORTURE_OPTIONS or add to the default list by defining
  5242. ADDITIONAL_TORTURE_OPTIONS. Define these in a '.dejagnurc' file or add
  5243. them to the 'site.exp' file; for example
  5244. set ADDITIONAL_TORTURE_OPTIONS [list \
  5245. { -O2 -ftree-loop-linear } \
  5246. { -O2 -fpeel-loops } ]
  5247. 
  5248. File: gccint.info, Node: GIMPLE Tests, Next: RTL Tests, Prev: Torture Tests, Up: Testsuites
  5249. 7.10 Support for testing GIMPLE passes
  5250. ======================================
  5251. As of gcc 7, C functions can be tagged with '__GIMPLE' to indicate that
  5252. the function body will be GIMPLE, rather than C. The compiler requires
  5253. the option '-fgimple' to enable this functionality. For example:
  5254. /* { dg-do compile } */
  5255. /* { dg-options "-O -fgimple" } */
  5256. void __GIMPLE (startwith ("dse2")) foo ()
  5257. {
  5258. int a;
  5259. bb_2:
  5260. if (a > 4)
  5261. goto bb_3;
  5262. else
  5263. goto bb_4;
  5264. bb_3:
  5265. a_2 = 10;
  5266. goto bb_5;
  5267. bb_4:
  5268. a_3 = 20;
  5269. bb_5:
  5270. a_1 = __PHI (bb_3: a_2, bb_4: a_3);
  5271. a_4 = a_1 + 4;
  5272. return;
  5273. }
  5274. The 'startwith' argument indicates at which pass to begin.
  5275. Use the dump modifier '-gimple' (e.g. '-fdump-tree-all-gimple') to
  5276. make tree dumps more closely follow the format accepted by the GIMPLE
  5277. parser.
  5278. Example DejaGnu tests of GIMPLE can be seen in the source tree at
  5279. 'gcc/testsuite/gcc.dg/gimplefe-*.c'.
  5280. The '__GIMPLE' parser is integrated with the C tokenizer and
  5281. preprocessor, so it should be possible to use macros to build out test
  5282. coverage.
  5283. 
  5284. File: gccint.info, Node: RTL Tests, Prev: GIMPLE Tests, Up: Testsuites
  5285. 7.11 Support for testing RTL passes
  5286. ===================================
  5287. As of gcc 7, C functions can be tagged with '__RTL' to indicate that the
  5288. function body will be RTL, rather than C. For example:
  5289. double __RTL (startwith ("ira")) test (struct foo *f, const struct bar *b)
  5290. {
  5291. (function "test"
  5292. [...snip; various directives go in here...]
  5293. ) ;; function "test"
  5294. }
  5295. The 'startwith' argument indicates at which pass to begin.
  5296. The parser expects the RTL body to be in the format emitted by this
  5297. dumping function:
  5298. DEBUG_FUNCTION void
  5299. print_rtx_function (FILE *outfile, function *fn, bool compact);
  5300. when "compact" is true. So you can capture RTL in the correct format
  5301. from the debugger using:
  5302. (gdb) print_rtx_function (stderr, cfun, true);
  5303. and copy and paste the output into the body of the C function.
  5304. Example DejaGnu tests of RTL can be seen in the source tree under
  5305. 'gcc/testsuite/gcc.dg/rtl'.
  5306. The '__RTL' parser is not integrated with the C tokenizer or
  5307. preprocessor, and works simply by reading the relevant lines within the
  5308. braces. In particular, the RTL body must be on separate lines from the
  5309. enclosing braces, and the preprocessor is not usable within it.
  5310. 
  5311. File: gccint.info, Node: Options, Next: Passes, Prev: Testsuites, Up: Top
  5312. 8 Option specification files
  5313. ****************************
  5314. Most GCC command-line options are described by special option definition
  5315. files, the names of which conventionally end in '.opt'. This chapter
  5316. describes the format of these files.
  5317. * Menu:
  5318. * Option file format:: The general layout of the files
  5319. * Option properties:: Supported option properties
  5320. 
  5321. File: gccint.info, Node: Option file format, Next: Option properties, Up: Options
  5322. 8.1 Option file format
  5323. ======================
  5324. Option files are a simple list of records in which each field occupies
  5325. its own line and in which the records themselves are separated by blank
  5326. lines. Comments may appear on their own line anywhere within the file
  5327. and are preceded by semicolons. Whitespace is allowed before the
  5328. semicolon.
  5329. The files can contain the following types of record:
  5330. * A language definition record. These records have two fields: the
  5331. string 'Language' and the name of the language. Once a language
  5332. has been declared in this way, it can be used as an option
  5333. property. *Note Option properties::.
  5334. * A target specific save record to save additional information.
  5335. These records have two fields: the string 'TargetSave', and a
  5336. declaration type to go in the 'cl_target_option' structure.
  5337. * A variable record to define a variable used to store option
  5338. information. These records have two fields: the string 'Variable',
  5339. and a declaration of the type and name of the variable, optionally
  5340. with an initializer (but without any trailing ';'). These records
  5341. may be used for variables used for many options where declaring the
  5342. initializer in a single option definition record, or duplicating it
  5343. in many records, would be inappropriate, or for variables set in
  5344. option handlers rather than referenced by 'Var' properties.
  5345. * A variable record to define a variable used to store option
  5346. information. These records have two fields: the string
  5347. 'TargetVariable', and a declaration of the type and name of the
  5348. variable, optionally with an initializer (but without any trailing
  5349. ';'). 'TargetVariable' is a combination of 'Variable' and
  5350. 'TargetSave' records in that the variable is defined in the
  5351. 'gcc_options' structure, but these variables are also stored in the
  5352. 'cl_target_option' structure. The variables are saved in the
  5353. target save code and restored in the target restore code.
  5354. * A variable record to record any additional files that the
  5355. 'options.h' file should include. This is useful to provide
  5356. enumeration or structure definitions needed for target variables.
  5357. These records have two fields: the string 'HeaderInclude' and the
  5358. name of the include file.
  5359. * A variable record to record any additional files that the
  5360. 'options.c' or 'options-save.c' file should include. This is
  5361. useful to provide inline functions needed for target variables
  5362. and/or '#ifdef' sequences to properly set up the initialization.
  5363. These records have two fields: the string 'SourceInclude' and the
  5364. name of the include file.
  5365. * An enumeration record to define a set of strings that may be used
  5366. as arguments to an option or options. These records have three
  5367. fields: the string 'Enum', a space-separated list of properties and
  5368. help text used to describe the set of strings in '--help' output.
  5369. Properties use the same format as option properties; the following
  5370. are valid:
  5371. 'Name(NAME)'
  5372. This property is required; NAME must be a name (suitable for
  5373. use in C identifiers) used to identify the set of strings in
  5374. 'Enum' option properties.
  5375. 'Type(TYPE)'
  5376. This property is required; TYPE is the C type for variables
  5377. set by options using this enumeration together with 'Var'.
  5378. 'UnknownError(MESSAGE)'
  5379. The message MESSAGE will be used as an error message if the
  5380. argument is invalid; for enumerations without 'UnknownError',
  5381. a generic error message is used. MESSAGE should contain a
  5382. single '%qs' format, which will be used to format the invalid
  5383. argument.
  5384. * An enumeration value record to define one of the strings in a set
  5385. given in an 'Enum' record. These records have two fields: the
  5386. string 'EnumValue' and a space-separated list of properties.
  5387. Properties use the same format as option properties; the following
  5388. are valid:
  5389. 'Enum(NAME)'
  5390. This property is required; NAME says which 'Enum' record this
  5391. 'EnumValue' record corresponds to.
  5392. 'String(STRING)'
  5393. This property is required; STRING is the string option
  5394. argument being described by this record.
  5395. 'Value(VALUE)'
  5396. This property is required; it says what value (representable
  5397. as 'int') should be used for the given string.
  5398. 'Canonical'
  5399. This property is optional. If present, it says the present
  5400. string is the canonical one among all those with the given
  5401. value. Other strings yielding that value will be mapped to
  5402. this one so specs do not need to handle them.
  5403. 'DriverOnly'
  5404. This property is optional. If present, the present string
  5405. will only be accepted by the driver. This is used for cases
  5406. such as '-march=native' that are processed by the driver so
  5407. that 'gcc -v' shows how the options chosen depended on the
  5408. system on which the compiler was run.
  5409. * An option definition record. These records have the following
  5410. fields:
  5411. 1. the name of the option, with the leading "-" removed
  5412. 2. a space-separated list of option properties (*note Option
  5413. properties::)
  5414. 3. the help text to use for '--help' (omitted if the second field
  5415. contains the 'Undocumented' property).
  5416. By default, all options beginning with "f", "W" or "m" are
  5417. implicitly assumed to take a "no-" form. This form should not be
  5418. listed separately. If an option beginning with one of these
  5419. letters does not have a "no-" form, you can use the
  5420. 'RejectNegative' property to reject it.
  5421. The help text is automatically line-wrapped before being displayed.
  5422. Normally the name of the option is printed on the left-hand side of
  5423. the output and the help text is printed on the right. However, if
  5424. the help text contains a tab character, the text to the left of the
  5425. tab is used instead of the option's name and the text to the right
  5426. of the tab forms the help text. This allows you to elaborate on
  5427. what type of argument the option takes.
  5428. * A target mask record. These records have one field of the form
  5429. 'Mask(X)'. The options-processing script will automatically
  5430. allocate a bit in 'target_flags' (*note Run-time Target::) for each
  5431. mask name X and set the macro 'MASK_X' to the appropriate bitmask.
  5432. It will also declare a 'TARGET_X' macro that has the value 1 when
  5433. bit 'MASK_X' is set and 0 otherwise.
  5434. They are primarily intended to declare target masks that are not
  5435. associated with user options, either because these masks represent
  5436. internal switches or because the options are not available on all
  5437. configurations and yet the masks always need to be defined.
  5438. 
  5439. File: gccint.info, Node: Option properties, Prev: Option file format, Up: Options
  5440. 8.2 Option properties
  5441. =====================
  5442. The second field of an option record can specify any of the following
  5443. properties. When an option takes an argument, it is enclosed in
  5444. parentheses following the option property name. The parser that handles
  5445. option files is quite simplistic, and will be tricked by any nested
  5446. parentheses within the argument text itself; in this case, the entire
  5447. option argument can be wrapped in curly braces within the parentheses to
  5448. demarcate it, e.g.:
  5449. Condition({defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS)})
  5450. 'Common'
  5451. The option is available for all languages and targets.
  5452. 'Target'
  5453. The option is available for all languages but is target-specific.
  5454. 'Driver'
  5455. The option is handled by the compiler driver using code not shared
  5456. with the compilers proper ('cc1' etc.).
  5457. 'LANGUAGE'
  5458. The option is available when compiling for the given language.
  5459. It is possible to specify several different languages for the same
  5460. option. Each LANGUAGE must have been declared by an earlier
  5461. 'Language' record. *Note Option file format::.
  5462. 'RejectDriver'
  5463. The option is only handled by the compilers proper ('cc1' etc.) and
  5464. should not be accepted by the driver.
  5465. 'RejectNegative'
  5466. The option does not have a "no-" form. All options beginning with
  5467. "f", "W" or "m" are assumed to have a "no-" form unless this
  5468. property is used.
  5469. 'Negative(OTHERNAME)'
  5470. The option will turn off another option OTHERNAME, which is the
  5471. option name with the leading "-" removed. This chain action will
  5472. propagate through the 'Negative' property of the option to be
  5473. turned off.
  5474. As a consequence, if you have a group of mutually-exclusive
  5475. options, their 'Negative' properties should form a circular chain.
  5476. For example, if options '-A', '-B' and '-C' are mutually exclusive,
  5477. their respective 'Negative' properties should be 'Negative(B)',
  5478. 'Negative(C)' and 'Negative(A)'.
  5479. 'Joined'
  5480. 'Separate'
  5481. The option takes a mandatory argument. 'Joined' indicates that the
  5482. option and argument can be included in the same 'argv' entry (as
  5483. with '-mflush-func=NAME', for example). 'Separate' indicates that
  5484. the option and argument can be separate 'argv' entries (as with
  5485. '-o'). An option is allowed to have both of these properties.
  5486. 'JoinedOrMissing'
  5487. The option takes an optional argument. If the argument is given,
  5488. it will be part of the same 'argv' entry as the option itself.
  5489. This property cannot be used alongside 'Joined' or 'Separate'.
  5490. 'MissingArgError(MESSAGE)'
  5491. For an option marked 'Joined' or 'Separate', the message MESSAGE
  5492. will be used as an error message if the mandatory argument is
  5493. missing; for options without 'MissingArgError', a generic error
  5494. message is used. MESSAGE should contain a single '%qs' format,
  5495. which will be used to format the name of the option passed.
  5496. 'Args(N)'
  5497. For an option marked 'Separate', indicate that it takes N
  5498. arguments. The default is 1.
  5499. 'UInteger'
  5500. The option's argument is a non-negative integer. The option parser
  5501. will check and convert the argument before passing it to the
  5502. relevant option handler. 'UInteger' should also be used on options
  5503. like '-falign-loops' where both '-falign-loops' and
  5504. '-falign-loops'=N are supported to make sure the saved options are
  5505. given a full integer.
  5506. 'ToLower'
  5507. The option's argument should be converted to lowercase as part of
  5508. putting it in canonical form, and before comparing with the strings
  5509. indicated by any 'Enum' property.
  5510. 'NoDriverArg'
  5511. For an option marked 'Separate', the option only takes an argument
  5512. in the compiler proper, not in the driver. This is for
  5513. compatibility with existing options that are used both directly and
  5514. via '-Wp,'; new options should not have this property.
  5515. 'Var(VAR)'
  5516. The state of this option should be stored in variable VAR (actually
  5517. a macro for 'global_options.x_VAR'). The way that the state is
  5518. stored depends on the type of option:
  5519. * If the option uses the 'Mask' or 'InverseMask' properties, VAR
  5520. is the integer variable that contains the mask.
  5521. * If the option is a normal on/off switch, VAR is an integer
  5522. variable that is nonzero when the option is enabled. The
  5523. options parser will set the variable to 1 when the positive
  5524. form of the option is used and 0 when the "no-" form is used.
  5525. * If the option takes an argument and has the 'UInteger'
  5526. property, VAR is an integer variable that stores the value of
  5527. the argument.
  5528. * If the option takes an argument and has the 'Enum' property,
  5529. VAR is a variable (type given in the 'Type' property of the
  5530. 'Enum' record whose 'Name' property has the same argument as
  5531. the 'Enum' property of this option) that stores the value of
  5532. the argument.
  5533. * If the option has the 'Defer' property, VAR is a pointer to a
  5534. 'VEC(cl_deferred_option,heap)' that stores the option for
  5535. later processing. (VAR is declared with type 'void *' and
  5536. needs to be cast to 'VEC(cl_deferred_option,heap)' before
  5537. use.)
  5538. * Otherwise, if the option takes an argument, VAR is a pointer
  5539. to the argument string. The pointer will be null if the
  5540. argument is optional and wasn't given.
  5541. The option-processing script will usually zero-initialize VAR. You
  5542. can modify this behavior using 'Init'.
  5543. 'Var(VAR, SET)'
  5544. The option controls an integer variable VAR and is active when VAR
  5545. equals SET. The option parser will set VAR to SET when the
  5546. positive form of the option is used and '!SET' when the "no-" form
  5547. is used.
  5548. VAR is declared in the same way as for the single-argument form
  5549. described above.
  5550. 'Init(VALUE)'
  5551. The variable specified by the 'Var' property should be statically
  5552. initialized to VALUE. If more than one option using the same
  5553. variable specifies 'Init', all must specify the same initializer.
  5554. 'Mask(NAME)'
  5555. The option is associated with a bit in the 'target_flags' variable
  5556. (*note Run-time Target::) and is active when that bit is set. You
  5557. may also specify 'Var' to select a variable other than
  5558. 'target_flags'.
  5559. The options-processing script will automatically allocate a unique
  5560. bit for the option. If the option is attached to 'target_flags',
  5561. the script will set the macro 'MASK_NAME' to the appropriate
  5562. bitmask. It will also declare a 'TARGET_NAME' macro that has the
  5563. value 1 when the option is active and 0 otherwise. If you use
  5564. 'Var' to attach the option to a different variable, the bitmask
  5565. macro with be called 'OPTION_MASK_NAME'.
  5566. 'InverseMask(OTHERNAME)'
  5567. 'InverseMask(OTHERNAME, THISNAME)'
  5568. The option is the inverse of another option that has the
  5569. 'Mask(OTHERNAME)' property. If THISNAME is given, the
  5570. options-processing script will declare a 'TARGET_THISNAME' macro
  5571. that is 1 when the option is active and 0 otherwise.
  5572. 'Enum(NAME)'
  5573. The option's argument is a string from the set of strings
  5574. associated with the corresponding 'Enum' record. The string is
  5575. checked and converted to the integer specified in the corresponding
  5576. 'EnumValue' record before being passed to option handlers.
  5577. 'Defer'
  5578. The option should be stored in a vector, specified with 'Var', for
  5579. later processing.
  5580. 'Alias(OPT)'
  5581. 'Alias(OPT, ARG)'
  5582. 'Alias(OPT, POSARG, NEGARG)'
  5583. The option is an alias for '-OPT' (or the negative form of that
  5584. option, depending on 'NegativeAlias'). In the first form, any
  5585. argument passed to the alias is considered to be passed to '-OPT',
  5586. and '-OPT' is considered to be negated if the alias is used in
  5587. negated form. In the second form, the alias may not be negated or
  5588. have an argument, and POSARG is considered to be passed as an
  5589. argument to '-OPT'. In the third form, the alias may not have an
  5590. argument, if the alias is used in the positive form then POSARG is
  5591. considered to be passed to '-OPT', and if the alias is used in the
  5592. negative form then NEGARG is considered to be passed to '-OPT'.
  5593. Aliases should not specify 'Var' or 'Mask' or 'UInteger'. Aliases
  5594. should normally specify the same languages as the target of the
  5595. alias; the flags on the target will be used to determine any
  5596. diagnostic for use of an option for the wrong language, while those
  5597. on the alias will be used to identify what command-line text is the
  5598. option and what text is any argument to that option.
  5599. When an 'Alias' definition is used for an option, driver specs do
  5600. not need to handle it and no 'OPT_' enumeration value is defined
  5601. for it; only the canonical form of the option will be seen in those
  5602. places.
  5603. 'NegativeAlias'
  5604. For an option marked with 'Alias(OPT)', the option is considered to
  5605. be an alias for the positive form of '-OPT' if negated and for the
  5606. negative form of '-OPT' if not negated. 'NegativeAlias' may not be
  5607. used with the forms of 'Alias' taking more than one argument.
  5608. 'Ignore'
  5609. This option is ignored apart from printing any warning specified
  5610. using 'Warn'. The option will not be seen by specs and no 'OPT_'
  5611. enumeration value is defined for it.
  5612. 'SeparateAlias'
  5613. For an option marked with 'Joined', 'Separate' and 'Alias', the
  5614. option only acts as an alias when passed a separate argument; with
  5615. a joined argument it acts as a normal option, with an 'OPT_'
  5616. enumeration value. This is for compatibility with the Java '-d'
  5617. option and should not be used for new options.
  5618. 'Warn(MESSAGE)'
  5619. If this option is used, output the warning MESSAGE. MESSAGE is a
  5620. format string, either taking a single operand with a '%qs' format
  5621. which is the option name, or not taking any operands, which is
  5622. passed to the 'warning' function. If an alias is marked 'Warn',
  5623. the target of the alias must not also be marked 'Warn'.
  5624. 'Report'
  5625. The state of the option should be printed by '-fverbose-asm'.
  5626. 'Warning'
  5627. This is a warning option and should be shown as such in '--help'
  5628. output. This flag does not currently affect anything other than
  5629. '--help'.
  5630. 'Optimization'
  5631. This is an optimization option. It should be shown as such in
  5632. '--help' output, and any associated variable named using 'Var'
  5633. should be saved and restored when the optimization level is changed
  5634. with 'optimize' attributes.
  5635. 'PerFunction'
  5636. This is an option that can be overridden on a per-function basis.
  5637. 'Optimization' implies 'PerFunction', but options that do not
  5638. affect executable code generation may use this flag instead, so
  5639. that the option is not taken into account in ways that might affect
  5640. executable code generation.
  5641. 'Undocumented'
  5642. The option is deliberately missing documentation and should not be
  5643. included in the '--help' output.
  5644. 'Condition(COND)'
  5645. The option should only be accepted if preprocessor condition COND
  5646. is true. Note that any C declarations associated with the option
  5647. will be present even if COND is false; COND simply controls whether
  5648. the option is accepted and whether it is printed in the '--help'
  5649. output.
  5650. 'Save'
  5651. Build the 'cl_target_option' structure to hold a copy of the
  5652. option, add the functions 'cl_target_option_save' and
  5653. 'cl_target_option_restore' to save and restore the options.
  5654. 'SetByCombined'
  5655. The option may also be set by a combined option such as
  5656. '-ffast-math'. This causes the 'gcc_options' struct to have a
  5657. field 'frontend_set_NAME', where 'NAME' is the name of the field
  5658. holding the value of this option (without the leading 'x_'). This
  5659. gives the front end a way to indicate that the value has been set
  5660. explicitly and should not be changed by the combined option. For
  5661. example, some front ends use this to prevent '-ffast-math' and
  5662. '-fno-fast-math' from changing the value of '-fmath-errno' for
  5663. languages that do not use 'errno'.
  5664. 'EnabledBy(OPT)'
  5665. 'EnabledBy(OPT || OPT2)'
  5666. 'EnabledBy(OPT && OPT2)'
  5667. If not explicitly set, the option is set to the value of '-OPT';
  5668. multiple options can be given, separated by '||'. The third form
  5669. using '&&' specifies that the option is only set if both OPT and
  5670. OPT2 are set. The options OPT and OPT2 must have the 'Common'
  5671. property; otherwise, use 'LangEnabledBy'.
  5672. 'LangEnabledBy(LANGUAGE, OPT)'
  5673. 'LangEnabledBy(LANGUAGE, OPT, POSARG, NEGARG)'
  5674. When compiling for the given language, the option is set to the
  5675. value of '-OPT', if not explicitly set. OPT can be also a list of
  5676. '||' separated options. In the second form, if OPT is used in the
  5677. positive form then POSARG is considered to be passed to the option,
  5678. and if OPT is used in the negative form then NEGARG is considered
  5679. to be passed to the option. It is possible to specify several
  5680. different languages. Each LANGUAGE must have been declared by an
  5681. earlier 'Language' record. *Note Option file format::.
  5682. 'NoDWARFRecord'
  5683. The option is omitted from the producer string written by
  5684. '-grecord-gcc-switches'.
  5685. 'PchIgnore'
  5686. Even if this is a target option, this option will not be recorded /
  5687. compared to determine if a precompiled header file matches.
  5688. 'CPP(VAR)'
  5689. The state of this option should be kept in sync with the
  5690. preprocessor option VAR. If this property is set, then properties
  5691. 'Var' and 'Init' must be set as well.
  5692. 'CppReason(CPP_W_ENUM)'
  5693. This warning option corresponds to 'cpplib.h' warning reason code
  5694. CPP_W_ENUM. This should only be used for warning options of the
  5695. C-family front-ends.
  5696. 
  5697. File: gccint.info, Node: Passes, Next: GENERIC, Prev: Options, Up: Top
  5698. 9 Passes and Files of the Compiler
  5699. **********************************
  5700. This chapter is dedicated to giving an overview of the optimization and
  5701. code generation passes of the compiler. In the process, it describes
  5702. some of the language front end interface, though this description is no
  5703. where near complete.
  5704. * Menu:
  5705. * Parsing pass:: The language front end turns text into bits.
  5706. * Cilk Plus Transformation:: Transform Cilk Plus Code to equivalent C/C++.
  5707. * Gimplification pass:: The bits are turned into something we can optimize.
  5708. * Pass manager:: Sequencing the optimization passes.
  5709. * Tree SSA passes:: Optimizations on a high-level representation.
  5710. * RTL passes:: Optimizations on a low-level representation.
  5711. * Optimization info:: Dumping optimization information from passes.
  5712. 
  5713. File: gccint.info, Node: Parsing pass, Next: Cilk Plus Transformation, Up: Passes
  5714. 9.1 Parsing pass
  5715. ================
  5716. The language front end is invoked only once, via
  5717. 'lang_hooks.parse_file', to parse the entire input. The language front
  5718. end may use any intermediate language representation deemed appropriate.
  5719. The C front end uses GENERIC trees (*note GENERIC::), plus a double
  5720. handful of language specific tree codes defined in 'c-common.def'. The
  5721. Fortran front end uses a completely different private representation.
  5722. At some point the front end must translate the representation used in
  5723. the front end to a representation understood by the language-independent
  5724. portions of the compiler. Current practice takes one of two forms. The
  5725. C front end manually invokes the gimplifier (*note GIMPLE::) on each
  5726. function, and uses the gimplifier callbacks to convert the
  5727. language-specific tree nodes directly to GIMPLE before passing the
  5728. function off to be compiled. The Fortran front end converts from a
  5729. private representation to GENERIC, which is later lowered to GIMPLE when
  5730. the function is compiled. Which route to choose probably depends on how
  5731. well GENERIC (plus extensions) can be made to match up with the source
  5732. language and necessary parsing data structures.
  5733. BUG: Gimplification must occur before nested function lowering, and
  5734. nested function lowering must be done by the front end before passing
  5735. the data off to cgraph.
  5736. TODO: Cgraph should control nested function lowering. It would only be
  5737. invoked when it is certain that the outer-most function is used.
  5738. TODO: Cgraph needs a gimplify_function callback. It should be invoked
  5739. when (1) it is certain that the function is used, (2) warning flags
  5740. specified by the user require some amount of compilation in order to
  5741. honor, (3) the language indicates that semantic analysis is not complete
  5742. until gimplification occurs. Hum... this sounds overly complicated.
  5743. Perhaps we should just have the front end gimplify always; in most cases
  5744. it's only one function call.
  5745. The front end needs to pass all function definitions and top level
  5746. declarations off to the middle-end so that they can be compiled and
  5747. emitted to the object file. For a simple procedural language, it is
  5748. usually most convenient to do this as each top level declaration or
  5749. definition is seen. There is also a distinction to be made between
  5750. generating functional code and generating complete debug information.
  5751. The only thing that is absolutely required for functional code is that
  5752. function and data _definitions_ be passed to the middle-end. For
  5753. complete debug information, function, data and type declarations should
  5754. all be passed as well.
  5755. In any case, the front end needs each complete top-level function or
  5756. data declaration, and each data definition should be passed to
  5757. 'rest_of_decl_compilation'. Each complete type definition should be
  5758. passed to 'rest_of_type_compilation'. Each function definition should
  5759. be passed to 'cgraph_finalize_function'.
  5760. TODO: I know rest_of_compilation currently has all sorts of RTL
  5761. generation semantics. I plan to move all code generation bits (both
  5762. Tree and RTL) to compile_function. Should we hide cgraph from the front
  5763. ends and move back to rest_of_compilation as the official interface?
  5764. Possibly we should rename all three interfaces such that the names match
  5765. in some meaningful way and that is more descriptive than "rest_of".
  5766. The middle-end will, at its option, emit the function and data
  5767. definitions immediately or queue them for later processing.
  5768. 
  5769. File: gccint.info, Node: Cilk Plus Transformation, Next: Gimplification pass, Prev: Parsing pass, Up: Passes
  5770. 9.2 Cilk Plus Transformation
  5771. ============================
  5772. If Cilk Plus generation (flag '-fcilkplus') is enabled, all the Cilk
  5773. Plus code is transformed into equivalent C and C++ functions. Majority
  5774. of this transformation occurs toward the end of the parsing and right
  5775. before the gimplification pass.
  5776. These are the major components to the Cilk Plus language extension:
  5777. * Array Notations: During parsing phase, all the array notation
  5778. specific information is stored in 'ARRAY_NOTATION_REF' tree using
  5779. the function 'c_parser_array_notation'. During the end of parsing,
  5780. we check the entire function to see if there are any array notation
  5781. specific code (using the function 'contains_array_notation_expr').
  5782. If this function returns true, then we expand them using either
  5783. 'expand_array_notation_exprs' or 'build_array_notation_expr'. For
  5784. the cases where array notations are inside conditions, they are
  5785. transformed using the function 'fix_conditional_array_notations'.
  5786. The C language-specific routines are located in
  5787. 'c/c-array-notation.c' and the equivalent C++ routines are in the
  5788. file 'cp/cp-array-notation.c'. Common routines such as functions
  5789. to initialize built-in functions are stored in
  5790. 'array-notation-common.c'.
  5791. * Cilk keywords:
  5792. * '_Cilk_spawn': The '_Cilk_spawn' keyword is parsed and the
  5793. function it contains is marked as a spawning function. The
  5794. spawning function is called the spawner. At the end of the
  5795. parsing phase, appropriate built-in functions are added to the
  5796. spawner that are defined in the Cilk runtime. The appropriate
  5797. locations of these functions, and the internal structures are
  5798. detailed in 'cilk_init_builtins' in the file 'cilk-common.c'.
  5799. The pointers to Cilk functions and fields of internal
  5800. structures are described in 'cilk.h'. The built-in functions
  5801. are described in 'cilk-builtins.def'.
  5802. During gimplification, a new "spawn-helper" function is
  5803. created. The spawned function is replaced with a spawn helper
  5804. function in the spawner. The spawned function-call is moved
  5805. into the spawn helper. The main function that does these
  5806. transformations is 'gimplify_cilk_spawn' in 'c-family/cilk.c'.
  5807. In the spawn-helper, the gimplification function
  5808. 'gimplify_call_expr', inserts a function call
  5809. '__cilkrts_detach'. This function is expanded by
  5810. 'builtin_expand_cilk_detach' located in 'c-family/cilk.c'.
  5811. * '_Cilk_sync': '_Cilk_sync' is parsed like a keyword. During
  5812. gimplification, the function 'gimplify_cilk_sync' in
  5813. 'c-family/cilk.c', will replace this keyword with a set of
  5814. functions that are stored in the Cilk runtime. One of the
  5815. internal functions inserted during gimplification,
  5816. '__cilkrts_pop_frame' must be expanded by the compiler and is
  5817. done by 'builtin_expand_cilk_pop_frame' in 'cilk-common.c'.
  5818. Documentation about Cilk Plus and language specification is provided
  5819. under the "Learn" section in <https://www.cilkplus.org>. It is worth
  5820. mentioning that the current implementation follows ABI 1.1.
  5821. 
  5822. File: gccint.info, Node: Gimplification pass, Next: Pass manager, Prev: Cilk Plus Transformation, Up: Passes
  5823. 9.3 Gimplification pass
  5824. =======================
  5825. "Gimplification" is a whimsical term for the process of converting the
  5826. intermediate representation of a function into the GIMPLE language
  5827. (*note GIMPLE::). The term stuck, and so words like "gimplification",
  5828. "gimplify", "gimplifier" and the like are sprinkled throughout this
  5829. section of code.
  5830. While a front end may certainly choose to generate GIMPLE directly if
  5831. it chooses, this can be a moderately complex process unless the
  5832. intermediate language used by the front end is already fairly simple.
  5833. Usually it is easier to generate GENERIC trees plus extensions and let
  5834. the language-independent gimplifier do most of the work.
  5835. The main entry point to this pass is 'gimplify_function_tree' located
  5836. in 'gimplify.c'. From here we process the entire function gimplifying
  5837. each statement in turn. The main workhorse for this pass is
  5838. 'gimplify_expr'. Approximately everything passes through here at least
  5839. once, and it is from here that we invoke the 'lang_hooks.gimplify_expr'
  5840. callback.
  5841. The callback should examine the expression in question and return
  5842. 'GS_UNHANDLED' if the expression is not a language specific construct
  5843. that requires attention. Otherwise it should alter the expression in
  5844. some way to such that forward progress is made toward producing valid
  5845. GIMPLE. If the callback is certain that the transformation is complete
  5846. and the expression is valid GIMPLE, it should return 'GS_ALL_DONE'.
  5847. Otherwise it should return 'GS_OK', which will cause the expression to
  5848. be processed again. If the callback encounters an error during the
  5849. transformation (because the front end is relying on the gimplification
  5850. process to finish semantic checks), it should return 'GS_ERROR'.
  5851. 
  5852. File: gccint.info, Node: Pass manager, Next: Tree SSA passes, Prev: Gimplification pass, Up: Passes
  5853. 9.4 Pass manager
  5854. ================
  5855. The pass manager is located in 'passes.c', 'tree-optimize.c' and
  5856. 'tree-pass.h'. It processes passes as described in 'passes.def'. Its
  5857. job is to run all of the individual passes in the correct order, and
  5858. take care of standard bookkeeping that applies to every pass.
  5859. The theory of operation is that each pass defines a structure that
  5860. represents everything we need to know about that pass--when it should be
  5861. run, how it should be run, what intermediate language form or
  5862. on-the-side data structures it needs. We register the pass to be run in
  5863. some particular order, and the pass manager arranges for everything to
  5864. happen in the correct order.
  5865. The actuality doesn't completely live up to the theory at present.
  5866. Command-line switches and 'timevar_id_t' enumerations must still be
  5867. defined elsewhere. The pass manager validates constraints but does not
  5868. attempt to (re-)generate data structures or lower intermediate language
  5869. form based on the requirements of the next pass. Nevertheless, what is
  5870. present is useful, and a far sight better than nothing at all.
  5871. Each pass should have a unique name. Each pass may have its own dump
  5872. file (for GCC debugging purposes). Passes with a name starting with a
  5873. star do not dump anything. Sometimes passes are supposed to share a
  5874. dump file / option name. To still give these unique names, you can use
  5875. a prefix that is delimited by a space from the part that is used for the
  5876. dump file / option name. E.g. When the pass name is "ud dce", the name
  5877. used for dump file/options is "dce".
  5878. TODO: describe the global variables set up by the pass manager, and a
  5879. brief description of how a new pass should use it. I need to look at
  5880. what info RTL passes use first...
  5881. 
  5882. File: gccint.info, Node: Tree SSA passes, Next: RTL passes, Prev: Pass manager, Up: Passes
  5883. 9.5 Tree SSA passes
  5884. ===================
  5885. The following briefly describes the Tree optimization passes that are
  5886. run after gimplification and what source files they are located in.
  5887. * Remove useless statements
  5888. This pass is an extremely simple sweep across the gimple code in
  5889. which we identify obviously dead code and remove it. Here we do
  5890. things like simplify 'if' statements with constant conditions,
  5891. remove exception handling constructs surrounding code that
  5892. obviously cannot throw, remove lexical bindings that contain no
  5893. variables, and other assorted simplistic cleanups. The idea is to
  5894. get rid of the obvious stuff quickly rather than wait until later
  5895. when it's more work to get rid of it. This pass is located in
  5896. 'tree-cfg.c' and described by 'pass_remove_useless_stmts'.
  5897. * OpenMP lowering
  5898. If OpenMP generation ('-fopenmp') is enabled, this pass lowers
  5899. OpenMP constructs into GIMPLE.
  5900. Lowering of OpenMP constructs involves creating replacement
  5901. expressions for local variables that have been mapped using data
  5902. sharing clauses, exposing the control flow of most synchronization
  5903. directives and adding region markers to facilitate the creation of
  5904. the control flow graph. The pass is located in 'omp-low.c' and is
  5905. described by 'pass_lower_omp'.
  5906. * OpenMP expansion
  5907. If OpenMP generation ('-fopenmp') is enabled, this pass expands
  5908. parallel regions into their own functions to be invoked by the
  5909. thread library. The pass is located in 'omp-low.c' and is
  5910. described by 'pass_expand_omp'.
  5911. * Lower control flow
  5912. This pass flattens 'if' statements ('COND_EXPR') and moves lexical
  5913. bindings ('BIND_EXPR') out of line. After this pass, all 'if'
  5914. statements will have exactly two 'goto' statements in its 'then'
  5915. and 'else' arms. Lexical binding information for each statement
  5916. will be found in 'TREE_BLOCK' rather than being inferred from its
  5917. position under a 'BIND_EXPR'. This pass is found in 'gimple-low.c'
  5918. and is described by 'pass_lower_cf'.
  5919. * Lower exception handling control flow
  5920. This pass decomposes high-level exception handling constructs
  5921. ('TRY_FINALLY_EXPR' and 'TRY_CATCH_EXPR') into a form that
  5922. explicitly represents the control flow involved. After this pass,
  5923. 'lookup_stmt_eh_region' will return a non-negative number for any
  5924. statement that may have EH control flow semantics; examine
  5925. 'tree_can_throw_internal' or 'tree_can_throw_external' for exact
  5926. semantics. Exact control flow may be extracted from
  5927. 'foreach_reachable_handler'. The EH region nesting tree is defined
  5928. in 'except.h' and built in 'except.c'. The lowering pass itself is
  5929. in 'tree-eh.c' and is described by 'pass_lower_eh'.
  5930. * Build the control flow graph
  5931. This pass decomposes a function into basic blocks and creates all
  5932. of the edges that connect them. It is located in 'tree-cfg.c' and
  5933. is described by 'pass_build_cfg'.
  5934. * Find all referenced variables
  5935. This pass walks the entire function and collects an array of all
  5936. variables referenced in the function, 'referenced_vars'. The index
  5937. at which a variable is found in the array is used as a UID for the
  5938. variable within this function. This data is needed by the SSA
  5939. rewriting routines. The pass is located in 'tree-dfa.c' and is
  5940. described by 'pass_referenced_vars'.
  5941. * Enter static single assignment form
  5942. This pass rewrites the function such that it is in SSA form. After
  5943. this pass, all 'is_gimple_reg' variables will be referenced by
  5944. 'SSA_NAME', and all occurrences of other variables will be
  5945. annotated with 'VDEFS' and 'VUSES'; PHI nodes will have been
  5946. inserted as necessary for each basic block. This pass is located
  5947. in 'tree-ssa.c' and is described by 'pass_build_ssa'.
  5948. * Warn for uninitialized variables
  5949. This pass scans the function for uses of 'SSA_NAME's that are fed
  5950. by default definition. For non-parameter variables, such uses are
  5951. uninitialized. The pass is run twice, before and after
  5952. optimization (if turned on). In the first pass we only warn for
  5953. uses that are positively uninitialized; in the second pass we warn
  5954. for uses that are possibly uninitialized. The pass is located in
  5955. 'tree-ssa.c' and is defined by 'pass_early_warn_uninitialized' and
  5956. 'pass_late_warn_uninitialized'.
  5957. * Dead code elimination
  5958. This pass scans the function for statements without side effects
  5959. whose result is unused. It does not do memory life analysis, so
  5960. any value that is stored in memory is considered used. The pass is
  5961. run multiple times throughout the optimization process. It is
  5962. located in 'tree-ssa-dce.c' and is described by 'pass_dce'.
  5963. * Dominator optimizations
  5964. This pass performs trivial dominator-based copy and constant
  5965. propagation, expression simplification, and jump threading. It is
  5966. run multiple times throughout the optimization process. It is
  5967. located in 'tree-ssa-dom.c' and is described by 'pass_dominator'.
  5968. * Forward propagation of single-use variables
  5969. This pass attempts to remove redundant computation by substituting
  5970. variables that are used once into the expression that uses them and
  5971. seeing if the result can be simplified. It is located in
  5972. 'tree-ssa-forwprop.c' and is described by 'pass_forwprop'.
  5973. * Copy Renaming
  5974. This pass attempts to change the name of compiler temporaries
  5975. involved in copy operations such that SSA->normal can coalesce the
  5976. copy away. When compiler temporaries are copies of user variables,
  5977. it also renames the compiler temporary to the user variable
  5978. resulting in better use of user symbols. It is located in
  5979. 'tree-ssa-copyrename.c' and is described by 'pass_copyrename'.
  5980. * PHI node optimizations
  5981. This pass recognizes forms of PHI inputs that can be represented as
  5982. conditional expressions and rewrites them into straight line code.
  5983. It is located in 'tree-ssa-phiopt.c' and is described by
  5984. 'pass_phiopt'.
  5985. * May-alias optimization
  5986. This pass performs a flow sensitive SSA-based points-to analysis.
  5987. The resulting may-alias, must-alias, and escape analysis
  5988. information is used to promote variables from in-memory addressable
  5989. objects to non-aliased variables that can be renamed into SSA form.
  5990. We also update the 'VDEF'/'VUSE' memory tags for non-renameable
  5991. aggregates so that we get fewer false kills. The pass is located
  5992. in 'tree-ssa-alias.c' and is described by 'pass_may_alias'.
  5993. Interprocedural points-to information is located in
  5994. 'tree-ssa-structalias.c' and described by 'pass_ipa_pta'.
  5995. * Profiling
  5996. This pass instruments the function in order to collect runtime
  5997. block and value profiling data. Such data may be fed back into the
  5998. compiler on a subsequent run so as to allow optimization based on
  5999. expected execution frequencies. The pass is located in
  6000. 'tree-profile.c' and is described by 'pass_ipa_tree_profile'.
  6001. * Static profile estimation
  6002. This pass implements series of heuristics to guess propababilities
  6003. of branches. The resulting predictions are turned into edge
  6004. profile by propagating branches across the control flow graphs.
  6005. The pass is located in 'tree-profile.c' and is described by
  6006. 'pass_profile'.
  6007. * Lower complex arithmetic
  6008. This pass rewrites complex arithmetic operations into their
  6009. component scalar arithmetic operations. The pass is located in
  6010. 'tree-complex.c' and is described by 'pass_lower_complex'.
  6011. * Scalar replacement of aggregates
  6012. This pass rewrites suitable non-aliased local aggregate variables
  6013. into a set of scalar variables. The resulting scalar variables are
  6014. rewritten into SSA form, which allows subsequent optimization
  6015. passes to do a significantly better job with them. The pass is
  6016. located in 'tree-sra.c' and is described by 'pass_sra'.
  6017. * Dead store elimination
  6018. This pass eliminates stores to memory that are subsequently
  6019. overwritten by another store, without any intervening loads. The
  6020. pass is located in 'tree-ssa-dse.c' and is described by 'pass_dse'.
  6021. * Tail recursion elimination
  6022. This pass transforms tail recursion into a loop. It is located in
  6023. 'tree-tailcall.c' and is described by 'pass_tail_recursion'.
  6024. * Forward store motion
  6025. This pass sinks stores and assignments down the flowgraph closer to
  6026. their use point. The pass is located in 'tree-ssa-sink.c' and is
  6027. described by 'pass_sink_code'.
  6028. * Partial redundancy elimination
  6029. This pass eliminates partially redundant computations, as well as
  6030. performing load motion. The pass is located in 'tree-ssa-pre.c'
  6031. and is described by 'pass_pre'.
  6032. Just before partial redundancy elimination, if
  6033. '-funsafe-math-optimizations' is on, GCC tries to convert divisions
  6034. to multiplications by the reciprocal. The pass is located in
  6035. 'tree-ssa-math-opts.c' and is described by 'pass_cse_reciprocal'.
  6036. * Full redundancy elimination
  6037. This is a simpler form of PRE that only eliminates redundancies
  6038. that occur on all paths. It is located in 'tree-ssa-pre.c' and
  6039. described by 'pass_fre'.
  6040. * Loop optimization
  6041. The main driver of the pass is placed in 'tree-ssa-loop.c' and
  6042. described by 'pass_loop'.
  6043. The optimizations performed by this pass are:
  6044. Loop invariant motion. This pass moves only invariants that would
  6045. be hard to handle on RTL level (function calls, operations that
  6046. expand to nontrivial sequences of insns). With '-funswitch-loops'
  6047. it also moves operands of conditions that are invariant out of the
  6048. loop, so that we can use just trivial invariantness analysis in
  6049. loop unswitching. The pass also includes store motion. The pass
  6050. is implemented in 'tree-ssa-loop-im.c'.
  6051. Canonical induction variable creation. This pass creates a simple
  6052. counter for number of iterations of the loop and replaces the exit
  6053. condition of the loop using it, in case when a complicated analysis
  6054. is necessary to determine the number of iterations. Later
  6055. optimizations then may determine the number easily. The pass is
  6056. implemented in 'tree-ssa-loop-ivcanon.c'.
  6057. Induction variable optimizations. This pass performs standard
  6058. induction variable optimizations, including strength reduction,
  6059. induction variable merging and induction variable elimination. The
  6060. pass is implemented in 'tree-ssa-loop-ivopts.c'.
  6061. Loop unswitching. This pass moves the conditional jumps that are
  6062. invariant out of the loops. To achieve this, a duplicate of the
  6063. loop is created for each possible outcome of conditional jump(s).
  6064. The pass is implemented in 'tree-ssa-loop-unswitch.c'.
  6065. Loop splitting. If a loop contains a conditional statement that is
  6066. always true for one part of the iteration space and false for the
  6067. other this pass splits the loop into two, one dealing with one side
  6068. the other only with the other, thereby removing one inner-loop
  6069. conditional. The pass is implemented in 'tree-ssa-loop-split.c'.
  6070. The optimizations also use various utility functions contained in
  6071. 'tree-ssa-loop-manip.c', 'cfgloop.c', 'cfgloopanal.c' and
  6072. 'cfgloopmanip.c'.
  6073. Vectorization. This pass transforms loops to operate on vector
  6074. types instead of scalar types. Data parallelism across loop
  6075. iterations is exploited to group data elements from consecutive
  6076. iterations into a vector and operate on them in parallel.
  6077. Depending on available target support the loop is conceptually
  6078. unrolled by a factor 'VF' (vectorization factor), which is the
  6079. number of elements operated upon in parallel in each iteration, and
  6080. the 'VF' copies of each scalar operation are fused to form a vector
  6081. operation. Additional loop transformations such as peeling and
  6082. versioning may take place to align the number of iterations, and to
  6083. align the memory accesses in the loop. The pass is implemented in
  6084. 'tree-vectorizer.c' (the main driver), 'tree-vect-loop.c' and
  6085. 'tree-vect-loop-manip.c' (loop specific parts and general loop
  6086. utilities), 'tree-vect-slp' (loop-aware SLP functionality),
  6087. 'tree-vect-stmts.c' and 'tree-vect-data-refs.c'. Analysis of data
  6088. references is in 'tree-data-ref.c'.
  6089. SLP Vectorization. This pass performs vectorization of
  6090. straight-line code. The pass is implemented in 'tree-vectorizer.c'
  6091. (the main driver), 'tree-vect-slp.c', 'tree-vect-stmts.c' and
  6092. 'tree-vect-data-refs.c'.
  6093. Autoparallelization. This pass splits the loop iteration space to
  6094. run into several threads. The pass is implemented in
  6095. 'tree-parloops.c'.
  6096. Graphite is a loop transformation framework based on the polyhedral
  6097. model. Graphite stands for Gimple Represented as Polyhedra. The
  6098. internals of this infrastructure are documented in
  6099. <http://gcc.gnu.org/wiki/Graphite>. The passes working on this
  6100. representation are implemented in the various 'graphite-*' files.
  6101. * Tree level if-conversion for vectorizer
  6102. This pass applies if-conversion to simple loops to help vectorizer.
  6103. We identify if convertible loops, if-convert statements and merge
  6104. basic blocks in one big block. The idea is to present loop in such
  6105. form so that vectorizer can have one to one mapping between
  6106. statements and available vector operations. This pass is located
  6107. in 'tree-if-conv.c' and is described by 'pass_if_conversion'.
  6108. * Conditional constant propagation
  6109. This pass relaxes a lattice of values in order to identify those
  6110. that must be constant even in the presence of conditional branches.
  6111. The pass is located in 'tree-ssa-ccp.c' and is described by
  6112. 'pass_ccp'.
  6113. A related pass that works on memory loads and stores, and not just
  6114. register values, is located in 'tree-ssa-ccp.c' and described by
  6115. 'pass_store_ccp'.
  6116. * Conditional copy propagation
  6117. This is similar to constant propagation but the lattice of values
  6118. is the "copy-of" relation. It eliminates redundant copies from the
  6119. code. The pass is located in 'tree-ssa-copy.c' and described by
  6120. 'pass_copy_prop'.
  6121. A related pass that works on memory copies, and not just register
  6122. copies, is located in 'tree-ssa-copy.c' and described by
  6123. 'pass_store_copy_prop'.
  6124. * Value range propagation
  6125. This transformation is similar to constant propagation but instead
  6126. of propagating single constant values, it propagates known value
  6127. ranges. The implementation is based on Patterson's range
  6128. propagation algorithm (Accurate Static Branch Prediction by Value
  6129. Range Propagation, J. R. C. Patterson, PLDI '95). In contrast to
  6130. Patterson's algorithm, this implementation does not propagate
  6131. branch probabilities nor it uses more than a single range per SSA
  6132. name. This means that the current implementation cannot be used
  6133. for branch prediction (though adapting it would not be difficult).
  6134. The pass is located in 'tree-vrp.c' and is described by 'pass_vrp'.
  6135. * Folding built-in functions
  6136. This pass simplifies built-in functions, as applicable, with
  6137. constant arguments or with inferable string lengths. It is located
  6138. in 'tree-ssa-ccp.c' and is described by 'pass_fold_builtins'.
  6139. * Split critical edges
  6140. This pass identifies critical edges and inserts empty basic blocks
  6141. such that the edge is no longer critical. The pass is located in
  6142. 'tree-cfg.c' and is described by 'pass_split_crit_edges'.
  6143. * Control dependence dead code elimination
  6144. This pass is a stronger form of dead code elimination that can
  6145. eliminate unnecessary control flow statements. It is located in
  6146. 'tree-ssa-dce.c' and is described by 'pass_cd_dce'.
  6147. * Tail call elimination
  6148. This pass identifies function calls that may be rewritten into
  6149. jumps. No code transformation is actually applied here, but the
  6150. data and control flow problem is solved. The code transformation
  6151. requires target support, and so is delayed until RTL. In the
  6152. meantime 'CALL_EXPR_TAILCALL' is set indicating the possibility.
  6153. The pass is located in 'tree-tailcall.c' and is described by
  6154. 'pass_tail_calls'. The RTL transformation is handled by
  6155. 'fixup_tail_calls' in 'calls.c'.
  6156. * Warn for function return without value
  6157. For non-void functions, this pass locates return statements that do
  6158. not specify a value and issues a warning. Such a statement may
  6159. have been injected by falling off the end of the function. This
  6160. pass is run last so that we have as much time as possible to prove
  6161. that the statement is not reachable. It is located in 'tree-cfg.c'
  6162. and is described by 'pass_warn_function_return'.
  6163. * Leave static single assignment form
  6164. This pass rewrites the function such that it is in normal form. At
  6165. the same time, we eliminate as many single-use temporaries as
  6166. possible, so the intermediate language is no longer GIMPLE, but
  6167. GENERIC. The pass is located in 'tree-outof-ssa.c' and is
  6168. described by 'pass_del_ssa'.
  6169. * Merge PHI nodes that feed into one another
  6170. This is part of the CFG cleanup passes. It attempts to join PHI
  6171. nodes from a forwarder CFG block into another block with PHI nodes.
  6172. The pass is located in 'tree-cfgcleanup.c' and is described by
  6173. 'pass_merge_phi'.
  6174. * Return value optimization
  6175. If a function always returns the same local variable, and that
  6176. local variable is an aggregate type, then the variable is replaced
  6177. with the return value for the function (i.e., the function's
  6178. DECL_RESULT). This is equivalent to the C++ named return value
  6179. optimization applied to GIMPLE. The pass is located in
  6180. 'tree-nrv.c' and is described by 'pass_nrv'.
  6181. * Return slot optimization
  6182. If a function returns a memory object and is called as 'var =
  6183. foo()', this pass tries to change the call so that the address of
  6184. 'var' is sent to the caller to avoid an extra memory copy. This
  6185. pass is located in 'tree-nrv.c' and is described by
  6186. 'pass_return_slot'.
  6187. * Optimize calls to '__builtin_object_size'
  6188. This is a propagation pass similar to CCP that tries to remove
  6189. calls to '__builtin_object_size' when the size of the object can be
  6190. computed at compile-time. This pass is located in
  6191. 'tree-object-size.c' and is described by 'pass_object_sizes'.
  6192. * Loop invariant motion
  6193. This pass removes expensive loop-invariant computations out of
  6194. loops. The pass is located in 'tree-ssa-loop.c' and described by
  6195. 'pass_lim'.
  6196. * Loop nest optimizations
  6197. This is a family of loop transformations that works on loop nests.
  6198. It includes loop interchange, scaling, skewing and reversal and
  6199. they are all geared to the optimization of data locality in array
  6200. traversals and the removal of dependencies that hamper
  6201. optimizations such as loop parallelization and vectorization. The
  6202. pass is located in 'tree-loop-linear.c' and described by
  6203. 'pass_linear_transform'.
  6204. * Removal of empty loops
  6205. This pass removes loops with no code in them. The pass is located
  6206. in 'tree-ssa-loop-ivcanon.c' and described by 'pass_empty_loop'.
  6207. * Unrolling of small loops
  6208. This pass completely unrolls loops with few iterations. The pass
  6209. is located in 'tree-ssa-loop-ivcanon.c' and described by
  6210. 'pass_complete_unroll'.
  6211. * Predictive commoning
  6212. This pass makes the code reuse the computations from the previous
  6213. iterations of the loops, especially loads and stores to memory. It
  6214. does so by storing the values of these computations to a bank of
  6215. temporary variables that are rotated at the end of loop. To avoid
  6216. the need for this rotation, the loop is then unrolled and the
  6217. copies of the loop body are rewritten to use the appropriate
  6218. version of the temporary variable. This pass is located in
  6219. 'tree-predcom.c' and described by 'pass_predcom'.
  6220. * Array prefetching
  6221. This pass issues prefetch instructions for array references inside
  6222. loops. The pass is located in 'tree-ssa-loop-prefetch.c' and
  6223. described by 'pass_loop_prefetch'.
  6224. * Reassociation
  6225. This pass rewrites arithmetic expressions to enable optimizations
  6226. that operate on them, like redundancy elimination and
  6227. vectorization. The pass is located in 'tree-ssa-reassoc.c' and
  6228. described by 'pass_reassoc'.
  6229. * Optimization of 'stdarg' functions
  6230. This pass tries to avoid the saving of register arguments into the
  6231. stack on entry to 'stdarg' functions. If the function doesn't use
  6232. any 'va_start' macros, no registers need to be saved. If
  6233. 'va_start' macros are used, the 'va_list' variables don't escape
  6234. the function, it is only necessary to save registers that will be
  6235. used in 'va_arg' macros. For instance, if 'va_arg' is only used
  6236. with integral types in the function, floating point registers don't
  6237. need to be saved. This pass is located in 'tree-stdarg.c' and
  6238. described by 'pass_stdarg'.
  6239. 
  6240. File: gccint.info, Node: RTL passes, Next: Optimization info, Prev: Tree SSA passes, Up: Passes
  6241. 9.6 RTL passes
  6242. ==============
  6243. The following briefly describes the RTL generation and optimization
  6244. passes that are run after the Tree optimization passes.
  6245. * RTL generation
  6246. The source files for RTL generation include 'stmt.c', 'calls.c',
  6247. 'expr.c', 'explow.c', 'expmed.c', 'function.c', 'optabs.c' and
  6248. 'emit-rtl.c'. Also, the file 'insn-emit.c', generated from the
  6249. machine description by the program 'genemit', is used in this pass.
  6250. The header file 'expr.h' is used for communication within this
  6251. pass.
  6252. The header files 'insn-flags.h' and 'insn-codes.h', generated from
  6253. the machine description by the programs 'genflags' and 'gencodes',
  6254. tell this pass which standard names are available for use and which
  6255. patterns correspond to them.
  6256. * Generation of exception landing pads
  6257. This pass generates the glue that handles communication between the
  6258. exception handling library routines and the exception handlers
  6259. within the function. Entry points in the function that are invoked
  6260. by the exception handling library are called "landing pads". The
  6261. code for this pass is located in 'except.c'.
  6262. * Control flow graph cleanup
  6263. This pass removes unreachable code, simplifies jumps to next, jumps
  6264. to jump, jumps across jumps, etc. The pass is run multiple times.
  6265. For historical reasons, it is occasionally referred to as the "jump
  6266. optimization pass". The bulk of the code for this pass is in
  6267. 'cfgcleanup.c', and there are support routines in 'cfgrtl.c' and
  6268. 'jump.c'.
  6269. * Forward propagation of single-def values
  6270. This pass attempts to remove redundant computation by substituting
  6271. variables that come from a single definition, and seeing if the
  6272. result can be simplified. It performs copy propagation and
  6273. addressing mode selection. The pass is run twice, with values
  6274. being propagated into loops only on the second run. The code is
  6275. located in 'fwprop.c'.
  6276. * Common subexpression elimination
  6277. This pass removes redundant computation within basic blocks, and
  6278. optimizes addressing modes based on cost. The pass is run twice.
  6279. The code for this pass is located in 'cse.c'.
  6280. * Global common subexpression elimination
  6281. This pass performs two different types of GCSE depending on whether
  6282. you are optimizing for size or not (LCM based GCSE tends to
  6283. increase code size for a gain in speed, while Morel-Renvoise based
  6284. GCSE does not). When optimizing for size, GCSE is done using
  6285. Morel-Renvoise Partial Redundancy Elimination, with the exception
  6286. that it does not try to move invariants out of loops--that is left
  6287. to the loop optimization pass. If MR PRE GCSE is done, code
  6288. hoisting (aka unification) is also done, as well as load motion.
  6289. If you are optimizing for speed, LCM (lazy code motion) based GCSE
  6290. is done. LCM is based on the work of Knoop, Ruthing, and Steffen.
  6291. LCM based GCSE also does loop invariant code motion. We also
  6292. perform load and store motion when optimizing for speed.
  6293. Regardless of which type of GCSE is used, the GCSE pass also
  6294. performs global constant and copy propagation. The source file for
  6295. this pass is 'gcse.c', and the LCM routines are in 'lcm.c'.
  6296. * Loop optimization
  6297. This pass performs several loop related optimizations. The source
  6298. files 'cfgloopanal.c' and 'cfgloopmanip.c' contain generic loop
  6299. analysis and manipulation code. Initialization and finalization of
  6300. loop structures is handled by 'loop-init.c'. A loop invariant
  6301. motion pass is implemented in 'loop-invariant.c'. Basic block
  6302. level optimizations--unrolling, and peeling loops-- are implemented
  6303. in 'loop-unroll.c'. Replacing of the exit condition of loops by
  6304. special machine-dependent instructions is handled by
  6305. 'loop-doloop.c'.
  6306. * Jump bypassing
  6307. This pass is an aggressive form of GCSE that transforms the control
  6308. flow graph of a function by propagating constants into conditional
  6309. branch instructions. The source file for this pass is 'gcse.c'.
  6310. * If conversion
  6311. This pass attempts to replace conditional branches and surrounding
  6312. assignments with arithmetic, boolean value producing comparison
  6313. instructions, and conditional move instructions. In the very last
  6314. invocation after reload/LRA, it will generate predicated
  6315. instructions when supported by the target. The code is located in
  6316. 'ifcvt.c'.
  6317. * Web construction
  6318. This pass splits independent uses of each pseudo-register. This
  6319. can improve effect of the other transformation, such as CSE or
  6320. register allocation. The code for this pass is located in 'web.c'.
  6321. * Instruction combination
  6322. This pass attempts to combine groups of two or three instructions
  6323. that are related by data flow into single instructions. It
  6324. combines the RTL expressions for the instructions by substitution,
  6325. simplifies the result using algebra, and then attempts to match the
  6326. result against the machine description. The code is located in
  6327. 'combine.c'.
  6328. * Mode switching optimization
  6329. This pass looks for instructions that require the processor to be
  6330. in a specific "mode" and minimizes the number of mode changes
  6331. required to satisfy all users. What these modes are, and what they
  6332. apply to are completely target-specific. The code for this pass is
  6333. located in 'mode-switching.c'.
  6334. * Modulo scheduling
  6335. This pass looks at innermost loops and reorders their instructions
  6336. by overlapping different iterations. Modulo scheduling is
  6337. performed immediately before instruction scheduling. The code for
  6338. this pass is located in 'modulo-sched.c'.
  6339. * Instruction scheduling
  6340. This pass looks for instructions whose output will not be available
  6341. by the time that it is used in subsequent instructions. Memory
  6342. loads and floating point instructions often have this behavior on
  6343. RISC machines. It re-orders instructions within a basic block to
  6344. try to separate the definition and use of items that otherwise
  6345. would cause pipeline stalls. This pass is performed twice, before
  6346. and after register allocation. The code for this pass is located
  6347. in 'haifa-sched.c', 'sched-deps.c', 'sched-ebb.c', 'sched-rgn.c'
  6348. and 'sched-vis.c'.
  6349. * Register allocation
  6350. These passes make sure that all occurrences of pseudo registers are
  6351. eliminated, either by allocating them to a hard register, replacing
  6352. them by an equivalent expression (e.g. a constant) or by placing
  6353. them on the stack. This is done in several subpasses:
  6354. * The integrated register allocator (IRA). It is called
  6355. integrated because coalescing, register live range splitting,
  6356. and hard register preferencing are done on-the-fly during
  6357. coloring. It also has better integration with the reload/LRA
  6358. pass. Pseudo-registers spilled by the allocator or the
  6359. reload/LRA have still a chance to get hard-registers if the
  6360. reload/LRA evicts some pseudo-registers from hard-registers.
  6361. The allocator helps to choose better pseudos for spilling
  6362. based on their live ranges and to coalesce stack slots
  6363. allocated for the spilled pseudo-registers. IRA is a regional
  6364. register allocator which is transformed into Chaitin-Briggs
  6365. allocator if there is one region. By default, IRA chooses
  6366. regions using register pressure but the user can force it to
  6367. use one region or regions corresponding to all loops.
  6368. Source files of the allocator are 'ira.c', 'ira-build.c',
  6369. 'ira-costs.c', 'ira-conflicts.c', 'ira-color.c', 'ira-emit.c',
  6370. 'ira-lives', plus header files 'ira.h' and 'ira-int.h' used
  6371. for the communication between the allocator and the rest of
  6372. the compiler and between the IRA files.
  6373. * Reloading. This pass renumbers pseudo registers with the
  6374. hardware registers numbers they were allocated. Pseudo
  6375. registers that did not get hard registers are replaced with
  6376. stack slots. Then it finds instructions that are invalid
  6377. because a value has failed to end up in a register, or has
  6378. ended up in a register of the wrong kind. It fixes up these
  6379. instructions by reloading the problematical values temporarily
  6380. into registers. Additional instructions are generated to do
  6381. the copying.
  6382. The reload pass also optionally eliminates the frame pointer
  6383. and inserts instructions to save and restore call-clobbered
  6384. registers around calls.
  6385. Source files are 'reload.c' and 'reload1.c', plus the header
  6386. 'reload.h' used for communication between them.
  6387. * This pass is a modern replacement of the reload pass. Source
  6388. files are 'lra.c', 'lra-assign.c', 'lra-coalesce.c',
  6389. 'lra-constraints.c', 'lra-eliminations.c', 'lra-lives.c',
  6390. 'lra-remat.c', 'lra-spills.c', the header 'lra-int.h' used for
  6391. communication between them, and the header 'lra.h' used for
  6392. communication between LRA and the rest of compiler.
  6393. Unlike the reload pass, intermediate LRA decisions are
  6394. reflected in RTL as much as possible. This reduces the number
  6395. of target-dependent macros and hooks, leaving instruction
  6396. constraints as the primary source of control.
  6397. LRA is run on targets for which TARGET_LRA_P returns true.
  6398. * Basic block reordering
  6399. This pass implements profile guided code positioning. If profile
  6400. information is not available, various types of static analysis are
  6401. performed to make the predictions normally coming from the profile
  6402. feedback (IE execution frequency, branch probability, etc). It is
  6403. implemented in the file 'bb-reorder.c', and the various prediction
  6404. routines are in 'predict.c'.
  6405. * Variable tracking
  6406. This pass computes where the variables are stored at each position
  6407. in code and generates notes describing the variable locations to
  6408. RTL code. The location lists are then generated according to these
  6409. notes to debug information if the debugging information format
  6410. supports location lists. The code is located in 'var-tracking.c'.
  6411. * Delayed branch scheduling
  6412. This optional pass attempts to find instructions that can go into
  6413. the delay slots of other instructions, usually jumps and calls.
  6414. The code for this pass is located in 'reorg.c'.
  6415. * Branch shortening
  6416. On many RISC machines, branch instructions have a limited range.
  6417. Thus, longer sequences of instructions must be used for long
  6418. branches. In this pass, the compiler figures out what how far each
  6419. instruction will be from each other instruction, and therefore
  6420. whether the usual instructions, or the longer sequences, must be
  6421. used for each branch. The code for this pass is located in
  6422. 'final.c'.
  6423. * Register-to-stack conversion
  6424. Conversion from usage of some hard registers to usage of a register
  6425. stack may be done at this point. Currently, this is supported only
  6426. for the floating-point registers of the Intel 80387 coprocessor.
  6427. The code for this pass is located in 'reg-stack.c'.
  6428. * Final
  6429. This pass outputs the assembler code for the function. The source
  6430. files are 'final.c' plus 'insn-output.c'; the latter is generated
  6431. automatically from the machine description by the tool 'genoutput'.
  6432. The header file 'conditions.h' is used for communication between
  6433. these files.
  6434. * Debugging information output
  6435. This is run after final because it must output the stack slot
  6436. offsets for pseudo registers that did not get hard registers.
  6437. Source files are 'dbxout.c' for DBX symbol table format, 'sdbout.c'
  6438. for SDB symbol table format, 'dwarfout.c' for DWARF symbol table
  6439. format, files 'dwarf2out.c' and 'dwarf2asm.c' for DWARF2 symbol
  6440. table format, and 'vmsdbgout.c' for VMS debug symbol table format.
  6441. 
  6442. File: gccint.info, Node: Optimization info, Prev: RTL passes, Up: Passes
  6443. 9.7 Optimization info
  6444. =====================
  6445. This section is describes dump infrastructure which is common to both
  6446. pass dumps as well as optimization dumps. The goal for this
  6447. infrastructure is to provide both gcc developers and users detailed
  6448. information about various compiler transformations and optimizations.
  6449. * Menu:
  6450. * Dump setup:: Setup of optimization dumps.
  6451. * Optimization groups:: Groups made up of optimization passes.
  6452. * Dump files and streams:: Dump output file names and streams.
  6453. * Dump output verbosity:: How much information to dump.
  6454. * Dump types:: Various types of dump functions.
  6455. * Dump examples:: Sample usage.
  6456. 
  6457. File: gccint.info, Node: Dump setup, Next: Optimization groups, Up: Optimization info
  6458. 9.7.1 Dump setup
  6459. ----------------
  6460. A dump_manager class is defined in 'dumpfile.h'. Various passes
  6461. register dumping pass-specific information via 'dump_register' in
  6462. 'passes.c'. During the registration, an optimization pass can select
  6463. its optimization group (*note Optimization groups::). After that
  6464. optimization information corresponding to the entire group (presumably
  6465. from multiple passes) can be output via command-line switches. Note
  6466. that if a pass does not fit into any of the pre-defined groups, it can
  6467. select 'OPTGROUP_NONE'.
  6468. Note that in general, a pass need not know its dump output file name,
  6469. whether certain flags are enabled, etc. However, for legacy reasons,
  6470. passes could also call 'dump_begin' which returns a stream in case the
  6471. particular pass has optimization dumps enabled. A pass could call
  6472. 'dump_end' when the dump has ended. These methods should go away once
  6473. all the passes are converted to use the new dump infrastructure.
  6474. The recommended way to setup the dump output is via 'dump_start' and
  6475. 'dump_end'.
  6476. 
  6477. File: gccint.info, Node: Optimization groups, Next: Dump files and streams, Prev: Dump setup, Up: Optimization info
  6478. 9.7.2 Optimization groups
  6479. -------------------------
  6480. The optimization passes are grouped into several categories. Currently
  6481. defined categories in 'dumpfile.h' are
  6482. 'OPTGROUP_IPA'
  6483. IPA optimization passes. Enabled by '-ipa'
  6484. 'OPTGROUP_LOOP'
  6485. Loop optimization passes. Enabled by '-loop'.
  6486. 'OPTGROUP_INLINE'
  6487. Inlining passes. Enabled by '-inline'.
  6488. 'OPTGROUP_OMP'
  6489. OMP (Offloading and Multi Processing) passes. Enabled by '-omp'.
  6490. 'OPTGROUP_VEC'
  6491. Vectorization passes. Enabled by '-vec'.
  6492. 'OPTGROUP_OTHER'
  6493. All other optimization passes which do not fall into one of the
  6494. above.
  6495. 'OPTGROUP_ALL'
  6496. All optimization passes. Enabled by '-optall'.
  6497. By using groups a user could selectively enable optimization
  6498. information only for a group of passes. By default, the optimization
  6499. information for all the passes is dumped.
  6500. 
  6501. File: gccint.info, Node: Dump files and streams, Next: Dump output verbosity, Prev: Optimization groups, Up: Optimization info
  6502. 9.7.3 Dump files and streams
  6503. ----------------------------
  6504. There are two separate output streams available for outputting
  6505. optimization information from passes. Note that both these streams
  6506. accept 'stderr' and 'stdout' as valid streams and thus it is possible to
  6507. dump output to standard output or error. This is specially handy for
  6508. outputting all available information in a single file by redirecting
  6509. 'stderr'.
  6510. 'pstream'
  6511. This stream is for pass-specific dump output. For example,
  6512. '-fdump-tree-vect=foo.v' dumps tree vectorization pass output into
  6513. the given file name 'foo.v'. If the file name is not provided, the
  6514. default file name is based on the source file and pass number.
  6515. Note that one could also use special file names 'stdout' and
  6516. 'stderr' for dumping to standard output and standard error
  6517. respectively.
  6518. 'alt_stream'
  6519. This steam is used for printing optimization specific output in
  6520. response to the '-fopt-info'. Again a file name can be given. If
  6521. the file name is not given, it defaults to 'stderr'.
  6522. 
  6523. File: gccint.info, Node: Dump output verbosity, Next: Dump types, Prev: Dump files and streams, Up: Optimization info
  6524. 9.7.4 Dump output verbosity
  6525. ---------------------------
  6526. The dump verbosity has the following options
  6527. 'optimized'
  6528. Print information when an optimization is successfully applied. It
  6529. is up to a pass to decide which information is relevant. For
  6530. example, the vectorizer passes print the source location of loops
  6531. which got successfully vectorized.
  6532. 'missed'
  6533. Print information about missed optimizations. Individual passes
  6534. control which information to include in the output. For example,
  6535. gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  6536. will print information about missed optimization opportunities from
  6537. vectorization passes on stderr.
  6538. 'note'
  6539. Print verbose information about optimizations, such as certain
  6540. transformations, more detailed messages about decisions etc.
  6541. 'all'
  6542. Print detailed optimization information. This includes OPTIMIZED,
  6543. MISSED, and NOTE.
  6544. 
  6545. File: gccint.info, Node: Dump types, Next: Dump examples, Prev: Dump output verbosity, Up: Optimization info
  6546. 9.7.5 Dump types
  6547. ----------------
  6548. 'dump_printf'
  6549. This is a generic method for doing formatted output. It takes an
  6550. additional argument 'dump_kind' which signifies the type of dump.
  6551. This method outputs information only when the dumps are enabled for
  6552. this particular 'dump_kind'. Note that the caller doesn't need to
  6553. know if the particular dump is enabled or not, or even the file
  6554. name. The caller only needs to decide which dump output
  6555. information is relevant, and under what conditions. This
  6556. determines the associated flags.
  6557. Consider the following example from 'loop-unroll.c' where an
  6558. informative message about a loop (along with its location) is
  6559. printed when any of the following flags is enabled
  6560. - optimization messages
  6561. - RTL dumps
  6562. - detailed dumps
  6563. int report_flags = MSG_OPTIMIZED_LOCATIONS | TDF_RTL | TDF_DETAILS;
  6564. dump_printf_loc (report_flags, locus,
  6565. "loop turned into non-loop; it never loops.\n");
  6566. 'dump_basic_block'
  6567. Output basic block.
  6568. 'dump_generic_expr'
  6569. Output generic expression.
  6570. 'dump_gimple_stmt'
  6571. Output gimple statement.
  6572. Note that the above methods also have variants prefixed with
  6573. '_loc', such as 'dump_printf_loc', which are similar except they
  6574. also output the source location information.
  6575. 
  6576. File: gccint.info, Node: Dump examples, Prev: Dump types, Up: Optimization info
  6577. 9.7.6 Dump examples
  6578. -------------------
  6579. gcc -O3 -fopt-info-missed=missed.all
  6580. outputs missed optimization report from all the passes into
  6581. 'missed.all'.
  6582. As another example,
  6583. gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  6584. will output information about missed optimizations as well as optimized
  6585. locations from all the inlining passes into 'inline.txt'.
  6586. If the FILENAME is provided, then the dumps from all the applicable
  6587. optimizations are concatenated into the 'filename'. Otherwise the dump
  6588. is output onto 'stderr'. If OPTIONS is omitted, it defaults to
  6589. 'all-all', which means dump all available optimization info from all the
  6590. passes. In the following example, all optimization info is output on to
  6591. 'stderr'.
  6592. gcc -O3 -fopt-info
  6593. Note that '-fopt-info-vec-missed' behaves the same as
  6594. '-fopt-info-missed-vec'.
  6595. As another example, consider
  6596. gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  6597. Here the two output file names 'vec.miss' and 'loop.opt' are in
  6598. conflict since only one output file is allowed. In this case, only the
  6599. first option takes effect and the subsequent options are ignored. Thus
  6600. only the 'vec.miss' is produced which containts dumps from the
  6601. vectorizer about missed opportunities.
  6602. 
  6603. File: gccint.info, Node: GENERIC, Next: GIMPLE, Prev: Passes, Up: Top
  6604. 10 GENERIC
  6605. **********
  6606. The purpose of GENERIC is simply to provide a language-independent way
  6607. of representing an entire function in trees. To this end, it was
  6608. necessary to add a few new tree codes to the back end, but almost
  6609. everything was already there. If you can express it with the codes in
  6610. 'gcc/tree.def', it's GENERIC.
  6611. Early on, there was a great deal of debate about how to think about
  6612. statements in a tree IL. In GENERIC, a statement is defined as any
  6613. expression whose value, if any, is ignored. A statement will always
  6614. have 'TREE_SIDE_EFFECTS' set (or it will be discarded), but a
  6615. non-statement expression may also have side effects. A 'CALL_EXPR', for
  6616. instance.
  6617. It would be possible for some local optimizations to work on the
  6618. GENERIC form of a function; indeed, the adapted tree inliner works fine
  6619. on GENERIC, but the current compiler performs inlining after lowering to
  6620. GIMPLE (a restricted form described in the next section). Indeed,
  6621. currently the frontends perform this lowering before handing off to
  6622. 'tree_rest_of_compilation', but this seems inelegant.
  6623. * Menu:
  6624. * Deficiencies:: Topics net yet covered in this document.
  6625. * Tree overview:: All about 'tree's.
  6626. * Types:: Fundamental and aggregate types.
  6627. * Declarations:: Type declarations and variables.
  6628. * Attributes:: Declaration and type attributes.
  6629. * Expressions: Expression trees. Operating on data.
  6630. * Statements:: Control flow and related trees.
  6631. * Functions:: Function bodies, linkage, and other aspects.
  6632. * Language-dependent trees:: Topics and trees specific to language front ends.
  6633. * C and C++ Trees:: Trees specific to C and C++.
  6634. * Java Trees:: Trees specific to Java.
  6635. 
  6636. File: gccint.info, Node: Deficiencies, Next: Tree overview, Up: GENERIC
  6637. 10.1 Deficiencies
  6638. =================
  6639. There are many places in which this document is incomplet and incorrekt.
  6640. It is, as of yet, only _preliminary_ documentation.
  6641. 
  6642. File: gccint.info, Node: Tree overview, Next: Types, Prev: Deficiencies, Up: GENERIC
  6643. 10.2 Overview
  6644. =============
  6645. The central data structure used by the internal representation is the
  6646. 'tree'. These nodes, while all of the C type 'tree', are of many
  6647. varieties. A 'tree' is a pointer type, but the object to which it
  6648. points may be of a variety of types. From this point forward, we will
  6649. refer to trees in ordinary type, rather than in 'this font', except when
  6650. talking about the actual C type 'tree'.
  6651. You can tell what kind of node a particular tree is by using the
  6652. 'TREE_CODE' macro. Many, many macros take trees as input and return
  6653. trees as output. However, most macros require a certain kind of tree
  6654. node as input. In other words, there is a type-system for trees, but it
  6655. is not reflected in the C type-system.
  6656. For safety, it is useful to configure GCC with '--enable-checking'.
  6657. Although this results in a significant performance penalty (since all
  6658. tree types are checked at run-time), and is therefore inappropriate in a
  6659. release version, it is extremely helpful during the development process.
  6660. Many macros behave as predicates. Many, although not all, of these
  6661. predicates end in '_P'. Do not rely on the result type of these macros
  6662. being of any particular type. You may, however, rely on the fact that
  6663. the type can be compared to '0', so that statements like
  6664. if (TEST_P (t) && !TEST_P (y))
  6665. x = 1;
  6666. and
  6667. int i = (TEST_P (t) != 0);
  6668. are legal. Macros that return 'int' values now may be changed to return
  6669. 'tree' values, or other pointers in the future. Even those that
  6670. continue to return 'int' may return multiple nonzero codes where
  6671. previously they returned only zero and one. Therefore, you should not
  6672. write code like
  6673. if (TEST_P (t) == 1)
  6674. as this code is not guaranteed to work correctly in the future.
  6675. You should not take the address of values returned by the macros or
  6676. functions described here. In particular, no guarantee is given that the
  6677. values are lvalues.
  6678. In general, the names of macros are all in uppercase, while the names
  6679. of functions are entirely in lowercase. There are rare exceptions to
  6680. this rule. You should assume that any macro or function whose name is
  6681. made up entirely of uppercase letters may evaluate its arguments more
  6682. than once. You may assume that a macro or function whose name is made
  6683. up entirely of lowercase letters will evaluate its arguments only once.
  6684. The 'error_mark_node' is a special tree. Its tree code is
  6685. 'ERROR_MARK', but since there is only ever one node with that code, the
  6686. usual practice is to compare the tree against 'error_mark_node'. (This
  6687. test is just a test for pointer equality.) If an error has occurred
  6688. during front-end processing the flag 'errorcount' will be set. If the
  6689. front end has encountered code it cannot handle, it will issue a message
  6690. to the user and set 'sorrycount'. When these flags are set, any macro
  6691. or function which normally returns a tree of a particular kind may
  6692. instead return the 'error_mark_node'. Thus, if you intend to do any
  6693. processing of erroneous code, you must be prepared to deal with the
  6694. 'error_mark_node'.
  6695. Occasionally, a particular tree slot (like an operand to an expression,
  6696. or a particular field in a declaration) will be referred to as "reserved
  6697. for the back end". These slots are used to store RTL when the tree is
  6698. converted to RTL for use by the GCC back end. However, if that process
  6699. is not taking place (e.g., if the front end is being hooked up to an
  6700. intelligent editor), then those slots may be used by the back end
  6701. presently in use.
  6702. If you encounter situations that do not match this documentation, such
  6703. as tree nodes of types not mentioned here, or macros documented to
  6704. return entities of a particular kind that instead return entities of
  6705. some different kind, you have found a bug, either in the front end or in
  6706. the documentation. Please report these bugs as you would any other bug.
  6707. * Menu:
  6708. * Macros and Functions::Macros and functions that can be used with all trees.
  6709. * Identifiers:: The names of things.
  6710. * Containers:: Lists and vectors.
  6711. 
  6712. File: gccint.info, Node: Macros and Functions, Next: Identifiers, Up: Tree overview
  6713. 10.2.1 Trees
  6714. ------------
  6715. All GENERIC trees have two fields in common. First, 'TREE_CHAIN' is a
  6716. pointer that can be used as a singly-linked list to other trees. The
  6717. other is 'TREE_TYPE'. Many trees store the type of an expression or
  6718. declaration in this field.
  6719. These are some other functions for handling trees:
  6720. 'tree_size'
  6721. Return the number of bytes a tree takes.
  6722. 'build0'
  6723. 'build1'
  6724. 'build2'
  6725. 'build3'
  6726. 'build4'
  6727. 'build5'
  6728. 'build6'
  6729. These functions build a tree and supply values to put in each
  6730. parameter. The basic signature is 'code, type, [operands]'.
  6731. 'code' is the 'TREE_CODE', and 'type' is a tree representing the
  6732. 'TREE_TYPE'. These are followed by the operands, each of which is
  6733. also a tree.
  6734. 
  6735. File: gccint.info, Node: Identifiers, Next: Containers, Prev: Macros and Functions, Up: Tree overview
  6736. 10.2.2 Identifiers
  6737. ------------------
  6738. An 'IDENTIFIER_NODE' represents a slightly more general concept than the
  6739. standard C or C++ concept of identifier. In particular, an
  6740. 'IDENTIFIER_NODE' may contain a '$', or other extraordinary characters.
  6741. There are never two distinct 'IDENTIFIER_NODE's representing the same
  6742. identifier. Therefore, you may use pointer equality to compare
  6743. 'IDENTIFIER_NODE's, rather than using a routine like 'strcmp'. Use
  6744. 'get_identifier' to obtain the unique 'IDENTIFIER_NODE' for a supplied
  6745. string.
  6746. You can use the following macros to access identifiers:
  6747. 'IDENTIFIER_POINTER'
  6748. The string represented by the identifier, represented as a 'char*'.
  6749. This string is always 'NUL'-terminated, and contains no embedded
  6750. 'NUL' characters.
  6751. 'IDENTIFIER_LENGTH'
  6752. The length of the string returned by 'IDENTIFIER_POINTER', not
  6753. including the trailing 'NUL'. This value of 'IDENTIFIER_LENGTH
  6754. (x)' is always the same as 'strlen (IDENTIFIER_POINTER (x))'.
  6755. 'IDENTIFIER_OPNAME_P'
  6756. This predicate holds if the identifier represents the name of an
  6757. overloaded operator. In this case, you should not depend on the
  6758. contents of either the 'IDENTIFIER_POINTER' or the
  6759. 'IDENTIFIER_LENGTH'.
  6760. 'IDENTIFIER_TYPENAME_P'
  6761. This predicate holds if the identifier represents the name of a
  6762. user-defined conversion operator. In this case, the 'TREE_TYPE' of
  6763. the 'IDENTIFIER_NODE' holds the type to which the conversion
  6764. operator converts.
  6765. 
  6766. File: gccint.info, Node: Containers, Prev: Identifiers, Up: Tree overview
  6767. 10.2.3 Containers
  6768. -----------------
  6769. Two common container data structures can be represented directly with
  6770. tree nodes. A 'TREE_LIST' is a singly linked list containing two trees
  6771. per node. These are the 'TREE_PURPOSE' and 'TREE_VALUE' of each node.
  6772. (Often, the 'TREE_PURPOSE' contains some kind of tag, or additional
  6773. information, while the 'TREE_VALUE' contains the majority of the
  6774. payload. In other cases, the 'TREE_PURPOSE' is simply 'NULL_TREE',
  6775. while in still others both the 'TREE_PURPOSE' and 'TREE_VALUE' are of
  6776. equal stature.) Given one 'TREE_LIST' node, the next node is found by
  6777. following the 'TREE_CHAIN'. If the 'TREE_CHAIN' is 'NULL_TREE', then
  6778. you have reached the end of the list.
  6779. A 'TREE_VEC' is a simple vector. The 'TREE_VEC_LENGTH' is an integer
  6780. (not a tree) giving the number of nodes in the vector. The nodes
  6781. themselves are accessed using the 'TREE_VEC_ELT' macro, which takes two
  6782. arguments. The first is the 'TREE_VEC' in question; the second is an
  6783. integer indicating which element in the vector is desired. The elements
  6784. are indexed from zero.
  6785. 
  6786. File: gccint.info, Node: Types, Next: Declarations, Prev: Tree overview, Up: GENERIC
  6787. 10.3 Types
  6788. ==========
  6789. All types have corresponding tree nodes. However, you should not assume
  6790. that there is exactly one tree node corresponding to each type. There
  6791. are often multiple nodes corresponding to the same type.
  6792. For the most part, different kinds of types have different tree codes.
  6793. (For example, pointer types use a 'POINTER_TYPE' code while arrays use
  6794. an 'ARRAY_TYPE' code.) However, pointers to member functions use the
  6795. 'RECORD_TYPE' code. Therefore, when writing a 'switch' statement that
  6796. depends on the code associated with a particular type, you should take
  6797. care to handle pointers to member functions under the 'RECORD_TYPE' case
  6798. label.
  6799. The following functions and macros deal with cv-qualification of types:
  6800. 'TYPE_MAIN_VARIANT'
  6801. This macro returns the unqualified version of a type. It may be
  6802. applied to an unqualified type, but it is not always the identity
  6803. function in that case.
  6804. A few other macros and functions are usable with all types:
  6805. 'TYPE_SIZE'
  6806. The number of bits required to represent the type, represented as
  6807. an 'INTEGER_CST'. For an incomplete type, 'TYPE_SIZE' will be
  6808. 'NULL_TREE'.
  6809. 'TYPE_ALIGN'
  6810. The alignment of the type, in bits, represented as an 'int'.
  6811. 'TYPE_NAME'
  6812. This macro returns a declaration (in the form of a 'TYPE_DECL') for
  6813. the type. (Note this macro does _not_ return an 'IDENTIFIER_NODE',
  6814. as you might expect, given its name!) You can look at the
  6815. 'DECL_NAME' of the 'TYPE_DECL' to obtain the actual name of the
  6816. type. The 'TYPE_NAME' will be 'NULL_TREE' for a type that is not a
  6817. built-in type, the result of a typedef, or a named class type.
  6818. 'TYPE_CANONICAL'
  6819. This macro returns the "canonical" type for the given type node.
  6820. Canonical types are used to improve performance in the C++ and
  6821. Objective-C++ front ends by allowing efficient comparison between
  6822. two type nodes in 'same_type_p': if the 'TYPE_CANONICAL' values of
  6823. the types are equal, the types are equivalent; otherwise, the types
  6824. are not equivalent. The notion of equivalence for canonical types
  6825. is the same as the notion of type equivalence in the language
  6826. itself. For instance,
  6827. When 'TYPE_CANONICAL' is 'NULL_TREE', there is no canonical type
  6828. for the given type node. In this case, comparison between this
  6829. type and any other type requires the compiler to perform a deep,
  6830. "structural" comparison to see if the two type nodes have the same
  6831. form and properties.
  6832. The canonical type for a node is always the most fundamental type
  6833. in the equivalence class of types. For instance, 'int' is its own
  6834. canonical type. A typedef 'I' of 'int' will have 'int' as its
  6835. canonical type. Similarly, 'I*' and a typedef 'IP' (defined to
  6836. 'I*') will has 'int*' as their canonical type. When building a new
  6837. type node, be sure to set 'TYPE_CANONICAL' to the appropriate
  6838. canonical type. If the new type is a compound type (built from
  6839. other types), and any of those other types require structural
  6840. equality, use 'SET_TYPE_STRUCTURAL_EQUALITY' to ensure that the new
  6841. type also requires structural equality. Finally, if for some
  6842. reason you cannot guarantee that 'TYPE_CANONICAL' will point to the
  6843. canonical type, use 'SET_TYPE_STRUCTURAL_EQUALITY' to make sure
  6844. that the new type-and any type constructed based on it-requires
  6845. structural equality. If you suspect that the canonical type system
  6846. is miscomparing types, pass '--param verify-canonical-types=1' to
  6847. the compiler or configure with '--enable-checking' to force the
  6848. compiler to verify its canonical-type comparisons against the
  6849. structural comparisons; the compiler will then print any warnings
  6850. if the canonical types miscompare.
  6851. 'TYPE_STRUCTURAL_EQUALITY_P'
  6852. This predicate holds when the node requires structural equality
  6853. checks, e.g., when 'TYPE_CANONICAL' is 'NULL_TREE'.
  6854. 'SET_TYPE_STRUCTURAL_EQUALITY'
  6855. This macro states that the type node it is given requires
  6856. structural equality checks, e.g., it sets 'TYPE_CANONICAL' to
  6857. 'NULL_TREE'.
  6858. 'same_type_p'
  6859. This predicate takes two types as input, and holds if they are the
  6860. same type. For example, if one type is a 'typedef' for the other,
  6861. or both are 'typedef's for the same type. This predicate also
  6862. holds if the two trees given as input are simply copies of one
  6863. another; i.e., there is no difference between them at the source
  6864. level, but, for whatever reason, a duplicate has been made in the
  6865. representation. You should never use '==' (pointer equality) to
  6866. compare types; always use 'same_type_p' instead.
  6867. Detailed below are the various kinds of types, and the macros that can
  6868. be used to access them. Although other kinds of types are used
  6869. elsewhere in G++, the types described here are the only ones that you
  6870. will encounter while examining the intermediate representation.
  6871. 'VOID_TYPE'
  6872. Used to represent the 'void' type.
  6873. 'INTEGER_TYPE'
  6874. Used to represent the various integral types, including 'char',
  6875. 'short', 'int', 'long', and 'long long'. This code is not used for
  6876. enumeration types, nor for the 'bool' type. The 'TYPE_PRECISION'
  6877. is the number of bits used in the representation, represented as an
  6878. 'unsigned int'. (Note that in the general case this is not the
  6879. same value as 'TYPE_SIZE'; suppose that there were a 24-bit integer
  6880. type, but that alignment requirements for the ABI required 32-bit
  6881. alignment. Then, 'TYPE_SIZE' would be an 'INTEGER_CST' for 32,
  6882. while 'TYPE_PRECISION' would be 24.) The integer type is unsigned
  6883. if 'TYPE_UNSIGNED' holds; otherwise, it is signed.
  6884. The 'TYPE_MIN_VALUE' is an 'INTEGER_CST' for the smallest integer
  6885. that may be represented by this type. Similarly, the
  6886. 'TYPE_MAX_VALUE' is an 'INTEGER_CST' for the largest integer that
  6887. may be represented by this type.
  6888. 'REAL_TYPE'
  6889. Used to represent the 'float', 'double', and 'long double' types.
  6890. The number of bits in the floating-point representation is given by
  6891. 'TYPE_PRECISION', as in the 'INTEGER_TYPE' case.
  6892. 'FIXED_POINT_TYPE'
  6893. Used to represent the 'short _Fract', '_Fract', 'long _Fract',
  6894. 'long long _Fract', 'short _Accum', '_Accum', 'long _Accum', and
  6895. 'long long _Accum' types. The number of bits in the fixed-point
  6896. representation is given by 'TYPE_PRECISION', as in the
  6897. 'INTEGER_TYPE' case. There may be padding bits, fractional bits
  6898. and integral bits. The number of fractional bits is given by
  6899. 'TYPE_FBIT', and the number of integral bits is given by
  6900. 'TYPE_IBIT'. The fixed-point type is unsigned if 'TYPE_UNSIGNED'
  6901. holds; otherwise, it is signed. The fixed-point type is saturating
  6902. if 'TYPE_SATURATING' holds; otherwise, it is not saturating.
  6903. 'COMPLEX_TYPE'
  6904. Used to represent GCC built-in '__complex__' data types. The
  6905. 'TREE_TYPE' is the type of the real and imaginary parts.
  6906. 'ENUMERAL_TYPE'
  6907. Used to represent an enumeration type. The 'TYPE_PRECISION' gives
  6908. (as an 'int'), the number of bits used to represent the type. If
  6909. there are no negative enumeration constants, 'TYPE_UNSIGNED' will
  6910. hold. The minimum and maximum enumeration constants may be
  6911. obtained with 'TYPE_MIN_VALUE' and 'TYPE_MAX_VALUE', respectively;
  6912. each of these macros returns an 'INTEGER_CST'.
  6913. The actual enumeration constants themselves may be obtained by
  6914. looking at the 'TYPE_VALUES'. This macro will return a
  6915. 'TREE_LIST', containing the constants. The 'TREE_PURPOSE' of each
  6916. node will be an 'IDENTIFIER_NODE' giving the name of the constant;
  6917. the 'TREE_VALUE' will be an 'INTEGER_CST' giving the value assigned
  6918. to that constant. These constants will appear in the order in
  6919. which they were declared. The 'TREE_TYPE' of each of these
  6920. constants will be the type of enumeration type itself.
  6921. 'BOOLEAN_TYPE'
  6922. Used to represent the 'bool' type.
  6923. 'POINTER_TYPE'
  6924. Used to represent pointer types, and pointer to data member types.
  6925. The 'TREE_TYPE' gives the type to which this type points.
  6926. 'REFERENCE_TYPE'
  6927. Used to represent reference types. The 'TREE_TYPE' gives the type
  6928. to which this type refers.
  6929. 'FUNCTION_TYPE'
  6930. Used to represent the type of non-member functions and of static
  6931. member functions. The 'TREE_TYPE' gives the return type of the
  6932. function. The 'TYPE_ARG_TYPES' are a 'TREE_LIST' of the argument
  6933. types. The 'TREE_VALUE' of each node in this list is the type of
  6934. the corresponding argument; the 'TREE_PURPOSE' is an expression for
  6935. the default argument value, if any. If the last node in the list
  6936. is 'void_list_node' (a 'TREE_LIST' node whose 'TREE_VALUE' is the
  6937. 'void_type_node'), then functions of this type do not take variable
  6938. arguments. Otherwise, they do take a variable number of arguments.
  6939. Note that in C (but not in C++) a function declared like 'void f()'
  6940. is an unprototyped function taking a variable number of arguments;
  6941. the 'TYPE_ARG_TYPES' of such a function will be 'NULL'.
  6942. 'METHOD_TYPE'
  6943. Used to represent the type of a non-static member function. Like a
  6944. 'FUNCTION_TYPE', the return type is given by the 'TREE_TYPE'. The
  6945. type of '*this', i.e., the class of which functions of this type
  6946. are a member, is given by the 'TYPE_METHOD_BASETYPE'. The
  6947. 'TYPE_ARG_TYPES' is the parameter list, as for a 'FUNCTION_TYPE',
  6948. and includes the 'this' argument.
  6949. 'ARRAY_TYPE'
  6950. Used to represent array types. The 'TREE_TYPE' gives the type of
  6951. the elements in the array. If the array-bound is present in the
  6952. type, the 'TYPE_DOMAIN' is an 'INTEGER_TYPE' whose 'TYPE_MIN_VALUE'
  6953. and 'TYPE_MAX_VALUE' will be the lower and upper bounds of the
  6954. array, respectively. The 'TYPE_MIN_VALUE' will always be an
  6955. 'INTEGER_CST' for zero, while the 'TYPE_MAX_VALUE' will be one less
  6956. than the number of elements in the array, i.e., the highest value
  6957. which may be used to index an element in the array.
  6958. 'RECORD_TYPE'
  6959. Used to represent 'struct' and 'class' types, as well as pointers
  6960. to member functions and similar constructs in other languages.
  6961. 'TYPE_FIELDS' contains the items contained in this type, each of
  6962. which can be a 'FIELD_DECL', 'VAR_DECL', 'CONST_DECL', or
  6963. 'TYPE_DECL'. You may not make any assumptions about the ordering
  6964. of the fields in the type or whether one or more of them overlap.
  6965. 'UNION_TYPE'
  6966. Used to represent 'union' types. Similar to 'RECORD_TYPE' except
  6967. that all 'FIELD_DECL' nodes in 'TYPE_FIELD' start at bit position
  6968. zero.
  6969. 'QUAL_UNION_TYPE'
  6970. Used to represent part of a variant record in Ada. Similar to
  6971. 'UNION_TYPE' except that each 'FIELD_DECL' has a 'DECL_QUALIFIER'
  6972. field, which contains a boolean expression that indicates whether
  6973. the field is present in the object. The type will only have one
  6974. field, so each field's 'DECL_QUALIFIER' is only evaluated if none
  6975. of the expressions in the previous fields in 'TYPE_FIELDS' are
  6976. nonzero. Normally these expressions will reference a field in the
  6977. outer object using a 'PLACEHOLDER_EXPR'.
  6978. 'LANG_TYPE'
  6979. This node is used to represent a language-specific type. The front
  6980. end must handle it.
  6981. 'OFFSET_TYPE'
  6982. This node is used to represent a pointer-to-data member. For a
  6983. data member 'X::m' the 'TYPE_OFFSET_BASETYPE' is 'X' and the
  6984. 'TREE_TYPE' is the type of 'm'.
  6985. There are variables whose values represent some of the basic types.
  6986. These include:
  6987. 'void_type_node'
  6988. A node for 'void'.
  6989. 'integer_type_node'
  6990. A node for 'int'.
  6991. 'unsigned_type_node.'
  6992. A node for 'unsigned int'.
  6993. 'char_type_node.'
  6994. A node for 'char'.
  6995. It may sometimes be useful to compare one of these variables with a type
  6996. in hand, using 'same_type_p'.
  6997. 
  6998. File: gccint.info, Node: Declarations, Next: Attributes, Prev: Types, Up: GENERIC
  6999. 10.4 Declarations
  7000. =================
  7001. This section covers the various kinds of declarations that appear in the
  7002. internal representation, except for declarations of functions
  7003. (represented by 'FUNCTION_DECL' nodes), which are described in *note
  7004. Functions::.
  7005. * Menu:
  7006. * Working with declarations:: Macros and functions that work on
  7007. declarations.
  7008. * Internal structure:: How declaration nodes are represented.
  7009. 
  7010. File: gccint.info, Node: Working with declarations, Next: Internal structure, Up: Declarations
  7011. 10.4.1 Working with declarations
  7012. --------------------------------
  7013. Some macros can be used with any kind of declaration. These include:
  7014. 'DECL_NAME'
  7015. This macro returns an 'IDENTIFIER_NODE' giving the name of the
  7016. entity.
  7017. 'TREE_TYPE'
  7018. This macro returns the type of the entity declared.
  7019. 'EXPR_FILENAME'
  7020. This macro returns the name of the file in which the entity was
  7021. declared, as a 'char*'. For an entity declared implicitly by the
  7022. compiler (like '__builtin_memcpy'), this will be the string
  7023. '"<internal>"'.
  7024. 'EXPR_LINENO'
  7025. This macro returns the line number at which the entity was
  7026. declared, as an 'int'.
  7027. 'DECL_ARTIFICIAL'
  7028. This predicate holds if the declaration was implicitly generated by
  7029. the compiler. For example, this predicate will hold of an
  7030. implicitly declared member function, or of the 'TYPE_DECL'
  7031. implicitly generated for a class type. Recall that in C++ code
  7032. like:
  7033. struct S {};
  7034. is roughly equivalent to C code like:
  7035. struct S {};
  7036. typedef struct S S;
  7037. The implicitly generated 'typedef' declaration is represented by a
  7038. 'TYPE_DECL' for which 'DECL_ARTIFICIAL' holds.
  7039. The various kinds of declarations include:
  7040. 'LABEL_DECL'
  7041. These nodes are used to represent labels in function bodies. For
  7042. more information, see *note Functions::. These nodes only appear
  7043. in block scopes.
  7044. 'CONST_DECL'
  7045. These nodes are used to represent enumeration constants. The value
  7046. of the constant is given by 'DECL_INITIAL' which will be an
  7047. 'INTEGER_CST' with the same type as the 'TREE_TYPE' of the
  7048. 'CONST_DECL', i.e., an 'ENUMERAL_TYPE'.
  7049. 'RESULT_DECL'
  7050. These nodes represent the value returned by a function. When a
  7051. value is assigned to a 'RESULT_DECL', that indicates that the value
  7052. should be returned, via bitwise copy, by the function. You can use
  7053. 'DECL_SIZE' and 'DECL_ALIGN' on a 'RESULT_DECL', just as with a
  7054. 'VAR_DECL'.
  7055. 'TYPE_DECL'
  7056. These nodes represent 'typedef' declarations. The 'TREE_TYPE' is
  7057. the type declared to have the name given by 'DECL_NAME'. In some
  7058. cases, there is no associated name.
  7059. 'VAR_DECL'
  7060. These nodes represent variables with namespace or block scope, as
  7061. well as static data members. The 'DECL_SIZE' and 'DECL_ALIGN' are
  7062. analogous to 'TYPE_SIZE' and 'TYPE_ALIGN'. For a declaration, you
  7063. should always use the 'DECL_SIZE' and 'DECL_ALIGN' rather than the
  7064. 'TYPE_SIZE' and 'TYPE_ALIGN' given by the 'TREE_TYPE', since
  7065. special attributes may have been applied to the variable to give it
  7066. a particular size and alignment. You may use the predicates
  7067. 'DECL_THIS_STATIC' or 'DECL_THIS_EXTERN' to test whether the
  7068. storage class specifiers 'static' or 'extern' were used to declare
  7069. a variable.
  7070. If this variable is initialized (but does not require a
  7071. constructor), the 'DECL_INITIAL' will be an expression for the
  7072. initializer. The initializer should be evaluated, and a bitwise
  7073. copy into the variable performed. If the 'DECL_INITIAL' is the
  7074. 'error_mark_node', there is an initializer, but it is given by an
  7075. explicit statement later in the code; no bitwise copy is required.
  7076. GCC provides an extension that allows either automatic variables,
  7077. or global variables, to be placed in particular registers. This
  7078. extension is being used for a particular 'VAR_DECL' if
  7079. 'DECL_REGISTER' holds for the 'VAR_DECL', and if
  7080. 'DECL_ASSEMBLER_NAME' is not equal to 'DECL_NAME'. In that case,
  7081. 'DECL_ASSEMBLER_NAME' is the name of the register into which the
  7082. variable will be placed.
  7083. 'PARM_DECL'
  7084. Used to represent a parameter to a function. Treat these nodes
  7085. similarly to 'VAR_DECL' nodes. These nodes only appear in the
  7086. 'DECL_ARGUMENTS' for a 'FUNCTION_DECL'.
  7087. The 'DECL_ARG_TYPE' for a 'PARM_DECL' is the type that will
  7088. actually be used when a value is passed to this function. It may
  7089. be a wider type than the 'TREE_TYPE' of the parameter; for example,
  7090. the ordinary type might be 'short' while the 'DECL_ARG_TYPE' is
  7091. 'int'.
  7092. 'DEBUG_EXPR_DECL'
  7093. Used to represent an anonymous debug-information temporary created
  7094. to hold an expression as it is optimized away, so that its value
  7095. can be referenced in debug bind statements.
  7096. 'FIELD_DECL'
  7097. These nodes represent non-static data members. The 'DECL_SIZE' and
  7098. 'DECL_ALIGN' behave as for 'VAR_DECL' nodes. The position of the
  7099. field within the parent record is specified by a combination of
  7100. three attributes. 'DECL_FIELD_OFFSET' is the position, counting in
  7101. bytes, of the 'DECL_OFFSET_ALIGN'-bit sized word containing the bit
  7102. of the field closest to the beginning of the structure.
  7103. 'DECL_FIELD_BIT_OFFSET' is the bit offset of the first bit of the
  7104. field within this word; this may be nonzero even for fields that
  7105. are not bit-fields, since 'DECL_OFFSET_ALIGN' may be greater than
  7106. the natural alignment of the field's type.
  7107. If 'DECL_C_BIT_FIELD' holds, this field is a bit-field. In a
  7108. bit-field, 'DECL_BIT_FIELD_TYPE' also contains the type that was
  7109. originally specified for it, while DECL_TYPE may be a modified type
  7110. with lesser precision, according to the size of the bit field.
  7111. 'NAMESPACE_DECL'
  7112. Namespaces provide a name hierarchy for other declarations. They
  7113. appear in the 'DECL_CONTEXT' of other '_DECL' nodes.
  7114. 
  7115. File: gccint.info, Node: Internal structure, Prev: Working with declarations, Up: Declarations
  7116. 10.4.2 Internal structure
  7117. -------------------------
  7118. 'DECL' nodes are represented internally as a hierarchy of structures.
  7119. * Menu:
  7120. * Current structure hierarchy:: The current DECL node structure
  7121. hierarchy.
  7122. * Adding new DECL node types:: How to add a new DECL node to a
  7123. frontend.
  7124. 
  7125. File: gccint.info, Node: Current structure hierarchy, Next: Adding new DECL node types, Up: Internal structure
  7126. 10.4.2.1 Current structure hierarchy
  7127. ....................................
  7128. 'struct tree_decl_minimal'
  7129. This is the minimal structure to inherit from in order for common
  7130. 'DECL' macros to work. The fields it contains are a unique ID,
  7131. source location, context, and name.
  7132. 'struct tree_decl_common'
  7133. This structure inherits from 'struct tree_decl_minimal'. It
  7134. contains fields that most 'DECL' nodes need, such as a field to
  7135. store alignment, machine mode, size, and attributes.
  7136. 'struct tree_field_decl'
  7137. This structure inherits from 'struct tree_decl_common'. It is used
  7138. to represent 'FIELD_DECL'.
  7139. 'struct tree_label_decl'
  7140. This structure inherits from 'struct tree_decl_common'. It is used
  7141. to represent 'LABEL_DECL'.
  7142. 'struct tree_translation_unit_decl'
  7143. This structure inherits from 'struct tree_decl_common'. It is used
  7144. to represent 'TRANSLATION_UNIT_DECL'.
  7145. 'struct tree_decl_with_rtl'
  7146. This structure inherits from 'struct tree_decl_common'. It
  7147. contains a field to store the low-level RTL associated with a
  7148. 'DECL' node.
  7149. 'struct tree_result_decl'
  7150. This structure inherits from 'struct tree_decl_with_rtl'. It is
  7151. used to represent 'RESULT_DECL'.
  7152. 'struct tree_const_decl'
  7153. This structure inherits from 'struct tree_decl_with_rtl'. It is
  7154. used to represent 'CONST_DECL'.
  7155. 'struct tree_parm_decl'
  7156. This structure inherits from 'struct tree_decl_with_rtl'. It is
  7157. used to represent 'PARM_DECL'.
  7158. 'struct tree_decl_with_vis'
  7159. This structure inherits from 'struct tree_decl_with_rtl'. It
  7160. contains fields necessary to store visibility information, as well
  7161. as a section name and assembler name.
  7162. 'struct tree_var_decl'
  7163. This structure inherits from 'struct tree_decl_with_vis'. It is
  7164. used to represent 'VAR_DECL'.
  7165. 'struct tree_function_decl'
  7166. This structure inherits from 'struct tree_decl_with_vis'. It is
  7167. used to represent 'FUNCTION_DECL'.
  7168. 
  7169. File: gccint.info, Node: Adding new DECL node types, Prev: Current structure hierarchy, Up: Internal structure
  7170. 10.4.2.2 Adding new DECL node types
  7171. ...................................
  7172. Adding a new 'DECL' tree consists of the following steps
  7173. Add a new tree code for the 'DECL' node
  7174. For language specific 'DECL' nodes, there is a '.def' file in each
  7175. frontend directory where the tree code should be added. For 'DECL'
  7176. nodes that are part of the middle-end, the code should be added to
  7177. 'tree.def'.
  7178. Create a new structure type for the 'DECL' node
  7179. These structures should inherit from one of the existing structures
  7180. in the language hierarchy by using that structure as the first
  7181. member.
  7182. struct tree_foo_decl
  7183. {
  7184. struct tree_decl_with_vis common;
  7185. }
  7186. Would create a structure name 'tree_foo_decl' that inherits from
  7187. 'struct tree_decl_with_vis'.
  7188. For language specific 'DECL' nodes, this new structure type should
  7189. go in the appropriate '.h' file. For 'DECL' nodes that are part of
  7190. the middle-end, the structure type should go in 'tree.h'.
  7191. Add a member to the tree structure enumerator for the node
  7192. For garbage collection and dynamic checking purposes, each 'DECL'
  7193. node structure type is required to have a unique enumerator value
  7194. specified with it. For language specific 'DECL' nodes, this new
  7195. enumerator value should go in the appropriate '.def' file. For
  7196. 'DECL' nodes that are part of the middle-end, the enumerator values
  7197. are specified in 'treestruct.def'.
  7198. Update 'union tree_node'
  7199. In order to make your new structure type usable, it must be added
  7200. to 'union tree_node'. For language specific 'DECL' nodes, a new
  7201. entry should be added to the appropriate '.h' file of the form
  7202. struct tree_foo_decl GTY ((tag ("TS_VAR_DECL"))) foo_decl;
  7203. For 'DECL' nodes that are part of the middle-end, the additional
  7204. member goes directly into 'union tree_node' in 'tree.h'.
  7205. Update dynamic checking info
  7206. In order to be able to check whether accessing a named portion of
  7207. 'union tree_node' is legal, and whether a certain 'DECL' node
  7208. contains one of the enumerated 'DECL' node structures in the
  7209. hierarchy, a simple lookup table is used. This lookup table needs
  7210. to be kept up to date with the tree structure hierarchy, or else
  7211. checking and containment macros will fail inappropriately.
  7212. For language specific 'DECL' nodes, their is an 'init_ts' function
  7213. in an appropriate '.c' file, which initializes the lookup table.
  7214. Code setting up the table for new 'DECL' nodes should be added
  7215. there. For each 'DECL' tree code and enumerator value representing
  7216. a member of the inheritance hierarchy, the table should contain 1
  7217. if that tree code inherits (directly or indirectly) from that
  7218. member. Thus, a 'FOO_DECL' node derived from 'struct
  7219. decl_with_rtl', and enumerator value 'TS_FOO_DECL', would be set up
  7220. as follows
  7221. tree_contains_struct[FOO_DECL][TS_FOO_DECL] = 1;
  7222. tree_contains_struct[FOO_DECL][TS_DECL_WRTL] = 1;
  7223. tree_contains_struct[FOO_DECL][TS_DECL_COMMON] = 1;
  7224. tree_contains_struct[FOO_DECL][TS_DECL_MINIMAL] = 1;
  7225. For 'DECL' nodes that are part of the middle-end, the setup code
  7226. goes into 'tree.c'.
  7227. Add macros to access any new fields and flags
  7228. Each added field or flag should have a macro that is used to access
  7229. it, that performs appropriate checking to ensure only the right
  7230. type of 'DECL' nodes access the field.
  7231. These macros generally take the following form
  7232. #define FOO_DECL_FIELDNAME(NODE) FOO_DECL_CHECK(NODE)->foo_decl.fieldname
  7233. However, if the structure is simply a base class for further
  7234. structures, something like the following should be used
  7235. #define BASE_STRUCT_CHECK(T) CONTAINS_STRUCT_CHECK(T, TS_BASE_STRUCT)
  7236. #define BASE_STRUCT_FIELDNAME(NODE) \
  7237. (BASE_STRUCT_CHECK(NODE)->base_struct.fieldname
  7238. Reading them from the generated 'all-tree.def' file (which in turn
  7239. includes all the 'tree.def' files), 'gencheck.c' is used during
  7240. GCC's build to generate the '*_CHECK' macros for all tree codes.
  7241. 
  7242. File: gccint.info, Node: Attributes, Next: Expression trees, Prev: Declarations, Up: GENERIC
  7243. 10.5 Attributes in trees
  7244. ========================
  7245. Attributes, as specified using the '__attribute__' keyword, are
  7246. represented internally as a 'TREE_LIST'. The 'TREE_PURPOSE' is the name
  7247. of the attribute, as an 'IDENTIFIER_NODE'. The 'TREE_VALUE' is a
  7248. 'TREE_LIST' of the arguments of the attribute, if any, or 'NULL_TREE' if
  7249. there are no arguments; the arguments are stored as the 'TREE_VALUE' of
  7250. successive entries in the list, and may be identifiers or expressions.
  7251. The 'TREE_CHAIN' of the attribute is the next attribute in a list of
  7252. attributes applying to the same declaration or type, or 'NULL_TREE' if
  7253. there are no further attributes in the list.
  7254. Attributes may be attached to declarations and to types; these
  7255. attributes may be accessed with the following macros. All attributes
  7256. are stored in this way, and many also cause other changes to the
  7257. declaration or type or to other internal compiler data structures.
  7258. -- Tree Macro: tree DECL_ATTRIBUTES (tree DECL)
  7259. This macro returns the attributes on the declaration DECL.
  7260. -- Tree Macro: tree TYPE_ATTRIBUTES (tree TYPE)
  7261. This macro returns the attributes on the type TYPE.
  7262. 
  7263. File: gccint.info, Node: Expression trees, Next: Statements, Prev: Attributes, Up: GENERIC
  7264. 10.6 Expressions
  7265. ================
  7266. The internal representation for expressions is for the most part quite
  7267. straightforward. However, there are a few facts that one must bear in
  7268. mind. In particular, the expression "tree" is actually a directed
  7269. acyclic graph. (For example there may be many references to the integer
  7270. constant zero throughout the source program; many of these will be
  7271. represented by the same expression node.) You should not rely on
  7272. certain kinds of node being shared, nor should you rely on certain kinds
  7273. of nodes being unshared.
  7274. The following macros can be used with all expression nodes:
  7275. 'TREE_TYPE'
  7276. Returns the type of the expression. This value may not be
  7277. precisely the same type that would be given the expression in the
  7278. original program.
  7279. In what follows, some nodes that one might expect to always have type
  7280. 'bool' are documented to have either integral or boolean type. At some
  7281. point in the future, the C front end may also make use of this same
  7282. intermediate representation, and at this point these nodes will
  7283. certainly have integral type. The previous sentence is not meant to
  7284. imply that the C++ front end does not or will not give these nodes
  7285. integral type.
  7286. Below, we list the various kinds of expression nodes. Except where
  7287. noted otherwise, the operands to an expression are accessed using the
  7288. 'TREE_OPERAND' macro. For example, to access the first operand to a
  7289. binary plus expression 'expr', use:
  7290. TREE_OPERAND (expr, 0)
  7291. As this example indicates, the operands are zero-indexed.
  7292. * Menu:
  7293. * Constants: Constant expressions.
  7294. * Storage References::
  7295. * Unary and Binary Expressions::
  7296. * Vectors::
  7297. 
  7298. File: gccint.info, Node: Constant expressions, Next: Storage References, Up: Expression trees
  7299. 10.6.1 Constant expressions
  7300. ---------------------------
  7301. The table below begins with constants, moves on to unary expressions,
  7302. then proceeds to binary expressions, and concludes with various other
  7303. kinds of expressions:
  7304. 'INTEGER_CST'
  7305. These nodes represent integer constants. Note that the type of
  7306. these constants is obtained with 'TREE_TYPE'; they are not always
  7307. of type 'int'. In particular, 'char' constants are represented
  7308. with 'INTEGER_CST' nodes. The value of the integer constant 'e' is
  7309. represented in an array of HOST_WIDE_INT. There are enough elements
  7310. in the array to represent the value without taking extra elements
  7311. for redundant 0s or -1. The number of elements used to represent
  7312. 'e' is available via 'TREE_INT_CST_NUNITS'. Element 'i' can be
  7313. extracted by using 'TREE_INT_CST_ELT (e, i)'. 'TREE_INT_CST_LOW'
  7314. is a shorthand for 'TREE_INT_CST_ELT (e, 0)'.
  7315. The functions 'tree_fits_shwi_p' and 'tree_fits_uhwi_p' can be used
  7316. to tell if the value is small enough to fit in a signed
  7317. HOST_WIDE_INT or an unsigned HOST_WIDE_INT respectively. The value
  7318. can then be extracted using 'tree_to_shwi' and 'tree_to_uhwi'.
  7319. 'REAL_CST'
  7320. FIXME: Talk about how to obtain representations of this constant,
  7321. do comparisons, and so forth.
  7322. 'FIXED_CST'
  7323. These nodes represent fixed-point constants. The type of these
  7324. constants is obtained with 'TREE_TYPE'. 'TREE_FIXED_CST_PTR'
  7325. points to a 'struct fixed_value'; 'TREE_FIXED_CST' returns the
  7326. structure itself. 'struct fixed_value' contains 'data' with the
  7327. size of two 'HOST_BITS_PER_WIDE_INT' and 'mode' as the associated
  7328. fixed-point machine mode for 'data'.
  7329. 'COMPLEX_CST'
  7330. These nodes are used to represent complex number constants, that is
  7331. a '__complex__' whose parts are constant nodes. The
  7332. 'TREE_REALPART' and 'TREE_IMAGPART' return the real and the
  7333. imaginary parts respectively.
  7334. 'VECTOR_CST'
  7335. These nodes are used to represent vector constants, whose parts are
  7336. constant nodes. Each individual constant node is either an integer
  7337. or a double constant node. The first operand is a 'TREE_LIST' of
  7338. the constant nodes and is accessed through 'TREE_VECTOR_CST_ELTS'.
  7339. 'STRING_CST'
  7340. These nodes represent string-constants. The 'TREE_STRING_LENGTH'
  7341. returns the length of the string, as an 'int'. The
  7342. 'TREE_STRING_POINTER' is a 'char*' containing the string itself.
  7343. The string may not be 'NUL'-terminated, and it may contain embedded
  7344. 'NUL' characters. Therefore, the 'TREE_STRING_LENGTH' includes the
  7345. trailing 'NUL' if it is present.
  7346. For wide string constants, the 'TREE_STRING_LENGTH' is the number
  7347. of bytes in the string, and the 'TREE_STRING_POINTER' points to an
  7348. array of the bytes of the string, as represented on the target
  7349. system (that is, as integers in the target endianness). Wide and
  7350. non-wide string constants are distinguished only by the 'TREE_TYPE'
  7351. of the 'STRING_CST'.
  7352. FIXME: The formats of string constants are not well-defined when
  7353. the target system bytes are not the same width as host system
  7354. bytes.
  7355. 
  7356. File: gccint.info, Node: Storage References, Next: Unary and Binary Expressions, Prev: Constant expressions, Up: Expression trees
  7357. 10.6.2 References to storage
  7358. ----------------------------
  7359. 'ARRAY_REF'
  7360. These nodes represent array accesses. The first operand is the
  7361. array; the second is the index. To calculate the address of the
  7362. memory accessed, you must scale the index by the size of the type
  7363. of the array elements. The type of these expressions must be the
  7364. type of a component of the array. The third and fourth operands
  7365. are used after gimplification to represent the lower bound and
  7366. component size but should not be used directly; call
  7367. 'array_ref_low_bound' and 'array_ref_element_size' instead.
  7368. 'ARRAY_RANGE_REF'
  7369. These nodes represent access to a range (or "slice") of an array.
  7370. The operands are the same as that for 'ARRAY_REF' and have the same
  7371. meanings. The type of these expressions must be an array whose
  7372. component type is the same as that of the first operand. The range
  7373. of that array type determines the amount of data these expressions
  7374. access.
  7375. 'TARGET_MEM_REF'
  7376. These nodes represent memory accesses whose address directly map to
  7377. an addressing mode of the target architecture. The first argument
  7378. is 'TMR_SYMBOL' and must be a 'VAR_DECL' of an object with a fixed
  7379. address. The second argument is 'TMR_BASE' and the third one is
  7380. 'TMR_INDEX'. The fourth argument is 'TMR_STEP' and must be an
  7381. 'INTEGER_CST'. The fifth argument is 'TMR_OFFSET' and must be an
  7382. 'INTEGER_CST'. Any of the arguments may be NULL if the appropriate
  7383. component does not appear in the address. Address of the
  7384. 'TARGET_MEM_REF' is determined in the following way.
  7385. &TMR_SYMBOL + TMR_BASE + TMR_INDEX * TMR_STEP + TMR_OFFSET
  7386. The sixth argument is the reference to the original memory access,
  7387. which is preserved for the purposes of the RTL alias analysis. The
  7388. seventh argument is a tag representing the results of tree level
  7389. alias analysis.
  7390. 'ADDR_EXPR'
  7391. These nodes are used to represent the address of an object. (These
  7392. expressions will always have pointer or reference type.) The
  7393. operand may be another expression, or it may be a declaration.
  7394. As an extension, GCC allows users to take the address of a label.
  7395. In this case, the operand of the 'ADDR_EXPR' will be a
  7396. 'LABEL_DECL'. The type of such an expression is 'void*'.
  7397. If the object addressed is not an lvalue, a temporary is created,
  7398. and the address of the temporary is used.
  7399. 'INDIRECT_REF'
  7400. These nodes are used to represent the object pointed to by a
  7401. pointer. The operand is the pointer being dereferenced; it will
  7402. always have pointer or reference type.
  7403. 'MEM_REF'
  7404. These nodes are used to represent the object pointed to by a
  7405. pointer offset by a constant. The first operand is the pointer
  7406. being dereferenced; it will always have pointer or reference type.
  7407. The second operand is a pointer constant. Its type is specifying
  7408. the type to be used for type-based alias analysis.
  7409. 'COMPONENT_REF'
  7410. These nodes represent non-static data member accesses. The first
  7411. operand is the object (rather than a pointer to it); the second
  7412. operand is the 'FIELD_DECL' for the data member. The third operand
  7413. represents the byte offset of the field, but should not be used
  7414. directly; call 'component_ref_field_offset' instead.
  7415. 
  7416. File: gccint.info, Node: Unary and Binary Expressions, Next: Vectors, Prev: Storage References, Up: Expression trees
  7417. 10.6.3 Unary and Binary Expressions
  7418. -----------------------------------
  7419. 'NEGATE_EXPR'
  7420. These nodes represent unary negation of the single operand, for
  7421. both integer and floating-point types. The type of negation can be
  7422. determined by looking at the type of the expression.
  7423. The behavior of this operation on signed arithmetic overflow is
  7424. controlled by the 'flag_wrapv' and 'flag_trapv' variables.
  7425. 'ABS_EXPR'
  7426. These nodes represent the absolute value of the single operand, for
  7427. both integer and floating-point types. This is typically used to
  7428. implement the 'abs', 'labs' and 'llabs' builtins for integer types,
  7429. and the 'fabs', 'fabsf' and 'fabsl' builtins for floating point
  7430. types. The type of abs operation can be determined by looking at
  7431. the type of the expression.
  7432. This node is not used for complex types. To represent the modulus
  7433. or complex abs of a complex value, use the 'BUILT_IN_CABS',
  7434. 'BUILT_IN_CABSF' or 'BUILT_IN_CABSL' builtins, as used to implement
  7435. the C99 'cabs', 'cabsf' and 'cabsl' built-in functions.
  7436. 'BIT_NOT_EXPR'
  7437. These nodes represent bitwise complement, and will always have
  7438. integral type. The only operand is the value to be complemented.
  7439. 'TRUTH_NOT_EXPR'
  7440. These nodes represent logical negation, and will always have
  7441. integral (or boolean) type. The operand is the value being
  7442. negated. The type of the operand and that of the result are always
  7443. of 'BOOLEAN_TYPE' or 'INTEGER_TYPE'.
  7444. 'PREDECREMENT_EXPR'
  7445. 'PREINCREMENT_EXPR'
  7446. 'POSTDECREMENT_EXPR'
  7447. 'POSTINCREMENT_EXPR'
  7448. These nodes represent increment and decrement expressions. The
  7449. value of the single operand is computed, and the operand
  7450. incremented or decremented. In the case of 'PREDECREMENT_EXPR' and
  7451. 'PREINCREMENT_EXPR', the value of the expression is the value
  7452. resulting after the increment or decrement; in the case of
  7453. 'POSTDECREMENT_EXPR' and 'POSTINCREMENT_EXPR' is the value before
  7454. the increment or decrement occurs. The type of the operand, like
  7455. that of the result, will be either integral, boolean, or
  7456. floating-point.
  7457. 'FIX_TRUNC_EXPR'
  7458. These nodes represent conversion of a floating-point value to an
  7459. integer. The single operand will have a floating-point type, while
  7460. the complete expression will have an integral (or boolean) type.
  7461. The operand is rounded towards zero.
  7462. 'FLOAT_EXPR'
  7463. These nodes represent conversion of an integral (or boolean) value
  7464. to a floating-point value. The single operand will have integral
  7465. type, while the complete expression will have a floating-point
  7466. type.
  7467. FIXME: How is the operand supposed to be rounded? Is this
  7468. dependent on '-mieee'?
  7469. 'COMPLEX_EXPR'
  7470. These nodes are used to represent complex numbers constructed from
  7471. two expressions of the same (integer or real) type. The first
  7472. operand is the real part and the second operand is the imaginary
  7473. part.
  7474. 'CONJ_EXPR'
  7475. These nodes represent the conjugate of their operand.
  7476. 'REALPART_EXPR'
  7477. 'IMAGPART_EXPR'
  7478. These nodes represent respectively the real and the imaginary parts
  7479. of complex numbers (their sole argument).
  7480. 'NON_LVALUE_EXPR'
  7481. These nodes indicate that their one and only operand is not an
  7482. lvalue. A back end can treat these identically to the single
  7483. operand.
  7484. 'NOP_EXPR'
  7485. These nodes are used to represent conversions that do not require
  7486. any code-generation. For example, conversion of a 'char*' to an
  7487. 'int*' does not require any code be generated; such a conversion is
  7488. represented by a 'NOP_EXPR'. The single operand is the expression
  7489. to be converted. The conversion from a pointer to a reference is
  7490. also represented with a 'NOP_EXPR'.
  7491. 'CONVERT_EXPR'
  7492. These nodes are similar to 'NOP_EXPR's, but are used in those
  7493. situations where code may need to be generated. For example, if an
  7494. 'int*' is converted to an 'int' code may need to be generated on
  7495. some platforms. These nodes are never used for C++-specific
  7496. conversions, like conversions between pointers to different classes
  7497. in an inheritance hierarchy. Any adjustments that need to be made
  7498. in such cases are always indicated explicitly. Similarly, a
  7499. user-defined conversion is never represented by a 'CONVERT_EXPR';
  7500. instead, the function calls are made explicit.
  7501. 'FIXED_CONVERT_EXPR'
  7502. These nodes are used to represent conversions that involve
  7503. fixed-point values. For example, from a fixed-point value to
  7504. another fixed-point value, from an integer to a fixed-point value,
  7505. from a fixed-point value to an integer, from a floating-point value
  7506. to a fixed-point value, or from a fixed-point value to a
  7507. floating-point value.
  7508. 'LSHIFT_EXPR'
  7509. 'RSHIFT_EXPR'
  7510. These nodes represent left and right shifts, respectively. The
  7511. first operand is the value to shift; it will always be of integral
  7512. type. The second operand is an expression for the number of bits
  7513. by which to shift. Right shift should be treated as arithmetic,
  7514. i.e., the high-order bits should be zero-filled when the expression
  7515. has unsigned type and filled with the sign bit when the expression
  7516. has signed type. Note that the result is undefined if the second
  7517. operand is larger than or equal to the first operand's type size.
  7518. Unlike most nodes, these can have a vector as first operand and a
  7519. scalar as second operand.
  7520. 'BIT_IOR_EXPR'
  7521. 'BIT_XOR_EXPR'
  7522. 'BIT_AND_EXPR'
  7523. These nodes represent bitwise inclusive or, bitwise exclusive or,
  7524. and bitwise and, respectively. Both operands will always have
  7525. integral type.
  7526. 'TRUTH_ANDIF_EXPR'
  7527. 'TRUTH_ORIF_EXPR'
  7528. These nodes represent logical "and" and logical "or", respectively.
  7529. These operators are not strict; i.e., the second operand is
  7530. evaluated only if the value of the expression is not determined by
  7531. evaluation of the first operand. The type of the operands and that
  7532. of the result are always of 'BOOLEAN_TYPE' or 'INTEGER_TYPE'.
  7533. 'TRUTH_AND_EXPR'
  7534. 'TRUTH_OR_EXPR'
  7535. 'TRUTH_XOR_EXPR'
  7536. These nodes represent logical and, logical or, and logical
  7537. exclusive or. They are strict; both arguments are always
  7538. evaluated. There are no corresponding operators in C or C++, but
  7539. the front end will sometimes generate these expressions anyhow, if
  7540. it can tell that strictness does not matter. The type of the
  7541. operands and that of the result are always of 'BOOLEAN_TYPE' or
  7542. 'INTEGER_TYPE'.
  7543. 'POINTER_PLUS_EXPR'
  7544. This node represents pointer arithmetic. The first operand is
  7545. always a pointer/reference type. The second operand is always an
  7546. unsigned integer type compatible with sizetype. This is the only
  7547. binary arithmetic operand that can operate on pointer types.
  7548. 'PLUS_EXPR'
  7549. 'MINUS_EXPR'
  7550. 'MULT_EXPR'
  7551. These nodes represent various binary arithmetic operations.
  7552. Respectively, these operations are addition, subtraction (of the
  7553. second operand from the first) and multiplication. Their operands
  7554. may have either integral or floating type, but there will never be
  7555. case in which one operand is of floating type and the other is of
  7556. integral type.
  7557. The behavior of these operations on signed arithmetic overflow is
  7558. controlled by the 'flag_wrapv' and 'flag_trapv' variables.
  7559. 'MULT_HIGHPART_EXPR'
  7560. This node represents the "high-part" of a widening multiplication.
  7561. For an integral type with B bits of precision, the result is the
  7562. most significant B bits of the full 2B product.
  7563. 'RDIV_EXPR'
  7564. This node represents a floating point division operation.
  7565. 'TRUNC_DIV_EXPR'
  7566. 'FLOOR_DIV_EXPR'
  7567. 'CEIL_DIV_EXPR'
  7568. 'ROUND_DIV_EXPR'
  7569. These nodes represent integer division operations that return an
  7570. integer result. 'TRUNC_DIV_EXPR' rounds towards zero,
  7571. 'FLOOR_DIV_EXPR' rounds towards negative infinity, 'CEIL_DIV_EXPR'
  7572. rounds towards positive infinity and 'ROUND_DIV_EXPR' rounds to the
  7573. closest integer. Integer division in C and C++ is truncating, i.e.
  7574. 'TRUNC_DIV_EXPR'.
  7575. The behavior of these operations on signed arithmetic overflow,
  7576. when dividing the minimum signed integer by minus one, is
  7577. controlled by the 'flag_wrapv' and 'flag_trapv' variables.
  7578. 'TRUNC_MOD_EXPR'
  7579. 'FLOOR_MOD_EXPR'
  7580. 'CEIL_MOD_EXPR'
  7581. 'ROUND_MOD_EXPR'
  7582. These nodes represent the integer remainder or modulus operation.
  7583. The integer modulus of two operands 'a' and 'b' is defined as 'a -
  7584. (a/b)*b' where the division calculated using the corresponding
  7585. division operator. Hence for 'TRUNC_MOD_EXPR' this definition
  7586. assumes division using truncation towards zero, i.e.
  7587. 'TRUNC_DIV_EXPR'. Integer remainder in C and C++ uses truncating
  7588. division, i.e. 'TRUNC_MOD_EXPR'.
  7589. 'EXACT_DIV_EXPR'
  7590. The 'EXACT_DIV_EXPR' code is used to represent integer divisions
  7591. where the numerator is known to be an exact multiple of the
  7592. denominator. This allows the backend to choose between the faster
  7593. of 'TRUNC_DIV_EXPR', 'CEIL_DIV_EXPR' and 'FLOOR_DIV_EXPR' for the
  7594. current target.
  7595. 'LT_EXPR'
  7596. 'LE_EXPR'
  7597. 'GT_EXPR'
  7598. 'GE_EXPR'
  7599. 'EQ_EXPR'
  7600. 'NE_EXPR'
  7601. These nodes represent the less than, less than or equal to, greater
  7602. than, greater than or equal to, equal, and not equal comparison
  7603. operators. The first and second operands will either be both of
  7604. integral type, both of floating type or both of vector type. The
  7605. result type of these expressions will always be of integral,
  7606. boolean or signed integral vector type. These operations return
  7607. the result type's zero value for false, the result type's one value
  7608. for true, and a vector whose elements are zero (false) or minus one
  7609. (true) for vectors.
  7610. For floating point comparisons, if we honor IEEE NaNs and either
  7611. operand is NaN, then 'NE_EXPR' always returns true and the
  7612. remaining operators always return false. On some targets,
  7613. comparisons against an IEEE NaN, other than equality and
  7614. inequality, may generate a floating point exception.
  7615. 'ORDERED_EXPR'
  7616. 'UNORDERED_EXPR'
  7617. These nodes represent non-trapping ordered and unordered comparison
  7618. operators. These operations take two floating point operands and
  7619. determine whether they are ordered or unordered relative to each
  7620. other. If either operand is an IEEE NaN, their comparison is
  7621. defined to be unordered, otherwise the comparison is defined to be
  7622. ordered. The result type of these expressions will always be of
  7623. integral or boolean type. These operations return the result
  7624. type's zero value for false, and the result type's one value for
  7625. true.
  7626. 'UNLT_EXPR'
  7627. 'UNLE_EXPR'
  7628. 'UNGT_EXPR'
  7629. 'UNGE_EXPR'
  7630. 'UNEQ_EXPR'
  7631. 'LTGT_EXPR'
  7632. These nodes represent the unordered comparison operators. These
  7633. operations take two floating point operands and determine whether
  7634. the operands are unordered or are less than, less than or equal to,
  7635. greater than, greater than or equal to, or equal respectively. For
  7636. example, 'UNLT_EXPR' returns true if either operand is an IEEE NaN
  7637. or the first operand is less than the second. With the possible
  7638. exception of 'LTGT_EXPR', all of these operations are guaranteed
  7639. not to generate a floating point exception. The result type of
  7640. these expressions will always be of integral or boolean type.
  7641. These operations return the result type's zero value for false, and
  7642. the result type's one value for true.
  7643. 'MODIFY_EXPR'
  7644. These nodes represent assignment. The left-hand side is the first
  7645. operand; the right-hand side is the second operand. The left-hand
  7646. side will be a 'VAR_DECL', 'INDIRECT_REF', 'COMPONENT_REF', or
  7647. other lvalue.
  7648. These nodes are used to represent not only assignment with '=' but
  7649. also compound assignments (like '+='), by reduction to '='
  7650. assignment. In other words, the representation for 'i += 3' looks
  7651. just like that for 'i = i + 3'.
  7652. 'INIT_EXPR'
  7653. These nodes are just like 'MODIFY_EXPR', but are used only when a
  7654. variable is initialized, rather than assigned to subsequently.
  7655. This means that we can assume that the target of the initialization
  7656. is not used in computing its own value; any reference to the lhs in
  7657. computing the rhs is undefined.
  7658. 'COMPOUND_EXPR'
  7659. These nodes represent comma-expressions. The first operand is an
  7660. expression whose value is computed and thrown away prior to the
  7661. evaluation of the second operand. The value of the entire
  7662. expression is the value of the second operand.
  7663. 'COND_EXPR'
  7664. These nodes represent '?:' expressions. The first operand is of
  7665. boolean or integral type. If it evaluates to a nonzero value, the
  7666. second operand should be evaluated, and returned as the value of
  7667. the expression. Otherwise, the third operand is evaluated, and
  7668. returned as the value of the expression.
  7669. The second operand must have the same type as the entire
  7670. expression, unless it unconditionally throws an exception or calls
  7671. a noreturn function, in which case it should have void type. The
  7672. same constraints apply to the third operand. This allows array
  7673. bounds checks to be represented conveniently as '(i >= 0 && i < 10)
  7674. ? i : abort()'.
  7675. As a GNU extension, the C language front-ends allow the second
  7676. operand of the '?:' operator may be omitted in the source. For
  7677. example, 'x ? : 3' is equivalent to 'x ? x : 3', assuming that 'x'
  7678. is an expression without side-effects. In the tree representation,
  7679. however, the second operand is always present, possibly protected
  7680. by 'SAVE_EXPR' if the first argument does cause side-effects.
  7681. 'CALL_EXPR'
  7682. These nodes are used to represent calls to functions, including
  7683. non-static member functions. 'CALL_EXPR's are implemented as
  7684. expression nodes with a variable number of operands. Rather than
  7685. using 'TREE_OPERAND' to extract them, it is preferable to use the
  7686. specialized accessor macros and functions that operate specifically
  7687. on 'CALL_EXPR' nodes.
  7688. 'CALL_EXPR_FN' returns a pointer to the function to call; it is
  7689. always an expression whose type is a 'POINTER_TYPE'.
  7690. The number of arguments to the call is returned by
  7691. 'call_expr_nargs', while the arguments themselves can be accessed
  7692. with the 'CALL_EXPR_ARG' macro. The arguments are zero-indexed and
  7693. numbered left-to-right. You can iterate over the arguments using
  7694. 'FOR_EACH_CALL_EXPR_ARG', as in:
  7695. tree call, arg;
  7696. call_expr_arg_iterator iter;
  7697. FOR_EACH_CALL_EXPR_ARG (arg, iter, call)
  7698. /* arg is bound to successive arguments of call. */
  7699. ...;
  7700. For non-static member functions, there will be an operand
  7701. corresponding to the 'this' pointer. There will always be
  7702. expressions corresponding to all of the arguments, even if the
  7703. function is declared with default arguments and some arguments are
  7704. not explicitly provided at the call sites.
  7705. 'CALL_EXPR's also have a 'CALL_EXPR_STATIC_CHAIN' operand that is
  7706. used to implement nested functions. This operand is otherwise
  7707. null.
  7708. 'CLEANUP_POINT_EXPR'
  7709. These nodes represent full-expressions. The single operand is an
  7710. expression to evaluate. Any destructor calls engendered by the
  7711. creation of temporaries during the evaluation of that expression
  7712. should be performed immediately after the expression is evaluated.
  7713. 'CONSTRUCTOR'
  7714. These nodes represent the brace-enclosed initializers for a
  7715. structure or an array. They contain a sequence of component values
  7716. made out of a vector of constructor_elt, which is a ('INDEX',
  7717. 'VALUE') pair.
  7718. If the 'TREE_TYPE' of the 'CONSTRUCTOR' is a 'RECORD_TYPE',
  7719. 'UNION_TYPE' or 'QUAL_UNION_TYPE' then the 'INDEX' of each node in
  7720. the sequence will be a 'FIELD_DECL' and the 'VALUE' will be the
  7721. expression used to initialize that field.
  7722. If the 'TREE_TYPE' of the 'CONSTRUCTOR' is an 'ARRAY_TYPE', then
  7723. the 'INDEX' of each node in the sequence will be an 'INTEGER_CST'
  7724. or a 'RANGE_EXPR' of two 'INTEGER_CST's. A single 'INTEGER_CST'
  7725. indicates which element of the array is being assigned to. A
  7726. 'RANGE_EXPR' indicates an inclusive range of elements to
  7727. initialize. In both cases the 'VALUE' is the corresponding
  7728. initializer. It is re-evaluated for each element of a
  7729. 'RANGE_EXPR'. If the 'INDEX' is 'NULL_TREE', then the initializer
  7730. is for the next available array element.
  7731. In the front end, you should not depend on the fields appearing in
  7732. any particular order. However, in the middle end, fields must
  7733. appear in declaration order. You should not assume that all fields
  7734. will be represented. Unrepresented fields will be cleared
  7735. (zeroed), unless the CONSTRUCTOR_NO_CLEARING flag is set, in which
  7736. case their value becomes undefined.
  7737. 'COMPOUND_LITERAL_EXPR'
  7738. These nodes represent ISO C99 compound literals. The
  7739. 'COMPOUND_LITERAL_EXPR_DECL_EXPR' is a 'DECL_EXPR' containing an
  7740. anonymous 'VAR_DECL' for the unnamed object represented by the
  7741. compound literal; the 'DECL_INITIAL' of that 'VAR_DECL' is a
  7742. 'CONSTRUCTOR' representing the brace-enclosed list of initializers
  7743. in the compound literal. That anonymous 'VAR_DECL' can also be
  7744. accessed directly by the 'COMPOUND_LITERAL_EXPR_DECL' macro.
  7745. 'SAVE_EXPR'
  7746. A 'SAVE_EXPR' represents an expression (possibly involving
  7747. side-effects) that is used more than once. The side-effects should
  7748. occur only the first time the expression is evaluated. Subsequent
  7749. uses should just reuse the computed value. The first operand to
  7750. the 'SAVE_EXPR' is the expression to evaluate. The side-effects
  7751. should be executed where the 'SAVE_EXPR' is first encountered in a
  7752. depth-first preorder traversal of the expression tree.
  7753. 'TARGET_EXPR'
  7754. A 'TARGET_EXPR' represents a temporary object. The first operand
  7755. is a 'VAR_DECL' for the temporary variable. The second operand is
  7756. the initializer for the temporary. The initializer is evaluated
  7757. and, if non-void, copied (bitwise) into the temporary. If the
  7758. initializer is void, that means that it will perform the
  7759. initialization itself.
  7760. Often, a 'TARGET_EXPR' occurs on the right-hand side of an
  7761. assignment, or as the second operand to a comma-expression which is
  7762. itself the right-hand side of an assignment, etc. In this case, we
  7763. say that the 'TARGET_EXPR' is "normal"; otherwise, we say it is
  7764. "orphaned". For a normal 'TARGET_EXPR' the temporary variable
  7765. should be treated as an alias for the left-hand side of the
  7766. assignment, rather than as a new temporary variable.
  7767. The third operand to the 'TARGET_EXPR', if present, is a
  7768. cleanup-expression (i.e., destructor call) for the temporary. If
  7769. this expression is orphaned, then this expression must be executed
  7770. when the statement containing this expression is complete. These
  7771. cleanups must always be executed in the order opposite to that in
  7772. which they were encountered. Note that if a temporary is created
  7773. on one branch of a conditional operator (i.e., in the second or
  7774. third operand to a 'COND_EXPR'), the cleanup must be run only if
  7775. that branch is actually executed.
  7776. 'VA_ARG_EXPR'
  7777. This node is used to implement support for the C/C++ variable
  7778. argument-list mechanism. It represents expressions like 'va_arg
  7779. (ap, type)'. Its 'TREE_TYPE' yields the tree representation for
  7780. 'type' and its sole argument yields the representation for 'ap'.
  7781. 'ANNOTATE_EXPR'
  7782. This node is used to attach markers to an expression. The first
  7783. operand is the annotated expression, the second is an 'INTEGER_CST'
  7784. with a value from 'enum annot_expr_kind'.
  7785. 
  7786. File: gccint.info, Node: Vectors, Prev: Unary and Binary Expressions, Up: Expression trees
  7787. 10.6.4 Vectors
  7788. --------------
  7789. 'VEC_LSHIFT_EXPR'
  7790. 'VEC_RSHIFT_EXPR'
  7791. These nodes represent whole vector left and right shifts,
  7792. respectively. The first operand is the vector to shift; it will
  7793. always be of vector type. The second operand is an expression for
  7794. the number of bits by which to shift. Note that the result is
  7795. undefined if the second operand is larger than or equal to the
  7796. first operand's type size.
  7797. 'VEC_WIDEN_MULT_HI_EXPR'
  7798. 'VEC_WIDEN_MULT_LO_EXPR'
  7799. These nodes represent widening vector multiplication of the high
  7800. and low parts of the two input vectors, respectively. Their
  7801. operands are vectors that contain the same number of elements ('N')
  7802. of the same integral type. The result is a vector that contains
  7803. half as many elements, of an integral type whose size is twice as
  7804. wide. In the case of 'VEC_WIDEN_MULT_HI_EXPR' the high 'N/2'
  7805. elements of the two vector are multiplied to produce the vector of
  7806. 'N/2' products. In the case of 'VEC_WIDEN_MULT_LO_EXPR' the low
  7807. 'N/2' elements of the two vector are multiplied to produce the
  7808. vector of 'N/2' products.
  7809. 'VEC_UNPACK_HI_EXPR'
  7810. 'VEC_UNPACK_LO_EXPR'
  7811. These nodes represent unpacking of the high and low parts of the
  7812. input vector, respectively. The single operand is a vector that
  7813. contains 'N' elements of the same integral or floating point type.
  7814. The result is a vector that contains half as many elements, of an
  7815. integral or floating point type whose size is twice as wide. In
  7816. the case of 'VEC_UNPACK_HI_EXPR' the high 'N/2' elements of the
  7817. vector are extracted and widened (promoted). In the case of
  7818. 'VEC_UNPACK_LO_EXPR' the low 'N/2' elements of the vector are
  7819. extracted and widened (promoted).
  7820. 'VEC_UNPACK_FLOAT_HI_EXPR'
  7821. 'VEC_UNPACK_FLOAT_LO_EXPR'
  7822. These nodes represent unpacking of the high and low parts of the
  7823. input vector, where the values are converted from fixed point to
  7824. floating point. The single operand is a vector that contains 'N'
  7825. elements of the same integral type. The result is a vector that
  7826. contains half as many elements of a floating point type whose size
  7827. is twice as wide. In the case of 'VEC_UNPACK_HI_EXPR' the high
  7828. 'N/2' elements of the vector are extracted, converted and widened.
  7829. In the case of 'VEC_UNPACK_LO_EXPR' the low 'N/2' elements of the
  7830. vector are extracted, converted and widened.
  7831. 'VEC_PACK_TRUNC_EXPR'
  7832. This node represents packing of truncated elements of the two input
  7833. vectors into the output vector. Input operands are vectors that
  7834. contain the same number of elements of the same integral or
  7835. floating point type. The result is a vector that contains twice as
  7836. many elements of an integral or floating point type whose size is
  7837. half as wide. The elements of the two vectors are demoted and
  7838. merged (concatenated) to form the output vector.
  7839. 'VEC_PACK_SAT_EXPR'
  7840. This node represents packing of elements of the two input vectors
  7841. into the output vector using saturation. Input operands are
  7842. vectors that contain the same number of elements of the same
  7843. integral type. The result is a vector that contains twice as many
  7844. elements of an integral type whose size is half as wide. The
  7845. elements of the two vectors are demoted and merged (concatenated)
  7846. to form the output vector.
  7847. 'VEC_PACK_FIX_TRUNC_EXPR'
  7848. This node represents packing of elements of the two input vectors
  7849. into the output vector, where the values are converted from
  7850. floating point to fixed point. Input operands are vectors that
  7851. contain the same number of elements of a floating point type. The
  7852. result is a vector that contains twice as many elements of an
  7853. integral type whose size is half as wide. The elements of the two
  7854. vectors are merged (concatenated) to form the output vector.
  7855. 'VEC_COND_EXPR'
  7856. These nodes represent '?:' expressions. The three operands must be
  7857. vectors of the same size and number of elements. The second and
  7858. third operands must have the same type as the entire expression.
  7859. The first operand is of signed integral vector type. If an element
  7860. of the first operand evaluates to a zero value, the corresponding
  7861. element of the result is taken from the third operand. If it
  7862. evaluates to a minus one value, it is taken from the second
  7863. operand. It should never evaluate to any other value currently,
  7864. but optimizations should not rely on that property. In contrast
  7865. with a 'COND_EXPR', all operands are always evaluated.
  7866. 'SAD_EXPR'
  7867. This node represents the Sum of Absolute Differences operation.
  7868. The three operands must be vectors of integral types. The first
  7869. and second operand must have the same type. The size of the vector
  7870. element of the third operand must be at lease twice of the size of
  7871. the vector element of the first and second one. The SAD is
  7872. calculated between the first and second operands, added to the
  7873. third operand, and returned.
  7874. 
  7875. File: gccint.info, Node: Statements, Next: Functions, Prev: Expression trees, Up: GENERIC
  7876. 10.7 Statements
  7877. ===============
  7878. Most statements in GIMPLE are assignment statements, represented by
  7879. 'GIMPLE_ASSIGN'. No other C expressions can appear at statement level;
  7880. a reference to a volatile object is converted into a 'GIMPLE_ASSIGN'.
  7881. There are also several varieties of complex statements.
  7882. * Menu:
  7883. * Basic Statements::
  7884. * Blocks::
  7885. * Statement Sequences::
  7886. * Empty Statements::
  7887. * Jumps::
  7888. * Cleanups::
  7889. * OpenMP::
  7890. * OpenACC::
  7891. 
  7892. File: gccint.info, Node: Basic Statements, Next: Blocks, Up: Statements
  7893. 10.7.1 Basic Statements
  7894. -----------------------
  7895. 'ASM_EXPR'
  7896. Used to represent an inline assembly statement. For an inline
  7897. assembly statement like:
  7898. asm ("mov x, y");
  7899. The 'ASM_STRING' macro will return a 'STRING_CST' node for '"mov x,
  7900. y"'. If the original statement made use of the extended-assembly
  7901. syntax, then 'ASM_OUTPUTS', 'ASM_INPUTS', and 'ASM_CLOBBERS' will
  7902. be the outputs, inputs, and clobbers for the statement, represented
  7903. as 'STRING_CST' nodes. The extended-assembly syntax looks like:
  7904. asm ("fsinx %1,%0" : "=f" (result) : "f" (angle));
  7905. The first string is the 'ASM_STRING', containing the instruction
  7906. template. The next two strings are the output and inputs,
  7907. respectively; this statement has no clobbers. As this example
  7908. indicates, "plain" assembly statements are merely a special case of
  7909. extended assembly statements; they have no cv-qualifiers, outputs,
  7910. inputs, or clobbers. All of the strings will be 'NUL'-terminated,
  7911. and will contain no embedded 'NUL'-characters.
  7912. If the assembly statement is declared 'volatile', or if the
  7913. statement was not an extended assembly statement, and is therefore
  7914. implicitly volatile, then the predicate 'ASM_VOLATILE_P' will hold
  7915. of the 'ASM_EXPR'.
  7916. 'DECL_EXPR'
  7917. Used to represent a local declaration. The 'DECL_EXPR_DECL' macro
  7918. can be used to obtain the entity declared. This declaration may be
  7919. a 'LABEL_DECL', indicating that the label declared is a local
  7920. label. (As an extension, GCC allows the declaration of labels with
  7921. scope.) In C, this declaration may be a 'FUNCTION_DECL',
  7922. indicating the use of the GCC nested function extension. For more
  7923. information, *note Functions::.
  7924. 'LABEL_EXPR'
  7925. Used to represent a label. The 'LABEL_DECL' declared by this
  7926. statement can be obtained with the 'LABEL_EXPR_LABEL' macro. The
  7927. 'IDENTIFIER_NODE' giving the name of the label can be obtained from
  7928. the 'LABEL_DECL' with 'DECL_NAME'.
  7929. 'GOTO_EXPR'
  7930. Used to represent a 'goto' statement. The 'GOTO_DESTINATION' will
  7931. usually be a 'LABEL_DECL'. However, if the "computed goto"
  7932. extension has been used, the 'GOTO_DESTINATION' will be an
  7933. arbitrary expression indicating the destination. This expression
  7934. will always have pointer type.
  7935. 'RETURN_EXPR'
  7936. Used to represent a 'return' statement. Operand 0 represents the
  7937. value to return. It should either be the 'RESULT_DECL' for the
  7938. containing function, or a 'MODIFY_EXPR' or 'INIT_EXPR' setting the
  7939. function's 'RESULT_DECL'. It will be 'NULL_TREE' if the statement
  7940. was just
  7941. return;
  7942. 'LOOP_EXPR'
  7943. These nodes represent "infinite" loops. The 'LOOP_EXPR_BODY'
  7944. represents the body of the loop. It should be executed forever,
  7945. unless an 'EXIT_EXPR' is encountered.
  7946. 'EXIT_EXPR'
  7947. These nodes represent conditional exits from the nearest enclosing
  7948. 'LOOP_EXPR'. The single operand is the condition; if it is
  7949. nonzero, then the loop should be exited. An 'EXIT_EXPR' will only
  7950. appear within a 'LOOP_EXPR'.
  7951. 'SWITCH_STMT'
  7952. Used to represent a 'switch' statement. The 'SWITCH_STMT_COND' is
  7953. the expression on which the switch is occurring. See the
  7954. documentation for an 'IF_STMT' for more information on the
  7955. representation used for the condition. The 'SWITCH_STMT_BODY' is
  7956. the body of the switch statement. The 'SWITCH_STMT_TYPE' is the
  7957. original type of switch expression as given in the source, before
  7958. any compiler conversions.
  7959. 'CASE_LABEL_EXPR'
  7960. Use to represent a 'case' label, range of 'case' labels, or a
  7961. 'default' label. If 'CASE_LOW' is 'NULL_TREE', then this is a
  7962. 'default' label. Otherwise, if 'CASE_HIGH' is 'NULL_TREE', then
  7963. this is an ordinary 'case' label. In this case, 'CASE_LOW' is an
  7964. expression giving the value of the label. Both 'CASE_LOW' and
  7965. 'CASE_HIGH' are 'INTEGER_CST' nodes. These values will have the
  7966. same type as the condition expression in the switch statement.
  7967. Otherwise, if both 'CASE_LOW' and 'CASE_HIGH' are defined, the
  7968. statement is a range of case labels. Such statements originate
  7969. with the extension that allows users to write things of the form:
  7970. case 2 ... 5:
  7971. The first value will be 'CASE_LOW', while the second will be
  7972. 'CASE_HIGH'.
  7973. 
  7974. File: gccint.info, Node: Blocks, Next: Statement Sequences, Prev: Basic Statements, Up: Statements
  7975. 10.7.2 Blocks
  7976. -------------
  7977. Block scopes and the variables they declare in GENERIC are expressed
  7978. using the 'BIND_EXPR' code, which in previous versions of GCC was
  7979. primarily used for the C statement-expression extension.
  7980. Variables in a block are collected into 'BIND_EXPR_VARS' in declaration
  7981. order through their 'TREE_CHAIN' field. Any runtime initialization is
  7982. moved out of 'DECL_INITIAL' and into a statement in the controlled
  7983. block. When gimplifying from C or C++, this initialization replaces the
  7984. 'DECL_STMT'. These variables will never require cleanups. The scope of
  7985. these variables is just the body
  7986. Variable-length arrays (VLAs) complicate this process, as their size
  7987. often refers to variables initialized earlier in the block and their
  7988. initialization involves an explicit stack allocation. To handle this,
  7989. we add an indirection and replace them with a pointer to stack space
  7990. allocated by means of 'alloca'. In most cases, we also arrange for this
  7991. space to be reclaimed when the enclosing 'BIND_EXPR' is exited, the
  7992. exception to this being when there is an explicit call to 'alloca' in
  7993. the source code, in which case the stack is left depressed on exit of
  7994. the 'BIND_EXPR'.
  7995. A C++ program will usually contain more 'BIND_EXPR's than there are
  7996. syntactic blocks in the source code, since several C++ constructs have
  7997. implicit scopes associated with them. On the other hand, although the
  7998. C++ front end uses pseudo-scopes to handle cleanups for objects with
  7999. destructors, these don't translate into the GIMPLE form; multiple
  8000. declarations at the same level use the same 'BIND_EXPR'.
  8001. 
  8002. File: gccint.info, Node: Statement Sequences, Next: Empty Statements, Prev: Blocks, Up: Statements
  8003. 10.7.3 Statement Sequences
  8004. --------------------------
  8005. Multiple statements at the same nesting level are collected into a
  8006. 'STATEMENT_LIST'. Statement lists are modified and traversed using the
  8007. interface in 'tree-iterator.h'.
  8008. 
  8009. File: gccint.info, Node: Empty Statements, Next: Jumps, Prev: Statement Sequences, Up: Statements
  8010. 10.7.4 Empty Statements
  8011. -----------------------
  8012. Whenever possible, statements with no effect are discarded. But if they
  8013. are nested within another construct which cannot be discarded for some
  8014. reason, they are instead replaced with an empty statement, generated by
  8015. 'build_empty_stmt'. Initially, all empty statements were shared, after
  8016. the pattern of the Java front end, but this caused a lot of trouble in
  8017. practice.
  8018. An empty statement is represented as '(void)0'.
  8019. 
  8020. File: gccint.info, Node: Jumps, Next: Cleanups, Prev: Empty Statements, Up: Statements
  8021. 10.7.5 Jumps
  8022. ------------
  8023. Other jumps are expressed by either 'GOTO_EXPR' or 'RETURN_EXPR'.
  8024. The operand of a 'GOTO_EXPR' must be either a label or a variable
  8025. containing the address to jump to.
  8026. The operand of a 'RETURN_EXPR' is either 'NULL_TREE', 'RESULT_DECL', or
  8027. a 'MODIFY_EXPR' which sets the return value. It would be nice to move
  8028. the 'MODIFY_EXPR' into a separate statement, but the special return
  8029. semantics in 'expand_return' make that difficult. It may still happen
  8030. in the future, perhaps by moving most of that logic into
  8031. 'expand_assignment'.
  8032. 
  8033. File: gccint.info, Node: Cleanups, Next: OpenMP, Prev: Jumps, Up: Statements
  8034. 10.7.6 Cleanups
  8035. ---------------
  8036. Destructors for local C++ objects and similar dynamic cleanups are
  8037. represented in GIMPLE by a 'TRY_FINALLY_EXPR'. 'TRY_FINALLY_EXPR' has
  8038. two operands, both of which are a sequence of statements to execute.
  8039. The first sequence is executed. When it completes the second sequence
  8040. is executed.
  8041. The first sequence may complete in the following ways:
  8042. 1. Execute the last statement in the sequence and fall off the end.
  8043. 2. Execute a goto statement ('GOTO_EXPR') to an ordinary label outside
  8044. the sequence.
  8045. 3. Execute a return statement ('RETURN_EXPR').
  8046. 4. Throw an exception. This is currently not explicitly represented
  8047. in GIMPLE.
  8048. The second sequence is not executed if the first sequence completes by
  8049. calling 'setjmp' or 'exit' or any other function that does not return.
  8050. The second sequence is also not executed if the first sequence completes
  8051. via a non-local goto or a computed goto (in general the compiler does
  8052. not know whether such a goto statement exits the first sequence or not,
  8053. so we assume that it doesn't).
  8054. After the second sequence is executed, if it completes normally by
  8055. falling off the end, execution continues wherever the first sequence
  8056. would have continued, by falling off the end, or doing a goto, etc.
  8057. 'TRY_FINALLY_EXPR' complicates the flow graph, since the cleanup needs
  8058. to appear on every edge out of the controlled block; this reduces the
  8059. freedom to move code across these edges. Therefore, the EH lowering
  8060. pass which runs before most of the optimization passes eliminates these
  8061. expressions by explicitly adding the cleanup to each edge. Rethrowing
  8062. the exception is represented using 'RESX_EXPR'.
  8063. 
  8064. File: gccint.info, Node: OpenMP, Next: OpenACC, Prev: Cleanups, Up: Statements
  8065. 10.7.7 OpenMP
  8066. -------------
  8067. All the statements starting with 'OMP_' represent directives and clauses
  8068. used by the OpenMP API <http://www.openmp.org/>.
  8069. 'OMP_PARALLEL'
  8070. Represents '#pragma omp parallel [clause1 ... clauseN]'. It has
  8071. four operands:
  8072. Operand 'OMP_PARALLEL_BODY' is valid while in GENERIC and High
  8073. GIMPLE forms. It contains the body of code to be executed by all
  8074. the threads. During GIMPLE lowering, this operand becomes 'NULL'
  8075. and the body is emitted linearly after 'OMP_PARALLEL'.
  8076. Operand 'OMP_PARALLEL_CLAUSES' is the list of clauses associated
  8077. with the directive.
  8078. Operand 'OMP_PARALLEL_FN' is created by 'pass_lower_omp', it
  8079. contains the 'FUNCTION_DECL' for the function that will contain the
  8080. body of the parallel region.
  8081. Operand 'OMP_PARALLEL_DATA_ARG' is also created by
  8082. 'pass_lower_omp'. If there are shared variables to be communicated
  8083. to the children threads, this operand will contain the 'VAR_DECL'
  8084. that contains all the shared values and variables.
  8085. 'OMP_FOR'
  8086. Represents '#pragma omp for [clause1 ... clauseN]'. It has six
  8087. operands:
  8088. Operand 'OMP_FOR_BODY' contains the loop body.
  8089. Operand 'OMP_FOR_CLAUSES' is the list of clauses associated with
  8090. the directive.
  8091. Operand 'OMP_FOR_INIT' is the loop initialization code of the form
  8092. 'VAR = N1'.
  8093. Operand 'OMP_FOR_COND' is the loop conditional expression of the
  8094. form 'VAR {<,>,<=,>=} N2'.
  8095. Operand 'OMP_FOR_INCR' is the loop index increment of the form 'VAR
  8096. {+=,-=} INCR'.
  8097. Operand 'OMP_FOR_PRE_BODY' contains side-effect code from operands
  8098. 'OMP_FOR_INIT', 'OMP_FOR_COND' and 'OMP_FOR_INC'. These
  8099. side-effects are part of the 'OMP_FOR' block but must be evaluated
  8100. before the start of loop body.
  8101. The loop index variable 'VAR' must be a signed integer variable,
  8102. which is implicitly private to each thread. Bounds 'N1' and 'N2'
  8103. and the increment expression 'INCR' are required to be loop
  8104. invariant integer expressions that are evaluated without any
  8105. synchronization. The evaluation order, frequency of evaluation and
  8106. side-effects are unspecified by the standard.
  8107. 'OMP_SECTIONS'
  8108. Represents '#pragma omp sections [clause1 ... clauseN]'.
  8109. Operand 'OMP_SECTIONS_BODY' contains the sections body, which in
  8110. turn contains a set of 'OMP_SECTION' nodes for each of the
  8111. concurrent sections delimited by '#pragma omp section'.
  8112. Operand 'OMP_SECTIONS_CLAUSES' is the list of clauses associated
  8113. with the directive.
  8114. 'OMP_SECTION'
  8115. Section delimiter for 'OMP_SECTIONS'.
  8116. 'OMP_SINGLE'
  8117. Represents '#pragma omp single'.
  8118. Operand 'OMP_SINGLE_BODY' contains the body of code to be executed
  8119. by a single thread.
  8120. Operand 'OMP_SINGLE_CLAUSES' is the list of clauses associated with
  8121. the directive.
  8122. 'OMP_MASTER'
  8123. Represents '#pragma omp master'.
  8124. Operand 'OMP_MASTER_BODY' contains the body of code to be executed
  8125. by the master thread.
  8126. 'OMP_ORDERED'
  8127. Represents '#pragma omp ordered'.
  8128. Operand 'OMP_ORDERED_BODY' contains the body of code to be executed
  8129. in the sequential order dictated by the loop index variable.
  8130. 'OMP_CRITICAL'
  8131. Represents '#pragma omp critical [name]'.
  8132. Operand 'OMP_CRITICAL_BODY' is the critical section.
  8133. Operand 'OMP_CRITICAL_NAME' is an optional identifier to label the
  8134. critical section.
  8135. 'OMP_RETURN'
  8136. This does not represent any OpenMP directive, it is an artificial
  8137. marker to indicate the end of the body of an OpenMP. It is used by
  8138. the flow graph ('tree-cfg.c') and OpenMP region building code
  8139. ('omp-low.c').
  8140. 'OMP_CONTINUE'
  8141. Similarly, this instruction does not represent an OpenMP directive,
  8142. it is used by 'OMP_FOR' (and similar codes) as well as
  8143. 'OMP_SECTIONS' to mark the place where the code needs to loop to
  8144. the next iteration, or the next section, respectively.
  8145. In some cases, 'OMP_CONTINUE' is placed right before 'OMP_RETURN'.
  8146. But if there are cleanups that need to occur right after the
  8147. looping body, it will be emitted between 'OMP_CONTINUE' and
  8148. 'OMP_RETURN'.
  8149. 'OMP_ATOMIC'
  8150. Represents '#pragma omp atomic'.
  8151. Operand 0 is the address at which the atomic operation is to be
  8152. performed.
  8153. Operand 1 is the expression to evaluate. The gimplifier tries
  8154. three alternative code generation strategies. Whenever possible,
  8155. an atomic update built-in is used. If that fails, a
  8156. compare-and-swap loop is attempted. If that also fails, a regular
  8157. critical section around the expression is used.
  8158. 'OMP_CLAUSE'
  8159. Represents clauses associated with one of the 'OMP_' directives.
  8160. Clauses are represented by separate subcodes defined in 'tree.h'.
  8161. Clauses codes can be one of: 'OMP_CLAUSE_PRIVATE',
  8162. 'OMP_CLAUSE_SHARED', 'OMP_CLAUSE_FIRSTPRIVATE',
  8163. 'OMP_CLAUSE_LASTPRIVATE', 'OMP_CLAUSE_COPYIN',
  8164. 'OMP_CLAUSE_COPYPRIVATE', 'OMP_CLAUSE_IF',
  8165. 'OMP_CLAUSE_NUM_THREADS', 'OMP_CLAUSE_SCHEDULE',
  8166. 'OMP_CLAUSE_NOWAIT', 'OMP_CLAUSE_ORDERED', 'OMP_CLAUSE_DEFAULT',
  8167. 'OMP_CLAUSE_REDUCTION', 'OMP_CLAUSE_COLLAPSE', 'OMP_CLAUSE_UNTIED',
  8168. 'OMP_CLAUSE_FINAL', and 'OMP_CLAUSE_MERGEABLE'. Each code
  8169. represents the corresponding OpenMP clause.
  8170. Clauses associated with the same directive are chained together via
  8171. 'OMP_CLAUSE_CHAIN'. Those clauses that accept a list of variables
  8172. are restricted to exactly one, accessed with 'OMP_CLAUSE_VAR'.
  8173. Therefore, multiple variables under the same clause 'C' need to be
  8174. represented as multiple 'C' clauses chained together. This
  8175. facilitates adding new clauses during compilation.
  8176. 
  8177. File: gccint.info, Node: OpenACC, Prev: OpenMP, Up: Statements
  8178. 10.7.8 OpenACC
  8179. --------------
  8180. All the statements starting with 'OACC_' represent directives and
  8181. clauses used by the OpenACC API <http://www.openacc.org/>.
  8182. 'OACC_CACHE'
  8183. Represents '#pragma acc cache (var ...)'.
  8184. 'OACC_DATA'
  8185. Represents '#pragma acc data [clause1 ... clauseN]'.
  8186. 'OACC_DECLARE'
  8187. Represents '#pragma acc declare [clause1 ... clauseN]'.
  8188. 'OACC_ENTER_DATA'
  8189. Represents '#pragma acc enter data [clause1 ... clauseN]'.
  8190. 'OACC_EXIT_DATA'
  8191. Represents '#pragma acc exit data [clause1 ... clauseN]'.
  8192. 'OACC_HOST_DATA'
  8193. Represents '#pragma acc host_data [clause1 ... clauseN]'.
  8194. 'OACC_KERNELS'
  8195. Represents '#pragma acc kernels [clause1 ... clauseN]'.
  8196. 'OACC_LOOP'
  8197. Represents '#pragma acc loop [clause1 ... clauseN]'.
  8198. See the description of the 'OMP_FOR' code.
  8199. 'OACC_PARALLEL'
  8200. Represents '#pragma acc parallel [clause1 ... clauseN]'.
  8201. 'OACC_UPDATE'
  8202. Represents '#pragma acc update [clause1 ... clauseN]'.
  8203. 
  8204. File: gccint.info, Node: Functions, Next: Language-dependent trees, Prev: Statements, Up: GENERIC
  8205. 10.8 Functions
  8206. ==============
  8207. A function is represented by a 'FUNCTION_DECL' node. It stores the
  8208. basic pieces of the function such as body, parameters, and return type
  8209. as well as information on the surrounding context, visibility, and
  8210. linkage.
  8211. * Menu:
  8212. * Function Basics:: Function names, body, and parameters.
  8213. * Function Properties:: Context, linkage, etc.
  8214. 
  8215. File: gccint.info, Node: Function Basics, Next: Function Properties, Up: Functions
  8216. 10.8.1 Function Basics
  8217. ----------------------
  8218. A function has four core parts: the name, the parameters, the result,
  8219. and the body. The following macros and functions access these parts of
  8220. a 'FUNCTION_DECL' as well as other basic features:
  8221. 'DECL_NAME'
  8222. This macro returns the unqualified name of the function, as an
  8223. 'IDENTIFIER_NODE'. For an instantiation of a function template,
  8224. the 'DECL_NAME' is the unqualified name of the template, not
  8225. something like 'f<int>'. The value of 'DECL_NAME' is undefined
  8226. when used on a constructor, destructor, overloaded operator, or
  8227. type-conversion operator, or any function that is implicitly
  8228. generated by the compiler. See below for macros that can be used
  8229. to distinguish these cases.
  8230. 'DECL_ASSEMBLER_NAME'
  8231. This macro returns the mangled name of the function, also an
  8232. 'IDENTIFIER_NODE'. This name does not contain leading underscores
  8233. on systems that prefix all identifiers with underscores. The
  8234. mangled name is computed in the same way on all platforms; if
  8235. special processing is required to deal with the object file format
  8236. used on a particular platform, it is the responsibility of the back
  8237. end to perform those modifications. (Of course, the back end
  8238. should not modify 'DECL_ASSEMBLER_NAME' itself.)
  8239. Using 'DECL_ASSEMBLER_NAME' will cause additional memory to be
  8240. allocated (for the mangled name of the entity) so it should be used
  8241. only when emitting assembly code. It should not be used within the
  8242. optimizers to determine whether or not two declarations are the
  8243. same, even though some of the existing optimizers do use it in that
  8244. way. These uses will be removed over time.
  8245. 'DECL_ARGUMENTS'
  8246. This macro returns the 'PARM_DECL' for the first argument to the
  8247. function. Subsequent 'PARM_DECL' nodes can be obtained by
  8248. following the 'TREE_CHAIN' links.
  8249. 'DECL_RESULT'
  8250. This macro returns the 'RESULT_DECL' for the function.
  8251. 'DECL_SAVED_TREE'
  8252. This macro returns the complete body of the function.
  8253. 'TREE_TYPE'
  8254. This macro returns the 'FUNCTION_TYPE' or 'METHOD_TYPE' for the
  8255. function.
  8256. 'DECL_INITIAL'
  8257. A function that has a definition in the current translation unit
  8258. will have a non-'NULL' 'DECL_INITIAL'. However, back ends should
  8259. not make use of the particular value given by 'DECL_INITIAL'.
  8260. It should contain a tree of 'BLOCK' nodes that mirrors the scopes
  8261. that variables are bound in the function. Each block contains a
  8262. list of decls declared in a basic block, a pointer to a chain of
  8263. blocks at the next lower scope level, then a pointer to the next
  8264. block at the same level and a backpointer to the parent 'BLOCK' or
  8265. 'FUNCTION_DECL'. So given a function as follows:
  8266. void foo()
  8267. {
  8268. int a;
  8269. {
  8270. int b;
  8271. }
  8272. int c;
  8273. }
  8274. you would get the following:
  8275. tree foo = FUNCTION_DECL;
  8276. tree decl_a = VAR_DECL;
  8277. tree decl_b = VAR_DECL;
  8278. tree decl_c = VAR_DECL;
  8279. tree block_a = BLOCK;
  8280. tree block_b = BLOCK;
  8281. tree block_c = BLOCK;
  8282. BLOCK_VARS(block_a) = decl_a;
  8283. BLOCK_SUBBLOCKS(block_a) = block_b;
  8284. BLOCK_CHAIN(block_a) = block_c;
  8285. BLOCK_SUPERCONTEXT(block_a) = foo;
  8286. BLOCK_VARS(block_b) = decl_b;
  8287. BLOCK_SUPERCONTEXT(block_b) = block_a;
  8288. BLOCK_VARS(block_c) = decl_c;
  8289. BLOCK_SUPERCONTEXT(block_c) = foo;
  8290. DECL_INITIAL(foo) = block_a;
  8291. 
  8292. File: gccint.info, Node: Function Properties, Prev: Function Basics, Up: Functions
  8293. 10.8.2 Function Properties
  8294. --------------------------
  8295. To determine the scope of a function, you can use the 'DECL_CONTEXT'
  8296. macro. This macro will return the class (either a 'RECORD_TYPE' or a
  8297. 'UNION_TYPE') or namespace (a 'NAMESPACE_DECL') of which the function is
  8298. a member. For a virtual function, this macro returns the class in which
  8299. the function was actually defined, not the base class in which the
  8300. virtual declaration occurred.
  8301. In C, the 'DECL_CONTEXT' for a function maybe another function. This
  8302. representation indicates that the GNU nested function extension is in
  8303. use. For details on the semantics of nested functions, see the GCC
  8304. Manual. The nested function can refer to local variables in its
  8305. containing function. Such references are not explicitly marked in the
  8306. tree structure; back ends must look at the 'DECL_CONTEXT' for the
  8307. referenced 'VAR_DECL'. If the 'DECL_CONTEXT' for the referenced
  8308. 'VAR_DECL' is not the same as the function currently being processed,
  8309. and neither 'DECL_EXTERNAL' nor 'TREE_STATIC' hold, then the reference
  8310. is to a local variable in a containing function, and the back end must
  8311. take appropriate action.
  8312. 'DECL_EXTERNAL'
  8313. This predicate holds if the function is undefined.
  8314. 'TREE_PUBLIC'
  8315. This predicate holds if the function has external linkage.
  8316. 'TREE_STATIC'
  8317. This predicate holds if the function has been defined.
  8318. 'TREE_THIS_VOLATILE'
  8319. This predicate holds if the function does not return normally.
  8320. 'TREE_READONLY'
  8321. This predicate holds if the function can only read its arguments.
  8322. 'DECL_PURE_P'
  8323. This predicate holds if the function can only read its arguments,
  8324. but may also read global memory.
  8325. 'DECL_VIRTUAL_P'
  8326. This predicate holds if the function is virtual.
  8327. 'DECL_ARTIFICIAL'
  8328. This macro holds if the function was implicitly generated by the
  8329. compiler, rather than explicitly declared. In addition to
  8330. implicitly generated class member functions, this macro holds for
  8331. the special functions created to implement static initialization
  8332. and destruction, to compute run-time type information, and so
  8333. forth.
  8334. 'DECL_FUNCTION_SPECIFIC_TARGET'
  8335. This macro returns a tree node that holds the target options that
  8336. are to be used to compile this particular function or 'NULL_TREE'
  8337. if the function is to be compiled with the target options specified
  8338. on the command line.
  8339. 'DECL_FUNCTION_SPECIFIC_OPTIMIZATION'
  8340. This macro returns a tree node that holds the optimization options
  8341. that are to be used to compile this particular function or
  8342. 'NULL_TREE' if the function is to be compiled with the optimization
  8343. options specified on the command line.
  8344. 
  8345. File: gccint.info, Node: Language-dependent trees, Next: C and C++ Trees, Prev: Functions, Up: GENERIC
  8346. 10.9 Language-dependent trees
  8347. =============================
  8348. Front ends may wish to keep some state associated with various GENERIC
  8349. trees while parsing. To support this, trees provide a set of flags that
  8350. may be used by the front end. They are accessed using
  8351. 'TREE_LANG_FLAG_n' where 'n' is currently 0 through 6.
  8352. If necessary, a front end can use some language-dependent tree codes in
  8353. its GENERIC representation, so long as it provides a hook for converting
  8354. them to GIMPLE and doesn't expect them to work with any (hypothetical)
  8355. optimizers that run before the conversion to GIMPLE. The intermediate
  8356. representation used while parsing C and C++ looks very little like
  8357. GENERIC, but the C and C++ gimplifier hooks are perfectly happy to take
  8358. it as input and spit out GIMPLE.
  8359. 
  8360. File: gccint.info, Node: C and C++ Trees, Next: Java Trees, Prev: Language-dependent trees, Up: GENERIC
  8361. 10.10 C and C++ Trees
  8362. =====================
  8363. This section documents the internal representation used by GCC to
  8364. represent C and C++ source programs. When presented with a C or C++
  8365. source program, GCC parses the program, performs semantic analysis
  8366. (including the generation of error messages), and then produces the
  8367. internal representation described here. This representation contains a
  8368. complete representation for the entire translation unit provided as
  8369. input to the front end. This representation is then typically processed
  8370. by a code-generator in order to produce machine code, but could also be
  8371. used in the creation of source browsers, intelligent editors, automatic
  8372. documentation generators, interpreters, and any other programs needing
  8373. the ability to process C or C++ code.
  8374. This section explains the internal representation. In particular, it
  8375. documents the internal representation for C and C++ source constructs,
  8376. and the macros, functions, and variables that can be used to access
  8377. these constructs. The C++ representation is largely a superset of the
  8378. representation used in the C front end. There is only one construct
  8379. used in C that does not appear in the C++ front end and that is the GNU
  8380. "nested function" extension. Many of the macros documented here do not
  8381. apply in C because the corresponding language constructs do not appear
  8382. in C.
  8383. The C and C++ front ends generate a mix of GENERIC trees and ones
  8384. specific to C and C++. These language-specific trees are higher-level
  8385. constructs than the ones in GENERIC to make the parser's job easier.
  8386. This section describes those trees that aren't part of GENERIC as well
  8387. as aspects of GENERIC trees that are treated in a language-specific
  8388. manner.
  8389. If you are developing a "back end", be it is a code-generator or some
  8390. other tool, that uses this representation, you may occasionally find
  8391. that you need to ask questions not easily answered by the functions and
  8392. macros available here. If that situation occurs, it is quite likely
  8393. that GCC already supports the functionality you desire, but that the
  8394. interface is simply not documented here. In that case, you should ask
  8395. the GCC maintainers (via mail to <gcc@gcc.gnu.org>) about documenting
  8396. the functionality you require. Similarly, if you find yourself writing
  8397. functions that do not deal directly with your back end, but instead
  8398. might be useful to other people using the GCC front end, you should
  8399. submit your patches for inclusion in GCC.
  8400. * Menu:
  8401. * Types for C++:: Fundamental and aggregate types.
  8402. * Namespaces:: Namespaces.
  8403. * Classes:: Classes.
  8404. * Functions for C++:: Overloading and accessors for C++.
  8405. * Statements for C++:: Statements specific to C and C++.
  8406. * C++ Expressions:: From 'typeid' to 'throw'.
  8407. 
  8408. File: gccint.info, Node: Types for C++, Next: Namespaces, Up: C and C++ Trees
  8409. 10.10.1 Types for C++
  8410. ---------------------
  8411. In C++, an array type is not qualified; rather the type of the array
  8412. elements is qualified. This situation is reflected in the intermediate
  8413. representation. The macros described here will always examine the
  8414. qualification of the underlying element type when applied to an array
  8415. type. (If the element type is itself an array, then the recursion
  8416. continues until a non-array type is found, and the qualification of this
  8417. type is examined.) So, for example, 'CP_TYPE_CONST_P' will hold of the
  8418. type 'const int ()[7]', denoting an array of seven 'int's.
  8419. The following functions and macros deal with cv-qualification of types:
  8420. 'cp_type_quals'
  8421. This function returns the set of type qualifiers applied to this
  8422. type. This value is 'TYPE_UNQUALIFIED' if no qualifiers have been
  8423. applied. The 'TYPE_QUAL_CONST' bit is set if the type is
  8424. 'const'-qualified. The 'TYPE_QUAL_VOLATILE' bit is set if the type
  8425. is 'volatile'-qualified. The 'TYPE_QUAL_RESTRICT' bit is set if
  8426. the type is 'restrict'-qualified.
  8427. 'CP_TYPE_CONST_P'
  8428. This macro holds if the type is 'const'-qualified.
  8429. 'CP_TYPE_VOLATILE_P'
  8430. This macro holds if the type is 'volatile'-qualified.
  8431. 'CP_TYPE_RESTRICT_P'
  8432. This macro holds if the type is 'restrict'-qualified.
  8433. 'CP_TYPE_CONST_NON_VOLATILE_P'
  8434. This predicate holds for a type that is 'const'-qualified, but
  8435. _not_ 'volatile'-qualified; other cv-qualifiers are ignored as
  8436. well: only the 'const'-ness is tested.
  8437. A few other macros and functions are usable with all types:
  8438. 'TYPE_SIZE'
  8439. The number of bits required to represent the type, represented as
  8440. an 'INTEGER_CST'. For an incomplete type, 'TYPE_SIZE' will be
  8441. 'NULL_TREE'.
  8442. 'TYPE_ALIGN'
  8443. The alignment of the type, in bits, represented as an 'int'.
  8444. 'TYPE_NAME'
  8445. This macro returns a declaration (in the form of a 'TYPE_DECL') for
  8446. the type. (Note this macro does _not_ return an 'IDENTIFIER_NODE',
  8447. as you might expect, given its name!) You can look at the
  8448. 'DECL_NAME' of the 'TYPE_DECL' to obtain the actual name of the
  8449. type. The 'TYPE_NAME' will be 'NULL_TREE' for a type that is not a
  8450. built-in type, the result of a typedef, or a named class type.
  8451. 'CP_INTEGRAL_TYPE'
  8452. This predicate holds if the type is an integral type. Notice that
  8453. in C++, enumerations are _not_ integral types.
  8454. 'ARITHMETIC_TYPE_P'
  8455. This predicate holds if the type is an integral type (in the C++
  8456. sense) or a floating point type.
  8457. 'CLASS_TYPE_P'
  8458. This predicate holds for a class-type.
  8459. 'TYPE_BUILT_IN'
  8460. This predicate holds for a built-in type.
  8461. 'TYPE_PTRDATAMEM_P'
  8462. This predicate holds if the type is a pointer to data member.
  8463. 'TYPE_PTR_P'
  8464. This predicate holds if the type is a pointer type, and the pointee
  8465. is not a data member.
  8466. 'TYPE_PTRFN_P'
  8467. This predicate holds for a pointer to function type.
  8468. 'TYPE_PTROB_P'
  8469. This predicate holds for a pointer to object type. Note however
  8470. that it does not hold for the generic pointer to object type 'void
  8471. *'. You may use 'TYPE_PTROBV_P' to test for a pointer to object
  8472. type as well as 'void *'.
  8473. The table below describes types specific to C and C++ as well as
  8474. language-dependent info about GENERIC types.
  8475. 'POINTER_TYPE'
  8476. Used to represent pointer types, and pointer to data member types.
  8477. If 'TREE_TYPE' is a pointer to data member type, then
  8478. 'TYPE_PTRDATAMEM_P' will hold. For a pointer to data member type
  8479. of the form 'T X::*', 'TYPE_PTRMEM_CLASS_TYPE' will be the type
  8480. 'X', while 'TYPE_PTRMEM_POINTED_TO_TYPE' will be the type 'T'.
  8481. 'RECORD_TYPE'
  8482. Used to represent 'struct' and 'class' types in C and C++. If
  8483. 'TYPE_PTRMEMFUNC_P' holds, then this type is a pointer-to-member
  8484. type. In that case, the 'TYPE_PTRMEMFUNC_FN_TYPE' is a
  8485. 'POINTER_TYPE' pointing to a 'METHOD_TYPE'. The 'METHOD_TYPE' is
  8486. the type of a function pointed to by the pointer-to-member
  8487. function. If 'TYPE_PTRMEMFUNC_P' does not hold, this type is a
  8488. class type. For more information, *note Classes::.
  8489. 'UNKNOWN_TYPE'
  8490. This node is used to represent a type the knowledge of which is
  8491. insufficient for a sound processing.
  8492. 'TYPENAME_TYPE'
  8493. Used to represent a construct of the form 'typename T::A'. The
  8494. 'TYPE_CONTEXT' is 'T'; the 'TYPE_NAME' is an 'IDENTIFIER_NODE' for
  8495. 'A'. If the type is specified via a template-id, then
  8496. 'TYPENAME_TYPE_FULLNAME' yields a 'TEMPLATE_ID_EXPR'. The
  8497. 'TREE_TYPE' is non-'NULL' if the node is implicitly generated in
  8498. support for the implicit typename extension; in which case the
  8499. 'TREE_TYPE' is a type node for the base-class.
  8500. 'TYPEOF_TYPE'
  8501. Used to represent the '__typeof__' extension. The 'TYPE_FIELDS' is
  8502. the expression the type of which is being represented.
  8503. 
  8504. File: gccint.info, Node: Namespaces, Next: Classes, Prev: Types for C++, Up: C and C++ Trees
  8505. 10.10.2 Namespaces
  8506. ------------------
  8507. The root of the entire intermediate representation is the variable
  8508. 'global_namespace'. This is the namespace specified with '::' in C++
  8509. source code. All other namespaces, types, variables, functions, and so
  8510. forth can be found starting with this namespace.
  8511. However, except for the fact that it is distinguished as the root of
  8512. the representation, the global namespace is no different from any other
  8513. namespace. Thus, in what follows, we describe namespaces generally,
  8514. rather than the global namespace in particular.
  8515. A namespace is represented by a 'NAMESPACE_DECL' node.
  8516. The following macros and functions can be used on a 'NAMESPACE_DECL':
  8517. 'DECL_NAME'
  8518. This macro is used to obtain the 'IDENTIFIER_NODE' corresponding to
  8519. the unqualified name of the name of the namespace (*note
  8520. Identifiers::). The name of the global namespace is '::', even
  8521. though in C++ the global namespace is unnamed. However, you should
  8522. use comparison with 'global_namespace', rather than 'DECL_NAME' to
  8523. determine whether or not a namespace is the global one. An unnamed
  8524. namespace will have a 'DECL_NAME' equal to
  8525. 'anonymous_namespace_name'. Within a single translation unit, all
  8526. unnamed namespaces will have the same name.
  8527. 'DECL_CONTEXT'
  8528. This macro returns the enclosing namespace. The 'DECL_CONTEXT' for
  8529. the 'global_namespace' is 'NULL_TREE'.
  8530. 'DECL_NAMESPACE_ALIAS'
  8531. If this declaration is for a namespace alias, then
  8532. 'DECL_NAMESPACE_ALIAS' is the namespace for which this one is an
  8533. alias.
  8534. Do not attempt to use 'cp_namespace_decls' for a namespace which is
  8535. an alias. Instead, follow 'DECL_NAMESPACE_ALIAS' links until you
  8536. reach an ordinary, non-alias, namespace, and call
  8537. 'cp_namespace_decls' there.
  8538. 'DECL_NAMESPACE_STD_P'
  8539. This predicate holds if the namespace is the special '::std'
  8540. namespace.
  8541. 'cp_namespace_decls'
  8542. This function will return the declarations contained in the
  8543. namespace, including types, overloaded functions, other namespaces,
  8544. and so forth. If there are no declarations, this function will
  8545. return 'NULL_TREE'. The declarations are connected through their
  8546. 'TREE_CHAIN' fields.
  8547. Although most entries on this list will be declarations,
  8548. 'TREE_LIST' nodes may also appear. In this case, the 'TREE_VALUE'
  8549. will be an 'OVERLOAD'. The value of the 'TREE_PURPOSE' is
  8550. unspecified; back ends should ignore this value. As with the other
  8551. kinds of declarations returned by 'cp_namespace_decls', the
  8552. 'TREE_CHAIN' will point to the next declaration in this list.
  8553. For more information on the kinds of declarations that can occur on
  8554. this list, *Note Declarations::. Some declarations will not appear
  8555. on this list. In particular, no 'FIELD_DECL', 'LABEL_DECL', or
  8556. 'PARM_DECL' nodes will appear here.
  8557. This function cannot be used with namespaces that have
  8558. 'DECL_NAMESPACE_ALIAS' set.
  8559. 
  8560. File: gccint.info, Node: Classes, Next: Functions for C++, Prev: Namespaces, Up: C and C++ Trees
  8561. 10.10.3 Classes
  8562. ---------------
  8563. Besides namespaces, the other high-level scoping construct in C++ is the
  8564. class. (Throughout this manual the term "class" is used to mean the
  8565. types referred to in the ANSI/ISO C++ Standard as classes; these include
  8566. types defined with the 'class', 'struct', and 'union' keywords.)
  8567. A class type is represented by either a 'RECORD_TYPE' or a
  8568. 'UNION_TYPE'. A class declared with the 'union' tag is represented by a
  8569. 'UNION_TYPE', while classes declared with either the 'struct' or the
  8570. 'class' tag are represented by 'RECORD_TYPE's. You can use the
  8571. 'CLASSTYPE_DECLARED_CLASS' macro to discern whether or not a particular
  8572. type is a 'class' as opposed to a 'struct'. This macro will be true
  8573. only for classes declared with the 'class' tag.
  8574. Almost all non-function members are available on the 'TYPE_FIELDS'
  8575. list. Given one member, the next can be found by following the
  8576. 'TREE_CHAIN'. You should not depend in any way on the order in which
  8577. fields appear on this list. All nodes on this list will be 'DECL'
  8578. nodes. A 'FIELD_DECL' is used to represent a non-static data member, a
  8579. 'VAR_DECL' is used to represent a static data member, and a 'TYPE_DECL'
  8580. is used to represent a type. Note that the 'CONST_DECL' for an
  8581. enumeration constant will appear on this list, if the enumeration type
  8582. was declared in the class. (Of course, the 'TYPE_DECL' for the
  8583. enumeration type will appear here as well.) There are no entries for
  8584. base classes on this list. In particular, there is no 'FIELD_DECL' for
  8585. the "base-class portion" of an object.
  8586. The 'TYPE_VFIELD' is a compiler-generated field used to point to
  8587. virtual function tables. It may or may not appear on the 'TYPE_FIELDS'
  8588. list. However, back ends should handle the 'TYPE_VFIELD' just like all
  8589. the entries on the 'TYPE_FIELDS' list.
  8590. The function members are available on the 'TYPE_METHODS' list. Again,
  8591. subsequent members are found by following the 'TREE_CHAIN' field. If a
  8592. function is overloaded, each of the overloaded functions appears; no
  8593. 'OVERLOAD' nodes appear on the 'TYPE_METHODS' list. Implicitly declared
  8594. functions (including default constructors, copy constructors, assignment
  8595. operators, and destructors) will appear on this list as well.
  8596. Every class has an associated "binfo", which can be obtained with
  8597. 'TYPE_BINFO'. Binfos are used to represent base-classes. The binfo
  8598. given by 'TYPE_BINFO' is the degenerate case, whereby every class is
  8599. considered to be its own base-class. The base binfos for a particular
  8600. binfo are held in a vector, whose length is obtained with
  8601. 'BINFO_N_BASE_BINFOS'. The base binfos themselves are obtained with
  8602. 'BINFO_BASE_BINFO' and 'BINFO_BASE_ITERATE'. To add a new binfo, use
  8603. 'BINFO_BASE_APPEND'. The vector of base binfos can be obtained with
  8604. 'BINFO_BASE_BINFOS', but normally you do not need to use that. The
  8605. class type associated with a binfo is given by 'BINFO_TYPE'. It is not
  8606. always the case that 'BINFO_TYPE (TYPE_BINFO (x))', because of typedefs
  8607. and qualified types. Neither is it the case that 'TYPE_BINFO
  8608. (BINFO_TYPE (y))' is the same binfo as 'y'. The reason is that if 'y'
  8609. is a binfo representing a base-class 'B' of a derived class 'D', then
  8610. 'BINFO_TYPE (y)' will be 'B', and 'TYPE_BINFO (BINFO_TYPE (y))' will be
  8611. 'B' as its own base-class, rather than as a base-class of 'D'.
  8612. The access to a base type can be found with 'BINFO_BASE_ACCESS'. This
  8613. will produce 'access_public_node', 'access_private_node' or
  8614. 'access_protected_node'. If bases are always public,
  8615. 'BINFO_BASE_ACCESSES' may be 'NULL'.
  8616. 'BINFO_VIRTUAL_P' is used to specify whether the binfo is inherited
  8617. virtually or not. The other flags, 'BINFO_FLAG_0' to 'BINFO_FLAG_6',
  8618. can be used for language specific use.
  8619. The following macros can be used on a tree node representing a
  8620. class-type.
  8621. 'LOCAL_CLASS_P'
  8622. This predicate holds if the class is local class _i.e._ declared
  8623. inside a function body.
  8624. 'TYPE_POLYMORPHIC_P'
  8625. This predicate holds if the class has at least one virtual function
  8626. (declared or inherited).
  8627. 'TYPE_HAS_DEFAULT_CONSTRUCTOR'
  8628. This predicate holds whenever its argument represents a class-type
  8629. with default constructor.
  8630. 'CLASSTYPE_HAS_MUTABLE'
  8631. 'TYPE_HAS_MUTABLE_P'
  8632. These predicates hold for a class-type having a mutable data
  8633. member.
  8634. 'CLASSTYPE_NON_POD_P'
  8635. This predicate holds only for class-types that are not PODs.
  8636. 'TYPE_HAS_NEW_OPERATOR'
  8637. This predicate holds for a class-type that defines 'operator new'.
  8638. 'TYPE_HAS_ARRAY_NEW_OPERATOR'
  8639. This predicate holds for a class-type for which 'operator new[]' is
  8640. defined.
  8641. 'TYPE_OVERLOADS_CALL_EXPR'
  8642. This predicate holds for class-type for which the function call
  8643. 'operator()' is overloaded.
  8644. 'TYPE_OVERLOADS_ARRAY_REF'
  8645. This predicate holds for a class-type that overloads 'operator[]'
  8646. 'TYPE_OVERLOADS_ARROW'
  8647. This predicate holds for a class-type for which 'operator->' is
  8648. overloaded.
  8649. 
  8650. File: gccint.info, Node: Functions for C++, Next: Statements for C++, Prev: Classes, Up: C and C++ Trees
  8651. 10.10.4 Functions for C++
  8652. -------------------------
  8653. A function is represented by a 'FUNCTION_DECL' node. A set of
  8654. overloaded functions is sometimes represented by an 'OVERLOAD' node.
  8655. An 'OVERLOAD' node is not a declaration, so none of the 'DECL_' macros
  8656. should be used on an 'OVERLOAD'. An 'OVERLOAD' node is similar to a
  8657. 'TREE_LIST'. Use 'OVL_CURRENT' to get the function associated with an
  8658. 'OVERLOAD' node; use 'OVL_NEXT' to get the next 'OVERLOAD' node in the
  8659. list of overloaded functions. The macros 'OVL_CURRENT' and 'OVL_NEXT'
  8660. are actually polymorphic; you can use them to work with 'FUNCTION_DECL'
  8661. nodes as well as with overloads. In the case of a 'FUNCTION_DECL',
  8662. 'OVL_CURRENT' will always return the function itself, and 'OVL_NEXT'
  8663. will always be 'NULL_TREE'.
  8664. To determine the scope of a function, you can use the 'DECL_CONTEXT'
  8665. macro. This macro will return the class (either a 'RECORD_TYPE' or a
  8666. 'UNION_TYPE') or namespace (a 'NAMESPACE_DECL') of which the function is
  8667. a member. For a virtual function, this macro returns the class in which
  8668. the function was actually defined, not the base class in which the
  8669. virtual declaration occurred.
  8670. If a friend function is defined in a class scope, the
  8671. 'DECL_FRIEND_CONTEXT' macro can be used to determine the class in which
  8672. it was defined. For example, in
  8673. class C { friend void f() {} };
  8674. the 'DECL_CONTEXT' for 'f' will be the 'global_namespace', but the
  8675. 'DECL_FRIEND_CONTEXT' will be the 'RECORD_TYPE' for 'C'.
  8676. The following macros and functions can be used on a 'FUNCTION_DECL':
  8677. 'DECL_MAIN_P'
  8678. This predicate holds for a function that is the program entry point
  8679. '::code'.
  8680. 'DECL_LOCAL_FUNCTION_P'
  8681. This predicate holds if the function was declared at block scope,
  8682. even though it has a global scope.
  8683. 'DECL_ANTICIPATED'
  8684. This predicate holds if the function is a built-in function but its
  8685. prototype is not yet explicitly declared.
  8686. 'DECL_EXTERN_C_FUNCTION_P'
  8687. This predicate holds if the function is declared as an ''extern
  8688. "C"'' function.
  8689. 'DECL_LINKONCE_P'
  8690. This macro holds if multiple copies of this function may be emitted
  8691. in various translation units. It is the responsibility of the
  8692. linker to merge the various copies. Template instantiations are
  8693. the most common example of functions for which 'DECL_LINKONCE_P'
  8694. holds; G++ instantiates needed templates in all translation units
  8695. which require them, and then relies on the linker to remove
  8696. duplicate instantiations.
  8697. FIXME: This macro is not yet implemented.
  8698. 'DECL_FUNCTION_MEMBER_P'
  8699. This macro holds if the function is a member of a class, rather
  8700. than a member of a namespace.
  8701. 'DECL_STATIC_FUNCTION_P'
  8702. This predicate holds if the function a static member function.
  8703. 'DECL_NONSTATIC_MEMBER_FUNCTION_P'
  8704. This macro holds for a non-static member function.
  8705. 'DECL_CONST_MEMFUNC_P'
  8706. This predicate holds for a 'const'-member function.
  8707. 'DECL_VOLATILE_MEMFUNC_P'
  8708. This predicate holds for a 'volatile'-member function.
  8709. 'DECL_CONSTRUCTOR_P'
  8710. This macro holds if the function is a constructor.
  8711. 'DECL_NONCONVERTING_P'
  8712. This predicate holds if the constructor is a non-converting
  8713. constructor.
  8714. 'DECL_COMPLETE_CONSTRUCTOR_P'
  8715. This predicate holds for a function which is a constructor for an
  8716. object of a complete type.
  8717. 'DECL_BASE_CONSTRUCTOR_P'
  8718. This predicate holds for a function which is a constructor for a
  8719. base class sub-object.
  8720. 'DECL_COPY_CONSTRUCTOR_P'
  8721. This predicate holds for a function which is a copy-constructor.
  8722. 'DECL_DESTRUCTOR_P'
  8723. This macro holds if the function is a destructor.
  8724. 'DECL_COMPLETE_DESTRUCTOR_P'
  8725. This predicate holds if the function is the destructor for an
  8726. object a complete type.
  8727. 'DECL_OVERLOADED_OPERATOR_P'
  8728. This macro holds if the function is an overloaded operator.
  8729. 'DECL_CONV_FN_P'
  8730. This macro holds if the function is a type-conversion operator.
  8731. 'DECL_GLOBAL_CTOR_P'
  8732. This predicate holds if the function is a file-scope initialization
  8733. function.
  8734. 'DECL_GLOBAL_DTOR_P'
  8735. This predicate holds if the function is a file-scope finalization
  8736. function.
  8737. 'DECL_THUNK_P'
  8738. This predicate holds if the function is a thunk.
  8739. These functions represent stub code that adjusts the 'this' pointer
  8740. and then jumps to another function. When the jumped-to function
  8741. returns, control is transferred directly to the caller, without
  8742. returning to the thunk. The first parameter to the thunk is always
  8743. the 'this' pointer; the thunk should add 'THUNK_DELTA' to this
  8744. value. (The 'THUNK_DELTA' is an 'int', not an 'INTEGER_CST'.)
  8745. Then, if 'THUNK_VCALL_OFFSET' (an 'INTEGER_CST') is nonzero the
  8746. adjusted 'this' pointer must be adjusted again. The complete
  8747. calculation is given by the following pseudo-code:
  8748. this += THUNK_DELTA
  8749. if (THUNK_VCALL_OFFSET)
  8750. this += (*((ptrdiff_t **) this))[THUNK_VCALL_OFFSET]
  8751. Finally, the thunk should jump to the location given by
  8752. 'DECL_INITIAL'; this will always be an expression for the address
  8753. of a function.
  8754. 'DECL_NON_THUNK_FUNCTION_P'
  8755. This predicate holds if the function is _not_ a thunk function.
  8756. 'GLOBAL_INIT_PRIORITY'
  8757. If either 'DECL_GLOBAL_CTOR_P' or 'DECL_GLOBAL_DTOR_P' holds, then
  8758. this gives the initialization priority for the function. The
  8759. linker will arrange that all functions for which
  8760. 'DECL_GLOBAL_CTOR_P' holds are run in increasing order of priority
  8761. before 'main' is called. When the program exits, all functions for
  8762. which 'DECL_GLOBAL_DTOR_P' holds are run in the reverse order.
  8763. 'TYPE_RAISES_EXCEPTIONS'
  8764. This macro returns the list of exceptions that a (member-)function
  8765. can raise. The returned list, if non 'NULL', is comprised of nodes
  8766. whose 'TREE_VALUE' represents a type.
  8767. 'TYPE_NOTHROW_P'
  8768. This predicate holds when the exception-specification of its
  8769. arguments is of the form ''()''.
  8770. 'DECL_ARRAY_DELETE_OPERATOR_P'
  8771. This predicate holds if the function an overloaded 'operator
  8772. delete[]'.
  8773. 
  8774. File: gccint.info, Node: Statements for C++, Next: C++ Expressions, Prev: Functions for C++, Up: C and C++ Trees
  8775. 10.10.5 Statements for C++
  8776. --------------------------
  8777. A function that has a definition in the current translation unit will
  8778. have a non-'NULL' 'DECL_INITIAL'. However, back ends should not make
  8779. use of the particular value given by 'DECL_INITIAL'.
  8780. The 'DECL_SAVED_TREE' macro will give the complete body of the
  8781. function.
  8782. 10.10.5.1 Statements
  8783. ....................
  8784. There are tree nodes corresponding to all of the source-level statement
  8785. constructs, used within the C and C++ frontends. These are enumerated
  8786. here, together with a list of the various macros that can be used to
  8787. obtain information about them. There are a few macros that can be used
  8788. with all statements:
  8789. 'STMT_IS_FULL_EXPR_P'
  8790. In C++, statements normally constitute "full expressions";
  8791. temporaries created during a statement are destroyed when the
  8792. statement is complete. However, G++ sometimes represents
  8793. expressions by statements; these statements will not have
  8794. 'STMT_IS_FULL_EXPR_P' set. Temporaries created during such
  8795. statements should be destroyed when the innermost enclosing
  8796. statement with 'STMT_IS_FULL_EXPR_P' set is exited.
  8797. Here is the list of the various statement nodes, and the macros used to
  8798. access them. This documentation describes the use of these nodes in
  8799. non-template functions (including instantiations of template functions).
  8800. In template functions, the same nodes are used, but sometimes in
  8801. slightly different ways.
  8802. Many of the statements have substatements. For example, a 'while' loop
  8803. will have a body, which is itself a statement. If the substatement is
  8804. 'NULL_TREE', it is considered equivalent to a statement consisting of a
  8805. single ';', i.e., an expression statement in which the expression has
  8806. been omitted. A substatement may in fact be a list of statements,
  8807. connected via their 'TREE_CHAIN's. So, you should always process the
  8808. statement tree by looping over substatements, like this:
  8809. void process_stmt (stmt)
  8810. tree stmt;
  8811. {
  8812. while (stmt)
  8813. {
  8814. switch (TREE_CODE (stmt))
  8815. {
  8816. case IF_STMT:
  8817. process_stmt (THEN_CLAUSE (stmt));
  8818. /* More processing here. */
  8819. break;
  8820. ...
  8821. }
  8822. stmt = TREE_CHAIN (stmt);
  8823. }
  8824. }
  8825. In other words, while the 'then' clause of an 'if' statement in C++ can
  8826. be only one statement (although that one statement may be a compound
  8827. statement), the intermediate representation will sometimes use several
  8828. statements chained together.
  8829. 'BREAK_STMT'
  8830. Used to represent a 'break' statement. There are no additional
  8831. fields.
  8832. 'CILK_SPAWN_STMT'
  8833. Used to represent a spawning function in the Cilk Plus language
  8834. extension. This tree has one field that holds the name of the
  8835. spawning function. '_Cilk_spawn' can be written in C in the
  8836. following way:
  8837. _Cilk_spawn <function_name> (<parameters>);
  8838. Detailed description for usage and functionality of '_Cilk_spawn'
  8839. can be found at <https://www.cilkplus.org>.
  8840. 'CILK_SYNC_STMT'
  8841. This statement is part of the Cilk Plus language extension. It
  8842. indicates that the current function cannot continue in parallel
  8843. with its spawned children. There are no additional fields.
  8844. '_Cilk_sync' can be written in C in the following way:
  8845. _Cilk_sync;
  8846. 'CLEANUP_STMT'
  8847. Used to represent an action that should take place upon exit from
  8848. the enclosing scope. Typically, these actions are calls to
  8849. destructors for local objects, but back ends cannot rely on this
  8850. fact. If these nodes are in fact representing such destructors,
  8851. 'CLEANUP_DECL' will be the 'VAR_DECL' destroyed. Otherwise,
  8852. 'CLEANUP_DECL' will be 'NULL_TREE'. In any case, the
  8853. 'CLEANUP_EXPR' is the expression to execute. The cleanups executed
  8854. on exit from a scope should be run in the reverse order of the
  8855. order in which the associated 'CLEANUP_STMT's were encountered.
  8856. 'CONTINUE_STMT'
  8857. Used to represent a 'continue' statement. There are no additional
  8858. fields.
  8859. 'CTOR_STMT'
  8860. Used to mark the beginning (if 'CTOR_BEGIN_P' holds) or end (if
  8861. 'CTOR_END_P' holds of the main body of a constructor. See also
  8862. 'SUBOBJECT' for more information on how to use these nodes.
  8863. 'DO_STMT'
  8864. Used to represent a 'do' loop. The body of the loop is given by
  8865. 'DO_BODY' while the termination condition for the loop is given by
  8866. 'DO_COND'. The condition for a 'do'-statement is always an
  8867. expression.
  8868. 'EMPTY_CLASS_EXPR'
  8869. Used to represent a temporary object of a class with no data whose
  8870. address is never taken. (All such objects are interchangeable.)
  8871. The 'TREE_TYPE' represents the type of the object.
  8872. 'EXPR_STMT'
  8873. Used to represent an expression statement. Use 'EXPR_STMT_EXPR' to
  8874. obtain the expression.
  8875. 'FOR_STMT'
  8876. Used to represent a 'for' statement. The 'FOR_INIT_STMT' is the
  8877. initialization statement for the loop. The 'FOR_COND' is the
  8878. termination condition. The 'FOR_EXPR' is the expression executed
  8879. right before the 'FOR_COND' on each loop iteration; often, this
  8880. expression increments a counter. The body of the loop is given by
  8881. 'FOR_BODY'. Note that 'FOR_INIT_STMT' and 'FOR_BODY' return
  8882. statements, while 'FOR_COND' and 'FOR_EXPR' return expressions.
  8883. 'HANDLER'
  8884. Used to represent a C++ 'catch' block. The 'HANDLER_TYPE' is the
  8885. type of exception that will be caught by this handler; it is equal
  8886. (by pointer equality) to 'NULL' if this handler is for all types.
  8887. 'HANDLER_PARMS' is the 'DECL_STMT' for the catch parameter, and
  8888. 'HANDLER_BODY' is the code for the block itself.
  8889. 'IF_STMT'
  8890. Used to represent an 'if' statement. The 'IF_COND' is the
  8891. expression.
  8892. If the condition is a 'TREE_LIST', then the 'TREE_PURPOSE' is a
  8893. statement (usually a 'DECL_STMT'). Each time the condition is
  8894. evaluated, the statement should be executed. Then, the
  8895. 'TREE_VALUE' should be used as the conditional expression itself.
  8896. This representation is used to handle C++ code like this:
  8897. C++ distinguishes between this and 'COND_EXPR' for handling
  8898. templates.
  8899. if (int i = 7) ...
  8900. where there is a new local variable (or variables) declared within
  8901. the condition.
  8902. The 'THEN_CLAUSE' represents the statement given by the 'then'
  8903. condition, while the 'ELSE_CLAUSE' represents the statement given
  8904. by the 'else' condition.
  8905. 'SUBOBJECT'
  8906. In a constructor, these nodes are used to mark the point at which a
  8907. subobject of 'this' is fully constructed. If, after this point, an
  8908. exception is thrown before a 'CTOR_STMT' with 'CTOR_END_P' set is
  8909. encountered, the 'SUBOBJECT_CLEANUP' must be executed. The
  8910. cleanups must be executed in the reverse order in which they
  8911. appear.
  8912. 'SWITCH_STMT'
  8913. Used to represent a 'switch' statement. The 'SWITCH_STMT_COND' is
  8914. the expression on which the switch is occurring. See the
  8915. documentation for an 'IF_STMT' for more information on the
  8916. representation used for the condition. The 'SWITCH_STMT_BODY' is
  8917. the body of the switch statement. The 'SWITCH_STMT_TYPE' is the
  8918. original type of switch expression as given in the source, before
  8919. any compiler conversions.
  8920. 'TRY_BLOCK'
  8921. Used to represent a 'try' block. The body of the try block is
  8922. given by 'TRY_STMTS'. Each of the catch blocks is a 'HANDLER'
  8923. node. The first handler is given by 'TRY_HANDLERS'. Subsequent
  8924. handlers are obtained by following the 'TREE_CHAIN' link from one
  8925. handler to the next. The body of the handler is given by
  8926. 'HANDLER_BODY'.
  8927. If 'CLEANUP_P' holds of the 'TRY_BLOCK', then the 'TRY_HANDLERS'
  8928. will not be a 'HANDLER' node. Instead, it will be an expression
  8929. that should be executed if an exception is thrown in the try block.
  8930. It must rethrow the exception after executing that code. And, if
  8931. an exception is thrown while the expression is executing,
  8932. 'terminate' must be called.
  8933. 'USING_STMT'
  8934. Used to represent a 'using' directive. The namespace is given by
  8935. 'USING_STMT_NAMESPACE', which will be a NAMESPACE_DECL. This node
  8936. is needed inside template functions, to implement using directives
  8937. during instantiation.
  8938. 'WHILE_STMT'
  8939. Used to represent a 'while' loop. The 'WHILE_COND' is the
  8940. termination condition for the loop. See the documentation for an
  8941. 'IF_STMT' for more information on the representation used for the
  8942. condition.
  8943. The 'WHILE_BODY' is the body of the loop.
  8944. 
  8945. File: gccint.info, Node: C++ Expressions, Prev: Statements for C++, Up: C and C++ Trees
  8946. 10.10.6 C++ Expressions
  8947. -----------------------
  8948. This section describes expressions specific to the C and C++ front ends.
  8949. 'TYPEID_EXPR'
  8950. Used to represent a 'typeid' expression.
  8951. 'NEW_EXPR'
  8952. 'VEC_NEW_EXPR'
  8953. Used to represent a call to 'new' and 'new[]' respectively.
  8954. 'DELETE_EXPR'
  8955. 'VEC_DELETE_EXPR'
  8956. Used to represent a call to 'delete' and 'delete[]' respectively.
  8957. 'MEMBER_REF'
  8958. Represents a reference to a member of a class.
  8959. 'THROW_EXPR'
  8960. Represents an instance of 'throw' in the program. Operand 0, which
  8961. is the expression to throw, may be 'NULL_TREE'.
  8962. 'AGGR_INIT_EXPR'
  8963. An 'AGGR_INIT_EXPR' represents the initialization as the return
  8964. value of a function call, or as the result of a constructor. An
  8965. 'AGGR_INIT_EXPR' will only appear as a full-expression, or as the
  8966. second operand of a 'TARGET_EXPR'. 'AGGR_INIT_EXPR's have a
  8967. representation similar to that of 'CALL_EXPR's. You can use the
  8968. 'AGGR_INIT_EXPR_FN' and 'AGGR_INIT_EXPR_ARG' macros to access the
  8969. function to call and the arguments to pass.
  8970. If 'AGGR_INIT_VIA_CTOR_P' holds of the 'AGGR_INIT_EXPR', then the
  8971. initialization is via a constructor call. The address of the
  8972. 'AGGR_INIT_EXPR_SLOT' operand, which is always a 'VAR_DECL', is
  8973. taken, and this value replaces the first argument in the argument
  8974. list.
  8975. In either case, the expression is void.
  8976. 
  8977. File: gccint.info, Node: Java Trees, Prev: C and C++ Trees, Up: GENERIC
  8978. 10.11 Java Trees
  8979. ================
  8980. 
  8981. File: gccint.info, Node: GIMPLE, Next: Tree SSA, Prev: GENERIC, Up: Top
  8982. 11 GIMPLE
  8983. *********
  8984. GIMPLE is a three-address representation derived from GENERIC by
  8985. breaking down GENERIC expressions into tuples of no more than 3 operands
  8986. (with some exceptions like function calls). GIMPLE was heavily
  8987. influenced by the SIMPLE IL used by the McCAT compiler project at McGill
  8988. University, though we have made some different choices. For one thing,
  8989. SIMPLE doesn't support 'goto'.
  8990. Temporaries are introduced to hold intermediate values needed to
  8991. compute complex expressions. Additionally, all the control structures
  8992. used in GENERIC are lowered into conditional jumps, lexical scopes are
  8993. removed and exception regions are converted into an on the side
  8994. exception region tree.
  8995. The compiler pass which converts GENERIC into GIMPLE is referred to as
  8996. the 'gimplifier'. The gimplifier works recursively, generating GIMPLE
  8997. tuples out of the original GENERIC expressions.
  8998. One of the early implementation strategies used for the GIMPLE
  8999. representation was to use the same internal data structures used by
  9000. front ends to represent parse trees. This simplified implementation
  9001. because we could leverage existing functionality and interfaces.
  9002. However, GIMPLE is a much more restrictive representation than abstract
  9003. syntax trees (AST), therefore it does not require the full structural
  9004. complexity provided by the main tree data structure.
  9005. The GENERIC representation of a function is stored in the
  9006. 'DECL_SAVED_TREE' field of the associated 'FUNCTION_DECL' tree node. It
  9007. is converted to GIMPLE by a call to 'gimplify_function_tree'.
  9008. If a front end wants to include language-specific tree codes in the
  9009. tree representation which it provides to the back end, it must provide a
  9010. definition of 'LANG_HOOKS_GIMPLIFY_EXPR' which knows how to convert the
  9011. front end trees to GIMPLE. Usually such a hook will involve much of the
  9012. same code for expanding front end trees to RTL. This function can
  9013. return fully lowered GIMPLE, or it can return GENERIC trees and let the
  9014. main gimplifier lower them the rest of the way; this is often simpler.
  9015. GIMPLE that is not fully lowered is known as "High GIMPLE" and consists
  9016. of the IL before the pass 'pass_lower_cf'. High GIMPLE contains some
  9017. container statements like lexical scopes (represented by 'GIMPLE_BIND')
  9018. and nested expressions (e.g., 'GIMPLE_TRY'), while "Low GIMPLE" exposes
  9019. all of the implicit jumps for control and exception expressions directly
  9020. in the IL and EH region trees.
  9021. The C and C++ front ends currently convert directly from front end
  9022. trees to GIMPLE, and hand that off to the back end rather than first
  9023. converting to GENERIC. Their gimplifier hooks know about all the
  9024. '_STMT' nodes and how to convert them to GENERIC forms. There was some
  9025. work done on a genericization pass which would run first, but the
  9026. existence of 'STMT_EXPR' meant that in order to convert all of the C
  9027. statements into GENERIC equivalents would involve walking the entire
  9028. tree anyway, so it was simpler to lower all the way. This might change
  9029. in the future if someone writes an optimization pass which would work
  9030. better with higher-level trees, but currently the optimizers all expect
  9031. GIMPLE.
  9032. You can request to dump a C-like representation of the GIMPLE form with
  9033. the flag '-fdump-tree-gimple'.
  9034. * Menu:
  9035. * Tuple representation::
  9036. * Class hierarchy of GIMPLE statements::
  9037. * GIMPLE instruction set::
  9038. * GIMPLE Exception Handling::
  9039. * Temporaries::
  9040. * Operands::
  9041. * Manipulating GIMPLE statements::
  9042. * Tuple specific accessors::
  9043. * GIMPLE sequences::
  9044. * Sequence iterators::
  9045. * Adding a new GIMPLE statement code::
  9046. * Statement and operand traversals::
  9047. 
  9048. File: gccint.info, Node: Tuple representation, Next: Class hierarchy of GIMPLE statements, Up: GIMPLE
  9049. 11.1 Tuple representation
  9050. =========================
  9051. GIMPLE instructions are tuples of variable size divided in two groups: a
  9052. header describing the instruction and its locations, and a variable
  9053. length body with all the operands. Tuples are organized into a
  9054. hierarchy with 3 main classes of tuples.
  9055. 11.1.1 'gimple' (gsbase)
  9056. ------------------------
  9057. This is the root of the hierarchy, it holds basic information needed by
  9058. most GIMPLE statements. There are some fields that may not be relevant
  9059. to every GIMPLE statement, but those were moved into the base structure
  9060. to take advantage of holes left by other fields (thus making the
  9061. structure more compact). The structure takes 4 words (32 bytes) on 64
  9062. bit hosts:
  9063. Field Size (bits)
  9064. 'code' 8
  9065. 'subcode' 16
  9066. 'no_warning' 1
  9067. 'visited' 1
  9068. 'nontemporal_move' 1
  9069. 'plf' 2
  9070. 'modified' 1
  9071. 'has_volatile_ops' 1
  9072. 'references_memory_p' 1
  9073. 'uid' 32
  9074. 'location' 32
  9075. 'num_ops' 32
  9076. 'bb' 64
  9077. 'block' 63
  9078. Total size 32 bytes
  9079. * 'code' Main identifier for a GIMPLE instruction.
  9080. * 'subcode' Used to distinguish different variants of the same basic
  9081. instruction or provide flags applicable to a given code. The
  9082. 'subcode' flags field has different uses depending on the code of
  9083. the instruction, but mostly it distinguishes instructions of the
  9084. same family. The most prominent use of this field is in
  9085. assignments, where subcode indicates the operation done on the RHS
  9086. of the assignment. For example, a = b + c is encoded as
  9087. 'GIMPLE_ASSIGN <PLUS_EXPR, a, b, c>'.
  9088. * 'no_warning' Bitflag to indicate whether a warning has already been
  9089. issued on this statement.
  9090. * 'visited' General purpose "visited" marker. Set and cleared by
  9091. each pass when needed.
  9092. * 'nontemporal_move' Bitflag used in assignments that represent
  9093. non-temporal moves. Although this bitflag is only used in
  9094. assignments, it was moved into the base to take advantage of the
  9095. bit holes left by the previous fields.
  9096. * 'plf' Pass Local Flags. This 2-bit mask can be used as general
  9097. purpose markers by any pass. Passes are responsible for clearing
  9098. and setting these two flags accordingly.
  9099. * 'modified' Bitflag to indicate whether the statement has been
  9100. modified. Used mainly by the operand scanner to determine when to
  9101. re-scan a statement for operands.
  9102. * 'has_volatile_ops' Bitflag to indicate whether this statement
  9103. contains operands that have been marked volatile.
  9104. * 'references_memory_p' Bitflag to indicate whether this statement
  9105. contains memory references (i.e., its operands are either global
  9106. variables, or pointer dereferences or anything that must reside in
  9107. memory).
  9108. * 'uid' This is an unsigned integer used by passes that want to
  9109. assign IDs to every statement. These IDs must be assigned and used
  9110. by each pass.
  9111. * 'location' This is a 'location_t' identifier to specify source code
  9112. location for this statement. It is inherited from the front end.
  9113. * 'num_ops' Number of operands that this statement has. This
  9114. specifies the size of the operand vector embedded in the tuple.
  9115. Only used in some tuples, but it is declared in the base tuple to
  9116. take advantage of the 32-bit hole left by the previous fields.
  9117. * 'bb' Basic block holding the instruction.
  9118. * 'block' Lexical block holding this statement. Also used for debug
  9119. information generation.
  9120. 11.1.2 'gimple_statement_with_ops'
  9121. ----------------------------------
  9122. This tuple is actually split in two: 'gimple_statement_with_ops_base'
  9123. and 'gimple_statement_with_ops'. This is needed to accommodate the way
  9124. the operand vector is allocated. The operand vector is defined to be an
  9125. array of 1 element. So, to allocate a dynamic number of operands, the
  9126. memory allocator ('gimple_alloc') simply allocates enough memory to hold
  9127. the structure itself plus 'N - 1' operands which run "off the end" of
  9128. the structure. For example, to allocate space for a tuple with 3
  9129. operands, 'gimple_alloc' reserves 'sizeof (struct
  9130. gimple_statement_with_ops) + 2 * sizeof (tree)' bytes.
  9131. On the other hand, several fields in this tuple need to be shared with
  9132. the 'gimple_statement_with_memory_ops' tuple. So, these common fields
  9133. are placed in 'gimple_statement_with_ops_base' which is then inherited
  9134. from the other two tuples.
  9135. 'gsbase' 256
  9136. 'def_ops' 64
  9137. 'use_ops' 64
  9138. 'op' 'num_ops' * 64
  9139. Total 48 + 8 * 'num_ops' bytes
  9140. size
  9141. * 'gsbase' Inherited from 'struct gimple'.
  9142. * 'def_ops' Array of pointers into the operand array indicating all
  9143. the slots that contain a variable written-to by the statement.
  9144. This array is also used for immediate use chaining. Note that it
  9145. would be possible to not rely on this array, but the changes
  9146. required to implement this are pretty invasive.
  9147. * 'use_ops' Similar to 'def_ops' but for variables read by the
  9148. statement.
  9149. * 'op' Array of trees with 'num_ops' slots.
  9150. 11.1.3 'gimple_statement_with_memory_ops'
  9151. -----------------------------------------
  9152. This tuple is essentially identical to 'gimple_statement_with_ops',
  9153. except that it contains 4 additional fields to hold vectors related
  9154. memory stores and loads. Similar to the previous case, the structure is
  9155. split in two to accommodate for the operand vector
  9156. ('gimple_statement_with_memory_ops_base' and
  9157. 'gimple_statement_with_memory_ops').
  9158. Field Size (bits)
  9159. 'gsbase' 256
  9160. 'def_ops' 64
  9161. 'use_ops' 64
  9162. 'vdef_ops' 64
  9163. 'vuse_ops' 64
  9164. 'stores' 64
  9165. 'loads' 64
  9166. 'op' 'num_ops' * 64
  9167. Total size 80 + 8 * 'num_ops' bytes
  9168. * 'vdef_ops' Similar to 'def_ops' but for 'VDEF' operators. There is
  9169. one entry per memory symbol written by this statement. This is
  9170. used to maintain the memory SSA use-def and def-def chains.
  9171. * 'vuse_ops' Similar to 'use_ops' but for 'VUSE' operators. There is
  9172. one entry per memory symbol loaded by this statement. This is used
  9173. to maintain the memory SSA use-def chains.
  9174. * 'stores' Bitset with all the UIDs for the symbols written-to by the
  9175. statement. This is different than 'vdef_ops' in that all the
  9176. affected symbols are mentioned in this set. If memory partitioning
  9177. is enabled, the 'vdef_ops' vector will refer to memory partitions.
  9178. Furthermore, no SSA information is stored in this set.
  9179. * 'loads' Similar to 'stores', but for memory loads. (Note that
  9180. there is some amount of redundancy here, it should be possible to
  9181. reduce memory utilization further by removing these sets).
  9182. All the other tuples are defined in terms of these three basic ones.
  9183. Each tuple will add some fields.
  9184. 
  9185. File: gccint.info, Node: Class hierarchy of GIMPLE statements, Next: GIMPLE instruction set, Prev: Tuple representation, Up: GIMPLE
  9186. 11.2 Class hierarchy of GIMPLE statements
  9187. =========================================
  9188. The following diagram shows the C++ inheritance hierarchy of statement
  9189. kinds, along with their relationships to 'GSS_' values (layouts) and
  9190. 'GIMPLE_' values (codes):
  9191. gimple
  9192. | layout: GSS_BASE
  9193. | used for 4 codes: GIMPLE_ERROR_MARK
  9194. | GIMPLE_NOP
  9195. | GIMPLE_OMP_SECTIONS_SWITCH
  9196. | GIMPLE_PREDICT
  9197. |
  9198. + gimple_statement_with_ops_base
  9199. | | (no GSS layout)
  9200. | |
  9201. | + gimple_statement_with_ops
  9202. | | | layout: GSS_WITH_OPS
  9203. | | |
  9204. | | + gcond
  9205. | | | code: GIMPLE_COND
  9206. | | |
  9207. | | + gdebug
  9208. | | | code: GIMPLE_DEBUG
  9209. | | |
  9210. | | + ggoto
  9211. | | | code: GIMPLE_GOTO
  9212. | | |
  9213. | | + glabel
  9214. | | | code: GIMPLE_LABEL
  9215. | | |
  9216. | | + gswitch
  9217. | | code: GIMPLE_SWITCH
  9218. | |
  9219. | + gimple_statement_with_memory_ops_base
  9220. | | layout: GSS_WITH_MEM_OPS_BASE
  9221. | |
  9222. | + gimple_statement_with_memory_ops
  9223. | | | layout: GSS_WITH_MEM_OPS
  9224. | | |
  9225. | | + gassign
  9226. | | | code GIMPLE_ASSIGN
  9227. | | |
  9228. | | + greturn
  9229. | | code GIMPLE_RETURN
  9230. | |
  9231. | + gcall
  9232. | | layout: GSS_CALL, code: GIMPLE_CALL
  9233. | |
  9234. | + gasm
  9235. | | layout: GSS_ASM, code: GIMPLE_ASM
  9236. | |
  9237. | + gtransaction
  9238. | layout: GSS_TRANSACTION, code: GIMPLE_TRANSACTION
  9239. |
  9240. + gimple_statement_omp
  9241. | | layout: GSS_OMP. Used for code GIMPLE_OMP_SECTION
  9242. | |
  9243. | + gomp_critical
  9244. | | layout: GSS_OMP_CRITICAL, code: GIMPLE_OMP_CRITICAL
  9245. | |
  9246. | + gomp_for
  9247. | | layout: GSS_OMP_FOR, code: GIMPLE_OMP_FOR
  9248. | |
  9249. | + gomp_parallel_layout
  9250. | | | layout: GSS_OMP_PARALLEL_LAYOUT
  9251. | | |
  9252. | | + gimple_statement_omp_taskreg
  9253. | | | |
  9254. | | | + gomp_parallel
  9255. | | | | code: GIMPLE_OMP_PARALLEL
  9256. | | | |
  9257. | | | + gomp_task
  9258. | | | code: GIMPLE_OMP_TASK
  9259. | | |
  9260. | | + gimple_statement_omp_target
  9261. | | code: GIMPLE_OMP_TARGET
  9262. | |
  9263. | + gomp_sections
  9264. | | layout: GSS_OMP_SECTIONS, code: GIMPLE_OMP_SECTIONS
  9265. | |
  9266. | + gimple_statement_omp_single_layout
  9267. | | layout: GSS_OMP_SINGLE_LAYOUT
  9268. | |
  9269. | + gomp_single
  9270. | | code: GIMPLE_OMP_SINGLE
  9271. | |
  9272. | + gomp_teams
  9273. | code: GIMPLE_OMP_TEAMS
  9274. |
  9275. + gbind
  9276. | layout: GSS_BIND, code: GIMPLE_BIND
  9277. |
  9278. + gcatch
  9279. | layout: GSS_CATCH, code: GIMPLE_CATCH
  9280. |
  9281. + geh_filter
  9282. | layout: GSS_EH_FILTER, code: GIMPLE_EH_FILTER
  9283. |
  9284. + geh_else
  9285. | layout: GSS_EH_ELSE, code: GIMPLE_EH_ELSE
  9286. |
  9287. + geh_mnt
  9288. | layout: GSS_EH_MNT, code: GIMPLE_EH_MUST_NOT_THROW
  9289. |
  9290. + gphi
  9291. | layout: GSS_PHI, code: GIMPLE_PHI
  9292. |
  9293. + gimple_statement_eh_ctrl
  9294. | | layout: GSS_EH_CTRL
  9295. | |
  9296. | + gresx
  9297. | | code: GIMPLE_RESX
  9298. | |
  9299. | + geh_dispatch
  9300. | code: GIMPLE_EH_DISPATCH
  9301. |
  9302. + gtry
  9303. | layout: GSS_TRY, code: GIMPLE_TRY
  9304. |
  9305. + gimple_statement_wce
  9306. | layout: GSS_WCE, code: GIMPLE_WITH_CLEANUP_EXPR
  9307. |
  9308. + gomp_continue
  9309. | layout: GSS_OMP_CONTINUE, code: GIMPLE_OMP_CONTINUE
  9310. |
  9311. + gomp_atomic_load
  9312. | layout: GSS_OMP_ATOMIC_LOAD, code: GIMPLE_OMP_ATOMIC_LOAD
  9313. |
  9314. + gimple_statement_omp_atomic_store_layout
  9315. | layout: GSS_OMP_ATOMIC_STORE_LAYOUT,
  9316. | code: GIMPLE_OMP_ATOMIC_STORE
  9317. |
  9318. + gomp_atomic_store
  9319. | code: GIMPLE_OMP_ATOMIC_STORE
  9320. |
  9321. + gomp_return
  9322. code: GIMPLE_OMP_RETURN
  9323. 
  9324. File: gccint.info, Node: GIMPLE instruction set, Next: GIMPLE Exception Handling, Prev: Class hierarchy of GIMPLE statements, Up: GIMPLE
  9325. 11.3 GIMPLE instruction set
  9326. ===========================
  9327. The following table briefly describes the GIMPLE instruction set.
  9328. Instruction High GIMPLE Low GIMPLE
  9329. 'GIMPLE_ASM' x x
  9330. 'GIMPLE_ASSIGN' x x
  9331. 'GIMPLE_BIND' x
  9332. 'GIMPLE_CALL' x x
  9333. 'GIMPLE_CATCH' x
  9334. 'GIMPLE_COND' x x
  9335. 'GIMPLE_DEBUG' x x
  9336. 'GIMPLE_EH_FILTER' x
  9337. 'GIMPLE_GOTO' x x
  9338. 'GIMPLE_LABEL' x x
  9339. 'GIMPLE_NOP' x x
  9340. 'GIMPLE_OMP_ATOMIC_LOAD' x x
  9341. 'GIMPLE_OMP_ATOMIC_STORE' x x
  9342. 'GIMPLE_OMP_CONTINUE' x x
  9343. 'GIMPLE_OMP_CRITICAL' x x
  9344. 'GIMPLE_OMP_FOR' x x
  9345. 'GIMPLE_OMP_MASTER' x x
  9346. 'GIMPLE_OMP_ORDERED' x x
  9347. 'GIMPLE_OMP_PARALLEL' x x
  9348. 'GIMPLE_OMP_RETURN' x x
  9349. 'GIMPLE_OMP_SECTION' x x
  9350. 'GIMPLE_OMP_SECTIONS' x x
  9351. 'GIMPLE_OMP_SECTIONS_SWITCH' x x
  9352. 'GIMPLE_OMP_SINGLE' x x
  9353. 'GIMPLE_PHI' x
  9354. 'GIMPLE_RESX' x
  9355. 'GIMPLE_RETURN' x x
  9356. 'GIMPLE_SWITCH' x x
  9357. 'GIMPLE_TRY' x
  9358. 
  9359. File: gccint.info, Node: GIMPLE Exception Handling, Next: Temporaries, Prev: GIMPLE instruction set, Up: GIMPLE
  9360. 11.4 Exception Handling
  9361. =======================
  9362. Other exception handling constructs are represented using
  9363. 'GIMPLE_TRY_CATCH'. 'GIMPLE_TRY_CATCH' has two operands. The first
  9364. operand is a sequence of statements to execute. If executing these
  9365. statements does not throw an exception, then the second operand is
  9366. ignored. Otherwise, if an exception is thrown, then the second operand
  9367. of the 'GIMPLE_TRY_CATCH' is checked. The second operand may have the
  9368. following forms:
  9369. 1. A sequence of statements to execute. When an exception occurs,
  9370. these statements are executed, and then the exception is rethrown.
  9371. 2. A sequence of 'GIMPLE_CATCH' statements. Each 'GIMPLE_CATCH' has a
  9372. list of applicable exception types and handler code. If the thrown
  9373. exception matches one of the caught types, the associated handler
  9374. code is executed. If the handler code falls off the bottom,
  9375. execution continues after the original 'GIMPLE_TRY_CATCH'.
  9376. 3. A 'GIMPLE_EH_FILTER' statement. This has a list of permitted
  9377. exception types, and code to handle a match failure. If the thrown
  9378. exception does not match one of the allowed types, the associated
  9379. match failure code is executed. If the thrown exception does
  9380. match, it continues unwinding the stack looking for the next
  9381. handler.
  9382. Currently throwing an exception is not directly represented in GIMPLE,
  9383. since it is implemented by calling a function. At some point in the
  9384. future we will want to add some way to express that the call will throw
  9385. an exception of a known type.
  9386. Just before running the optimizers, the compiler lowers the high-level
  9387. EH constructs above into a set of 'goto's, magic labels, and EH regions.
  9388. Continuing to unwind at the end of a cleanup is represented with a
  9389. 'GIMPLE_RESX'.
  9390. 
  9391. File: gccint.info, Node: Temporaries, Next: Operands, Prev: GIMPLE Exception Handling, Up: GIMPLE
  9392. 11.5 Temporaries
  9393. ================
  9394. When gimplification encounters a subexpression that is too complex, it
  9395. creates a new temporary variable to hold the value of the subexpression,
  9396. and adds a new statement to initialize it before the current statement.
  9397. These special temporaries are known as 'expression temporaries', and are
  9398. allocated using 'get_formal_tmp_var'. The compiler tries to always
  9399. evaluate identical expressions into the same temporary, to simplify
  9400. elimination of redundant calculations.
  9401. We can only use expression temporaries when we know that it will not be
  9402. reevaluated before its value is used, and that it will not be otherwise
  9403. modified(1). Other temporaries can be allocated using
  9404. 'get_initialized_tmp_var' or 'create_tmp_var'.
  9405. Currently, an expression like 'a = b + 5' is not reduced any further.
  9406. We tried converting it to something like
  9407. T1 = b + 5;
  9408. a = T1;
  9409. but this bloated the representation for minimal benefit. However, a
  9410. variable which must live in memory cannot appear in an expression; its
  9411. value is explicitly loaded into a temporary first. Similarly, storing
  9412. the value of an expression to a memory variable goes through a
  9413. temporary.
  9414. ---------- Footnotes ----------
  9415. (1) These restrictions are derived from those in Morgan 4.8.
  9416. 
  9417. File: gccint.info, Node: Operands, Next: Manipulating GIMPLE statements, Prev: Temporaries, Up: GIMPLE
  9418. 11.6 Operands
  9419. =============
  9420. In general, expressions in GIMPLE consist of an operation and the
  9421. appropriate number of simple operands; these operands must either be a
  9422. GIMPLE rvalue ('is_gimple_val'), i.e. a constant or a register variable.
  9423. More complex operands are factored out into temporaries, so that
  9424. a = b + c + d
  9425. becomes
  9426. T1 = b + c;
  9427. a = T1 + d;
  9428. The same rule holds for arguments to a 'GIMPLE_CALL'.
  9429. The target of an assignment is usually a variable, but can also be a
  9430. 'MEM_REF' or a compound lvalue as described below.
  9431. * Menu:
  9432. * Compound Expressions::
  9433. * Compound Lvalues::
  9434. * Conditional Expressions::
  9435. * Logical Operators::
  9436. 
  9437. File: gccint.info, Node: Compound Expressions, Next: Compound Lvalues, Up: Operands
  9438. 11.6.1 Compound Expressions
  9439. ---------------------------
  9440. The left-hand side of a C comma expression is simply moved into a
  9441. separate statement.
  9442. 
  9443. File: gccint.info, Node: Compound Lvalues, Next: Conditional Expressions, Prev: Compound Expressions, Up: Operands
  9444. 11.6.2 Compound Lvalues
  9445. -----------------------
  9446. Currently compound lvalues involving array and structure field
  9447. references are not broken down; an expression like 'a.b[2] = 42' is not
  9448. reduced any further (though complex array subscripts are). This
  9449. restriction is a workaround for limitations in later optimizers; if we
  9450. were to convert this to
  9451. T1 = &a.b;
  9452. T1[2] = 42;
  9453. alias analysis would not remember that the reference to 'T1[2]' came by
  9454. way of 'a.b', so it would think that the assignment could alias another
  9455. member of 'a'; this broke 'struct-alias-1.c'. Future optimizer
  9456. improvements may make this limitation unnecessary.
  9457. 
  9458. File: gccint.info, Node: Conditional Expressions, Next: Logical Operators, Prev: Compound Lvalues, Up: Operands
  9459. 11.6.3 Conditional Expressions
  9460. ------------------------------
  9461. A C '?:' expression is converted into an 'if' statement with each branch
  9462. assigning to the same temporary. So,
  9463. a = b ? c : d;
  9464. becomes
  9465. if (b == 1)
  9466. T1 = c;
  9467. else
  9468. T1 = d;
  9469. a = T1;
  9470. The GIMPLE level if-conversion pass re-introduces '?:' expression, if
  9471. appropriate. It is used to vectorize loops with conditions using vector
  9472. conditional operations.
  9473. Note that in GIMPLE, 'if' statements are represented using
  9474. 'GIMPLE_COND', as described below.
  9475. 
  9476. File: gccint.info, Node: Logical Operators, Prev: Conditional Expressions, Up: Operands
  9477. 11.6.4 Logical Operators
  9478. ------------------------
  9479. Except when they appear in the condition operand of a 'GIMPLE_COND',
  9480. logical 'and' and 'or' operators are simplified as follows: 'a = b && c'
  9481. becomes
  9482. T1 = (bool)b;
  9483. if (T1 == true)
  9484. T1 = (bool)c;
  9485. a = T1;
  9486. Note that 'T1' in this example cannot be an expression temporary,
  9487. because it has two different assignments.
  9488. 11.6.5 Manipulating operands
  9489. ----------------------------
  9490. All gimple operands are of type 'tree'. But only certain types of trees
  9491. are allowed to be used as operand tuples. Basic validation is
  9492. controlled by the function 'get_gimple_rhs_class', which given a tree
  9493. code, returns an 'enum' with the following values of type 'enum
  9494. gimple_rhs_class'
  9495. * 'GIMPLE_INVALID_RHS' The tree cannot be used as a GIMPLE operand.
  9496. * 'GIMPLE_TERNARY_RHS' The tree is a valid GIMPLE ternary operation.
  9497. * 'GIMPLE_BINARY_RHS' The tree is a valid GIMPLE binary operation.
  9498. * 'GIMPLE_UNARY_RHS' The tree is a valid GIMPLE unary operation.
  9499. * 'GIMPLE_SINGLE_RHS' The tree is a single object, that cannot be
  9500. split into simpler operands (for instance, 'SSA_NAME', 'VAR_DECL',
  9501. 'COMPONENT_REF', etc).
  9502. This operand class also acts as an escape hatch for tree nodes that
  9503. may be flattened out into the operand vector, but would need more
  9504. than two slots on the RHS. For instance, a 'COND_EXPR' expression
  9505. of the form '(a op b) ? x : y' could be flattened out on the
  9506. operand vector using 4 slots, but it would also require additional
  9507. processing to distinguish 'c = a op b' from 'c = a op b ? x : y'.
  9508. Something similar occurs with 'ASSERT_EXPR'. In time, these
  9509. special case tree expressions should be flattened into the operand
  9510. vector.
  9511. For tree nodes in the categories 'GIMPLE_TERNARY_RHS',
  9512. 'GIMPLE_BINARY_RHS' and 'GIMPLE_UNARY_RHS', they cannot be stored inside
  9513. tuples directly. They first need to be flattened and separated into
  9514. individual components. For instance, given the GENERIC expression
  9515. a = b + c
  9516. its tree representation is:
  9517. MODIFY_EXPR <VAR_DECL <a>, PLUS_EXPR <VAR_DECL <b>, VAR_DECL <c>>>
  9518. In this case, the GIMPLE form for this statement is logically identical
  9519. to its GENERIC form but in GIMPLE, the 'PLUS_EXPR' on the RHS of the
  9520. assignment is not represented as a tree, instead the two operands are
  9521. taken out of the 'PLUS_EXPR' sub-tree and flattened into the GIMPLE
  9522. tuple as follows:
  9523. GIMPLE_ASSIGN <PLUS_EXPR, VAR_DECL <a>, VAR_DECL <b>, VAR_DECL <c>>
  9524. 11.6.6 Operand vector allocation
  9525. --------------------------------
  9526. The operand vector is stored at the bottom of the three tuple structures
  9527. that accept operands. This means, that depending on the code of a given
  9528. statement, its operand vector will be at different offsets from the base
  9529. of the structure. To access tuple operands use the following accessors
  9530. -- GIMPLE function: unsigned gimple_num_ops (gimple g)
  9531. Returns the number of operands in statement G.
  9532. -- GIMPLE function: tree gimple_op (gimple g, unsigned i)
  9533. Returns operand 'I' from statement 'G'.
  9534. -- GIMPLE function: tree * gimple_ops (gimple g)
  9535. Returns a pointer into the operand vector for statement 'G'. This
  9536. is computed using an internal table called 'gimple_ops_offset_'[].
  9537. This table is indexed by the gimple code of 'G'.
  9538. When the compiler is built, this table is filled-in using the sizes
  9539. of the structures used by each statement code defined in
  9540. gimple.def. Since the operand vector is at the bottom of the
  9541. structure, for a gimple code 'C' the offset is computed as sizeof
  9542. (struct-of 'C') - sizeof (tree).
  9543. This mechanism adds one memory indirection to every access when
  9544. using 'gimple_op'(), if this becomes a bottleneck, a pass can
  9545. choose to memoize the result from 'gimple_ops'() and use that to
  9546. access the operands.
  9547. 11.6.7 Operand validation
  9548. -------------------------
  9549. When adding a new operand to a gimple statement, the operand will be
  9550. validated according to what each tuple accepts in its operand vector.
  9551. These predicates are called by the 'gimple_NAME_set_...()'. Each tuple
  9552. will use one of the following predicates (Note, this list is not
  9553. exhaustive):
  9554. -- GIMPLE function: bool is_gimple_val (tree t)
  9555. Returns true if t is a "GIMPLE value", which are all the
  9556. non-addressable stack variables (variables for which
  9557. 'is_gimple_reg' returns true) and constants (expressions for which
  9558. 'is_gimple_min_invariant' returns true).
  9559. -- GIMPLE function: bool is_gimple_addressable (tree t)
  9560. Returns true if t is a symbol or memory reference whose address can
  9561. be taken.
  9562. -- GIMPLE function: bool is_gimple_asm_val (tree t)
  9563. Similar to 'is_gimple_val' but it also accepts hard registers.
  9564. -- GIMPLE function: bool is_gimple_call_addr (tree t)
  9565. Return true if t is a valid expression to use as the function
  9566. called by a 'GIMPLE_CALL'.
  9567. -- GIMPLE function: bool is_gimple_mem_ref_addr (tree t)
  9568. Return true if t is a valid expression to use as first operand of a
  9569. 'MEM_REF' expression.
  9570. -- GIMPLE function: bool is_gimple_constant (tree t)
  9571. Return true if t is a valid gimple constant.
  9572. -- GIMPLE function: bool is_gimple_min_invariant (tree t)
  9573. Return true if t is a valid minimal invariant. This is different
  9574. from constants, in that the specific value of t may not be known at
  9575. compile time, but it is known that it doesn't change (e.g., the
  9576. address of a function local variable).
  9577. -- GIMPLE function: bool is_gimple_ip_invariant (tree t)
  9578. Return true if t is an interprocedural invariant. This means that
  9579. t is a valid invariant in all functions (e.g. it can be an address
  9580. of a global variable but not of a local one).
  9581. -- GIMPLE function: bool is_gimple_ip_invariant_address (tree t)
  9582. Return true if t is an 'ADDR_EXPR' that does not change once the
  9583. program is running (and which is valid in all functions).
  9584. 11.6.8 Statement validation
  9585. ---------------------------
  9586. -- GIMPLE function: bool is_gimple_assign (gimple g)
  9587. Return true if the code of g is 'GIMPLE_ASSIGN'.
  9588. -- GIMPLE function: bool is_gimple_call (gimple g)
  9589. Return true if the code of g is 'GIMPLE_CALL'.
  9590. -- GIMPLE function: bool is_gimple_debug (gimple g)
  9591. Return true if the code of g is 'GIMPLE_DEBUG'.
  9592. -- GIMPLE function: bool gimple_assign_cast_p (const_gimple g)
  9593. Return true if g is a 'GIMPLE_ASSIGN' that performs a type cast
  9594. operation.
  9595. -- GIMPLE function: bool gimple_debug_bind_p (gimple g)
  9596. Return true if g is a 'GIMPLE_DEBUG' that binds the value of an
  9597. expression to a variable.
  9598. -- GIMPLE function: bool is_gimple_omp (gimple g)
  9599. Return true if g is any of the OpenMP codes.
  9600. 
  9601. File: gccint.info, Node: Manipulating GIMPLE statements, Next: Tuple specific accessors, Prev: Operands, Up: GIMPLE
  9602. 11.7 Manipulating GIMPLE statements
  9603. ===================================
  9604. This section documents all the functions available to handle each of the
  9605. GIMPLE instructions.
  9606. 11.7.1 Common accessors
  9607. -----------------------
  9608. The following are common accessors for gimple statements.
  9609. -- GIMPLE function: enum gimple_code gimple_code (gimple g)
  9610. Return the code for statement 'G'.
  9611. -- GIMPLE function: basic_block gimple_bb (gimple g)
  9612. Return the basic block to which statement 'G' belongs to.
  9613. -- GIMPLE function: tree gimple_block (gimple g)
  9614. Return the lexical scope block holding statement 'G'.
  9615. -- GIMPLE function: tree gimple_expr_type (gimple stmt)
  9616. Return the type of the main expression computed by 'STMT'. Return
  9617. 'void_type_node' if 'STMT' computes nothing. This will only return
  9618. something meaningful for 'GIMPLE_ASSIGN', 'GIMPLE_COND' and
  9619. 'GIMPLE_CALL'. For all other tuple codes, it will return
  9620. 'void_type_node'.
  9621. -- GIMPLE function: enum tree_code gimple_expr_code (gimple stmt)
  9622. Return the tree code for the expression computed by 'STMT'. This
  9623. is only meaningful for 'GIMPLE_CALL', 'GIMPLE_ASSIGN' and
  9624. 'GIMPLE_COND'. If 'STMT' is 'GIMPLE_CALL', it will return
  9625. 'CALL_EXPR'. For 'GIMPLE_COND', it returns the code of the
  9626. comparison predicate. For 'GIMPLE_ASSIGN' it returns the code of
  9627. the operation performed by the 'RHS' of the assignment.
  9628. -- GIMPLE function: void gimple_set_block (gimple g, tree block)
  9629. Set the lexical scope block of 'G' to 'BLOCK'.
  9630. -- GIMPLE function: location_t gimple_locus (gimple g)
  9631. Return locus information for statement 'G'.
  9632. -- GIMPLE function: void gimple_set_locus (gimple g, location_t locus)
  9633. Set locus information for statement 'G'.
  9634. -- GIMPLE function: bool gimple_locus_empty_p (gimple g)
  9635. Return true if 'G' does not have locus information.
  9636. -- GIMPLE function: bool gimple_no_warning_p (gimple stmt)
  9637. Return true if no warnings should be emitted for statement 'STMT'.
  9638. -- GIMPLE function: void gimple_set_visited (gimple stmt, bool
  9639. visited_p)
  9640. Set the visited status on statement 'STMT' to 'VISITED_P'.
  9641. -- GIMPLE function: bool gimple_visited_p (gimple stmt)
  9642. Return the visited status on statement 'STMT'.
  9643. -- GIMPLE function: void gimple_set_plf (gimple stmt, enum plf_mask
  9644. plf, bool val_p)
  9645. Set pass local flag 'PLF' on statement 'STMT' to 'VAL_P'.
  9646. -- GIMPLE function: unsigned int gimple_plf (gimple stmt, enum plf_mask
  9647. plf)
  9648. Return the value of pass local flag 'PLF' on statement 'STMT'.
  9649. -- GIMPLE function: bool gimple_has_ops (gimple g)
  9650. Return true if statement 'G' has register or memory operands.
  9651. -- GIMPLE function: bool gimple_has_mem_ops (gimple g)
  9652. Return true if statement 'G' has memory operands.
  9653. -- GIMPLE function: unsigned gimple_num_ops (gimple g)
  9654. Return the number of operands for statement 'G'.
  9655. -- GIMPLE function: tree * gimple_ops (gimple g)
  9656. Return the array of operands for statement 'G'.
  9657. -- GIMPLE function: tree gimple_op (gimple g, unsigned i)
  9658. Return operand 'I' for statement 'G'.
  9659. -- GIMPLE function: tree * gimple_op_ptr (gimple g, unsigned i)
  9660. Return a pointer to operand 'I' for statement 'G'.
  9661. -- GIMPLE function: void gimple_set_op (gimple g, unsigned i, tree op)
  9662. Set operand 'I' of statement 'G' to 'OP'.
  9663. -- GIMPLE function: bitmap gimple_addresses_taken (gimple stmt)
  9664. Return the set of symbols that have had their address taken by
  9665. 'STMT'.
  9666. -- GIMPLE function: struct def_optype_d * gimple_def_ops (gimple g)
  9667. Return the set of 'DEF' operands for statement 'G'.
  9668. -- GIMPLE function: void gimple_set_def_ops (gimple g, struct
  9669. def_optype_d *def)
  9670. Set 'DEF' to be the set of 'DEF' operands for statement 'G'.
  9671. -- GIMPLE function: struct use_optype_d * gimple_use_ops (gimple g)
  9672. Return the set of 'USE' operands for statement 'G'.
  9673. -- GIMPLE function: void gimple_set_use_ops (gimple g, struct
  9674. use_optype_d *use)
  9675. Set 'USE' to be the set of 'USE' operands for statement 'G'.
  9676. -- GIMPLE function: struct voptype_d * gimple_vuse_ops (gimple g)
  9677. Return the set of 'VUSE' operands for statement 'G'.
  9678. -- GIMPLE function: void gimple_set_vuse_ops (gimple g, struct
  9679. voptype_d *ops)
  9680. Set 'OPS' to be the set of 'VUSE' operands for statement 'G'.
  9681. -- GIMPLE function: struct voptype_d * gimple_vdef_ops (gimple g)
  9682. Return the set of 'VDEF' operands for statement 'G'.
  9683. -- GIMPLE function: void gimple_set_vdef_ops (gimple g, struct
  9684. voptype_d *ops)
  9685. Set 'OPS' to be the set of 'VDEF' operands for statement 'G'.
  9686. -- GIMPLE function: bitmap gimple_loaded_syms (gimple g)
  9687. Return the set of symbols loaded by statement 'G'. Each element of
  9688. the set is the 'DECL_UID' of the corresponding symbol.
  9689. -- GIMPLE function: bitmap gimple_stored_syms (gimple g)
  9690. Return the set of symbols stored by statement 'G'. Each element of
  9691. the set is the 'DECL_UID' of the corresponding symbol.
  9692. -- GIMPLE function: bool gimple_modified_p (gimple g)
  9693. Return true if statement 'G' has operands and the modified field
  9694. has been set.
  9695. -- GIMPLE function: bool gimple_has_volatile_ops (gimple stmt)
  9696. Return true if statement 'STMT' contains volatile operands.
  9697. -- GIMPLE function: void gimple_set_has_volatile_ops (gimple stmt, bool
  9698. volatilep)
  9699. Return true if statement 'STMT' contains volatile operands.
  9700. -- GIMPLE function: void update_stmt (gimple s)
  9701. Mark statement 'S' as modified, and update it.
  9702. -- GIMPLE function: void update_stmt_if_modified (gimple s)
  9703. Update statement 'S' if it has been marked modified.
  9704. -- GIMPLE function: gimple gimple_copy (gimple stmt)
  9705. Return a deep copy of statement 'STMT'.
  9706. 
  9707. File: gccint.info, Node: Tuple specific accessors, Next: GIMPLE sequences, Prev: Manipulating GIMPLE statements, Up: GIMPLE
  9708. 11.8 Tuple specific accessors
  9709. =============================
  9710. * Menu:
  9711. * 'GIMPLE_ASM'::
  9712. * 'GIMPLE_ASSIGN'::
  9713. * 'GIMPLE_BIND'::
  9714. * 'GIMPLE_CALL'::
  9715. * 'GIMPLE_CATCH'::
  9716. * 'GIMPLE_COND'::
  9717. * 'GIMPLE_DEBUG'::
  9718. * 'GIMPLE_EH_FILTER'::
  9719. * 'GIMPLE_LABEL'::
  9720. * 'GIMPLE_GOTO'::
  9721. * 'GIMPLE_NOP'::
  9722. * 'GIMPLE_OMP_ATOMIC_LOAD'::
  9723. * 'GIMPLE_OMP_ATOMIC_STORE'::
  9724. * 'GIMPLE_OMP_CONTINUE'::
  9725. * 'GIMPLE_OMP_CRITICAL'::
  9726. * 'GIMPLE_OMP_FOR'::
  9727. * 'GIMPLE_OMP_MASTER'::
  9728. * 'GIMPLE_OMP_ORDERED'::
  9729. * 'GIMPLE_OMP_PARALLEL'::
  9730. * 'GIMPLE_OMP_RETURN'::
  9731. * 'GIMPLE_OMP_SECTION'::
  9732. * 'GIMPLE_OMP_SECTIONS'::
  9733. * 'GIMPLE_OMP_SINGLE'::
  9734. * 'GIMPLE_PHI'::
  9735. * 'GIMPLE_RESX'::
  9736. * 'GIMPLE_RETURN'::
  9737. * 'GIMPLE_SWITCH'::
  9738. * 'GIMPLE_TRY'::
  9739. * 'GIMPLE_WITH_CLEANUP_EXPR'::
  9740. 
  9741. File: gccint.info, Node: 'GIMPLE_ASM', Next: 'GIMPLE_ASSIGN', Up: Tuple specific accessors
  9742. 11.8.1 'GIMPLE_ASM'
  9743. -------------------
  9744. -- GIMPLE function: gasm *gimple_build_asm_vec ( const char *string,
  9745. vec<tree, va_gc> *inputs, vec<tree, va_gc> *outputs, vec<tree,
  9746. va_gc> *clobbers, vec<tree, va_gc> *labels)
  9747. Build a 'GIMPLE_ASM' statement. This statement is used for
  9748. building in-line assembly constructs. 'STRING' is the assembly
  9749. code. 'INPUTS', 'OUTPUTS', 'CLOBBERS' and 'LABELS' are the inputs,
  9750. outputs, clobbered registers and labels.
  9751. -- GIMPLE function: unsigned gimple_asm_ninputs (const gasm *g)
  9752. Return the number of input operands for 'GIMPLE_ASM' 'G'.
  9753. -- GIMPLE function: unsigned gimple_asm_noutputs (const gasm *g)
  9754. Return the number of output operands for 'GIMPLE_ASM' 'G'.
  9755. -- GIMPLE function: unsigned gimple_asm_nclobbers (const gasm *g)
  9756. Return the number of clobber operands for 'GIMPLE_ASM' 'G'.
  9757. -- GIMPLE function: tree gimple_asm_input_op (const gasm *g, unsigned
  9758. index)
  9759. Return input operand 'INDEX' of 'GIMPLE_ASM' 'G'.
  9760. -- GIMPLE function: void gimple_asm_set_input_op (gasm *g, unsigned
  9761. index, tree in_op)
  9762. Set 'IN_OP' to be input operand 'INDEX' in 'GIMPLE_ASM' 'G'.
  9763. -- GIMPLE function: tree gimple_asm_output_op (const gasm *g, unsigned
  9764. index)
  9765. Return output operand 'INDEX' of 'GIMPLE_ASM' 'G'.
  9766. -- GIMPLE function: void gimple_asm_set_output_op (gasm *g, unsigned
  9767. index, tree out_op)
  9768. Set 'OUT_OP' to be output operand 'INDEX' in 'GIMPLE_ASM' 'G'.
  9769. -- GIMPLE function: tree gimple_asm_clobber_op (const gasm *g, unsigned
  9770. index)
  9771. Return clobber operand 'INDEX' of 'GIMPLE_ASM' 'G'.
  9772. -- GIMPLE function: void gimple_asm_set_clobber_op (gasm *g, unsigned
  9773. index, tree clobber_op)
  9774. Set 'CLOBBER_OP' to be clobber operand 'INDEX' in 'GIMPLE_ASM' 'G'.
  9775. -- GIMPLE function: const char * gimple_asm_string (const gasm *g)
  9776. Return the string representing the assembly instruction in
  9777. 'GIMPLE_ASM' 'G'.
  9778. -- GIMPLE function: bool gimple_asm_volatile_p (const gasm *g)
  9779. Return true if 'G' is an asm statement marked volatile.
  9780. -- GIMPLE function: void gimple_asm_set_volatile (gasm *g, bool
  9781. volatile_p)
  9782. Mark asm statement 'G' as volatile or non-volatile based on
  9783. 'VOLATILE_P'.
  9784. 
  9785. File: gccint.info, Node: 'GIMPLE_ASSIGN', Next: 'GIMPLE_BIND', Prev: 'GIMPLE_ASM', Up: Tuple specific accessors
  9786. 11.8.2 'GIMPLE_ASSIGN'
  9787. ----------------------
  9788. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, tree rhs)
  9789. Build a 'GIMPLE_ASSIGN' statement. The left-hand side is an lvalue
  9790. passed in lhs. The right-hand side can be either a unary or binary
  9791. tree expression. The expression tree rhs will be flattened and its
  9792. operands assigned to the corresponding operand slots in the new
  9793. statement. This function is useful when you already have a tree
  9794. expression that you want to convert into a tuple. However, try to
  9795. avoid building expression trees for the sole purpose of calling
  9796. this function. If you already have the operands in separate trees,
  9797. it is better to use 'gimple_build_assign' with 'enum tree_code'
  9798. argument and separate arguments for each operand.
  9799. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, enum
  9800. tree_code subcode, tree op1, tree op2, tree op3)
  9801. This function is similar to two operand 'gimple_build_assign', but
  9802. is used to build a 'GIMPLE_ASSIGN' statement when the operands of
  9803. the right-hand side of the assignment are already split into
  9804. different operands.
  9805. The left-hand side is an lvalue passed in lhs. Subcode is the
  9806. 'tree_code' for the right-hand side of the assignment. Op1, op2
  9807. and op3 are the operands.
  9808. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, enum
  9809. tree_code subcode, tree op1, tree op2)
  9810. Like the above 5 operand 'gimple_build_assign', but with the last
  9811. argument 'NULL' - this overload should not be used for
  9812. 'GIMPLE_TERNARY_RHS' assignments.
  9813. -- GIMPLE function: gassign *gimple_build_assign (tree lhs, enum
  9814. tree_code subcode, tree op1)
  9815. Like the above 4 operand 'gimple_build_assign', but with the last
  9816. argument 'NULL' - this overload should be used only for
  9817. 'GIMPLE_UNARY_RHS' and 'GIMPLE_SINGLE_RHS' assignments.
  9818. -- GIMPLE function: gimple gimplify_assign (tree dst, tree src,
  9819. gimple_seq *seq_p)
  9820. Build a new 'GIMPLE_ASSIGN' tuple and append it to the end of
  9821. '*SEQ_P'.
  9822. 'DST'/'SRC' are the destination and source respectively. You can pass
  9823. ungimplified trees in 'DST' or 'SRC', in which case they will be
  9824. converted to a gimple operand if necessary.
  9825. This function returns the newly created 'GIMPLE_ASSIGN' tuple.
  9826. -- GIMPLE function: enum tree_code gimple_assign_rhs_code (gimple g)
  9827. Return the code of the expression computed on the 'RHS' of
  9828. assignment statement 'G'.
  9829. -- GIMPLE function: enum gimple_rhs_class gimple_assign_rhs_class
  9830. (gimple g)
  9831. Return the gimple rhs class of the code for the expression computed
  9832. on the rhs of assignment statement 'G'. This will never return
  9833. 'GIMPLE_INVALID_RHS'.
  9834. -- GIMPLE function: tree gimple_assign_lhs (gimple g)
  9835. Return the 'LHS' of assignment statement 'G'.
  9836. -- GIMPLE function: tree * gimple_assign_lhs_ptr (gimple g)
  9837. Return a pointer to the 'LHS' of assignment statement 'G'.
  9838. -- GIMPLE function: tree gimple_assign_rhs1 (gimple g)
  9839. Return the first operand on the 'RHS' of assignment statement 'G'.
  9840. -- GIMPLE function: tree * gimple_assign_rhs1_ptr (gimple g)
  9841. Return the address of the first operand on the 'RHS' of assignment
  9842. statement 'G'.
  9843. -- GIMPLE function: tree gimple_assign_rhs2 (gimple g)
  9844. Return the second operand on the 'RHS' of assignment statement 'G'.
  9845. -- GIMPLE function: tree * gimple_assign_rhs2_ptr (gimple g)
  9846. Return the address of the second operand on the 'RHS' of assignment
  9847. statement 'G'.
  9848. -- GIMPLE function: tree gimple_assign_rhs3 (gimple g)
  9849. Return the third operand on the 'RHS' of assignment statement 'G'.
  9850. -- GIMPLE function: tree * gimple_assign_rhs3_ptr (gimple g)
  9851. Return the address of the third operand on the 'RHS' of assignment
  9852. statement 'G'.
  9853. -- GIMPLE function: void gimple_assign_set_lhs (gimple g, tree lhs)
  9854. Set 'LHS' to be the 'LHS' operand of assignment statement 'G'.
  9855. -- GIMPLE function: void gimple_assign_set_rhs1 (gimple g, tree rhs)
  9856. Set 'RHS' to be the first operand on the 'RHS' of assignment
  9857. statement 'G'.
  9858. -- GIMPLE function: void gimple_assign_set_rhs2 (gimple g, tree rhs)
  9859. Set 'RHS' to be the second operand on the 'RHS' of assignment
  9860. statement 'G'.
  9861. -- GIMPLE function: void gimple_assign_set_rhs3 (gimple g, tree rhs)
  9862. Set 'RHS' to be the third operand on the 'RHS' of assignment
  9863. statement 'G'.
  9864. -- GIMPLE function: bool gimple_assign_cast_p (const_gimple s)
  9865. Return true if 'S' is a type-cast assignment.
  9866. 
  9867. File: gccint.info, Node: 'GIMPLE_BIND', Next: 'GIMPLE_CALL', Prev: 'GIMPLE_ASSIGN', Up: Tuple specific accessors
  9868. 11.8.3 'GIMPLE_BIND'
  9869. --------------------
  9870. -- GIMPLE function: gbind *gimple_build_bind (tree vars, gimple_seq
  9871. body)
  9872. Build a 'GIMPLE_BIND' statement with a list of variables in 'VARS'
  9873. and a body of statements in sequence 'BODY'.
  9874. -- GIMPLE function: tree gimple_bind_vars (const gbind *g)
  9875. Return the variables declared in the 'GIMPLE_BIND' statement 'G'.
  9876. -- GIMPLE function: void gimple_bind_set_vars (gbind *g, tree vars)
  9877. Set 'VARS' to be the set of variables declared in the 'GIMPLE_BIND'
  9878. statement 'G'.
  9879. -- GIMPLE function: void gimple_bind_append_vars (gbind *g, tree vars)
  9880. Append 'VARS' to the set of variables declared in the 'GIMPLE_BIND'
  9881. statement 'G'.
  9882. -- GIMPLE function: gimple_seq gimple_bind_body (gbind *g)
  9883. Return the GIMPLE sequence contained in the 'GIMPLE_BIND' statement
  9884. 'G'.
  9885. -- GIMPLE function: void gimple_bind_set_body (gbind *g, gimple_seq
  9886. seq)
  9887. Set 'SEQ' to be sequence contained in the 'GIMPLE_BIND' statement
  9888. 'G'.
  9889. -- GIMPLE function: void gimple_bind_add_stmt (gbind *gs, gimple stmt)
  9890. Append a statement to the end of a 'GIMPLE_BIND''s body.
  9891. -- GIMPLE function: void gimple_bind_add_seq (gbind *gs, gimple_seq
  9892. seq)
  9893. Append a sequence of statements to the end of a 'GIMPLE_BIND''s
  9894. body.
  9895. -- GIMPLE function: tree gimple_bind_block (const gbind *g)
  9896. Return the 'TREE_BLOCK' node associated with 'GIMPLE_BIND'
  9897. statement 'G'. This is analogous to the 'BIND_EXPR_BLOCK' field in
  9898. trees.
  9899. -- GIMPLE function: void gimple_bind_set_block (gbind *g, tree block)
  9900. Set 'BLOCK' to be the 'TREE_BLOCK' node associated with
  9901. 'GIMPLE_BIND' statement 'G'.
  9902. 
  9903. File: gccint.info, Node: 'GIMPLE_CALL', Next: 'GIMPLE_CATCH', Prev: 'GIMPLE_BIND', Up: Tuple specific accessors
  9904. 11.8.4 'GIMPLE_CALL'
  9905. --------------------
  9906. -- GIMPLE function: gcall *gimple_build_call (tree fn, unsigned nargs,
  9907. ...)
  9908. Build a 'GIMPLE_CALL' statement to function 'FN'. The argument
  9909. 'FN' must be either a 'FUNCTION_DECL' or a gimple call address as
  9910. determined by 'is_gimple_call_addr'. 'NARGS' are the number of
  9911. arguments. The rest of the arguments follow the argument 'NARGS',
  9912. and must be trees that are valid as rvalues in gimple (i.e., each
  9913. operand is validated with 'is_gimple_operand').
  9914. -- GIMPLE function: gcall *gimple_build_call_from_tree (tree call_expr)
  9915. Build a 'GIMPLE_CALL' from a 'CALL_EXPR' node. The arguments and
  9916. the function are taken from the expression directly. This routine
  9917. assumes that 'call_expr' is already in GIMPLE form. That is, its
  9918. operands are GIMPLE values and the function call needs no further
  9919. simplification. All the call flags in 'call_expr' are copied over
  9920. to the new 'GIMPLE_CALL'.
  9921. -- GIMPLE function: gcall *gimple_build_call_vec (tree fn, 'vec<tree>'
  9922. args)
  9923. Identical to 'gimple_build_call' but the arguments are stored in a
  9924. 'vec<tree>'.
  9925. -- GIMPLE function: tree gimple_call_lhs (gimple g)
  9926. Return the 'LHS' of call statement 'G'.
  9927. -- GIMPLE function: tree * gimple_call_lhs_ptr (gimple g)
  9928. Return a pointer to the 'LHS' of call statement 'G'.
  9929. -- GIMPLE function: void gimple_call_set_lhs (gimple g, tree lhs)
  9930. Set 'LHS' to be the 'LHS' operand of call statement 'G'.
  9931. -- GIMPLE function: tree gimple_call_fn (gimple g)
  9932. Return the tree node representing the function called by call
  9933. statement 'G'.
  9934. -- GIMPLE function: void gimple_call_set_fn (gcall *g, tree fn)
  9935. Set 'FN' to be the function called by call statement 'G'. This has
  9936. to be a gimple value specifying the address of the called function.
  9937. -- GIMPLE function: tree gimple_call_fndecl (gimple g)
  9938. If a given 'GIMPLE_CALL''s callee is a 'FUNCTION_DECL', return it.
  9939. Otherwise return 'NULL'. This function is analogous to
  9940. 'get_callee_fndecl' in 'GENERIC'.
  9941. -- GIMPLE function: tree gimple_call_set_fndecl (gimple g, tree fndecl)
  9942. Set the called function to 'FNDECL'.
  9943. -- GIMPLE function: tree gimple_call_return_type (const gcall *g)
  9944. Return the type returned by call statement 'G'.
  9945. -- GIMPLE function: tree gimple_call_chain (gimple g)
  9946. Return the static chain for call statement 'G'.
  9947. -- GIMPLE function: void gimple_call_set_chain (gcall *g, tree chain)
  9948. Set 'CHAIN' to be the static chain for call statement 'G'.
  9949. -- GIMPLE function: unsigned gimple_call_num_args (gimple g)
  9950. Return the number of arguments used by call statement 'G'.
  9951. -- GIMPLE function: tree gimple_call_arg (gimple g, unsigned index)
  9952. Return the argument at position 'INDEX' for call statement 'G'.
  9953. The first argument is 0.
  9954. -- GIMPLE function: tree * gimple_call_arg_ptr (gimple g, unsigned
  9955. index)
  9956. Return a pointer to the argument at position 'INDEX' for call
  9957. statement 'G'.
  9958. -- GIMPLE function: void gimple_call_set_arg (gimple g, unsigned index,
  9959. tree arg)
  9960. Set 'ARG' to be the argument at position 'INDEX' for call statement
  9961. 'G'.
  9962. -- GIMPLE function: void gimple_call_set_tail (gcall *s)
  9963. Mark call statement 'S' as being a tail call (i.e., a call just
  9964. before the exit of a function). These calls are candidate for tail
  9965. call optimization.
  9966. -- GIMPLE function: bool gimple_call_tail_p (gcall *s)
  9967. Return true if 'GIMPLE_CALL' 'S' is marked as a tail call.
  9968. -- GIMPLE function: bool gimple_call_noreturn_p (gimple s)
  9969. Return true if 'S' is a noreturn call.
  9970. -- GIMPLE function: gimple gimple_call_copy_skip_args (gcall *stmt,
  9971. bitmap args_to_skip)
  9972. Build a 'GIMPLE_CALL' identical to 'STMT' but skipping the
  9973. arguments in the positions marked by the set 'ARGS_TO_SKIP'.
  9974. 
  9975. File: gccint.info, Node: 'GIMPLE_CATCH', Next: 'GIMPLE_COND', Prev: 'GIMPLE_CALL', Up: Tuple specific accessors
  9976. 11.8.5 'GIMPLE_CATCH'
  9977. ---------------------
  9978. -- GIMPLE function: gcatch *gimple_build_catch (tree types, gimple_seq
  9979. handler)
  9980. Build a 'GIMPLE_CATCH' statement. 'TYPES' are the tree types this
  9981. catch handles. 'HANDLER' is a sequence of statements with the code
  9982. for the handler.
  9983. -- GIMPLE function: tree gimple_catch_types (const gcatch *g)
  9984. Return the types handled by 'GIMPLE_CATCH' statement 'G'.
  9985. -- GIMPLE function: tree * gimple_catch_types_ptr (gcatch *g)
  9986. Return a pointer to the types handled by 'GIMPLE_CATCH' statement
  9987. 'G'.
  9988. -- GIMPLE function: gimple_seq gimple_catch_handler (gcatch *g)
  9989. Return the GIMPLE sequence representing the body of the handler of
  9990. 'GIMPLE_CATCH' statement 'G'.
  9991. -- GIMPLE function: void gimple_catch_set_types (gcatch *g, tree t)
  9992. Set 'T' to be the set of types handled by 'GIMPLE_CATCH' 'G'.
  9993. -- GIMPLE function: void gimple_catch_set_handler (gcatch *g,
  9994. gimple_seq handler)
  9995. Set 'HANDLER' to be the body of 'GIMPLE_CATCH' 'G'.
  9996. 
  9997. File: gccint.info, Node: 'GIMPLE_COND', Next: 'GIMPLE_DEBUG', Prev: 'GIMPLE_CATCH', Up: Tuple specific accessors
  9998. 11.8.6 'GIMPLE_COND'
  9999. --------------------
  10000. -- GIMPLE function: gcond *gimple_build_cond ( enum tree_code
  10001. pred_code, tree lhs, tree rhs, tree t_label, tree f_label)
  10002. Build a 'GIMPLE_COND' statement. 'A' 'GIMPLE_COND' statement
  10003. compares 'LHS' and 'RHS' and if the condition in 'PRED_CODE' is
  10004. true, jump to the label in 't_label', otherwise jump to the label
  10005. in 'f_label'. 'PRED_CODE' are relational operator tree codes like
  10006. 'EQ_EXPR', 'LT_EXPR', 'LE_EXPR', 'NE_EXPR', etc.
  10007. -- GIMPLE function: gcond *gimple_build_cond_from_tree (tree cond, tree
  10008. t_label, tree f_label)
  10009. Build a 'GIMPLE_COND' statement from the conditional expression
  10010. tree 'COND'. 'T_LABEL' and 'F_LABEL' are as in
  10011. 'gimple_build_cond'.
  10012. -- GIMPLE function: enum tree_code gimple_cond_code (gimple g)
  10013. Return the code of the predicate computed by conditional statement
  10014. 'G'.
  10015. -- GIMPLE function: void gimple_cond_set_code (gcond *g, enum tree_code
  10016. code)
  10017. Set 'CODE' to be the predicate code for the conditional statement
  10018. 'G'.
  10019. -- GIMPLE function: tree gimple_cond_lhs (gimple g)
  10020. Return the 'LHS' of the predicate computed by conditional statement
  10021. 'G'.
  10022. -- GIMPLE function: void gimple_cond_set_lhs (gcond *g, tree lhs)
  10023. Set 'LHS' to be the 'LHS' operand of the predicate computed by
  10024. conditional statement 'G'.
  10025. -- GIMPLE function: tree gimple_cond_rhs (gimple g)
  10026. Return the 'RHS' operand of the predicate computed by conditional
  10027. 'G'.
  10028. -- GIMPLE function: void gimple_cond_set_rhs (gcond *g, tree rhs)
  10029. Set 'RHS' to be the 'RHS' operand of the predicate computed by
  10030. conditional statement 'G'.
  10031. -- GIMPLE function: tree gimple_cond_true_label (const gcond *g)
  10032. Return the label used by conditional statement 'G' when its
  10033. predicate evaluates to true.
  10034. -- GIMPLE function: void gimple_cond_set_true_label (gcond *g, tree
  10035. label)
  10036. Set 'LABEL' to be the label used by conditional statement 'G' when
  10037. its predicate evaluates to true.
  10038. -- GIMPLE function: void gimple_cond_set_false_label (gcond *g, tree
  10039. label)
  10040. Set 'LABEL' to be the label used by conditional statement 'G' when
  10041. its predicate evaluates to false.
  10042. -- GIMPLE function: tree gimple_cond_false_label (const gcond *g)
  10043. Return the label used by conditional statement 'G' when its
  10044. predicate evaluates to false.
  10045. -- GIMPLE function: void gimple_cond_make_false (gcond *g)
  10046. Set the conditional 'COND_STMT' to be of the form 'if (1 == 0)'.
  10047. -- GIMPLE function: void gimple_cond_make_true (gcond *g)
  10048. Set the conditional 'COND_STMT' to be of the form 'if (1 == 1)'.
  10049. 
  10050. File: gccint.info, Node: 'GIMPLE_DEBUG', Next: 'GIMPLE_EH_FILTER', Prev: 'GIMPLE_COND', Up: Tuple specific accessors
  10051. 11.8.7 'GIMPLE_DEBUG'
  10052. ---------------------
  10053. -- GIMPLE function: gdebug *gimple_build_debug_bind (tree var, tree
  10054. value, gimple stmt)
  10055. Build a 'GIMPLE_DEBUG' statement with 'GIMPLE_DEBUG_BIND' of
  10056. 'subcode'. The effect of this statement is to tell debug
  10057. information generation machinery that the value of user variable
  10058. 'var' is given by 'value' at that point, and to remain with that
  10059. value until 'var' runs out of scope, a dynamically-subsequent debug
  10060. bind statement overrides the binding, or conflicting values reach a
  10061. control flow merge point. Even if components of the 'value'
  10062. expression change afterwards, the variable is supposed to retain
  10063. the same value, though not necessarily the same location.
  10064. It is expected that 'var' be most often a tree for automatic user
  10065. variables ('VAR_DECL' or 'PARM_DECL') that satisfy the requirements
  10066. for gimple registers, but it may also be a tree for a scalarized
  10067. component of a user variable ('ARRAY_REF', 'COMPONENT_REF'), or a
  10068. debug temporary ('DEBUG_EXPR_DECL').
  10069. As for 'value', it can be an arbitrary tree expression, but it is
  10070. recommended that it be in a suitable form for a gimple assignment
  10071. 'RHS'. It is not expected that user variables that could appear as
  10072. 'var' ever appear in 'value', because in the latter we'd have their
  10073. 'SSA_NAME's instead, but even if they were not in SSA form, user
  10074. variables appearing in 'value' are to be regarded as part of the
  10075. executable code space, whereas those in 'var' are to be regarded as
  10076. part of the source code space. There is no way to refer to the
  10077. value bound to a user variable within a 'value' expression.
  10078. If 'value' is 'GIMPLE_DEBUG_BIND_NOVALUE', debug information
  10079. generation machinery is informed that the variable 'var' is
  10080. unbound, i.e., that its value is indeterminate, which sometimes
  10081. means it is really unavailable, and other times that the compiler
  10082. could not keep track of it.
  10083. Block and location information for the newly-created stmt are taken
  10084. from 'stmt', if given.
  10085. -- GIMPLE function: tree gimple_debug_bind_get_var (gimple stmt)
  10086. Return the user variable VAR that is bound at 'stmt'.
  10087. -- GIMPLE function: tree gimple_debug_bind_get_value (gimple stmt)
  10088. Return the value expression that is bound to a user variable at
  10089. 'stmt'.
  10090. -- GIMPLE function: tree * gimple_debug_bind_get_value_ptr (gimple
  10091. stmt)
  10092. Return a pointer to the value expression that is bound to a user
  10093. variable at 'stmt'.
  10094. -- GIMPLE function: void gimple_debug_bind_set_var (gimple stmt, tree
  10095. var)
  10096. Modify the user variable bound at 'stmt' to VAR.
  10097. -- GIMPLE function: void gimple_debug_bind_set_value (gimple stmt, tree
  10098. var)
  10099. Modify the value bound to the user variable bound at 'stmt' to
  10100. VALUE.
  10101. -- GIMPLE function: void gimple_debug_bind_reset_value (gimple stmt)
  10102. Modify the value bound to the user variable bound at 'stmt' so that
  10103. the variable becomes unbound.
  10104. -- GIMPLE function: bool gimple_debug_bind_has_value_p (gimple stmt)
  10105. Return 'TRUE' if 'stmt' binds a user variable to a value, and
  10106. 'FALSE' if it unbinds the variable.
  10107. 
  10108. File: gccint.info, Node: 'GIMPLE_EH_FILTER', Next: 'GIMPLE_LABEL', Prev: 'GIMPLE_DEBUG', Up: Tuple specific accessors
  10109. 11.8.8 'GIMPLE_EH_FILTER'
  10110. -------------------------
  10111. -- GIMPLE function: geh_filter *gimple_build_eh_filter (tree types,
  10112. gimple_seq failure)
  10113. Build a 'GIMPLE_EH_FILTER' statement. 'TYPES' are the filter's
  10114. types. 'FAILURE' is a sequence with the filter's failure action.
  10115. -- GIMPLE function: tree gimple_eh_filter_types (gimple g)
  10116. Return the types handled by 'GIMPLE_EH_FILTER' statement 'G'.
  10117. -- GIMPLE function: tree * gimple_eh_filter_types_ptr (gimple g)
  10118. Return a pointer to the types handled by 'GIMPLE_EH_FILTER'
  10119. statement 'G'.
  10120. -- GIMPLE function: gimple_seq gimple_eh_filter_failure (gimple g)
  10121. Return the sequence of statement to execute when 'GIMPLE_EH_FILTER'
  10122. statement fails.
  10123. -- GIMPLE function: void gimple_eh_filter_set_types (geh_filter *g,
  10124. tree types)
  10125. Set 'TYPES' to be the set of types handled by 'GIMPLE_EH_FILTER'
  10126. 'G'.
  10127. -- GIMPLE function: void gimple_eh_filter_set_failure (geh_filter *g,
  10128. gimple_seq failure)
  10129. Set 'FAILURE' to be the sequence of statements to execute on
  10130. failure for 'GIMPLE_EH_FILTER' 'G'.
  10131. -- GIMPLE function: tree gimple_eh_must_not_throw_fndecl ( geh_mnt
  10132. *eh_mnt_stmt)
  10133. Get the function decl to be called by the MUST_NOT_THROW region.
  10134. -- GIMPLE function: void gimple_eh_must_not_throw_set_fndecl ( geh_mnt
  10135. *eh_mnt_stmt, tree decl)
  10136. Set the function decl to be called by GS to DECL.
  10137. 
  10138. File: gccint.info, Node: 'GIMPLE_LABEL', Next: 'GIMPLE_GOTO', Prev: 'GIMPLE_EH_FILTER', Up: Tuple specific accessors
  10139. 11.8.9 'GIMPLE_LABEL'
  10140. ---------------------
  10141. -- GIMPLE function: glabel *gimple_build_label (tree label)
  10142. Build a 'GIMPLE_LABEL' statement with corresponding to the tree
  10143. label, 'LABEL'.
  10144. -- GIMPLE function: tree gimple_label_label (const glabel *g)
  10145. Return the 'LABEL_DECL' node used by 'GIMPLE_LABEL' statement 'G'.
  10146. -- GIMPLE function: void gimple_label_set_label (glabel *g, tree label)
  10147. Set 'LABEL' to be the 'LABEL_DECL' node used by 'GIMPLE_LABEL'
  10148. statement 'G'.
  10149. 
  10150. File: gccint.info, Node: 'GIMPLE_GOTO', Next: 'GIMPLE_NOP', Prev: 'GIMPLE_LABEL', Up: Tuple specific accessors
  10151. 11.8.10 'GIMPLE_GOTO'
  10152. ---------------------
  10153. -- GIMPLE function: ggoto *gimple_build_goto (tree dest)
  10154. Build a 'GIMPLE_GOTO' statement to label 'DEST'.
  10155. -- GIMPLE function: tree gimple_goto_dest (gimple g)
  10156. Return the destination of the unconditional jump 'G'.
  10157. -- GIMPLE function: void gimple_goto_set_dest (ggoto *g, tree dest)
  10158. Set 'DEST' to be the destination of the unconditional jump 'G'.
  10159. 
  10160. File: gccint.info, Node: 'GIMPLE_NOP', Next: 'GIMPLE_OMP_ATOMIC_LOAD', Prev: 'GIMPLE_GOTO', Up: Tuple specific accessors
  10161. 11.8.11 'GIMPLE_NOP'
  10162. --------------------
  10163. -- GIMPLE function: gimple gimple_build_nop (void)
  10164. Build a 'GIMPLE_NOP' statement.
  10165. -- GIMPLE function: bool gimple_nop_p (gimple g)
  10166. Returns 'TRUE' if statement 'G' is a 'GIMPLE_NOP'.
  10167. 
  10168. File: gccint.info, Node: 'GIMPLE_OMP_ATOMIC_LOAD', Next: 'GIMPLE_OMP_ATOMIC_STORE', Prev: 'GIMPLE_NOP', Up: Tuple specific accessors
  10169. 11.8.12 'GIMPLE_OMP_ATOMIC_LOAD'
  10170. --------------------------------
  10171. -- GIMPLE function: gomp_atomic_load *gimple_build_omp_atomic_load (
  10172. tree lhs, tree rhs)
  10173. Build a 'GIMPLE_OMP_ATOMIC_LOAD' statement. 'LHS' is the left-hand
  10174. side of the assignment. 'RHS' is the right-hand side of the
  10175. assignment.
  10176. -- GIMPLE function: void gimple_omp_atomic_load_set_lhs (
  10177. gomp_atomic_load *g, tree lhs)
  10178. Set the 'LHS' of an atomic load.
  10179. -- GIMPLE function: tree gimple_omp_atomic_load_lhs ( const
  10180. gomp_atomic_load *g)
  10181. Get the 'LHS' of an atomic load.
  10182. -- GIMPLE function: void gimple_omp_atomic_load_set_rhs (
  10183. gomp_atomic_load *g, tree rhs)
  10184. Set the 'RHS' of an atomic set.
  10185. -- GIMPLE function: tree gimple_omp_atomic_load_rhs ( const
  10186. gomp_atomic_load *g)
  10187. Get the 'RHS' of an atomic set.
  10188. 
  10189. File: gccint.info, Node: 'GIMPLE_OMP_ATOMIC_STORE', Next: 'GIMPLE_OMP_CONTINUE', Prev: 'GIMPLE_OMP_ATOMIC_LOAD', Up: Tuple specific accessors
  10190. 11.8.13 'GIMPLE_OMP_ATOMIC_STORE'
  10191. ---------------------------------
  10192. -- GIMPLE function: gomp_atomic_store *gimple_build_omp_atomic_store (
  10193. tree val)
  10194. Build a 'GIMPLE_OMP_ATOMIC_STORE' statement. 'VAL' is the value to
  10195. be stored.
  10196. -- GIMPLE function: void gimple_omp_atomic_store_set_val (
  10197. gomp_atomic_store *g, tree val)
  10198. Set the value being stored in an atomic store.
  10199. -- GIMPLE function: tree gimple_omp_atomic_store_val ( const
  10200. gomp_atomic_store *g)
  10201. Return the value being stored in an atomic store.
  10202. 
  10203. File: gccint.info, Node: 'GIMPLE_OMP_CONTINUE', Next: 'GIMPLE_OMP_CRITICAL', Prev: 'GIMPLE_OMP_ATOMIC_STORE', Up: Tuple specific accessors
  10204. 11.8.14 'GIMPLE_OMP_CONTINUE'
  10205. -----------------------------
  10206. -- GIMPLE function: gomp_continue *gimple_build_omp_continue ( tree
  10207. control_def, tree control_use)
  10208. Build a 'GIMPLE_OMP_CONTINUE' statement. 'CONTROL_DEF' is the
  10209. definition of the control variable. 'CONTROL_USE' is the use of
  10210. the control variable.
  10211. -- GIMPLE function: tree gimple_omp_continue_control_def ( const
  10212. gomp_continue *s)
  10213. Return the definition of the control variable on a
  10214. 'GIMPLE_OMP_CONTINUE' in 'S'.
  10215. -- GIMPLE function: tree gimple_omp_continue_control_def_ptr (
  10216. gomp_continue *s)
  10217. Same as above, but return the pointer.
  10218. -- GIMPLE function: tree gimple_omp_continue_set_control_def (
  10219. gomp_continue *s)
  10220. Set the control variable definition for a 'GIMPLE_OMP_CONTINUE'
  10221. statement in 'S'.
  10222. -- GIMPLE function: tree gimple_omp_continue_control_use ( const
  10223. gomp_continue *s)
  10224. Return the use of the control variable on a 'GIMPLE_OMP_CONTINUE'
  10225. in 'S'.
  10226. -- GIMPLE function: tree gimple_omp_continue_control_use_ptr (
  10227. gomp_continue *s)
  10228. Same as above, but return the pointer.
  10229. -- GIMPLE function: tree gimple_omp_continue_set_control_use (
  10230. gomp_continue *s)
  10231. Set the control variable use for a 'GIMPLE_OMP_CONTINUE' statement
  10232. in 'S'.
  10233. 
  10234. File: gccint.info, Node: 'GIMPLE_OMP_CRITICAL', Next: 'GIMPLE_OMP_FOR', Prev: 'GIMPLE_OMP_CONTINUE', Up: Tuple specific accessors
  10235. 11.8.15 'GIMPLE_OMP_CRITICAL'
  10236. -----------------------------
  10237. -- GIMPLE function: gomp_critical *gimple_build_omp_critical (
  10238. gimple_seq body, tree name)
  10239. Build a 'GIMPLE_OMP_CRITICAL' statement. 'BODY' is the sequence of
  10240. statements for which only one thread can execute. 'NAME' is an
  10241. optional identifier for this critical block.
  10242. -- GIMPLE function: tree gimple_omp_critical_name ( const gomp_critical
  10243. *g)
  10244. Return the name associated with 'OMP_CRITICAL' statement 'G'.
  10245. -- GIMPLE function: tree * gimple_omp_critical_name_ptr ( gomp_critical
  10246. *g)
  10247. Return a pointer to the name associated with 'OMP' critical
  10248. statement 'G'.
  10249. -- GIMPLE function: void gimple_omp_critical_set_name ( gomp_critical
  10250. *g, tree name)
  10251. Set 'NAME' to be the name associated with 'OMP' critical statement
  10252. 'G'.
  10253. 
  10254. File: gccint.info, Node: 'GIMPLE_OMP_FOR', Next: 'GIMPLE_OMP_MASTER', Prev: 'GIMPLE_OMP_CRITICAL', Up: Tuple specific accessors
  10255. 11.8.16 'GIMPLE_OMP_FOR'
  10256. ------------------------
  10257. -- GIMPLE function: gomp_for *gimple_build_omp_for (gimple_seq body,
  10258. tree clauses, tree index, tree initial, tree final, tree incr,
  10259. gimple_seq pre_body, enum tree_code omp_for_cond)
  10260. Build a 'GIMPLE_OMP_FOR' statement. 'BODY' is sequence of
  10261. statements inside the for loop. 'CLAUSES', are any of the loop
  10262. construct's clauses. 'PRE_BODY' is the sequence of statements that
  10263. are loop invariant. 'INDEX' is the index variable. 'INITIAL' is
  10264. the initial value of 'INDEX'. 'FINAL' is final value of 'INDEX'.
  10265. OMP_FOR_COND is the predicate used to compare 'INDEX' and 'FINAL'.
  10266. 'INCR' is the increment expression.
  10267. -- GIMPLE function: tree gimple_omp_for_clauses (gimple g)
  10268. Return the clauses associated with 'OMP_FOR' 'G'.
  10269. -- GIMPLE function: tree * gimple_omp_for_clauses_ptr (gimple g)
  10270. Return a pointer to the 'OMP_FOR' 'G'.
  10271. -- GIMPLE function: void gimple_omp_for_set_clauses (gimple g, tree
  10272. clauses)
  10273. Set 'CLAUSES' to be the list of clauses associated with 'OMP_FOR'
  10274. 'G'.
  10275. -- GIMPLE function: tree gimple_omp_for_index (gimple g)
  10276. Return the index variable for 'OMP_FOR' 'G'.
  10277. -- GIMPLE function: tree * gimple_omp_for_index_ptr (gimple g)
  10278. Return a pointer to the index variable for 'OMP_FOR' 'G'.
  10279. -- GIMPLE function: void gimple_omp_for_set_index (gimple g, tree
  10280. index)
  10281. Set 'INDEX' to be the index variable for 'OMP_FOR' 'G'.
  10282. -- GIMPLE function: tree gimple_omp_for_initial (gimple g)
  10283. Return the initial value for 'OMP_FOR' 'G'.
  10284. -- GIMPLE function: tree * gimple_omp_for_initial_ptr (gimple g)
  10285. Return a pointer to the initial value for 'OMP_FOR' 'G'.
  10286. -- GIMPLE function: void gimple_omp_for_set_initial (gimple g, tree
  10287. initial)
  10288. Set 'INITIAL' to be the initial value for 'OMP_FOR' 'G'.
  10289. -- GIMPLE function: tree gimple_omp_for_final (gimple g)
  10290. Return the final value for 'OMP_FOR' 'G'.
  10291. -- GIMPLE function: tree * gimple_omp_for_final_ptr (gimple g)
  10292. turn a pointer to the final value for 'OMP_FOR' 'G'.
  10293. -- GIMPLE function: void gimple_omp_for_set_final (gimple g, tree
  10294. final)
  10295. Set 'FINAL' to be the final value for 'OMP_FOR' 'G'.
  10296. -- GIMPLE function: tree gimple_omp_for_incr (gimple g)
  10297. Return the increment value for 'OMP_FOR' 'G'.
  10298. -- GIMPLE function: tree * gimple_omp_for_incr_ptr (gimple g)
  10299. Return a pointer to the increment value for 'OMP_FOR' 'G'.
  10300. -- GIMPLE function: void gimple_omp_for_set_incr (gimple g, tree incr)
  10301. Set 'INCR' to be the increment value for 'OMP_FOR' 'G'.
  10302. -- GIMPLE function: gimple_seq gimple_omp_for_pre_body (gimple g)
  10303. Return the sequence of statements to execute before the 'OMP_FOR'
  10304. statement 'G' starts.
  10305. -- GIMPLE function: void gimple_omp_for_set_pre_body (gimple g,
  10306. gimple_seq pre_body)
  10307. Set 'PRE_BODY' to be the sequence of statements to execute before
  10308. the 'OMP_FOR' statement 'G' starts.
  10309. -- GIMPLE function: void gimple_omp_for_set_cond (gimple g, enum
  10310. tree_code cond)
  10311. Set 'COND' to be the condition code for 'OMP_FOR' 'G'.
  10312. -- GIMPLE function: enum tree_code gimple_omp_for_cond (gimple g)
  10313. Return the condition code associated with 'OMP_FOR' 'G'.
  10314. 
  10315. File: gccint.info, Node: 'GIMPLE_OMP_MASTER', Next: 'GIMPLE_OMP_ORDERED', Prev: 'GIMPLE_OMP_FOR', Up: Tuple specific accessors
  10316. 11.8.17 'GIMPLE_OMP_MASTER'
  10317. ---------------------------
  10318. -- GIMPLE function: gimple gimple_build_omp_master (gimple_seq body)
  10319. Build a 'GIMPLE_OMP_MASTER' statement. 'BODY' is the sequence of
  10320. statements to be executed by just the master.
  10321. 
  10322. File: gccint.info, Node: 'GIMPLE_OMP_ORDERED', Next: 'GIMPLE_OMP_PARALLEL', Prev: 'GIMPLE_OMP_MASTER', Up: Tuple specific accessors
  10323. 11.8.18 'GIMPLE_OMP_ORDERED'
  10324. ----------------------------
  10325. -- GIMPLE function: gimple gimple_build_omp_ordered (gimple_seq body)
  10326. Build a 'GIMPLE_OMP_ORDERED' statement.
  10327. 'BODY' is the sequence of statements inside a loop that will executed
  10328. in sequence.
  10329. 
  10330. File: gccint.info, Node: 'GIMPLE_OMP_PARALLEL', Next: 'GIMPLE_OMP_RETURN', Prev: 'GIMPLE_OMP_ORDERED', Up: Tuple specific accessors
  10331. 11.8.19 'GIMPLE_OMP_PARALLEL'
  10332. -----------------------------
  10333. -- GIMPLE function: gomp_parallel *gimple_build_omp_parallel
  10334. (gimple_seq body, tree clauses, tree child_fn, tree data_arg)
  10335. Build a 'GIMPLE_OMP_PARALLEL' statement.
  10336. 'BODY' is sequence of statements which are executed in parallel.
  10337. 'CLAUSES', are the 'OMP' parallel construct's clauses. 'CHILD_FN' is
  10338. the function created for the parallel threads to execute. 'DATA_ARG'
  10339. are the shared data argument(s).
  10340. -- GIMPLE function: bool gimple_omp_parallel_combined_p (gimple g)
  10341. Return true if 'OMP' parallel statement 'G' has the
  10342. 'GF_OMP_PARALLEL_COMBINED' flag set.
  10343. -- GIMPLE function: void gimple_omp_parallel_set_combined_p (gimple g)
  10344. Set the 'GF_OMP_PARALLEL_COMBINED' field in 'OMP' parallel
  10345. statement 'G'.
  10346. -- GIMPLE function: gimple_seq gimple_omp_body (gimple g)
  10347. Return the body for the 'OMP' statement 'G'.
  10348. -- GIMPLE function: void gimple_omp_set_body (gimple g, gimple_seq
  10349. body)
  10350. Set 'BODY' to be the body for the 'OMP' statement 'G'.
  10351. -- GIMPLE function: tree gimple_omp_parallel_clauses (gimple g)
  10352. Return the clauses associated with 'OMP_PARALLEL' 'G'.
  10353. -- GIMPLE function: tree * gimple_omp_parallel_clauses_ptr (
  10354. gomp_parallel *g)
  10355. Return a pointer to the clauses associated with 'OMP_PARALLEL' 'G'.
  10356. -- GIMPLE function: void gimple_omp_parallel_set_clauses (
  10357. gomp_parallel *g, tree clauses)
  10358. Set 'CLAUSES' to be the list of clauses associated with
  10359. 'OMP_PARALLEL' 'G'.
  10360. -- GIMPLE function: tree gimple_omp_parallel_child_fn ( const
  10361. gomp_parallel *g)
  10362. Return the child function used to hold the body of 'OMP_PARALLEL'
  10363. 'G'.
  10364. -- GIMPLE function: tree * gimple_omp_parallel_child_fn_ptr (
  10365. gomp_parallel *g)
  10366. Return a pointer to the child function used to hold the body of
  10367. 'OMP_PARALLEL' 'G'.
  10368. -- GIMPLE function: void gimple_omp_parallel_set_child_fn (
  10369. gomp_parallel *g, tree child_fn)
  10370. Set 'CHILD_FN' to be the child function for 'OMP_PARALLEL' 'G'.
  10371. -- GIMPLE function: tree gimple_omp_parallel_data_arg ( const
  10372. gomp_parallel *g)
  10373. Return the artificial argument used to send variables and values
  10374. from the parent to the children threads in 'OMP_PARALLEL' 'G'.
  10375. -- GIMPLE function: tree * gimple_omp_parallel_data_arg_ptr (
  10376. gomp_parallel *g)
  10377. Return a pointer to the data argument for 'OMP_PARALLEL' 'G'.
  10378. -- GIMPLE function: void gimple_omp_parallel_set_data_arg (
  10379. gomp_parallel *g, tree data_arg)
  10380. Set 'DATA_ARG' to be the data argument for 'OMP_PARALLEL' 'G'.
  10381. 
  10382. File: gccint.info, Node: 'GIMPLE_OMP_RETURN', Next: 'GIMPLE_OMP_SECTION', Prev: 'GIMPLE_OMP_PARALLEL', Up: Tuple specific accessors
  10383. 11.8.20 'GIMPLE_OMP_RETURN'
  10384. ---------------------------
  10385. -- GIMPLE function: gimple gimple_build_omp_return (bool wait_p)
  10386. Build a 'GIMPLE_OMP_RETURN' statement. 'WAIT_P' is true if this is
  10387. a non-waiting return.
  10388. -- GIMPLE function: void gimple_omp_return_set_nowait (gimple s)
  10389. Set the nowait flag on 'GIMPLE_OMP_RETURN' statement 'S'.
  10390. -- GIMPLE function: bool gimple_omp_return_nowait_p (gimple g)
  10391. Return true if 'OMP' return statement 'G' has the
  10392. 'GF_OMP_RETURN_NOWAIT' flag set.
  10393. 
  10394. File: gccint.info, Node: 'GIMPLE_OMP_SECTION', Next: 'GIMPLE_OMP_SECTIONS', Prev: 'GIMPLE_OMP_RETURN', Up: Tuple specific accessors
  10395. 11.8.21 'GIMPLE_OMP_SECTION'
  10396. ----------------------------
  10397. -- GIMPLE function: gimple gimple_build_omp_section (gimple_seq body)
  10398. Build a 'GIMPLE_OMP_SECTION' statement for a sections statement.
  10399. 'BODY' is the sequence of statements in the section.
  10400. -- GIMPLE function: bool gimple_omp_section_last_p (gimple g)
  10401. Return true if 'OMP' section statement 'G' has the
  10402. 'GF_OMP_SECTION_LAST' flag set.
  10403. -- GIMPLE function: void gimple_omp_section_set_last (gimple g)
  10404. Set the 'GF_OMP_SECTION_LAST' flag on 'G'.
  10405. 
  10406. File: gccint.info, Node: 'GIMPLE_OMP_SECTIONS', Next: 'GIMPLE_OMP_SINGLE', Prev: 'GIMPLE_OMP_SECTION', Up: Tuple specific accessors
  10407. 11.8.22 'GIMPLE_OMP_SECTIONS'
  10408. -----------------------------
  10409. -- GIMPLE function: gomp_sections *gimple_build_omp_sections (
  10410. gimple_seq body, tree clauses)
  10411. Build a 'GIMPLE_OMP_SECTIONS' statement. 'BODY' is a sequence of
  10412. section statements. 'CLAUSES' are any of the 'OMP' sections
  10413. construct's clauses: private, firstprivate, lastprivate, reduction,
  10414. and nowait.
  10415. -- GIMPLE function: gimple gimple_build_omp_sections_switch (void)
  10416. Build a 'GIMPLE_OMP_SECTIONS_SWITCH' statement.
  10417. -- GIMPLE function: tree gimple_omp_sections_control (gimple g)
  10418. Return the control variable associated with the
  10419. 'GIMPLE_OMP_SECTIONS' in 'G'.
  10420. -- GIMPLE function: tree * gimple_omp_sections_control_ptr (gimple g)
  10421. Return a pointer to the clauses associated with the
  10422. 'GIMPLE_OMP_SECTIONS' in 'G'.
  10423. -- GIMPLE function: void gimple_omp_sections_set_control (gimple g,
  10424. tree control)
  10425. Set 'CONTROL' to be the set of clauses associated with the
  10426. 'GIMPLE_OMP_SECTIONS' in 'G'.
  10427. -- GIMPLE function: tree gimple_omp_sections_clauses (gimple g)
  10428. Return the clauses associated with 'OMP_SECTIONS' 'G'.
  10429. -- GIMPLE function: tree * gimple_omp_sections_clauses_ptr (gimple g)
  10430. Return a pointer to the clauses associated with 'OMP_SECTIONS' 'G'.
  10431. -- GIMPLE function: void gimple_omp_sections_set_clauses (gimple g,
  10432. tree clauses)
  10433. Set 'CLAUSES' to be the set of clauses associated with
  10434. 'OMP_SECTIONS' 'G'.
  10435. 
  10436. File: gccint.info, Node: 'GIMPLE_OMP_SINGLE', Next: 'GIMPLE_PHI', Prev: 'GIMPLE_OMP_SECTIONS', Up: Tuple specific accessors
  10437. 11.8.23 'GIMPLE_OMP_SINGLE'
  10438. ---------------------------
  10439. -- GIMPLE function: gomp_single *gimple_build_omp_single ( gimple_seq
  10440. body, tree clauses)
  10441. Build a 'GIMPLE_OMP_SINGLE' statement. 'BODY' is the sequence of
  10442. statements that will be executed once. 'CLAUSES' are any of the
  10443. 'OMP' single construct's clauses: private, firstprivate,
  10444. copyprivate, nowait.
  10445. -- GIMPLE function: tree gimple_omp_single_clauses (gimple g)
  10446. Return the clauses associated with 'OMP_SINGLE' 'G'.
  10447. -- GIMPLE function: tree * gimple_omp_single_clauses_ptr (gimple g)
  10448. Return a pointer to the clauses associated with 'OMP_SINGLE' 'G'.
  10449. -- GIMPLE function: void gimple_omp_single_set_clauses ( gomp_single
  10450. *g, tree clauses)
  10451. Set 'CLAUSES' to be the clauses associated with 'OMP_SINGLE' 'G'.
  10452. 
  10453. File: gccint.info, Node: 'GIMPLE_PHI', Next: 'GIMPLE_RESX', Prev: 'GIMPLE_OMP_SINGLE', Up: Tuple specific accessors
  10454. 11.8.24 'GIMPLE_PHI'
  10455. --------------------
  10456. -- GIMPLE function: unsigned gimple_phi_capacity (gimple g)
  10457. Return the maximum number of arguments supported by 'GIMPLE_PHI'
  10458. 'G'.
  10459. -- GIMPLE function: unsigned gimple_phi_num_args (gimple g)
  10460. Return the number of arguments in 'GIMPLE_PHI' 'G'. This must
  10461. always be exactly the number of incoming edges for the basic block
  10462. holding 'G'.
  10463. -- GIMPLE function: tree gimple_phi_result (gimple g)
  10464. Return the 'SSA' name created by 'GIMPLE_PHI' 'G'.
  10465. -- GIMPLE function: tree * gimple_phi_result_ptr (gimple g)
  10466. Return a pointer to the 'SSA' name created by 'GIMPLE_PHI' 'G'.
  10467. -- GIMPLE function: void gimple_phi_set_result (gphi *g, tree result)
  10468. Set 'RESULT' to be the 'SSA' name created by 'GIMPLE_PHI' 'G'.
  10469. -- GIMPLE function: struct phi_arg_d * gimple_phi_arg (gimple g, index)
  10470. Return the 'PHI' argument corresponding to incoming edge 'INDEX'
  10471. for 'GIMPLE_PHI' 'G'.
  10472. -- GIMPLE function: void gimple_phi_set_arg (gphi *g, index, struct
  10473. phi_arg_d * phiarg)
  10474. Set 'PHIARG' to be the argument corresponding to incoming edge
  10475. 'INDEX' for 'GIMPLE_PHI' 'G'.
  10476. 
  10477. File: gccint.info, Node: 'GIMPLE_RESX', Next: 'GIMPLE_RETURN', Prev: 'GIMPLE_PHI', Up: Tuple specific accessors
  10478. 11.8.25 'GIMPLE_RESX'
  10479. ---------------------
  10480. -- GIMPLE function: gresx *gimple_build_resx (int region)
  10481. Build a 'GIMPLE_RESX' statement which is a statement. This
  10482. statement is a placeholder for _Unwind_Resume before we know if a
  10483. function call or a branch is needed. 'REGION' is the exception
  10484. region from which control is flowing.
  10485. -- GIMPLE function: int gimple_resx_region (const gresx *g)
  10486. Return the region number for 'GIMPLE_RESX' 'G'.
  10487. -- GIMPLE function: void gimple_resx_set_region (gresx *g, int region)
  10488. Set 'REGION' to be the region number for 'GIMPLE_RESX' 'G'.
  10489. 
  10490. File: gccint.info, Node: 'GIMPLE_RETURN', Next: 'GIMPLE_SWITCH', Prev: 'GIMPLE_RESX', Up: Tuple specific accessors
  10491. 11.8.26 'GIMPLE_RETURN'
  10492. -----------------------
  10493. -- GIMPLE function: greturn *gimple_build_return (tree retval)
  10494. Build a 'GIMPLE_RETURN' statement whose return value is retval.
  10495. -- GIMPLE function: tree gimple_return_retval (const greturn *g)
  10496. Return the return value for 'GIMPLE_RETURN' 'G'.
  10497. -- GIMPLE function: void gimple_return_set_retval (greturn *g, tree
  10498. retval)
  10499. Set 'RETVAL' to be the return value for 'GIMPLE_RETURN' 'G'.
  10500. 
  10501. File: gccint.info, Node: 'GIMPLE_SWITCH', Next: 'GIMPLE_TRY', Prev: 'GIMPLE_RETURN', Up: Tuple specific accessors
  10502. 11.8.27 'GIMPLE_SWITCH'
  10503. -----------------------
  10504. -- GIMPLE function: gswitch *gimple_build_switch (tree index, tree
  10505. default_label, 'vec'<tree> *args)
  10506. Build a 'GIMPLE_SWITCH' statement. 'INDEX' is the index variable
  10507. to switch on, and 'DEFAULT_LABEL' represents the default label.
  10508. 'ARGS' is a vector of 'CASE_LABEL_EXPR' trees that contain the
  10509. non-default case labels. Each label is a tree of code
  10510. 'CASE_LABEL_EXPR'.
  10511. -- GIMPLE function: unsigned gimple_switch_num_labels ( const gswitch
  10512. *g)
  10513. Return the number of labels associated with the switch statement
  10514. 'G'.
  10515. -- GIMPLE function: void gimple_switch_set_num_labels (gswitch *g,
  10516. unsigned nlabels)
  10517. Set 'NLABELS' to be the number of labels for the switch statement
  10518. 'G'.
  10519. -- GIMPLE function: tree gimple_switch_index (const gswitch *g)
  10520. Return the index variable used by the switch statement 'G'.
  10521. -- GIMPLE function: void gimple_switch_set_index (gswitch *g, tree
  10522. index)
  10523. Set 'INDEX' to be the index variable for switch statement 'G'.
  10524. -- GIMPLE function: tree gimple_switch_label (const gswitch *g,
  10525. unsigned index)
  10526. Return the label numbered 'INDEX'. The default label is 0,
  10527. followed by any labels in a switch statement.
  10528. -- GIMPLE function: void gimple_switch_set_label (gswitch *g, unsigned
  10529. index, tree label)
  10530. Set the label number 'INDEX' to 'LABEL'. 0 is always the default
  10531. label.
  10532. -- GIMPLE function: tree gimple_switch_default_label ( const gswitch
  10533. *g)
  10534. Return the default label for a switch statement.
  10535. -- GIMPLE function: void gimple_switch_set_default_label (gswitch *g,
  10536. tree label)
  10537. Set the default label for a switch statement.
  10538. 
  10539. File: gccint.info, Node: 'GIMPLE_TRY', Next: 'GIMPLE_WITH_CLEANUP_EXPR', Prev: 'GIMPLE_SWITCH', Up: Tuple specific accessors
  10540. 11.8.28 'GIMPLE_TRY'
  10541. --------------------
  10542. -- GIMPLE function: gtry *gimple_build_try (gimple_seq eval, gimple_seq
  10543. cleanup, unsigned int kind)
  10544. Build a 'GIMPLE_TRY' statement. 'EVAL' is a sequence with the
  10545. expression to evaluate. 'CLEANUP' is a sequence of statements to
  10546. run at clean-up time. 'KIND' is the enumeration value
  10547. 'GIMPLE_TRY_CATCH' if this statement denotes a try/catch construct
  10548. or 'GIMPLE_TRY_FINALLY' if this statement denotes a try/finally
  10549. construct.
  10550. -- GIMPLE function: enum gimple_try_flags gimple_try_kind (gimple g)
  10551. Return the kind of try block represented by 'GIMPLE_TRY' 'G'. This
  10552. is either 'GIMPLE_TRY_CATCH' or 'GIMPLE_TRY_FINALLY'.
  10553. -- GIMPLE function: bool gimple_try_catch_is_cleanup (gimple g)
  10554. Return the 'GIMPLE_TRY_CATCH_IS_CLEANUP' flag.
  10555. -- GIMPLE function: gimple_seq gimple_try_eval (gimple g)
  10556. Return the sequence of statements used as the body for 'GIMPLE_TRY'
  10557. 'G'.
  10558. -- GIMPLE function: gimple_seq gimple_try_cleanup (gimple g)
  10559. Return the sequence of statements used as the cleanup body for
  10560. 'GIMPLE_TRY' 'G'.
  10561. -- GIMPLE function: void gimple_try_set_catch_is_cleanup (gimple g,
  10562. bool catch_is_cleanup)
  10563. Set the 'GIMPLE_TRY_CATCH_IS_CLEANUP' flag.
  10564. -- GIMPLE function: void gimple_try_set_eval (gtry *g, gimple_seq eval)
  10565. Set 'EVAL' to be the sequence of statements to use as the body for
  10566. 'GIMPLE_TRY' 'G'.
  10567. -- GIMPLE function: void gimple_try_set_cleanup (gtry *g, gimple_seq
  10568. cleanup)
  10569. Set 'CLEANUP' to be the sequence of statements to use as the
  10570. cleanup body for 'GIMPLE_TRY' 'G'.
  10571. 
  10572. File: gccint.info, Node: 'GIMPLE_WITH_CLEANUP_EXPR', Prev: 'GIMPLE_TRY', Up: Tuple specific accessors
  10573. 11.8.29 'GIMPLE_WITH_CLEANUP_EXPR'
  10574. ----------------------------------
  10575. -- GIMPLE function: gimple gimple_build_wce (gimple_seq cleanup)
  10576. Build a 'GIMPLE_WITH_CLEANUP_EXPR' statement. 'CLEANUP' is the
  10577. clean-up expression.
  10578. -- GIMPLE function: gimple_seq gimple_wce_cleanup (gimple g)
  10579. Return the cleanup sequence for cleanup statement 'G'.
  10580. -- GIMPLE function: void gimple_wce_set_cleanup (gimple g, gimple_seq
  10581. cleanup)
  10582. Set 'CLEANUP' to be the cleanup sequence for 'G'.
  10583. -- GIMPLE function: bool gimple_wce_cleanup_eh_only (gimple g)
  10584. Return the 'CLEANUP_EH_ONLY' flag for a 'WCE' tuple.
  10585. -- GIMPLE function: void gimple_wce_set_cleanup_eh_only (gimple g, bool
  10586. eh_only_p)
  10587. Set the 'CLEANUP_EH_ONLY' flag for a 'WCE' tuple.
  10588. 
  10589. File: gccint.info, Node: GIMPLE sequences, Next: Sequence iterators, Prev: Tuple specific accessors, Up: GIMPLE
  10590. 11.9 GIMPLE sequences
  10591. =====================
  10592. GIMPLE sequences are the tuple equivalent of 'STATEMENT_LIST''s used in
  10593. 'GENERIC'. They are used to chain statements together, and when used in
  10594. conjunction with sequence iterators, provide a framework for iterating
  10595. through statements.
  10596. GIMPLE sequences are of type struct 'gimple_sequence', but are more
  10597. commonly passed by reference to functions dealing with sequences. The
  10598. type for a sequence pointer is 'gimple_seq' which is the same as struct
  10599. 'gimple_sequence' *. When declaring a local sequence, you can define a
  10600. local variable of type struct 'gimple_sequence'. When declaring a
  10601. sequence allocated on the garbage collected heap, use the function
  10602. 'gimple_seq_alloc' documented below.
  10603. There are convenience functions for iterating through sequences in the
  10604. section entitled Sequence Iterators.
  10605. Below is a list of functions to manipulate and query sequences.
  10606. -- GIMPLE function: void gimple_seq_add_stmt (gimple_seq *seq, gimple
  10607. g)
  10608. Link a gimple statement to the end of the sequence *'SEQ' if 'G' is
  10609. not 'NULL'. If *'SEQ' is 'NULL', allocate a sequence before
  10610. linking.
  10611. -- GIMPLE function: void gimple_seq_add_seq (gimple_seq *dest,
  10612. gimple_seq src)
  10613. Append sequence 'SRC' to the end of sequence *'DEST' if 'SRC' is
  10614. not 'NULL'. If *'DEST' is 'NULL', allocate a new sequence before
  10615. appending.
  10616. -- GIMPLE function: gimple_seq gimple_seq_deep_copy (gimple_seq src)
  10617. Perform a deep copy of sequence 'SRC' and return the result.
  10618. -- GIMPLE function: gimple_seq gimple_seq_reverse (gimple_seq seq)
  10619. Reverse the order of the statements in the sequence 'SEQ'. Return
  10620. 'SEQ'.
  10621. -- GIMPLE function: gimple gimple_seq_first (gimple_seq s)
  10622. Return the first statement in sequence 'S'.
  10623. -- GIMPLE function: gimple gimple_seq_last (gimple_seq s)
  10624. Return the last statement in sequence 'S'.
  10625. -- GIMPLE function: void gimple_seq_set_last (gimple_seq s, gimple
  10626. last)
  10627. Set the last statement in sequence 'S' to the statement in 'LAST'.
  10628. -- GIMPLE function: void gimple_seq_set_first (gimple_seq s, gimple
  10629. first)
  10630. Set the first statement in sequence 'S' to the statement in
  10631. 'FIRST'.
  10632. -- GIMPLE function: void gimple_seq_init (gimple_seq s)
  10633. Initialize sequence 'S' to an empty sequence.
  10634. -- GIMPLE function: gimple_seq gimple_seq_alloc (void)
  10635. Allocate a new sequence in the garbage collected store and return
  10636. it.
  10637. -- GIMPLE function: void gimple_seq_copy (gimple_seq dest, gimple_seq
  10638. src)
  10639. Copy the sequence 'SRC' into the sequence 'DEST'.
  10640. -- GIMPLE function: bool gimple_seq_empty_p (gimple_seq s)
  10641. Return true if the sequence 'S' is empty.
  10642. -- GIMPLE function: gimple_seq bb_seq (basic_block bb)
  10643. Returns the sequence of statements in 'BB'.
  10644. -- GIMPLE function: void set_bb_seq (basic_block bb, gimple_seq seq)
  10645. Sets the sequence of statements in 'BB' to 'SEQ'.
  10646. -- GIMPLE function: bool gimple_seq_singleton_p (gimple_seq seq)
  10647. Determine whether 'SEQ' contains exactly one statement.
  10648. 
  10649. File: gccint.info, Node: Sequence iterators, Next: Adding a new GIMPLE statement code, Prev: GIMPLE sequences, Up: GIMPLE
  10650. 11.10 Sequence iterators
  10651. ========================
  10652. Sequence iterators are convenience constructs for iterating through
  10653. statements in a sequence. Given a sequence 'SEQ', here is a typical use
  10654. of gimple sequence iterators:
  10655. gimple_stmt_iterator gsi;
  10656. for (gsi = gsi_start (seq); !gsi_end_p (gsi); gsi_next (&gsi))
  10657. {
  10658. gimple g = gsi_stmt (gsi);
  10659. /* Do something with gimple statement G. */
  10660. }
  10661. Backward iterations are possible:
  10662. for (gsi = gsi_last (seq); !gsi_end_p (gsi); gsi_prev (&gsi))
  10663. Forward and backward iterations on basic blocks are possible with
  10664. 'gsi_start_bb' and 'gsi_last_bb'.
  10665. In the documentation below we sometimes refer to enum
  10666. 'gsi_iterator_update'. The valid options for this enumeration are:
  10667. * 'GSI_NEW_STMT' Only valid when a single statement is added. Move
  10668. the iterator to it.
  10669. * 'GSI_SAME_STMT' Leave the iterator at the same statement.
  10670. * 'GSI_CONTINUE_LINKING' Move iterator to whatever position is
  10671. suitable for linking other statements in the same direction.
  10672. Below is a list of the functions used to manipulate and use statement
  10673. iterators.
  10674. -- GIMPLE function: gimple_stmt_iterator gsi_start (gimple_seq seq)
  10675. Return a new iterator pointing to the sequence 'SEQ''s first
  10676. statement. If 'SEQ' is empty, the iterator's basic block is
  10677. 'NULL'. Use 'gsi_start_bb' instead when the iterator needs to
  10678. always have the correct basic block set.
  10679. -- GIMPLE function: gimple_stmt_iterator gsi_start_bb (basic_block bb)
  10680. Return a new iterator pointing to the first statement in basic
  10681. block 'BB'.
  10682. -- GIMPLE function: gimple_stmt_iterator gsi_last (gimple_seq seq)
  10683. Return a new iterator initially pointing to the last statement of
  10684. sequence 'SEQ'. If 'SEQ' is empty, the iterator's basic block is
  10685. 'NULL'. Use 'gsi_last_bb' instead when the iterator needs to
  10686. always have the correct basic block set.
  10687. -- GIMPLE function: gimple_stmt_iterator gsi_last_bb (basic_block bb)
  10688. Return a new iterator pointing to the last statement in basic block
  10689. 'BB'.
  10690. -- GIMPLE function: bool gsi_end_p (gimple_stmt_iterator i)
  10691. Return 'TRUE' if at the end of 'I'.
  10692. -- GIMPLE function: bool gsi_one_before_end_p (gimple_stmt_iterator i)
  10693. Return 'TRUE' if we're one statement before the end of 'I'.
  10694. -- GIMPLE function: void gsi_next (gimple_stmt_iterator *i)
  10695. Advance the iterator to the next gimple statement.
  10696. -- GIMPLE function: void gsi_prev (gimple_stmt_iterator *i)
  10697. Advance the iterator to the previous gimple statement.
  10698. -- GIMPLE function: gimple gsi_stmt (gimple_stmt_iterator i)
  10699. Return the current stmt.
  10700. -- GIMPLE function: gimple_stmt_iterator gsi_after_labels (basic_block
  10701. bb)
  10702. Return a block statement iterator that points to the first
  10703. non-label statement in block 'BB'.
  10704. -- GIMPLE function: gimple * gsi_stmt_ptr (gimple_stmt_iterator *i)
  10705. Return a pointer to the current stmt.
  10706. -- GIMPLE function: basic_block gsi_bb (gimple_stmt_iterator i)
  10707. Return the basic block associated with this iterator.
  10708. -- GIMPLE function: gimple_seq gsi_seq (gimple_stmt_iterator i)
  10709. Return the sequence associated with this iterator.
  10710. -- GIMPLE function: void gsi_remove (gimple_stmt_iterator *i, bool
  10711. remove_eh_info)
  10712. Remove the current stmt from the sequence. The iterator is updated
  10713. to point to the next statement. When 'REMOVE_EH_INFO' is true we
  10714. remove the statement pointed to by iterator 'I' from the 'EH'
  10715. tables. Otherwise we do not modify the 'EH' tables. Generally,
  10716. 'REMOVE_EH_INFO' should be true when the statement is going to be
  10717. removed from the 'IL' and not reinserted elsewhere.
  10718. -- GIMPLE function: void gsi_link_seq_before (gimple_stmt_iterator *i,
  10719. gimple_seq seq, enum gsi_iterator_update mode)
  10720. Links the sequence of statements 'SEQ' before the statement pointed
  10721. by iterator 'I'. 'MODE' indicates what to do with the iterator
  10722. after insertion (see 'enum gsi_iterator_update' above).
  10723. -- GIMPLE function: void gsi_link_before (gimple_stmt_iterator *i,
  10724. gimple g, enum gsi_iterator_update mode)
  10725. Links statement 'G' before the statement pointed-to by iterator
  10726. 'I'. Updates iterator 'I' according to 'MODE'.
  10727. -- GIMPLE function: void gsi_link_seq_after (gimple_stmt_iterator *i,
  10728. gimple_seq seq, enum gsi_iterator_update mode)
  10729. Links sequence 'SEQ' after the statement pointed-to by iterator
  10730. 'I'. 'MODE' is as in 'gsi_insert_after'.
  10731. -- GIMPLE function: void gsi_link_after (gimple_stmt_iterator *i,
  10732. gimple g, enum gsi_iterator_update mode)
  10733. Links statement 'G' after the statement pointed-to by iterator 'I'.
  10734. 'MODE' is as in 'gsi_insert_after'.
  10735. -- GIMPLE function: gimple_seq gsi_split_seq_after
  10736. (gimple_stmt_iterator i)
  10737. Move all statements in the sequence after 'I' to a new sequence.
  10738. Return this new sequence.
  10739. -- GIMPLE function: gimple_seq gsi_split_seq_before
  10740. (gimple_stmt_iterator *i)
  10741. Move all statements in the sequence before 'I' to a new sequence.
  10742. Return this new sequence.
  10743. -- GIMPLE function: void gsi_replace (gimple_stmt_iterator *i, gimple
  10744. stmt, bool update_eh_info)
  10745. Replace the statement pointed-to by 'I' to 'STMT'. If
  10746. 'UPDATE_EH_INFO' is true, the exception handling information of the
  10747. original statement is moved to the new statement.
  10748. -- GIMPLE function: void gsi_insert_before (gimple_stmt_iterator *i,
  10749. gimple stmt, enum gsi_iterator_update mode)
  10750. Insert statement 'STMT' before the statement pointed-to by iterator
  10751. 'I', update 'STMT''s basic block and scan it for new operands.
  10752. 'MODE' specifies how to update iterator 'I' after insertion (see
  10753. enum 'gsi_iterator_update').
  10754. -- GIMPLE function: void gsi_insert_seq_before (gimple_stmt_iterator
  10755. *i, gimple_seq seq, enum gsi_iterator_update mode)
  10756. Like 'gsi_insert_before', but for all the statements in 'SEQ'.
  10757. -- GIMPLE function: void gsi_insert_after (gimple_stmt_iterator *i,
  10758. gimple stmt, enum gsi_iterator_update mode)
  10759. Insert statement 'STMT' after the statement pointed-to by iterator
  10760. 'I', update 'STMT''s basic block and scan it for new operands.
  10761. 'MODE' specifies how to update iterator 'I' after insertion (see
  10762. enum 'gsi_iterator_update').
  10763. -- GIMPLE function: void gsi_insert_seq_after (gimple_stmt_iterator *i,
  10764. gimple_seq seq, enum gsi_iterator_update mode)
  10765. Like 'gsi_insert_after', but for all the statements in 'SEQ'.
  10766. -- GIMPLE function: gimple_stmt_iterator gsi_for_stmt (gimple stmt)
  10767. Finds iterator for 'STMT'.
  10768. -- GIMPLE function: void gsi_move_after (gimple_stmt_iterator *from,
  10769. gimple_stmt_iterator *to)
  10770. Move the statement at 'FROM' so it comes right after the statement
  10771. at 'TO'.
  10772. -- GIMPLE function: void gsi_move_before (gimple_stmt_iterator *from,
  10773. gimple_stmt_iterator *to)
  10774. Move the statement at 'FROM' so it comes right before the statement
  10775. at 'TO'.
  10776. -- GIMPLE function: void gsi_move_to_bb_end (gimple_stmt_iterator
  10777. *from, basic_block bb)
  10778. Move the statement at 'FROM' to the end of basic block 'BB'.
  10779. -- GIMPLE function: void gsi_insert_on_edge (edge e, gimple stmt)
  10780. Add 'STMT' to the pending list of edge 'E'. No actual insertion is
  10781. made until a call to 'gsi_commit_edge_inserts'() is made.
  10782. -- GIMPLE function: void gsi_insert_seq_on_edge (edge e, gimple_seq
  10783. seq)
  10784. Add the sequence of statements in 'SEQ' to the pending list of edge
  10785. 'E'. No actual insertion is made until a call to
  10786. 'gsi_commit_edge_inserts'() is made.
  10787. -- GIMPLE function: basic_block gsi_insert_on_edge_immediate (edge e,
  10788. gimple stmt)
  10789. Similar to 'gsi_insert_on_edge'+'gsi_commit_edge_inserts'. If a
  10790. new block has to be created, it is returned.
  10791. -- GIMPLE function: void gsi_commit_one_edge_insert (edge e,
  10792. basic_block *new_bb)
  10793. Commit insertions pending at edge 'E'. If a new block is created,
  10794. set 'NEW_BB' to this block, otherwise set it to 'NULL'.
  10795. -- GIMPLE function: void gsi_commit_edge_inserts (void)
  10796. This routine will commit all pending edge insertions, creating any
  10797. new basic blocks which are necessary.
  10798. 
  10799. File: gccint.info, Node: Adding a new GIMPLE statement code, Next: Statement and operand traversals, Prev: Sequence iterators, Up: GIMPLE
  10800. 11.11 Adding a new GIMPLE statement code
  10801. ========================================
  10802. The first step in adding a new GIMPLE statement code, is modifying the
  10803. file 'gimple.def', which contains all the GIMPLE codes. Then you must
  10804. add a corresponding gimple subclass located in 'gimple.h'. This in
  10805. turn, will require you to add a corresponding 'GTY' tag in
  10806. 'gsstruct.def', and code to handle this tag in 'gss_for_code' which is
  10807. located in 'gimple.c'.
  10808. In order for the garbage collector to know the size of the structure
  10809. you created in 'gimple.h', you need to add a case to handle your new
  10810. GIMPLE statement in 'gimple_size' which is located in 'gimple.c'.
  10811. You will probably want to create a function to build the new gimple
  10812. statement in 'gimple.c'. The function should be called
  10813. 'gimple_build_NEW-TUPLE-NAME', and should return the new tuple as a
  10814. pointer to the appropriate gimple subclass.
  10815. If your new statement requires accessors for any members or operands it
  10816. may have, put simple inline accessors in 'gimple.h' and any non-trivial
  10817. accessors in 'gimple.c' with a corresponding prototype in 'gimple.h'.
  10818. You should add the new statement subclass to the class hierarchy
  10819. diagram in 'gimple.texi'.
  10820. 
  10821. File: gccint.info, Node: Statement and operand traversals, Prev: Adding a new GIMPLE statement code, Up: GIMPLE
  10822. 11.12 Statement and operand traversals
  10823. ======================================
  10824. There are two functions available for walking statements and sequences:
  10825. 'walk_gimple_stmt' and 'walk_gimple_seq', accordingly, and a third
  10826. function for walking the operands in a statement: 'walk_gimple_op'.
  10827. -- GIMPLE function: tree walk_gimple_stmt (gimple_stmt_iterator *gsi,
  10828. walk_stmt_fn callback_stmt, walk_tree_fn callback_op, struct
  10829. walk_stmt_info *wi)
  10830. This function is used to walk the current statement in 'GSI',
  10831. optionally using traversal state stored in 'WI'. If 'WI' is
  10832. 'NULL', no state is kept during the traversal.
  10833. The callback 'CALLBACK_STMT' is called. If 'CALLBACK_STMT' returns
  10834. true, it means that the callback function has handled all the
  10835. operands of the statement and it is not necessary to walk its
  10836. operands.
  10837. If 'CALLBACK_STMT' is 'NULL' or it returns false, 'CALLBACK_OP' is
  10838. called on each operand of the statement via 'walk_gimple_op'. If
  10839. 'walk_gimple_op' returns non-'NULL' for any operand, the remaining
  10840. operands are not scanned.
  10841. The return value is that returned by the last call to
  10842. 'walk_gimple_op', or 'NULL_TREE' if no 'CALLBACK_OP' is specified.
  10843. -- GIMPLE function: tree walk_gimple_op (gimple stmt, walk_tree_fn
  10844. callback_op, struct walk_stmt_info *wi)
  10845. Use this function to walk the operands of statement 'STMT'. Every
  10846. operand is walked via 'walk_tree' with optional state information
  10847. in 'WI'.
  10848. 'CALLBACK_OP' is called on each operand of 'STMT' via 'walk_tree'.
  10849. Additional parameters to 'walk_tree' must be stored in 'WI'. For
  10850. each operand 'OP', 'walk_tree' is called as:
  10851. walk_tree (&OP, CALLBACK_OP, WI, PSET)
  10852. If 'CALLBACK_OP' returns non-'NULL' for an operand, the remaining
  10853. operands are not scanned. The return value is that returned by the
  10854. last call to 'walk_tree', or 'NULL_TREE' if no 'CALLBACK_OP' is
  10855. specified.
  10856. -- GIMPLE function: tree walk_gimple_seq (gimple_seq seq, walk_stmt_fn
  10857. callback_stmt, walk_tree_fn callback_op, struct walk_stmt_info
  10858. *wi)
  10859. This function walks all the statements in the sequence 'SEQ'
  10860. calling 'walk_gimple_stmt' on each one. 'WI' is as in
  10861. 'walk_gimple_stmt'. If 'walk_gimple_stmt' returns non-'NULL', the
  10862. walk is stopped and the value returned. Otherwise, all the
  10863. statements are walked and 'NULL_TREE' returned.
  10864. 
  10865. File: gccint.info, Node: Tree SSA, Next: RTL, Prev: GIMPLE, Up: Top
  10866. 12 Analysis and Optimization of GIMPLE tuples
  10867. *********************************************
  10868. GCC uses three main intermediate languages to represent the program
  10869. during compilation: GENERIC, GIMPLE and RTL. GENERIC is a
  10870. language-independent representation generated by each front end. It is
  10871. used to serve as an interface between the parser and optimizer. GENERIC
  10872. is a common representation that is able to represent programs written in
  10873. all the languages supported by GCC.
  10874. GIMPLE and RTL are used to optimize the program. GIMPLE is used for
  10875. target and language independent optimizations (e.g., inlining, constant
  10876. propagation, tail call elimination, redundancy elimination, etc). Much
  10877. like GENERIC, GIMPLE is a language independent, tree based
  10878. representation. However, it differs from GENERIC in that the GIMPLE
  10879. grammar is more restrictive: expressions contain no more than 3 operands
  10880. (except function calls), it has no control flow structures and
  10881. expressions with side-effects are only allowed on the right hand side of
  10882. assignments. See the chapter describing GENERIC and GIMPLE for more
  10883. details.
  10884. This chapter describes the data structures and functions used in the
  10885. GIMPLE optimizers (also known as "tree optimizers" or "middle end"). In
  10886. particular, it focuses on all the macros, data structures, functions and
  10887. programming constructs needed to implement optimization passes for
  10888. GIMPLE.
  10889. * Menu:
  10890. * Annotations:: Attributes for variables.
  10891. * SSA Operands:: SSA names referenced by GIMPLE statements.
  10892. * SSA:: Static Single Assignment representation.
  10893. * Alias analysis:: Representing aliased loads and stores.
  10894. * Memory model:: Memory model used by the middle-end.
  10895. 
  10896. File: gccint.info, Node: Annotations, Next: SSA Operands, Up: Tree SSA
  10897. 12.1 Annotations
  10898. ================
  10899. The optimizers need to associate attributes with variables during the
  10900. optimization process. For instance, we need to know whether a variable
  10901. has aliases. All these attributes are stored in data structures called
  10902. annotations which are then linked to the field 'ann' in 'struct
  10903. tree_common'.
  10904. 
  10905. File: gccint.info, Node: SSA Operands, Next: SSA, Prev: Annotations, Up: Tree SSA
  10906. 12.2 SSA Operands
  10907. =================
  10908. Almost every GIMPLE statement will contain a reference to a variable or
  10909. memory location. Since statements come in different shapes and sizes,
  10910. their operands are going to be located at various spots inside the
  10911. statement's tree. To facilitate access to the statement's operands,
  10912. they are organized into lists associated inside each statement's
  10913. annotation. Each element in an operand list is a pointer to a
  10914. 'VAR_DECL', 'PARM_DECL' or 'SSA_NAME' tree node. This provides a very
  10915. convenient way of examining and replacing operands.
  10916. Data flow analysis and optimization is done on all tree nodes
  10917. representing variables. Any node for which 'SSA_VAR_P' returns nonzero
  10918. is considered when scanning statement operands. However, not all
  10919. 'SSA_VAR_P' variables are processed in the same way. For the purposes
  10920. of optimization, we need to distinguish between references to local
  10921. scalar variables and references to globals, statics, structures, arrays,
  10922. aliased variables, etc. The reason is simple, the compiler can gather
  10923. complete data flow information for a local scalar. On the other hand, a
  10924. global variable may be modified by a function call, it may not be
  10925. possible to keep track of all the elements of an array or the fields of
  10926. a structure, etc.
  10927. The operand scanner gathers two kinds of operands: "real" and
  10928. "virtual". An operand for which 'is_gimple_reg' returns true is
  10929. considered real, otherwise it is a virtual operand. We also distinguish
  10930. between uses and definitions. An operand is used if its value is loaded
  10931. by the statement (e.g., the operand at the RHS of an assignment). If
  10932. the statement assigns a new value to the operand, the operand is
  10933. considered a definition (e.g., the operand at the LHS of an assignment).
  10934. Virtual and real operands also have very different data flow
  10935. properties. Real operands are unambiguous references to the full object
  10936. that they represent. For instance, given
  10937. {
  10938. int a, b;
  10939. a = b
  10940. }
  10941. Since 'a' and 'b' are non-aliased locals, the statement 'a = b' will
  10942. have one real definition and one real use because variable 'a' is
  10943. completely modified with the contents of variable 'b'. Real definition
  10944. are also known as "killing definitions". Similarly, the use of 'b'
  10945. reads all its bits.
  10946. In contrast, virtual operands are used with variables that can have a
  10947. partial or ambiguous reference. This includes structures, arrays,
  10948. globals, and aliased variables. In these cases, we have two types of
  10949. definitions. For globals, structures, and arrays, we can determine from
  10950. a statement whether a variable of these types has a killing definition.
  10951. If the variable does, then the statement is marked as having a "must
  10952. definition" of that variable. However, if a statement is only defining
  10953. a part of the variable (i.e. a field in a structure), or if we know that
  10954. a statement might define the variable but we cannot say for sure, then
  10955. we mark that statement as having a "may definition". For instance,
  10956. given
  10957. {
  10958. int a, b, *p;
  10959. if (...)
  10960. p = &a;
  10961. else
  10962. p = &b;
  10963. *p = 5;
  10964. return *p;
  10965. }
  10966. The assignment '*p = 5' may be a definition of 'a' or 'b'. If we
  10967. cannot determine statically where 'p' is pointing to at the time of the
  10968. store operation, we create virtual definitions to mark that statement as
  10969. a potential definition site for 'a' and 'b'. Memory loads are similarly
  10970. marked with virtual use operands. Virtual operands are shown in tree
  10971. dumps right before the statement that contains them. To request a tree
  10972. dump with virtual operands, use the '-vops' option to '-fdump-tree':
  10973. {
  10974. int a, b, *p;
  10975. if (...)
  10976. p = &a;
  10977. else
  10978. p = &b;
  10979. # a = VDEF <a>
  10980. # b = VDEF <b>
  10981. *p = 5;
  10982. # VUSE <a>
  10983. # VUSE <b>
  10984. return *p;
  10985. }
  10986. Notice that 'VDEF' operands have two copies of the referenced variable.
  10987. This indicates that this is not a killing definition of that variable.
  10988. In this case we refer to it as a "may definition" or "aliased store".
  10989. The presence of the second copy of the variable in the 'VDEF' operand
  10990. will become important when the function is converted into SSA form.
  10991. This will be used to link all the non-killing definitions to prevent
  10992. optimizations from making incorrect assumptions about them.
  10993. Operands are updated as soon as the statement is finished via a call to
  10994. 'update_stmt'. If statement elements are changed via 'SET_USE' or
  10995. 'SET_DEF', then no further action is required (i.e., those macros take
  10996. care of updating the statement). If changes are made by manipulating
  10997. the statement's tree directly, then a call must be made to 'update_stmt'
  10998. when complete. Calling one of the 'bsi_insert' routines or
  10999. 'bsi_replace' performs an implicit call to 'update_stmt'.
  11000. 12.2.1 Operand Iterators And Access Routines
  11001. --------------------------------------------
  11002. Operands are collected by 'tree-ssa-operands.c'. They are stored inside
  11003. each statement's annotation and can be accessed through either the
  11004. operand iterators or an access routine.
  11005. The following access routines are available for examining operands:
  11006. 1. 'SINGLE_SSA_{USE,DEF,TREE}_OPERAND': These accessors will return
  11007. NULL unless there is exactly one operand matching the specified
  11008. flags. If there is exactly one operand, the operand is returned as
  11009. either a 'tree', 'def_operand_p', or 'use_operand_p'.
  11010. tree t = SINGLE_SSA_TREE_OPERAND (stmt, flags);
  11011. use_operand_p u = SINGLE_SSA_USE_OPERAND (stmt, SSA_ALL_VIRTUAL_USES);
  11012. def_operand_p d = SINGLE_SSA_DEF_OPERAND (stmt, SSA_OP_ALL_DEFS);
  11013. 2. 'ZERO_SSA_OPERANDS': This macro returns true if there are no
  11014. operands matching the specified flags.
  11015. if (ZERO_SSA_OPERANDS (stmt, SSA_OP_ALL_VIRTUALS))
  11016. return;
  11017. 3. 'NUM_SSA_OPERANDS': This macro Returns the number of operands
  11018. matching 'flags'. This actually executes a loop to perform the
  11019. count, so only use this if it is really needed.
  11020. int count = NUM_SSA_OPERANDS (stmt, flags)
  11021. If you wish to iterate over some or all operands, use the
  11022. 'FOR_EACH_SSA_{USE,DEF,TREE}_OPERAND' iterator. For example, to print
  11023. all the operands for a statement:
  11024. void
  11025. print_ops (tree stmt)
  11026. {
  11027. ssa_op_iter;
  11028. tree var;
  11029. FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_OPERANDS)
  11030. print_generic_expr (stderr, var, TDF_SLIM);
  11031. }
  11032. How to choose the appropriate iterator:
  11033. 1. Determine whether you are need to see the operand pointers, or just
  11034. the trees, and choose the appropriate macro:
  11035. Need Macro:
  11036. ---- -------
  11037. use_operand_p FOR_EACH_SSA_USE_OPERAND
  11038. def_operand_p FOR_EACH_SSA_DEF_OPERAND
  11039. tree FOR_EACH_SSA_TREE_OPERAND
  11040. 2. You need to declare a variable of the type you are interested in,
  11041. and an ssa_op_iter structure which serves as the loop controlling
  11042. variable.
  11043. 3. Determine which operands you wish to use, and specify the flags of
  11044. those you are interested in. They are documented in
  11045. 'tree-ssa-operands.h':
  11046. #define SSA_OP_USE 0x01 /* Real USE operands. */
  11047. #define SSA_OP_DEF 0x02 /* Real DEF operands. */
  11048. #define SSA_OP_VUSE 0x04 /* VUSE operands. */
  11049. #define SSA_OP_VDEF 0x08 /* VDEF operands. */
  11050. /* These are commonly grouped operand flags. */
  11051. #define SSA_OP_VIRTUAL_USES (SSA_OP_VUSE)
  11052. #define SSA_OP_VIRTUAL_DEFS (SSA_OP_VDEF)
  11053. #define SSA_OP_ALL_VIRTUALS (SSA_OP_VIRTUAL_USES | SSA_OP_VIRTUAL_DEFS)
  11054. #define SSA_OP_ALL_USES (SSA_OP_VIRTUAL_USES | SSA_OP_USE)
  11055. #define SSA_OP_ALL_DEFS (SSA_OP_VIRTUAL_DEFS | SSA_OP_DEF)
  11056. #define SSA_OP_ALL_OPERANDS (SSA_OP_ALL_USES | SSA_OP_ALL_DEFS)
  11057. So if you want to look at the use pointers for all the 'USE' and 'VUSE'
  11058. operands, you would do something like:
  11059. use_operand_p use_p;
  11060. ssa_op_iter iter;
  11061. FOR_EACH_SSA_USE_OPERAND (use_p, stmt, iter, (SSA_OP_USE | SSA_OP_VUSE))
  11062. {
  11063. process_use_ptr (use_p);
  11064. }
  11065. The 'TREE' macro is basically the same as the 'USE' and 'DEF' macros,
  11066. only with the use or def dereferenced via 'USE_FROM_PTR (use_p)' and
  11067. 'DEF_FROM_PTR (def_p)'. Since we aren't using operand pointers, use and
  11068. defs flags can be mixed.
  11069. tree var;
  11070. ssa_op_iter iter;
  11071. FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_VUSE)
  11072. {
  11073. print_generic_expr (stderr, var, TDF_SLIM);
  11074. }
  11075. 'VDEF's are broken into two flags, one for the 'DEF' portion
  11076. ('SSA_OP_VDEF') and one for the USE portion ('SSA_OP_VUSE').
  11077. There are many examples in the code, in addition to the documentation
  11078. in 'tree-ssa-operands.h' and 'ssa-iterators.h'.
  11079. There are also a couple of variants on the stmt iterators regarding PHI
  11080. nodes.
  11081. 'FOR_EACH_PHI_ARG' Works exactly like 'FOR_EACH_SSA_USE_OPERAND',
  11082. except it works over 'PHI' arguments instead of statement operands.
  11083. /* Look at every virtual PHI use. */
  11084. FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_VIRTUAL_USES)
  11085. {
  11086. my_code;
  11087. }
  11088. /* Look at every real PHI use. */
  11089. FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_USES)
  11090. my_code;
  11091. /* Look at every PHI use. */
  11092. FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_ALL_USES)
  11093. my_code;
  11094. 'FOR_EACH_PHI_OR_STMT_{USE,DEF}' works exactly like
  11095. 'FOR_EACH_SSA_{USE,DEF}_OPERAND', except it will function on either a
  11096. statement or a 'PHI' node. These should be used when it is appropriate
  11097. but they are not quite as efficient as the individual 'FOR_EACH_PHI' and
  11098. 'FOR_EACH_SSA' routines.
  11099. FOR_EACH_PHI_OR_STMT_USE (use_operand_p, stmt, iter, flags)
  11100. {
  11101. my_code;
  11102. }
  11103. FOR_EACH_PHI_OR_STMT_DEF (def_operand_p, phi, iter, flags)
  11104. {
  11105. my_code;
  11106. }
  11107. 12.2.2 Immediate Uses
  11108. ---------------------
  11109. Immediate use information is now always available. Using the immediate
  11110. use iterators, you may examine every use of any 'SSA_NAME'. For
  11111. instance, to change each use of 'ssa_var' to 'ssa_var2' and call
  11112. fold_stmt on each stmt after that is done:
  11113. use_operand_p imm_use_p;
  11114. imm_use_iterator iterator;
  11115. tree ssa_var, stmt;
  11116. FOR_EACH_IMM_USE_STMT (stmt, iterator, ssa_var)
  11117. {
  11118. FOR_EACH_IMM_USE_ON_STMT (imm_use_p, iterator)
  11119. SET_USE (imm_use_p, ssa_var_2);
  11120. fold_stmt (stmt);
  11121. }
  11122. There are 2 iterators which can be used. 'FOR_EACH_IMM_USE_FAST' is
  11123. used when the immediate uses are not changed, i.e., you are looking at
  11124. the uses, but not setting them.
  11125. If they do get changed, then care must be taken that things are not
  11126. changed under the iterators, so use the 'FOR_EACH_IMM_USE_STMT' and
  11127. 'FOR_EACH_IMM_USE_ON_STMT' iterators. They attempt to preserve the
  11128. sanity of the use list by moving all the uses for a statement into a
  11129. controlled position, and then iterating over those uses. Then the
  11130. optimization can manipulate the stmt when all the uses have been
  11131. processed. This is a little slower than the FAST version since it adds
  11132. a placeholder element and must sort through the list a bit for each
  11133. statement. This placeholder element must be also be removed if the loop
  11134. is terminated early. The macro 'BREAK_FROM_IMM_USE_SAFE' is provided to
  11135. do this :
  11136. FOR_EACH_IMM_USE_STMT (stmt, iterator, ssa_var)
  11137. {
  11138. if (stmt == last_stmt)
  11139. BREAK_FROM_SAFE_IMM_USE (iter);
  11140. FOR_EACH_IMM_USE_ON_STMT (imm_use_p, iterator)
  11141. SET_USE (imm_use_p, ssa_var_2);
  11142. fold_stmt (stmt);
  11143. }
  11144. There are checks in 'verify_ssa' which verify that the immediate use
  11145. list is up to date, as well as checking that an optimization didn't
  11146. break from the loop without using this macro. It is safe to simply
  11147. 'break'; from a 'FOR_EACH_IMM_USE_FAST' traverse.
  11148. Some useful functions and macros:
  11149. 1. 'has_zero_uses (ssa_var)' : Returns true if there are no uses of
  11150. 'ssa_var'.
  11151. 2. 'has_single_use (ssa_var)' : Returns true if there is only a single
  11152. use of 'ssa_var'.
  11153. 3. 'single_imm_use (ssa_var, use_operand_p *ptr, tree *stmt)' :
  11154. Returns true if there is only a single use of 'ssa_var', and also
  11155. returns the use pointer and statement it occurs in, in the second
  11156. and third parameters.
  11157. 4. 'num_imm_uses (ssa_var)' : Returns the number of immediate uses of
  11158. 'ssa_var'. It is better not to use this if possible since it
  11159. simply utilizes a loop to count the uses.
  11160. 5. 'PHI_ARG_INDEX_FROM_USE (use_p)' : Given a use within a 'PHI' node,
  11161. return the index number for the use. An assert is triggered if the
  11162. use isn't located in a 'PHI' node.
  11163. 6. 'USE_STMT (use_p)' : Return the statement a use occurs in.
  11164. Note that uses are not put into an immediate use list until their
  11165. statement is actually inserted into the instruction stream via a 'bsi_*'
  11166. routine.
  11167. It is also still possible to utilize lazy updating of statements, but
  11168. this should be used only when absolutely required. Both alias analysis
  11169. and the dominator optimizations currently do this.
  11170. When lazy updating is being used, the immediate use information is out
  11171. of date and cannot be used reliably. Lazy updating is achieved by
  11172. simply marking statements modified via calls to 'gimple_set_modified'
  11173. instead of 'update_stmt'. When lazy updating is no longer required, all
  11174. the modified statements must have 'update_stmt' called in order to bring
  11175. them up to date. This must be done before the optimization is finished,
  11176. or 'verify_ssa' will trigger an abort.
  11177. This is done with a simple loop over the instruction stream:
  11178. block_stmt_iterator bsi;
  11179. basic_block bb;
  11180. FOR_EACH_BB (bb)
  11181. {
  11182. for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
  11183. update_stmt_if_modified (bsi_stmt (bsi));
  11184. }
  11185. 
  11186. File: gccint.info, Node: SSA, Next: Alias analysis, Prev: SSA Operands, Up: Tree SSA
  11187. 12.3 Static Single Assignment
  11188. =============================
  11189. Most of the tree optimizers rely on the data flow information provided
  11190. by the Static Single Assignment (SSA) form. We implement the SSA form
  11191. as described in 'R. Cytron, J. Ferrante, B. Rosen, M. Wegman, and K.
  11192. Zadeck. Efficiently Computing Static Single Assignment Form and the
  11193. Control Dependence Graph. ACM Transactions on Programming Languages and
  11194. Systems, 13(4):451-490, October 1991'.
  11195. The SSA form is based on the premise that program variables are
  11196. assigned in exactly one location in the program. Multiple assignments
  11197. to the same variable create new versions of that variable. Naturally,
  11198. actual programs are seldom in SSA form initially because variables tend
  11199. to be assigned multiple times. The compiler modifies the program
  11200. representation so that every time a variable is assigned in the code, a
  11201. new version of the variable is created. Different versions of the same
  11202. variable are distinguished by subscripting the variable name with its
  11203. version number. Variables used in the right-hand side of expressions
  11204. are renamed so that their version number matches that of the most recent
  11205. assignment.
  11206. We represent variable versions using 'SSA_NAME' nodes. The renaming
  11207. process in 'tree-ssa.c' wraps every real and virtual operand with an
  11208. 'SSA_NAME' node which contains the version number and the statement that
  11209. created the 'SSA_NAME'. Only definitions and virtual definitions may
  11210. create new 'SSA_NAME' nodes.
  11211. Sometimes, flow of control makes it impossible to determine the most
  11212. recent version of a variable. In these cases, the compiler inserts an
  11213. artificial definition for that variable called "PHI function" or "PHI
  11214. node". This new definition merges all the incoming versions of the
  11215. variable to create a new name for it. For instance,
  11216. if (...)
  11217. a_1 = 5;
  11218. else if (...)
  11219. a_2 = 2;
  11220. else
  11221. a_3 = 13;
  11222. # a_4 = PHI <a_1, a_2, a_3>
  11223. return a_4;
  11224. Since it is not possible to determine which of the three branches will
  11225. be taken at runtime, we don't know which of 'a_1', 'a_2' or 'a_3' to use
  11226. at the return statement. So, the SSA renamer creates a new version
  11227. 'a_4' which is assigned the result of "merging" 'a_1', 'a_2' and 'a_3'.
  11228. Hence, PHI nodes mean "one of these operands. I don't know which".
  11229. The following functions can be used to examine PHI nodes
  11230. -- Function: gimple_phi_result (PHI)
  11231. Returns the 'SSA_NAME' created by PHI node PHI (i.e., PHI's LHS).
  11232. -- Function: gimple_phi_num_args (PHI)
  11233. Returns the number of arguments in PHI. This number is exactly the
  11234. number of incoming edges to the basic block holding PHI.
  11235. -- Function: gimple_phi_arg (PHI, I)
  11236. Returns Ith argument of PHI.
  11237. -- Function: gimple_phi_arg_edge (PHI, I)
  11238. Returns the incoming edge for the Ith argument of PHI.
  11239. -- Function: gimple_phi_arg_def (PHI, I)
  11240. Returns the 'SSA_NAME' for the Ith argument of PHI.
  11241. 12.3.1 Preserving the SSA form
  11242. ------------------------------
  11243. Some optimization passes make changes to the function that invalidate
  11244. the SSA property. This can happen when a pass has added new symbols or
  11245. changed the program so that variables that were previously aliased
  11246. aren't anymore. Whenever something like this happens, the affected
  11247. symbols must be renamed into SSA form again. Transformations that emit
  11248. new code or replicate existing statements will also need to update the
  11249. SSA form.
  11250. Since GCC implements two different SSA forms for register and virtual
  11251. variables, keeping the SSA form up to date depends on whether you are
  11252. updating register or virtual names. In both cases, the general idea
  11253. behind incremental SSA updates is similar: when new SSA names are
  11254. created, they typically are meant to replace other existing names in the
  11255. program.
  11256. For instance, given the following code:
  11257. 1 L0:
  11258. 2 x_1 = PHI (0, x_5)
  11259. 3 if (x_1 < 10)
  11260. 4 if (x_1 > 7)
  11261. 5 y_2 = 0
  11262. 6 else
  11263. 7 y_3 = x_1 + x_7
  11264. 8 endif
  11265. 9 x_5 = x_1 + 1
  11266. 10 goto L0;
  11267. 11 endif
  11268. Suppose that we insert new names 'x_10' and 'x_11' (lines '4' and '8').
  11269. 1 L0:
  11270. 2 x_1 = PHI (0, x_5)
  11271. 3 if (x_1 < 10)
  11272. 4 x_10 = ...
  11273. 5 if (x_1 > 7)
  11274. 6 y_2 = 0
  11275. 7 else
  11276. 8 x_11 = ...
  11277. 9 y_3 = x_1 + x_7
  11278. 10 endif
  11279. 11 x_5 = x_1 + 1
  11280. 12 goto L0;
  11281. 13 endif
  11282. We want to replace all the uses of 'x_1' with the new definitions of
  11283. 'x_10' and 'x_11'. Note that the only uses that should be replaced are
  11284. those at lines '5', '9' and '11'. Also, the use of 'x_7' at line '9'
  11285. should _not_ be replaced (this is why we cannot just mark symbol 'x' for
  11286. renaming).
  11287. Additionally, we may need to insert a PHI node at line '11' because
  11288. that is a merge point for 'x_10' and 'x_11'. So the use of 'x_1' at
  11289. line '11' will be replaced with the new PHI node. The insertion of PHI
  11290. nodes is optional. They are not strictly necessary to preserve the SSA
  11291. form, and depending on what the caller inserted, they may not even be
  11292. useful for the optimizers.
  11293. Updating the SSA form is a two step process. First, the pass has to
  11294. identify which names need to be updated and/or which symbols need to be
  11295. renamed into SSA form for the first time. When new names are introduced
  11296. to replace existing names in the program, the mapping between the old
  11297. and the new names are registered by calling 'register_new_name_mapping'
  11298. (note that if your pass creates new code by duplicating basic blocks,
  11299. the call to 'tree_duplicate_bb' will set up the necessary mappings
  11300. automatically).
  11301. After the replacement mappings have been registered and new symbols
  11302. marked for renaming, a call to 'update_ssa' makes the registered
  11303. changes. This can be done with an explicit call or by creating 'TODO'
  11304. flags in the 'tree_opt_pass' structure for your pass. There are several
  11305. 'TODO' flags that control the behavior of 'update_ssa':
  11306. * 'TODO_update_ssa'. Update the SSA form inserting PHI nodes for
  11307. newly exposed symbols and virtual names marked for updating. When
  11308. updating real names, only insert PHI nodes for a real name 'O_j' in
  11309. blocks reached by all the new and old definitions for 'O_j'. If
  11310. the iterated dominance frontier for 'O_j' is not pruned, we may end
  11311. up inserting PHI nodes in blocks that have one or more edges with
  11312. no incoming definition for 'O_j'. This would lead to uninitialized
  11313. warnings for 'O_j''s symbol.
  11314. * 'TODO_update_ssa_no_phi'. Update the SSA form without inserting
  11315. any new PHI nodes at all. This is used by passes that have either
  11316. inserted all the PHI nodes themselves or passes that need only to
  11317. patch use-def and def-def chains for virtuals (e.g., DCE).
  11318. * 'TODO_update_ssa_full_phi'. Insert PHI nodes everywhere they are
  11319. needed. No pruning of the IDF is done. This is used by passes
  11320. that need the PHI nodes for 'O_j' even if it means that some
  11321. arguments will come from the default definition of 'O_j''s symbol
  11322. (e.g., 'pass_linear_transform').
  11323. WARNING: If you need to use this flag, chances are that your pass
  11324. may be doing something wrong. Inserting PHI nodes for an old name
  11325. where not all edges carry a new replacement may lead to silent
  11326. codegen errors or spurious uninitialized warnings.
  11327. * 'TODO_update_ssa_only_virtuals'. Passes that update the SSA form
  11328. on their own may want to delegate the updating of virtual names to
  11329. the generic updater. Since FUD chains are easier to maintain, this
  11330. simplifies the work they need to do. NOTE: If this flag is used,
  11331. any OLD->NEW mappings for real names are explicitly destroyed and
  11332. only the symbols marked for renaming are processed.
  11333. 12.3.2 Examining 'SSA_NAME' nodes
  11334. ---------------------------------
  11335. The following macros can be used to examine 'SSA_NAME' nodes
  11336. -- Macro: SSA_NAME_DEF_STMT (VAR)
  11337. Returns the statement S that creates the 'SSA_NAME' VAR. If S is
  11338. an empty statement (i.e., 'IS_EMPTY_STMT (S)' returns 'true'), it
  11339. means that the first reference to this variable is a USE or a VUSE.
  11340. -- Macro: SSA_NAME_VERSION (VAR)
  11341. Returns the version number of the 'SSA_NAME' object VAR.
  11342. 12.3.3 Walking the dominator tree
  11343. ---------------------------------
  11344. -- Tree SSA function: void walk_dominator_tree (WALK_DATA, BB)
  11345. This function walks the dominator tree for the current CFG calling
  11346. a set of callback functions defined in STRUCT DOM_WALK_DATA in
  11347. 'domwalk.h'. The call back functions you need to define give you
  11348. hooks to execute custom code at various points during traversal:
  11349. 1. Once to initialize any local data needed while processing BB
  11350. and its children. This local data is pushed into an internal
  11351. stack which is automatically pushed and popped as the walker
  11352. traverses the dominator tree.
  11353. 2. Once before traversing all the statements in the BB.
  11354. 3. Once for every statement inside BB.
  11355. 4. Once after traversing all the statements and before recursing
  11356. into BB's dominator children.
  11357. 5. It then recurses into all the dominator children of BB.
  11358. 6. After recursing into all the dominator children of BB it can,
  11359. optionally, traverse every statement in BB again (i.e.,
  11360. repeating steps 2 and 3).
  11361. 7. Once after walking the statements in BB and BB's dominator
  11362. children. At this stage, the block local data stack is
  11363. popped.
  11364. 
  11365. File: gccint.info, Node: Alias analysis, Next: Memory model, Prev: SSA, Up: Tree SSA
  11366. 12.4 Alias analysis
  11367. ===================
  11368. Alias analysis in GIMPLE SSA form consists of two pieces. First the
  11369. virtual SSA web ties conflicting memory accesses and provides a SSA
  11370. use-def chain and SSA immediate-use chains for walking possibly
  11371. dependent memory accesses. Second an alias-oracle can be queried to
  11372. disambiguate explicit and implicit memory references.
  11373. 1. Memory SSA form.
  11374. All statements that may use memory have exactly one accompanied use
  11375. of a virtual SSA name that represents the state of memory at the
  11376. given point in the IL.
  11377. All statements that may define memory have exactly one accompanied
  11378. definition of a virtual SSA name using the previous state of memory
  11379. and defining the new state of memory after the given point in the
  11380. IL.
  11381. int i;
  11382. int foo (void)
  11383. {
  11384. # .MEM_3 = VDEF <.MEM_2(D)>
  11385. i = 1;
  11386. # VUSE <.MEM_3>
  11387. return i;
  11388. }
  11389. The virtual SSA names in this case are '.MEM_2(D)' and '.MEM_3'.
  11390. The store to the global variable 'i' defines '.MEM_3' invalidating
  11391. '.MEM_2(D)'. The load from 'i' uses that new state '.MEM_3'.
  11392. The virtual SSA web serves as constraints to SSA optimizers
  11393. preventing illegitimate code-motion and optimization. It also
  11394. provides a way to walk related memory statements.
  11395. 2. Points-to and escape analysis.
  11396. Points-to analysis builds a set of constraints from the GIMPLE SSA
  11397. IL representing all pointer operations and facts we do or do not
  11398. know about pointers. Solving this set of constraints yields a
  11399. conservatively correct solution for each pointer variable in the
  11400. program (though we are only interested in SSA name pointers) as to
  11401. what it may possibly point to.
  11402. This points-to solution for a given SSA name pointer is stored in
  11403. the 'pt_solution' sub-structure of the 'SSA_NAME_PTR_INFO' record.
  11404. The following accessor functions are available:
  11405. * 'pt_solution_includes'
  11406. * 'pt_solutions_intersect'
  11407. Points-to analysis also computes the solution for two special set
  11408. of pointers, 'ESCAPED' and 'CALLUSED'. Those represent all memory
  11409. that has escaped the scope of analysis or that is used by pure or
  11410. nested const calls.
  11411. 3. Type-based alias analysis
  11412. Type-based alias analysis is frontend dependent though generic
  11413. support is provided by the middle-end in 'alias.c'. TBAA code is
  11414. used by both tree optimizers and RTL optimizers.
  11415. Every language that wishes to perform language-specific alias
  11416. analysis should define a function that computes, given a 'tree'
  11417. node, an alias set for the node. Nodes in different alias sets are
  11418. not allowed to alias. For an example, see the C front-end function
  11419. 'c_get_alias_set'.
  11420. 4. Tree alias-oracle
  11421. The tree alias-oracle provides means to disambiguate two memory
  11422. references and memory references against statements. The following
  11423. queries are available:
  11424. * 'refs_may_alias_p'
  11425. * 'ref_maybe_used_by_stmt_p'
  11426. * 'stmt_may_clobber_ref_p'
  11427. In addition to those two kind of statement walkers are available
  11428. walking statements related to a reference ref.
  11429. 'walk_non_aliased_vuses' walks over dominating memory defining
  11430. statements and calls back if the statement does not clobber ref
  11431. providing the non-aliased VUSE. The walk stops at the first
  11432. clobbering statement or if asked to. 'walk_aliased_vdefs' walks
  11433. over dominating memory defining statements and calls back on each
  11434. statement clobbering ref providing its aliasing VDEF. The walk
  11435. stops if asked to.
  11436. 
  11437. File: gccint.info, Node: Memory model, Prev: Alias analysis, Up: Tree SSA
  11438. 12.5 Memory model
  11439. =================
  11440. The memory model used by the middle-end models that of the C/C++
  11441. languages. The middle-end has the notion of an effective type of a
  11442. memory region which is used for type-based alias analysis.
  11443. The following is a refinement of ISO C99 6.5/6, clarifying the block
  11444. copy case to follow common sense and extending the concept of a dynamic
  11445. effective type to objects with a declared type as required for C++.
  11446. The effective type of an object for an access to its stored value is
  11447. the declared type of the object or the effective type determined by
  11448. a previous store to it. If a value is stored into an object through
  11449. an lvalue having a type that is not a character type, then the
  11450. type of the lvalue becomes the effective type of the object for that
  11451. access and for subsequent accesses that do not modify the stored value.
  11452. If a value is copied into an object using memcpy or memmove,
  11453. or is copied as an array of character type, then the effective type
  11454. of the modified object for that access and for subsequent accesses that
  11455. do not modify the value is undetermined. For all other accesses to an
  11456. object, the effective type of the object is simply the type of the
  11457. lvalue used for the access.
  11458. 
  11459. File: gccint.info, Node: RTL, Next: Control Flow, Prev: Tree SSA, Up: Top
  11460. 13 RTL Representation
  11461. *********************
  11462. The last part of the compiler work is done on a low-level intermediate
  11463. representation called Register Transfer Language. In this language, the
  11464. instructions to be output are described, pretty much one by one, in an
  11465. algebraic form that describes what the instruction does.
  11466. RTL is inspired by Lisp lists. It has both an internal form, made up
  11467. of structures that point at other structures, and a textual form that is
  11468. used in the machine description and in printed debugging dumps. The
  11469. textual form uses nested parentheses to indicate the pointers in the
  11470. internal form.
  11471. * Menu:
  11472. * RTL Objects:: Expressions vs vectors vs strings vs integers.
  11473. * RTL Classes:: Categories of RTL expression objects, and their structure.
  11474. * Accessors:: Macros to access expression operands or vector elts.
  11475. * Special Accessors:: Macros to access specific annotations on RTL.
  11476. * Flags:: Other flags in an RTL expression.
  11477. * Machine Modes:: Describing the size and format of a datum.
  11478. * Constants:: Expressions with constant values.
  11479. * Regs and Memory:: Expressions representing register contents or memory.
  11480. * Arithmetic:: Expressions representing arithmetic on other expressions.
  11481. * Comparisons:: Expressions representing comparison of expressions.
  11482. * Bit-Fields:: Expressions representing bit-fields in memory or reg.
  11483. * Vector Operations:: Expressions involving vector datatypes.
  11484. * Conversions:: Extending, truncating, floating or fixing.
  11485. * RTL Declarations:: Declaring volatility, constancy, etc.
  11486. * Side Effects:: Expressions for storing in registers, etc.
  11487. * Incdec:: Embedded side-effects for autoincrement addressing.
  11488. * Assembler:: Representing 'asm' with operands.
  11489. * Debug Information:: Expressions representing debugging information.
  11490. * Insns:: Expression types for entire insns.
  11491. * Calls:: RTL representation of function call insns.
  11492. * Sharing:: Some expressions are unique; others *must* be copied.
  11493. * Reading RTL:: Reading textual RTL from a file.
  11494. 
  11495. File: gccint.info, Node: RTL Objects, Next: RTL Classes, Up: RTL
  11496. 13.1 RTL Object Types
  11497. =====================
  11498. RTL uses five kinds of objects: expressions, integers, wide integers,
  11499. strings and vectors. Expressions are the most important ones. An RTL
  11500. expression ("RTX", for short) is a C structure, but it is usually
  11501. referred to with a pointer; a type that is given the typedef name 'rtx'.
  11502. An integer is simply an 'int'; their written form uses decimal digits.
  11503. A wide integer is an integral object whose type is 'HOST_WIDE_INT';
  11504. their written form uses decimal digits.
  11505. A string is a sequence of characters. In core it is represented as a
  11506. 'char *' in usual C fashion, and it is written in C syntax as well.
  11507. However, strings in RTL may never be null. If you write an empty string
  11508. in a machine description, it is represented in core as a null pointer
  11509. rather than as a pointer to a null character. In certain contexts,
  11510. these null pointers instead of strings are valid. Within RTL code,
  11511. strings are most commonly found inside 'symbol_ref' expressions, but
  11512. they appear in other contexts in the RTL expressions that make up
  11513. machine descriptions.
  11514. In a machine description, strings are normally written with double
  11515. quotes, as you would in C. However, strings in machine descriptions may
  11516. extend over many lines, which is invalid C, and adjacent string
  11517. constants are not concatenated as they are in C. Any string constant
  11518. may be surrounded with a single set of parentheses. Sometimes this
  11519. makes the machine description easier to read.
  11520. There is also a special syntax for strings, which can be useful when C
  11521. code is embedded in a machine description. Wherever a string can
  11522. appear, it is also valid to write a C-style brace block. The entire
  11523. brace block, including the outermost pair of braces, is considered to be
  11524. the string constant. Double quote characters inside the braces are not
  11525. special. Therefore, if you write string constants in the C code, you
  11526. need not escape each quote character with a backslash.
  11527. A vector contains an arbitrary number of pointers to expressions. The
  11528. number of elements in the vector is explicitly present in the vector.
  11529. The written form of a vector consists of square brackets ('[...]')
  11530. surrounding the elements, in sequence and with whitespace separating
  11531. them. Vectors of length zero are not created; null pointers are used
  11532. instead.
  11533. Expressions are classified by "expression codes" (also called RTX
  11534. codes). The expression code is a name defined in 'rtl.def', which is
  11535. also (in uppercase) a C enumeration constant. The possible expression
  11536. codes and their meanings are machine-independent. The code of an RTX
  11537. can be extracted with the macro 'GET_CODE (X)' and altered with
  11538. 'PUT_CODE (X, NEWCODE)'.
  11539. The expression code determines how many operands the expression
  11540. contains, and what kinds of objects they are. In RTL, unlike Lisp, you
  11541. cannot tell by looking at an operand what kind of object it is.
  11542. Instead, you must know from its context--from the expression code of the
  11543. containing expression. For example, in an expression of code 'subreg',
  11544. the first operand is to be regarded as an expression and the second
  11545. operand as an integer. In an expression of code 'plus', there are two
  11546. operands, both of which are to be regarded as expressions. In a
  11547. 'symbol_ref' expression, there is one operand, which is to be regarded
  11548. as a string.
  11549. Expressions are written as parentheses containing the name of the
  11550. expression type, its flags and machine mode if any, and then the
  11551. operands of the expression (separated by spaces).
  11552. Expression code names in the 'md' file are written in lowercase, but
  11553. when they appear in C code they are written in uppercase. In this
  11554. manual, they are shown as follows: 'const_int'.
  11555. In a few contexts a null pointer is valid where an expression is
  11556. normally wanted. The written form of this is '(nil)'.
  11557. 
  11558. File: gccint.info, Node: RTL Classes, Next: Accessors, Prev: RTL Objects, Up: RTL
  11559. 13.2 RTL Classes and Formats
  11560. ============================
  11561. The various expression codes are divided into several "classes", which
  11562. are represented by single characters. You can determine the class of an
  11563. RTX code with the macro 'GET_RTX_CLASS (CODE)'. Currently, 'rtl.def'
  11564. defines these classes:
  11565. 'RTX_OBJ'
  11566. An RTX code that represents an actual object, such as a register
  11567. ('REG') or a memory location ('MEM', 'SYMBOL_REF'). 'LO_SUM') is
  11568. also included; instead, 'SUBREG' and 'STRICT_LOW_PART' are not in
  11569. this class, but in class 'x'.
  11570. 'RTX_CONST_OBJ'
  11571. An RTX code that represents a constant object. 'HIGH' is also
  11572. included in this class.
  11573. 'RTX_COMPARE'
  11574. An RTX code for a non-symmetric comparison, such as 'GEU' or 'LT'.
  11575. 'RTX_COMM_COMPARE'
  11576. An RTX code for a symmetric (commutative) comparison, such as 'EQ'
  11577. or 'ORDERED'.
  11578. 'RTX_UNARY'
  11579. An RTX code for a unary arithmetic operation, such as 'NEG', 'NOT',
  11580. or 'ABS'. This category also includes value extension (sign or
  11581. zero) and conversions between integer and floating point.
  11582. 'RTX_COMM_ARITH'
  11583. An RTX code for a commutative binary operation, such as 'PLUS' or
  11584. 'AND'. 'NE' and 'EQ' are comparisons, so they have class '<'.
  11585. 'RTX_BIN_ARITH'
  11586. An RTX code for a non-commutative binary operation, such as
  11587. 'MINUS', 'DIV', or 'ASHIFTRT'.
  11588. 'RTX_BITFIELD_OPS'
  11589. An RTX code for a bit-field operation. Currently only
  11590. 'ZERO_EXTRACT' and 'SIGN_EXTRACT'. These have three inputs and are
  11591. lvalues (so they can be used for insertion as well). *Note
  11592. Bit-Fields::.
  11593. 'RTX_TERNARY'
  11594. An RTX code for other three input operations. Currently only
  11595. 'IF_THEN_ELSE', 'VEC_MERGE', 'SIGN_EXTRACT', 'ZERO_EXTRACT', and
  11596. 'FMA'.
  11597. 'RTX_INSN'
  11598. An RTX code for an entire instruction: 'INSN', 'JUMP_INSN', and
  11599. 'CALL_INSN'. *Note Insns::.
  11600. 'RTX_MATCH'
  11601. An RTX code for something that matches in insns, such as
  11602. 'MATCH_DUP'. These only occur in machine descriptions.
  11603. 'RTX_AUTOINC'
  11604. An RTX code for an auto-increment addressing mode, such as
  11605. 'POST_INC'. 'XEXP (X, 0)' gives the auto-modified register.
  11606. 'RTX_EXTRA'
  11607. All other RTX codes. This category includes the remaining codes
  11608. used only in machine descriptions ('DEFINE_*', etc.). It also
  11609. includes all the codes describing side effects ('SET', 'USE',
  11610. 'CLOBBER', etc.) and the non-insns that may appear on an insn
  11611. chain, such as 'NOTE', 'BARRIER', and 'CODE_LABEL'. 'SUBREG' is
  11612. also part of this class.
  11613. For each expression code, 'rtl.def' specifies the number of contained
  11614. objects and their kinds using a sequence of characters called the
  11615. "format" of the expression code. For example, the format of 'subreg' is
  11616. 'ei'.
  11617. These are the most commonly used format characters:
  11618. 'e'
  11619. An expression (actually a pointer to an expression).
  11620. 'i'
  11621. An integer.
  11622. 'w'
  11623. A wide integer.
  11624. 's'
  11625. A string.
  11626. 'E'
  11627. A vector of expressions.
  11628. A few other format characters are used occasionally:
  11629. 'u'
  11630. 'u' is equivalent to 'e' except that it is printed differently in
  11631. debugging dumps. It is used for pointers to insns.
  11632. 'n'
  11633. 'n' is equivalent to 'i' except that it is printed differently in
  11634. debugging dumps. It is used for the line number or code number of
  11635. a 'note' insn.
  11636. 'S'
  11637. 'S' indicates a string which is optional. In the RTL objects in
  11638. core, 'S' is equivalent to 's', but when the object is read, from
  11639. an 'md' file, the string value of this operand may be omitted. An
  11640. omitted string is taken to be the null string.
  11641. 'V'
  11642. 'V' indicates a vector which is optional. In the RTL objects in
  11643. core, 'V' is equivalent to 'E', but when the object is read from an
  11644. 'md' file, the vector value of this operand may be omitted. An
  11645. omitted vector is effectively the same as a vector of no elements.
  11646. 'B'
  11647. 'B' indicates a pointer to basic block structure.
  11648. '0'
  11649. '0' means a slot whose contents do not fit any normal category.
  11650. '0' slots are not printed at all in dumps, and are often used in
  11651. special ways by small parts of the compiler.
  11652. There are macros to get the number of operands and the format of an
  11653. expression code:
  11654. 'GET_RTX_LENGTH (CODE)'
  11655. Number of operands of an RTX of code CODE.
  11656. 'GET_RTX_FORMAT (CODE)'
  11657. The format of an RTX of code CODE, as a C string.
  11658. Some classes of RTX codes always have the same format. For example, it
  11659. is safe to assume that all comparison operations have format 'ee'.
  11660. '1'
  11661. All codes of this class have format 'e'.
  11662. '<'
  11663. 'c'
  11664. '2'
  11665. All codes of these classes have format 'ee'.
  11666. 'b'
  11667. '3'
  11668. All codes of these classes have format 'eee'.
  11669. 'i'
  11670. All codes of this class have formats that begin with 'iuueiee'.
  11671. *Note Insns::. Note that not all RTL objects linked onto an insn
  11672. chain are of class 'i'.
  11673. 'o'
  11674. 'm'
  11675. 'x'
  11676. You can make no assumptions about the format of these codes.
  11677. 
  11678. File: gccint.info, Node: Accessors, Next: Special Accessors, Prev: RTL Classes, Up: RTL
  11679. 13.3 Access to Operands
  11680. =======================
  11681. Operands of expressions are accessed using the macros 'XEXP', 'XINT',
  11682. 'XWINT' and 'XSTR'. Each of these macros takes two arguments: an
  11683. expression-pointer (RTX) and an operand number (counting from zero).
  11684. Thus,
  11685. XEXP (X, 2)
  11686. accesses operand 2 of expression X, as an expression.
  11687. XINT (X, 2)
  11688. accesses the same operand as an integer. 'XSTR', used in the same
  11689. fashion, would access it as a string.
  11690. Any operand can be accessed as an integer, as an expression or as a
  11691. string. You must choose the correct method of access for the kind of
  11692. value actually stored in the operand. You would do this based on the
  11693. expression code of the containing expression. That is also how you
  11694. would know how many operands there are.
  11695. For example, if X is a 'subreg' expression, you know that it has two
  11696. operands which can be correctly accessed as 'XEXP (X, 0)' and 'XINT (X,
  11697. 1)'. If you did 'XINT (X, 0)', you would get the address of the
  11698. expression operand but cast as an integer; that might occasionally be
  11699. useful, but it would be cleaner to write '(int) XEXP (X, 0)'. 'XEXP (X,
  11700. 1)' would also compile without error, and would return the second,
  11701. integer operand cast as an expression pointer, which would probably
  11702. result in a crash when accessed. Nothing stops you from writing 'XEXP
  11703. (X, 28)' either, but this will access memory past the end of the
  11704. expression with unpredictable results.
  11705. Access to operands which are vectors is more complicated. You can use
  11706. the macro 'XVEC' to get the vector-pointer itself, or the macros
  11707. 'XVECEXP' and 'XVECLEN' to access the elements and length of a vector.
  11708. 'XVEC (EXP, IDX)'
  11709. Access the vector-pointer which is operand number IDX in EXP.
  11710. 'XVECLEN (EXP, IDX)'
  11711. Access the length (number of elements) in the vector which is in
  11712. operand number IDX in EXP. This value is an 'int'.
  11713. 'XVECEXP (EXP, IDX, ELTNUM)'
  11714. Access element number ELTNUM in the vector which is in operand
  11715. number IDX in EXP. This value is an RTX.
  11716. It is up to you to make sure that ELTNUM is not negative and is
  11717. less than 'XVECLEN (EXP, IDX)'.
  11718. All the macros defined in this section expand into lvalues and
  11719. therefore can be used to assign the operands, lengths and vector
  11720. elements as well as to access them.
  11721. 
  11722. File: gccint.info, Node: Special Accessors, Next: Flags, Prev: Accessors, Up: RTL
  11723. 13.4 Access to Special Operands
  11724. ===============================
  11725. Some RTL nodes have special annotations associated with them.
  11726. 'MEM'
  11727. 'MEM_ALIAS_SET (X)'
  11728. If 0, X is not in any alias set, and may alias anything.
  11729. Otherwise, X can only alias 'MEM's in a conflicting alias set.
  11730. This value is set in a language-dependent manner in the
  11731. front-end, and should not be altered in the back-end. In some
  11732. front-ends, these numbers may correspond in some way to types,
  11733. or other language-level entities, but they need not, and the
  11734. back-end makes no such assumptions. These set numbers are
  11735. tested with 'alias_sets_conflict_p'.
  11736. 'MEM_EXPR (X)'
  11737. If this register is known to hold the value of some user-level
  11738. declaration, this is that tree node. It may also be a
  11739. 'COMPONENT_REF', in which case this is some field reference,
  11740. and 'TREE_OPERAND (X, 0)' contains the declaration, or another
  11741. 'COMPONENT_REF', or null if there is no compile-time object
  11742. associated with the reference.
  11743. 'MEM_OFFSET_KNOWN_P (X)'
  11744. True if the offset of the memory reference from 'MEM_EXPR' is
  11745. known. 'MEM_OFFSET (X)' provides the offset if so.
  11746. 'MEM_OFFSET (X)'
  11747. The offset from the start of 'MEM_EXPR'. The value is only
  11748. valid if 'MEM_OFFSET_KNOWN_P (X)' is true.
  11749. 'MEM_SIZE_KNOWN_P (X)'
  11750. True if the size of the memory reference is known. 'MEM_SIZE
  11751. (X)' provides its size if so.
  11752. 'MEM_SIZE (X)'
  11753. The size in bytes of the memory reference. This is mostly
  11754. relevant for 'BLKmode' references as otherwise the size is
  11755. implied by the mode. The value is only valid if
  11756. 'MEM_SIZE_KNOWN_P (X)' is true.
  11757. 'MEM_ALIGN (X)'
  11758. The known alignment in bits of the memory reference.
  11759. 'MEM_ADDR_SPACE (X)'
  11760. The address space of the memory reference. This will commonly
  11761. be zero for the generic address space.
  11762. 'REG'
  11763. 'ORIGINAL_REGNO (X)'
  11764. This field holds the number the register "originally" had; for
  11765. a pseudo register turned into a hard reg this will hold the
  11766. old pseudo register number.
  11767. 'REG_EXPR (X)'
  11768. If this register is known to hold the value of some user-level
  11769. declaration, this is that tree node.
  11770. 'REG_OFFSET (X)'
  11771. If this register is known to hold the value of some user-level
  11772. declaration, this is the offset into that logical storage.
  11773. 'SYMBOL_REF'
  11774. 'SYMBOL_REF_DECL (X)'
  11775. If the 'symbol_ref' X was created for a 'VAR_DECL' or a
  11776. 'FUNCTION_DECL', that tree is recorded here. If this value is
  11777. null, then X was created by back end code generation routines,
  11778. and there is no associated front end symbol table entry.
  11779. 'SYMBOL_REF_DECL' may also point to a tree of class ''c'',
  11780. that is, some sort of constant. In this case, the
  11781. 'symbol_ref' is an entry in the per-file constant pool; again,
  11782. there is no associated front end symbol table entry.
  11783. 'SYMBOL_REF_CONSTANT (X)'
  11784. If 'CONSTANT_POOL_ADDRESS_P (X)' is true, this is the constant
  11785. pool entry for X. It is null otherwise.
  11786. 'SYMBOL_REF_DATA (X)'
  11787. A field of opaque type used to store 'SYMBOL_REF_DECL' or
  11788. 'SYMBOL_REF_CONSTANT'.
  11789. 'SYMBOL_REF_FLAGS (X)'
  11790. In a 'symbol_ref', this is used to communicate various
  11791. predicates about the symbol. Some of these are common enough
  11792. to be computed by common code, some are specific to the
  11793. target. The common bits are:
  11794. 'SYMBOL_FLAG_FUNCTION'
  11795. Set if the symbol refers to a function.
  11796. 'SYMBOL_FLAG_LOCAL'
  11797. Set if the symbol is local to this "module". See
  11798. 'TARGET_BINDS_LOCAL_P'.
  11799. 'SYMBOL_FLAG_EXTERNAL'
  11800. Set if this symbol is not defined in this translation
  11801. unit. Note that this is not the inverse of
  11802. 'SYMBOL_FLAG_LOCAL'.
  11803. 'SYMBOL_FLAG_SMALL'
  11804. Set if the symbol is located in the small data section.
  11805. See 'TARGET_IN_SMALL_DATA_P'.
  11806. 'SYMBOL_REF_TLS_MODEL (X)'
  11807. This is a multi-bit field accessor that returns the
  11808. 'tls_model' to be used for a thread-local storage symbol.
  11809. It returns zero for non-thread-local symbols.
  11810. 'SYMBOL_FLAG_HAS_BLOCK_INFO'
  11811. Set if the symbol has 'SYMBOL_REF_BLOCK' and
  11812. 'SYMBOL_REF_BLOCK_OFFSET' fields.
  11813. 'SYMBOL_FLAG_ANCHOR'
  11814. Set if the symbol is used as a section anchor. "Section
  11815. anchors" are symbols that have a known position within an
  11816. 'object_block' and that can be used to access nearby
  11817. members of that block. They are used to implement
  11818. '-fsection-anchors'.
  11819. If this flag is set, then 'SYMBOL_FLAG_HAS_BLOCK_INFO'
  11820. will be too.
  11821. Bits beginning with 'SYMBOL_FLAG_MACH_DEP' are available for
  11822. the target's use.
  11823. 'SYMBOL_REF_BLOCK (X)'
  11824. If 'SYMBOL_REF_HAS_BLOCK_INFO_P (X)', this is the 'object_block'
  11825. structure to which the symbol belongs, or 'NULL' if it has not been
  11826. assigned a block.
  11827. 'SYMBOL_REF_BLOCK_OFFSET (X)'
  11828. If 'SYMBOL_REF_HAS_BLOCK_INFO_P (X)', this is the offset of X from
  11829. the first object in 'SYMBOL_REF_BLOCK (X)'. The value is negative
  11830. if X has not yet been assigned to a block, or it has not been given
  11831. an offset within that block.
  11832. 
  11833. File: gccint.info, Node: Flags, Next: Machine Modes, Prev: Special Accessors, Up: RTL
  11834. 13.5 Flags in an RTL Expression
  11835. ===============================
  11836. RTL expressions contain several flags (one-bit bit-fields) that are used
  11837. in certain types of expression. Most often they are accessed with the
  11838. following macros, which expand into lvalues.
  11839. 'CONSTANT_POOL_ADDRESS_P (X)'
  11840. Nonzero in a 'symbol_ref' if it refers to part of the current
  11841. function's constant pool. For most targets these addresses are in
  11842. a '.rodata' section entirely separate from the function, but for
  11843. some targets the addresses are close to the beginning of the
  11844. function. In either case GCC assumes these addresses can be
  11845. addressed directly, perhaps with the help of base registers.
  11846. Stored in the 'unchanging' field and printed as '/u'.
  11847. 'RTL_CONST_CALL_P (X)'
  11848. In a 'call_insn' indicates that the insn represents a call to a
  11849. const function. Stored in the 'unchanging' field and printed as
  11850. '/u'.
  11851. 'RTL_PURE_CALL_P (X)'
  11852. In a 'call_insn' indicates that the insn represents a call to a
  11853. pure function. Stored in the 'return_val' field and printed as
  11854. '/i'.
  11855. 'RTL_CONST_OR_PURE_CALL_P (X)'
  11856. In a 'call_insn', true if 'RTL_CONST_CALL_P' or 'RTL_PURE_CALL_P'
  11857. is true.
  11858. 'RTL_LOOPING_CONST_OR_PURE_CALL_P (X)'
  11859. In a 'call_insn' indicates that the insn represents a possibly
  11860. infinite looping call to a const or pure function. Stored in the
  11861. 'call' field and printed as '/c'. Only true if one of
  11862. 'RTL_CONST_CALL_P' or 'RTL_PURE_CALL_P' is true.
  11863. 'INSN_ANNULLED_BRANCH_P (X)'
  11864. In a 'jump_insn', 'call_insn', or 'insn' indicates that the branch
  11865. is an annulling one. See the discussion under 'sequence' below.
  11866. Stored in the 'unchanging' field and printed as '/u'.
  11867. 'INSN_DELETED_P (X)'
  11868. In an 'insn', 'call_insn', 'jump_insn', 'code_label',
  11869. 'jump_table_data', 'barrier', or 'note', nonzero if the insn has
  11870. been deleted. Stored in the 'volatil' field and printed as '/v'.
  11871. 'INSN_FROM_TARGET_P (X)'
  11872. In an 'insn' or 'jump_insn' or 'call_insn' in a delay slot of a
  11873. branch, indicates that the insn is from the target of the branch.
  11874. If the branch insn has 'INSN_ANNULLED_BRANCH_P' set, this insn will
  11875. only be executed if the branch is taken. For annulled branches
  11876. with 'INSN_FROM_TARGET_P' clear, the insn will be executed only if
  11877. the branch is not taken. When 'INSN_ANNULLED_BRANCH_P' is not set,
  11878. this insn will always be executed. Stored in the 'in_struct' field
  11879. and printed as '/s'.
  11880. 'LABEL_PRESERVE_P (X)'
  11881. In a 'code_label' or 'note', indicates that the label is referenced
  11882. by code or data not visible to the RTL of a given function. Labels
  11883. referenced by a non-local goto will have this bit set. Stored in
  11884. the 'in_struct' field and printed as '/s'.
  11885. 'LABEL_REF_NONLOCAL_P (X)'
  11886. In 'label_ref' and 'reg_label' expressions, nonzero if this is a
  11887. reference to a non-local label. Stored in the 'volatil' field and
  11888. printed as '/v'.
  11889. 'MEM_KEEP_ALIAS_SET_P (X)'
  11890. In 'mem' expressions, 1 if we should keep the alias set for this
  11891. mem unchanged when we access a component. Set to 1, for example,
  11892. when we are already in a non-addressable component of an aggregate.
  11893. Stored in the 'jump' field and printed as '/j'.
  11894. 'MEM_VOLATILE_P (X)'
  11895. In 'mem', 'asm_operands', and 'asm_input' expressions, nonzero for
  11896. volatile memory references. Stored in the 'volatil' field and
  11897. printed as '/v'.
  11898. 'MEM_NOTRAP_P (X)'
  11899. In 'mem', nonzero for memory references that will not trap. Stored
  11900. in the 'call' field and printed as '/c'.
  11901. 'MEM_POINTER (X)'
  11902. Nonzero in a 'mem' if the memory reference holds a pointer. Stored
  11903. in the 'frame_related' field and printed as '/f'.
  11904. 'REG_FUNCTION_VALUE_P (X)'
  11905. Nonzero in a 'reg' if it is the place in which this function's
  11906. value is going to be returned. (This happens only in a hard
  11907. register.) Stored in the 'return_val' field and printed as '/i'.
  11908. 'REG_POINTER (X)'
  11909. Nonzero in a 'reg' if the register holds a pointer. Stored in the
  11910. 'frame_related' field and printed as '/f'.
  11911. 'REG_USERVAR_P (X)'
  11912. In a 'reg', nonzero if it corresponds to a variable present in the
  11913. user's source code. Zero for temporaries generated internally by
  11914. the compiler. Stored in the 'volatil' field and printed as '/v'.
  11915. The same hard register may be used also for collecting the values
  11916. of functions called by this one, but 'REG_FUNCTION_VALUE_P' is zero
  11917. in this kind of use.
  11918. 'RTX_FRAME_RELATED_P (X)'
  11919. Nonzero in an 'insn', 'call_insn', 'jump_insn', 'barrier', or 'set'
  11920. which is part of a function prologue and sets the stack pointer,
  11921. sets the frame pointer, or saves a register. This flag should also
  11922. be set on an instruction that sets up a temporary register to use
  11923. in place of the frame pointer. Stored in the 'frame_related' field
  11924. and printed as '/f'.
  11925. In particular, on RISC targets where there are limits on the sizes
  11926. of immediate constants, it is sometimes impossible to reach the
  11927. register save area directly from the stack pointer. In that case,
  11928. a temporary register is used that is near enough to the register
  11929. save area, and the Canonical Frame Address, i.e., DWARF2's logical
  11930. frame pointer, register must (temporarily) be changed to be this
  11931. temporary register. So, the instruction that sets this temporary
  11932. register must be marked as 'RTX_FRAME_RELATED_P'.
  11933. If the marked instruction is overly complex (defined in terms of
  11934. what 'dwarf2out_frame_debug_expr' can handle), you will also have
  11935. to create a 'REG_FRAME_RELATED_EXPR' note and attach it to the
  11936. instruction. This note should contain a simple expression of the
  11937. computation performed by this instruction, i.e., one that
  11938. 'dwarf2out_frame_debug_expr' can handle.
  11939. This flag is required for exception handling support on targets
  11940. with RTL prologues.
  11941. 'MEM_READONLY_P (X)'
  11942. Nonzero in a 'mem', if the memory is statically allocated and
  11943. read-only.
  11944. Read-only in this context means never modified during the lifetime
  11945. of the program, not necessarily in ROM or in write-disabled pages.
  11946. A common example of the later is a shared library's global offset
  11947. table. This table is initialized by the runtime loader, so the
  11948. memory is technically writable, but after control is transferred
  11949. from the runtime loader to the application, this memory will never
  11950. be subsequently modified.
  11951. Stored in the 'unchanging' field and printed as '/u'.
  11952. 'SCHED_GROUP_P (X)'
  11953. During instruction scheduling, in an 'insn', 'call_insn',
  11954. 'jump_insn' or 'jump_table_data', indicates that the previous insn
  11955. must be scheduled together with this insn. This is used to ensure
  11956. that certain groups of instructions will not be split up by the
  11957. instruction scheduling pass, for example, 'use' insns before a
  11958. 'call_insn' may not be separated from the 'call_insn'. Stored in
  11959. the 'in_struct' field and printed as '/s'.
  11960. 'SET_IS_RETURN_P (X)'
  11961. For a 'set', nonzero if it is for a return. Stored in the 'jump'
  11962. field and printed as '/j'.
  11963. 'SIBLING_CALL_P (X)'
  11964. For a 'call_insn', nonzero if the insn is a sibling call. Stored
  11965. in the 'jump' field and printed as '/j'.
  11966. 'STRING_POOL_ADDRESS_P (X)'
  11967. For a 'symbol_ref' expression, nonzero if it addresses this
  11968. function's string constant pool. Stored in the 'frame_related'
  11969. field and printed as '/f'.
  11970. 'SUBREG_PROMOTED_UNSIGNED_P (X)'
  11971. Returns a value greater then zero for a 'subreg' that has
  11972. 'SUBREG_PROMOTED_VAR_P' nonzero if the object being referenced is
  11973. kept zero-extended, zero if it is kept sign-extended, and less then
  11974. zero if it is extended some other way via the 'ptr_extend'
  11975. instruction. Stored in the 'unchanging' field and 'volatil' field,
  11976. printed as '/u' and '/v'. This macro may only be used to get the
  11977. value it may not be used to change the value. Use
  11978. 'SUBREG_PROMOTED_UNSIGNED_SET' to change the value.
  11979. 'SUBREG_PROMOTED_UNSIGNED_SET (X)'
  11980. Set the 'unchanging' and 'volatil' fields in a 'subreg' to reflect
  11981. zero, sign, or other extension. If 'volatil' is zero, then
  11982. 'unchanging' as nonzero means zero extension and as zero means sign
  11983. extension. If 'volatil' is nonzero then some other type of
  11984. extension was done via the 'ptr_extend' instruction.
  11985. 'SUBREG_PROMOTED_VAR_P (X)'
  11986. Nonzero in a 'subreg' if it was made when accessing an object that
  11987. was promoted to a wider mode in accord with the 'PROMOTED_MODE'
  11988. machine description macro (*note Storage Layout::). In this case,
  11989. the mode of the 'subreg' is the declared mode of the object and the
  11990. mode of 'SUBREG_REG' is the mode of the register that holds the
  11991. object. Promoted variables are always either sign- or
  11992. zero-extended to the wider mode on every assignment. Stored in the
  11993. 'in_struct' field and printed as '/s'.
  11994. 'SYMBOL_REF_USED (X)'
  11995. In a 'symbol_ref', indicates that X has been used. This is
  11996. normally only used to ensure that X is only declared external once.
  11997. Stored in the 'used' field.
  11998. 'SYMBOL_REF_WEAK (X)'
  11999. In a 'symbol_ref', indicates that X has been declared weak. Stored
  12000. in the 'return_val' field and printed as '/i'.
  12001. 'SYMBOL_REF_FLAG (X)'
  12002. In a 'symbol_ref', this is used as a flag for machine-specific
  12003. purposes. Stored in the 'volatil' field and printed as '/v'.
  12004. Most uses of 'SYMBOL_REF_FLAG' are historic and may be subsumed by
  12005. 'SYMBOL_REF_FLAGS'. Certainly use of 'SYMBOL_REF_FLAGS' is
  12006. mandatory if the target requires more than one bit of storage.
  12007. 'PREFETCH_SCHEDULE_BARRIER_P (X)'
  12008. In a 'prefetch', indicates that the prefetch is a scheduling
  12009. barrier. No other INSNs will be moved over it. Stored in the
  12010. 'volatil' field and printed as '/v'.
  12011. These are the fields to which the above macros refer:
  12012. 'call'
  12013. In a 'mem', 1 means that the memory reference will not trap.
  12014. In a 'call', 1 means that this pure or const call may possibly
  12015. infinite loop.
  12016. In an RTL dump, this flag is represented as '/c'.
  12017. 'frame_related'
  12018. In an 'insn' or 'set' expression, 1 means that it is part of a
  12019. function prologue and sets the stack pointer, sets the frame
  12020. pointer, saves a register, or sets up a temporary register to use
  12021. in place of the frame pointer.
  12022. In 'reg' expressions, 1 means that the register holds a pointer.
  12023. In 'mem' expressions, 1 means that the memory reference holds a
  12024. pointer.
  12025. In 'symbol_ref' expressions, 1 means that the reference addresses
  12026. this function's string constant pool.
  12027. In an RTL dump, this flag is represented as '/f'.
  12028. 'in_struct'
  12029. In 'reg' expressions, it is 1 if the register has its entire life
  12030. contained within the test expression of some loop.
  12031. In 'subreg' expressions, 1 means that the 'subreg' is accessing an
  12032. object that has had its mode promoted from a wider mode.
  12033. In 'label_ref' expressions, 1 means that the referenced label is
  12034. outside the innermost loop containing the insn in which the
  12035. 'label_ref' was found.
  12036. In 'code_label' expressions, it is 1 if the label may never be
  12037. deleted. This is used for labels which are the target of non-local
  12038. gotos. Such a label that would have been deleted is replaced with
  12039. a 'note' of type 'NOTE_INSN_DELETED_LABEL'.
  12040. In an 'insn' during dead-code elimination, 1 means that the insn is
  12041. dead code.
  12042. In an 'insn' or 'jump_insn' during reorg for an insn in the delay
  12043. slot of a branch, 1 means that this insn is from the target of the
  12044. branch.
  12045. In an 'insn' during instruction scheduling, 1 means that this insn
  12046. must be scheduled as part of a group together with the previous
  12047. insn.
  12048. In an RTL dump, this flag is represented as '/s'.
  12049. 'return_val'
  12050. In 'reg' expressions, 1 means the register contains the value to be
  12051. returned by the current function. On machines that pass parameters
  12052. in registers, the same register number may be used for parameters
  12053. as well, but this flag is not set on such uses.
  12054. In 'symbol_ref' expressions, 1 means the referenced symbol is weak.
  12055. In 'call' expressions, 1 means the call is pure.
  12056. In an RTL dump, this flag is represented as '/i'.
  12057. 'jump'
  12058. In a 'mem' expression, 1 means we should keep the alias set for
  12059. this mem unchanged when we access a component.
  12060. In a 'set', 1 means it is for a return.
  12061. In a 'call_insn', 1 means it is a sibling call.
  12062. In an RTL dump, this flag is represented as '/j'.
  12063. 'unchanging'
  12064. In 'reg' and 'mem' expressions, 1 means that the value of the
  12065. expression never changes.
  12066. In 'subreg' expressions, it is 1 if the 'subreg' references an
  12067. unsigned object whose mode has been promoted to a wider mode.
  12068. In an 'insn' or 'jump_insn' in the delay slot of a branch
  12069. instruction, 1 means an annulling branch should be used.
  12070. In a 'symbol_ref' expression, 1 means that this symbol addresses
  12071. something in the per-function constant pool.
  12072. In a 'call_insn' 1 means that this instruction is a call to a const
  12073. function.
  12074. In an RTL dump, this flag is represented as '/u'.
  12075. 'used'
  12076. This flag is used directly (without an access macro) at the end of
  12077. RTL generation for a function, to count the number of times an
  12078. expression appears in insns. Expressions that appear more than
  12079. once are copied, according to the rules for shared structure (*note
  12080. Sharing::).
  12081. For a 'reg', it is used directly (without an access macro) by the
  12082. leaf register renumbering code to ensure that each register is only
  12083. renumbered once.
  12084. In a 'symbol_ref', it indicates that an external declaration for
  12085. the symbol has already been written.
  12086. 'volatil'
  12087. In a 'mem', 'asm_operands', or 'asm_input' expression, it is 1 if
  12088. the memory reference is volatile. Volatile memory references may
  12089. not be deleted, reordered or combined.
  12090. In a 'symbol_ref' expression, it is used for machine-specific
  12091. purposes.
  12092. In a 'reg' expression, it is 1 if the value is a user-level
  12093. variable. 0 indicates an internal compiler temporary.
  12094. In an 'insn', 1 means the insn has been deleted.
  12095. In 'label_ref' and 'reg_label' expressions, 1 means a reference to
  12096. a non-local label.
  12097. In 'prefetch' expressions, 1 means that the containing insn is a
  12098. scheduling barrier.
  12099. In an RTL dump, this flag is represented as '/v'.
  12100. 
  12101. File: gccint.info, Node: Machine Modes, Next: Constants, Prev: Flags, Up: RTL
  12102. 13.6 Machine Modes
  12103. ==================
  12104. A machine mode describes a size of data object and the representation
  12105. used for it. In the C code, machine modes are represented by an
  12106. enumeration type, 'machine_mode', defined in 'machmode.def'. Each RTL
  12107. expression has room for a machine mode and so do certain kinds of tree
  12108. expressions (declarations and types, to be precise).
  12109. In debugging dumps and machine descriptions, the machine mode of an RTL
  12110. expression is written after the expression code with a colon to separate
  12111. them. The letters 'mode' which appear at the end of each machine mode
  12112. name are omitted. For example, '(reg:SI 38)' is a 'reg' expression with
  12113. machine mode 'SImode'. If the mode is 'VOIDmode', it is not written at
  12114. all.
  12115. Here is a table of machine modes. The term "byte" below refers to an
  12116. object of 'BITS_PER_UNIT' bits (*note Storage Layout::).
  12117. 'BImode'
  12118. "Bit" mode represents a single bit, for predicate registers.
  12119. 'QImode'
  12120. "Quarter-Integer" mode represents a single byte treated as an
  12121. integer.
  12122. 'HImode'
  12123. "Half-Integer" mode represents a two-byte integer.
  12124. 'PSImode'
  12125. "Partial Single Integer" mode represents an integer which occupies
  12126. four bytes but which doesn't really use all four. On some
  12127. machines, this is the right mode to use for pointers.
  12128. 'SImode'
  12129. "Single Integer" mode represents a four-byte integer.
  12130. 'PDImode'
  12131. "Partial Double Integer" mode represents an integer which occupies
  12132. eight bytes but which doesn't really use all eight. On some
  12133. machines, this is the right mode to use for certain pointers.
  12134. 'DImode'
  12135. "Double Integer" mode represents an eight-byte integer.
  12136. 'TImode'
  12137. "Tetra Integer" (?) mode represents a sixteen-byte integer.
  12138. 'OImode'
  12139. "Octa Integer" (?) mode represents a thirty-two-byte integer.
  12140. 'XImode'
  12141. "Hexadeca Integer" (?) mode represents a sixty-four-byte integer.
  12142. 'QFmode'
  12143. "Quarter-Floating" mode represents a quarter-precision (single
  12144. byte) floating point number.
  12145. 'HFmode'
  12146. "Half-Floating" mode represents a half-precision (two byte)
  12147. floating point number.
  12148. 'TQFmode'
  12149. "Three-Quarter-Floating" (?) mode represents a
  12150. three-quarter-precision (three byte) floating point number.
  12151. 'SFmode'
  12152. "Single Floating" mode represents a four byte floating point
  12153. number. In the common case, of a processor with IEEE arithmetic
  12154. and 8-bit bytes, this is a single-precision IEEE floating point
  12155. number; it can also be used for double-precision (on processors
  12156. with 16-bit bytes) and single-precision VAX and IBM types.
  12157. 'DFmode'
  12158. "Double Floating" mode represents an eight byte floating point
  12159. number. In the common case, of a processor with IEEE arithmetic
  12160. and 8-bit bytes, this is a double-precision IEEE floating point
  12161. number.
  12162. 'XFmode'
  12163. "Extended Floating" mode represents an IEEE extended floating point
  12164. number. This mode only has 80 meaningful bits (ten bytes). Some
  12165. processors require such numbers to be padded to twelve bytes,
  12166. others to sixteen; this mode is used for either.
  12167. 'SDmode'
  12168. "Single Decimal Floating" mode represents a four byte decimal
  12169. floating point number (as distinct from conventional binary
  12170. floating point).
  12171. 'DDmode'
  12172. "Double Decimal Floating" mode represents an eight byte decimal
  12173. floating point number.
  12174. 'TDmode'
  12175. "Tetra Decimal Floating" mode represents a sixteen byte decimal
  12176. floating point number all 128 of whose bits are meaningful.
  12177. 'TFmode'
  12178. "Tetra Floating" mode represents a sixteen byte floating point
  12179. number all 128 of whose bits are meaningful. One common use is the
  12180. IEEE quad-precision format.
  12181. 'QQmode'
  12182. "Quarter-Fractional" mode represents a single byte treated as a
  12183. signed fractional number. The default format is "s.7".
  12184. 'HQmode'
  12185. "Half-Fractional" mode represents a two-byte signed fractional
  12186. number. The default format is "s.15".
  12187. 'SQmode'
  12188. "Single Fractional" mode represents a four-byte signed fractional
  12189. number. The default format is "s.31".
  12190. 'DQmode'
  12191. "Double Fractional" mode represents an eight-byte signed fractional
  12192. number. The default format is "s.63".
  12193. 'TQmode'
  12194. "Tetra Fractional" mode represents a sixteen-byte signed fractional
  12195. number. The default format is "s.127".
  12196. 'UQQmode'
  12197. "Unsigned Quarter-Fractional" mode represents a single byte treated
  12198. as an unsigned fractional number. The default format is ".8".
  12199. 'UHQmode'
  12200. "Unsigned Half-Fractional" mode represents a two-byte unsigned
  12201. fractional number. The default format is ".16".
  12202. 'USQmode'
  12203. "Unsigned Single Fractional" mode represents a four-byte unsigned
  12204. fractional number. The default format is ".32".
  12205. 'UDQmode'
  12206. "Unsigned Double Fractional" mode represents an eight-byte unsigned
  12207. fractional number. The default format is ".64".
  12208. 'UTQmode'
  12209. "Unsigned Tetra Fractional" mode represents a sixteen-byte unsigned
  12210. fractional number. The default format is ".128".
  12211. 'HAmode'
  12212. "Half-Accumulator" mode represents a two-byte signed accumulator.
  12213. The default format is "s8.7".
  12214. 'SAmode'
  12215. "Single Accumulator" mode represents a four-byte signed
  12216. accumulator. The default format is "s16.15".
  12217. 'DAmode'
  12218. "Double Accumulator" mode represents an eight-byte signed
  12219. accumulator. The default format is "s32.31".
  12220. 'TAmode'
  12221. "Tetra Accumulator" mode represents a sixteen-byte signed
  12222. accumulator. The default format is "s64.63".
  12223. 'UHAmode'
  12224. "Unsigned Half-Accumulator" mode represents a two-byte unsigned
  12225. accumulator. The default format is "8.8".
  12226. 'USAmode'
  12227. "Unsigned Single Accumulator" mode represents a four-byte unsigned
  12228. accumulator. The default format is "16.16".
  12229. 'UDAmode'
  12230. "Unsigned Double Accumulator" mode represents an eight-byte
  12231. unsigned accumulator. The default format is "32.32".
  12232. 'UTAmode'
  12233. "Unsigned Tetra Accumulator" mode represents a sixteen-byte
  12234. unsigned accumulator. The default format is "64.64".
  12235. 'CCmode'
  12236. "Condition Code" mode represents the value of a condition code,
  12237. which is a machine-specific set of bits used to represent the
  12238. result of a comparison operation. Other machine-specific modes may
  12239. also be used for the condition code. These modes are not used on
  12240. machines that use 'cc0' (*note Condition Code::).
  12241. 'BLKmode'
  12242. "Block" mode represents values that are aggregates to which none of
  12243. the other modes apply. In RTL, only memory references can have
  12244. this mode, and only if they appear in string-move or vector
  12245. instructions. On machines which have no such instructions,
  12246. 'BLKmode' will not appear in RTL.
  12247. 'VOIDmode'
  12248. Void mode means the absence of a mode or an unspecified mode. For
  12249. example, RTL expressions of code 'const_int' have mode 'VOIDmode'
  12250. because they can be taken to have whatever mode the context
  12251. requires. In debugging dumps of RTL, 'VOIDmode' is expressed by
  12252. the absence of any mode.
  12253. 'QCmode, HCmode, SCmode, DCmode, XCmode, TCmode'
  12254. These modes stand for a complex number represented as a pair of
  12255. floating point values. The floating point values are in 'QFmode',
  12256. 'HFmode', 'SFmode', 'DFmode', 'XFmode', and 'TFmode', respectively.
  12257. 'CQImode, CHImode, CSImode, CDImode, CTImode, COImode, CPSImode'
  12258. These modes stand for a complex number represented as a pair of
  12259. integer values. The integer values are in 'QImode', 'HImode',
  12260. 'SImode', 'DImode', 'TImode', 'OImode', and 'PSImode',
  12261. respectively.
  12262. 'BND32mode BND64mode'
  12263. These modes stand for bounds for pointer of 32 and 64 bit size
  12264. respectively. Mode size is double pointer mode size.
  12265. The machine description defines 'Pmode' as a C macro which expands into
  12266. the machine mode used for addresses. Normally this is the mode whose
  12267. size is 'BITS_PER_WORD', 'SImode' on 32-bit machines.
  12268. The only modes which a machine description must support are 'QImode',
  12269. and the modes corresponding to 'BITS_PER_WORD', 'FLOAT_TYPE_SIZE' and
  12270. 'DOUBLE_TYPE_SIZE'. The compiler will attempt to use 'DImode' for
  12271. 8-byte structures and unions, but this can be prevented by overriding
  12272. the definition of 'MAX_FIXED_MODE_SIZE'. Alternatively, you can have
  12273. the compiler use 'TImode' for 16-byte structures and unions. Likewise,
  12274. you can arrange for the C type 'short int' to avoid using 'HImode'.
  12275. Very few explicit references to machine modes remain in the compiler
  12276. and these few references will soon be removed. Instead, the machine
  12277. modes are divided into mode classes. These are represented by the
  12278. enumeration type 'enum mode_class' defined in 'machmode.h'. The
  12279. possible mode classes are:
  12280. 'MODE_INT'
  12281. Integer modes. By default these are 'BImode', 'QImode', 'HImode',
  12282. 'SImode', 'DImode', 'TImode', and 'OImode'.
  12283. 'MODE_PARTIAL_INT'
  12284. The "partial integer" modes, 'PQImode', 'PHImode', 'PSImode' and
  12285. 'PDImode'.
  12286. 'MODE_FLOAT'
  12287. Floating point modes. By default these are 'QFmode', 'HFmode',
  12288. 'TQFmode', 'SFmode', 'DFmode', 'XFmode' and 'TFmode'.
  12289. 'MODE_DECIMAL_FLOAT'
  12290. Decimal floating point modes. By default these are 'SDmode',
  12291. 'DDmode' and 'TDmode'.
  12292. 'MODE_FRACT'
  12293. Signed fractional modes. By default these are 'QQmode', 'HQmode',
  12294. 'SQmode', 'DQmode' and 'TQmode'.
  12295. 'MODE_UFRACT'
  12296. Unsigned fractional modes. By default these are 'UQQmode',
  12297. 'UHQmode', 'USQmode', 'UDQmode' and 'UTQmode'.
  12298. 'MODE_ACCUM'
  12299. Signed accumulator modes. By default these are 'HAmode', 'SAmode',
  12300. 'DAmode' and 'TAmode'.
  12301. 'MODE_UACCUM'
  12302. Unsigned accumulator modes. By default these are 'UHAmode',
  12303. 'USAmode', 'UDAmode' and 'UTAmode'.
  12304. 'MODE_COMPLEX_INT'
  12305. Complex integer modes. (These are not currently implemented).
  12306. 'MODE_COMPLEX_FLOAT'
  12307. Complex floating point modes. By default these are 'QCmode',
  12308. 'HCmode', 'SCmode', 'DCmode', 'XCmode', and 'TCmode'.
  12309. 'MODE_FUNCTION'
  12310. Algol or Pascal function variables including a static chain.
  12311. (These are not currently implemented).
  12312. 'MODE_CC'
  12313. Modes representing condition code values. These are 'CCmode' plus
  12314. any 'CC_MODE' modes listed in the 'MACHINE-modes.def'. *Note Jump
  12315. Patterns::, also see *note Condition Code::.
  12316. 'MODE_POINTER_BOUNDS'
  12317. Pointer bounds modes. Used to represent values of pointer bounds
  12318. type. Operations in these modes may be executed as NOPs depending
  12319. on hardware features and environment setup.
  12320. 'MODE_RANDOM'
  12321. This is a catchall mode class for modes which don't fit into the
  12322. above classes. Currently 'VOIDmode' and 'BLKmode' are in
  12323. 'MODE_RANDOM'.
  12324. Here are some C macros that relate to machine modes:
  12325. 'GET_MODE (X)'
  12326. Returns the machine mode of the RTX X.
  12327. 'PUT_MODE (X, NEWMODE)'
  12328. Alters the machine mode of the RTX X to be NEWMODE.
  12329. 'NUM_MACHINE_MODES'
  12330. Stands for the number of machine modes available on the target
  12331. machine. This is one greater than the largest numeric value of any
  12332. machine mode.
  12333. 'GET_MODE_NAME (M)'
  12334. Returns the name of mode M as a string.
  12335. 'GET_MODE_CLASS (M)'
  12336. Returns the mode class of mode M.
  12337. 'GET_MODE_WIDER_MODE (M)'
  12338. Returns the next wider natural mode. For example, the expression
  12339. 'GET_MODE_WIDER_MODE (QImode)' returns 'HImode'.
  12340. 'GET_MODE_SIZE (M)'
  12341. Returns the size in bytes of a datum of mode M.
  12342. 'GET_MODE_BITSIZE (M)'
  12343. Returns the size in bits of a datum of mode M.
  12344. 'GET_MODE_IBIT (M)'
  12345. Returns the number of integral bits of a datum of fixed-point mode
  12346. M.
  12347. 'GET_MODE_FBIT (M)'
  12348. Returns the number of fractional bits of a datum of fixed-point
  12349. mode M.
  12350. 'GET_MODE_MASK (M)'
  12351. Returns a bitmask containing 1 for all bits in a word that fit
  12352. within mode M. This macro can only be used for modes whose bitsize
  12353. is less than or equal to 'HOST_BITS_PER_INT'.
  12354. 'GET_MODE_ALIGNMENT (M)'
  12355. Return the required alignment, in bits, for an object of mode M.
  12356. 'GET_MODE_UNIT_SIZE (M)'
  12357. Returns the size in bytes of the subunits of a datum of mode M.
  12358. This is the same as 'GET_MODE_SIZE' except in the case of complex
  12359. modes. For them, the unit size is the size of the real or
  12360. imaginary part.
  12361. 'GET_MODE_NUNITS (M)'
  12362. Returns the number of units contained in a mode, i.e.,
  12363. 'GET_MODE_SIZE' divided by 'GET_MODE_UNIT_SIZE'.
  12364. 'GET_CLASS_NARROWEST_MODE (C)'
  12365. Returns the narrowest mode in mode class C.
  12366. The following 3 variables are defined on every target. They can be
  12367. used to allocate buffers that are guaranteed to be large enough to hold
  12368. any value that can be represented on the target. The first two can be
  12369. overridden by defining them in the target's mode.def file, however, the
  12370. value must be a constant that can determined very early in the
  12371. compilation process. The third symbol cannot be overridden.
  12372. 'BITS_PER_UNIT'
  12373. The number of bits in an addressable storage unit (byte). If you
  12374. do not define this, the default is 8.
  12375. 'MAX_BITSIZE_MODE_ANY_INT'
  12376. The maximum bitsize of any mode that is used in integer math. This
  12377. should be overridden by the target if it uses large integers as
  12378. containers for larger vectors but otherwise never uses the contents
  12379. to compute integer values.
  12380. 'MAX_BITSIZE_MODE_ANY_MODE'
  12381. The bitsize of the largest mode on the target.
  12382. The global variables 'byte_mode' and 'word_mode' contain modes whose
  12383. classes are 'MODE_INT' and whose bitsizes are either 'BITS_PER_UNIT' or
  12384. 'BITS_PER_WORD', respectively. On 32-bit machines, these are 'QImode'
  12385. and 'SImode', respectively.
  12386. 
  12387. File: gccint.info, Node: Constants, Next: Regs and Memory, Prev: Machine Modes, Up: RTL
  12388. 13.7 Constant Expression Types
  12389. ==============================
  12390. The simplest RTL expressions are those that represent constant values.
  12391. '(const_int I)'
  12392. This type of expression represents the integer value I. I is
  12393. customarily accessed with the macro 'INTVAL' as in 'INTVAL (EXP)',
  12394. which is equivalent to 'XWINT (EXP, 0)'.
  12395. Constants generated for modes with fewer bits than in
  12396. 'HOST_WIDE_INT' must be sign extended to full width (e.g., with
  12397. 'gen_int_mode'). For constants for modes with more bits than in
  12398. 'HOST_WIDE_INT' the implied high order bits of that constant are
  12399. copies of the top bit. Note however that values are neither
  12400. inherently signed nor inherently unsigned; where necessary,
  12401. signedness is determined by the rtl operation instead.
  12402. There is only one expression object for the integer value zero; it
  12403. is the value of the variable 'const0_rtx'. Likewise, the only
  12404. expression for integer value one is found in 'const1_rtx', the only
  12405. expression for integer value two is found in 'const2_rtx', and the
  12406. only expression for integer value negative one is found in
  12407. 'constm1_rtx'. Any attempt to create an expression of code
  12408. 'const_int' and value zero, one, two or negative one will return
  12409. 'const0_rtx', 'const1_rtx', 'const2_rtx' or 'constm1_rtx' as
  12410. appropriate.
  12411. Similarly, there is only one object for the integer whose value is
  12412. 'STORE_FLAG_VALUE'. It is found in 'const_true_rtx'. If
  12413. 'STORE_FLAG_VALUE' is one, 'const_true_rtx' and 'const1_rtx' will
  12414. point to the same object. If 'STORE_FLAG_VALUE' is -1,
  12415. 'const_true_rtx' and 'constm1_rtx' will point to the same object.
  12416. '(const_double:M I0 I1 ...)'
  12417. This represents either a floating-point constant of mode M or (on
  12418. older ports that do not define 'TARGET_SUPPORTS_WIDE_INT') an
  12419. integer constant too large to fit into 'HOST_BITS_PER_WIDE_INT'
  12420. bits but small enough to fit within twice that number of bits. In
  12421. the latter case, M will be 'VOIDmode'. For integral values
  12422. constants for modes with more bits than twice the number in
  12423. 'HOST_WIDE_INT' the implied high order bits of that constant are
  12424. copies of the top bit of 'CONST_DOUBLE_HIGH'. Note however that
  12425. integral values are neither inherently signed nor inherently
  12426. unsigned; where necessary, signedness is determined by the rtl
  12427. operation instead.
  12428. On more modern ports, 'CONST_DOUBLE' only represents floating point
  12429. values. New ports define 'TARGET_SUPPORTS_WIDE_INT' to make this
  12430. designation.
  12431. If M is 'VOIDmode', the bits of the value are stored in I0 and I1.
  12432. I0 is customarily accessed with the macro 'CONST_DOUBLE_LOW' and I1
  12433. with 'CONST_DOUBLE_HIGH'.
  12434. If the constant is floating point (regardless of its precision),
  12435. then the number of integers used to store the value depends on the
  12436. size of 'REAL_VALUE_TYPE' (*note Floating Point::). The integers
  12437. represent a floating point number, but not precisely in the target
  12438. machine's or host machine's floating point format. To convert them
  12439. to the precise bit pattern used by the target machine, use the
  12440. macro 'REAL_VALUE_TO_TARGET_DOUBLE' and friends (*note Data
  12441. Output::).
  12442. '(const_wide_int:M NUNITS ELT0 ...)'
  12443. This contains an array of 'HOST_WIDE_INT's that is large enough to
  12444. hold any constant that can be represented on the target. This form
  12445. of rtl is only used on targets that define
  12446. 'TARGET_SUPPORTS_WIDE_INT' to be nonzero and then 'CONST_DOUBLE's
  12447. are only used to hold floating-point values. If the target leaves
  12448. 'TARGET_SUPPORTS_WIDE_INT' defined as 0, 'CONST_WIDE_INT's are not
  12449. used and 'CONST_DOUBLE's are as they were before.
  12450. The values are stored in a compressed format. The higher-order 0s
  12451. or -1s are not represented if they are just the logical sign
  12452. extension of the number that is represented.
  12453. 'CONST_WIDE_INT_VEC (CODE)'
  12454. Returns the entire array of 'HOST_WIDE_INT's that are used to store
  12455. the value. This macro should be rarely used.
  12456. 'CONST_WIDE_INT_NUNITS (CODE)'
  12457. The number of 'HOST_WIDE_INT's used to represent the number. Note
  12458. that this generally is smaller than the number of 'HOST_WIDE_INT's
  12459. implied by the mode size.
  12460. 'CONST_WIDE_INT_NUNITS (CODE,I)'
  12461. Returns the 'i'th element of the array. Element 0 is contains the
  12462. low order bits of the constant.
  12463. '(const_fixed:M ...)'
  12464. Represents a fixed-point constant of mode M. The operand is a data
  12465. structure of type 'struct fixed_value' and is accessed with the
  12466. macro 'CONST_FIXED_VALUE'. The high part of data is accessed with
  12467. 'CONST_FIXED_VALUE_HIGH'; the low part is accessed with
  12468. 'CONST_FIXED_VALUE_LOW'.
  12469. '(const_vector:M [X0 X1 ...])'
  12470. Represents a vector constant. The square brackets stand for the
  12471. vector containing the constant elements. X0, X1 and so on are the
  12472. 'const_int', 'const_double' or 'const_fixed' elements.
  12473. The number of units in a 'const_vector' is obtained with the macro
  12474. 'CONST_VECTOR_NUNITS' as in 'CONST_VECTOR_NUNITS (V)'.
  12475. Individual elements in a vector constant are accessed with the
  12476. macro 'CONST_VECTOR_ELT' as in 'CONST_VECTOR_ELT (V, N)' where V is
  12477. the vector constant and N is the element desired.
  12478. '(const_string STR)'
  12479. Represents a constant string with value STR. Currently this is
  12480. used only for insn attributes (*note Insn Attributes::) since
  12481. constant strings in C are placed in memory.
  12482. '(symbol_ref:MODE SYMBOL)'
  12483. Represents the value of an assembler label for data. SYMBOL is a
  12484. string that describes the name of the assembler label. If it
  12485. starts with a '*', the label is the rest of SYMBOL not including
  12486. the '*'. Otherwise, the label is SYMBOL, usually prefixed with
  12487. '_'.
  12488. The 'symbol_ref' contains a mode, which is usually 'Pmode'.
  12489. Usually that is the only mode for which a symbol is directly valid.
  12490. '(label_ref:MODE LABEL)'
  12491. Represents the value of an assembler label for code. It contains
  12492. one operand, an expression, which must be a 'code_label' or a
  12493. 'note' of type 'NOTE_INSN_DELETED_LABEL' that appears in the
  12494. instruction sequence to identify the place where the label should
  12495. go.
  12496. The reason for using a distinct expression type for code label
  12497. references is so that jump optimization can distinguish them.
  12498. The 'label_ref' contains a mode, which is usually 'Pmode'. Usually
  12499. that is the only mode for which a label is directly valid.
  12500. '(const:M EXP)'
  12501. Represents a constant that is the result of an assembly-time
  12502. arithmetic computation. The operand, EXP, is an expression that
  12503. contains only constants ('const_int', 'symbol_ref' and 'label_ref'
  12504. expressions) combined with 'plus' and 'minus'. However, not all
  12505. combinations are valid, since the assembler cannot do arbitrary
  12506. arithmetic on relocatable symbols.
  12507. M should be 'Pmode'.
  12508. '(high:M EXP)'
  12509. Represents the high-order bits of EXP, usually a 'symbol_ref'. The
  12510. number of bits is machine-dependent and is normally the number of
  12511. bits specified in an instruction that initializes the high order
  12512. bits of a register. It is used with 'lo_sum' to represent the
  12513. typical two-instruction sequence used in RISC machines to reference
  12514. a global memory location.
  12515. M should be 'Pmode'.
  12516. The macro 'CONST0_RTX (MODE)' refers to an expression with value 0 in
  12517. mode MODE. If mode MODE is of mode class 'MODE_INT', it returns
  12518. 'const0_rtx'. If mode MODE is of mode class 'MODE_FLOAT', it returns a
  12519. 'CONST_DOUBLE' expression in mode MODE. Otherwise, it returns a
  12520. 'CONST_VECTOR' expression in mode MODE. Similarly, the macro
  12521. 'CONST1_RTX (MODE)' refers to an expression with value 1 in mode MODE
  12522. and similarly for 'CONST2_RTX'. The 'CONST1_RTX' and 'CONST2_RTX'
  12523. macros are undefined for vector modes.
  12524. 
  12525. File: gccint.info, Node: Regs and Memory, Next: Arithmetic, Prev: Constants, Up: RTL
  12526. 13.8 Registers and Memory
  12527. =========================
  12528. Here are the RTL expression types for describing access to machine
  12529. registers and to main memory.
  12530. '(reg:M N)'
  12531. For small values of the integer N (those that are less than
  12532. 'FIRST_PSEUDO_REGISTER'), this stands for a reference to machine
  12533. register number N: a "hard register". For larger values of N, it
  12534. stands for a temporary value or "pseudo register". The compiler's
  12535. strategy is to generate code assuming an unlimited number of such
  12536. pseudo registers, and later convert them into hard registers or
  12537. into memory references.
  12538. M is the machine mode of the reference. It is necessary because
  12539. machines can generally refer to each register in more than one
  12540. mode. For example, a register may contain a full word but there
  12541. may be instructions to refer to it as a half word or as a single
  12542. byte, as well as instructions to refer to it as a floating point
  12543. number of various precisions.
  12544. Even for a register that the machine can access in only one mode,
  12545. the mode must always be specified.
  12546. The symbol 'FIRST_PSEUDO_REGISTER' is defined by the machine
  12547. description, since the number of hard registers on the machine is
  12548. an invariant characteristic of the machine. Note, however, that
  12549. not all of the machine registers must be general registers. All
  12550. the machine registers that can be used for storage of data are
  12551. given hard register numbers, even those that can be used only in
  12552. certain instructions or can hold only certain types of data.
  12553. A hard register may be accessed in various modes throughout one
  12554. function, but each pseudo register is given a natural mode and is
  12555. accessed only in that mode. When it is necessary to describe an
  12556. access to a pseudo register using a nonnatural mode, a 'subreg'
  12557. expression is used.
  12558. A 'reg' expression with a machine mode that specifies more than one
  12559. word of data may actually stand for several consecutive registers.
  12560. If in addition the register number specifies a hardware register,
  12561. then it actually represents several consecutive hardware registers
  12562. starting with the specified one.
  12563. Each pseudo register number used in a function's RTL code is
  12564. represented by a unique 'reg' expression.
  12565. Some pseudo register numbers, those within the range of
  12566. 'FIRST_VIRTUAL_REGISTER' to 'LAST_VIRTUAL_REGISTER' only appear
  12567. during the RTL generation phase and are eliminated before the
  12568. optimization phases. These represent locations in the stack frame
  12569. that cannot be determined until RTL generation for the function has
  12570. been completed. The following virtual register numbers are
  12571. defined:
  12572. 'VIRTUAL_INCOMING_ARGS_REGNUM'
  12573. This points to the first word of the incoming arguments passed
  12574. on the stack. Normally these arguments are placed there by
  12575. the caller, but the callee may have pushed some arguments that
  12576. were previously passed in registers.
  12577. When RTL generation is complete, this virtual register is
  12578. replaced by the sum of the register given by
  12579. 'ARG_POINTER_REGNUM' and the value of 'FIRST_PARM_OFFSET'.
  12580. 'VIRTUAL_STACK_VARS_REGNUM'
  12581. If 'FRAME_GROWS_DOWNWARD' is defined to a nonzero value, this
  12582. points to immediately above the first variable on the stack.
  12583. Otherwise, it points to the first variable on the stack.
  12584. 'VIRTUAL_STACK_VARS_REGNUM' is replaced with the sum of the
  12585. register given by 'FRAME_POINTER_REGNUM' and the value
  12586. 'STARTING_FRAME_OFFSET'.
  12587. 'VIRTUAL_STACK_DYNAMIC_REGNUM'
  12588. This points to the location of dynamically allocated memory on
  12589. the stack immediately after the stack pointer has been
  12590. adjusted by the amount of memory desired.
  12591. This virtual register is replaced by the sum of the register
  12592. given by 'STACK_POINTER_REGNUM' and the value
  12593. 'STACK_DYNAMIC_OFFSET'.
  12594. 'VIRTUAL_OUTGOING_ARGS_REGNUM'
  12595. This points to the location in the stack at which outgoing
  12596. arguments should be written when the stack is pre-pushed
  12597. (arguments pushed using push insns should always use
  12598. 'STACK_POINTER_REGNUM').
  12599. This virtual register is replaced by the sum of the register
  12600. given by 'STACK_POINTER_REGNUM' and the value
  12601. 'STACK_POINTER_OFFSET'.
  12602. '(subreg:M1 REG:M2 BYTENUM)'
  12603. 'subreg' expressions are used to refer to a register in a machine
  12604. mode other than its natural one, or to refer to one register of a
  12605. multi-part 'reg' that actually refers to several registers.
  12606. Each pseudo register has a natural mode. If it is necessary to
  12607. operate on it in a different mode, the register must be enclosed in
  12608. a 'subreg'.
  12609. There are currently three supported types for the first operand of
  12610. a 'subreg':
  12611. * pseudo registers This is the most common case. Most 'subreg's
  12612. have pseudo 'reg's as their first operand.
  12613. * mem 'subreg's of 'mem' were common in earlier versions of GCC
  12614. and are still supported. During the reload pass these are
  12615. replaced by plain 'mem's. On machines that do not do
  12616. instruction scheduling, use of 'subreg's of 'mem' are still
  12617. used, but this is no longer recommended. Such 'subreg's are
  12618. considered to be 'register_operand's rather than
  12619. 'memory_operand's before and during reload. Because of this,
  12620. the scheduling passes cannot properly schedule instructions
  12621. with 'subreg's of 'mem', so for machines that do scheduling,
  12622. 'subreg's of 'mem' should never be used. To support this, the
  12623. combine and recog passes have explicit code to inhibit the
  12624. creation of 'subreg's of 'mem' when 'INSN_SCHEDULING' is
  12625. defined.
  12626. The use of 'subreg's of 'mem' after the reload pass is an area
  12627. that is not well understood and should be avoided. There is
  12628. still some code in the compiler to support this, but this code
  12629. has possibly rotted. This use of 'subreg's is discouraged and
  12630. will most likely not be supported in the future.
  12631. * hard registers It is seldom necessary to wrap hard registers
  12632. in 'subreg's; such registers would normally reduce to a single
  12633. 'reg' rtx. This use of 'subreg's is discouraged and may not
  12634. be supported in the future.
  12635. 'subreg's of 'subreg's are not supported. Using
  12636. 'simplify_gen_subreg' is the recommended way to avoid this problem.
  12637. 'subreg's come in two distinct flavors, each having its own usage
  12638. and rules:
  12639. Paradoxical subregs
  12640. When M1 is strictly wider than M2, the 'subreg' expression is
  12641. called "paradoxical". The canonical test for this class of
  12642. 'subreg' is:
  12643. GET_MODE_SIZE (M1) > GET_MODE_SIZE (M2)
  12644. Paradoxical 'subreg's can be used as both lvalues and rvalues.
  12645. When used as an lvalue, the low-order bits of the source value
  12646. are stored in REG and the high-order bits are discarded. When
  12647. used as an rvalue, the low-order bits of the 'subreg' are
  12648. taken from REG while the high-order bits may or may not be
  12649. defined.
  12650. The high-order bits of rvalues are defined in the following
  12651. circumstances:
  12652. * 'subreg's of 'mem' When M2 is smaller than a word, the
  12653. macro 'LOAD_EXTEND_OP', can control how the high-order
  12654. bits are defined.
  12655. * 'subreg' of 'reg's The upper bits are defined when
  12656. 'SUBREG_PROMOTED_VAR_P' is true.
  12657. 'SUBREG_PROMOTED_UNSIGNED_P' describes what the upper
  12658. bits hold. Such subregs usually represent local
  12659. variables, register variables and parameter pseudo
  12660. variables that have been promoted to a wider mode.
  12661. BYTENUM is always zero for a paradoxical 'subreg', even on
  12662. big-endian targets.
  12663. For example, the paradoxical 'subreg':
  12664. (set (subreg:SI (reg:HI X) 0) Y)
  12665. stores the lower 2 bytes of Y in X and discards the upper 2
  12666. bytes. A subsequent:
  12667. (set Z (subreg:SI (reg:HI X) 0))
  12668. would set the lower two bytes of Z to Y and set the upper two
  12669. bytes to an unknown value assuming 'SUBREG_PROMOTED_VAR_P' is
  12670. false.
  12671. Normal subregs
  12672. When M1 is at least as narrow as M2 the 'subreg' expression is
  12673. called "normal".
  12674. Normal 'subreg's restrict consideration to certain bits of
  12675. REG. There are two cases. If M1 is smaller than a word, the
  12676. 'subreg' refers to the least-significant part (or "lowpart")
  12677. of one word of REG. If M1 is word-sized or greater, the
  12678. 'subreg' refers to one or more complete words.
  12679. When used as an lvalue, 'subreg' is a word-based accessor.
  12680. Storing to a 'subreg' modifies all the words of REG that
  12681. overlap the 'subreg', but it leaves the other words of REG
  12682. alone.
  12683. When storing to a normal 'subreg' that is smaller than a word,
  12684. the other bits of the referenced word are usually left in an
  12685. undefined state. This laxity makes it easier to generate
  12686. efficient code for such instructions. To represent an
  12687. instruction that preserves all the bits outside of those in
  12688. the 'subreg', use 'strict_low_part' or 'zero_extract' around
  12689. the 'subreg'.
  12690. BYTENUM must identify the offset of the first byte of the
  12691. 'subreg' from the start of REG, assuming that REG is laid out
  12692. in memory order. The memory order of bytes is defined by two
  12693. target macros, 'WORDS_BIG_ENDIAN' and 'BYTES_BIG_ENDIAN':
  12694. * 'WORDS_BIG_ENDIAN', if set to 1, says that byte number
  12695. zero is part of the most significant word; otherwise, it
  12696. is part of the least significant word.
  12697. * 'BYTES_BIG_ENDIAN', if set to 1, says that byte number
  12698. zero is the most significant byte within a word;
  12699. otherwise, it is the least significant byte within a
  12700. word.
  12701. On a few targets, 'FLOAT_WORDS_BIG_ENDIAN' disagrees with
  12702. 'WORDS_BIG_ENDIAN'. However, most parts of the compiler treat
  12703. floating point values as if they had the same endianness as
  12704. integer values. This works because they handle them solely as
  12705. a collection of integer values, with no particular numerical
  12706. value. Only real.c and the runtime libraries care about
  12707. 'FLOAT_WORDS_BIG_ENDIAN'.
  12708. Thus,
  12709. (subreg:HI (reg:SI X) 2)
  12710. on a 'BYTES_BIG_ENDIAN', 'UNITS_PER_WORD == 4' target is the
  12711. same as
  12712. (subreg:HI (reg:SI X) 0)
  12713. on a little-endian, 'UNITS_PER_WORD == 4' target. Both
  12714. 'subreg's access the lower two bytes of register X.
  12715. A 'MODE_PARTIAL_INT' mode behaves as if it were as wide as the
  12716. corresponding 'MODE_INT' mode, except that it has an unknown number
  12717. of undefined bits. For example:
  12718. (subreg:PSI (reg:SI 0) 0)
  12719. accesses the whole of '(reg:SI 0)', but the exact relationship
  12720. between the 'PSImode' value and the 'SImode' value is not defined.
  12721. If we assume 'UNITS_PER_WORD <= 4', then the following two
  12722. 'subreg's:
  12723. (subreg:PSI (reg:DI 0) 0)
  12724. (subreg:PSI (reg:DI 0) 4)
  12725. represent independent 4-byte accesses to the two halves of '(reg:DI
  12726. 0)'. Both 'subreg's have an unknown number of undefined bits.
  12727. If 'UNITS_PER_WORD <= 2' then these two 'subreg's:
  12728. (subreg:HI (reg:PSI 0) 0)
  12729. (subreg:HI (reg:PSI 0) 2)
  12730. represent independent 2-byte accesses that together span the whole
  12731. of '(reg:PSI 0)'. Storing to the first 'subreg' does not affect
  12732. the value of the second, and vice versa. '(reg:PSI 0)' has an
  12733. unknown number of undefined bits, so the assignment:
  12734. (set (subreg:HI (reg:PSI 0) 0) (reg:HI 4))
  12735. does not guarantee that '(subreg:HI (reg:PSI 0) 0)' has the value
  12736. '(reg:HI 4)'.
  12737. The rules above apply to both pseudo REGs and hard REGs. If the
  12738. semantics are not correct for particular combinations of M1, M2 and
  12739. hard REG, the target-specific code must ensure that those
  12740. combinations are never used. For example:
  12741. CANNOT_CHANGE_MODE_CLASS (M2, M1, CLASS)
  12742. must be true for every class CLASS that includes REG.
  12743. The first operand of a 'subreg' expression is customarily accessed
  12744. with the 'SUBREG_REG' macro and the second operand is customarily
  12745. accessed with the 'SUBREG_BYTE' macro.
  12746. It has been several years since a platform in which
  12747. 'BYTES_BIG_ENDIAN' not equal to 'WORDS_BIG_ENDIAN' has been tested.
  12748. Anyone wishing to support such a platform in the future may be
  12749. confronted with code rot.
  12750. '(scratch:M)'
  12751. This represents a scratch register that will be required for the
  12752. execution of a single instruction and not used subsequently. It is
  12753. converted into a 'reg' by either the local register allocator or
  12754. the reload pass.
  12755. 'scratch' is usually present inside a 'clobber' operation (*note
  12756. Side Effects::).
  12757. '(cc0)'
  12758. This refers to the machine's condition code register. It has no
  12759. operands and may not have a machine mode. There are two ways to
  12760. use it:
  12761. * To stand for a complete set of condition code flags. This is
  12762. best on most machines, where each comparison sets the entire
  12763. series of flags.
  12764. With this technique, '(cc0)' may be validly used in only two
  12765. contexts: as the destination of an assignment (in test and
  12766. compare instructions) and in comparison operators comparing
  12767. against zero ('const_int' with value zero; that is to say,
  12768. 'const0_rtx').
  12769. * To stand for a single flag that is the result of a single
  12770. condition. This is useful on machines that have only a single
  12771. flag bit, and in which comparison instructions must specify
  12772. the condition to test.
  12773. With this technique, '(cc0)' may be validly used in only two
  12774. contexts: as the destination of an assignment (in test and
  12775. compare instructions) where the source is a comparison
  12776. operator, and as the first operand of 'if_then_else' (in a
  12777. conditional branch).
  12778. There is only one expression object of code 'cc0'; it is the value
  12779. of the variable 'cc0_rtx'. Any attempt to create an expression of
  12780. code 'cc0' will return 'cc0_rtx'.
  12781. Instructions can set the condition code implicitly. On many
  12782. machines, nearly all instructions set the condition code based on
  12783. the value that they compute or store. It is not necessary to
  12784. record these actions explicitly in the RTL because the machine
  12785. description includes a prescription for recognizing the
  12786. instructions that do so (by means of the macro 'NOTICE_UPDATE_CC').
  12787. *Note Condition Code::. Only instructions whose sole purpose is to
  12788. set the condition code, and instructions that use the condition
  12789. code, need mention '(cc0)'.
  12790. On some machines, the condition code register is given a register
  12791. number and a 'reg' is used instead of '(cc0)'. This is usually the
  12792. preferable approach if only a small subset of instructions modify
  12793. the condition code. Other machines store condition codes in
  12794. general registers; in such cases a pseudo register should be used.
  12795. Some machines, such as the SPARC and RS/6000, have two sets of
  12796. arithmetic instructions, one that sets and one that does not set
  12797. the condition code. This is best handled by normally generating
  12798. the instruction that does not set the condition code, and making a
  12799. pattern that both performs the arithmetic and sets the condition
  12800. code register (which would not be '(cc0)' in this case). For
  12801. examples, search for 'addcc' and 'andcc' in 'sparc.md'.
  12802. '(pc)'
  12803. This represents the machine's program counter. It has no operands
  12804. and may not have a machine mode. '(pc)' may be validly used only
  12805. in certain specific contexts in jump instructions.
  12806. There is only one expression object of code 'pc'; it is the value
  12807. of the variable 'pc_rtx'. Any attempt to create an expression of
  12808. code 'pc' will return 'pc_rtx'.
  12809. All instructions that do not jump alter the program counter
  12810. implicitly by incrementing it, but there is no need to mention this
  12811. in the RTL.
  12812. '(mem:M ADDR ALIAS)'
  12813. This RTX represents a reference to main memory at an address
  12814. represented by the expression ADDR. M specifies how large a unit
  12815. of memory is accessed. ALIAS specifies an alias set for the
  12816. reference. In general two items are in different alias sets if
  12817. they cannot reference the same memory address.
  12818. The construct '(mem:BLK (scratch))' is considered to alias all
  12819. other memories. Thus it may be used as a memory barrier in
  12820. epilogue stack deallocation patterns.
  12821. '(concatM RTX RTX)'
  12822. This RTX represents the concatenation of two other RTXs. This is
  12823. used for complex values. It should only appear in the RTL attached
  12824. to declarations and during RTL generation. It should not appear in
  12825. the ordinary insn chain.
  12826. '(concatnM [RTX ...])'
  12827. This RTX represents the concatenation of all the RTX to make a
  12828. single value. Like 'concat', this should only appear in
  12829. declarations, and not in the insn chain.
  12830. 
  12831. File: gccint.info, Node: Arithmetic, Next: Comparisons, Prev: Regs and Memory, Up: RTL
  12832. 13.9 RTL Expressions for Arithmetic
  12833. ===================================
  12834. Unless otherwise specified, all the operands of arithmetic expressions
  12835. must be valid for mode M. An operand is valid for mode M if it has mode
  12836. M, or if it is a 'const_int' or 'const_double' and M is a mode of class
  12837. 'MODE_INT'.
  12838. For commutative binary operations, constants should be placed in the
  12839. second operand.
  12840. '(plus:M X Y)'
  12841. '(ss_plus:M X Y)'
  12842. '(us_plus:M X Y)'
  12843. These three expressions all represent the sum of the values
  12844. represented by X and Y carried out in machine mode M. They differ
  12845. in their behavior on overflow of integer modes. 'plus' wraps round
  12846. modulo the width of M; 'ss_plus' saturates at the maximum signed
  12847. value representable in M; 'us_plus' saturates at the maximum
  12848. unsigned value.
  12849. '(lo_sum:M X Y)'
  12850. This expression represents the sum of X and the low-order bits of
  12851. Y. It is used with 'high' (*note Constants::) to represent the
  12852. typical two-instruction sequence used in RISC machines to reference
  12853. a global memory location.
  12854. The number of low order bits is machine-dependent but is normally
  12855. the number of bits in a 'Pmode' item minus the number of bits set
  12856. by 'high'.
  12857. M should be 'Pmode'.
  12858. '(minus:M X Y)'
  12859. '(ss_minus:M X Y)'
  12860. '(us_minus:M X Y)'
  12861. These three expressions represent the result of subtracting Y from
  12862. X, carried out in mode M. Behavior on overflow is the same as for
  12863. the three variants of 'plus' (see above).
  12864. '(compare:M X Y)'
  12865. Represents the result of subtracting Y from X for purposes of
  12866. comparison. The result is computed without overflow, as if with
  12867. infinite precision.
  12868. Of course, machines cannot really subtract with infinite precision.
  12869. However, they can pretend to do so when only the sign of the result
  12870. will be used, which is the case when the result is stored in the
  12871. condition code. And that is the _only_ way this kind of expression
  12872. may validly be used: as a value to be stored in the condition
  12873. codes, either '(cc0)' or a register. *Note Comparisons::.
  12874. The mode M is not related to the modes of X and Y, but instead is
  12875. the mode of the condition code value. If '(cc0)' is used, it is
  12876. 'VOIDmode'. Otherwise it is some mode in class 'MODE_CC', often
  12877. 'CCmode'. *Note Condition Code::. If M is 'VOIDmode' or 'CCmode',
  12878. the operation returns sufficient information (in an unspecified
  12879. format) so that any comparison operator can be applied to the
  12880. result of the 'COMPARE' operation. For other modes in class
  12881. 'MODE_CC', the operation only returns a subset of this information.
  12882. Normally, X and Y must have the same mode. Otherwise, 'compare' is
  12883. valid only if the mode of X is in class 'MODE_INT' and Y is a
  12884. 'const_int' or 'const_double' with mode 'VOIDmode'. The mode of X
  12885. determines what mode the comparison is to be done in; thus it must
  12886. not be 'VOIDmode'.
  12887. If one of the operands is a constant, it should be placed in the
  12888. second operand and the comparison code adjusted as appropriate.
  12889. A 'compare' specifying two 'VOIDmode' constants is not valid since
  12890. there is no way to know in what mode the comparison is to be
  12891. performed; the comparison must either be folded during the
  12892. compilation or the first operand must be loaded into a register
  12893. while its mode is still known.
  12894. '(neg:M X)'
  12895. '(ss_neg:M X)'
  12896. '(us_neg:M X)'
  12897. These two expressions represent the negation (subtraction from
  12898. zero) of the value represented by X, carried out in mode M. They
  12899. differ in the behavior on overflow of integer modes. In the case
  12900. of 'neg', the negation of the operand may be a number not
  12901. representable in mode M, in which case it is truncated to M.
  12902. 'ss_neg' and 'us_neg' ensure that an out-of-bounds result saturates
  12903. to the maximum or minimum signed or unsigned value.
  12904. '(mult:M X Y)'
  12905. '(ss_mult:M X Y)'
  12906. '(us_mult:M X Y)'
  12907. Represents the signed product of the values represented by X and Y
  12908. carried out in machine mode M. 'ss_mult' and 'us_mult' ensure that
  12909. an out-of-bounds result saturates to the maximum or minimum signed
  12910. or unsigned value.
  12911. Some machines support a multiplication that generates a product
  12912. wider than the operands. Write the pattern for this as
  12913. (mult:M (sign_extend:M X) (sign_extend:M Y))
  12914. where M is wider than the modes of X and Y, which need not be the
  12915. same.
  12916. For unsigned widening multiplication, use the same idiom, but with
  12917. 'zero_extend' instead of 'sign_extend'.
  12918. '(fma:M X Y Z)'
  12919. Represents the 'fma', 'fmaf', and 'fmal' builtin functions, which
  12920. compute 'X * Y + Z' without doing an intermediate rounding step.
  12921. '(div:M X Y)'
  12922. '(ss_div:M X Y)'
  12923. Represents the quotient in signed division of X by Y, carried out
  12924. in machine mode M. If M is a floating point mode, it represents
  12925. the exact quotient; otherwise, the integerized quotient. 'ss_div'
  12926. ensures that an out-of-bounds result saturates to the maximum or
  12927. minimum signed value.
  12928. Some machines have division instructions in which the operands and
  12929. quotient widths are not all the same; you should represent such
  12930. instructions using 'truncate' and 'sign_extend' as in,
  12931. (truncate:M1 (div:M2 X (sign_extend:M2 Y)))
  12932. '(udiv:M X Y)'
  12933. '(us_div:M X Y)'
  12934. Like 'div' but represents unsigned division. 'us_div' ensures that
  12935. an out-of-bounds result saturates to the maximum or minimum
  12936. unsigned value.
  12937. '(mod:M X Y)'
  12938. '(umod:M X Y)'
  12939. Like 'div' and 'udiv' but represent the remainder instead of the
  12940. quotient.
  12941. '(smin:M X Y)'
  12942. '(smax:M X Y)'
  12943. Represents the smaller (for 'smin') or larger (for 'smax') of X and
  12944. Y, interpreted as signed values in mode M. When used with floating
  12945. point, if both operands are zeros, or if either operand is 'NaN',
  12946. then it is unspecified which of the two operands is returned as the
  12947. result.
  12948. '(umin:M X Y)'
  12949. '(umax:M X Y)'
  12950. Like 'smin' and 'smax', but the values are interpreted as unsigned
  12951. integers.
  12952. '(not:M X)'
  12953. Represents the bitwise complement of the value represented by X,
  12954. carried out in mode M, which must be a fixed-point machine mode.
  12955. '(and:M X Y)'
  12956. Represents the bitwise logical-and of the values represented by X
  12957. and Y, carried out in machine mode M, which must be a fixed-point
  12958. machine mode.
  12959. '(ior:M X Y)'
  12960. Represents the bitwise inclusive-or of the values represented by X
  12961. and Y, carried out in machine mode M, which must be a fixed-point
  12962. mode.
  12963. '(xor:M X Y)'
  12964. Represents the bitwise exclusive-or of the values represented by X
  12965. and Y, carried out in machine mode M, which must be a fixed-point
  12966. mode.
  12967. '(ashift:M X C)'
  12968. '(ss_ashift:M X C)'
  12969. '(us_ashift:M X C)'
  12970. These three expressions represent the result of arithmetically
  12971. shifting X left by C places. They differ in their behavior on
  12972. overflow of integer modes. An 'ashift' operation is a plain shift
  12973. with no special behavior in case of a change in the sign bit;
  12974. 'ss_ashift' and 'us_ashift' saturates to the minimum or maximum
  12975. representable value if any of the bits shifted out differs from the
  12976. final sign bit.
  12977. X have mode M, a fixed-point machine mode. C be a fixed-point mode
  12978. or be a constant with mode 'VOIDmode'; which mode is determined by
  12979. the mode called for in the machine description entry for the
  12980. left-shift instruction. For example, on the VAX, the mode of C is
  12981. 'QImode' regardless of M.
  12982. '(lshiftrt:M X C)'
  12983. '(ashiftrt:M X C)'
  12984. Like 'ashift' but for right shift. Unlike the case for left shift,
  12985. these two operations are distinct.
  12986. '(rotate:M X C)'
  12987. '(rotatert:M X C)'
  12988. Similar but represent left and right rotate. If C is a constant,
  12989. use 'rotate'.
  12990. '(abs:M X)'
  12991. '(ss_abs:M X)'
  12992. Represents the absolute value of X, computed in mode M. 'ss_abs'
  12993. ensures that an out-of-bounds result saturates to the maximum
  12994. signed value.
  12995. '(sqrt:M X)'
  12996. Represents the square root of X, computed in mode M. Most often M
  12997. will be a floating point mode.
  12998. '(ffs:M X)'
  12999. Represents one plus the index of the least significant 1-bit in X,
  13000. represented as an integer of mode M. (The value is zero if X is
  13001. zero.) The mode of X must be M or 'VOIDmode'.
  13002. '(clrsb:M X)'
  13003. Represents the number of redundant leading sign bits in X,
  13004. represented as an integer of mode M, starting at the most
  13005. significant bit position. This is one less than the number of
  13006. leading sign bits (either 0 or 1), with no special cases. The mode
  13007. of X must be M or 'VOIDmode'.
  13008. '(clz:M X)'
  13009. Represents the number of leading 0-bits in X, represented as an
  13010. integer of mode M, starting at the most significant bit position.
  13011. If X is zero, the value is determined by
  13012. 'CLZ_DEFINED_VALUE_AT_ZERO' (*note Misc::). Note that this is one
  13013. of the few expressions that is not invariant under widening. The
  13014. mode of X must be M or 'VOIDmode'.
  13015. '(ctz:M X)'
  13016. Represents the number of trailing 0-bits in X, represented as an
  13017. integer of mode M, starting at the least significant bit position.
  13018. If X is zero, the value is determined by
  13019. 'CTZ_DEFINED_VALUE_AT_ZERO' (*note Misc::). Except for this case,
  13020. 'ctz(x)' is equivalent to 'ffs(X) - 1'. The mode of X must be M or
  13021. 'VOIDmode'.
  13022. '(popcount:M X)'
  13023. Represents the number of 1-bits in X, represented as an integer of
  13024. mode M. The mode of X must be M or 'VOIDmode'.
  13025. '(parity:M X)'
  13026. Represents the number of 1-bits modulo 2 in X, represented as an
  13027. integer of mode M. The mode of X must be M or 'VOIDmode'.
  13028. '(bswap:M X)'
  13029. Represents the value X with the order of bytes reversed, carried
  13030. out in mode M, which must be a fixed-point machine mode. The mode
  13031. of X must be M or 'VOIDmode'.
  13032. 
  13033. File: gccint.info, Node: Comparisons, Next: Bit-Fields, Prev: Arithmetic, Up: RTL
  13034. 13.10 Comparison Operations
  13035. ===========================
  13036. Comparison operators test a relation on two operands and are considered
  13037. to represent a machine-dependent nonzero value described by, but not
  13038. necessarily equal to, 'STORE_FLAG_VALUE' (*note Misc::) if the relation
  13039. holds, or zero if it does not, for comparison operators whose results
  13040. have a 'MODE_INT' mode, 'FLOAT_STORE_FLAG_VALUE' (*note Misc::) if the
  13041. relation holds, or zero if it does not, for comparison operators that
  13042. return floating-point values, and a vector of either
  13043. 'VECTOR_STORE_FLAG_VALUE' (*note Misc::) if the relation holds, or of
  13044. zeros if it does not, for comparison operators that return vector
  13045. results. The mode of the comparison operation is independent of the
  13046. mode of the data being compared. If the comparison operation is being
  13047. tested (e.g., the first operand of an 'if_then_else'), the mode must be
  13048. 'VOIDmode'.
  13049. There are two ways that comparison operations may be used. The
  13050. comparison operators may be used to compare the condition codes '(cc0)'
  13051. against zero, as in '(eq (cc0) (const_int 0))'. Such a construct
  13052. actually refers to the result of the preceding instruction in which the
  13053. condition codes were set. The instruction setting the condition code
  13054. must be adjacent to the instruction using the condition code; only
  13055. 'note' insns may separate them.
  13056. Alternatively, a comparison operation may directly compare two data
  13057. objects. The mode of the comparison is determined by the operands; they
  13058. must both be valid for a common machine mode. A comparison with both
  13059. operands constant would be invalid as the machine mode could not be
  13060. deduced from it, but such a comparison should never exist in RTL due to
  13061. constant folding.
  13062. In the example above, if '(cc0)' were last set to '(compare X Y)', the
  13063. comparison operation is identical to '(eq X Y)'. Usually only one style
  13064. of comparisons is supported on a particular machine, but the combine
  13065. pass will try to merge the operations to produce the 'eq' shown in case
  13066. it exists in the context of the particular insn involved.
  13067. Inequality comparisons come in two flavors, signed and unsigned. Thus,
  13068. there are distinct expression codes 'gt' and 'gtu' for signed and
  13069. unsigned greater-than. These can produce different results for the same
  13070. pair of integer values: for example, 1 is signed greater-than -1 but not
  13071. unsigned greater-than, because -1 when regarded as unsigned is actually
  13072. '0xffffffff' which is greater than 1.
  13073. The signed comparisons are also used for floating point values.
  13074. Floating point comparisons are distinguished by the machine modes of the
  13075. operands.
  13076. '(eq:M X Y)'
  13077. 'STORE_FLAG_VALUE' if the values represented by X and Y are equal,
  13078. otherwise 0.
  13079. '(ne:M X Y)'
  13080. 'STORE_FLAG_VALUE' if the values represented by X and Y are not
  13081. equal, otherwise 0.
  13082. '(gt:M X Y)'
  13083. 'STORE_FLAG_VALUE' if the X is greater than Y. If they are
  13084. fixed-point, the comparison is done in a signed sense.
  13085. '(gtu:M X Y)'
  13086. Like 'gt' but does unsigned comparison, on fixed-point numbers
  13087. only.
  13088. '(lt:M X Y)'
  13089. '(ltu:M X Y)'
  13090. Like 'gt' and 'gtu' but test for "less than".
  13091. '(ge:M X Y)'
  13092. '(geu:M X Y)'
  13093. Like 'gt' and 'gtu' but test for "greater than or equal".
  13094. '(le:M X Y)'
  13095. '(leu:M X Y)'
  13096. Like 'gt' and 'gtu' but test for "less than or equal".
  13097. '(if_then_else COND THEN ELSE)'
  13098. This is not a comparison operation but is listed here because it is
  13099. always used in conjunction with a comparison operation. To be
  13100. precise, COND is a comparison expression. This expression
  13101. represents a choice, according to COND, between the value
  13102. represented by THEN and the one represented by ELSE.
  13103. On most machines, 'if_then_else' expressions are valid only to
  13104. express conditional jumps.
  13105. '(cond [TEST1 VALUE1 TEST2 VALUE2 ...] DEFAULT)'
  13106. Similar to 'if_then_else', but more general. Each of TEST1, TEST2,
  13107. ... is performed in turn. The result of this expression is the
  13108. VALUE corresponding to the first nonzero test, or DEFAULT if none
  13109. of the tests are nonzero expressions.
  13110. This is currently not valid for instruction patterns and is
  13111. supported only for insn attributes. *Note Insn Attributes::.
  13112. 
  13113. File: gccint.info, Node: Bit-Fields, Next: Vector Operations, Prev: Comparisons, Up: RTL
  13114. 13.11 Bit-Fields
  13115. ================
  13116. Special expression codes exist to represent bit-field instructions.
  13117. '(sign_extract:M LOC SIZE POS)'
  13118. This represents a reference to a sign-extended bit-field contained
  13119. or starting in LOC (a memory or register reference). The bit-field
  13120. is SIZE bits wide and starts at bit POS. The compilation option
  13121. 'BITS_BIG_ENDIAN' says which end of the memory unit POS counts
  13122. from.
  13123. If LOC is in memory, its mode must be a single-byte integer mode.
  13124. If LOC is in a register, the mode to use is specified by the
  13125. operand of the 'insv' or 'extv' pattern (*note Standard Names::)
  13126. and is usually a full-word integer mode, which is the default if
  13127. none is specified.
  13128. The mode of POS is machine-specific and is also specified in the
  13129. 'insv' or 'extv' pattern.
  13130. The mode M is the same as the mode that would be used for LOC if it
  13131. were a register.
  13132. A 'sign_extract' can not appear as an lvalue, or part thereof, in
  13133. RTL.
  13134. '(zero_extract:M LOC SIZE POS)'
  13135. Like 'sign_extract' but refers to an unsigned or zero-extended
  13136. bit-field. The same sequence of bits are extracted, but they are
  13137. filled to an entire word with zeros instead of by sign-extension.
  13138. Unlike 'sign_extract', this type of expressions can be lvalues in
  13139. RTL; they may appear on the left side of an assignment, indicating
  13140. insertion of a value into the specified bit-field.
  13141. 
  13142. File: gccint.info, Node: Vector Operations, Next: Conversions, Prev: Bit-Fields, Up: RTL
  13143. 13.12 Vector Operations
  13144. =======================
  13145. All normal RTL expressions can be used with vector modes; they are
  13146. interpreted as operating on each part of the vector independently.
  13147. Additionally, there are a few new expressions to describe specific
  13148. vector operations.
  13149. '(vec_merge:M VEC1 VEC2 ITEMS)'
  13150. This describes a merge operation between two vectors. The result
  13151. is a vector of mode M; its elements are selected from either VEC1
  13152. or VEC2. Which elements are selected is described by ITEMS, which
  13153. is a bit mask represented by a 'const_int'; a zero bit indicates
  13154. the corresponding element in the result vector is taken from VEC2
  13155. while a set bit indicates it is taken from VEC1.
  13156. '(vec_select:M VEC1 SELECTION)'
  13157. This describes an operation that selects parts of a vector. VEC1
  13158. is the source vector, and SELECTION is a 'parallel' that contains a
  13159. 'const_int' for each of the subparts of the result vector, giving
  13160. the number of the source subpart that should be stored into it.
  13161. The result mode M is either the submode for a single element of
  13162. VEC1 (if only one subpart is selected), or another vector mode with
  13163. that element submode (if multiple subparts are selected).
  13164. '(vec_concat:M X1 X2)'
  13165. Describes a vector concat operation. The result is a concatenation
  13166. of the vectors or scalars X1 and X2; its length is the sum of the
  13167. lengths of the two inputs.
  13168. '(vec_duplicate:M X)'
  13169. This operation converts a scalar into a vector or a small vector
  13170. into a larger one by duplicating the input values. The output
  13171. vector mode must have the same submodes as the input vector mode or
  13172. the scalar modes, and the number of output parts must be an integer
  13173. multiple of the number of input parts.
  13174. 
  13175. File: gccint.info, Node: Conversions, Next: RTL Declarations, Prev: Vector Operations, Up: RTL
  13176. 13.13 Conversions
  13177. =================
  13178. All conversions between machine modes must be represented by explicit
  13179. conversion operations. For example, an expression which is the sum of a
  13180. byte and a full word cannot be written as '(plus:SI (reg:QI 34) (reg:SI
  13181. 80))' because the 'plus' operation requires two operands of the same
  13182. machine mode. Therefore, the byte-sized operand is enclosed in a
  13183. conversion operation, as in
  13184. (plus:SI (sign_extend:SI (reg:QI 34)) (reg:SI 80))
  13185. The conversion operation is not a mere placeholder, because there may
  13186. be more than one way of converting from a given starting mode to the
  13187. desired final mode. The conversion operation code says how to do it.
  13188. For all conversion operations, X must not be 'VOIDmode' because the
  13189. mode in which to do the conversion would not be known. The conversion
  13190. must either be done at compile-time or X must be placed into a register.
  13191. '(sign_extend:M X)'
  13192. Represents the result of sign-extending the value X to machine mode
  13193. M. M must be a fixed-point mode and X a fixed-point value of a
  13194. mode narrower than M.
  13195. '(zero_extend:M X)'
  13196. Represents the result of zero-extending the value X to machine mode
  13197. M. M must be a fixed-point mode and X a fixed-point value of a
  13198. mode narrower than M.
  13199. '(float_extend:M X)'
  13200. Represents the result of extending the value X to machine mode M.
  13201. M must be a floating point mode and X a floating point value of a
  13202. mode narrower than M.
  13203. '(truncate:M X)'
  13204. Represents the result of truncating the value X to machine mode M.
  13205. M must be a fixed-point mode and X a fixed-point value of a mode
  13206. wider than M.
  13207. '(ss_truncate:M X)'
  13208. Represents the result of truncating the value X to machine mode M,
  13209. using signed saturation in the case of overflow. Both M and the
  13210. mode of X must be fixed-point modes.
  13211. '(us_truncate:M X)'
  13212. Represents the result of truncating the value X to machine mode M,
  13213. using unsigned saturation in the case of overflow. Both M and the
  13214. mode of X must be fixed-point modes.
  13215. '(float_truncate:M X)'
  13216. Represents the result of truncating the value X to machine mode M.
  13217. M must be a floating point mode and X a floating point value of a
  13218. mode wider than M.
  13219. '(float:M X)'
  13220. Represents the result of converting fixed point value X, regarded
  13221. as signed, to floating point mode M.
  13222. '(unsigned_float:M X)'
  13223. Represents the result of converting fixed point value X, regarded
  13224. as unsigned, to floating point mode M.
  13225. '(fix:M X)'
  13226. When M is a floating-point mode, represents the result of
  13227. converting floating point value X (valid for mode M) to an integer,
  13228. still represented in floating point mode M, by rounding towards
  13229. zero.
  13230. When M is a fixed-point mode, represents the result of converting
  13231. floating point value X to mode M, regarded as signed. How rounding
  13232. is done is not specified, so this operation may be used validly in
  13233. compiling C code only for integer-valued operands.
  13234. '(unsigned_fix:M X)'
  13235. Represents the result of converting floating point value X to fixed
  13236. point mode M, regarded as unsigned. How rounding is done is not
  13237. specified.
  13238. '(fract_convert:M X)'
  13239. Represents the result of converting fixed-point value X to
  13240. fixed-point mode M, signed integer value X to fixed-point mode M,
  13241. floating-point value X to fixed-point mode M, fixed-point value X
  13242. to integer mode M regarded as signed, or fixed-point value X to
  13243. floating-point mode M. When overflows or underflows happen, the
  13244. results are undefined.
  13245. '(sat_fract:M X)'
  13246. Represents the result of converting fixed-point value X to
  13247. fixed-point mode M, signed integer value X to fixed-point mode M,
  13248. or floating-point value X to fixed-point mode M. When overflows or
  13249. underflows happen, the results are saturated to the maximum or the
  13250. minimum.
  13251. '(unsigned_fract_convert:M X)'
  13252. Represents the result of converting fixed-point value X to integer
  13253. mode M regarded as unsigned, or unsigned integer value X to
  13254. fixed-point mode M. When overflows or underflows happen, the
  13255. results are undefined.
  13256. '(unsigned_sat_fract:M X)'
  13257. Represents the result of converting unsigned integer value X to
  13258. fixed-point mode M. When overflows or underflows happen, the
  13259. results are saturated to the maximum or the minimum.
  13260. 
  13261. File: gccint.info, Node: RTL Declarations, Next: Side Effects, Prev: Conversions, Up: RTL
  13262. 13.14 Declarations
  13263. ==================
  13264. Declaration expression codes do not represent arithmetic operations but
  13265. rather state assertions about their operands.
  13266. '(strict_low_part (subreg:M (reg:N R) 0))'
  13267. This expression code is used in only one context: as the
  13268. destination operand of a 'set' expression. In addition, the
  13269. operand of this expression must be a non-paradoxical 'subreg'
  13270. expression.
  13271. The presence of 'strict_low_part' says that the part of the
  13272. register which is meaningful in mode N, but is not part of mode M,
  13273. is not to be altered. Normally, an assignment to such a subreg is
  13274. allowed to have undefined effects on the rest of the register when
  13275. M is less than a word.
  13276. 
  13277. File: gccint.info, Node: Side Effects, Next: Incdec, Prev: RTL Declarations, Up: RTL
  13278. 13.15 Side Effect Expressions
  13279. =============================
  13280. The expression codes described so far represent values, not actions.
  13281. But machine instructions never produce values; they are meaningful only
  13282. for their side effects on the state of the machine. Special expression
  13283. codes are used to represent side effects.
  13284. The body of an instruction is always one of these side effect codes;
  13285. the codes described above, which represent values, appear only as the
  13286. operands of these.
  13287. '(set LVAL X)'
  13288. Represents the action of storing the value of X into the place
  13289. represented by LVAL. LVAL must be an expression representing a
  13290. place that can be stored in: 'reg' (or 'subreg', 'strict_low_part'
  13291. or 'zero_extract'), 'mem', 'pc', 'parallel', or 'cc0'.
  13292. If LVAL is a 'reg', 'subreg' or 'mem', it has a machine mode; then
  13293. X must be valid for that mode.
  13294. If LVAL is a 'reg' whose machine mode is less than the full width
  13295. of the register, then it means that the part of the register
  13296. specified by the machine mode is given the specified value and the
  13297. rest of the register receives an undefined value. Likewise, if
  13298. LVAL is a 'subreg' whose machine mode is narrower than the mode of
  13299. the register, the rest of the register can be changed in an
  13300. undefined way.
  13301. If LVAL is a 'strict_low_part' of a subreg, then the part of the
  13302. register specified by the machine mode of the 'subreg' is given the
  13303. value X and the rest of the register is not changed.
  13304. If LVAL is a 'zero_extract', then the referenced part of the
  13305. bit-field (a memory or register reference) specified by the
  13306. 'zero_extract' is given the value X and the rest of the bit-field
  13307. is not changed. Note that 'sign_extract' can not appear in LVAL.
  13308. If LVAL is '(cc0)', it has no machine mode, and X may be either a
  13309. 'compare' expression or a value that may have any mode. The latter
  13310. case represents a "test" instruction. The expression '(set (cc0)
  13311. (reg:M N))' is equivalent to '(set (cc0) (compare (reg:M N)
  13312. (const_int 0)))'. Use the former expression to save space during
  13313. the compilation.
  13314. If LVAL is a 'parallel', it is used to represent the case of a
  13315. function returning a structure in multiple registers. Each element
  13316. of the 'parallel' is an 'expr_list' whose first operand is a 'reg'
  13317. and whose second operand is a 'const_int' representing the offset
  13318. (in bytes) into the structure at which the data in that register
  13319. corresponds. The first element may be null to indicate that the
  13320. structure is also passed partly in memory.
  13321. If LVAL is '(pc)', we have a jump instruction, and the
  13322. possibilities for X are very limited. It may be a 'label_ref'
  13323. expression (unconditional jump). It may be an 'if_then_else'
  13324. (conditional jump), in which case either the second or the third
  13325. operand must be '(pc)' (for the case which does not jump) and the
  13326. other of the two must be a 'label_ref' (for the case which does
  13327. jump). X may also be a 'mem' or '(plus:SI (pc) Y)', where Y may be
  13328. a 'reg' or a 'mem'; these unusual patterns are used to represent
  13329. jumps through branch tables.
  13330. If LVAL is neither '(cc0)' nor '(pc)', the mode of LVAL must not be
  13331. 'VOIDmode' and the mode of X must be valid for the mode of LVAL.
  13332. LVAL is customarily accessed with the 'SET_DEST' macro and X with
  13333. the 'SET_SRC' macro.
  13334. '(return)'
  13335. As the sole expression in a pattern, represents a return from the
  13336. current function, on machines where this can be done with one
  13337. instruction, such as VAXen. On machines where a multi-instruction
  13338. "epilogue" must be executed in order to return from the function,
  13339. returning is done by jumping to a label which precedes the
  13340. epilogue, and the 'return' expression code is never used.
  13341. Inside an 'if_then_else' expression, represents the value to be
  13342. placed in 'pc' to return to the caller.
  13343. Note that an insn pattern of '(return)' is logically equivalent to
  13344. '(set (pc) (return))', but the latter form is never used.
  13345. '(simple_return)'
  13346. Like '(return)', but truly represents only a function return, while
  13347. '(return)' may represent an insn that also performs other functions
  13348. of the function epilogue. Like '(return)', this may also occur in
  13349. conditional jumps.
  13350. '(call FUNCTION NARGS)'
  13351. Represents a function call. FUNCTION is a 'mem' expression whose
  13352. address is the address of the function to be called. NARGS is an
  13353. expression which can be used for two purposes: on some machines it
  13354. represents the number of bytes of stack argument; on others, it
  13355. represents the number of argument registers.
  13356. Each machine has a standard machine mode which FUNCTION must have.
  13357. The machine description defines macro 'FUNCTION_MODE' to expand
  13358. into the requisite mode name. The purpose of this mode is to
  13359. specify what kind of addressing is allowed, on machines where the
  13360. allowed kinds of addressing depend on the machine mode being
  13361. addressed.
  13362. '(clobber X)'
  13363. Represents the storing or possible storing of an unpredictable,
  13364. undescribed value into X, which must be a 'reg', 'scratch',
  13365. 'parallel' or 'mem' expression.
  13366. One place this is used is in string instructions that store
  13367. standard values into particular hard registers. It may not be
  13368. worth the trouble to describe the values that are stored, but it is
  13369. essential to inform the compiler that the registers will be
  13370. altered, lest it attempt to keep data in them across the string
  13371. instruction.
  13372. If X is '(mem:BLK (const_int 0))' or '(mem:BLK (scratch))', it
  13373. means that all memory locations must be presumed clobbered. If X
  13374. is a 'parallel', it has the same meaning as a 'parallel' in a 'set'
  13375. expression.
  13376. Note that the machine description classifies certain hard registers
  13377. as "call-clobbered". All function call instructions are assumed by
  13378. default to clobber these registers, so there is no need to use
  13379. 'clobber' expressions to indicate this fact. Also, each function
  13380. call is assumed to have the potential to alter any memory location,
  13381. unless the function is declared 'const'.
  13382. If the last group of expressions in a 'parallel' are each a
  13383. 'clobber' expression whose arguments are 'reg' or 'match_scratch'
  13384. (*note RTL Template::) expressions, the combiner phase can add the
  13385. appropriate 'clobber' expressions to an insn it has constructed
  13386. when doing so will cause a pattern to be matched.
  13387. This feature can be used, for example, on a machine that whose
  13388. multiply and add instructions don't use an MQ register but which
  13389. has an add-accumulate instruction that does clobber the MQ
  13390. register. Similarly, a combined instruction might require a
  13391. temporary register while the constituent instructions might not.
  13392. When a 'clobber' expression for a register appears inside a
  13393. 'parallel' with other side effects, the register allocator
  13394. guarantees that the register is unoccupied both before and after
  13395. that insn if it is a hard register clobber. For pseudo-register
  13396. clobber, the register allocator and the reload pass do not assign
  13397. the same hard register to the clobber and the input operands if
  13398. there is an insn alternative containing the '&' constraint (*note
  13399. Modifiers::) for the clobber and the hard register is in register
  13400. classes of the clobber in the alternative. You can clobber either
  13401. a specific hard register, a pseudo register, or a 'scratch'
  13402. expression; in the latter two cases, GCC will allocate a hard
  13403. register that is available there for use as a temporary.
  13404. For instructions that require a temporary register, you should use
  13405. 'scratch' instead of a pseudo-register because this will allow the
  13406. combiner phase to add the 'clobber' when required. You do this by
  13407. coding ('clobber' ('match_scratch' ...)). If you do clobber a
  13408. pseudo register, use one which appears nowhere else--generate a new
  13409. one each time. Otherwise, you may confuse CSE.
  13410. There is one other known use for clobbering a pseudo register in a
  13411. 'parallel': when one of the input operands of the insn is also
  13412. clobbered by the insn. In this case, using the same pseudo
  13413. register in the clobber and elsewhere in the insn produces the
  13414. expected results.
  13415. '(use X)'
  13416. Represents the use of the value of X. It indicates that the value
  13417. in X at this point in the program is needed, even though it may not
  13418. be apparent why this is so. Therefore, the compiler will not
  13419. attempt to delete previous instructions whose only effect is to
  13420. store a value in X. X must be a 'reg' expression.
  13421. In some situations, it may be tempting to add a 'use' of a register
  13422. in a 'parallel' to describe a situation where the value of a
  13423. special register will modify the behavior of the instruction. A
  13424. hypothetical example might be a pattern for an addition that can
  13425. either wrap around or use saturating addition depending on the
  13426. value of a special control register:
  13427. (parallel [(set (reg:SI 2) (unspec:SI [(reg:SI 3)
  13428. (reg:SI 4)] 0))
  13429. (use (reg:SI 1))])
  13430. This will not work, several of the optimizers only look at
  13431. expressions locally; it is very likely that if you have multiple
  13432. insns with identical inputs to the 'unspec', they will be optimized
  13433. away even if register 1 changes in between.
  13434. This means that 'use' can _only_ be used to describe that the
  13435. register is live. You should think twice before adding 'use'
  13436. statements, more often you will want to use 'unspec' instead. The
  13437. 'use' RTX is most commonly useful to describe that a fixed register
  13438. is implicitly used in an insn. It is also safe to use in patterns
  13439. where the compiler knows for other reasons that the result of the
  13440. whole pattern is variable, such as 'movmemM' or 'call' patterns.
  13441. During the reload phase, an insn that has a 'use' as pattern can
  13442. carry a reg_equal note. These 'use' insns will be deleted before
  13443. the reload phase exits.
  13444. During the delayed branch scheduling phase, X may be an insn. This
  13445. indicates that X previously was located at this place in the code
  13446. and its data dependencies need to be taken into account. These
  13447. 'use' insns will be deleted before the delayed branch scheduling
  13448. phase exits.
  13449. '(parallel [X0 X1 ...])'
  13450. Represents several side effects performed in parallel. The square
  13451. brackets stand for a vector; the operand of 'parallel' is a vector
  13452. of expressions. X0, X1 and so on are individual side effect
  13453. expressions--expressions of code 'set', 'call', 'return',
  13454. 'simple_return', 'clobber' or 'use'.
  13455. "In parallel" means that first all the values used in the
  13456. individual side-effects are computed, and second all the actual
  13457. side-effects are performed. For example,
  13458. (parallel [(set (reg:SI 1) (mem:SI (reg:SI 1)))
  13459. (set (mem:SI (reg:SI 1)) (reg:SI 1))])
  13460. says unambiguously that the values of hard register 1 and the
  13461. memory location addressed by it are interchanged. In both places
  13462. where '(reg:SI 1)' appears as a memory address it refers to the
  13463. value in register 1 _before_ the execution of the insn.
  13464. It follows that it is _incorrect_ to use 'parallel' and expect the
  13465. result of one 'set' to be available for the next one. For example,
  13466. people sometimes attempt to represent a jump-if-zero instruction
  13467. this way:
  13468. (parallel [(set (cc0) (reg:SI 34))
  13469. (set (pc) (if_then_else
  13470. (eq (cc0) (const_int 0))
  13471. (label_ref ...)
  13472. (pc)))])
  13473. But this is incorrect, because it says that the jump condition
  13474. depends on the condition code value _before_ this instruction, not
  13475. on the new value that is set by this instruction.
  13476. Peephole optimization, which takes place together with final
  13477. assembly code output, can produce insns whose patterns consist of a
  13478. 'parallel' whose elements are the operands needed to output the
  13479. resulting assembler code--often 'reg', 'mem' or constant
  13480. expressions. This would not be well-formed RTL at any other stage
  13481. in compilation, but it is OK then because no further optimization
  13482. remains to be done. However, the definition of the macro
  13483. 'NOTICE_UPDATE_CC', if any, must deal with such insns if you define
  13484. any peephole optimizations.
  13485. '(cond_exec [COND EXPR])'
  13486. Represents a conditionally executed expression. The EXPR is
  13487. executed only if the COND is nonzero. The COND expression must not
  13488. have side-effects, but the EXPR may very well have side-effects.
  13489. '(sequence [INSNS ...])'
  13490. Represents a sequence of insns. If a 'sequence' appears in the
  13491. chain of insns, then each of the INSNS that appears in the sequence
  13492. must be suitable for appearing in the chain of insns, i.e. must
  13493. satisfy the 'INSN_P' predicate.
  13494. After delay-slot scheduling is completed, an insn and all the insns
  13495. that reside in its delay slots are grouped together into a
  13496. 'sequence'. The insn requiring the delay slot is the first insn in
  13497. the vector; subsequent insns are to be placed in the delay slot.
  13498. 'INSN_ANNULLED_BRANCH_P' is set on an insn in a delay slot to
  13499. indicate that a branch insn should be used that will conditionally
  13500. annul the effect of the insns in the delay slots. In such a case,
  13501. 'INSN_FROM_TARGET_P' indicates that the insn is from the target of
  13502. the branch and should be executed only if the branch is taken;
  13503. otherwise the insn should be executed only if the branch is not
  13504. taken. *Note Delay Slots::.
  13505. Some back ends also use 'sequence' objects for purposes other than
  13506. delay-slot groups. This is not supported in the common parts of
  13507. the compiler, which treat such sequences as delay-slot groups.
  13508. DWARF2 Call Frame Address (CFA) adjustments are sometimes also
  13509. expressed using 'sequence' objects as the value of a
  13510. 'RTX_FRAME_RELATED_P' note. This only happens if the CFA
  13511. adjustments cannot be easily derived from the pattern of the
  13512. instruction to which the note is attached. In such cases, the
  13513. value of the note is used instead of best-guesing the semantics of
  13514. the instruction. The back end can attach notes containing a
  13515. 'sequence' of 'set' patterns that express the effect of the parent
  13516. instruction.
  13517. These expression codes appear in place of a side effect, as the body of
  13518. an insn, though strictly speaking they do not always describe side
  13519. effects as such:
  13520. '(asm_input S)'
  13521. Represents literal assembler code as described by the string S.
  13522. '(unspec [OPERANDS ...] INDEX)'
  13523. '(unspec_volatile [OPERANDS ...] INDEX)'
  13524. Represents a machine-specific operation on OPERANDS. INDEX selects
  13525. between multiple machine-specific operations. 'unspec_volatile' is
  13526. used for volatile operations and operations that may trap; 'unspec'
  13527. is used for other operations.
  13528. These codes may appear inside a 'pattern' of an insn, inside a
  13529. 'parallel', or inside an expression.
  13530. '(addr_vec:M [LR0 LR1 ...])'
  13531. Represents a table of jump addresses. The vector elements LR0,
  13532. etc., are 'label_ref' expressions. The mode M specifies how much
  13533. space is given to each address; normally M would be 'Pmode'.
  13534. '(addr_diff_vec:M BASE [LR0 LR1 ...] MIN MAX FLAGS)'
  13535. Represents a table of jump addresses expressed as offsets from
  13536. BASE. The vector elements LR0, etc., are 'label_ref' expressions
  13537. and so is BASE. The mode M specifies how much space is given to
  13538. each address-difference. MIN and MAX are set up by branch
  13539. shortening and hold a label with a minimum and a maximum address,
  13540. respectively. FLAGS indicates the relative position of BASE, MIN
  13541. and MAX to the containing insn and of MIN and MAX to BASE. See
  13542. rtl.def for details.
  13543. '(prefetch:M ADDR RW LOCALITY)'
  13544. Represents prefetch of memory at address ADDR. Operand RW is 1 if
  13545. the prefetch is for data to be written, 0 otherwise; targets that
  13546. do not support write prefetches should treat this as a normal
  13547. prefetch. Operand LOCALITY specifies the amount of temporal
  13548. locality; 0 if there is none or 1, 2, or 3 for increasing levels of
  13549. temporal locality; targets that do not support locality hints
  13550. should ignore this.
  13551. This insn is used to minimize cache-miss latency by moving data
  13552. into a cache before it is accessed. It should use only
  13553. non-faulting data prefetch instructions.
  13554. 
  13555. File: gccint.info, Node: Incdec, Next: Assembler, Prev: Side Effects, Up: RTL
  13556. 13.16 Embedded Side-Effects on Addresses
  13557. ========================================
  13558. Six special side-effect expression codes appear as memory addresses.
  13559. '(pre_dec:M X)'
  13560. Represents the side effect of decrementing X by a standard amount
  13561. and represents also the value that X has after being decremented.
  13562. X must be a 'reg' or 'mem', but most machines allow only a 'reg'.
  13563. M must be the machine mode for pointers on the machine in use. The
  13564. amount X is decremented by is the length in bytes of the machine
  13565. mode of the containing memory reference of which this expression
  13566. serves as the address. Here is an example of its use:
  13567. (mem:DF (pre_dec:SI (reg:SI 39)))
  13568. This says to decrement pseudo register 39 by the length of a
  13569. 'DFmode' value and use the result to address a 'DFmode' value.
  13570. '(pre_inc:M X)'
  13571. Similar, but specifies incrementing X instead of decrementing it.
  13572. '(post_dec:M X)'
  13573. Represents the same side effect as 'pre_dec' but a different value.
  13574. The value represented here is the value X has before being
  13575. decremented.
  13576. '(post_inc:M X)'
  13577. Similar, but specifies incrementing X instead of decrementing it.
  13578. '(post_modify:M X Y)'
  13579. Represents the side effect of setting X to Y and represents X
  13580. before X is modified. X must be a 'reg' or 'mem', but most
  13581. machines allow only a 'reg'. M must be the machine mode for
  13582. pointers on the machine in use.
  13583. The expression Y must be one of three forms: '(plus:M X Z)',
  13584. '(minus:M X Z)', or '(plus:M X I)', where Z is an index register
  13585. and I is a constant.
  13586. Here is an example of its use:
  13587. (mem:SF (post_modify:SI (reg:SI 42) (plus (reg:SI 42)
  13588. (reg:SI 48))))
  13589. This says to modify pseudo register 42 by adding the contents of
  13590. pseudo register 48 to it, after the use of what ever 42 points to.
  13591. '(pre_modify:M X EXPR)'
  13592. Similar except side effects happen before the use.
  13593. These embedded side effect expressions must be used with care.
  13594. Instruction patterns may not use them. Until the 'flow' pass of the
  13595. compiler, they may occur only to represent pushes onto the stack. The
  13596. 'flow' pass finds cases where registers are incremented or decremented
  13597. in one instruction and used as an address shortly before or after; these
  13598. cases are then transformed to use pre- or post-increment or -decrement.
  13599. If a register used as the operand of these expressions is used in
  13600. another address in an insn, the original value of the register is used.
  13601. Uses of the register outside of an address are not permitted within the
  13602. same insn as a use in an embedded side effect expression because such
  13603. insns behave differently on different machines and hence must be treated
  13604. as ambiguous and disallowed.
  13605. An instruction that can be represented with an embedded side effect
  13606. could also be represented using 'parallel' containing an additional
  13607. 'set' to describe how the address register is altered. This is not done
  13608. because machines that allow these operations at all typically allow them
  13609. wherever a memory address is called for. Describing them as additional
  13610. parallel stores would require doubling the number of entries in the
  13611. machine description.
  13612. 
  13613. File: gccint.info, Node: Assembler, Next: Debug Information, Prev: Incdec, Up: RTL
  13614. 13.17 Assembler Instructions as Expressions
  13615. ===========================================
  13616. The RTX code 'asm_operands' represents a value produced by a
  13617. user-specified assembler instruction. It is used to represent an 'asm'
  13618. statement with arguments. An 'asm' statement with a single output
  13619. operand, like this:
  13620. asm ("foo %1,%2,%0" : "=a" (outputvar) : "g" (x + y), "di" (*z));
  13621. is represented using a single 'asm_operands' RTX which represents the
  13622. value that is stored in 'outputvar':
  13623. (set RTX-FOR-OUTPUTVAR
  13624. (asm_operands "foo %1,%2,%0" "a" 0
  13625. [RTX-FOR-ADDITION-RESULT RTX-FOR-*Z]
  13626. [(asm_input:M1 "g")
  13627. (asm_input:M2 "di")]))
  13628. Here the operands of the 'asm_operands' RTX are the assembler template
  13629. string, the output-operand's constraint, the index-number of the output
  13630. operand among the output operands specified, a vector of input operand
  13631. RTX's, and a vector of input-operand modes and constraints. The mode M1
  13632. is the mode of the sum 'x+y'; M2 is that of '*z'.
  13633. When an 'asm' statement has multiple output values, its insn has
  13634. several such 'set' RTX's inside of a 'parallel'. Each 'set' contains an
  13635. 'asm_operands'; all of these share the same assembler template and
  13636. vectors, but each contains the constraint for the respective output
  13637. operand. They are also distinguished by the output-operand index
  13638. number, which is 0, 1, ... for successive output operands.
  13639. 
  13640. File: gccint.info, Node: Debug Information, Next: Insns, Prev: Assembler, Up: RTL
  13641. 13.18 Variable Location Debug Information in RTL
  13642. ================================================
  13643. Variable tracking relies on 'MEM_EXPR' and 'REG_EXPR' annotations to
  13644. determine what user variables memory and register references refer to.
  13645. Variable tracking at assignments uses these notes only when they refer
  13646. to variables that live at fixed locations (e.g., addressable variables,
  13647. global non-automatic variables). For variables whose location may vary,
  13648. it relies on the following types of notes.
  13649. '(var_location:MODE VAR EXP STAT)'
  13650. Binds variable 'var', a tree, to value EXP, an RTL expression. It
  13651. appears only in 'NOTE_INSN_VAR_LOCATION' and 'DEBUG_INSN's, with
  13652. slightly different meanings. MODE, if present, represents the mode
  13653. of EXP, which is useful if it is a modeless expression. STAT is
  13654. only meaningful in notes, indicating whether the variable is known
  13655. to be initialized or uninitialized.
  13656. '(debug_expr:MODE DECL)'
  13657. Stands for the value bound to the 'DEBUG_EXPR_DECL' DECL, that
  13658. points back to it, within value expressions in 'VAR_LOCATION'
  13659. nodes.
  13660. 
  13661. File: gccint.info, Node: Insns, Next: Calls, Prev: Debug Information, Up: RTL
  13662. 13.19 Insns
  13663. ===========
  13664. The RTL representation of the code for a function is a doubly-linked
  13665. chain of objects called "insns". Insns are expressions with special
  13666. codes that are used for no other purpose. Some insns are actual
  13667. instructions; others represent dispatch tables for 'switch' statements;
  13668. others represent labels to jump to or various sorts of declarative
  13669. information.
  13670. In addition to its own specific data, each insn must have a unique
  13671. id-number that distinguishes it from all other insns in the current
  13672. function (after delayed branch scheduling, copies of an insn with the
  13673. same id-number may be present in multiple places in a function, but
  13674. these copies will always be identical and will only appear inside a
  13675. 'sequence'), and chain pointers to the preceding and following insns.
  13676. These three fields occupy the same position in every insn, independent
  13677. of the expression code of the insn. They could be accessed with 'XEXP'
  13678. and 'XINT', but instead three special macros are always used:
  13679. 'INSN_UID (I)'
  13680. Accesses the unique id of insn I.
  13681. 'PREV_INSN (I)'
  13682. Accesses the chain pointer to the insn preceding I. If I is the
  13683. first insn, this is a null pointer.
  13684. 'NEXT_INSN (I)'
  13685. Accesses the chain pointer to the insn following I. If I is the
  13686. last insn, this is a null pointer.
  13687. The first insn in the chain is obtained by calling 'get_insns'; the
  13688. last insn is the result of calling 'get_last_insn'. Within the chain
  13689. delimited by these insns, the 'NEXT_INSN' and 'PREV_INSN' pointers must
  13690. always correspond: if INSN is not the first insn,
  13691. NEXT_INSN (PREV_INSN (INSN)) == INSN
  13692. is always true and if INSN is not the last insn,
  13693. PREV_INSN (NEXT_INSN (INSN)) == INSN
  13694. is always true.
  13695. After delay slot scheduling, some of the insns in the chain might be
  13696. 'sequence' expressions, which contain a vector of insns. The value of
  13697. 'NEXT_INSN' in all but the last of these insns is the next insn in the
  13698. vector; the value of 'NEXT_INSN' of the last insn in the vector is the
  13699. same as the value of 'NEXT_INSN' for the 'sequence' in which it is
  13700. contained. Similar rules apply for 'PREV_INSN'.
  13701. This means that the above invariants are not necessarily true for insns
  13702. inside 'sequence' expressions. Specifically, if INSN is the first insn
  13703. in a 'sequence', 'NEXT_INSN (PREV_INSN (INSN))' is the insn containing
  13704. the 'sequence' expression, as is the value of 'PREV_INSN (NEXT_INSN
  13705. (INSN))' if INSN is the last insn in the 'sequence' expression. You can
  13706. use these expressions to find the containing 'sequence' expression.
  13707. Every insn has one of the following expression codes:
  13708. 'insn'
  13709. The expression code 'insn' is used for instructions that do not
  13710. jump and do not do function calls. 'sequence' expressions are
  13711. always contained in insns with code 'insn' even if one of those
  13712. insns should jump or do function calls.
  13713. Insns with code 'insn' have four additional fields beyond the three
  13714. mandatory ones listed above. These four are described in a table
  13715. below.
  13716. 'jump_insn'
  13717. The expression code 'jump_insn' is used for instructions that may
  13718. jump (or, more generally, may contain 'label_ref' expressions to
  13719. which 'pc' can be set in that instruction). If there is an
  13720. instruction to return from the current function, it is recorded as
  13721. a 'jump_insn'.
  13722. 'jump_insn' insns have the same extra fields as 'insn' insns,
  13723. accessed in the same way and in addition contain a field
  13724. 'JUMP_LABEL' which is defined once jump optimization has completed.
  13725. For simple conditional and unconditional jumps, this field contains
  13726. the 'code_label' to which this insn will (possibly conditionally)
  13727. branch. In a more complex jump, 'JUMP_LABEL' records one of the
  13728. labels that the insn refers to; other jump target labels are
  13729. recorded as 'REG_LABEL_TARGET' notes. The exception is 'addr_vec'
  13730. and 'addr_diff_vec', where 'JUMP_LABEL' is 'NULL_RTX' and the only
  13731. way to find the labels is to scan the entire body of the insn.
  13732. Return insns count as jumps, but their 'JUMP_LABEL' is 'RETURN' or
  13733. 'SIMPLE_RETURN'.
  13734. 'call_insn'
  13735. The expression code 'call_insn' is used for instructions that may
  13736. do function calls. It is important to distinguish these
  13737. instructions because they imply that certain registers and memory
  13738. locations may be altered unpredictably.
  13739. 'call_insn' insns have the same extra fields as 'insn' insns,
  13740. accessed in the same way and in addition contain a field
  13741. 'CALL_INSN_FUNCTION_USAGE', which contains a list (chain of
  13742. 'expr_list' expressions) containing 'use', 'clobber' and sometimes
  13743. 'set' expressions that denote hard registers and 'mem's used or
  13744. clobbered by the called function.
  13745. A 'mem' generally points to a stack slot in which arguments passed
  13746. to the libcall by reference (*note TARGET_PASS_BY_REFERENCE:
  13747. Register Arguments.) are stored. If the argument is caller-copied
  13748. (*note TARGET_CALLEE_COPIES: Register Arguments.), the stack slot
  13749. will be mentioned in 'clobber' and 'use' entries; if it's
  13750. callee-copied, only a 'use' will appear, and the 'mem' may point to
  13751. addresses that are not stack slots.
  13752. Registers occurring inside a 'clobber' in this list augment
  13753. registers specified in 'CALL_USED_REGISTERS' (*note Register
  13754. Basics::).
  13755. If the list contains a 'set' involving two registers, it indicates
  13756. that the function returns one of its arguments. Such a 'set' may
  13757. look like a no-op if the same register holds the argument and the
  13758. return value.
  13759. 'code_label'
  13760. A 'code_label' insn represents a label that a jump insn can jump
  13761. to. It contains two special fields of data in addition to the
  13762. three standard ones. 'CODE_LABEL_NUMBER' is used to hold the
  13763. "label number", a number that identifies this label uniquely among
  13764. all the labels in the compilation (not just in the current
  13765. function). Ultimately, the label is represented in the assembler
  13766. output as an assembler label, usually of the form 'LN' where N is
  13767. the label number.
  13768. When a 'code_label' appears in an RTL expression, it normally
  13769. appears within a 'label_ref' which represents the address of the
  13770. label, as a number.
  13771. Besides as a 'code_label', a label can also be represented as a
  13772. 'note' of type 'NOTE_INSN_DELETED_LABEL'.
  13773. The field 'LABEL_NUSES' is only defined once the jump optimization
  13774. phase is completed. It contains the number of times this label is
  13775. referenced in the current function.
  13776. The field 'LABEL_KIND' differentiates four different types of
  13777. labels: 'LABEL_NORMAL', 'LABEL_STATIC_ENTRY', 'LABEL_GLOBAL_ENTRY',
  13778. and 'LABEL_WEAK_ENTRY'. The only labels that do not have type
  13779. 'LABEL_NORMAL' are "alternate entry points" to the current
  13780. function. These may be static (visible only in the containing
  13781. translation unit), global (exposed to all translation units), or
  13782. weak (global, but can be overridden by another symbol with the same
  13783. name).
  13784. Much of the compiler treats all four kinds of label identically.
  13785. Some of it needs to know whether or not a label is an alternate
  13786. entry point; for this purpose, the macro 'LABEL_ALT_ENTRY_P' is
  13787. provided. It is equivalent to testing whether 'LABEL_KIND (label)
  13788. == LABEL_NORMAL'. The only place that cares about the distinction
  13789. between static, global, and weak alternate entry points, besides
  13790. the front-end code that creates them, is the function
  13791. 'output_alternate_entry_point', in 'final.c'.
  13792. To set the kind of a label, use the 'SET_LABEL_KIND' macro.
  13793. 'jump_table_data'
  13794. A 'jump_table_data' insn is a placeholder for the jump-table data
  13795. of a 'casesi' or 'tablejump' insn. They are placed after a
  13796. 'tablejump_p' insn. A 'jump_table_data' insn is not part o a basic
  13797. blockm but it is associated with the basic block that ends with the
  13798. 'tablejump_p' insn. The 'PATTERN' of a 'jump_table_data' is always
  13799. either an 'addr_vec' or an 'addr_diff_vec', and a 'jump_table_data'
  13800. insn is always preceded by a 'code_label'. The 'tablejump_p' insn
  13801. refers to that 'code_label' via its 'JUMP_LABEL'.
  13802. 'barrier'
  13803. Barriers are placed in the instruction stream when control cannot
  13804. flow past them. They are placed after unconditional jump
  13805. instructions to indicate that the jumps are unconditional and after
  13806. calls to 'volatile' functions, which do not return (e.g., 'exit').
  13807. They contain no information beyond the three standard fields.
  13808. 'note'
  13809. 'note' insns are used to represent additional debugging and
  13810. declarative information. They contain two nonstandard fields, an
  13811. integer which is accessed with the macro 'NOTE_LINE_NUMBER' and a
  13812. string accessed with 'NOTE_SOURCE_FILE'.
  13813. If 'NOTE_LINE_NUMBER' is positive, the note represents the position
  13814. of a source line and 'NOTE_SOURCE_FILE' is the source file name
  13815. that the line came from. These notes control generation of line
  13816. number data in the assembler output.
  13817. Otherwise, 'NOTE_LINE_NUMBER' is not really a line number but a
  13818. code with one of the following values (and 'NOTE_SOURCE_FILE' must
  13819. contain a null pointer):
  13820. 'NOTE_INSN_DELETED'
  13821. Such a note is completely ignorable. Some passes of the
  13822. compiler delete insns by altering them into notes of this
  13823. kind.
  13824. 'NOTE_INSN_DELETED_LABEL'
  13825. This marks what used to be a 'code_label', but was not used
  13826. for other purposes than taking its address and was transformed
  13827. to mark that no code jumps to it.
  13828. 'NOTE_INSN_BLOCK_BEG'
  13829. 'NOTE_INSN_BLOCK_END'
  13830. These types of notes indicate the position of the beginning
  13831. and end of a level of scoping of variable names. They control
  13832. the output of debugging information.
  13833. 'NOTE_INSN_EH_REGION_BEG'
  13834. 'NOTE_INSN_EH_REGION_END'
  13835. These types of notes indicate the position of the beginning
  13836. and end of a level of scoping for exception handling.
  13837. 'NOTE_EH_HANDLER' identifies which region is associated with
  13838. these notes.
  13839. 'NOTE_INSN_FUNCTION_BEG'
  13840. Appears at the start of the function body, after the function
  13841. prologue.
  13842. 'NOTE_INSN_VAR_LOCATION'
  13843. This note is used to generate variable location debugging
  13844. information. It indicates that the user variable in its
  13845. 'VAR_LOCATION' operand is at the location given in the RTL
  13846. expression, or holds a value that can be computed by
  13847. evaluating the RTL expression from that static point in the
  13848. program up to the next such note for the same user variable.
  13849. These codes are printed symbolically when they appear in debugging
  13850. dumps.
  13851. 'debug_insn'
  13852. The expression code 'debug_insn' is used for pseudo-instructions
  13853. that hold debugging information for variable tracking at
  13854. assignments (see '-fvar-tracking-assignments' option). They are
  13855. the RTL representation of 'GIMPLE_DEBUG' statements (*note
  13856. 'GIMPLE_DEBUG'::), with a 'VAR_LOCATION' operand that binds a user
  13857. variable tree to an RTL representation of the 'value' in the
  13858. corresponding statement. A 'DEBUG_EXPR' in it stands for the value
  13859. bound to the corresponding 'DEBUG_EXPR_DECL'.
  13860. Throughout optimization passes, binding information is kept in
  13861. pseudo-instruction form, so that, unlike notes, it gets the same
  13862. treatment and adjustments that regular instructions would. It is
  13863. the variable tracking pass that turns these pseudo-instructions
  13864. into var location notes, analyzing control flow, value equivalences
  13865. and changes to registers and memory referenced in value
  13866. expressions, propagating the values of debug temporaries and
  13867. determining expressions that can be used to compute the value of
  13868. each user variable at as many points (ranges, actually) in the
  13869. program as possible.
  13870. Unlike 'NOTE_INSN_VAR_LOCATION', the value expression in an
  13871. 'INSN_VAR_LOCATION' denotes a value at that specific point in the
  13872. program, rather than an expression that can be evaluated at any
  13873. later point before an overriding 'VAR_LOCATION' is encountered.
  13874. E.g., if a user variable is bound to a 'REG' and then a subsequent
  13875. insn modifies the 'REG', the note location would keep mapping the
  13876. user variable to the register across the insn, whereas the insn
  13877. location would keep the variable bound to the value, so that the
  13878. variable tracking pass would emit another location note for the
  13879. variable at the point in which the register is modified.
  13880. The machine mode of an insn is normally 'VOIDmode', but some phases use
  13881. the mode for various purposes.
  13882. The common subexpression elimination pass sets the mode of an insn to
  13883. 'QImode' when it is the first insn in a block that has already been
  13884. processed.
  13885. The second Haifa scheduling pass, for targets that can multiple issue,
  13886. sets the mode of an insn to 'TImode' when it is believed that the
  13887. instruction begins an issue group. That is, when the instruction cannot
  13888. issue simultaneously with the previous. This may be relied on by later
  13889. passes, in particular machine-dependent reorg.
  13890. Here is a table of the extra fields of 'insn', 'jump_insn' and
  13891. 'call_insn' insns:
  13892. 'PATTERN (I)'
  13893. An expression for the side effect performed by this insn. This
  13894. must be one of the following codes: 'set', 'call', 'use',
  13895. 'clobber', 'return', 'simple_return', 'asm_input', 'asm_output',
  13896. 'addr_vec', 'addr_diff_vec', 'trap_if', 'unspec',
  13897. 'unspec_volatile', 'parallel', 'cond_exec', or 'sequence'. If it
  13898. is a 'parallel', each element of the 'parallel' must be one these
  13899. codes, except that 'parallel' expressions cannot be nested and
  13900. 'addr_vec' and 'addr_diff_vec' are not permitted inside a
  13901. 'parallel' expression.
  13902. 'INSN_CODE (I)'
  13903. An integer that says which pattern in the machine description
  13904. matches this insn, or -1 if the matching has not yet been
  13905. attempted.
  13906. Such matching is never attempted and this field remains -1 on an
  13907. insn whose pattern consists of a single 'use', 'clobber',
  13908. 'asm_input', 'addr_vec' or 'addr_diff_vec' expression.
  13909. Matching is also never attempted on insns that result from an 'asm'
  13910. statement. These contain at least one 'asm_operands' expression.
  13911. The function 'asm_noperands' returns a non-negative value for such
  13912. insns.
  13913. In the debugging output, this field is printed as a number followed
  13914. by a symbolic representation that locates the pattern in the 'md'
  13915. file as some small positive or negative offset from a named
  13916. pattern.
  13917. 'LOG_LINKS (I)'
  13918. A list (chain of 'insn_list' expressions) giving information about
  13919. dependencies between instructions within a basic block. Neither a
  13920. jump nor a label may come between the related insns. These are
  13921. only used by the schedulers and by combine. This is a deprecated
  13922. data structure. Def-use and use-def chains are now preferred.
  13923. 'REG_NOTES (I)'
  13924. A list (chain of 'expr_list', 'insn_list' and 'int_list'
  13925. expressions) giving miscellaneous information about the insn. It
  13926. is often information pertaining to the registers used in this insn.
  13927. The 'LOG_LINKS' field of an insn is a chain of 'insn_list' expressions.
  13928. Each of these has two operands: the first is an insn, and the second is
  13929. another 'insn_list' expression (the next one in the chain). The last
  13930. 'insn_list' in the chain has a null pointer as second operand. The
  13931. significant thing about the chain is which insns appear in it (as first
  13932. operands of 'insn_list' expressions). Their order is not significant.
  13933. This list is originally set up by the flow analysis pass; it is a null
  13934. pointer until then. Flow only adds links for those data dependencies
  13935. which can be used for instruction combination. For each insn, the flow
  13936. analysis pass adds a link to insns which store into registers values
  13937. that are used for the first time in this insn.
  13938. The 'REG_NOTES' field of an insn is a chain similar to the 'LOG_LINKS'
  13939. field but it includes 'expr_list' and 'int_list' expressions in addition
  13940. to 'insn_list' expressions. There are several kinds of register notes,
  13941. which are distinguished by the machine mode, which in a register note is
  13942. really understood as being an 'enum reg_note'. The first operand OP of
  13943. the note is data whose meaning depends on the kind of note.
  13944. The macro 'REG_NOTE_KIND (X)' returns the kind of register note. Its
  13945. counterpart, the macro 'PUT_REG_NOTE_KIND (X, NEWKIND)' sets the
  13946. register note type of X to be NEWKIND.
  13947. Register notes are of three classes: They may say something about an
  13948. input to an insn, they may say something about an output of an insn, or
  13949. they may create a linkage between two insns. There are also a set of
  13950. values that are only used in 'LOG_LINKS'.
  13951. These register notes annotate inputs to an insn:
  13952. 'REG_DEAD'
  13953. The value in OP dies in this insn; that is to say, altering the
  13954. value immediately after this insn would not affect the future
  13955. behavior of the program.
  13956. It does not follow that the register OP has no useful value after
  13957. this insn since OP is not necessarily modified by this insn.
  13958. Rather, no subsequent instruction uses the contents of OP.
  13959. 'REG_UNUSED'
  13960. The register OP being set by this insn will not be used in a
  13961. subsequent insn. This differs from a 'REG_DEAD' note, which
  13962. indicates that the value in an input will not be used subsequently.
  13963. These two notes are independent; both may be present for the same
  13964. register.
  13965. 'REG_INC'
  13966. The register OP is incremented (or decremented; at this level there
  13967. is no distinction) by an embedded side effect inside this insn.
  13968. This means it appears in a 'post_inc', 'pre_inc', 'post_dec' or
  13969. 'pre_dec' expression.
  13970. 'REG_NONNEG'
  13971. The register OP is known to have a nonnegative value when this insn
  13972. is reached. This is used so that decrement and branch until zero
  13973. instructions, such as the m68k dbra, can be matched.
  13974. The 'REG_NONNEG' note is added to insns only if the machine
  13975. description has a 'decrement_and_branch_until_zero' pattern.
  13976. 'REG_LABEL_OPERAND'
  13977. This insn uses OP, a 'code_label' or a 'note' of type
  13978. 'NOTE_INSN_DELETED_LABEL', but is not a 'jump_insn', or it is a
  13979. 'jump_insn' that refers to the operand as an ordinary operand. The
  13980. label may still eventually be a jump target, but if so in an
  13981. indirect jump in a subsequent insn. The presence of this note
  13982. allows jump optimization to be aware that OP is, in fact, being
  13983. used, and flow optimization to build an accurate flow graph.
  13984. 'REG_LABEL_TARGET'
  13985. This insn is a 'jump_insn' but not an 'addr_vec' or
  13986. 'addr_diff_vec'. It uses OP, a 'code_label' as a direct or
  13987. indirect jump target. Its purpose is similar to that of
  13988. 'REG_LABEL_OPERAND'. This note is only present if the insn has
  13989. multiple targets; the last label in the insn (in the highest
  13990. numbered insn-field) goes into the 'JUMP_LABEL' field and does not
  13991. have a 'REG_LABEL_TARGET' note. *Note JUMP_LABEL: Insns.
  13992. 'REG_CROSSING_JUMP'
  13993. This insn is a branching instruction (either an unconditional jump
  13994. or an indirect jump) which crosses between hot and cold sections,
  13995. which could potentially be very far apart in the executable. The
  13996. presence of this note indicates to other optimizations that this
  13997. branching instruction should not be "collapsed" into a simpler
  13998. branching construct. It is used when the optimization to partition
  13999. basic blocks into hot and cold sections is turned on.
  14000. 'REG_SETJMP'
  14001. Appears attached to each 'CALL_INSN' to 'setjmp' or a related
  14002. function.
  14003. The following notes describe attributes of outputs of an insn:
  14004. 'REG_EQUIV'
  14005. 'REG_EQUAL'
  14006. This note is only valid on an insn that sets only one register and
  14007. indicates that that register will be equal to OP at run time; the
  14008. scope of this equivalence differs between the two types of notes.
  14009. The value which the insn explicitly copies into the register may
  14010. look different from OP, but they will be equal at run time. If the
  14011. output of the single 'set' is a 'strict_low_part' or 'zero_extract'
  14012. expression, the note refers to the register that is contained in
  14013. its first operand.
  14014. For 'REG_EQUIV', the register is equivalent to OP throughout the
  14015. entire function, and could validly be replaced in all its
  14016. occurrences by OP. ("Validly" here refers to the data flow of the
  14017. program; simple replacement may make some insns invalid.) For
  14018. example, when a constant is loaded into a register that is never
  14019. assigned any other value, this kind of note is used.
  14020. When a parameter is copied into a pseudo-register at entry to a
  14021. function, a note of this kind records that the register is
  14022. equivalent to the stack slot where the parameter was passed.
  14023. Although in this case the register may be set by other insns, it is
  14024. still valid to replace the register by the stack slot throughout
  14025. the function.
  14026. A 'REG_EQUIV' note is also used on an instruction which copies a
  14027. register parameter into a pseudo-register at entry to a function,
  14028. if there is a stack slot where that parameter could be stored.
  14029. Although other insns may set the pseudo-register, it is valid for
  14030. the compiler to replace the pseudo-register by stack slot
  14031. throughout the function, provided the compiler ensures that the
  14032. stack slot is properly initialized by making the replacement in the
  14033. initial copy instruction as well. This is used on machines for
  14034. which the calling convention allocates stack space for register
  14035. parameters. See 'REG_PARM_STACK_SPACE' in *note Stack Arguments::.
  14036. In the case of 'REG_EQUAL', the register that is set by this insn
  14037. will be equal to OP at run time at the end of this insn but not
  14038. necessarily elsewhere in the function. In this case, OP is
  14039. typically an arithmetic expression. For example, when a sequence
  14040. of insns such as a library call is used to perform an arithmetic
  14041. operation, this kind of note is attached to the insn that produces
  14042. or copies the final value.
  14043. These two notes are used in different ways by the compiler passes.
  14044. 'REG_EQUAL' is used by passes prior to register allocation (such as
  14045. common subexpression elimination and loop optimization) to tell
  14046. them how to think of that value. 'REG_EQUIV' notes are used by
  14047. register allocation to indicate that there is an available
  14048. substitute expression (either a constant or a 'mem' expression for
  14049. the location of a parameter on the stack) that may be used in place
  14050. of a register if insufficient registers are available.
  14051. Except for stack homes for parameters, which are indicated by a
  14052. 'REG_EQUIV' note and are not useful to the early optimization
  14053. passes and pseudo registers that are equivalent to a memory
  14054. location throughout their entire life, which is not detected until
  14055. later in the compilation, all equivalences are initially indicated
  14056. by an attached 'REG_EQUAL' note. In the early stages of register
  14057. allocation, a 'REG_EQUAL' note is changed into a 'REG_EQUIV' note
  14058. if OP is a constant and the insn represents the only set of its
  14059. destination register.
  14060. Thus, compiler passes prior to register allocation need only check
  14061. for 'REG_EQUAL' notes and passes subsequent to register allocation
  14062. need only check for 'REG_EQUIV' notes.
  14063. These notes describe linkages between insns. They occur in pairs: one
  14064. insn has one of a pair of notes that points to a second insn, which has
  14065. the inverse note pointing back to the first insn.
  14066. 'REG_CC_SETTER'
  14067. 'REG_CC_USER'
  14068. On machines that use 'cc0', the insns which set and use 'cc0' set
  14069. and use 'cc0' are adjacent. However, when branch delay slot
  14070. filling is done, this may no longer be true. In this case a
  14071. 'REG_CC_USER' note will be placed on the insn setting 'cc0' to
  14072. point to the insn using 'cc0' and a 'REG_CC_SETTER' note will be
  14073. placed on the insn using 'cc0' to point to the insn setting 'cc0'.
  14074. These values are only used in the 'LOG_LINKS' field, and indicate the
  14075. type of dependency that each link represents. Links which indicate a
  14076. data dependence (a read after write dependence) do not use any code,
  14077. they simply have mode 'VOIDmode', and are printed without any
  14078. descriptive text.
  14079. 'REG_DEP_TRUE'
  14080. This indicates a true dependence (a read after write dependence).
  14081. 'REG_DEP_OUTPUT'
  14082. This indicates an output dependence (a write after write
  14083. dependence).
  14084. 'REG_DEP_ANTI'
  14085. This indicates an anti dependence (a write after read dependence).
  14086. These notes describe information gathered from gcov profile data. They
  14087. are stored in the 'REG_NOTES' field of an insn.
  14088. 'REG_BR_PROB'
  14089. This is used to specify the ratio of branches to non-branches of a
  14090. branch insn according to the profile data. The note is represented
  14091. as an 'int_list' expression whose integer value is between 0 and
  14092. REG_BR_PROB_BASE. Larger values indicate a higher probability that
  14093. the branch will be taken.
  14094. 'REG_BR_PRED'
  14095. These notes are found in JUMP insns after delayed branch scheduling
  14096. has taken place. They indicate both the direction and the
  14097. likelihood of the JUMP. The format is a bitmask of ATTR_FLAG_*
  14098. values.
  14099. 'REG_FRAME_RELATED_EXPR'
  14100. This is used on an RTX_FRAME_RELATED_P insn wherein the attached
  14101. expression is used in place of the actual insn pattern. This is
  14102. done in cases where the pattern is either complex or misleading.
  14103. For convenience, the machine mode in an 'insn_list' or 'expr_list' is
  14104. printed using these symbolic codes in debugging dumps.
  14105. The only difference between the expression codes 'insn_list' and
  14106. 'expr_list' is that the first operand of an 'insn_list' is assumed to be
  14107. an insn and is printed in debugging dumps as the insn's unique id; the
  14108. first operand of an 'expr_list' is printed in the ordinary way as an
  14109. expression.
  14110. 
  14111. File: gccint.info, Node: Calls, Next: Sharing, Prev: Insns, Up: RTL
  14112. 13.20 RTL Representation of Function-Call Insns
  14113. ===============================================
  14114. Insns that call subroutines have the RTL expression code 'call_insn'.
  14115. These insns must satisfy special rules, and their bodies must use a
  14116. special RTL expression code, 'call'.
  14117. A 'call' expression has two operands, as follows:
  14118. (call (mem:FM ADDR) NBYTES)
  14119. Here NBYTES is an operand that represents the number of bytes of
  14120. argument data being passed to the subroutine, FM is a machine mode
  14121. (which must equal as the definition of the 'FUNCTION_MODE' macro in the
  14122. machine description) and ADDR represents the address of the subroutine.
  14123. For a subroutine that returns no value, the 'call' expression as shown
  14124. above is the entire body of the insn, except that the insn might also
  14125. contain 'use' or 'clobber' expressions.
  14126. For a subroutine that returns a value whose mode is not 'BLKmode', the
  14127. value is returned in a hard register. If this register's number is R,
  14128. then the body of the call insn looks like this:
  14129. (set (reg:M R)
  14130. (call (mem:FM ADDR) NBYTES))
  14131. This RTL expression makes it clear (to the optimizer passes) that the
  14132. appropriate register receives a useful value in this insn.
  14133. When a subroutine returns a 'BLKmode' value, it is handled by passing
  14134. to the subroutine the address of a place to store the value. So the
  14135. call insn itself does not "return" any value, and it has the same RTL
  14136. form as a call that returns nothing.
  14137. On some machines, the call instruction itself clobbers some register,
  14138. for example to contain the return address. 'call_insn' insns on these
  14139. machines should have a body which is a 'parallel' that contains both the
  14140. 'call' expression and 'clobber' expressions that indicate which
  14141. registers are destroyed. Similarly, if the call instruction requires
  14142. some register other than the stack pointer that is not explicitly
  14143. mentioned in its RTL, a 'use' subexpression should mention that
  14144. register.
  14145. Functions that are called are assumed to modify all registers listed in
  14146. the configuration macro 'CALL_USED_REGISTERS' (*note Register Basics::)
  14147. and, with the exception of 'const' functions and library calls, to
  14148. modify all of memory.
  14149. Insns containing just 'use' expressions directly precede the
  14150. 'call_insn' insn to indicate which registers contain inputs to the
  14151. function. Similarly, if registers other than those in
  14152. 'CALL_USED_REGISTERS' are clobbered by the called function, insns
  14153. containing a single 'clobber' follow immediately after the call to
  14154. indicate which registers.
  14155. 
  14156. File: gccint.info, Node: Sharing, Next: Reading RTL, Prev: Calls, Up: RTL
  14157. 13.21 Structure Sharing Assumptions
  14158. ===================================
  14159. The compiler assumes that certain kinds of RTL expressions are unique;
  14160. there do not exist two distinct objects representing the same value. In
  14161. other cases, it makes an opposite assumption: that no RTL expression
  14162. object of a certain kind appears in more than one place in the
  14163. containing structure.
  14164. These assumptions refer to a single function; except for the RTL
  14165. objects that describe global variables and external functions, and a few
  14166. standard objects such as small integer constants, no RTL objects are
  14167. common to two functions.
  14168. * Each pseudo-register has only a single 'reg' object to represent
  14169. it, and therefore only a single machine mode.
  14170. * For any symbolic label, there is only one 'symbol_ref' object
  14171. referring to it.
  14172. * All 'const_int' expressions with equal values are shared.
  14173. * There is only one 'pc' expression.
  14174. * There is only one 'cc0' expression.
  14175. * There is only one 'const_double' expression with value 0 for each
  14176. floating point mode. Likewise for values 1 and 2.
  14177. * There is only one 'const_vector' expression with value 0 for each
  14178. vector mode, be it an integer or a double constant vector.
  14179. * No 'label_ref' or 'scratch' appears in more than one place in the
  14180. RTL structure; in other words, it is safe to do a tree-walk of all
  14181. the insns in the function and assume that each time a 'label_ref'
  14182. or 'scratch' is seen it is distinct from all others that are seen.
  14183. * Only one 'mem' object is normally created for each static variable
  14184. or stack slot, so these objects are frequently shared in all the
  14185. places they appear. However, separate but equal objects for these
  14186. variables are occasionally made.
  14187. * When a single 'asm' statement has multiple output operands, a
  14188. distinct 'asm_operands' expression is made for each output operand.
  14189. However, these all share the vector which contains the sequence of
  14190. input operands. This sharing is used later on to test whether two
  14191. 'asm_operands' expressions come from the same statement, so all
  14192. optimizations must carefully preserve the sharing if they copy the
  14193. vector at all.
  14194. * No RTL object appears in more than one place in the RTL structure
  14195. except as described above. Many passes of the compiler rely on
  14196. this by assuming that they can modify RTL objects in place without
  14197. unwanted side-effects on other insns.
  14198. * During initial RTL generation, shared structure is freely
  14199. introduced. After all the RTL for a function has been generated,
  14200. all shared structure is copied by 'unshare_all_rtl' in
  14201. 'emit-rtl.c', after which the above rules are guaranteed to be
  14202. followed.
  14203. * During the combiner pass, shared structure within an insn can exist
  14204. temporarily. However, the shared structure is copied before the
  14205. combiner is finished with the insn. This is done by calling
  14206. 'copy_rtx_if_shared', which is a subroutine of 'unshare_all_rtl'.
  14207. 
  14208. File: gccint.info, Node: Reading RTL, Prev: Sharing, Up: RTL
  14209. 13.22 Reading RTL
  14210. =================
  14211. To read an RTL object from a file, call 'read_rtx'. It takes one
  14212. argument, a stdio stream, and returns a single RTL object. This routine
  14213. is defined in 'read-rtl.c'. It is not available in the compiler itself,
  14214. only the various programs that generate the compiler back end from the
  14215. machine description.
  14216. People frequently have the idea of using RTL stored as text in a file
  14217. as an interface between a language front end and the bulk of GCC. This
  14218. idea is not feasible.
  14219. GCC was designed to use RTL internally only. Correct RTL for a given
  14220. program is very dependent on the particular target machine. And the RTL
  14221. does not contain all the information about the program.
  14222. The proper way to interface GCC to a new language front end is with the
  14223. "tree" data structure, described in the files 'tree.h' and 'tree.def'.
  14224. The documentation for this structure (*note GENERIC::) is incomplete.
  14225. 
  14226. File: gccint.info, Node: Control Flow, Next: Loop Analysis and Representation, Prev: RTL, Up: Top
  14227. 14 Control Flow Graph
  14228. *********************
  14229. A control flow graph (CFG) is a data structure built on top of the
  14230. intermediate code representation (the RTL or 'GIMPLE' instruction
  14231. stream) abstracting the control flow behavior of a function that is
  14232. being compiled. The CFG is a directed graph where the vertices
  14233. represent basic blocks and edges represent possible transfer of control
  14234. flow from one basic block to another. The data structures used to
  14235. represent the control flow graph are defined in 'basic-block.h'.
  14236. In GCC, the representation of control flow is maintained throughout the
  14237. compilation process, from constructing the CFG early in 'pass_build_cfg'
  14238. to 'pass_free_cfg' (see 'passes.def'). The CFG takes various different
  14239. modes and may undergo extensive manipulations, but the graph is always
  14240. valid between its construction and its release. This way, transfer of
  14241. information such as data flow, a measured profile, or the loop tree, can
  14242. be propagated through the passes pipeline, and even from 'GIMPLE' to
  14243. 'RTL'.
  14244. Often the CFG may be better viewed as integral part of instruction
  14245. chain, than structure built on the top of it. Updating the compiler's
  14246. intermediate representation for instructions can not be easily done
  14247. without proper maintenance of the CFG simultaneously.
  14248. * Menu:
  14249. * Basic Blocks:: The definition and representation of basic blocks.
  14250. * Edges:: Types of edges and their representation.
  14251. * Profile information:: Representation of frequencies and probabilities.
  14252. * Maintaining the CFG:: Keeping the control flow graph and up to date.
  14253. * Liveness information:: Using and maintaining liveness information.
  14254. 
  14255. File: gccint.info, Node: Basic Blocks, Next: Edges, Up: Control Flow
  14256. 14.1 Basic Blocks
  14257. =================
  14258. A basic block is a straight-line sequence of code with only one entry
  14259. point and only one exit. In GCC, basic blocks are represented using the
  14260. 'basic_block' data type.
  14261. Special basic blocks represent possible entry and exit points of a
  14262. function. These blocks are called 'ENTRY_BLOCK_PTR' and
  14263. 'EXIT_BLOCK_PTR'. These blocks do not contain any code.
  14264. The 'BASIC_BLOCK' array contains all basic blocks in an unspecified
  14265. order. Each 'basic_block' structure has a field that holds a unique
  14266. integer identifier 'index' that is the index of the block in the
  14267. 'BASIC_BLOCK' array. The total number of basic blocks in the function
  14268. is 'n_basic_blocks'. Both the basic block indices and the total number
  14269. of basic blocks may vary during the compilation process, as passes
  14270. reorder, create, duplicate, and destroy basic blocks. The index for any
  14271. block should never be greater than 'last_basic_block'. The indices 0
  14272. and 1 are special codes reserved for 'ENTRY_BLOCK' and 'EXIT_BLOCK', the
  14273. indices of 'ENTRY_BLOCK_PTR' and 'EXIT_BLOCK_PTR'.
  14274. Two pointer members of the 'basic_block' structure are the pointers
  14275. 'next_bb' and 'prev_bb'. These are used to keep doubly linked chain of
  14276. basic blocks in the same order as the underlying instruction stream.
  14277. The chain of basic blocks is updated transparently by the provided API
  14278. for manipulating the CFG. The macro 'FOR_EACH_BB' can be used to visit
  14279. all the basic blocks in lexicographical order, except 'ENTRY_BLOCK' and
  14280. 'EXIT_BLOCK'. The macro 'FOR_ALL_BB' also visits all basic blocks in
  14281. lexicographical order, including 'ENTRY_BLOCK' and 'EXIT_BLOCK'.
  14282. The functions 'post_order_compute' and 'inverted_post_order_compute'
  14283. can be used to compute topological orders of the CFG. The orders are
  14284. stored as vectors of basic block indices. The 'BASIC_BLOCK' array can
  14285. be used to iterate each basic block by index. Dominator traversals are
  14286. also possible using 'walk_dominator_tree'. Given two basic blocks A and
  14287. B, block A dominates block B if A is _always_ executed before B.
  14288. Each 'basic_block' also contains pointers to the first instruction (the
  14289. "head") and the last instruction (the "tail") or "end" of the
  14290. instruction stream contained in a basic block. In fact, since the
  14291. 'basic_block' data type is used to represent blocks in both major
  14292. intermediate representations of GCC ('GIMPLE' and RTL), there are
  14293. pointers to the head and end of a basic block for both representations,
  14294. stored in intermediate representation specific data in the 'il' field of
  14295. 'struct basic_block_def'.
  14296. For RTL, these pointers are 'BB_HEAD' and 'BB_END'.
  14297. In the RTL representation of a function, the instruction stream
  14298. contains not only the "real" instructions, but also "notes" or "insn
  14299. notes" (to distinguish them from "reg notes"). Any function that moves
  14300. or duplicates the basic blocks needs to take care of updating of these
  14301. notes. Many of these notes expect that the instruction stream consists
  14302. of linear regions, so updating can sometimes be tedious. All types of
  14303. insn notes are defined in 'insn-notes.def'.
  14304. In the RTL function representation, the instructions contained in a
  14305. basic block always follow a 'NOTE_INSN_BASIC_BLOCK', but zero or more
  14306. 'CODE_LABEL' nodes can precede the block note. A basic block ends with
  14307. a control flow instruction or with the last instruction before the next
  14308. 'CODE_LABEL' or 'NOTE_INSN_BASIC_BLOCK'. By definition, a 'CODE_LABEL'
  14309. cannot appear in the middle of the instruction stream of a basic block.
  14310. In addition to notes, the jump table vectors are also represented as
  14311. "pseudo-instructions" inside the insn stream. These vectors never
  14312. appear in the basic block and should always be placed just after the
  14313. table jump instructions referencing them. After removing the table-jump
  14314. it is often difficult to eliminate the code computing the address and
  14315. referencing the vector, so cleaning up these vectors is postponed until
  14316. after liveness analysis. Thus the jump table vectors may appear in the
  14317. insn stream unreferenced and without any purpose. Before any edge is
  14318. made "fall-thru", the existence of such construct in the way needs to be
  14319. checked by calling 'can_fallthru' function.
  14320. For the 'GIMPLE' representation, the PHI nodes and statements contained
  14321. in a basic block are in a 'gimple_seq' pointed to by the basic block
  14322. intermediate language specific pointers. Abstract containers and
  14323. iterators are used to access the PHI nodes and statements in a basic
  14324. blocks. These iterators are called "GIMPLE statement iterators" (GSIs).
  14325. Grep for '^gsi' in the various 'gimple-*' and 'tree-*' files. There is
  14326. a 'gimple_stmt_iterator' type for iterating over all kinds of statement,
  14327. and a 'gphi_iterator' subclass for iterating over PHI nodes. The
  14328. following snippet will pretty-print all PHI nodes the statements of the
  14329. current function in the GIMPLE representation.
  14330. basic_block bb;
  14331. FOR_EACH_BB (bb)
  14332. {
  14333. gphi_iterator pi;
  14334. gimple_stmt_iterator si;
  14335. for (pi = gsi_start_phis (bb); !gsi_end_p (pi); gsi_next (&pi))
  14336. {
  14337. gphi *phi = pi.phi ();
  14338. print_gimple_stmt (dump_file, phi, 0, TDF_SLIM);
  14339. }
  14340. for (si = gsi_start_bb (bb); !gsi_end_p (si); gsi_next (&si))
  14341. {
  14342. gimple stmt = gsi_stmt (si);
  14343. print_gimple_stmt (dump_file, stmt, 0, TDF_SLIM);
  14344. }
  14345. }
  14346. 
  14347. File: gccint.info, Node: Edges, Next: Profile information, Prev: Basic Blocks, Up: Control Flow
  14348. 14.2 Edges
  14349. ==========
  14350. Edges represent possible control flow transfers from the end of some
  14351. basic block A to the head of another basic block B. We say that A is a
  14352. predecessor of B, and B is a successor of A. Edges are represented in
  14353. GCC with the 'edge' data type. Each 'edge' acts as a link between two
  14354. basic blocks: The 'src' member of an edge points to the predecessor
  14355. basic block of the 'dest' basic block. The members 'preds' and 'succs'
  14356. of the 'basic_block' data type point to type-safe vectors of edges to
  14357. the predecessors and successors of the block.
  14358. When walking the edges in an edge vector, "edge iterators" should be
  14359. used. Edge iterators are constructed using the 'edge_iterator' data
  14360. structure and several methods are available to operate on them:
  14361. 'ei_start'
  14362. This function initializes an 'edge_iterator' that points to the
  14363. first edge in a vector of edges.
  14364. 'ei_last'
  14365. This function initializes an 'edge_iterator' that points to the
  14366. last edge in a vector of edges.
  14367. 'ei_end_p'
  14368. This predicate is 'true' if an 'edge_iterator' represents the last
  14369. edge in an edge vector.
  14370. 'ei_one_before_end_p'
  14371. This predicate is 'true' if an 'edge_iterator' represents the
  14372. second last edge in an edge vector.
  14373. 'ei_next'
  14374. This function takes a pointer to an 'edge_iterator' and makes it
  14375. point to the next edge in the sequence.
  14376. 'ei_prev'
  14377. This function takes a pointer to an 'edge_iterator' and makes it
  14378. point to the previous edge in the sequence.
  14379. 'ei_edge'
  14380. This function returns the 'edge' currently pointed to by an
  14381. 'edge_iterator'.
  14382. 'ei_safe_safe'
  14383. This function returns the 'edge' currently pointed to by an
  14384. 'edge_iterator', but returns 'NULL' if the iterator is pointing at
  14385. the end of the sequence. This function has been provided for
  14386. existing code makes the assumption that a 'NULL' edge indicates the
  14387. end of the sequence.
  14388. The convenience macro 'FOR_EACH_EDGE' can be used to visit all of the
  14389. edges in a sequence of predecessor or successor edges. It must not be
  14390. used when an element might be removed during the traversal, otherwise
  14391. elements will be missed. Here is an example of how to use the macro:
  14392. edge e;
  14393. edge_iterator ei;
  14394. FOR_EACH_EDGE (e, ei, bb->succs)
  14395. {
  14396. if (e->flags & EDGE_FALLTHRU)
  14397. break;
  14398. }
  14399. There are various reasons why control flow may transfer from one block
  14400. to another. One possibility is that some instruction, for example a
  14401. 'CODE_LABEL', in a linearized instruction stream just always starts a
  14402. new basic block. In this case a "fall-thru" edge links the basic block
  14403. to the first following basic block. But there are several other reasons
  14404. why edges may be created. The 'flags' field of the 'edge' data type is
  14405. used to store information about the type of edge we are dealing with.
  14406. Each edge is of one of the following types:
  14407. _jump_
  14408. No type flags are set for edges corresponding to jump instructions.
  14409. These edges are used for unconditional or conditional jumps and in
  14410. RTL also for table jumps. They are the easiest to manipulate as
  14411. they may be freely redirected when the flow graph is not in SSA
  14412. form.
  14413. _fall-thru_
  14414. Fall-thru edges are present in case where the basic block may
  14415. continue execution to the following one without branching. These
  14416. edges have the 'EDGE_FALLTHRU' flag set. Unlike other types of
  14417. edges, these edges must come into the basic block immediately
  14418. following in the instruction stream. The function
  14419. 'force_nonfallthru' is available to insert an unconditional jump in
  14420. the case that redirection is needed. Note that this may require
  14421. creation of a new basic block.
  14422. _exception handling_
  14423. Exception handling edges represent possible control transfers from
  14424. a trapping instruction to an exception handler. The definition of
  14425. "trapping" varies. In C++, only function calls can throw, but for
  14426. Ada exceptions like division by zero or segmentation fault are
  14427. defined and thus each instruction possibly throwing this kind of
  14428. exception needs to be handled as control flow instruction.
  14429. Exception edges have the 'EDGE_ABNORMAL' and 'EDGE_EH' flags set.
  14430. When updating the instruction stream it is easy to change possibly
  14431. trapping instruction to non-trapping, by simply removing the
  14432. exception edge. The opposite conversion is difficult, but should
  14433. not happen anyway. The edges can be eliminated via
  14434. 'purge_dead_edges' call.
  14435. In the RTL representation, the destination of an exception edge is
  14436. specified by 'REG_EH_REGION' note attached to the insn. In case of
  14437. a trapping call the 'EDGE_ABNORMAL_CALL' flag is set too. In the
  14438. 'GIMPLE' representation, this extra flag is not set.
  14439. In the RTL representation, the predicate 'may_trap_p' may be used
  14440. to check whether instruction still may trap or not. For the tree
  14441. representation, the 'tree_could_trap_p' predicate is available, but
  14442. this predicate only checks for possible memory traps, as in
  14443. dereferencing an invalid pointer location.
  14444. _sibling calls_
  14445. Sibling calls or tail calls terminate the function in a
  14446. non-standard way and thus an edge to the exit must be present.
  14447. 'EDGE_SIBCALL' and 'EDGE_ABNORMAL' are set in such case. These
  14448. edges only exist in the RTL representation.
  14449. _computed jumps_
  14450. Computed jumps contain edges to all labels in the function
  14451. referenced from the code. All those edges have 'EDGE_ABNORMAL'
  14452. flag set. The edges used to represent computed jumps often cause
  14453. compile time performance problems, since functions consisting of
  14454. many taken labels and many computed jumps may have _very_ dense
  14455. flow graphs, so these edges need to be handled with special care.
  14456. During the earlier stages of the compilation process, GCC tries to
  14457. avoid such dense flow graphs by factoring computed jumps. For
  14458. example, given the following series of jumps,
  14459. goto *x;
  14460. [ ... ]
  14461. goto *x;
  14462. [ ... ]
  14463. goto *x;
  14464. [ ... ]
  14465. factoring the computed jumps results in the following code sequence
  14466. which has a much simpler flow graph:
  14467. goto y;
  14468. [ ... ]
  14469. goto y;
  14470. [ ... ]
  14471. goto y;
  14472. [ ... ]
  14473. y:
  14474. goto *x;
  14475. However, the classic problem with this transformation is that it
  14476. has a runtime cost in there resulting code: An extra jump.
  14477. Therefore, the computed jumps are un-factored in the later passes
  14478. of the compiler (in the pass called
  14479. 'pass_duplicate_computed_gotos'). Be aware of that when you work
  14480. on passes in that area. There have been numerous examples already
  14481. where the compile time for code with unfactored computed jumps
  14482. caused some serious headaches.
  14483. _nonlocal goto handlers_
  14484. GCC allows nested functions to return into caller using a 'goto' to
  14485. a label passed to as an argument to the callee. The labels passed
  14486. to nested functions contain special code to cleanup after function
  14487. call. Such sections of code are referred to as "nonlocal goto
  14488. receivers". If a function contains such nonlocal goto receivers,
  14489. an edge from the call to the label is created with the
  14490. 'EDGE_ABNORMAL' and 'EDGE_ABNORMAL_CALL' flags set.
  14491. _function entry points_
  14492. By definition, execution of function starts at basic block 0, so
  14493. there is always an edge from the 'ENTRY_BLOCK_PTR' to basic block
  14494. 0. There is no 'GIMPLE' representation for alternate entry points
  14495. at this moment. In RTL, alternate entry points are specified by
  14496. 'CODE_LABEL' with 'LABEL_ALTERNATE_NAME' defined. This feature is
  14497. currently used for multiple entry point prologues and is limited to
  14498. post-reload passes only. This can be used by back-ends to emit
  14499. alternate prologues for functions called from different contexts.
  14500. In future full support for multiple entry functions defined by
  14501. Fortran 90 needs to be implemented.
  14502. _function exits_
  14503. In the pre-reload representation a function terminates after the
  14504. last instruction in the insn chain and no explicit return
  14505. instructions are used. This corresponds to the fall-thru edge into
  14506. exit block. After reload, optimal RTL epilogues are used that use
  14507. explicit (conditional) return instructions that are represented by
  14508. edges with no flags set.
  14509. 
  14510. File: gccint.info, Node: Profile information, Next: Maintaining the CFG, Prev: Edges, Up: Control Flow
  14511. 14.3 Profile information
  14512. ========================
  14513. In many cases a compiler must make a choice whether to trade speed in
  14514. one part of code for speed in another, or to trade code size for code
  14515. speed. In such cases it is useful to know information about how often
  14516. some given block will be executed. That is the purpose for maintaining
  14517. profile within the flow graph. GCC can handle profile information
  14518. obtained through "profile feedback", but it can also estimate branch
  14519. probabilities based on statics and heuristics.
  14520. The feedback based profile is produced by compiling the program with
  14521. instrumentation, executing it on a train run and reading the numbers of
  14522. executions of basic blocks and edges back to the compiler while
  14523. re-compiling the program to produce the final executable. This method
  14524. provides very accurate information about where a program spends most of
  14525. its time on the train run. Whether it matches the average run of course
  14526. depends on the choice of train data set, but several studies have shown
  14527. that the behavior of a program usually changes just marginally over
  14528. different data sets.
  14529. When profile feedback is not available, the compiler may be asked to
  14530. attempt to predict the behavior of each branch in the program using a
  14531. set of heuristics (see 'predict.def' for details) and compute estimated
  14532. frequencies of each basic block by propagating the probabilities over
  14533. the graph.
  14534. Each 'basic_block' contains two integer fields to represent profile
  14535. information: 'frequency' and 'count'. The 'frequency' is an estimation
  14536. how often is basic block executed within a function. It is represented
  14537. as an integer scaled in the range from 0 to 'BB_FREQ_BASE'. The most
  14538. frequently executed basic block in function is initially set to
  14539. 'BB_FREQ_BASE' and the rest of frequencies are scaled accordingly.
  14540. During optimization, the frequency of the most frequent basic block can
  14541. both decrease (for instance by loop unrolling) or grow (for instance by
  14542. cross-jumping optimization), so scaling sometimes has to be performed
  14543. multiple times.
  14544. The 'count' contains hard-counted numbers of execution measured during
  14545. training runs and is nonzero only when profile feedback is available.
  14546. This value is represented as the host's widest integer (typically a 64
  14547. bit integer) of the special type 'gcov_type'.
  14548. Most optimization passes can use only the frequency information of a
  14549. basic block, but a few passes may want to know hard execution counts.
  14550. The frequencies should always match the counts after scaling, however
  14551. during updating of the profile information numerical error may
  14552. accumulate into quite large errors.
  14553. Each edge also contains a branch probability field: an integer in the
  14554. range from 0 to 'REG_BR_PROB_BASE'. It represents probability of
  14555. passing control from the end of the 'src' basic block to the 'dest'
  14556. basic block, i.e. the probability that control will flow along this
  14557. edge. The 'EDGE_FREQUENCY' macro is available to compute how frequently
  14558. a given edge is taken. There is a 'count' field for each edge as well,
  14559. representing same information as for a basic block.
  14560. The basic block frequencies are not represented in the instruction
  14561. stream, but in the RTL representation the edge frequencies are
  14562. represented for conditional jumps (via the 'REG_BR_PROB' macro) since
  14563. they are used when instructions are output to the assembly file and the
  14564. flow graph is no longer maintained.
  14565. The probability that control flow arrives via a given edge to its
  14566. destination basic block is called "reverse probability" and is not
  14567. directly represented, but it may be easily computed from frequencies of
  14568. basic blocks.
  14569. Updating profile information is a delicate task that can unfortunately
  14570. not be easily integrated with the CFG manipulation API. Many of the
  14571. functions and hooks to modify the CFG, such as
  14572. 'redirect_edge_and_branch', do not have enough information to easily
  14573. update the profile, so updating it is in the majority of cases left up
  14574. to the caller. It is difficult to uncover bugs in the profile updating
  14575. code, because they manifest themselves only by producing worse code, and
  14576. checking profile consistency is not possible because of numeric error
  14577. accumulation. Hence special attention needs to be given to this issue
  14578. in each pass that modifies the CFG.
  14579. It is important to point out that 'REG_BR_PROB_BASE' and 'BB_FREQ_BASE'
  14580. are both set low enough to be possible to compute second power of any
  14581. frequency or probability in the flow graph, it is not possible to even
  14582. square the 'count' field, as modern CPUs are fast enough to execute
  14583. $2^32$ operations quickly.
  14584. 
  14585. File: gccint.info, Node: Maintaining the CFG, Next: Liveness information, Prev: Profile information, Up: Control Flow
  14586. 14.4 Maintaining the CFG
  14587. ========================
  14588. An important task of each compiler pass is to keep both the control flow
  14589. graph and all profile information up-to-date. Reconstruction of the
  14590. control flow graph after each pass is not an option, since it may be
  14591. very expensive and lost profile information cannot be reconstructed at
  14592. all.
  14593. GCC has two major intermediate representations, and both use the
  14594. 'basic_block' and 'edge' data types to represent control flow. Both
  14595. representations share as much of the CFG maintenance code as possible.
  14596. For each representation, a set of "hooks" is defined so that each
  14597. representation can provide its own implementation of CFG manipulation
  14598. routines when necessary. These hooks are defined in 'cfghooks.h'.
  14599. There are hooks for almost all common CFG manipulations, including block
  14600. splitting and merging, edge redirection and creating and deleting basic
  14601. blocks. These hooks should provide everything you need to maintain and
  14602. manipulate the CFG in both the RTL and 'GIMPLE' representation.
  14603. At the moment, the basic block boundaries are maintained transparently
  14604. when modifying instructions, so there rarely is a need to move them
  14605. manually (such as in case someone wants to output instruction outside
  14606. basic block explicitly).
  14607. In the RTL representation, each instruction has a 'BLOCK_FOR_INSN'
  14608. value that represents pointer to the basic block that contains the
  14609. instruction. In the 'GIMPLE' representation, the function 'gimple_bb'
  14610. returns a pointer to the basic block containing the queried statement.
  14611. When changes need to be applied to a function in its 'GIMPLE'
  14612. representation, "GIMPLE statement iterators" should be used. These
  14613. iterators provide an integrated abstraction of the flow graph and the
  14614. instruction stream. Block statement iterators are constructed using the
  14615. 'gimple_stmt_iterator' data structure and several modifiers are
  14616. available, including the following:
  14617. 'gsi_start'
  14618. This function initializes a 'gimple_stmt_iterator' that points to
  14619. the first non-empty statement in a basic block.
  14620. 'gsi_last'
  14621. This function initializes a 'gimple_stmt_iterator' that points to
  14622. the last statement in a basic block.
  14623. 'gsi_end_p'
  14624. This predicate is 'true' if a 'gimple_stmt_iterator' represents the
  14625. end of a basic block.
  14626. 'gsi_next'
  14627. This function takes a 'gimple_stmt_iterator' and makes it point to
  14628. its successor.
  14629. 'gsi_prev'
  14630. This function takes a 'gimple_stmt_iterator' and makes it point to
  14631. its predecessor.
  14632. 'gsi_insert_after'
  14633. This function inserts a statement after the 'gimple_stmt_iterator'
  14634. passed in. The final parameter determines whether the statement
  14635. iterator is updated to point to the newly inserted statement, or
  14636. left pointing to the original statement.
  14637. 'gsi_insert_before'
  14638. This function inserts a statement before the 'gimple_stmt_iterator'
  14639. passed in. The final parameter determines whether the statement
  14640. iterator is updated to point to the newly inserted statement, or
  14641. left pointing to the original statement.
  14642. 'gsi_remove'
  14643. This function removes the 'gimple_stmt_iterator' passed in and
  14644. rechains the remaining statements in a basic block, if any.
  14645. In the RTL representation, the macros 'BB_HEAD' and 'BB_END' may be
  14646. used to get the head and end 'rtx' of a basic block. No abstract
  14647. iterators are defined for traversing the insn chain, but you can just
  14648. use 'NEXT_INSN' and 'PREV_INSN' instead. *Note Insns::.
  14649. Usually a code manipulating pass simplifies the instruction stream and
  14650. the flow of control, possibly eliminating some edges. This may for
  14651. example happen when a conditional jump is replaced with an unconditional
  14652. jump. Updating of edges is not transparent and each optimization pass
  14653. is required to do so manually. However only few cases occur in
  14654. practice. The pass may call 'purge_dead_edges' on a given basic block
  14655. to remove superfluous edges, if any.
  14656. Another common scenario is redirection of branch instructions, but this
  14657. is best modeled as redirection of edges in the control flow graph and
  14658. thus use of 'redirect_edge_and_branch' is preferred over more low level
  14659. functions, such as 'redirect_jump' that operate on RTL chain only. The
  14660. CFG hooks defined in 'cfghooks.h' should provide the complete API
  14661. required for manipulating and maintaining the CFG.
  14662. It is also possible that a pass has to insert control flow instruction
  14663. into the middle of a basic block, thus creating an entry point in the
  14664. middle of the basic block, which is impossible by definition: The block
  14665. must be split to make sure it only has one entry point, i.e. the head of
  14666. the basic block. The CFG hook 'split_block' may be used when an
  14667. instruction in the middle of a basic block has to become the target of a
  14668. jump or branch instruction.
  14669. For a global optimizer, a common operation is to split edges in the
  14670. flow graph and insert instructions on them. In the RTL representation,
  14671. this can be easily done using the 'insert_insn_on_edge' function that
  14672. emits an instruction "on the edge", caching it for a later
  14673. 'commit_edge_insertions' call that will take care of moving the inserted
  14674. instructions off the edge into the instruction stream contained in a
  14675. basic block. This includes the creation of new basic blocks where
  14676. needed. In the 'GIMPLE' representation, the equivalent functions are
  14677. 'gsi_insert_on_edge' which inserts a block statement iterator on an
  14678. edge, and 'gsi_commit_edge_inserts' which flushes the instruction to
  14679. actual instruction stream.
  14680. While debugging the optimization pass, the 'verify_flow_info' function
  14681. may be useful to find bugs in the control flow graph updating code.
  14682. 
  14683. File: gccint.info, Node: Liveness information, Prev: Maintaining the CFG, Up: Control Flow
  14684. 14.5 Liveness information
  14685. =========================
  14686. Liveness information is useful to determine whether some register is
  14687. "live" at given point of program, i.e. that it contains a value that may
  14688. be used at a later point in the program. This information is used, for
  14689. instance, during register allocation, as the pseudo registers only need
  14690. to be assigned to a unique hard register or to a stack slot if they are
  14691. live. The hard registers and stack slots may be freely reused for other
  14692. values when a register is dead.
  14693. Liveness information is available in the back end starting with
  14694. 'pass_df_initialize' and ending with 'pass_df_finish'. Three flavors of
  14695. live analysis are available: With 'LR', it is possible to determine at
  14696. any point 'P' in the function if the register may be used on some path
  14697. from 'P' to the end of the function. With 'UR', it is possible to
  14698. determine if there is a path from the beginning of the function to 'P'
  14699. that defines the variable. 'LIVE' is the intersection of the 'LR' and
  14700. 'UR' and a variable is live at 'P' if there is both an assignment that
  14701. reaches it from the beginning of the function and a use that can be
  14702. reached on some path from 'P' to the end of the function.
  14703. In general 'LIVE' is the most useful of the three. The macros
  14704. 'DF_[LR,UR,LIVE]_[IN,OUT]' can be used to access this information. The
  14705. macros take a basic block number and return a bitmap that is indexed by
  14706. the register number. This information is only guaranteed to be up to
  14707. date after calls are made to 'df_analyze'. See the file 'df-core.c' for
  14708. details on using the dataflow.
  14709. The liveness information is stored partly in the RTL instruction stream
  14710. and partly in the flow graph. Local information is stored in the
  14711. instruction stream: Each instruction may contain 'REG_DEAD' notes
  14712. representing that the value of a given register is no longer needed, or
  14713. 'REG_UNUSED' notes representing that the value computed by the
  14714. instruction is never used. The second is useful for instructions
  14715. computing multiple values at once.
  14716. 
  14717. File: gccint.info, Node: Loop Analysis and Representation, Next: Machine Desc, Prev: Control Flow, Up: Top
  14718. 15 Analysis and Representation of Loops
  14719. ***************************************
  14720. GCC provides extensive infrastructure for work with natural loops, i.e.,
  14721. strongly connected components of CFG with only one entry block. This
  14722. chapter describes representation of loops in GCC, both on GIMPLE and in
  14723. RTL, as well as the interfaces to loop-related analyses (induction
  14724. variable analysis and number of iterations analysis).
  14725. * Menu:
  14726. * Loop representation:: Representation and analysis of loops.
  14727. * Loop querying:: Getting information about loops.
  14728. * Loop manipulation:: Loop manipulation functions.
  14729. * LCSSA:: Loop-closed SSA form.
  14730. * Scalar evolutions:: Induction variables on GIMPLE.
  14731. * loop-iv:: Induction variables on RTL.
  14732. * Number of iterations:: Number of iterations analysis.
  14733. * Dependency analysis:: Data dependency analysis.
  14734. 
  14735. File: gccint.info, Node: Loop representation, Next: Loop querying, Up: Loop Analysis and Representation
  14736. 15.1 Loop representation
  14737. ========================
  14738. This chapter describes the representation of loops in GCC, and functions
  14739. that can be used to build, modify and analyze this representation. Most
  14740. of the interfaces and data structures are declared in 'cfgloop.h'. Loop
  14741. structures are analyzed and this information disposed or updated at the
  14742. discretion of individual passes. Still most of the generic CFG
  14743. manipulation routines are aware of loop structures and try to keep them
  14744. up-to-date. By this means an increasing part of the compilation
  14745. pipeline is setup to maintain loop structure across passes to allow
  14746. attaching meta information to individual loops for consumption by later
  14747. passes.
  14748. In general, a natural loop has one entry block (header) and possibly
  14749. several back edges (latches) leading to the header from the inside of
  14750. the loop. Loops with several latches may appear if several loops share
  14751. a single header, or if there is a branching in the middle of the loop.
  14752. The representation of loops in GCC however allows only loops with a
  14753. single latch. During loop analysis, headers of such loops are split and
  14754. forwarder blocks are created in order to disambiguate their structures.
  14755. Heuristic based on profile information and structure of the induction
  14756. variables in the loops is used to determine whether the latches
  14757. correspond to sub-loops or to control flow in a single loop. This means
  14758. that the analysis sometimes changes the CFG, and if you run it in the
  14759. middle of an optimization pass, you must be able to deal with the new
  14760. blocks. You may avoid CFG changes by passing
  14761. 'LOOPS_MAY_HAVE_MULTIPLE_LATCHES' flag to the loop discovery, note
  14762. however that most other loop manipulation functions will not work
  14763. correctly for loops with multiple latch edges (the functions that only
  14764. query membership of blocks to loops and subloop relationships, or
  14765. enumerate and test loop exits, can be expected to work).
  14766. Body of the loop is the set of blocks that are dominated by its header,
  14767. and reachable from its latch against the direction of edges in CFG. The
  14768. loops are organized in a containment hierarchy (tree) such that all the
  14769. loops immediately contained inside loop L are the children of L in the
  14770. tree. This tree is represented by the 'struct loops' structure. The
  14771. root of this tree is a fake loop that contains all blocks in the
  14772. function. Each of the loops is represented in a 'struct loop'
  14773. structure. Each loop is assigned an index ('num' field of the 'struct
  14774. loop' structure), and the pointer to the loop is stored in the
  14775. corresponding field of the 'larray' vector in the loops structure. The
  14776. indices do not have to be continuous, there may be empty ('NULL')
  14777. entries in the 'larray' created by deleting loops. Also, there is no
  14778. guarantee on the relative order of a loop and its subloops in the
  14779. numbering. The index of a loop never changes.
  14780. The entries of the 'larray' field should not be accessed directly. The
  14781. function 'get_loop' returns the loop description for a loop with the
  14782. given index. 'number_of_loops' function returns number of loops in the
  14783. function. To traverse all loops, use 'FOR_EACH_LOOP' macro. The
  14784. 'flags' argument of the macro is used to determine the direction of
  14785. traversal and the set of loops visited. Each loop is guaranteed to be
  14786. visited exactly once, regardless of the changes to the loop tree, and
  14787. the loops may be removed during the traversal. The newly created loops
  14788. are never traversed, if they need to be visited, this must be done
  14789. separately after their creation. The 'FOR_EACH_LOOP' macro allocates
  14790. temporary variables. If the 'FOR_EACH_LOOP' loop were ended using break
  14791. or goto, they would not be released; 'FOR_EACH_LOOP_BREAK' macro must be
  14792. used instead.
  14793. Each basic block contains the reference to the innermost loop it
  14794. belongs to ('loop_father'). For this reason, it is only possible to
  14795. have one 'struct loops' structure initialized at the same time for each
  14796. CFG. The global variable 'current_loops' contains the 'struct loops'
  14797. structure. Many of the loop manipulation functions assume that
  14798. dominance information is up-to-date.
  14799. The loops are analyzed through 'loop_optimizer_init' function. The
  14800. argument of this function is a set of flags represented in an integer
  14801. bitmask. These flags specify what other properties of the loop
  14802. structures should be calculated/enforced and preserved later:
  14803. * 'LOOPS_MAY_HAVE_MULTIPLE_LATCHES': If this flag is set, no changes
  14804. to CFG will be performed in the loop analysis, in particular, loops
  14805. with multiple latch edges will not be disambiguated. If a loop has
  14806. multiple latches, its latch block is set to NULL. Most of the loop
  14807. manipulation functions will not work for loops in this shape. No
  14808. other flags that require CFG changes can be passed to
  14809. loop_optimizer_init.
  14810. * 'LOOPS_HAVE_PREHEADERS': Forwarder blocks are created in such a way
  14811. that each loop has only one entry edge, and additionally, the
  14812. source block of this entry edge has only one successor. This
  14813. creates a natural place where the code can be moved out of the
  14814. loop, and ensures that the entry edge of the loop leads from its
  14815. immediate super-loop.
  14816. * 'LOOPS_HAVE_SIMPLE_LATCHES': Forwarder blocks are created to force
  14817. the latch block of each loop to have only one successor. This
  14818. ensures that the latch of the loop does not belong to any of its
  14819. sub-loops, and makes manipulation with the loops significantly
  14820. easier. Most of the loop manipulation functions assume that the
  14821. loops are in this shape. Note that with this flag, the "normal"
  14822. loop without any control flow inside and with one exit consists of
  14823. two basic blocks.
  14824. * 'LOOPS_HAVE_MARKED_IRREDUCIBLE_REGIONS': Basic blocks and edges in
  14825. the strongly connected components that are not natural loops (have
  14826. more than one entry block) are marked with 'BB_IRREDUCIBLE_LOOP'
  14827. and 'EDGE_IRREDUCIBLE_LOOP' flags. The flag is not set for blocks
  14828. and edges that belong to natural loops that are in such an
  14829. irreducible region (but it is set for the entry and exit edges of
  14830. such a loop, if they lead to/from this region).
  14831. * 'LOOPS_HAVE_RECORDED_EXITS': The lists of exits are recorded and
  14832. updated for each loop. This makes some functions (e.g.,
  14833. 'get_loop_exit_edges') more efficient. Some functions (e.g.,
  14834. 'single_exit') can be used only if the lists of exits are recorded.
  14835. These properties may also be computed/enforced later, using functions
  14836. 'create_preheaders', 'force_single_succ_latches',
  14837. 'mark_irreducible_loops' and 'record_loop_exits'. The properties can be
  14838. queried using 'loops_state_satisfies_p'.
  14839. The memory occupied by the loops structures should be freed with
  14840. 'loop_optimizer_finalize' function. When loop structures are setup to
  14841. be preserved across passes this function reduces the information to be
  14842. kept up-to-date to a minimum (only 'LOOPS_MAY_HAVE_MULTIPLE_LATCHES'
  14843. set).
  14844. The CFG manipulation functions in general do not update loop
  14845. structures. Specialized versions that additionally do so are provided
  14846. for the most common tasks. On GIMPLE, 'cleanup_tree_cfg_loop' function
  14847. can be used to cleanup CFG while updating the loops structures if
  14848. 'current_loops' is set.
  14849. At the moment loop structure is preserved from the start of GIMPLE loop
  14850. optimizations until the end of RTL loop optimizations. During this time
  14851. a loop can be tracked by its 'struct loop' and number.
  14852. 
  14853. File: gccint.info, Node: Loop querying, Next: Loop manipulation, Prev: Loop representation, Up: Loop Analysis and Representation
  14854. 15.2 Loop querying
  14855. ==================
  14856. The functions to query the information about loops are declared in
  14857. 'cfgloop.h'. Some of the information can be taken directly from the
  14858. structures. 'loop_father' field of each basic block contains the
  14859. innermost loop to that the block belongs. The most useful fields of
  14860. loop structure (that are kept up-to-date at all times) are:
  14861. * 'header', 'latch': Header and latch basic blocks of the loop.
  14862. * 'num_nodes': Number of basic blocks in the loop (including the
  14863. basic blocks of the sub-loops).
  14864. * 'outer', 'inner', 'next': The super-loop, the first sub-loop, and
  14865. the sibling of the loop in the loops tree.
  14866. There are other fields in the loop structures, many of them used only
  14867. by some of the passes, or not updated during CFG changes; in general,
  14868. they should not be accessed directly.
  14869. The most important functions to query loop structures are:
  14870. * 'loop_depth': The depth of the loop in the loops tree, i.e., the
  14871. number of super-loops of the loop.
  14872. * 'flow_loops_dump': Dumps the information about loops to a file.
  14873. * 'verify_loop_structure': Checks consistency of the loop structures.
  14874. * 'loop_latch_edge': Returns the latch edge of a loop.
  14875. * 'loop_preheader_edge': If loops have preheaders, returns the
  14876. preheader edge of a loop.
  14877. * 'flow_loop_nested_p': Tests whether loop is a sub-loop of another
  14878. loop.
  14879. * 'flow_bb_inside_loop_p': Tests whether a basic block belongs to a
  14880. loop (including its sub-loops).
  14881. * 'find_common_loop': Finds the common super-loop of two loops.
  14882. * 'superloop_at_depth': Returns the super-loop of a loop with the
  14883. given depth.
  14884. * 'tree_num_loop_insns', 'num_loop_insns': Estimates the number of
  14885. insns in the loop, on GIMPLE and on RTL.
  14886. * 'loop_exit_edge_p': Tests whether edge is an exit from a loop.
  14887. * 'mark_loop_exit_edges': Marks all exit edges of all loops with
  14888. 'EDGE_LOOP_EXIT' flag.
  14889. * 'get_loop_body', 'get_loop_body_in_dom_order',
  14890. 'get_loop_body_in_bfs_order': Enumerates the basic blocks in the
  14891. loop in depth-first search order in reversed CFG, ordered by
  14892. dominance relation, and breath-first search order, respectively.
  14893. * 'single_exit': Returns the single exit edge of the loop, or 'NULL'
  14894. if the loop has more than one exit. You can only use this function
  14895. if LOOPS_HAVE_MARKED_SINGLE_EXITS property is used.
  14896. * 'get_loop_exit_edges': Enumerates the exit edges of a loop.
  14897. * 'just_once_each_iteration_p': Returns true if the basic block is
  14898. executed exactly once during each iteration of a loop (that is, it
  14899. does not belong to a sub-loop, and it dominates the latch of the
  14900. loop).
  14901. 
  14902. File: gccint.info, Node: Loop manipulation, Next: LCSSA, Prev: Loop querying, Up: Loop Analysis and Representation
  14903. 15.3 Loop manipulation
  14904. ======================
  14905. The loops tree can be manipulated using the following functions:
  14906. * 'flow_loop_tree_node_add': Adds a node to the tree.
  14907. * 'flow_loop_tree_node_remove': Removes a node from the tree.
  14908. * 'add_bb_to_loop': Adds a basic block to a loop.
  14909. * 'remove_bb_from_loops': Removes a basic block from loops.
  14910. Most low-level CFG functions update loops automatically. The following
  14911. functions handle some more complicated cases of CFG manipulations:
  14912. * 'remove_path': Removes an edge and all blocks it dominates.
  14913. * 'split_loop_exit_edge': Splits exit edge of the loop, ensuring that
  14914. PHI node arguments remain in the loop (this ensures that
  14915. loop-closed SSA form is preserved). Only useful on GIMPLE.
  14916. Finally, there are some higher-level loop transformations implemented.
  14917. While some of them are written so that they should work on non-innermost
  14918. loops, they are mostly untested in that case, and at the moment, they
  14919. are only reliable for the innermost loops:
  14920. * 'create_iv': Creates a new induction variable. Only works on
  14921. GIMPLE. 'standard_iv_increment_position' can be used to find a
  14922. suitable place for the iv increment.
  14923. * 'duplicate_loop_to_header_edge',
  14924. 'tree_duplicate_loop_to_header_edge': These functions (on RTL and
  14925. on GIMPLE) duplicate the body of the loop prescribed number of
  14926. times on one of the edges entering loop header, thus performing
  14927. either loop unrolling or loop peeling. 'can_duplicate_loop_p'
  14928. ('can_unroll_loop_p' on GIMPLE) must be true for the duplicated
  14929. loop.
  14930. * 'loop_version': This function creates a copy of a loop, and a
  14931. branch before them that selects one of them depending on the
  14932. prescribed condition. This is useful for optimizations that need
  14933. to verify some assumptions in runtime (one of the copies of the
  14934. loop is usually left unchanged, while the other one is transformed
  14935. in some way).
  14936. * 'tree_unroll_loop': Unrolls the loop, including peeling the extra
  14937. iterations to make the number of iterations divisible by unroll
  14938. factor, updating the exit condition, and removing the exits that
  14939. now cannot be taken. Works only on GIMPLE.
  14940. 
  14941. File: gccint.info, Node: LCSSA, Next: Scalar evolutions, Prev: Loop manipulation, Up: Loop Analysis and Representation
  14942. 15.4 Loop-closed SSA form
  14943. =========================
  14944. Throughout the loop optimizations on tree level, one extra condition is
  14945. enforced on the SSA form: No SSA name is used outside of the loop in
  14946. that it is defined. The SSA form satisfying this condition is called
  14947. "loop-closed SSA form" - LCSSA. To enforce LCSSA, PHI nodes must be
  14948. created at the exits of the loops for the SSA names that are used
  14949. outside of them. Only the real operands (not virtual SSA names) are
  14950. held in LCSSA, in order to save memory.
  14951. There are various benefits of LCSSA:
  14952. * Many optimizations (value range analysis, final value replacement)
  14953. are interested in the values that are defined in the loop and used
  14954. outside of it, i.e., exactly those for that we create new PHI
  14955. nodes.
  14956. * In induction variable analysis, it is not necessary to specify the
  14957. loop in that the analysis should be performed - the scalar
  14958. evolution analysis always returns the results with respect to the
  14959. loop in that the SSA name is defined.
  14960. * It makes updating of SSA form during loop transformations simpler.
  14961. Without LCSSA, operations like loop unrolling may force creation of
  14962. PHI nodes arbitrarily far from the loop, while in LCSSA, the SSA
  14963. form can be updated locally. However, since we only keep real
  14964. operands in LCSSA, we cannot use this advantage (we could have
  14965. local updating of real operands, but it is not much more efficient
  14966. than to use generic SSA form updating for it as well; the amount of
  14967. changes to SSA is the same).
  14968. However, it also means LCSSA must be updated. This is usually
  14969. straightforward, unless you create a new value in loop and use it
  14970. outside, or unless you manipulate loop exit edges (functions are
  14971. provided to make these manipulations simple).
  14972. 'rewrite_into_loop_closed_ssa' is used to rewrite SSA form to LCSSA, and
  14973. 'verify_loop_closed_ssa' to check that the invariant of LCSSA is
  14974. preserved.
  14975. 
  14976. File: gccint.info, Node: Scalar evolutions, Next: loop-iv, Prev: LCSSA, Up: Loop Analysis and Representation
  14977. 15.5 Scalar evolutions
  14978. ======================
  14979. Scalar evolutions (SCEV) are used to represent results of induction
  14980. variable analysis on GIMPLE. They enable us to represent variables with
  14981. complicated behavior in a simple and consistent way (we only use it to
  14982. express values of polynomial induction variables, but it is possible to
  14983. extend it). The interfaces to SCEV analysis are declared in
  14984. 'tree-scalar-evolution.h'. To use scalar evolutions analysis,
  14985. 'scev_initialize' must be used. To stop using SCEV, 'scev_finalize'
  14986. should be used. SCEV analysis caches results in order to save time and
  14987. memory. This cache however is made invalid by most of the loop
  14988. transformations, including removal of code. If such a transformation is
  14989. performed, 'scev_reset' must be called to clean the caches.
  14990. Given an SSA name, its behavior in loops can be analyzed using the
  14991. 'analyze_scalar_evolution' function. The returned SCEV however does not
  14992. have to be fully analyzed and it may contain references to other SSA
  14993. names defined in the loop. To resolve these (potentially recursive)
  14994. references, 'instantiate_parameters' or 'resolve_mixers' functions must
  14995. be used. 'instantiate_parameters' is useful when you use the results of
  14996. SCEV only for some analysis, and when you work with whole nest of loops
  14997. at once. It will try replacing all SSA names by their SCEV in all
  14998. loops, including the super-loops of the current loop, thus providing a
  14999. complete information about the behavior of the variable in the loop
  15000. nest. 'resolve_mixers' is useful if you work with only one loop at a
  15001. time, and if you possibly need to create code based on the value of the
  15002. induction variable. It will only resolve the SSA names defined in the
  15003. current loop, leaving the SSA names defined outside unchanged, even if
  15004. their evolution in the outer loops is known.
  15005. The SCEV is a normal tree expression, except for the fact that it may
  15006. contain several special tree nodes. One of them is 'SCEV_NOT_KNOWN',
  15007. used for SSA names whose value cannot be expressed. The other one is
  15008. 'POLYNOMIAL_CHREC'. Polynomial chrec has three arguments - base, step
  15009. and loop (both base and step may contain further polynomial chrecs).
  15010. Type of the expression and of base and step must be the same. A
  15011. variable has evolution 'POLYNOMIAL_CHREC(base, step, loop)' if it is (in
  15012. the specified loop) equivalent to 'x_1' in the following example
  15013. while (...)
  15014. {
  15015. x_1 = phi (base, x_2);
  15016. x_2 = x_1 + step;
  15017. }
  15018. Note that this includes the language restrictions on the operations.
  15019. For example, if we compile C code and 'x' has signed type, then the
  15020. overflow in addition would cause undefined behavior, and we may assume
  15021. that this does not happen. Hence, the value with this SCEV cannot
  15022. overflow (which restricts the number of iterations of such a loop).
  15023. In many cases, one wants to restrict the attention just to affine
  15024. induction variables. In this case, the extra expressive power of SCEV
  15025. is not useful, and may complicate the optimizations. In this case,
  15026. 'simple_iv' function may be used to analyze a value - the result is a
  15027. loop-invariant base and step.
  15028. 
  15029. File: gccint.info, Node: loop-iv, Next: Number of iterations, Prev: Scalar evolutions, Up: Loop Analysis and Representation
  15030. 15.6 IV analysis on RTL
  15031. =======================
  15032. The induction variable on RTL is simple and only allows analysis of
  15033. affine induction variables, and only in one loop at once. The interface
  15034. is declared in 'cfgloop.h'. Before analyzing induction variables in a
  15035. loop L, 'iv_analysis_loop_init' function must be called on L. After the
  15036. analysis (possibly calling 'iv_analysis_loop_init' for several loops) is
  15037. finished, 'iv_analysis_done' should be called. The following functions
  15038. can be used to access the results of the analysis:
  15039. * 'iv_analyze': Analyzes a single register used in the given insn.
  15040. If no use of the register in this insn is found, the following
  15041. insns are scanned, so that this function can be called on the insn
  15042. returned by get_condition.
  15043. * 'iv_analyze_result': Analyzes result of the assignment in the given
  15044. insn.
  15045. * 'iv_analyze_expr': Analyzes a more complicated expression. All its
  15046. operands are analyzed by 'iv_analyze', and hence they must be used
  15047. in the specified insn or one of the following insns.
  15048. The description of the induction variable is provided in 'struct
  15049. rtx_iv'. In order to handle subregs, the representation is a bit
  15050. complicated; if the value of the 'extend' field is not 'UNKNOWN', the
  15051. value of the induction variable in the i-th iteration is
  15052. delta + mult * extend_{extend_mode} (subreg_{mode} (base + i * step)),
  15053. with the following exception: if 'first_special' is true, then the
  15054. value in the first iteration (when 'i' is zero) is 'delta + mult *
  15055. base'. However, if 'extend' is equal to 'UNKNOWN', then 'first_special'
  15056. must be false, 'delta' 0, 'mult' 1 and the value in the i-th iteration
  15057. is
  15058. subreg_{mode} (base + i * step)
  15059. The function 'get_iv_value' can be used to perform these calculations.
  15060. 
  15061. File: gccint.info, Node: Number of iterations, Next: Dependency analysis, Prev: loop-iv, Up: Loop Analysis and Representation
  15062. 15.7 Number of iterations analysis
  15063. ==================================
  15064. Both on GIMPLE and on RTL, there are functions available to determine
  15065. the number of iterations of a loop, with a similar interface. The
  15066. number of iterations of a loop in GCC is defined as the number of
  15067. executions of the loop latch. In many cases, it is not possible to
  15068. determine the number of iterations unconditionally - the determined
  15069. number is correct only if some assumptions are satisfied. The analysis
  15070. tries to verify these conditions using the information contained in the
  15071. program; if it fails, the conditions are returned together with the
  15072. result. The following information and conditions are provided by the
  15073. analysis:
  15074. * 'assumptions': If this condition is false, the rest of the
  15075. information is invalid.
  15076. * 'noloop_assumptions' on RTL, 'may_be_zero' on GIMPLE: If this
  15077. condition is true, the loop exits in the first iteration.
  15078. * 'infinite': If this condition is true, the loop is infinite. This
  15079. condition is only available on RTL. On GIMPLE, conditions for
  15080. finiteness of the loop are included in 'assumptions'.
  15081. * 'niter_expr' on RTL, 'niter' on GIMPLE: The expression that gives
  15082. number of iterations. The number of iterations is defined as the
  15083. number of executions of the loop latch.
  15084. Both on GIMPLE and on RTL, it necessary for the induction variable
  15085. analysis framework to be initialized (SCEV on GIMPLE, loop-iv on RTL).
  15086. On GIMPLE, the results are stored to 'struct tree_niter_desc' structure.
  15087. Number of iterations before the loop is exited through a given exit can
  15088. be determined using 'number_of_iterations_exit' function. On RTL, the
  15089. results are returned in 'struct niter_desc' structure. The
  15090. corresponding function is named 'check_simple_exit'. There are also
  15091. functions that pass through all the exits of a loop and try to find one
  15092. with easy to determine number of iterations - 'find_loop_niter' on
  15093. GIMPLE and 'find_simple_exit' on RTL. Finally, there are functions that
  15094. provide the same information, but additionally cache it, so that
  15095. repeated calls to number of iterations are not so costly -
  15096. 'number_of_latch_executions' on GIMPLE and 'get_simple_loop_desc' on
  15097. RTL.
  15098. Note that some of these functions may behave slightly differently than
  15099. others - some of them return only the expression for the number of
  15100. iterations, and fail if there are some assumptions. The function
  15101. 'number_of_latch_executions' works only for single-exit loops. The
  15102. function 'number_of_cond_exit_executions' can be used to determine
  15103. number of executions of the exit condition of a single-exit loop (i.e.,
  15104. the 'number_of_latch_executions' increased by one).
  15105. On GIMPLE, below constraint flags affect semantics of some APIs of
  15106. number of iterations analyzer:
  15107. * 'LOOP_C_INFINITE': If this constraint flag is set, the loop is
  15108. known to be infinite. APIs like 'number_of_iterations_exit' can
  15109. return false directly without doing any analysis.
  15110. * 'LOOP_C_FINITE': If this constraint flag is set, the loop is known
  15111. to be finite, in other words, loop's number of iterations can be
  15112. computed with 'assumptions' be true.
  15113. Generally, the constraint flags are set/cleared by consumers which are
  15114. loop optimizers. It's also the consumers' responsibility to set/clear
  15115. constraints correctly. Failing to do that might result in hard to track
  15116. down bugs in scev/niter consumers. One typical use case is vectorizer:
  15117. it drives number of iterations analyzer by setting 'LOOP_C_FINITE' and
  15118. vectorizes possibly infinite loop by versioning loop with analysis
  15119. result. In return, constraints set by consumers can also help number of
  15120. iterations analyzer in following optimizers. For example, 'niter' of a
  15121. loop versioned under 'assumptions' is valid unconditionally.
  15122. Other constraints may be added in the future, for example, a constraint
  15123. indicating that loops' latch must roll thus 'may_be_zero' would be false
  15124. unconditionally.
  15125. 
  15126. File: gccint.info, Node: Dependency analysis, Prev: Number of iterations, Up: Loop Analysis and Representation
  15127. 15.8 Data Dependency Analysis
  15128. =============================
  15129. The code for the data dependence analysis can be found in
  15130. 'tree-data-ref.c' and its interface and data structures are described in
  15131. 'tree-data-ref.h'. The function that computes the data dependences for
  15132. all the array and pointer references for a given loop is
  15133. 'compute_data_dependences_for_loop'. This function is currently used by
  15134. the linear loop transform and the vectorization passes. Before calling
  15135. this function, one has to allocate two vectors: a first vector will
  15136. contain the set of data references that are contained in the analyzed
  15137. loop body, and the second vector will contain the dependence relations
  15138. between the data references. Thus if the vector of data references is
  15139. of size 'n', the vector containing the dependence relations will contain
  15140. 'n*n' elements. However if the analyzed loop contains side effects,
  15141. such as calls that potentially can interfere with the data references in
  15142. the current analyzed loop, the analysis stops while scanning the loop
  15143. body for data references, and inserts a single 'chrec_dont_know' in the
  15144. dependence relation array.
  15145. The data references are discovered in a particular order during the
  15146. scanning of the loop body: the loop body is analyzed in execution order,
  15147. and the data references of each statement are pushed at the end of the
  15148. data reference array. Two data references syntactically occur in the
  15149. program in the same order as in the array of data references. This
  15150. syntactic order is important in some classical data dependence tests,
  15151. and mapping this order to the elements of this array avoids costly
  15152. queries to the loop body representation.
  15153. Three types of data references are currently handled: ARRAY_REF,
  15154. INDIRECT_REF and COMPONENT_REF. The data structure for the data
  15155. reference is 'data_reference', where 'data_reference_p' is a name of a
  15156. pointer to the data reference structure. The structure contains the
  15157. following elements:
  15158. * 'base_object_info': Provides information about the base object of
  15159. the data reference and its access functions. These access
  15160. functions represent the evolution of the data reference in the loop
  15161. relative to its base, in keeping with the classical meaning of the
  15162. data reference access function for the support of arrays. For
  15163. example, for a reference 'a.b[i][j]', the base object is 'a.b' and
  15164. the access functions, one for each array subscript, are: '{i_init,
  15165. + i_step}_1, {j_init, +, j_step}_2'.
  15166. * 'first_location_in_loop': Provides information about the first
  15167. location accessed by the data reference in the loop and about the
  15168. access function used to represent evolution relative to this
  15169. location. This data is used to support pointers, and is not used
  15170. for arrays (for which we have base objects). Pointer accesses are
  15171. represented as a one-dimensional access that starts from the first
  15172. location accessed in the loop. For example:
  15173. for1 i
  15174. for2 j
  15175. *((int *)p + i + j) = a[i][j];
  15176. The access function of the pointer access is '{0, + 4B}_for2'
  15177. relative to 'p + i'. The access functions of the array are
  15178. '{i_init, + i_step}_for1' and '{j_init, +, j_step}_for2' relative
  15179. to 'a'.
  15180. Usually, the object the pointer refers to is either unknown, or we
  15181. cannot prove that the access is confined to the boundaries of a
  15182. certain object.
  15183. Two data references can be compared only if at least one of these
  15184. two representations has all its fields filled for both data
  15185. references.
  15186. The current strategy for data dependence tests is as follows: If
  15187. both 'a' and 'b' are represented as arrays, compare 'a.base_object'
  15188. and 'b.base_object'; if they are equal, apply dependence tests (use
  15189. access functions based on base_objects). Else if both 'a' and 'b'
  15190. are represented as pointers, compare 'a.first_location' and
  15191. 'b.first_location'; if they are equal, apply dependence tests (use
  15192. access functions based on first location). However, if 'a' and 'b'
  15193. are represented differently, only try to prove that the bases are
  15194. definitely different.
  15195. * Aliasing information.
  15196. * Alignment information.
  15197. The structure describing the relation between two data references is
  15198. 'data_dependence_relation' and the shorter name for a pointer to such a
  15199. structure is 'ddr_p'. This structure contains:
  15200. * a pointer to each data reference,
  15201. * a tree node 'are_dependent' that is set to 'chrec_known' if the
  15202. analysis has proved that there is no dependence between these two
  15203. data references, 'chrec_dont_know' if the analysis was not able to
  15204. determine any useful result and potentially there could exist a
  15205. dependence between these data references, and 'are_dependent' is
  15206. set to 'NULL_TREE' if there exist a dependence relation between the
  15207. data references, and the description of this dependence relation is
  15208. given in the 'subscripts', 'dir_vects', and 'dist_vects' arrays,
  15209. * a boolean that determines whether the dependence relation can be
  15210. represented by a classical distance vector,
  15211. * an array 'subscripts' that contains a description of each subscript
  15212. of the data references. Given two array accesses a subscript is
  15213. the tuple composed of the access functions for a given dimension.
  15214. For example, given 'A[f1][f2][f3]' and 'B[g1][g2][g3]', there are
  15215. three subscripts: '(f1, g1), (f2, g2), (f3, g3)'.
  15216. * two arrays 'dir_vects' and 'dist_vects' that contain classical
  15217. representations of the data dependences under the form of direction
  15218. and distance dependence vectors,
  15219. * an array of loops 'loop_nest' that contains the loops to which the
  15220. distance and direction vectors refer to.
  15221. Several functions for pretty printing the information extracted by the
  15222. data dependence analysis are available: 'dump_ddrs' prints with a
  15223. maximum verbosity the details of a data dependence relations array,
  15224. 'dump_dist_dir_vectors' prints only the classical distance and direction
  15225. vectors for a data dependence relations array, and
  15226. 'dump_data_references' prints the details of the data references
  15227. contained in a data reference array.
  15228. 
  15229. File: gccint.info, Node: Machine Desc, Next: Target Macros, Prev: Loop Analysis and Representation, Up: Top
  15230. 16 Machine Descriptions
  15231. ***********************
  15232. A machine description has two parts: a file of instruction patterns
  15233. ('.md' file) and a C header file of macro definitions.
  15234. The '.md' file for a target machine contains a pattern for each
  15235. instruction that the target machine supports (or at least each
  15236. instruction that is worth telling the compiler about). It may also
  15237. contain comments. A semicolon causes the rest of the line to be a
  15238. comment, unless the semicolon is inside a quoted string.
  15239. See the next chapter for information on the C header file.
  15240. * Menu:
  15241. * Overview:: How the machine description is used.
  15242. * Patterns:: How to write instruction patterns.
  15243. * Example:: An explained example of a 'define_insn' pattern.
  15244. * RTL Template:: The RTL template defines what insns match a pattern.
  15245. * Output Template:: The output template says how to make assembler code
  15246. from such an insn.
  15247. * Output Statement:: For more generality, write C code to output
  15248. the assembler code.
  15249. * Predicates:: Controlling what kinds of operands can be used
  15250. for an insn.
  15251. * Constraints:: Fine-tuning operand selection.
  15252. * Standard Names:: Names mark patterns to use for code generation.
  15253. * Pattern Ordering:: When the order of patterns makes a difference.
  15254. * Dependent Patterns:: Having one pattern may make you need another.
  15255. * Jump Patterns:: Special considerations for patterns for jump insns.
  15256. * Looping Patterns:: How to define patterns for special looping insns.
  15257. * Insn Canonicalizations::Canonicalization of Instructions
  15258. * Expander Definitions::Generating a sequence of several RTL insns
  15259. for a standard operation.
  15260. * Insn Splitting:: Splitting Instructions into Multiple Instructions.
  15261. * Including Patterns:: Including Patterns in Machine Descriptions.
  15262. * Peephole Definitions::Defining machine-specific peephole optimizations.
  15263. * Insn Attributes:: Specifying the value of attributes for generated insns.
  15264. * Conditional Execution::Generating 'define_insn' patterns for
  15265. predication.
  15266. * Define Subst:: Generating 'define_insn' and 'define_expand'
  15267. patterns from other patterns.
  15268. * Constant Definitions::Defining symbolic constants that can be used in the
  15269. md file.
  15270. * Iterators:: Using iterators to generate patterns from a template.
  15271. 
  15272. File: gccint.info, Node: Overview, Next: Patterns, Up: Machine Desc
  15273. 16.1 Overview of How the Machine Description is Used
  15274. ====================================================
  15275. There are three main conversions that happen in the compiler:
  15276. 1. The front end reads the source code and builds a parse tree.
  15277. 2. The parse tree is used to generate an RTL insn list based on named
  15278. instruction patterns.
  15279. 3. The insn list is matched against the RTL templates to produce
  15280. assembler code.
  15281. For the generate pass, only the names of the insns matter, from either
  15282. a named 'define_insn' or a 'define_expand'. The compiler will choose
  15283. the pattern with the right name and apply the operands according to the
  15284. documentation later in this chapter, without regard for the RTL template
  15285. or operand constraints. Note that the names the compiler looks for are
  15286. hard-coded in the compiler--it will ignore unnamed patterns and patterns
  15287. with names it doesn't know about, but if you don't provide a named
  15288. pattern it needs, it will abort.
  15289. If a 'define_insn' is used, the template given is inserted into the
  15290. insn list. If a 'define_expand' is used, one of three things happens,
  15291. based on the condition logic. The condition logic may manually create
  15292. new insns for the insn list, say via 'emit_insn()', and invoke 'DONE'.
  15293. For certain named patterns, it may invoke 'FAIL' to tell the compiler to
  15294. use an alternate way of performing that task. If it invokes neither
  15295. 'DONE' nor 'FAIL', the template given in the pattern is inserted, as if
  15296. the 'define_expand' were a 'define_insn'.
  15297. Once the insn list is generated, various optimization passes convert,
  15298. replace, and rearrange the insns in the insn list. This is where the
  15299. 'define_split' and 'define_peephole' patterns get used, for example.
  15300. Finally, the insn list's RTL is matched up with the RTL templates in
  15301. the 'define_insn' patterns, and those patterns are used to emit the
  15302. final assembly code. For this purpose, each named 'define_insn' acts
  15303. like it's unnamed, since the names are ignored.
  15304. 
  15305. File: gccint.info, Node: Patterns, Next: Example, Prev: Overview, Up: Machine Desc
  15306. 16.2 Everything about Instruction Patterns
  15307. ==========================================
  15308. A 'define_insn' expression is used to define instruction patterns to
  15309. which insns may be matched. A 'define_insn' expression contains an
  15310. incomplete RTL expression, with pieces to be filled in later, operand
  15311. constraints that restrict how the pieces can be filled in, and an output
  15312. template or C code to generate the assembler output.
  15313. A 'define_insn' is an RTL expression containing four or five operands:
  15314. 1. An optional name. The presence of a name indicate that this
  15315. instruction pattern can perform a certain standard job for the
  15316. RTL-generation pass of the compiler. This pass knows certain names
  15317. and will use the instruction patterns with those names, if the
  15318. names are defined in the machine description.
  15319. The absence of a name is indicated by writing an empty string where
  15320. the name should go. Nameless instruction patterns are never used
  15321. for generating RTL code, but they may permit several simpler insns
  15322. to be combined later on.
  15323. Names that are not thus known and used in RTL-generation have no
  15324. effect; they are equivalent to no name at all.
  15325. For the purpose of debugging the compiler, you may also specify a
  15326. name beginning with the '*' character. Such a name is used only
  15327. for identifying the instruction in RTL dumps; it is equivalent to
  15328. having a nameless pattern for all other purposes. Names beginning
  15329. with the '*' character are not required to be unique.
  15330. 2. The "RTL template": This is a vector of incomplete RTL expressions
  15331. which describe the semantics of the instruction (*note RTL
  15332. Template::). It is incomplete because it may contain
  15333. 'match_operand', 'match_operator', and 'match_dup' expressions that
  15334. stand for operands of the instruction.
  15335. If the vector has multiple elements, the RTL template is treated as
  15336. a 'parallel' expression.
  15337. 3. The condition: This is a string which contains a C expression.
  15338. When the compiler attempts to match RTL against a pattern, the
  15339. condition is evaluated. If the condition evaluates to 'true', the
  15340. match is permitted. The condition may be an empty string, which is
  15341. treated as always 'true'.
  15342. For a named pattern, the condition may not depend on the data in
  15343. the insn being matched, but only the target-machine-type flags.
  15344. The compiler needs to test these conditions during initialization
  15345. in order to learn exactly which named instructions are available in
  15346. a particular run.
  15347. For nameless patterns, the condition is applied only when matching
  15348. an individual insn, and only after the insn has matched the
  15349. pattern's recognition template. The insn's operands may be found
  15350. in the vector 'operands'.
  15351. For an insn where the condition has once matched, it cannot later
  15352. be used to control register allocation by excluding certain
  15353. register or value combinations.
  15354. 4. The "output template" or "output statement": This is either a
  15355. string, or a fragment of C code which returns a string.
  15356. When simple substitution isn't general enough, you can specify a
  15357. piece of C code to compute the output. *Note Output Statement::.
  15358. 5. The "insn attributes": This is an optional vector containing the
  15359. values of attributes for insns matching this pattern (*note Insn
  15360. Attributes::).
  15361. 
  15362. File: gccint.info, Node: Example, Next: RTL Template, Prev: Patterns, Up: Machine Desc
  15363. 16.3 Example of 'define_insn'
  15364. =============================
  15365. Here is an example of an instruction pattern, taken from the machine
  15366. description for the 68000/68020.
  15367. (define_insn "tstsi"
  15368. [(set (cc0)
  15369. (match_operand:SI 0 "general_operand" "rm"))]
  15370. ""
  15371. "*
  15372. {
  15373. if (TARGET_68020 || ! ADDRESS_REG_P (operands[0]))
  15374. return \"tstl %0\";
  15375. return \"cmpl #0,%0\";
  15376. }")
  15377. This can also be written using braced strings:
  15378. (define_insn "tstsi"
  15379. [(set (cc0)
  15380. (match_operand:SI 0 "general_operand" "rm"))]
  15381. ""
  15382. {
  15383. if (TARGET_68020 || ! ADDRESS_REG_P (operands[0]))
  15384. return "tstl %0";
  15385. return "cmpl #0,%0";
  15386. })
  15387. This describes an instruction which sets the condition codes based on
  15388. the value of a general operand. It has no condition, so any insn with
  15389. an RTL description of the form shown may be matched to this pattern.
  15390. The name 'tstsi' means "test a 'SImode' value" and tells the RTL
  15391. generation pass that, when it is necessary to test such a value, an insn
  15392. to do so can be constructed using this pattern.
  15393. The output control string is a piece of C code which chooses which
  15394. output template to return based on the kind of operand and the specific
  15395. type of CPU for which code is being generated.
  15396. '"rm"' is an operand constraint. Its meaning is explained below.
  15397. 
  15398. File: gccint.info, Node: RTL Template, Next: Output Template, Prev: Example, Up: Machine Desc
  15399. 16.4 RTL Template
  15400. =================
  15401. The RTL template is used to define which insns match the particular
  15402. pattern and how to find their operands. For named patterns, the RTL
  15403. template also says how to construct an insn from specified operands.
  15404. Construction involves substituting specified operands into a copy of
  15405. the template. Matching involves determining the values that serve as
  15406. the operands in the insn being matched. Both of these activities are
  15407. controlled by special expression types that direct matching and
  15408. substitution of the operands.
  15409. '(match_operand:M N PREDICATE CONSTRAINT)'
  15410. This expression is a placeholder for operand number N of the insn.
  15411. When constructing an insn, operand number N will be substituted at
  15412. this point. When matching an insn, whatever appears at this
  15413. position in the insn will be taken as operand number N; but it must
  15414. satisfy PREDICATE or this instruction pattern will not match at
  15415. all.
  15416. Operand numbers must be chosen consecutively counting from zero in
  15417. each instruction pattern. There may be only one 'match_operand'
  15418. expression in the pattern for each operand number. Usually
  15419. operands are numbered in the order of appearance in 'match_operand'
  15420. expressions. In the case of a 'define_expand', any operand numbers
  15421. used only in 'match_dup' expressions have higher values than all
  15422. other operand numbers.
  15423. PREDICATE is a string that is the name of a function that accepts
  15424. two arguments, an expression and a machine mode. *Note
  15425. Predicates::. During matching, the function will be called with
  15426. the putative operand as the expression and M as the mode argument
  15427. (if M is not specified, 'VOIDmode' will be used, which normally
  15428. causes PREDICATE to accept any mode). If it returns zero, this
  15429. instruction pattern fails to match. PREDICATE may be an empty
  15430. string; then it means no test is to be done on the operand, so
  15431. anything which occurs in this position is valid.
  15432. Most of the time, PREDICATE will reject modes other than M--but not
  15433. always. For example, the predicate 'address_operand' uses M as the
  15434. mode of memory ref that the address should be valid for. Many
  15435. predicates accept 'const_int' nodes even though their mode is
  15436. 'VOIDmode'.
  15437. CONSTRAINT controls reloading and the choice of the best register
  15438. class to use for a value, as explained later (*note Constraints::).
  15439. If the constraint would be an empty string, it can be omitted.
  15440. People are often unclear on the difference between the constraint
  15441. and the predicate. The predicate helps decide whether a given insn
  15442. matches the pattern. The constraint plays no role in this
  15443. decision; instead, it controls various decisions in the case of an
  15444. insn which does match.
  15445. '(match_scratch:M N CONSTRAINT)'
  15446. This expression is also a placeholder for operand number N and
  15447. indicates that operand must be a 'scratch' or 'reg' expression.
  15448. When matching patterns, this is equivalent to
  15449. (match_operand:M N "scratch_operand" CONSTRAINT)
  15450. but, when generating RTL, it produces a ('scratch':M) expression.
  15451. If the last few expressions in a 'parallel' are 'clobber'
  15452. expressions whose operands are either a hard register or
  15453. 'match_scratch', the combiner can add or delete them when
  15454. necessary. *Note Side Effects::.
  15455. '(match_dup N)'
  15456. This expression is also a placeholder for operand number N. It is
  15457. used when the operand needs to appear more than once in the insn.
  15458. In construction, 'match_dup' acts just like 'match_operand': the
  15459. operand is substituted into the insn being constructed. But in
  15460. matching, 'match_dup' behaves differently. It assumes that operand
  15461. number N has already been determined by a 'match_operand' appearing
  15462. earlier in the recognition template, and it matches only an
  15463. identical-looking expression.
  15464. Note that 'match_dup' should not be used to tell the compiler that
  15465. a particular register is being used for two operands (example:
  15466. 'add' that adds one register to another; the second register is
  15467. both an input operand and the output operand). Use a matching
  15468. constraint (*note Simple Constraints::) for those. 'match_dup' is
  15469. for the cases where one operand is used in two places in the
  15470. template, such as an instruction that computes both a quotient and
  15471. a remainder, where the opcode takes two input operands but the RTL
  15472. template has to refer to each of those twice; once for the quotient
  15473. pattern and once for the remainder pattern.
  15474. '(match_operator:M N PREDICATE [OPERANDS...])'
  15475. This pattern is a kind of placeholder for a variable RTL expression
  15476. code.
  15477. When constructing an insn, it stands for an RTL expression whose
  15478. expression code is taken from that of operand N, and whose operands
  15479. are constructed from the patterns OPERANDS.
  15480. When matching an expression, it matches an expression if the
  15481. function PREDICATE returns nonzero on that expression _and_ the
  15482. patterns OPERANDS match the operands of the expression.
  15483. Suppose that the function 'commutative_operator' is defined as
  15484. follows, to match any expression whose operator is one of the
  15485. commutative arithmetic operators of RTL and whose mode is MODE:
  15486. int
  15487. commutative_integer_operator (x, mode)
  15488. rtx x;
  15489. machine_mode mode;
  15490. {
  15491. enum rtx_code code = GET_CODE (x);
  15492. if (GET_MODE (x) != mode)
  15493. return 0;
  15494. return (GET_RTX_CLASS (code) == RTX_COMM_ARITH
  15495. || code == EQ || code == NE);
  15496. }
  15497. Then the following pattern will match any RTL expression consisting
  15498. of a commutative operator applied to two general operands:
  15499. (match_operator:SI 3 "commutative_operator"
  15500. [(match_operand:SI 1 "general_operand" "g")
  15501. (match_operand:SI 2 "general_operand" "g")])
  15502. Here the vector '[OPERANDS...]' contains two patterns because the
  15503. expressions to be matched all contain two operands.
  15504. When this pattern does match, the two operands of the commutative
  15505. operator are recorded as operands 1 and 2 of the insn. (This is
  15506. done by the two instances of 'match_operand'.) Operand 3 of the
  15507. insn will be the entire commutative expression: use 'GET_CODE
  15508. (operands[3])' to see which commutative operator was used.
  15509. The machine mode M of 'match_operator' works like that of
  15510. 'match_operand': it is passed as the second argument to the
  15511. predicate function, and that function is solely responsible for
  15512. deciding whether the expression to be matched "has" that mode.
  15513. When constructing an insn, argument 3 of the gen-function will
  15514. specify the operation (i.e. the expression code) for the expression
  15515. to be made. It should be an RTL expression, whose expression code
  15516. is copied into a new expression whose operands are arguments 1 and
  15517. 2 of the gen-function. The subexpressions of argument 3 are not
  15518. used; only its expression code matters.
  15519. When 'match_operator' is used in a pattern for matching an insn, it
  15520. usually best if the operand number of the 'match_operator' is
  15521. higher than that of the actual operands of the insn. This improves
  15522. register allocation because the register allocator often looks at
  15523. operands 1 and 2 of insns to see if it can do register tying.
  15524. There is no way to specify constraints in 'match_operator'. The
  15525. operand of the insn which corresponds to the 'match_operator' never
  15526. has any constraints because it is never reloaded as a whole.
  15527. However, if parts of its OPERANDS are matched by 'match_operand'
  15528. patterns, those parts may have constraints of their own.
  15529. '(match_op_dup:M N[OPERANDS...])'
  15530. Like 'match_dup', except that it applies to operators instead of
  15531. operands. When constructing an insn, operand number N will be
  15532. substituted at this point. But in matching, 'match_op_dup' behaves
  15533. differently. It assumes that operand number N has already been
  15534. determined by a 'match_operator' appearing earlier in the
  15535. recognition template, and it matches only an identical-looking
  15536. expression.
  15537. '(match_parallel N PREDICATE [SUBPAT...])'
  15538. This pattern is a placeholder for an insn that consists of a
  15539. 'parallel' expression with a variable number of elements. This
  15540. expression should only appear at the top level of an insn pattern.
  15541. When constructing an insn, operand number N will be substituted at
  15542. this point. When matching an insn, it matches if the body of the
  15543. insn is a 'parallel' expression with at least as many elements as
  15544. the vector of SUBPAT expressions in the 'match_parallel', if each
  15545. SUBPAT matches the corresponding element of the 'parallel', _and_
  15546. the function PREDICATE returns nonzero on the 'parallel' that is
  15547. the body of the insn. It is the responsibility of the predicate to
  15548. validate elements of the 'parallel' beyond those listed in the
  15549. 'match_parallel'.
  15550. A typical use of 'match_parallel' is to match load and store
  15551. multiple expressions, which can contain a variable number of
  15552. elements in a 'parallel'. For example,
  15553. (define_insn ""
  15554. [(match_parallel 0 "load_multiple_operation"
  15555. [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
  15556. (match_operand:SI 2 "memory_operand" "m"))
  15557. (use (reg:SI 179))
  15558. (clobber (reg:SI 179))])]
  15559. ""
  15560. "loadm 0,0,%1,%2")
  15561. This example comes from 'a29k.md'. The function
  15562. 'load_multiple_operation' is defined in 'a29k.c' and checks that
  15563. subsequent elements in the 'parallel' are the same as the 'set' in
  15564. the pattern, except that they are referencing subsequent registers
  15565. and memory locations.
  15566. An insn that matches this pattern might look like:
  15567. (parallel
  15568. [(set (reg:SI 20) (mem:SI (reg:SI 100)))
  15569. (use (reg:SI 179))
  15570. (clobber (reg:SI 179))
  15571. (set (reg:SI 21)
  15572. (mem:SI (plus:SI (reg:SI 100)
  15573. (const_int 4))))
  15574. (set (reg:SI 22)
  15575. (mem:SI (plus:SI (reg:SI 100)
  15576. (const_int 8))))])
  15577. '(match_par_dup N [SUBPAT...])'
  15578. Like 'match_op_dup', but for 'match_parallel' instead of
  15579. 'match_operator'.
  15580. 
  15581. File: gccint.info, Node: Output Template, Next: Output Statement, Prev: RTL Template, Up: Machine Desc
  15582. 16.5 Output Templates and Operand Substitution
  15583. ==============================================
  15584. The "output template" is a string which specifies how to output the
  15585. assembler code for an instruction pattern. Most of the template is a
  15586. fixed string which is output literally. The character '%' is used to
  15587. specify where to substitute an operand; it can also be used to identify
  15588. places where different variants of the assembler require different
  15589. syntax.
  15590. In the simplest case, a '%' followed by a digit N says to output
  15591. operand N at that point in the string.
  15592. '%' followed by a letter and a digit says to output an operand in an
  15593. alternate fashion. Four letters have standard, built-in meanings
  15594. described below. The machine description macro 'PRINT_OPERAND' can
  15595. define additional letters with nonstandard meanings.
  15596. '%cDIGIT' can be used to substitute an operand that is a constant value
  15597. without the syntax that normally indicates an immediate operand.
  15598. '%nDIGIT' is like '%cDIGIT' except that the value of the constant is
  15599. negated before printing.
  15600. '%aDIGIT' can be used to substitute an operand as if it were a memory
  15601. reference, with the actual operand treated as the address. This may be
  15602. useful when outputting a "load address" instruction, because often the
  15603. assembler syntax for such an instruction requires you to write the
  15604. operand as if it were a memory reference.
  15605. '%lDIGIT' is used to substitute a 'label_ref' into a jump instruction.
  15606. '%=' outputs a number which is unique to each instruction in the entire
  15607. compilation. This is useful for making local labels to be referred to
  15608. more than once in a single template that generates multiple assembler
  15609. instructions.
  15610. '%' followed by a punctuation character specifies a substitution that
  15611. does not use an operand. Only one case is standard: '%%' outputs a '%'
  15612. into the assembler code. Other nonstandard cases can be defined in the
  15613. 'PRINT_OPERAND' macro. You must also define which punctuation
  15614. characters are valid with the 'PRINT_OPERAND_PUNCT_VALID_P' macro.
  15615. The template may generate multiple assembler instructions. Write the
  15616. text for the instructions, with '\;' between them.
  15617. When the RTL contains two operands which are required by constraint to
  15618. match each other, the output template must refer only to the
  15619. lower-numbered operand. Matching operands are not always identical, and
  15620. the rest of the compiler arranges to put the proper RTL expression for
  15621. printing into the lower-numbered operand.
  15622. One use of nonstandard letters or punctuation following '%' is to
  15623. distinguish between different assembler languages for the same machine;
  15624. for example, Motorola syntax versus MIT syntax for the 68000. Motorola
  15625. syntax requires periods in most opcode names, while MIT syntax does not.
  15626. For example, the opcode 'movel' in MIT syntax is 'move.l' in Motorola
  15627. syntax. The same file of patterns is used for both kinds of output
  15628. syntax, but the character sequence '%.' is used in each place where
  15629. Motorola syntax wants a period. The 'PRINT_OPERAND' macro for Motorola
  15630. syntax defines the sequence to output a period; the macro for MIT syntax
  15631. defines it to do nothing.
  15632. As a special case, a template consisting of the single character '#'
  15633. instructs the compiler to first split the insn, and then output the
  15634. resulting instructions separately. This helps eliminate redundancy in
  15635. the output templates. If you have a 'define_insn' that needs to emit
  15636. multiple assembler instructions, and there is a matching 'define_split'
  15637. already defined, then you can simply use '#' as the output template
  15638. instead of writing an output template that emits the multiple assembler
  15639. instructions.
  15640. If the macro 'ASSEMBLER_DIALECT' is defined, you can use construct of
  15641. the form '{option0|option1|option2}' in the templates. These describe
  15642. multiple variants of assembler language syntax. *Note Instruction
  15643. Output::.
  15644. 
  15645. File: gccint.info, Node: Output Statement, Next: Predicates, Prev: Output Template, Up: Machine Desc
  15646. 16.6 C Statements for Assembler Output
  15647. ======================================
  15648. Often a single fixed template string cannot produce correct and
  15649. efficient assembler code for all the cases that are recognized by a
  15650. single instruction pattern. For example, the opcodes may depend on the
  15651. kinds of operands; or some unfortunate combinations of operands may
  15652. require extra machine instructions.
  15653. If the output control string starts with a '@', then it is actually a
  15654. series of templates, each on a separate line. (Blank lines and leading
  15655. spaces and tabs are ignored.) The templates correspond to the pattern's
  15656. constraint alternatives (*note Multi-Alternative::). For example, if a
  15657. target machine has a two-address add instruction 'addr' to add into a
  15658. register and another 'addm' to add a register to memory, you might write
  15659. this pattern:
  15660. (define_insn "addsi3"
  15661. [(set (match_operand:SI 0 "general_operand" "=r,m")
  15662. (plus:SI (match_operand:SI 1 "general_operand" "0,0")
  15663. (match_operand:SI 2 "general_operand" "g,r")))]
  15664. ""
  15665. "@
  15666. addr %2,%0
  15667. addm %2,%0")
  15668. If the output control string starts with a '*', then it is not an
  15669. output template but rather a piece of C program that should compute a
  15670. template. It should execute a 'return' statement to return the
  15671. template-string you want. Most such templates use C string literals,
  15672. which require doublequote characters to delimit them. To include these
  15673. doublequote characters in the string, prefix each one with '\'.
  15674. If the output control string is written as a brace block instead of a
  15675. double-quoted string, it is automatically assumed to be C code. In that
  15676. case, it is not necessary to put in a leading asterisk, or to escape the
  15677. doublequotes surrounding C string literals.
  15678. The operands may be found in the array 'operands', whose C data type is
  15679. 'rtx []'.
  15680. It is very common to select different ways of generating assembler code
  15681. based on whether an immediate operand is within a certain range. Be
  15682. careful when doing this, because the result of 'INTVAL' is an integer on
  15683. the host machine. If the host machine has more bits in an 'int' than
  15684. the target machine has in the mode in which the constant will be used,
  15685. then some of the bits you get from 'INTVAL' will be superfluous. For
  15686. proper results, you must carefully disregard the values of those bits.
  15687. It is possible to output an assembler instruction and then go on to
  15688. output or compute more of them, using the subroutine 'output_asm_insn'.
  15689. This receives two arguments: a template-string and a vector of operands.
  15690. The vector may be 'operands', or it may be another array of 'rtx' that
  15691. you declare locally and initialize yourself.
  15692. When an insn pattern has multiple alternatives in its constraints,
  15693. often the appearance of the assembler code is determined mostly by which
  15694. alternative was matched. When this is so, the C code can test the
  15695. variable 'which_alternative', which is the ordinal number of the
  15696. alternative that was actually satisfied (0 for the first, 1 for the
  15697. second alternative, etc.).
  15698. For example, suppose there are two opcodes for storing zero, 'clrreg'
  15699. for registers and 'clrmem' for memory locations. Here is how a pattern
  15700. could use 'which_alternative' to choose between them:
  15701. (define_insn ""
  15702. [(set (match_operand:SI 0 "general_operand" "=r,m")
  15703. (const_int 0))]
  15704. ""
  15705. {
  15706. return (which_alternative == 0
  15707. ? "clrreg %0" : "clrmem %0");
  15708. })
  15709. The example above, where the assembler code to generate was _solely_
  15710. determined by the alternative, could also have been specified as
  15711. follows, having the output control string start with a '@':
  15712. (define_insn ""
  15713. [(set (match_operand:SI 0 "general_operand" "=r,m")
  15714. (const_int 0))]
  15715. ""
  15716. "@
  15717. clrreg %0
  15718. clrmem %0")
  15719. If you just need a little bit of C code in one (or a few) alternatives,
  15720. you can use '*' inside of a '@' multi-alternative template:
  15721. (define_insn ""
  15722. [(set (match_operand:SI 0 "general_operand" "=r,<,m")
  15723. (const_int 0))]
  15724. ""
  15725. "@
  15726. clrreg %0
  15727. * return stack_mem_p (operands[0]) ? \"push 0\" : \"clrmem %0\";
  15728. clrmem %0")
  15729. 
  15730. File: gccint.info, Node: Predicates, Next: Constraints, Prev: Output Statement, Up: Machine Desc
  15731. 16.7 Predicates
  15732. ===============
  15733. A predicate determines whether a 'match_operand' or 'match_operator'
  15734. expression matches, and therefore whether the surrounding instruction
  15735. pattern will be used for that combination of operands. GCC has a number
  15736. of machine-independent predicates, and you can define machine-specific
  15737. predicates as needed. By convention, predicates used with
  15738. 'match_operand' have names that end in '_operand', and those used with
  15739. 'match_operator' have names that end in '_operator'.
  15740. All predicates are boolean functions (in the mathematical sense) of two
  15741. arguments: the RTL expression that is being considered at that position
  15742. in the instruction pattern, and the machine mode that the
  15743. 'match_operand' or 'match_operator' specifies. In this section, the
  15744. first argument is called OP and the second argument MODE. Predicates
  15745. can be called from C as ordinary two-argument functions; this can be
  15746. useful in output templates or other machine-specific code.
  15747. Operand predicates can allow operands that are not actually acceptable
  15748. to the hardware, as long as the constraints give reload the ability to
  15749. fix them up (*note Constraints::). However, GCC will usually generate
  15750. better code if the predicates specify the requirements of the machine
  15751. instructions as closely as possible. Reload cannot fix up operands that
  15752. must be constants ("immediate operands"); you must use a predicate that
  15753. allows only constants, or else enforce the requirement in the extra
  15754. condition.
  15755. Most predicates handle their MODE argument in a uniform manner. If
  15756. MODE is 'VOIDmode' (unspecified), then OP can have any mode. If MODE is
  15757. anything else, then OP must have the same mode, unless OP is a
  15758. 'CONST_INT' or integer 'CONST_DOUBLE'. These RTL expressions always
  15759. have 'VOIDmode', so it would be counterproductive to check that their
  15760. mode matches. Instead, predicates that accept 'CONST_INT' and/or
  15761. integer 'CONST_DOUBLE' check that the value stored in the constant will
  15762. fit in the requested mode.
  15763. Predicates with this behavior are called "normal". 'genrecog' can
  15764. optimize the instruction recognizer based on knowledge of how normal
  15765. predicates treat modes. It can also diagnose certain kinds of common
  15766. errors in the use of normal predicates; for instance, it is almost
  15767. always an error to use a normal predicate without specifying a mode.
  15768. Predicates that do something different with their MODE argument are
  15769. called "special". The generic predicates 'address_operand' and
  15770. 'pmode_register_operand' are special predicates. 'genrecog' does not do
  15771. any optimizations or diagnosis when special predicates are used.
  15772. * Menu:
  15773. * Machine-Independent Predicates:: Predicates available to all back ends.
  15774. * Defining Predicates:: How to write machine-specific predicate
  15775. functions.
  15776. 
  15777. File: gccint.info, Node: Machine-Independent Predicates, Next: Defining Predicates, Up: Predicates
  15778. 16.7.1 Machine-Independent Predicates
  15779. -------------------------------------
  15780. These are the generic predicates available to all back ends. They are
  15781. defined in 'recog.c'. The first category of predicates allow only
  15782. constant, or "immediate", operands.
  15783. -- Function: immediate_operand
  15784. This predicate allows any sort of constant that fits in MODE. It
  15785. is an appropriate choice for instructions that take operands that
  15786. must be constant.
  15787. -- Function: const_int_operand
  15788. This predicate allows any 'CONST_INT' expression that fits in MODE.
  15789. It is an appropriate choice for an immediate operand that does not
  15790. allow a symbol or label.
  15791. -- Function: const_double_operand
  15792. This predicate accepts any 'CONST_DOUBLE' expression that has
  15793. exactly MODE. If MODE is 'VOIDmode', it will also accept
  15794. 'CONST_INT'. It is intended for immediate floating point
  15795. constants.
  15796. The second category of predicates allow only some kind of machine
  15797. register.
  15798. -- Function: register_operand
  15799. This predicate allows any 'REG' or 'SUBREG' expression that is
  15800. valid for MODE. It is often suitable for arithmetic instruction
  15801. operands on a RISC machine.
  15802. -- Function: pmode_register_operand
  15803. This is a slight variant on 'register_operand' which works around a
  15804. limitation in the machine-description reader.
  15805. (match_operand N "pmode_register_operand" CONSTRAINT)
  15806. means exactly what
  15807. (match_operand:P N "register_operand" CONSTRAINT)
  15808. would mean, if the machine-description reader accepted ':P' mode
  15809. suffixes. Unfortunately, it cannot, because 'Pmode' is an alias
  15810. for some other mode, and might vary with machine-specific options.
  15811. *Note Misc::.
  15812. -- Function: scratch_operand
  15813. This predicate allows hard registers and 'SCRATCH' expressions, but
  15814. not pseudo-registers. It is used internally by 'match_scratch'; it
  15815. should not be used directly.
  15816. The third category of predicates allow only some kind of memory
  15817. reference.
  15818. -- Function: memory_operand
  15819. This predicate allows any valid reference to a quantity of mode
  15820. MODE in memory, as determined by the weak form of
  15821. 'GO_IF_LEGITIMATE_ADDRESS' (*note Addressing Modes::).
  15822. -- Function: address_operand
  15823. This predicate is a little unusual; it allows any operand that is a
  15824. valid expression for the _address_ of a quantity of mode MODE,
  15825. again determined by the weak form of 'GO_IF_LEGITIMATE_ADDRESS'.
  15826. To first order, if '(mem:MODE (EXP))' is acceptable to
  15827. 'memory_operand', then EXP is acceptable to 'address_operand'.
  15828. Note that EXP does not necessarily have the mode MODE.
  15829. -- Function: indirect_operand
  15830. This is a stricter form of 'memory_operand' which allows only
  15831. memory references with a 'general_operand' as the address
  15832. expression. New uses of this predicate are discouraged, because
  15833. 'general_operand' is very permissive, so it's hard to tell what an
  15834. 'indirect_operand' does or does not allow. If a target has
  15835. different requirements for memory operands for different
  15836. instructions, it is better to define target-specific predicates
  15837. which enforce the hardware's requirements explicitly.
  15838. -- Function: push_operand
  15839. This predicate allows a memory reference suitable for pushing a
  15840. value onto the stack. This will be a 'MEM' which refers to
  15841. 'stack_pointer_rtx', with a side-effect in its address expression
  15842. (*note Incdec::); which one is determined by the 'STACK_PUSH_CODE'
  15843. macro (*note Frame Layout::).
  15844. -- Function: pop_operand
  15845. This predicate allows a memory reference suitable for popping a
  15846. value off the stack. Again, this will be a 'MEM' referring to
  15847. 'stack_pointer_rtx', with a side-effect in its address expression.
  15848. However, this time 'STACK_POP_CODE' is expected.
  15849. The fourth category of predicates allow some combination of the above
  15850. operands.
  15851. -- Function: nonmemory_operand
  15852. This predicate allows any immediate or register operand valid for
  15853. MODE.
  15854. -- Function: nonimmediate_operand
  15855. This predicate allows any register or memory operand valid for
  15856. MODE.
  15857. -- Function: general_operand
  15858. This predicate allows any immediate, register, or memory operand
  15859. valid for MODE.
  15860. Finally, there are two generic operator predicates.
  15861. -- Function: comparison_operator
  15862. This predicate matches any expression which performs an arithmetic
  15863. comparison in MODE; that is, 'COMPARISON_P' is true for the
  15864. expression code.
  15865. -- Function: ordered_comparison_operator
  15866. This predicate matches any expression which performs an arithmetic
  15867. comparison in MODE and whose expression code is valid for integer
  15868. modes; that is, the expression code will be one of 'eq', 'ne',
  15869. 'lt', 'ltu', 'le', 'leu', 'gt', 'gtu', 'ge', 'geu'.
  15870. 
  15871. File: gccint.info, Node: Defining Predicates, Prev: Machine-Independent Predicates, Up: Predicates
  15872. 16.7.2 Defining Machine-Specific Predicates
  15873. -------------------------------------------
  15874. Many machines have requirements for their operands that cannot be
  15875. expressed precisely using the generic predicates. You can define
  15876. additional predicates using 'define_predicate' and
  15877. 'define_special_predicate' expressions. These expressions have three
  15878. operands:
  15879. * The name of the predicate, as it will be referred to in
  15880. 'match_operand' or 'match_operator' expressions.
  15881. * An RTL expression which evaluates to true if the predicate allows
  15882. the operand OP, false if it does not. This expression can only use
  15883. the following RTL codes:
  15884. 'MATCH_OPERAND'
  15885. When written inside a predicate expression, a 'MATCH_OPERAND'
  15886. expression evaluates to true if the predicate it names would
  15887. allow OP. The operand number and constraint are ignored. Due
  15888. to limitations in 'genrecog', you can only refer to generic
  15889. predicates and predicates that have already been defined.
  15890. 'MATCH_CODE'
  15891. This expression evaluates to true if OP or a specified
  15892. subexpression of OP has one of a given list of RTX codes.
  15893. The first operand of this expression is a string constant
  15894. containing a comma-separated list of RTX code names (in lower
  15895. case). These are the codes for which the 'MATCH_CODE' will be
  15896. true.
  15897. The second operand is a string constant which indicates what
  15898. subexpression of OP to examine. If it is absent or the empty
  15899. string, OP itself is examined. Otherwise, the string constant
  15900. must be a sequence of digits and/or lowercase letters. Each
  15901. character indicates a subexpression to extract from the
  15902. current expression; for the first character this is OP, for
  15903. the second and subsequent characters it is the result of the
  15904. previous character. A digit N extracts 'XEXP (E, N)'; a
  15905. letter L extracts 'XVECEXP (E, 0, N)' where N is the
  15906. alphabetic ordinal of L (0 for 'a', 1 for 'b', and so on).
  15907. The 'MATCH_CODE' then examines the RTX code of the
  15908. subexpression extracted by the complete string. It is not
  15909. possible to extract components of an 'rtvec' that is not at
  15910. position 0 within its RTX object.
  15911. 'MATCH_TEST'
  15912. This expression has one operand, a string constant containing
  15913. a C expression. The predicate's arguments, OP and MODE, are
  15914. available with those names in the C expression. The
  15915. 'MATCH_TEST' evaluates to true if the C expression evaluates
  15916. to a nonzero value. 'MATCH_TEST' expressions must not have
  15917. side effects.
  15918. 'AND'
  15919. 'IOR'
  15920. 'NOT'
  15921. 'IF_THEN_ELSE'
  15922. The basic 'MATCH_' expressions can be combined using these
  15923. logical operators, which have the semantics of the C operators
  15924. '&&', '||', '!', and '? :' respectively. As in Common Lisp,
  15925. you may give an 'AND' or 'IOR' expression an arbitrary number
  15926. of arguments; this has exactly the same effect as writing a
  15927. chain of two-argument 'AND' or 'IOR' expressions.
  15928. * An optional block of C code, which should execute 'return true' if
  15929. the predicate is found to match and 'return false' if it does not.
  15930. It must not have any side effects. The predicate arguments, OP and
  15931. MODE, are available with those names.
  15932. If a code block is present in a predicate definition, then the RTL
  15933. expression must evaluate to true _and_ the code block must execute
  15934. 'return true' for the predicate to allow the operand. The RTL
  15935. expression is evaluated first; do not re-check anything in the code
  15936. block that was checked in the RTL expression.
  15937. The program 'genrecog' scans 'define_predicate' and
  15938. 'define_special_predicate' expressions to determine which RTX codes are
  15939. possibly allowed. You should always make this explicit in the RTL
  15940. predicate expression, using 'MATCH_OPERAND' and 'MATCH_CODE'.
  15941. Here is an example of a simple predicate definition, from the IA64
  15942. machine description:
  15943. ;; True if OP is a 'SYMBOL_REF' which refers to the sdata section.
  15944. (define_predicate "small_addr_symbolic_operand"
  15945. (and (match_code "symbol_ref")
  15946. (match_test "SYMBOL_REF_SMALL_ADDR_P (op)")))
  15947. And here is another, showing the use of the C block.
  15948. ;; True if OP is a register operand that is (or could be) a GR reg.
  15949. (define_predicate "gr_register_operand"
  15950. (match_operand 0 "register_operand")
  15951. {
  15952. unsigned int regno;
  15953. if (GET_CODE (op) == SUBREG)
  15954. op = SUBREG_REG (op);
  15955. regno = REGNO (op);
  15956. return (regno >= FIRST_PSEUDO_REGISTER || GENERAL_REGNO_P (regno));
  15957. })
  15958. Predicates written with 'define_predicate' automatically include a test
  15959. that MODE is 'VOIDmode', or OP has the same mode as MODE, or OP is a
  15960. 'CONST_INT' or 'CONST_DOUBLE'. They do _not_ check specifically for
  15961. integer 'CONST_DOUBLE', nor do they test that the value of either kind
  15962. of constant fits in the requested mode. This is because target-specific
  15963. predicates that take constants usually have to do more stringent value
  15964. checks anyway. If you need the exact same treatment of 'CONST_INT' or
  15965. 'CONST_DOUBLE' that the generic predicates provide, use a
  15966. 'MATCH_OPERAND' subexpression to call 'const_int_operand',
  15967. 'const_double_operand', or 'immediate_operand'.
  15968. Predicates written with 'define_special_predicate' do not get any
  15969. automatic mode checks, and are treated as having special mode handling
  15970. by 'genrecog'.
  15971. The program 'genpreds' is responsible for generating code to test
  15972. predicates. It also writes a header file containing function
  15973. declarations for all machine-specific predicates. It is not necessary
  15974. to declare these predicates in 'CPU-protos.h'.
  15975. 
  15976. File: gccint.info, Node: Constraints, Next: Standard Names, Prev: Predicates, Up: Machine Desc
  15977. 16.8 Operand Constraints
  15978. ========================
  15979. Each 'match_operand' in an instruction pattern can specify constraints
  15980. for the operands allowed. The constraints allow you to fine-tune
  15981. matching within the set of operands allowed by the predicate.
  15982. Constraints can say whether an operand may be in a register, and which
  15983. kinds of register; whether the operand can be a memory reference, and
  15984. which kinds of address; whether the operand may be an immediate
  15985. constant, and which possible values it may have. Constraints can also
  15986. require two operands to match. Side-effects aren't allowed in operands
  15987. of inline 'asm', unless '<' or '>' constraints are used, because there
  15988. is no guarantee that the side-effects will happen exactly once in an
  15989. instruction that can update the addressing register.
  15990. * Menu:
  15991. * Simple Constraints:: Basic use of constraints.
  15992. * Multi-Alternative:: When an insn has two alternative constraint-patterns.
  15993. * Class Preferences:: Constraints guide which hard register to put things in.
  15994. * Modifiers:: More precise control over effects of constraints.
  15995. * Machine Constraints:: Existing constraints for some particular machines.
  15996. * Disable Insn Alternatives:: Disable insn alternatives using attributes.
  15997. * Define Constraints:: How to define machine-specific constraints.
  15998. * C Constraint Interface:: How to test constraints from C code.
  15999. 
  16000. File: gccint.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
  16001. 16.8.1 Simple Constraints
  16002. -------------------------
  16003. The simplest kind of constraint is a string full of letters, each of
  16004. which describes one kind of operand that is permitted. Here are the
  16005. letters that are allowed:
  16006. whitespace
  16007. Whitespace characters are ignored and can be inserted at any
  16008. position except the first. This enables each alternative for
  16009. different operands to be visually aligned in the machine
  16010. description even if they have different number of constraints and
  16011. modifiers.
  16012. 'm'
  16013. A memory operand is allowed, with any kind of address that the
  16014. machine supports in general. Note that the letter used for the
  16015. general memory constraint can be re-defined by a back end using the
  16016. 'TARGET_MEM_CONSTRAINT' macro.
  16017. 'o'
  16018. A memory operand is allowed, but only if the address is
  16019. "offsettable". This means that adding a small integer (actually,
  16020. the width in bytes of the operand, as determined by its machine
  16021. mode) may be added to the address and the result is also a valid
  16022. memory address.
  16023. For example, an address which is constant is offsettable; so is an
  16024. address that is the sum of a register and a constant (as long as a
  16025. slightly larger constant is also within the range of
  16026. address-offsets supported by the machine); but an autoincrement or
  16027. autodecrement address is not offsettable. More complicated
  16028. indirect/indexed addresses may or may not be offsettable depending
  16029. on the other addressing modes that the machine supports.
  16030. Note that in an output operand which can be matched by another
  16031. operand, the constraint letter 'o' is valid only when accompanied
  16032. by both '<' (if the target machine has predecrement addressing) and
  16033. '>' (if the target machine has preincrement addressing).
  16034. 'V'
  16035. A memory operand that is not offsettable. In other words, anything
  16036. that would fit the 'm' constraint but not the 'o' constraint.
  16037. '<'
  16038. A memory operand with autodecrement addressing (either predecrement
  16039. or postdecrement) is allowed. In inline 'asm' this constraint is
  16040. only allowed if the operand is used exactly once in an instruction
  16041. that can handle the side-effects. Not using an operand with '<' in
  16042. constraint string in the inline 'asm' pattern at all or using it in
  16043. multiple instructions isn't valid, because the side-effects
  16044. wouldn't be performed or would be performed more than once.
  16045. Furthermore, on some targets the operand with '<' in constraint
  16046. string must be accompanied by special instruction suffixes like
  16047. '%U0' instruction suffix on PowerPC or '%P0' on IA-64.
  16048. '>'
  16049. A memory operand with autoincrement addressing (either preincrement
  16050. or postincrement) is allowed. In inline 'asm' the same
  16051. restrictions as for '<' apply.
  16052. 'r'
  16053. A register operand is allowed provided that it is in a general
  16054. register.
  16055. 'i'
  16056. An immediate integer operand (one with constant value) is allowed.
  16057. This includes symbolic constants whose values will be known only at
  16058. assembly time or later.
  16059. 'n'
  16060. An immediate integer operand with a known numeric value is allowed.
  16061. Many systems cannot support assembly-time constants for operands
  16062. less than a word wide. Constraints for these operands should use
  16063. 'n' rather than 'i'.
  16064. 'I', 'J', 'K', ... 'P'
  16065. Other letters in the range 'I' through 'P' may be defined in a
  16066. machine-dependent fashion to permit immediate integer operands with
  16067. explicit integer values in specified ranges. For example, on the
  16068. 68000, 'I' is defined to stand for the range of values 1 to 8.
  16069. This is the range permitted as a shift count in the shift
  16070. instructions.
  16071. 'E'
  16072. An immediate floating operand (expression code 'const_double') is
  16073. allowed, but only if the target floating point format is the same
  16074. as that of the host machine (on which the compiler is running).
  16075. 'F'
  16076. An immediate floating operand (expression code 'const_double' or
  16077. 'const_vector') is allowed.
  16078. 'G', 'H'
  16079. 'G' and 'H' may be defined in a machine-dependent fashion to permit
  16080. immediate floating operands in particular ranges of values.
  16081. 's'
  16082. An immediate integer operand whose value is not an explicit integer
  16083. is allowed.
  16084. This might appear strange; if an insn allows a constant operand
  16085. with a value not known at compile time, it certainly must allow any
  16086. known value. So why use 's' instead of 'i'? Sometimes it allows
  16087. better code to be generated.
  16088. For example, on the 68000 in a fullword instruction it is possible
  16089. to use an immediate operand; but if the immediate value is between
  16090. -128 and 127, better code results from loading the value into a
  16091. register and using the register. This is because the load into the
  16092. register can be done with a 'moveq' instruction. We arrange for
  16093. this to happen by defining the letter 'K' to mean "any integer
  16094. outside the range -128 to 127", and then specifying 'Ks' in the
  16095. operand constraints.
  16096. 'g'
  16097. Any register, memory or immediate integer operand is allowed,
  16098. except for registers that are not general registers.
  16099. 'X'
  16100. Any operand whatsoever is allowed, even if it does not satisfy
  16101. 'general_operand'. This is normally used in the constraint of a
  16102. 'match_scratch' when certain alternatives will not actually require
  16103. a scratch register.
  16104. '0', '1', '2', ... '9'
  16105. An operand that matches the specified operand number is allowed.
  16106. If a digit is used together with letters within the same
  16107. alternative, the digit should come last.
  16108. This number is allowed to be more than a single digit. If multiple
  16109. digits are encountered consecutively, they are interpreted as a
  16110. single decimal integer. There is scant chance for ambiguity, since
  16111. to-date it has never been desirable that '10' be interpreted as
  16112. matching either operand 1 _or_ operand 0. Should this be desired,
  16113. one can use multiple alternatives instead.
  16114. This is called a "matching constraint" and what it really means is
  16115. that the assembler has only a single operand that fills two roles
  16116. considered separate in the RTL insn. For example, an add insn has
  16117. two input operands and one output operand in the RTL, but on most
  16118. CISC machines an add instruction really has only two operands, one
  16119. of them an input-output operand:
  16120. addl #35,r12
  16121. Matching constraints are used in these circumstances. More
  16122. precisely, the two operands that match must include one input-only
  16123. operand and one output-only operand. Moreover, the digit must be a
  16124. smaller number than the number of the operand that uses it in the
  16125. constraint.
  16126. For operands to match in a particular case usually means that they
  16127. are identical-looking RTL expressions. But in a few special cases
  16128. specific kinds of dissimilarity are allowed. For example, '*x' as
  16129. an input operand will match '*x++' as an output operand. For
  16130. proper results in such cases, the output template should always use
  16131. the output-operand's number when printing the operand.
  16132. 'p'
  16133. An operand that is a valid memory address is allowed. This is for
  16134. "load address" and "push address" instructions.
  16135. 'p' in the constraint must be accompanied by 'address_operand' as
  16136. the predicate in the 'match_operand'. This predicate interprets
  16137. the mode specified in the 'match_operand' as the mode of the memory
  16138. reference for which the address would be valid.
  16139. OTHER-LETTERS
  16140. Other letters can be defined in machine-dependent fashion to stand
  16141. for particular classes of registers or other arbitrary operand
  16142. types. 'd', 'a' and 'f' are defined on the 68000/68020 to stand
  16143. for data, address and floating point registers.
  16144. In order to have valid assembler code, each operand must satisfy its
  16145. constraint. But a failure to do so does not prevent the pattern from
  16146. applying to an insn. Instead, it directs the compiler to modify the
  16147. code so that the constraint will be satisfied. Usually this is done by
  16148. copying an operand into a register.
  16149. Contrast, therefore, the two instruction patterns that follow:
  16150. (define_insn ""
  16151. [(set (match_operand:SI 0 "general_operand" "=r")
  16152. (plus:SI (match_dup 0)
  16153. (match_operand:SI 1 "general_operand" "r")))]
  16154. ""
  16155. "...")
  16156. which has two operands, one of which must appear in two places, and
  16157. (define_insn ""
  16158. [(set (match_operand:SI 0 "general_operand" "=r")
  16159. (plus:SI (match_operand:SI 1 "general_operand" "0")
  16160. (match_operand:SI 2 "general_operand" "r")))]
  16161. ""
  16162. "...")
  16163. which has three operands, two of which are required by a constraint to
  16164. be identical. If we are considering an insn of the form
  16165. (insn N PREV NEXT
  16166. (set (reg:SI 3)
  16167. (plus:SI (reg:SI 6) (reg:SI 109)))
  16168. ...)
  16169. the first pattern would not apply at all, because this insn does not
  16170. contain two identical subexpressions in the right place. The pattern
  16171. would say, "That does not look like an add instruction; try other
  16172. patterns". The second pattern would say, "Yes, that's an add
  16173. instruction, but there is something wrong with it". It would direct the
  16174. reload pass of the compiler to generate additional insns to make the
  16175. constraint true. The results might look like this:
  16176. (insn N2 PREV N
  16177. (set (reg:SI 3) (reg:SI 6))
  16178. ...)
  16179. (insn N N2 NEXT
  16180. (set (reg:SI 3)
  16181. (plus:SI (reg:SI 3) (reg:SI 109)))
  16182. ...)
  16183. It is up to you to make sure that each operand, in each pattern, has
  16184. constraints that can handle any RTL expression that could be present for
  16185. that operand. (When multiple alternatives are in use, each pattern
  16186. must, for each possible combination of operand expressions, have at
  16187. least one alternative which can handle that combination of operands.)
  16188. The constraints don't need to _allow_ any possible operand--when this is
  16189. the case, they do not constrain--but they must at least point the way to
  16190. reloading any possible operand so that it will fit.
  16191. * If the constraint accepts whatever operands the predicate permits,
  16192. there is no problem: reloading is never necessary for this operand.
  16193. For example, an operand whose constraints permit everything except
  16194. registers is safe provided its predicate rejects registers.
  16195. An operand whose predicate accepts only constant values is safe
  16196. provided its constraints include the letter 'i'. If any possible
  16197. constant value is accepted, then nothing less than 'i' will do; if
  16198. the predicate is more selective, then the constraints may also be
  16199. more selective.
  16200. * Any operand expression can be reloaded by copying it into a
  16201. register. So if an operand's constraints allow some kind of
  16202. register, it is certain to be safe. It need not permit all classes
  16203. of registers; the compiler knows how to copy a register into
  16204. another register of the proper class in order to make an
  16205. instruction valid.
  16206. * A nonoffsettable memory reference can be reloaded by copying the
  16207. address into a register. So if the constraint uses the letter 'o',
  16208. all memory references are taken care of.
  16209. * A constant operand can be reloaded by allocating space in memory to
  16210. hold it as preinitialized data. Then the memory reference can be
  16211. used in place of the constant. So if the constraint uses the
  16212. letters 'o' or 'm', constant operands are not a problem.
  16213. * If the constraint permits a constant and a pseudo register used in
  16214. an insn was not allocated to a hard register and is equivalent to a
  16215. constant, the register will be replaced with the constant. If the
  16216. predicate does not permit a constant and the insn is re-recognized
  16217. for some reason, the compiler will crash. Thus the predicate must
  16218. always recognize any objects allowed by the constraint.
  16219. If the operand's predicate can recognize registers, but the constraint
  16220. does not permit them, it can make the compiler crash. When this operand
  16221. happens to be a register, the reload pass will be stymied, because it
  16222. does not know how to copy a register temporarily into memory.
  16223. If the predicate accepts a unary operator, the constraint applies to
  16224. the operand. For example, the MIPS processor at ISA level 3 supports an
  16225. instruction which adds two registers in 'SImode' to produce a 'DImode'
  16226. result, but only if the registers are correctly sign extended. This
  16227. predicate for the input operands accepts a 'sign_extend' of an 'SImode'
  16228. register. Write the constraint to indicate the type of register that is
  16229. required for the operand of the 'sign_extend'.
  16230. 
  16231. File: gccint.info, Node: Multi-Alternative, Next: Class Preferences, Prev: Simple Constraints, Up: Constraints
  16232. 16.8.2 Multiple Alternative Constraints
  16233. ---------------------------------------
  16234. Sometimes a single instruction has multiple alternative sets of possible
  16235. operands. For example, on the 68000, a logical-or instruction can
  16236. combine register or an immediate value into memory, or it can combine
  16237. any kind of operand into a register; but it cannot combine one memory
  16238. location into another.
  16239. These constraints are represented as multiple alternatives. An
  16240. alternative can be described by a series of letters for each operand.
  16241. The overall constraint for an operand is made from the letters for this
  16242. operand from the first alternative, a comma, the letters for this
  16243. operand from the second alternative, a comma, and so on until the last
  16244. alternative. All operands for a single instruction must have the same
  16245. number of alternatives. Here is how it is done for fullword logical-or
  16246. on the 68000:
  16247. (define_insn "iorsi3"
  16248. [(set (match_operand:SI 0 "general_operand" "=m,d")
  16249. (ior:SI (match_operand:SI 1 "general_operand" "%0,0")
  16250. (match_operand:SI 2 "general_operand" "dKs,dmKs")))]
  16251. ...)
  16252. The first alternative has 'm' (memory) for operand 0, '0' for operand 1
  16253. (meaning it must match operand 0), and 'dKs' for operand 2. The second
  16254. alternative has 'd' (data register) for operand 0, '0' for operand 1,
  16255. and 'dmKs' for operand 2. The '=' and '%' in the constraints apply to
  16256. all the alternatives; their meaning is explained in the next section
  16257. (*note Class Preferences::).
  16258. If all the operands fit any one alternative, the instruction is valid.
  16259. Otherwise, for each alternative, the compiler counts how many
  16260. instructions must be added to copy the operands so that that alternative
  16261. applies. The alternative requiring the least copying is chosen. If two
  16262. alternatives need the same amount of copying, the one that comes first
  16263. is chosen. These choices can be altered with the '?' and '!'
  16264. characters:
  16265. '?'
  16266. Disparage slightly the alternative that the '?' appears in, as a
  16267. choice when no alternative applies exactly. The compiler regards
  16268. this alternative as one unit more costly for each '?' that appears
  16269. in it.
  16270. '!'
  16271. Disparage severely the alternative that the '!' appears in. This
  16272. alternative can still be used if it fits without reloading, but if
  16273. reloading is needed, some other alternative will be used.
  16274. '^'
  16275. This constraint is analogous to '?' but it disparages slightly the
  16276. alternative only if the operand with the '^' needs a reload.
  16277. '$'
  16278. This constraint is analogous to '!' but it disparages severely the
  16279. alternative only if the operand with the '$' needs a reload.
  16280. When an insn pattern has multiple alternatives in its constraints,
  16281. often the appearance of the assembler code is determined mostly by which
  16282. alternative was matched. When this is so, the C code for writing the
  16283. assembler code can use the variable 'which_alternative', which is the
  16284. ordinal number of the alternative that was actually satisfied (0 for the
  16285. first, 1 for the second alternative, etc.). *Note Output Statement::.
  16286. 
  16287. File: gccint.info, Node: Class Preferences, Next: Modifiers, Prev: Multi-Alternative, Up: Constraints
  16288. 16.8.3 Register Class Preferences
  16289. ---------------------------------
  16290. The operand constraints have another function: they enable the compiler
  16291. to decide which kind of hardware register a pseudo register is best
  16292. allocated to. The compiler examines the constraints that apply to the
  16293. insns that use the pseudo register, looking for the machine-dependent
  16294. letters such as 'd' and 'a' that specify classes of registers. The
  16295. pseudo register is put in whichever class gets the most "votes". The
  16296. constraint letters 'g' and 'r' also vote: they vote in favor of a
  16297. general register. The machine description says which registers are
  16298. considered general.
  16299. Of course, on some machines all registers are equivalent, and no
  16300. register classes are defined. Then none of this complexity is relevant.
  16301. 
  16302. File: gccint.info, Node: Modifiers, Next: Machine Constraints, Prev: Class Preferences, Up: Constraints
  16303. 16.8.4 Constraint Modifier Characters
  16304. -------------------------------------
  16305. Here are constraint modifier characters.
  16306. '='
  16307. Means that this operand is written to by this instruction: the
  16308. previous value is discarded and replaced by new data.
  16309. '+'
  16310. Means that this operand is both read and written by the
  16311. instruction.
  16312. When the compiler fixes up the operands to satisfy the constraints,
  16313. it needs to know which operands are read by the instruction and
  16314. which are written by it. '=' identifies an operand which is only
  16315. written; '+' identifies an operand that is both read and written;
  16316. all other operands are assumed to only be read.
  16317. If you specify '=' or '+' in a constraint, you put it in the first
  16318. character of the constraint string.
  16319. '&'
  16320. Means (in a particular alternative) that this operand is an
  16321. "earlyclobber" operand, which is written before the instruction is
  16322. finished using the input operands. Therefore, this operand may not
  16323. lie in a register that is read by the instruction or as part of any
  16324. memory address.
  16325. '&' applies only to the alternative in which it is written. In
  16326. constraints with multiple alternatives, sometimes one alternative
  16327. requires '&' while others do not. See, for example, the 'movdf'
  16328. insn of the 68000.
  16329. A operand which is read by the instruction can be tied to an
  16330. earlyclobber operand if its only use as an input occurs before the
  16331. early result is written. Adding alternatives of this form often
  16332. allows GCC to produce better code when only some of the read
  16333. operands can be affected by the earlyclobber. See, for example,
  16334. the 'mulsi3' insn of the ARM.
  16335. Furthermore, if the "earlyclobber" operand is also a read/write
  16336. operand, then that operand is written only after it's used.
  16337. '&' does not obviate the need to write '=' or '+'. As
  16338. "earlyclobber" operands are always written, a read-only
  16339. "earlyclobber" operand is ill-formed and will be rejected by the
  16340. compiler.
  16341. '%'
  16342. Declares the instruction to be commutative for this operand and the
  16343. following operand. This means that the compiler may interchange
  16344. the two operands if that is the cheapest way to make all operands
  16345. fit the constraints. '%' applies to all alternatives and must
  16346. appear as the first character in the constraint. Only read-only
  16347. operands can use '%'.
  16348. This is often used in patterns for addition instructions that
  16349. really have only two operands: the result must go in one of the
  16350. arguments. Here for example, is how the 68000 halfword-add
  16351. instruction is defined:
  16352. (define_insn "addhi3"
  16353. [(set (match_operand:HI 0 "general_operand" "=m,r")
  16354. (plus:HI (match_operand:HI 1 "general_operand" "%0,0")
  16355. (match_operand:HI 2 "general_operand" "di,g")))]
  16356. ...)
  16357. GCC can only handle one commutative pair in an asm; if you use
  16358. more, the compiler may fail. Note that you need not use the
  16359. modifier if the two alternatives are strictly identical; this would
  16360. only waste time in the reload pass. The modifier is not
  16361. operational after register allocation, so the result of
  16362. 'define_peephole2' and 'define_split's performed after reload
  16363. cannot rely on '%' to make the intended insn match.
  16364. '#'
  16365. Says that all following characters, up to the next comma, are to be
  16366. ignored as a constraint. They are significant only for choosing
  16367. register preferences.
  16368. '*'
  16369. Says that the following character should be ignored when choosing
  16370. register preferences. '*' has no effect on the meaning of the
  16371. constraint as a constraint, and no effect on reloading. For LRA
  16372. '*' additionally disparages slightly the alternative if the
  16373. following character matches the operand.
  16374. Here is an example: the 68000 has an instruction to sign-extend a
  16375. halfword in a data register, and can also sign-extend a value by
  16376. copying it into an address register. While either kind of register
  16377. is acceptable, the constraints on an address-register destination
  16378. are less strict, so it is best if register allocation makes an
  16379. address register its goal. Therefore, '*' is used so that the 'd'
  16380. constraint letter (for data register) is ignored when computing
  16381. register preferences.
  16382. (define_insn "extendhisi2"
  16383. [(set (match_operand:SI 0 "general_operand" "=*d,a")
  16384. (sign_extend:SI
  16385. (match_operand:HI 1 "general_operand" "0,g")))]
  16386. ...)
  16387. 
  16388. File: gccint.info, Node: Machine Constraints, Next: Disable Insn Alternatives, Prev: Modifiers, Up: Constraints
  16389. 16.8.5 Constraints for Particular Machines
  16390. ------------------------------------------
  16391. Whenever possible, you should use the general-purpose constraint letters
  16392. in 'asm' arguments, since they will convey meaning more readily to
  16393. people reading your code. Failing that, use the constraint letters that
  16394. usually have very similar meanings across architectures. The most
  16395. commonly used constraints are 'm' and 'r' (for memory and
  16396. general-purpose registers respectively; *note Simple Constraints::), and
  16397. 'I', usually the letter indicating the most common immediate-constant
  16398. format.
  16399. Each architecture defines additional constraints. These constraints
  16400. are used by the compiler itself for instruction generation, as well as
  16401. for 'asm' statements; therefore, some of the constraints are not
  16402. particularly useful for 'asm'. Here is a summary of some of the
  16403. machine-dependent constraints available on some particular machines; it
  16404. includes both constraints that are useful for 'asm' and constraints that
  16405. aren't. The compiler source file mentioned in the table heading for
  16406. each architecture is the definitive reference for the meanings of that
  16407. architecture's constraints.
  16408. _AArch64 family--'config/aarch64/constraints.md'_
  16409. 'k'
  16410. The stack pointer register ('SP')
  16411. 'w'
  16412. Floating point or SIMD vector register
  16413. 'I'
  16414. Integer constant that is valid as an immediate operand in an
  16415. 'ADD' instruction
  16416. 'J'
  16417. Integer constant that is valid as an immediate operand in a
  16418. 'SUB' instruction (once negated)
  16419. 'K'
  16420. Integer constant that can be used with a 32-bit logical
  16421. instruction
  16422. 'L'
  16423. Integer constant that can be used with a 64-bit logical
  16424. instruction
  16425. 'M'
  16426. Integer constant that is valid as an immediate operand in a
  16427. 32-bit 'MOV' pseudo instruction. The 'MOV' may be assembled
  16428. to one of several different machine instructions depending on
  16429. the value
  16430. 'N'
  16431. Integer constant that is valid as an immediate operand in a
  16432. 64-bit 'MOV' pseudo instruction
  16433. 'S'
  16434. An absolute symbolic address or a label reference
  16435. 'Y'
  16436. Floating point constant zero
  16437. 'Z'
  16438. Integer constant zero
  16439. 'Ush'
  16440. The high part (bits 12 and upwards) of the pc-relative address
  16441. of a symbol within 4GB of the instruction
  16442. 'Q'
  16443. A memory address which uses a single base register with no
  16444. offset
  16445. 'Ump'
  16446. A memory address suitable for a load/store pair instruction in
  16447. SI, DI, SF and DF modes
  16448. _ARC --'config/arc/constraints.md'_
  16449. 'q'
  16450. Registers usable in ARCompact 16-bit instructions: 'r0'-'r3',
  16451. 'r12'-'r15'. This constraint can only match when the '-mq'
  16452. option is in effect.
  16453. 'e'
  16454. Registers usable as base-regs of memory addresses in ARCompact
  16455. 16-bit memory instructions: 'r0'-'r3', 'r12'-'r15', 'sp'.
  16456. This constraint can only match when the '-mq' option is in
  16457. effect.
  16458. 'D'
  16459. ARC FPX (dpfp) 64-bit registers. 'D0', 'D1'.
  16460. 'I'
  16461. A signed 12-bit integer constant.
  16462. 'Cal'
  16463. constant for arithmetic/logical operations. This might be any
  16464. constant that can be put into a long immediate by the assmbler
  16465. or linker without involving a PIC relocation.
  16466. 'K'
  16467. A 3-bit unsigned integer constant.
  16468. 'L'
  16469. A 6-bit unsigned integer constant.
  16470. 'CnL'
  16471. One's complement of a 6-bit unsigned integer constant.
  16472. 'CmL'
  16473. Two's complement of a 6-bit unsigned integer constant.
  16474. 'M'
  16475. A 5-bit unsigned integer constant.
  16476. 'O'
  16477. A 7-bit unsigned integer constant.
  16478. 'P'
  16479. A 8-bit unsigned integer constant.
  16480. 'H'
  16481. Any const_double value.
  16482. _ARM family--'config/arm/constraints.md'_
  16483. 'h'
  16484. In Thumb state, the core registers 'r8'-'r15'.
  16485. 'k'
  16486. The stack pointer register.
  16487. 'l'
  16488. In Thumb State the core registers 'r0'-'r7'. In ARM state
  16489. this is an alias for the 'r' constraint.
  16490. 't'
  16491. VFP floating-point registers 's0'-'s31'. Used for 32 bit
  16492. values.
  16493. 'w'
  16494. VFP floating-point registers 'd0'-'d31' and the appropriate
  16495. subset 'd0'-'d15' based on command line options. Used for 64
  16496. bit values only. Not valid for Thumb1.
  16497. 'y'
  16498. The iWMMX co-processor registers.
  16499. 'z'
  16500. The iWMMX GR registers.
  16501. 'G'
  16502. The floating-point constant 0.0
  16503. 'I'
  16504. Integer that is valid as an immediate operand in a data
  16505. processing instruction. That is, an integer in the range 0 to
  16506. 255 rotated by a multiple of 2
  16507. 'J'
  16508. Integer in the range -4095 to 4095
  16509. 'K'
  16510. Integer that satisfies constraint 'I' when inverted (ones
  16511. complement)
  16512. 'L'
  16513. Integer that satisfies constraint 'I' when negated (twos
  16514. complement)
  16515. 'M'
  16516. Integer in the range 0 to 32
  16517. 'Q'
  16518. A memory reference where the exact address is in a single
  16519. register (''m'' is preferable for 'asm' statements)
  16520. 'R'
  16521. An item in the constant pool
  16522. 'S'
  16523. A symbol in the text segment of the current file
  16524. 'Uv'
  16525. A memory reference suitable for VFP load/store insns
  16526. (reg+constant offset)
  16527. 'Uy'
  16528. A memory reference suitable for iWMMXt load/store
  16529. instructions.
  16530. 'Uq'
  16531. A memory reference suitable for the ARMv4 ldrsb instruction.
  16532. _AVR family--'config/avr/constraints.md'_
  16533. 'l'
  16534. Registers from r0 to r15
  16535. 'a'
  16536. Registers from r16 to r23
  16537. 'd'
  16538. Registers from r16 to r31
  16539. 'w'
  16540. Registers from r24 to r31. These registers can be used in
  16541. 'adiw' command
  16542. 'e'
  16543. Pointer register (r26-r31)
  16544. 'b'
  16545. Base pointer register (r28-r31)
  16546. 'q'
  16547. Stack pointer register (SPH:SPL)
  16548. 't'
  16549. Temporary register r0
  16550. 'x'
  16551. Register pair X (r27:r26)
  16552. 'y'
  16553. Register pair Y (r29:r28)
  16554. 'z'
  16555. Register pair Z (r31:r30)
  16556. 'I'
  16557. Constant greater than -1, less than 64
  16558. 'J'
  16559. Constant greater than -64, less than 1
  16560. 'K'
  16561. Constant integer 2
  16562. 'L'
  16563. Constant integer 0
  16564. 'M'
  16565. Constant that fits in 8 bits
  16566. 'N'
  16567. Constant integer -1
  16568. 'O'
  16569. Constant integer 8, 16, or 24
  16570. 'P'
  16571. Constant integer 1
  16572. 'G'
  16573. A floating point constant 0.0
  16574. 'Q'
  16575. A memory address based on Y or Z pointer with displacement.
  16576. _Blackfin family--'config/bfin/constraints.md'_
  16577. 'a'
  16578. P register
  16579. 'd'
  16580. D register
  16581. 'z'
  16582. A call clobbered P register.
  16583. 'qN'
  16584. A single register. If N is in the range 0 to 7, the
  16585. corresponding D register. If it is 'A', then the register P0.
  16586. 'D'
  16587. Even-numbered D register
  16588. 'W'
  16589. Odd-numbered D register
  16590. 'e'
  16591. Accumulator register.
  16592. 'A'
  16593. Even-numbered accumulator register.
  16594. 'B'
  16595. Odd-numbered accumulator register.
  16596. 'b'
  16597. I register
  16598. 'v'
  16599. B register
  16600. 'f'
  16601. M register
  16602. 'c'
  16603. Registers used for circular buffering, i.e. I, B, or L
  16604. registers.
  16605. 'C'
  16606. The CC register.
  16607. 't'
  16608. LT0 or LT1.
  16609. 'k'
  16610. LC0 or LC1.
  16611. 'u'
  16612. LB0 or LB1.
  16613. 'x'
  16614. Any D, P, B, M, I or L register.
  16615. 'y'
  16616. Additional registers typically used only in prologues and
  16617. epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
  16618. USP.
  16619. 'w'
  16620. Any register except accumulators or CC.
  16621. 'Ksh'
  16622. Signed 16 bit integer (in the range -32768 to 32767)
  16623. 'Kuh'
  16624. Unsigned 16 bit integer (in the range 0 to 65535)
  16625. 'Ks7'
  16626. Signed 7 bit integer (in the range -64 to 63)
  16627. 'Ku7'
  16628. Unsigned 7 bit integer (in the range 0 to 127)
  16629. 'Ku5'
  16630. Unsigned 5 bit integer (in the range 0 to 31)
  16631. 'Ks4'
  16632. Signed 4 bit integer (in the range -8 to 7)
  16633. 'Ks3'
  16634. Signed 3 bit integer (in the range -3 to 4)
  16635. 'Ku3'
  16636. Unsigned 3 bit integer (in the range 0 to 7)
  16637. 'PN'
  16638. Constant N, where N is a single-digit constant in the range 0
  16639. to 4.
  16640. 'PA'
  16641. An integer equal to one of the MACFLAG_XXX constants that is
  16642. suitable for use with either accumulator.
  16643. 'PB'
  16644. An integer equal to one of the MACFLAG_XXX constants that is
  16645. suitable for use only with accumulator A1.
  16646. 'M1'
  16647. Constant 255.
  16648. 'M2'
  16649. Constant 65535.
  16650. 'J'
  16651. An integer constant with exactly a single bit set.
  16652. 'L'
  16653. An integer constant with all bits set except exactly one.
  16654. 'H'
  16655. 'Q'
  16656. Any SYMBOL_REF.
  16657. _CR16 Architecture--'config/cr16/cr16.h'_
  16658. 'b'
  16659. Registers from r0 to r14 (registers without stack pointer)
  16660. 't'
  16661. Register from r0 to r11 (all 16-bit registers)
  16662. 'p'
  16663. Register from r12 to r15 (all 32-bit registers)
  16664. 'I'
  16665. Signed constant that fits in 4 bits
  16666. 'J'
  16667. Signed constant that fits in 5 bits
  16668. 'K'
  16669. Signed constant that fits in 6 bits
  16670. 'L'
  16671. Unsigned constant that fits in 4 bits
  16672. 'M'
  16673. Signed constant that fits in 32 bits
  16674. 'N'
  16675. Check for 64 bits wide constants for add/sub instructions
  16676. 'G'
  16677. Floating point constant that is legal for store immediate
  16678. _Epiphany--'config/epiphany/constraints.md'_
  16679. 'U16'
  16680. An unsigned 16-bit constant.
  16681. 'K'
  16682. An unsigned 5-bit constant.
  16683. 'L'
  16684. A signed 11-bit constant.
  16685. 'Cm1'
  16686. A signed 11-bit constant added to -1. Can only match when the
  16687. '-m1reg-REG' option is active.
  16688. 'Cl1'
  16689. Left-shift of -1, i.e., a bit mask with a block of leading
  16690. ones, the rest being a block of trailing zeroes. Can only
  16691. match when the '-m1reg-REG' option is active.
  16692. 'Cr1'
  16693. Right-shift of -1, i.e., a bit mask with a trailing block of
  16694. ones, the rest being zeroes. Or to put it another way, one
  16695. less than a power of two. Can only match when the
  16696. '-m1reg-REG' option is active.
  16697. 'Cal'
  16698. Constant for arithmetic/logical operations. This is like 'i',
  16699. except that for position independent code, no symbols /
  16700. expressions needing relocations are allowed.
  16701. 'Csy'
  16702. Symbolic constant for call/jump instruction.
  16703. 'Rcs'
  16704. The register class usable in short insns. This is a register
  16705. class constraint, and can thus drive register allocation.
  16706. This constraint won't match unless '-mprefer-short-insn-regs'
  16707. is in effect.
  16708. 'Rsc'
  16709. The the register class of registers that can be used to hold a
  16710. sibcall call address. I.e., a caller-saved register.
  16711. 'Rct'
  16712. Core control register class.
  16713. 'Rgs'
  16714. The register group usable in short insns. This constraint
  16715. does not use a register class, so that it only passively
  16716. matches suitable registers, and doesn't drive register
  16717. allocation.
  16718. 'Car'
  16719. Constant suitable for the addsi3_r pattern. This is a valid
  16720. offset For byte, halfword, or word addressing.
  16721. 'Rra'
  16722. Matches the return address if it can be replaced with the link
  16723. register.
  16724. 'Rcc'
  16725. Matches the integer condition code register.
  16726. 'Sra'
  16727. Matches the return address if it is in a stack slot.
  16728. 'Cfm'
  16729. Matches control register values to switch fp mode, which are
  16730. encapsulated in 'UNSPEC_FP_MODE'.
  16731. _FRV--'config/frv/frv.h'_
  16732. 'a'
  16733. Register in the class 'ACC_REGS' ('acc0' to 'acc7').
  16734. 'b'
  16735. Register in the class 'EVEN_ACC_REGS' ('acc0' to 'acc7').
  16736. 'c'
  16737. Register in the class 'CC_REGS' ('fcc0' to 'fcc3' and 'icc0'
  16738. to 'icc3').
  16739. 'd'
  16740. Register in the class 'GPR_REGS' ('gr0' to 'gr63').
  16741. 'e'
  16742. Register in the class 'EVEN_REGS' ('gr0' to 'gr63'). Odd
  16743. registers are excluded not in the class but through the use of
  16744. a machine mode larger than 4 bytes.
  16745. 'f'
  16746. Register in the class 'FPR_REGS' ('fr0' to 'fr63').
  16747. 'h'
  16748. Register in the class 'FEVEN_REGS' ('fr0' to 'fr63'). Odd
  16749. registers are excluded not in the class but through the use of
  16750. a machine mode larger than 4 bytes.
  16751. 'l'
  16752. Register in the class 'LR_REG' (the 'lr' register).
  16753. 'q'
  16754. Register in the class 'QUAD_REGS' ('gr2' to 'gr63'). Register
  16755. numbers not divisible by 4 are excluded not in the class but
  16756. through the use of a machine mode larger than 8 bytes.
  16757. 't'
  16758. Register in the class 'ICC_REGS' ('icc0' to 'icc3').
  16759. 'u'
  16760. Register in the class 'FCC_REGS' ('fcc0' to 'fcc3').
  16761. 'v'
  16762. Register in the class 'ICR_REGS' ('cc4' to 'cc7').
  16763. 'w'
  16764. Register in the class 'FCR_REGS' ('cc0' to 'cc3').
  16765. 'x'
  16766. Register in the class 'QUAD_FPR_REGS' ('fr0' to 'fr63').
  16767. Register numbers not divisible by 4 are excluded not in the
  16768. class but through the use of a machine mode larger than 8
  16769. bytes.
  16770. 'z'
  16771. Register in the class 'SPR_REGS' ('lcr' and 'lr').
  16772. 'A'
  16773. Register in the class 'QUAD_ACC_REGS' ('acc0' to 'acc7').
  16774. 'B'
  16775. Register in the class 'ACCG_REGS' ('accg0' to 'accg7').
  16776. 'C'
  16777. Register in the class 'CR_REGS' ('cc0' to 'cc7').
  16778. 'G'
  16779. Floating point constant zero
  16780. 'I'
  16781. 6-bit signed integer constant
  16782. 'J'
  16783. 10-bit signed integer constant
  16784. 'L'
  16785. 16-bit signed integer constant
  16786. 'M'
  16787. 16-bit unsigned integer constant
  16788. 'N'
  16789. 12-bit signed integer constant that is negative--i.e. in the
  16790. range of -2048 to -1
  16791. 'O'
  16792. Constant zero
  16793. 'P'
  16794. 12-bit signed integer constant that is greater than zero--i.e.
  16795. in the range of 1 to 2047.
  16796. _FT32--'config/ft32/constraints.md'_
  16797. 'A'
  16798. An absolute address
  16799. 'B'
  16800. An offset address
  16801. 'W'
  16802. A register indirect memory operand
  16803. 'e'
  16804. An offset address.
  16805. 'f'
  16806. An offset address.
  16807. 'O'
  16808. The constant zero or one
  16809. 'I'
  16810. A 16-bit signed constant (-32768 ... 32767)
  16811. 'w'
  16812. A bitfield mask suitable for bext or bins
  16813. 'x'
  16814. An inverted bitfield mask suitable for bext or bins
  16815. 'L'
  16816. A 16-bit unsigned constant, multiple of 4 (0 ... 65532)
  16817. 'S'
  16818. A 20-bit signed constant (-524288 ... 524287)
  16819. 'b'
  16820. A constant for a bitfield width (1 ... 16)
  16821. 'KA'
  16822. A 10-bit signed constant (-512 ... 511)
  16823. _Hewlett-Packard PA-RISC--'config/pa/pa.h'_
  16824. 'a'
  16825. General register 1
  16826. 'f'
  16827. Floating point register
  16828. 'q'
  16829. Shift amount register
  16830. 'x'
  16831. Floating point register (deprecated)
  16832. 'y'
  16833. Upper floating point register (32-bit), floating point
  16834. register (64-bit)
  16835. 'Z'
  16836. Any register
  16837. 'I'
  16838. Signed 11-bit integer constant
  16839. 'J'
  16840. Signed 14-bit integer constant
  16841. 'K'
  16842. Integer constant that can be deposited with a 'zdepi'
  16843. instruction
  16844. 'L'
  16845. Signed 5-bit integer constant
  16846. 'M'
  16847. Integer constant 0
  16848. 'N'
  16849. Integer constant that can be loaded with a 'ldil' instruction
  16850. 'O'
  16851. Integer constant whose value plus one is a power of 2
  16852. 'P'
  16853. Integer constant that can be used for 'and' operations in
  16854. 'depi' and 'extru' instructions
  16855. 'S'
  16856. Integer constant 31
  16857. 'U'
  16858. Integer constant 63
  16859. 'G'
  16860. Floating-point constant 0.0
  16861. 'A'
  16862. A 'lo_sum' data-linkage-table memory operand
  16863. 'Q'
  16864. A memory operand that can be used as the destination operand
  16865. of an integer store instruction
  16866. 'R'
  16867. A scaled or unscaled indexed memory operand
  16868. 'T'
  16869. A memory operand for floating-point loads and stores
  16870. 'W'
  16871. A register indirect memory operand
  16872. _Intel IA-64--'config/ia64/ia64.h'_
  16873. 'a'
  16874. General register 'r0' to 'r3' for 'addl' instruction
  16875. 'b'
  16876. Branch register
  16877. 'c'
  16878. Predicate register ('c' as in "conditional")
  16879. 'd'
  16880. Application register residing in M-unit
  16881. 'e'
  16882. Application register residing in I-unit
  16883. 'f'
  16884. Floating-point register
  16885. 'm'
  16886. Memory operand. If used together with '<' or '>', the operand
  16887. can have postincrement and postdecrement which require
  16888. printing with '%Pn' on IA-64.
  16889. 'G'
  16890. Floating-point constant 0.0 or 1.0
  16891. 'I'
  16892. 14-bit signed integer constant
  16893. 'J'
  16894. 22-bit signed integer constant
  16895. 'K'
  16896. 8-bit signed integer constant for logical instructions
  16897. 'L'
  16898. 8-bit adjusted signed integer constant for compare pseudo-ops
  16899. 'M'
  16900. 6-bit unsigned integer constant for shift counts
  16901. 'N'
  16902. 9-bit signed integer constant for load and store
  16903. postincrements
  16904. 'O'
  16905. The constant zero
  16906. 'P'
  16907. 0 or -1 for 'dep' instruction
  16908. 'Q'
  16909. Non-volatile memory for floating-point loads and stores
  16910. 'R'
  16911. Integer constant in the range 1 to 4 for 'shladd' instruction
  16912. 'S'
  16913. Memory operand except postincrement and postdecrement. This
  16914. is now roughly the same as 'm' when not used together with '<'
  16915. or '>'.
  16916. _M32C--'config/m32c/m32c.c'_
  16917. 'Rsp'
  16918. 'Rfb'
  16919. 'Rsb'
  16920. '$sp', '$fb', '$sb'.
  16921. 'Rcr'
  16922. Any control register, when they're 16 bits wide (nothing if
  16923. control registers are 24 bits wide)
  16924. 'Rcl'
  16925. Any control register, when they're 24 bits wide.
  16926. 'R0w'
  16927. 'R1w'
  16928. 'R2w'
  16929. 'R3w'
  16930. $r0, $r1, $r2, $r3.
  16931. 'R02'
  16932. $r0 or $r2, or $r2r0 for 32 bit values.
  16933. 'R13'
  16934. $r1 or $r3, or $r3r1 for 32 bit values.
  16935. 'Rdi'
  16936. A register that can hold a 64 bit value.
  16937. 'Rhl'
  16938. $r0 or $r1 (registers with addressable high/low bytes)
  16939. 'R23'
  16940. $r2 or $r3
  16941. 'Raa'
  16942. Address registers
  16943. 'Raw'
  16944. Address registers when they're 16 bits wide.
  16945. 'Ral'
  16946. Address registers when they're 24 bits wide.
  16947. 'Rqi'
  16948. Registers that can hold QI values.
  16949. 'Rad'
  16950. Registers that can be used with displacements ($a0, $a1, $sb).
  16951. 'Rsi'
  16952. Registers that can hold 32 bit values.
  16953. 'Rhi'
  16954. Registers that can hold 16 bit values.
  16955. 'Rhc'
  16956. Registers chat can hold 16 bit values, including all control
  16957. registers.
  16958. 'Rra'
  16959. $r0 through R1, plus $a0 and $a1.
  16960. 'Rfl'
  16961. The flags register.
  16962. 'Rmm'
  16963. The memory-based pseudo-registers $mem0 through $mem15.
  16964. 'Rpi'
  16965. Registers that can hold pointers (16 bit registers for r8c,
  16966. m16c; 24 bit registers for m32cm, m32c).
  16967. 'Rpa'
  16968. Matches multiple registers in a PARALLEL to form a larger
  16969. register. Used to match function return values.
  16970. 'Is3'
  16971. -8 ... 7
  16972. 'IS1'
  16973. -128 ... 127
  16974. 'IS2'
  16975. -32768 ... 32767
  16976. 'IU2'
  16977. 0 ... 65535
  16978. 'In4'
  16979. -8 ... -1 or 1 ... 8
  16980. 'In5'
  16981. -16 ... -1 or 1 ... 16
  16982. 'In6'
  16983. -32 ... -1 or 1 ... 32
  16984. 'IM2'
  16985. -65536 ... -1
  16986. 'Ilb'
  16987. An 8 bit value with exactly one bit set.
  16988. 'Ilw'
  16989. A 16 bit value with exactly one bit set.
  16990. 'Sd'
  16991. The common src/dest memory addressing modes.
  16992. 'Sa'
  16993. Memory addressed using $a0 or $a1.
  16994. 'Si'
  16995. Memory addressed with immediate addresses.
  16996. 'Ss'
  16997. Memory addressed using the stack pointer ($sp).
  16998. 'Sf'
  16999. Memory addressed using the frame base register ($fb).
  17000. 'Ss'
  17001. Memory addressed using the small base register ($sb).
  17002. 'S1'
  17003. $r1h
  17004. _MicroBlaze--'config/microblaze/constraints.md'_
  17005. 'd'
  17006. A general register ('r0' to 'r31').
  17007. 'z'
  17008. A status register ('rmsr', '$fcc1' to '$fcc7').
  17009. _MIPS--'config/mips/constraints.md'_
  17010. 'd'
  17011. A general-purpose register. This is equivalent to 'r' unless
  17012. generating MIPS16 code, in which case the MIPS16 register set
  17013. is used.
  17014. 'f'
  17015. A floating-point register (if available).
  17016. 'h'
  17017. Formerly the 'hi' register. This constraint is no longer
  17018. supported.
  17019. 'l'
  17020. The 'lo' register. Use this register to store values that are
  17021. no bigger than a word.
  17022. 'x'
  17023. The concatenated 'hi' and 'lo' registers. Use this register
  17024. to store doubleword values.
  17025. 'c'
  17026. A register suitable for use in an indirect jump. This will
  17027. always be '$25' for '-mabicalls'.
  17028. 'v'
  17029. Register '$3'. Do not use this constraint in new code; it is
  17030. retained only for compatibility with glibc.
  17031. 'y'
  17032. Equivalent to 'r'; retained for backwards compatibility.
  17033. 'z'
  17034. A floating-point condition code register.
  17035. 'I'
  17036. A signed 16-bit constant (for arithmetic instructions).
  17037. 'J'
  17038. Integer zero.
  17039. 'K'
  17040. An unsigned 16-bit constant (for logic instructions).
  17041. 'L'
  17042. A signed 32-bit constant in which the lower 16 bits are zero.
  17043. Such constants can be loaded using 'lui'.
  17044. 'M'
  17045. A constant that cannot be loaded using 'lui', 'addiu' or
  17046. 'ori'.
  17047. 'N'
  17048. A constant in the range -65535 to -1 (inclusive).
  17049. 'O'
  17050. A signed 15-bit constant.
  17051. 'P'
  17052. A constant in the range 1 to 65535 (inclusive).
  17053. 'G'
  17054. Floating-point zero.
  17055. 'R'
  17056. An address that can be used in a non-macro load or store.
  17057. 'ZC'
  17058. A memory operand whose address is formed by a base register
  17059. and offset that is suitable for use in instructions with the
  17060. same addressing mode as 'll' and 'sc'.
  17061. 'ZD'
  17062. An address suitable for a 'prefetch' instruction, or for any
  17063. other instruction with the same addressing mode as 'prefetch'.
  17064. _Motorola 680x0--'config/m68k/constraints.md'_
  17065. 'a'
  17066. Address register
  17067. 'd'
  17068. Data register
  17069. 'f'
  17070. 68881 floating-point register, if available
  17071. 'I'
  17072. Integer in the range 1 to 8
  17073. 'J'
  17074. 16-bit signed number
  17075. 'K'
  17076. Signed number whose magnitude is greater than 0x80
  17077. 'L'
  17078. Integer in the range -8 to -1
  17079. 'M'
  17080. Signed number whose magnitude is greater than 0x100
  17081. 'N'
  17082. Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
  17083. 'O'
  17084. 16 (for rotate using swap)
  17085. 'P'
  17086. Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
  17087. 'R'
  17088. Numbers that mov3q can handle
  17089. 'G'
  17090. Floating point constant that is not a 68881 constant
  17091. 'S'
  17092. Operands that satisfy 'm' when -mpcrel is in effect
  17093. 'T'
  17094. Operands that satisfy 's' when -mpcrel is not in effect
  17095. 'Q'
  17096. Address register indirect addressing mode
  17097. 'U'
  17098. Register offset addressing
  17099. 'W'
  17100. const_call_operand
  17101. 'Cs'
  17102. symbol_ref or const
  17103. 'Ci'
  17104. const_int
  17105. 'C0'
  17106. const_int 0
  17107. 'Cj'
  17108. Range of signed numbers that don't fit in 16 bits
  17109. 'Cmvq'
  17110. Integers valid for mvq
  17111. 'Capsw'
  17112. Integers valid for a moveq followed by a swap
  17113. 'Cmvz'
  17114. Integers valid for mvz
  17115. 'Cmvs'
  17116. Integers valid for mvs
  17117. 'Ap'
  17118. push_operand
  17119. 'Ac'
  17120. Non-register operands allowed in clr
  17121. _Moxie--'config/moxie/constraints.md'_
  17122. 'A'
  17123. An absolute address
  17124. 'B'
  17125. An offset address
  17126. 'W'
  17127. A register indirect memory operand
  17128. 'I'
  17129. A constant in the range of 0 to 255.
  17130. 'N'
  17131. A constant in the range of 0 to -255.
  17132. _MSP430-'config/msp430/constraints.md'_
  17133. 'R12'
  17134. Register R12.
  17135. 'R13'
  17136. Register R13.
  17137. 'K'
  17138. Integer constant 1.
  17139. 'L'
  17140. Integer constant -1^20..1^19.
  17141. 'M'
  17142. Integer constant 1-4.
  17143. 'Ya'
  17144. Memory references which do not require an extended MOVX
  17145. instruction.
  17146. 'Yl'
  17147. Memory reference, labels only.
  17148. 'Ys'
  17149. Memory reference, stack only.
  17150. _NDS32--'config/nds32/constraints.md'_
  17151. 'w'
  17152. LOW register class $r0 to $r7 constraint for V3/V3M ISA.
  17153. 'l'
  17154. LOW register class $r0 to $r7.
  17155. 'd'
  17156. MIDDLE register class $r0 to $r11, $r16 to $r19.
  17157. 'h'
  17158. HIGH register class $r12 to $r14, $r20 to $r31.
  17159. 't'
  17160. Temporary assist register $ta (i.e. $r15).
  17161. 'k'
  17162. Stack register $sp.
  17163. 'Iu03'
  17164. Unsigned immediate 3-bit value.
  17165. 'In03'
  17166. Negative immediate 3-bit value in the range of -7-0.
  17167. 'Iu04'
  17168. Unsigned immediate 4-bit value.
  17169. 'Is05'
  17170. Signed immediate 5-bit value.
  17171. 'Iu05'
  17172. Unsigned immediate 5-bit value.
  17173. 'In05'
  17174. Negative immediate 5-bit value in the range of -31-0.
  17175. 'Ip05'
  17176. Unsigned immediate 5-bit value for movpi45 instruction with
  17177. range 16-47.
  17178. 'Iu06'
  17179. Unsigned immediate 6-bit value constraint for addri36.sp
  17180. instruction.
  17181. 'Iu08'
  17182. Unsigned immediate 8-bit value.
  17183. 'Iu09'
  17184. Unsigned immediate 9-bit value.
  17185. 'Is10'
  17186. Signed immediate 10-bit value.
  17187. 'Is11'
  17188. Signed immediate 11-bit value.
  17189. 'Is15'
  17190. Signed immediate 15-bit value.
  17191. 'Iu15'
  17192. Unsigned immediate 15-bit value.
  17193. 'Ic15'
  17194. A constant which is not in the range of imm15u but ok for bclr
  17195. instruction.
  17196. 'Ie15'
  17197. A constant which is not in the range of imm15u but ok for bset
  17198. instruction.
  17199. 'It15'
  17200. A constant which is not in the range of imm15u but ok for btgl
  17201. instruction.
  17202. 'Ii15'
  17203. A constant whose compliment value is in the range of imm15u
  17204. and ok for bitci instruction.
  17205. 'Is16'
  17206. Signed immediate 16-bit value.
  17207. 'Is17'
  17208. Signed immediate 17-bit value.
  17209. 'Is19'
  17210. Signed immediate 19-bit value.
  17211. 'Is20'
  17212. Signed immediate 20-bit value.
  17213. 'Ihig'
  17214. The immediate value that can be simply set high 20-bit.
  17215. 'Izeb'
  17216. The immediate value 0xff.
  17217. 'Izeh'
  17218. The immediate value 0xffff.
  17219. 'Ixls'
  17220. The immediate value 0x01.
  17221. 'Ix11'
  17222. The immediate value 0x7ff.
  17223. 'Ibms'
  17224. The immediate value with power of 2.
  17225. 'Ifex'
  17226. The immediate value with power of 2 minus 1.
  17227. 'U33'
  17228. Memory constraint for 333 format.
  17229. 'U45'
  17230. Memory constraint for 45 format.
  17231. 'U37'
  17232. Memory constraint for 37 format.
  17233. _Nios II family--'config/nios2/constraints.md'_
  17234. 'I'
  17235. Integer that is valid as an immediate operand in an
  17236. instruction taking a signed 16-bit number. Range -32768 to
  17237. 32767.
  17238. 'J'
  17239. Integer that is valid as an immediate operand in an
  17240. instruction taking an unsigned 16-bit number. Range 0 to
  17241. 65535.
  17242. 'K'
  17243. Integer that is valid as an immediate operand in an
  17244. instruction taking only the upper 16-bits of a 32-bit number.
  17245. Range 32-bit numbers with the lower 16-bits being 0.
  17246. 'L'
  17247. Integer that is valid as an immediate operand for a shift
  17248. instruction. Range 0 to 31.
  17249. 'M'
  17250. Integer that is valid as an immediate operand for only the
  17251. value 0. Can be used in conjunction with the format modifier
  17252. 'z' to use 'r0' instead of '0' in the assembly output.
  17253. 'N'
  17254. Integer that is valid as an immediate operand for a custom
  17255. instruction opcode. Range 0 to 255.
  17256. 'P'
  17257. An immediate operand for R2 andchi/andci instructions.
  17258. 'S'
  17259. Matches immediates which are addresses in the small data
  17260. section and therefore can be added to 'gp' as a 16-bit
  17261. immediate to re-create their 32-bit value.
  17262. 'U'
  17263. Matches constants suitable as an operand for the rdprs and
  17264. cache instructions.
  17265. 'v'
  17266. A memory operand suitable for Nios II R2 load/store exclusive
  17267. instructions.
  17268. 'w'
  17269. A memory operand suitable for load/store IO and cache
  17270. instructions.
  17271. 'T'
  17272. A 'const' wrapped 'UNSPEC' expression, representing a
  17273. supported PIC or TLS relocation.
  17274. _PDP-11--'config/pdp11/constraints.md'_
  17275. 'a'
  17276. Floating point registers AC0 through AC3. These can be loaded
  17277. from/to memory with a single instruction.
  17278. 'd'
  17279. Odd numbered general registers (R1, R3, R5). These are used
  17280. for 16-bit multiply operations.
  17281. 'f'
  17282. Any of the floating point registers (AC0 through AC5).
  17283. 'G'
  17284. Floating point constant 0.
  17285. 'I'
  17286. An integer constant that fits in 16 bits.
  17287. 'J'
  17288. An integer constant whose low order 16 bits are zero.
  17289. 'K'
  17290. An integer constant that does not meet the constraints for
  17291. codes 'I' or 'J'.
  17292. 'L'
  17293. The integer constant 1.
  17294. 'M'
  17295. The integer constant -1.
  17296. 'N'
  17297. The integer constant 0.
  17298. 'O'
  17299. Integer constants -4 through -1 and 1 through 4; shifts by
  17300. these amounts are handled as multiple single-bit shifts rather
  17301. than a single variable-length shift.
  17302. 'Q'
  17303. A memory reference which requires an additional word (address
  17304. or offset) after the opcode.
  17305. 'R'
  17306. A memory reference that is encoded within the opcode.
  17307. _PowerPC and IBM RS6000--'config/rs6000/constraints.md'_
  17308. 'b'
  17309. Address base register
  17310. 'd'
  17311. Floating point register (containing 64-bit value)
  17312. 'f'
  17313. Floating point register (containing 32-bit value)
  17314. 'v'
  17315. Altivec vector register
  17316. 'wa'
  17317. Any VSX register if the '-mvsx' option was used or NO_REGS.
  17318. When using any of the register constraints ('wa', 'wd', 'wf',
  17319. 'wg', 'wh', 'wi', 'wj', 'wk', 'wl', 'wm', 'wo', 'wp', 'wq',
  17320. 'ws', 'wt', 'wu', 'wv', 'ww', or 'wy') that take VSX
  17321. registers, you must use '%x<n>' in the template so that the
  17322. correct register is used. Otherwise the register number
  17323. output in the assembly file will be incorrect if an Altivec
  17324. register is an operand of a VSX instruction that expects VSX
  17325. register numbering.
  17326. asm ("xvadddp %x0,%x1,%x2"
  17327. : "=wa" (v1)
  17328. : "wa" (v2), "wa" (v3));
  17329. is correct, but:
  17330. asm ("xvadddp %0,%1,%2"
  17331. : "=wa" (v1)
  17332. : "wa" (v2), "wa" (v3));
  17333. is not correct.
  17334. If an instruction only takes Altivec registers, you do not
  17335. want to use '%x<n>'.
  17336. asm ("xsaddqp %0,%1,%2"
  17337. : "=v" (v1)
  17338. : "v" (v2), "v" (v3));
  17339. is correct because the 'xsaddqp' instruction only takes
  17340. Altivec registers, while:
  17341. asm ("xsaddqp %x0,%x1,%x2"
  17342. : "=v" (v1)
  17343. : "v" (v2), "v" (v3));
  17344. is incorrect.
  17345. 'wb'
  17346. Altivec register if '-mcpu=power9' is used or NO_REGS.
  17347. 'wd'
  17348. VSX vector register to hold vector double data or NO_REGS.
  17349. 'we'
  17350. VSX register if the '-mcpu=power9' and '-m64' options were
  17351. used or NO_REGS.
  17352. 'wf'
  17353. VSX vector register to hold vector float data or NO_REGS.
  17354. 'wg'
  17355. If '-mmfpgpr' was used, a floating point register or NO_REGS.
  17356. 'wh'
  17357. Floating point register if direct moves are available, or
  17358. NO_REGS.
  17359. 'wi'
  17360. FP or VSX register to hold 64-bit integers for VSX insns or
  17361. NO_REGS.
  17362. 'wj'
  17363. FP or VSX register to hold 64-bit integers for direct moves or
  17364. NO_REGS.
  17365. 'wk'
  17366. FP or VSX register to hold 64-bit doubles for direct moves or
  17367. NO_REGS.
  17368. 'wl'
  17369. Floating point register if the LFIWAX instruction is enabled
  17370. or NO_REGS.
  17371. 'wm'
  17372. VSX register if direct move instructions are enabled, or
  17373. NO_REGS.
  17374. 'wn'
  17375. No register (NO_REGS).
  17376. 'wo'
  17377. VSX register to use for ISA 3.0 vector instructions, or
  17378. NO_REGS.
  17379. 'wp'
  17380. VSX register to use for IEEE 128-bit floating point TFmode, or
  17381. NO_REGS.
  17382. 'wq'
  17383. VSX register to use for IEEE 128-bit floating point, or
  17384. NO_REGS.
  17385. 'wr'
  17386. General purpose register if 64-bit instructions are enabled or
  17387. NO_REGS.
  17388. 'ws'
  17389. VSX vector register to hold scalar double values or NO_REGS.
  17390. 'wt'
  17391. VSX vector register to hold 128 bit integer or NO_REGS.
  17392. 'wu'
  17393. Altivec register to use for float/32-bit int loads/stores or
  17394. NO_REGS.
  17395. 'wv'
  17396. Altivec register to use for double loads/stores or NO_REGS.
  17397. 'ww'
  17398. FP or VSX register to perform float operations under '-mvsx'
  17399. or NO_REGS.
  17400. 'wx'
  17401. Floating point register if the STFIWX instruction is enabled
  17402. or NO_REGS.
  17403. 'wy'
  17404. FP or VSX register to perform ISA 2.07 float ops or NO_REGS.
  17405. 'wz'
  17406. Floating point register if the LFIWZX instruction is enabled
  17407. or NO_REGS.
  17408. 'wA'
  17409. Address base register if 64-bit instructions are enabled or
  17410. NO_REGS.
  17411. 'wB'
  17412. Signed 5-bit constant integer that can be loaded into an
  17413. altivec register.
  17414. 'wD'
  17415. Int constant that is the element number of the 64-bit scalar
  17416. in a vector.
  17417. 'wE'
  17418. Vector constant that can be loaded with the XXSPLTIB
  17419. instruction.
  17420. 'wF'
  17421. Memory operand suitable for power9 fusion load/stores.
  17422. 'wG'
  17423. Memory operand suitable for TOC fusion memory references.
  17424. 'wH'
  17425. Altivec register if '-mvsx-small-integer'.
  17426. 'wI'
  17427. Floating point register if '-mvsx-small-integer'.
  17428. 'wJ'
  17429. FP register if '-mvsx-small-integer' and '-mpower9-vector'.
  17430. 'wK'
  17431. Altivec register if '-mvsx-small-integer' and
  17432. '-mpower9-vector'.
  17433. 'wL'
  17434. Int constant that is the element number that the MFVSRLD
  17435. instruction. targets.
  17436. 'wM'
  17437. Match vector constant with all 1's if the XXLORC instruction
  17438. is available.
  17439. 'wO'
  17440. A memory operand suitable for the ISA 3.0 vector d-form
  17441. instructions.
  17442. 'wQ'
  17443. A memory address that will work with the 'lq' and 'stq'
  17444. instructions.
  17445. 'wS'
  17446. Vector constant that can be loaded with XXSPLTIB & sign
  17447. extension.
  17448. 'h'
  17449. 'MQ', 'CTR', or 'LINK' register
  17450. 'c'
  17451. 'CTR' register
  17452. 'l'
  17453. 'LINK' register
  17454. 'x'
  17455. 'CR' register (condition register) number 0
  17456. 'y'
  17457. 'CR' register (condition register)
  17458. 'z'
  17459. 'XER[CA]' carry bit (part of the XER register)
  17460. 'I'
  17461. Signed 16-bit constant
  17462. 'J'
  17463. Unsigned 16-bit constant shifted left 16 bits (use 'L' instead
  17464. for 'SImode' constants)
  17465. 'K'
  17466. Unsigned 16-bit constant
  17467. 'L'
  17468. Signed 16-bit constant shifted left 16 bits
  17469. 'M'
  17470. Constant larger than 31
  17471. 'N'
  17472. Exact power of 2
  17473. 'O'
  17474. Zero
  17475. 'P'
  17476. Constant whose negation is a signed 16-bit constant
  17477. 'G'
  17478. Floating point constant that can be loaded into a register
  17479. with one instruction per word
  17480. 'H'
  17481. Integer/Floating point constant that can be loaded into a
  17482. register using three instructions
  17483. 'm'
  17484. Memory operand. Normally, 'm' does not allow addresses that
  17485. update the base register. If '<' or '>' constraint is also
  17486. used, they are allowed and therefore on PowerPC targets in
  17487. that case it is only safe to use 'm<>' in an 'asm' statement
  17488. if that 'asm' statement accesses the operand exactly once.
  17489. The 'asm' statement must also use '%U<OPNO>' as a placeholder
  17490. for the "update" flag in the corresponding load or store
  17491. instruction. For example:
  17492. asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));
  17493. is correct but:
  17494. asm ("st %1,%0" : "=m<>" (mem) : "r" (val));
  17495. is not.
  17496. 'es'
  17497. A "stable" memory operand; that is, one which does not include
  17498. any automodification of the base register. This used to be
  17499. useful when 'm' allowed automodification of the base register,
  17500. but as those are now only allowed when '<' or '>' is used,
  17501. 'es' is basically the same as 'm' without '<' and '>'.
  17502. 'Q'
  17503. Memory operand that is an offset from a register (it is
  17504. usually better to use 'm' or 'es' in 'asm' statements)
  17505. 'Z'
  17506. Memory operand that is an indexed or indirect from a register
  17507. (it is usually better to use 'm' or 'es' in 'asm' statements)
  17508. 'R'
  17509. AIX TOC entry
  17510. 'a'
  17511. Address operand that is an indexed or indirect from a register
  17512. ('p' is preferable for 'asm' statements)
  17513. 'U'
  17514. System V Release 4 small data area reference
  17515. 'W'
  17516. Vector constant that does not require memory
  17517. 'j'
  17518. Vector constant that is all zeros.
  17519. _RL78--'config/rl78/constraints.md'_
  17520. 'Int3'
  17521. An integer constant in the range 1 ... 7.
  17522. 'Int8'
  17523. An integer constant in the range 0 ... 255.
  17524. 'J'
  17525. An integer constant in the range -255 ... 0
  17526. 'K'
  17527. The integer constant 1.
  17528. 'L'
  17529. The integer constant -1.
  17530. 'M'
  17531. The integer constant 0.
  17532. 'N'
  17533. The integer constant 2.
  17534. 'O'
  17535. The integer constant -2.
  17536. 'P'
  17537. An integer constant in the range 1 ... 15.
  17538. 'Qbi'
  17539. The built-in compare types-eq, ne, gtu, ltu, geu, and leu.
  17540. 'Qsc'
  17541. The synthetic compare types-gt, lt, ge, and le.
  17542. 'Wab'
  17543. A memory reference with an absolute address.
  17544. 'Wbc'
  17545. A memory reference using 'BC' as a base register, with an
  17546. optional offset.
  17547. 'Wca'
  17548. A memory reference using 'AX', 'BC', 'DE', or 'HL' for the
  17549. address, for calls.
  17550. 'Wcv'
  17551. A memory reference using any 16-bit register pair for the
  17552. address, for calls.
  17553. 'Wd2'
  17554. A memory reference using 'DE' as a base register, with an
  17555. optional offset.
  17556. 'Wde'
  17557. A memory reference using 'DE' as a base register, without any
  17558. offset.
  17559. 'Wfr'
  17560. Any memory reference to an address in the far address space.
  17561. 'Wh1'
  17562. A memory reference using 'HL' as a base register, with an
  17563. optional one-byte offset.
  17564. 'Whb'
  17565. A memory reference using 'HL' as a base register, with 'B' or
  17566. 'C' as the index register.
  17567. 'Whl'
  17568. A memory reference using 'HL' as a base register, without any
  17569. offset.
  17570. 'Ws1'
  17571. A memory reference using 'SP' as a base register, with an
  17572. optional one-byte offset.
  17573. 'Y'
  17574. Any memory reference to an address in the near address space.
  17575. 'A'
  17576. The 'AX' register.
  17577. 'B'
  17578. The 'BC' register.
  17579. 'D'
  17580. The 'DE' register.
  17581. 'R'
  17582. 'A' through 'L' registers.
  17583. 'S'
  17584. The 'SP' register.
  17585. 'T'
  17586. The 'HL' register.
  17587. 'Z08W'
  17588. The 16-bit 'R8' register.
  17589. 'Z10W'
  17590. The 16-bit 'R10' register.
  17591. 'Zint'
  17592. The registers reserved for interrupts ('R24' to 'R31').
  17593. 'a'
  17594. The 'A' register.
  17595. 'b'
  17596. The 'B' register.
  17597. 'c'
  17598. The 'C' register.
  17599. 'd'
  17600. The 'D' register.
  17601. 'e'
  17602. The 'E' register.
  17603. 'h'
  17604. The 'H' register.
  17605. 'l'
  17606. The 'L' register.
  17607. 'v'
  17608. The virtual registers.
  17609. 'w'
  17610. The 'PSW' register.
  17611. 'x'
  17612. The 'X' register.
  17613. _RISC-V--'config/riscv/constraints.md'_
  17614. 'f'
  17615. A floating-point register (if availiable).
  17616. 'I'
  17617. An I-type 12-bit signed immediate.
  17618. 'J'
  17619. Integer zero.
  17620. 'K'
  17621. A 5-bit unsigned immediate for CSR access instructions.
  17622. 'A'
  17623. An address that is held in a general-purpose register.
  17624. _RX--'config/rx/constraints.md'_
  17625. 'Q'
  17626. An address which does not involve register indirect addressing
  17627. or pre/post increment/decrement addressing.
  17628. 'Symbol'
  17629. A symbol reference.
  17630. 'Int08'
  17631. A constant in the range -256 to 255, inclusive.
  17632. 'Sint08'
  17633. A constant in the range -128 to 127, inclusive.
  17634. 'Sint16'
  17635. A constant in the range -32768 to 32767, inclusive.
  17636. 'Sint24'
  17637. A constant in the range -8388608 to 8388607, inclusive.
  17638. 'Uint04'
  17639. A constant in the range 0 to 15, inclusive.
  17640. _S/390 and zSeries--'config/s390/s390.h'_
  17641. 'a'
  17642. Address register (general purpose register except r0)
  17643. 'c'
  17644. Condition code register
  17645. 'd'
  17646. Data register (arbitrary general purpose register)
  17647. 'f'
  17648. Floating-point register
  17649. 'I'
  17650. Unsigned 8-bit constant (0-255)
  17651. 'J'
  17652. Unsigned 12-bit constant (0-4095)
  17653. 'K'
  17654. Signed 16-bit constant (-32768-32767)
  17655. 'L'
  17656. Value appropriate as displacement.
  17657. '(0..4095)'
  17658. for short displacement
  17659. '(-524288..524287)'
  17660. for long displacement
  17661. 'M'
  17662. Constant integer with a value of 0x7fffffff.
  17663. 'N'
  17664. Multiple letter constraint followed by 4 parameter letters.
  17665. '0..9:'
  17666. number of the part counting from most to least
  17667. significant
  17668. 'H,Q:'
  17669. mode of the part
  17670. 'D,S,H:'
  17671. mode of the containing operand
  17672. '0,F:'
  17673. value of the other parts (F--all bits set)
  17674. The constraint matches if the specified part of a constant has
  17675. a value different from its other parts.
  17676. 'Q'
  17677. Memory reference without index register and with short
  17678. displacement.
  17679. 'R'
  17680. Memory reference with index register and short displacement.
  17681. 'S'
  17682. Memory reference without index register but with long
  17683. displacement.
  17684. 'T'
  17685. Memory reference with index register and long displacement.
  17686. 'U'
  17687. Pointer with short displacement.
  17688. 'W'
  17689. Pointer with long displacement.
  17690. 'Y'
  17691. Shift count operand.
  17692. _SPARC--'config/sparc/sparc.h'_
  17693. 'f'
  17694. Floating-point register on the SPARC-V8 architecture and lower
  17695. floating-point register on the SPARC-V9 architecture.
  17696. 'e'
  17697. Floating-point register. It is equivalent to 'f' on the
  17698. SPARC-V8 architecture and contains both lower and upper
  17699. floating-point registers on the SPARC-V9 architecture.
  17700. 'c'
  17701. Floating-point condition code register.
  17702. 'd'
  17703. Lower floating-point register. It is only valid on the
  17704. SPARC-V9 architecture when the Visual Instruction Set is
  17705. available.
  17706. 'b'
  17707. Floating-point register. It is only valid on the SPARC-V9
  17708. architecture when the Visual Instruction Set is available.
  17709. 'h'
  17710. 64-bit global or out register for the SPARC-V8+ architecture.
  17711. 'C'
  17712. The constant all-ones, for floating-point.
  17713. 'A'
  17714. Signed 5-bit constant
  17715. 'D'
  17716. A vector constant
  17717. 'I'
  17718. Signed 13-bit constant
  17719. 'J'
  17720. Zero
  17721. 'K'
  17722. 32-bit constant with the low 12 bits clear (a constant that
  17723. can be loaded with the 'sethi' instruction)
  17724. 'L'
  17725. A constant in the range supported by 'movcc' instructions
  17726. (11-bit signed immediate)
  17727. 'M'
  17728. A constant in the range supported by 'movrcc' instructions
  17729. (10-bit signed immediate)
  17730. 'N'
  17731. Same as 'K', except that it verifies that bits that are not in
  17732. the lower 32-bit range are all zero. Must be used instead of
  17733. 'K' for modes wider than 'SImode'
  17734. 'O'
  17735. The constant 4096
  17736. 'G'
  17737. Floating-point zero
  17738. 'H'
  17739. Signed 13-bit constant, sign-extended to 32 or 64 bits
  17740. 'P'
  17741. The constant -1
  17742. 'Q'
  17743. Floating-point constant whose integral representation can be
  17744. moved into an integer register using a single sethi
  17745. instruction
  17746. 'R'
  17747. Floating-point constant whose integral representation can be
  17748. moved into an integer register using a single mov instruction
  17749. 'S'
  17750. Floating-point constant whose integral representation can be
  17751. moved into an integer register using a high/lo_sum instruction
  17752. sequence
  17753. 'T'
  17754. Memory address aligned to an 8-byte boundary
  17755. 'U'
  17756. Even register
  17757. 'W'
  17758. Memory address for 'e' constraint registers
  17759. 'w'
  17760. Memory address with only a base register
  17761. 'Y'
  17762. Vector zero
  17763. _SPU--'config/spu/spu.h'_
  17764. 'a'
  17765. An immediate which can be loaded with the il/ila/ilh/ilhu
  17766. instructions. const_int is treated as a 64 bit value.
  17767. 'c'
  17768. An immediate for and/xor/or instructions. const_int is
  17769. treated as a 64 bit value.
  17770. 'd'
  17771. An immediate for the 'iohl' instruction. const_int is treated
  17772. as a 64 bit value.
  17773. 'f'
  17774. An immediate which can be loaded with 'fsmbi'.
  17775. 'A'
  17776. An immediate which can be loaded with the il/ila/ilh/ilhu
  17777. instructions. const_int is treated as a 32 bit value.
  17778. 'B'
  17779. An immediate for most arithmetic instructions. const_int is
  17780. treated as a 32 bit value.
  17781. 'C'
  17782. An immediate for and/xor/or instructions. const_int is
  17783. treated as a 32 bit value.
  17784. 'D'
  17785. An immediate for the 'iohl' instruction. const_int is treated
  17786. as a 32 bit value.
  17787. 'I'
  17788. A constant in the range [-64, 63] for shift/rotate
  17789. instructions.
  17790. 'J'
  17791. An unsigned 7-bit constant for conversion/nop/channel
  17792. instructions.
  17793. 'K'
  17794. A signed 10-bit constant for most arithmetic instructions.
  17795. 'M'
  17796. A signed 16 bit immediate for 'stop'.
  17797. 'N'
  17798. An unsigned 16-bit constant for 'iohl' and 'fsmbi'.
  17799. 'O'
  17800. An unsigned 7-bit constant whose 3 least significant bits are
  17801. 0.
  17802. 'P'
  17803. An unsigned 3-bit constant for 16-byte rotates and shifts
  17804. 'R'
  17805. Call operand, reg, for indirect calls
  17806. 'S'
  17807. Call operand, symbol, for relative calls.
  17808. 'T'
  17809. Call operand, const_int, for absolute calls.
  17810. 'U'
  17811. An immediate which can be loaded with the il/ila/ilh/ilhu
  17812. instructions. const_int is sign extended to 128 bit.
  17813. 'W'
  17814. An immediate for shift and rotate instructions. const_int is
  17815. treated as a 32 bit value.
  17816. 'Y'
  17817. An immediate for and/xor/or instructions. const_int is sign
  17818. extended as a 128 bit.
  17819. 'Z'
  17820. An immediate for the 'iohl' instruction. const_int is sign
  17821. extended to 128 bit.
  17822. _TI C6X family--'config/c6x/constraints.md'_
  17823. 'a'
  17824. Register file A (A0-A31).
  17825. 'b'
  17826. Register file B (B0-B31).
  17827. 'A'
  17828. Predicate registers in register file A (A0-A2 on C64X and
  17829. higher, A1 and A2 otherwise).
  17830. 'B'
  17831. Predicate registers in register file B (B0-B2).
  17832. 'C'
  17833. A call-used register in register file B (B0-B9, B16-B31).
  17834. 'Da'
  17835. Register file A, excluding predicate registers (A3-A31, plus
  17836. A0 if not C64X or higher).
  17837. 'Db'
  17838. Register file B, excluding predicate registers (B3-B31).
  17839. 'Iu4'
  17840. Integer constant in the range 0 ... 15.
  17841. 'Iu5'
  17842. Integer constant in the range 0 ... 31.
  17843. 'In5'
  17844. Integer constant in the range -31 ... 0.
  17845. 'Is5'
  17846. Integer constant in the range -16 ... 15.
  17847. 'I5x'
  17848. Integer constant that can be the operand of an ADDA or a SUBA
  17849. insn.
  17850. 'IuB'
  17851. Integer constant in the range 0 ... 65535.
  17852. 'IsB'
  17853. Integer constant in the range -32768 ... 32767.
  17854. 'IsC'
  17855. Integer constant in the range -2^{20} ... 2^{20} - 1.
  17856. 'Jc'
  17857. Integer constant that is a valid mask for the clr instruction.
  17858. 'Js'
  17859. Integer constant that is a valid mask for the set instruction.
  17860. 'Q'
  17861. Memory location with A base register.
  17862. 'R'
  17863. Memory location with B base register.
  17864. 'S0'
  17865. On C64x+ targets, a GP-relative small data reference.
  17866. 'S1'
  17867. Any kind of 'SYMBOL_REF', for use in a call address.
  17868. 'Si'
  17869. Any kind of immediate operand, unless it matches the S0
  17870. constraint.
  17871. 'T'
  17872. Memory location with B base register, but not using a long
  17873. offset.
  17874. 'W'
  17875. A memory operand with an address that cannot be used in an
  17876. unaligned access.
  17877. 'Z'
  17878. Register B14 (aka DP).
  17879. _TILE-Gx--'config/tilegx/constraints.md'_
  17880. 'R00'
  17881. 'R01'
  17882. 'R02'
  17883. 'R03'
  17884. 'R04'
  17885. 'R05'
  17886. 'R06'
  17887. 'R07'
  17888. 'R08'
  17889. 'R09'
  17890. 'R10'
  17891. Each of these represents a register constraint for an
  17892. individual register, from r0 to r10.
  17893. 'I'
  17894. Signed 8-bit integer constant.
  17895. 'J'
  17896. Signed 16-bit integer constant.
  17897. 'K'
  17898. Unsigned 16-bit integer constant.
  17899. 'L'
  17900. Integer constant that fits in one signed byte when incremented
  17901. by one (-129 ... 126).
  17902. 'm'
  17903. Memory operand. If used together with '<' or '>', the operand
  17904. can have postincrement which requires printing with '%In' and
  17905. '%in' on TILE-Gx. For example:
  17906. asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));
  17907. 'M'
  17908. A bit mask suitable for the BFINS instruction.
  17909. 'N'
  17910. Integer constant that is a byte tiled out eight times.
  17911. 'O'
  17912. The integer zero constant.
  17913. 'P'
  17914. Integer constant that is a sign-extended byte tiled out as
  17915. four shorts.
  17916. 'Q'
  17917. Integer constant that fits in one signed byte when incremented
  17918. (-129 ... 126), but excluding -1.
  17919. 'S'
  17920. Integer constant that has all 1 bits consecutive and starting
  17921. at bit 0.
  17922. 'T'
  17923. A 16-bit fragment of a got, tls, or pc-relative reference.
  17924. 'U'
  17925. Memory operand except postincrement. This is roughly the same
  17926. as 'm' when not used together with '<' or '>'.
  17927. 'W'
  17928. An 8-element vector constant with identical elements.
  17929. 'Y'
  17930. A 4-element vector constant with identical elements.
  17931. 'Z0'
  17932. The integer constant 0xffffffff.
  17933. 'Z1'
  17934. The integer constant 0xffffffff00000000.
  17935. _TILEPro--'config/tilepro/constraints.md'_
  17936. 'R00'
  17937. 'R01'
  17938. 'R02'
  17939. 'R03'
  17940. 'R04'
  17941. 'R05'
  17942. 'R06'
  17943. 'R07'
  17944. 'R08'
  17945. 'R09'
  17946. 'R10'
  17947. Each of these represents a register constraint for an
  17948. individual register, from r0 to r10.
  17949. 'I'
  17950. Signed 8-bit integer constant.
  17951. 'J'
  17952. Signed 16-bit integer constant.
  17953. 'K'
  17954. Nonzero integer constant with low 16 bits zero.
  17955. 'L'
  17956. Integer constant that fits in one signed byte when incremented
  17957. by one (-129 ... 126).
  17958. 'm'
  17959. Memory operand. If used together with '<' or '>', the operand
  17960. can have postincrement which requires printing with '%In' and
  17961. '%in' on TILEPro. For example:
  17962. asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));
  17963. 'M'
  17964. A bit mask suitable for the MM instruction.
  17965. 'N'
  17966. Integer constant that is a byte tiled out four times.
  17967. 'O'
  17968. The integer zero constant.
  17969. 'P'
  17970. Integer constant that is a sign-extended byte tiled out as two
  17971. shorts.
  17972. 'Q'
  17973. Integer constant that fits in one signed byte when incremented
  17974. (-129 ... 126), but excluding -1.
  17975. 'T'
  17976. A symbolic operand, or a 16-bit fragment of a got, tls, or
  17977. pc-relative reference.
  17978. 'U'
  17979. Memory operand except postincrement. This is roughly the same
  17980. as 'm' when not used together with '<' or '>'.
  17981. 'W'
  17982. A 4-element vector constant with identical elements.
  17983. 'Y'
  17984. A 2-element vector constant with identical elements.
  17985. _Visium--'config/visium/constraints.md'_
  17986. 'b'
  17987. EAM register 'mdb'
  17988. 'c'
  17989. EAM register 'mdc'
  17990. 'f'
  17991. Floating point register
  17992. 'k'
  17993. Register for sibcall optimization
  17994. 'l'
  17995. General register, but not 'r29', 'r30' and 'r31'
  17996. 't'
  17997. Register 'r1'
  17998. 'u'
  17999. Register 'r2'
  18000. 'v'
  18001. Register 'r3'
  18002. 'G'
  18003. Floating-point constant 0.0
  18004. 'J'
  18005. Integer constant in the range 0 .. 65535 (16-bit immediate)
  18006. 'K'
  18007. Integer constant in the range 1 .. 31 (5-bit immediate)
  18008. 'L'
  18009. Integer constant in the range -65535 .. -1 (16-bit negative
  18010. immediate)
  18011. 'M'
  18012. Integer constant -1
  18013. 'O'
  18014. Integer constant 0
  18015. 'P'
  18016. Integer constant 32
  18017. _x86 family--'config/i386/constraints.md'_
  18018. 'R'
  18019. Legacy register--the eight integer registers available on all
  18020. i386 processors ('a', 'b', 'c', 'd', 'si', 'di', 'bp', 'sp').
  18021. 'q'
  18022. Any register accessible as 'Rl'. In 32-bit mode, 'a', 'b',
  18023. 'c', and 'd'; in 64-bit mode, any integer register.
  18024. 'Q'
  18025. Any register accessible as 'Rh': 'a', 'b', 'c', and 'd'.
  18026. 'l'
  18027. Any register that can be used as the index in a base+index
  18028. memory access: that is, any general register except the stack
  18029. pointer.
  18030. 'a'
  18031. The 'a' register.
  18032. 'b'
  18033. The 'b' register.
  18034. 'c'
  18035. The 'c' register.
  18036. 'd'
  18037. The 'd' register.
  18038. 'S'
  18039. The 'si' register.
  18040. 'D'
  18041. The 'di' register.
  18042. 'A'
  18043. The 'a' and 'd' registers. This class is used for
  18044. instructions that return double word results in the 'ax:dx'
  18045. register pair. Single word values will be allocated either in
  18046. 'ax' or 'dx'. For example on i386 the following implements
  18047. 'rdtsc':
  18048. unsigned long long rdtsc (void)
  18049. {
  18050. unsigned long long tick;
  18051. __asm__ __volatile__("rdtsc":"=A"(tick));
  18052. return tick;
  18053. }
  18054. This is not correct on x86-64 as it would allocate tick in
  18055. either 'ax' or 'dx'. You have to use the following variant
  18056. instead:
  18057. unsigned long long rdtsc (void)
  18058. {
  18059. unsigned int tickl, tickh;
  18060. __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh));
  18061. return ((unsigned long long)tickh << 32)|tickl;
  18062. }
  18063. 'f'
  18064. Any 80387 floating-point (stack) register.
  18065. 't'
  18066. Top of 80387 floating-point stack ('%st(0)').
  18067. 'u'
  18068. Second from top of 80387 floating-point stack ('%st(1)').
  18069. 'y'
  18070. Any MMX register.
  18071. 'x'
  18072. Any SSE register.
  18073. 'Yz'
  18074. First SSE register ('%xmm0').
  18075. 'Y2'
  18076. Any SSE register, when SSE2 is enabled.
  18077. 'Yi'
  18078. Any SSE register, when SSE2 and inter-unit moves are enabled.
  18079. 'Ym'
  18080. Any MMX register, when inter-unit moves are enabled.
  18081. 'I'
  18082. Integer constant in the range 0 ... 31, for 32-bit shifts.
  18083. 'J'
  18084. Integer constant in the range 0 ... 63, for 64-bit shifts.
  18085. 'K'
  18086. Signed 8-bit integer constant.
  18087. 'L'
  18088. '0xFF' or '0xFFFF', for andsi as a zero-extending move.
  18089. 'M'
  18090. 0, 1, 2, or 3 (shifts for the 'lea' instruction).
  18091. 'N'
  18092. Unsigned 8-bit integer constant (for 'in' and 'out'
  18093. instructions).
  18094. 'O'
  18095. Integer constant in the range 0 ... 127, for 128-bit shifts.
  18096. 'G'
  18097. Standard 80387 floating point constant.
  18098. 'C'
  18099. SSE constant zero operand.
  18100. 'e'
  18101. 32-bit signed integer constant, or a symbolic reference known
  18102. to fit that range (for immediate operands in sign-extending
  18103. x86-64 instructions).
  18104. 'Z'
  18105. 32-bit unsigned integer constant, or a symbolic reference
  18106. known to fit that range (for immediate operands in
  18107. zero-extending x86-64 instructions).
  18108. _Xstormy16--'config/stormy16/stormy16.h'_
  18109. 'a'
  18110. Register r0.
  18111. 'b'
  18112. Register r1.
  18113. 'c'
  18114. Register r2.
  18115. 'd'
  18116. Register r8.
  18117. 'e'
  18118. Registers r0 through r7.
  18119. 't'
  18120. Registers r0 and r1.
  18121. 'y'
  18122. The carry register.
  18123. 'z'
  18124. Registers r8 and r9.
  18125. 'I'
  18126. A constant between 0 and 3 inclusive.
  18127. 'J'
  18128. A constant that has exactly one bit set.
  18129. 'K'
  18130. A constant that has exactly one bit clear.
  18131. 'L'
  18132. A constant between 0 and 255 inclusive.
  18133. 'M'
  18134. A constant between -255 and 0 inclusive.
  18135. 'N'
  18136. A constant between -3 and 0 inclusive.
  18137. 'O'
  18138. A constant between 1 and 4 inclusive.
  18139. 'P'
  18140. A constant between -4 and -1 inclusive.
  18141. 'Q'
  18142. A memory reference that is a stack push.
  18143. 'R'
  18144. A memory reference that is a stack pop.
  18145. 'S'
  18146. A memory reference that refers to a constant address of known
  18147. value.
  18148. 'T'
  18149. The register indicated by Rx (not implemented yet).
  18150. 'U'
  18151. A constant that is not between 2 and 15 inclusive.
  18152. 'Z'
  18153. The constant 0.
  18154. _Xtensa--'config/xtensa/constraints.md'_
  18155. 'a'
  18156. General-purpose 32-bit register
  18157. 'b'
  18158. One-bit boolean register
  18159. 'A'
  18160. MAC16 40-bit accumulator register
  18161. 'I'
  18162. Signed 12-bit integer constant, for use in MOVI instructions
  18163. 'J'
  18164. Signed 8-bit integer constant, for use in ADDI instructions
  18165. 'K'
  18166. Integer constant valid for BccI instructions
  18167. 'L'
  18168. Unsigned constant valid for BccUI instructions
  18169. 
  18170. File: gccint.info, Node: Disable Insn Alternatives, Next: Define Constraints, Prev: Machine Constraints, Up: Constraints
  18171. 16.8.6 Disable insn alternatives using the 'enabled' attribute
  18172. --------------------------------------------------------------
  18173. There are three insn attributes that may be used to selectively disable
  18174. instruction alternatives:
  18175. 'enabled'
  18176. Says whether an alternative is available on the current subtarget.
  18177. 'preferred_for_size'
  18178. Says whether an enabled alternative should be used in code that is
  18179. optimized for size.
  18180. 'preferred_for_speed'
  18181. Says whether an enabled alternative should be used in code that is
  18182. optimized for speed.
  18183. All these attributes should use '(const_int 1)' to allow an alternative
  18184. or '(const_int 0)' to disallow it. The attributes must be a static
  18185. property of the subtarget; they cannot for example depend on the current
  18186. operands, on the current optimization level, on the location of the insn
  18187. within the body of a loop, on whether register allocation has finished,
  18188. or on the current compiler pass.
  18189. The 'enabled' attribute is a correctness property. It tells GCC to act
  18190. as though the disabled alternatives were never defined in the first
  18191. place. This is useful when adding new instructions to an existing
  18192. pattern in cases where the new instructions are only available for
  18193. certain cpu architecture levels (typically mapped to the '-march='
  18194. command-line option).
  18195. In contrast, the 'preferred_for_size' and 'preferred_for_speed'
  18196. attributes are strong optimization hints rather than correctness
  18197. properties. 'preferred_for_size' tells GCC which alternatives to
  18198. consider when adding or modifying an instruction that GCC wants to
  18199. optimize for size. 'preferred_for_speed' does the same thing for speed.
  18200. Note that things like code motion can lead to cases where code optimized
  18201. for size uses alternatives that are not preferred for size, and
  18202. similarly for speed.
  18203. Although 'define_insn's can in principle specify the 'enabled'
  18204. attribute directly, it is often clearer to have subsiduary attributes
  18205. for each architectural feature of interest. The 'define_insn's can then
  18206. use these subsiduary attributes to say which alternatives require which
  18207. features. The example below does this for 'cpu_facility'.
  18208. E.g. the following two patterns could easily be merged using the
  18209. 'enabled' attribute:
  18210. (define_insn "*movdi_old"
  18211. [(set (match_operand:DI 0 "register_operand" "=d")
  18212. (match_operand:DI 1 "register_operand" " d"))]
  18213. "!TARGET_NEW"
  18214. "lgr %0,%1")
  18215. (define_insn "*movdi_new"
  18216. [(set (match_operand:DI 0 "register_operand" "=d,f,d")
  18217. (match_operand:DI 1 "register_operand" " d,d,f"))]
  18218. "TARGET_NEW"
  18219. "@
  18220. lgr %0,%1
  18221. ldgr %0,%1
  18222. lgdr %0,%1")
  18223. to:
  18224. (define_insn "*movdi_combined"
  18225. [(set (match_operand:DI 0 "register_operand" "=d,f,d")
  18226. (match_operand:DI 1 "register_operand" " d,d,f"))]
  18227. ""
  18228. "@
  18229. lgr %0,%1
  18230. ldgr %0,%1
  18231. lgdr %0,%1"
  18232. [(set_attr "cpu_facility" "*,new,new")])
  18233. with the 'enabled' attribute defined like this:
  18234. (define_attr "cpu_facility" "standard,new" (const_string "standard"))
  18235. (define_attr "enabled" ""
  18236. (cond [(eq_attr "cpu_facility" "standard") (const_int 1)
  18237. (and (eq_attr "cpu_facility" "new")
  18238. (ne (symbol_ref "TARGET_NEW") (const_int 0)))
  18239. (const_int 1)]
  18240. (const_int 0)))
  18241. 
  18242. File: gccint.info, Node: Define Constraints, Next: C Constraint Interface, Prev: Disable Insn Alternatives, Up: Constraints
  18243. 16.8.7 Defining Machine-Specific Constraints
  18244. --------------------------------------------
  18245. Machine-specific constraints fall into two categories: register and
  18246. non-register constraints. Within the latter category, constraints which
  18247. allow subsets of all possible memory or address operands should be
  18248. specially marked, to give 'reload' more information.
  18249. Machine-specific constraints can be given names of arbitrary length,
  18250. but they must be entirely composed of letters, digits, underscores
  18251. ('_'), and angle brackets ('< >'). Like C identifiers, they must begin
  18252. with a letter or underscore.
  18253. In order to avoid ambiguity in operand constraint strings, no
  18254. constraint can have a name that begins with any other constraint's name.
  18255. For example, if 'x' is defined as a constraint name, 'xy' may not be,
  18256. and vice versa. As a consequence of this rule, no constraint may begin
  18257. with one of the generic constraint letters: 'E F V X g i m n o p r s'.
  18258. Register constraints correspond directly to register classes. *Note
  18259. Register Classes::. There is thus not much flexibility in their
  18260. definitions.
  18261. -- MD Expression: define_register_constraint name regclass docstring
  18262. All three arguments are string constants. NAME is the name of the
  18263. constraint, as it will appear in 'match_operand' expressions. If
  18264. NAME is a multi-letter constraint its length shall be the same for
  18265. all constraints starting with the same letter. REGCLASS can be
  18266. either the name of the corresponding register class (*note Register
  18267. Classes::), or a C expression which evaluates to the appropriate
  18268. register class. If it is an expression, it must have no side
  18269. effects, and it cannot look at the operand. The usual use of
  18270. expressions is to map some register constraints to 'NO_REGS' when
  18271. the register class is not available on a given subarchitecture.
  18272. DOCSTRING is a sentence documenting the meaning of the constraint.
  18273. Docstrings are explained further below.
  18274. Non-register constraints are more like predicates: the constraint
  18275. definition gives a boolean expression which indicates whether the
  18276. constraint matches.
  18277. -- MD Expression: define_constraint name docstring exp
  18278. The NAME and DOCSTRING arguments are the same as for
  18279. 'define_register_constraint', but note that the docstring comes
  18280. immediately after the name for these expressions. EXP is an RTL
  18281. expression, obeying the same rules as the RTL expressions in
  18282. predicate definitions. *Note Defining Predicates::, for details.
  18283. If it evaluates true, the constraint matches; if it evaluates
  18284. false, it doesn't. Constraint expressions should indicate which
  18285. RTL codes they might match, just like predicate expressions.
  18286. 'match_test' C expressions have access to the following variables:
  18287. OP
  18288. The RTL object defining the operand.
  18289. MODE
  18290. The machine mode of OP.
  18291. IVAL
  18292. 'INTVAL (OP)', if OP is a 'const_int'.
  18293. HVAL
  18294. 'CONST_DOUBLE_HIGH (OP)', if OP is an integer 'const_double'.
  18295. LVAL
  18296. 'CONST_DOUBLE_LOW (OP)', if OP is an integer 'const_double'.
  18297. RVAL
  18298. 'CONST_DOUBLE_REAL_VALUE (OP)', if OP is a floating-point
  18299. 'const_double'.
  18300. The *VAL variables should only be used once another piece of the
  18301. expression has verified that OP is the appropriate kind of RTL
  18302. object.
  18303. Most non-register constraints should be defined with
  18304. 'define_constraint'. The remaining two definition expressions are only
  18305. appropriate for constraints that should be handled specially by 'reload'
  18306. if they fail to match.
  18307. -- MD Expression: define_memory_constraint name docstring exp
  18308. Use this expression for constraints that match a subset of all
  18309. memory operands: that is, 'reload' can make them match by
  18310. converting the operand to the form '(mem (reg X))', where X is a
  18311. base register (from the register class specified by
  18312. 'BASE_REG_CLASS', *note Register Classes::).
  18313. For example, on the S/390, some instructions do not accept
  18314. arbitrary memory references, but only those that do not make use of
  18315. an index register. The constraint letter 'Q' is defined to
  18316. represent a memory address of this type. If 'Q' is defined with
  18317. 'define_memory_constraint', a 'Q' constraint can handle any memory
  18318. operand, because 'reload' knows it can simply copy the memory
  18319. address into a base register if required. This is analogous to the
  18320. way an 'o' constraint can handle any memory operand.
  18321. The syntax and semantics are otherwise identical to
  18322. 'define_constraint'.
  18323. -- MD Expression: define_special_memory_constraint name docstring exp
  18324. Use this expression for constraints that match a subset of all
  18325. memory operands: that is, 'reload' can not make them match by
  18326. reloading the address as it is described for
  18327. 'define_memory_constraint' or such address reload is undesirable
  18328. with the performance point of view.
  18329. For example, 'define_special_memory_constraint' can be useful if
  18330. specifically aligned memory is necessary or desirable for some insn
  18331. operand.
  18332. The syntax and semantics are otherwise identical to
  18333. 'define_constraint'.
  18334. -- MD Expression: define_address_constraint name docstring exp
  18335. Use this expression for constraints that match a subset of all
  18336. address operands: that is, 'reload' can make the constraint match
  18337. by converting the operand to the form '(reg X)', again with X a
  18338. base register.
  18339. Constraints defined with 'define_address_constraint' can only be
  18340. used with the 'address_operand' predicate, or machine-specific
  18341. predicates that work the same way. They are treated analogously to
  18342. the generic 'p' constraint.
  18343. The syntax and semantics are otherwise identical to
  18344. 'define_constraint'.
  18345. For historical reasons, names beginning with the letters 'G H' are
  18346. reserved for constraints that match only 'const_double's, and names
  18347. beginning with the letters 'I J K L M N O P' are reserved for
  18348. constraints that match only 'const_int's. This may change in the
  18349. future. For the time being, constraints with these names must be
  18350. written in a stylized form, so that 'genpreds' can tell you did it
  18351. correctly:
  18352. (define_constraint "[GHIJKLMNOP]..."
  18353. "DOC..."
  18354. (and (match_code "const_int") ; 'const_double' for G/H
  18355. CONDITION...)) ; usually a 'match_test'
  18356. It is fine to use names beginning with other letters for constraints
  18357. that match 'const_double's or 'const_int's.
  18358. Each docstring in a constraint definition should be one or more
  18359. complete sentences, marked up in Texinfo format. _They are currently
  18360. unused._ In the future they will be copied into the GCC manual, in
  18361. *note Machine Constraints::, replacing the hand-maintained tables
  18362. currently found in that section. Also, in the future the compiler may
  18363. use this to give more helpful diagnostics when poor choice of 'asm'
  18364. constraints causes a reload failure.
  18365. If you put the pseudo-Texinfo directive '@internal' at the beginning of
  18366. a docstring, then (in the future) it will appear only in the internals
  18367. manual's version of the machine-specific constraint tables. Use this
  18368. for constraints that should not appear in 'asm' statements.
  18369. 
  18370. File: gccint.info, Node: C Constraint Interface, Prev: Define Constraints, Up: Constraints
  18371. 16.8.8 Testing constraints from C
  18372. ---------------------------------
  18373. It is occasionally useful to test a constraint from C code rather than
  18374. implicitly via the constraint string in a 'match_operand'. The
  18375. generated file 'tm_p.h' declares a few interfaces for working with
  18376. constraints. At present these are defined for all constraints except
  18377. 'g' (which is equivalent to 'general_operand').
  18378. Some valid constraint names are not valid C identifiers, so there is a
  18379. mangling scheme for referring to them from C. Constraint names that do
  18380. not contain angle brackets or underscores are left unchanged.
  18381. Underscores are doubled, each '<' is replaced with '_l', and each '>'
  18382. with '_g'. Here are some examples:
  18383. *Original* *Mangled*
  18384. x x
  18385. P42x P42x
  18386. P4_x P4__x
  18387. P4>x P4_gx
  18388. P4>> P4_g_g
  18389. P4_g> P4__g_g
  18390. Throughout this section, the variable C is either a constraint in the
  18391. abstract sense, or a constant from 'enum constraint_num'; the variable M
  18392. is a mangled constraint name (usually as part of a larger identifier).
  18393. -- Enum: constraint_num
  18394. For each constraint except 'g', there is a corresponding
  18395. enumeration constant: 'CONSTRAINT_' plus the mangled name of the
  18396. constraint. Functions that take an 'enum constraint_num' as an
  18397. argument expect one of these constants.
  18398. -- Function: inline bool satisfies_constraint_ M (rtx EXP)
  18399. For each non-register constraint M except 'g', there is one of
  18400. these functions; it returns 'true' if EXP satisfies the constraint.
  18401. These functions are only visible if 'rtl.h' was included before
  18402. 'tm_p.h'.
  18403. -- Function: bool constraint_satisfied_p (rtx EXP, enum constraint_num
  18404. C)
  18405. Like the 'satisfies_constraint_M' functions, but the constraint to
  18406. test is given as an argument, C. If C specifies a register
  18407. constraint, this function will always return 'false'.
  18408. -- Function: enum reg_class reg_class_for_constraint (enum
  18409. constraint_num C)
  18410. Returns the register class associated with C. If C is not a
  18411. register constraint, or those registers are not available for the
  18412. currently selected subtarget, returns 'NO_REGS'.
  18413. Here is an example use of 'satisfies_constraint_M'. In peephole
  18414. optimizations (*note Peephole Definitions::), operand constraint strings
  18415. are ignored, so if there are relevant constraints, they must be tested
  18416. in the C condition. In the example, the optimization is applied if
  18417. operand 2 does _not_ satisfy the 'K' constraint. (This is a simplified
  18418. version of a peephole definition from the i386 machine description.)
  18419. (define_peephole2
  18420. [(match_scratch:SI 3 "r")
  18421. (set (match_operand:SI 0 "register_operand" "")
  18422. (mult:SI (match_operand:SI 1 "memory_operand" "")
  18423. (match_operand:SI 2 "immediate_operand" "")))]
  18424. "!satisfies_constraint_K (operands[2])"
  18425. [(set (match_dup 3) (match_dup 1))
  18426. (set (match_dup 0) (mult:SI (match_dup 3) (match_dup 2)))]
  18427. "")
  18428. 
  18429. File: gccint.info, Node: Standard Names, Next: Pattern Ordering, Prev: Constraints, Up: Machine Desc
  18430. 16.9 Standard Pattern Names For Generation
  18431. ==========================================
  18432. Here is a table of the instruction names that are meaningful in the RTL
  18433. generation pass of the compiler. Giving one of these names to an
  18434. instruction pattern tells the RTL generation pass that it can use the
  18435. pattern to accomplish a certain task.
  18436. 'movM'
  18437. Here M stands for a two-letter machine mode name, in lowercase.
  18438. This instruction pattern moves data with that machine mode from
  18439. operand 1 to operand 0. For example, 'movsi' moves full-word data.
  18440. If operand 0 is a 'subreg' with mode M of a register whose own mode
  18441. is wider than M, the effect of this instruction is to store the
  18442. specified value in the part of the register that corresponds to
  18443. mode M. Bits outside of M, but which are within the same target
  18444. word as the 'subreg' are undefined. Bits which are outside the
  18445. target word are left unchanged.
  18446. This class of patterns is special in several ways. First of all,
  18447. each of these names up to and including full word size _must_ be
  18448. defined, because there is no other way to copy a datum from one
  18449. place to another. If there are patterns accepting operands in
  18450. larger modes, 'movM' must be defined for integer modes of those
  18451. sizes.
  18452. Second, these patterns are not used solely in the RTL generation
  18453. pass. Even the reload pass can generate move insns to copy values
  18454. from stack slots into temporary registers. When it does so, one of
  18455. the operands is a hard register and the other is an operand that
  18456. can need to be reloaded into a register.
  18457. Therefore, when given such a pair of operands, the pattern must
  18458. generate RTL which needs no reloading and needs no temporary
  18459. registers--no registers other than the operands. For example, if
  18460. you support the pattern with a 'define_expand', then in such a case
  18461. the 'define_expand' mustn't call 'force_reg' or any other such
  18462. function which might generate new pseudo registers.
  18463. This requirement exists even for subword modes on a RISC machine
  18464. where fetching those modes from memory normally requires several
  18465. insns and some temporary registers.
  18466. During reload a memory reference with an invalid address may be
  18467. passed as an operand. Such an address will be replaced with a
  18468. valid address later in the reload pass. In this case, nothing may
  18469. be done with the address except to use it as it stands. If it is
  18470. copied, it will not be replaced with a valid address. No attempt
  18471. should be made to make such an address into a valid address and no
  18472. routine (such as 'change_address') that will do so may be called.
  18473. Note that 'general_operand' will fail when applied to such an
  18474. address.
  18475. The global variable 'reload_in_progress' (which must be explicitly
  18476. declared if required) can be used to determine whether such special
  18477. handling is required.
  18478. The variety of operands that have reloads depends on the rest of
  18479. the machine description, but typically on a RISC machine these can
  18480. only be pseudo registers that did not get hard registers, while on
  18481. other machines explicit memory references will get optional
  18482. reloads.
  18483. If a scratch register is required to move an object to or from
  18484. memory, it can be allocated using 'gen_reg_rtx' prior to life
  18485. analysis.
  18486. If there are cases which need scratch registers during or after
  18487. reload, you must provide an appropriate secondary_reload target
  18488. hook.
  18489. The macro 'can_create_pseudo_p' can be used to determine if it is
  18490. unsafe to create new pseudo registers. If this variable is
  18491. nonzero, then it is unsafe to call 'gen_reg_rtx' to allocate a new
  18492. pseudo.
  18493. The constraints on a 'movM' must permit moving any hard register to
  18494. any other hard register provided that 'HARD_REGNO_MODE_OK' permits
  18495. mode M in both registers and 'TARGET_REGISTER_MOVE_COST' applied to
  18496. their classes returns a value of 2.
  18497. It is obligatory to support floating point 'movM' instructions into
  18498. and out of any registers that can hold fixed point values, because
  18499. unions and structures (which have modes 'SImode' or 'DImode') can
  18500. be in those registers and they may have floating point members.
  18501. There may also be a need to support fixed point 'movM' instructions
  18502. in and out of floating point registers. Unfortunately, I have
  18503. forgotten why this was so, and I don't know whether it is still
  18504. true. If 'HARD_REGNO_MODE_OK' rejects fixed point values in
  18505. floating point registers, then the constraints of the fixed point
  18506. 'movM' instructions must be designed to avoid ever trying to reload
  18507. into a floating point register.
  18508. 'reload_inM'
  18509. 'reload_outM'
  18510. These named patterns have been obsoleted by the target hook
  18511. 'secondary_reload'.
  18512. Like 'movM', but used when a scratch register is required to move
  18513. between operand 0 and operand 1. Operand 2 describes the scratch
  18514. register. See the discussion of the 'SECONDARY_RELOAD_CLASS' macro
  18515. in *note Register Classes::.
  18516. There are special restrictions on the form of the 'match_operand's
  18517. used in these patterns. First, only the predicate for the reload
  18518. operand is examined, i.e., 'reload_in' examines operand 1, but not
  18519. the predicates for operand 0 or 2. Second, there may be only one
  18520. alternative in the constraints. Third, only a single register
  18521. class letter may be used for the constraint; subsequent constraint
  18522. letters are ignored. As a special exception, an empty constraint
  18523. string matches the 'ALL_REGS' register class. This may relieve
  18524. ports of the burden of defining an 'ALL_REGS' constraint letter
  18525. just for these patterns.
  18526. 'movstrictM'
  18527. Like 'movM' except that if operand 0 is a 'subreg' with mode M of a
  18528. register whose natural mode is wider, the 'movstrictM' instruction
  18529. is guaranteed not to alter any of the register except the part
  18530. which belongs to mode M.
  18531. 'movmisalignM'
  18532. This variant of a move pattern is designed to load or store a value
  18533. from a memory address that is not naturally aligned for its mode.
  18534. For a store, the memory will be in operand 0; for a load, the
  18535. memory will be in operand 1. The other operand is guaranteed not
  18536. to be a memory, so that it's easy to tell whether this is a load or
  18537. store.
  18538. This pattern is used by the autovectorizer, and when expanding a
  18539. 'MISALIGNED_INDIRECT_REF' expression.
  18540. 'load_multiple'
  18541. Load several consecutive memory locations into consecutive
  18542. registers. Operand 0 is the first of the consecutive registers,
  18543. operand 1 is the first memory location, and operand 2 is a
  18544. constant: the number of consecutive registers.
  18545. Define this only if the target machine really has such an
  18546. instruction; do not define this if the most efficient way of
  18547. loading consecutive registers from memory is to do them one at a
  18548. time.
  18549. On some machines, there are restrictions as to which consecutive
  18550. registers can be stored into memory, such as particular starting or
  18551. ending register numbers or only a range of valid counts. For those
  18552. machines, use a 'define_expand' (*note Expander Definitions::) and
  18553. make the pattern fail if the restrictions are not met.
  18554. Write the generated insn as a 'parallel' with elements being a
  18555. 'set' of one register from the appropriate memory location (you may
  18556. also need 'use' or 'clobber' elements). Use a 'match_parallel'
  18557. (*note RTL Template::) to recognize the insn. See 'rs6000.md' for
  18558. examples of the use of this insn pattern.
  18559. 'store_multiple'
  18560. Similar to 'load_multiple', but store several consecutive registers
  18561. into consecutive memory locations. Operand 0 is the first of the
  18562. consecutive memory locations, operand 1 is the first register, and
  18563. operand 2 is a constant: the number of consecutive registers.
  18564. 'vec_load_lanesMN'
  18565. Perform an interleaved load of several vectors from memory operand
  18566. 1 into register operand 0. Both operands have mode M. The
  18567. register operand is viewed as holding consecutive vectors of mode
  18568. N, while the memory operand is a flat array that contains the same
  18569. number of elements. The operation is equivalent to:
  18570. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  18571. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  18572. for (i = 0; i < c; i++)
  18573. operand0[i][j] = operand1[j * c + i];
  18574. For example, 'vec_load_lanestiv4hi' loads 8 16-bit values from
  18575. memory into a register of mode 'TI'. The register contains two
  18576. consecutive vectors of mode 'V4HI'.
  18577. This pattern can only be used if:
  18578. TARGET_ARRAY_MODE_SUPPORTED_P (N, C)
  18579. is true. GCC assumes that, if a target supports this kind of
  18580. instruction for some mode N, it also supports unaligned loads for
  18581. vectors of mode N.
  18582. This pattern is not allowed to 'FAIL'.
  18583. 'vec_store_lanesMN'
  18584. Equivalent to 'vec_load_lanesMN', with the memory and register
  18585. operands reversed. That is, the instruction is equivalent to:
  18586. int c = GET_MODE_SIZE (M) / GET_MODE_SIZE (N);
  18587. for (j = 0; j < GET_MODE_NUNITS (N); j++)
  18588. for (i = 0; i < c; i++)
  18589. operand0[j * c + i] = operand1[i][j];
  18590. for a memory operand 0 and register operand 1.
  18591. This pattern is not allowed to 'FAIL'.
  18592. 'vec_setM'
  18593. Set given field in the vector value. Operand 0 is the vector to
  18594. modify, operand 1 is new value of field and operand 2 specify the
  18595. field index.
  18596. 'vec_extractM'
  18597. Extract given field from the vector value. Operand 1 is the
  18598. vector, operand 2 specify field index and operand 0 place to store
  18599. value into.
  18600. 'vec_initM'
  18601. Initialize the vector to given values. Operand 0 is the vector to
  18602. initialize and operand 1 is parallel containing values for
  18603. individual fields.
  18604. 'vec_cmpMN'
  18605. Output a vector comparison. Operand 0 of mode N is the destination
  18606. for predicate in operand 1 which is a signed vector comparison with
  18607. operands of mode M in operands 2 and 3. Predicate is computed by
  18608. element-wise evaluation of the vector comparison with a truth value
  18609. of all-ones and a false value of all-zeros.
  18610. 'vec_cmpuMN'
  18611. Similar to 'vec_cmpMN' but perform unsigned vector comparison.
  18612. 'vec_cmpeqMN'
  18613. Similar to 'vec_cmpMN' but perform equality or non-equality vector
  18614. comparison only. If 'vec_cmpMN' or 'vec_cmpuMN' instruction
  18615. pattern is supported, it will be preferred over 'vec_cmpeqMN', so
  18616. there is no need to define this instruction pattern if the others
  18617. are supported.
  18618. 'vcondMN'
  18619. Output a conditional vector move. Operand 0 is the destination to
  18620. receive a combination of operand 1 and operand 2, which are of mode
  18621. M, dependent on the outcome of the predicate in operand 3 which is
  18622. a signed vector comparison with operands of mode N in operands 4
  18623. and 5. The modes M and N should have the same size. Operand 0
  18624. will be set to the value OP1 & MSK | OP2 & ~MSK where MSK is
  18625. computed by element-wise evaluation of the vector comparison with a
  18626. truth value of all-ones and a false value of all-zeros.
  18627. 'vconduMN'
  18628. Similar to 'vcondMN' but performs unsigned vector comparison.
  18629. 'vcondeqMN'
  18630. Similar to 'vcondMN' but performs equality or non-equality vector
  18631. comparison only. If 'vcondMN' or 'vconduMN' instruction pattern is
  18632. supported, it will be preferred over 'vcondeqMN', so there is no
  18633. need to define this instruction pattern if the others are
  18634. supported.
  18635. 'vcond_mask_MN'
  18636. Similar to 'vcondMN' but operand 3 holds a pre-computed result of
  18637. vector comparison.
  18638. 'maskloadMN'
  18639. Perform a masked load of vector from memory operand 1 of mode M
  18640. into register operand 0. Mask is provided in register operand 2 of
  18641. mode N.
  18642. This pattern is not allowed to 'FAIL'.
  18643. 'maskstoreMN'
  18644. Perform a masked store of vector from register operand 1 of mode M
  18645. into memory operand 0. Mask is provided in register operand 2 of
  18646. mode N.
  18647. This pattern is not allowed to 'FAIL'.
  18648. 'vec_permM'
  18649. Output a (variable) vector permutation. Operand 0 is the
  18650. destination to receive elements from operand 1 and operand 2, which
  18651. are of mode M. Operand 3 is the "selector". It is an integral
  18652. mode vector of the same width and number of elements as mode M.
  18653. The input elements are numbered from 0 in operand 1 through 2*N-1
  18654. in operand 2. The elements of the selector must be computed modulo
  18655. 2*N. Note that if 'rtx_equal_p(operand1, operand2)', this can be
  18656. implemented with just operand 1 and selector elements modulo N.
  18657. In order to make things easy for a number of targets, if there is
  18658. no 'vec_perm' pattern for mode M, but there is for mode Q where Q
  18659. is a vector of 'QImode' of the same width as M, the middle-end will
  18660. lower the mode M 'VEC_PERM_EXPR' to mode Q.
  18661. 'vec_perm_constM'
  18662. Like 'vec_perm' except that the permutation is a compile-time
  18663. constant. That is, operand 3, the "selector", is a 'CONST_VECTOR'.
  18664. Some targets cannot perform a permutation with a variable selector,
  18665. but can efficiently perform a constant permutation. Further, the
  18666. target hook 'vec_perm_ok' is queried to determine if the specific
  18667. constant permutation is available efficiently; the named pattern is
  18668. never expanded without 'vec_perm_ok' returning true.
  18669. There is no need for a target to supply both 'vec_permM' and
  18670. 'vec_perm_constM' if the former can trivially implement the
  18671. operation with, say, the vector constant loaded into a register.
  18672. 'pushM1'
  18673. Output a push instruction. Operand 0 is value to push. Used only
  18674. when 'PUSH_ROUNDING' is defined. For historical reason, this
  18675. pattern may be missing and in such case an 'mov' expander is used
  18676. instead, with a 'MEM' expression forming the push operation. The
  18677. 'mov' expander method is deprecated.
  18678. 'addM3'
  18679. Add operand 2 and operand 1, storing the result in operand 0. All
  18680. operands must have mode M. This can be used even on two-address
  18681. machines, by means of constraints requiring operands 1 and 0 to be
  18682. the same location.
  18683. 'ssaddM3', 'usaddM3'
  18684. 'subM3', 'sssubM3', 'ussubM3'
  18685. 'mulM3', 'ssmulM3', 'usmulM3'
  18686. 'divM3', 'ssdivM3'
  18687. 'udivM3', 'usdivM3'
  18688. 'modM3', 'umodM3'
  18689. 'uminM3', 'umaxM3'
  18690. 'andM3', 'iorM3', 'xorM3'
  18691. Similar, for other arithmetic operations.
  18692. 'addvM4'
  18693. Like 'addM3' but takes a 'code_label' as operand 3 and emits code
  18694. to jump to it if signed overflow occurs during the addition. This
  18695. pattern is used to implement the built-in functions performing
  18696. signed integer addition with overflow checking.
  18697. 'subvM4', 'mulvM4'
  18698. Similar, for other signed arithmetic operations.
  18699. 'uaddvM4'
  18700. Like 'addvM4' but for unsigned addition. That is to say, the
  18701. operation is the same as signed addition but the jump is taken only
  18702. on unsigned overflow.
  18703. 'usubvM4', 'umulvM4'
  18704. Similar, for other unsigned arithmetic operations.
  18705. 'addptrM3'
  18706. Like 'addM3' but is guaranteed to only be used for address
  18707. calculations. The expanded code is not allowed to clobber the
  18708. condition code. It only needs to be defined if 'addM3' sets the
  18709. condition code. If adds used for address calculations and normal
  18710. adds are not compatible it is required to expand a distinct pattern
  18711. (e.g. using an unspec). The pattern is used by LRA to emit
  18712. address calculations. 'addM3' is used if 'addptrM3' is not
  18713. defined.
  18714. 'fmaM4'
  18715. Multiply operand 2 and operand 1, then add operand 3, storing the
  18716. result in operand 0 without doing an intermediate rounding step.
  18717. All operands must have mode M. This pattern is used to implement
  18718. the 'fma', 'fmaf', and 'fmal' builtin functions from the ISO C99
  18719. standard.
  18720. 'fmsM4'
  18721. Like 'fmaM4', except operand 3 subtracted from the product instead
  18722. of added to the product. This is represented in the rtl as
  18723. (fma:M OP1 OP2 (neg:M OP3))
  18724. 'fnmaM4'
  18725. Like 'fmaM4' except that the intermediate product is negated before
  18726. being added to operand 3. This is represented in the rtl as
  18727. (fma:M (neg:M OP1) OP2 OP3)
  18728. 'fnmsM4'
  18729. Like 'fmsM4' except that the intermediate product is negated before
  18730. subtracting operand 3. This is represented in the rtl as
  18731. (fma:M (neg:M OP1) OP2 (neg:M OP3))
  18732. 'sminM3', 'smaxM3'
  18733. Signed minimum and maximum operations. When used with floating
  18734. point, if both operands are zeros, or if either operand is 'NaN',
  18735. then it is unspecified which of the two operands is returned as the
  18736. result.
  18737. 'fminM3', 'fmaxM3'
  18738. IEEE-conformant minimum and maximum operations. If one operand is
  18739. a quiet 'NaN', then the other operand is returned. If both
  18740. operands are quiet 'NaN', then a quiet 'NaN' is returned. In the
  18741. case when gcc supports signaling 'NaN' (-fsignaling-nans) an
  18742. invalid floating point exception is raised and a quiet 'NaN' is
  18743. returned.
  18744. All operands have mode M, which is a scalar or vector
  18745. floating-point mode. These patterns are not allowed to 'FAIL'.
  18746. 'reduc_smin_scal_M', 'reduc_smax_scal_M'
  18747. Find the signed minimum/maximum of the elements of a vector. The
  18748. vector is operand 1, and operand 0 is the scalar result, with mode
  18749. equal to the mode of the elements of the input vector.
  18750. 'reduc_umin_scal_M', 'reduc_umax_scal_M'
  18751. Find the unsigned minimum/maximum of the elements of a vector. The
  18752. vector is operand 1, and operand 0 is the scalar result, with mode
  18753. equal to the mode of the elements of the input vector.
  18754. 'reduc_plus_scal_M'
  18755. Compute the sum of the elements of a vector. The vector is operand
  18756. 1, and operand 0 is the scalar result, with mode equal to the mode
  18757. of the elements of the input vector.
  18758. 'sdot_prodM'
  18759. 'udot_prodM'
  18760. Compute the sum of the products of two signed/unsigned elements.
  18761. Operand 1 and operand 2 are of the same mode. Their product, which
  18762. is of a wider mode, is computed and added to operand 3. Operand 3
  18763. is of a mode equal or wider than the mode of the product. The
  18764. result is placed in operand 0, which is of the same mode as operand
  18765. 3.
  18766. 'ssadM'
  18767. 'usadM'
  18768. Compute the sum of absolute differences of two signed/unsigned
  18769. elements. Operand 1 and operand 2 are of the same mode. Their
  18770. absolute difference, which is of a wider mode, is computed and
  18771. added to operand 3. Operand 3 is of a mode equal or wider than the
  18772. mode of the absolute difference. The result is placed in operand
  18773. 0, which is of the same mode as operand 3.
  18774. 'widen_ssumM3'
  18775. 'widen_usumM3'
  18776. Operands 0 and 2 are of the same mode, which is wider than the mode
  18777. of operand 1. Add operand 1 to operand 2 and place the widened
  18778. result in operand 0. (This is used express accumulation of
  18779. elements into an accumulator of a wider mode.)
  18780. 'vec_shr_M'
  18781. Whole vector right shift in bits, i.e. towards element 0. Operand
  18782. 1 is a vector to be shifted. Operand 2 is an integer shift amount
  18783. in bits. Operand 0 is where the resulting shifted vector is
  18784. stored. The output and input vectors should have the same modes.
  18785. 'vec_pack_trunc_M'
  18786. Narrow (demote) and merge the elements of two vectors. Operands 1
  18787. and 2 are vectors of the same mode having N integral or floating
  18788. point elements of size S. Operand 0 is the resulting vector in
  18789. which 2*N elements of size N/2 are concatenated after narrowing
  18790. them down using truncation.
  18791. 'vec_pack_ssat_M', 'vec_pack_usat_M'
  18792. Narrow (demote) and merge the elements of two vectors. Operands 1
  18793. and 2 are vectors of the same mode having N integral elements of
  18794. size S. Operand 0 is the resulting vector in which the elements of
  18795. the two input vectors are concatenated after narrowing them down
  18796. using signed/unsigned saturating arithmetic.
  18797. 'vec_pack_sfix_trunc_M', 'vec_pack_ufix_trunc_M'
  18798. Narrow, convert to signed/unsigned integral type and merge the
  18799. elements of two vectors. Operands 1 and 2 are vectors of the same
  18800. mode having N floating point elements of size S. Operand 0 is the
  18801. resulting vector in which 2*N elements of size N/2 are
  18802. concatenated.
  18803. 'vec_unpacks_hi_M', 'vec_unpacks_lo_M'
  18804. Extract and widen (promote) the high/low part of a vector of signed
  18805. integral or floating point elements. The input vector (operand 1)
  18806. has N elements of size S. Widen (promote) the high/low elements of
  18807. the vector using signed or floating point extension and place the
  18808. resulting N/2 values of size 2*S in the output vector (operand 0).
  18809. 'vec_unpacku_hi_M', 'vec_unpacku_lo_M'
  18810. Extract and widen (promote) the high/low part of a vector of
  18811. unsigned integral elements. The input vector (operand 1) has N
  18812. elements of size S. Widen (promote) the high/low elements of the
  18813. vector using zero extension and place the resulting N/2 values of
  18814. size 2*S in the output vector (operand 0).
  18815. 'vec_unpacks_float_hi_M', 'vec_unpacks_float_lo_M'
  18816. 'vec_unpacku_float_hi_M', 'vec_unpacku_float_lo_M'
  18817. Extract, convert to floating point type and widen the high/low part
  18818. of a vector of signed/unsigned integral elements. The input vector
  18819. (operand 1) has N elements of size S. Convert the high/low
  18820. elements of the vector using floating point conversion and place
  18821. the resulting N/2 values of size 2*S in the output vector (operand
  18822. 0).
  18823. 'vec_widen_umult_hi_M', 'vec_widen_umult_lo_M'
  18824. 'vec_widen_smult_hi_M', 'vec_widen_smult_lo_M'
  18825. 'vec_widen_umult_even_M', 'vec_widen_umult_odd_M'
  18826. 'vec_widen_smult_even_M', 'vec_widen_smult_odd_M'
  18827. Signed/Unsigned widening multiplication. The two inputs (operands
  18828. 1 and 2) are vectors with N signed/unsigned elements of size S.
  18829. Multiply the high/low or even/odd elements of the two vectors, and
  18830. put the N/2 products of size 2*S in the output vector (operand 0).
  18831. A target shouldn't implement even/odd pattern pair if it is less
  18832. efficient than lo/hi one.
  18833. 'vec_widen_ushiftl_hi_M', 'vec_widen_ushiftl_lo_M'
  18834. 'vec_widen_sshiftl_hi_M', 'vec_widen_sshiftl_lo_M'
  18835. Signed/Unsigned widening shift left. The first input (operand 1)
  18836. is a vector with N signed/unsigned elements of size S. Operand 2
  18837. is a constant. Shift the high/low elements of operand 1, and put
  18838. the N/2 results of size 2*S in the output vector (operand 0).
  18839. 'mulhisi3'
  18840. Multiply operands 1 and 2, which have mode 'HImode', and store a
  18841. 'SImode' product in operand 0.
  18842. 'mulqihi3', 'mulsidi3'
  18843. Similar widening-multiplication instructions of other widths.
  18844. 'umulqihi3', 'umulhisi3', 'umulsidi3'
  18845. Similar widening-multiplication instructions that do unsigned
  18846. multiplication.
  18847. 'usmulqihi3', 'usmulhisi3', 'usmulsidi3'
  18848. Similar widening-multiplication instructions that interpret the
  18849. first operand as unsigned and the second operand as signed, then do
  18850. a signed multiplication.
  18851. 'smulM3_highpart'
  18852. Perform a signed multiplication of operands 1 and 2, which have
  18853. mode M, and store the most significant half of the product in
  18854. operand 0. The least significant half of the product is discarded.
  18855. 'umulM3_highpart'
  18856. Similar, but the multiplication is unsigned.
  18857. 'maddMN4'
  18858. Multiply operands 1 and 2, sign-extend them to mode N, add operand
  18859. 3, and store the result in operand 0. Operands 1 and 2 have mode M
  18860. and operands 0 and 3 have mode N. Both modes must be integer or
  18861. fixed-point modes and N must be twice the size of M.
  18862. In other words, 'maddMN4' is like 'mulMN3' except that it also adds
  18863. operand 3.
  18864. These instructions are not allowed to 'FAIL'.
  18865. 'umaddMN4'
  18866. Like 'maddMN4', but zero-extend the multiplication operands instead
  18867. of sign-extending them.
  18868. 'ssmaddMN4'
  18869. Like 'maddMN4', but all involved operations must be
  18870. signed-saturating.
  18871. 'usmaddMN4'
  18872. Like 'umaddMN4', but all involved operations must be
  18873. unsigned-saturating.
  18874. 'msubMN4'
  18875. Multiply operands 1 and 2, sign-extend them to mode N, subtract the
  18876. result from operand 3, and store the result in operand 0. Operands
  18877. 1 and 2 have mode M and operands 0 and 3 have mode N. Both modes
  18878. must be integer or fixed-point modes and N must be twice the size
  18879. of M.
  18880. In other words, 'msubMN4' is like 'mulMN3' except that it also
  18881. subtracts the result from operand 3.
  18882. These instructions are not allowed to 'FAIL'.
  18883. 'umsubMN4'
  18884. Like 'msubMN4', but zero-extend the multiplication operands instead
  18885. of sign-extending them.
  18886. 'ssmsubMN4'
  18887. Like 'msubMN4', but all involved operations must be
  18888. signed-saturating.
  18889. 'usmsubMN4'
  18890. Like 'umsubMN4', but all involved operations must be
  18891. unsigned-saturating.
  18892. 'divmodM4'
  18893. Signed division that produces both a quotient and a remainder.
  18894. Operand 1 is divided by operand 2 to produce a quotient stored in
  18895. operand 0 and a remainder stored in operand 3.
  18896. For machines with an instruction that produces both a quotient and
  18897. a remainder, provide a pattern for 'divmodM4' but do not provide
  18898. patterns for 'divM3' and 'modM3'. This allows optimization in the
  18899. relatively common case when both the quotient and remainder are
  18900. computed.
  18901. If an instruction that just produces a quotient or just a remainder
  18902. exists and is more efficient than the instruction that produces
  18903. both, write the output routine of 'divmodM4' to call
  18904. 'find_reg_note' and look for a 'REG_UNUSED' note on the quotient or
  18905. remainder and generate the appropriate instruction.
  18906. 'udivmodM4'
  18907. Similar, but does unsigned division.
  18908. 'ashlM3', 'ssashlM3', 'usashlM3'
  18909. Arithmetic-shift operand 1 left by a number of bits specified by
  18910. operand 2, and store the result in operand 0. Here M is the mode
  18911. of operand 0 and operand 1; operand 2's mode is specified by the
  18912. instruction pattern, and the compiler will convert the operand to
  18913. that mode before generating the instruction. The shift or rotate
  18914. expander or instruction pattern should explicitly specify the mode
  18915. of the operand 2, it should never be 'VOIDmode'. The meaning of
  18916. out-of-range shift counts can optionally be specified by
  18917. 'TARGET_SHIFT_TRUNCATION_MASK'. *Note
  18918. TARGET_SHIFT_TRUNCATION_MASK::. Operand 2 is always a scalar type.
  18919. 'ashrM3', 'lshrM3', 'rotlM3', 'rotrM3'
  18920. Other shift and rotate instructions, analogous to the 'ashlM3'
  18921. instructions. Operand 2 is always a scalar type.
  18922. 'vashlM3', 'vashrM3', 'vlshrM3', 'vrotlM3', 'vrotrM3'
  18923. Vector shift and rotate instructions that take vectors as operand 2
  18924. instead of a scalar type.
  18925. 'bswapM2'
  18926. Reverse the order of bytes of operand 1 and store the result in
  18927. operand 0.
  18928. 'negM2', 'ssnegM2', 'usnegM2'
  18929. Negate operand 1 and store the result in operand 0.
  18930. 'negvM3'
  18931. Like 'negM2' but takes a 'code_label' as operand 2 and emits code
  18932. to jump to it if signed overflow occurs during the negation.
  18933. 'absM2'
  18934. Store the absolute value of operand 1 into operand 0.
  18935. 'sqrtM2'
  18936. Store the square root of operand 1 into operand 0. Both operands
  18937. have mode M, which is a scalar or vector floating-point mode.
  18938. This pattern is not allowed to 'FAIL'.
  18939. 'rsqrtM2'
  18940. Store the reciprocal of the square root of operand 1 into operand
  18941. 0. Both operands have mode M, which is a scalar or vector
  18942. floating-point mode.
  18943. On most architectures this pattern is only approximate, so either
  18944. its C condition or the 'TARGET_OPTAB_SUPPORTED_P' hook should check
  18945. for the appropriate math flags. (Using the C condition is more
  18946. direct, but using 'TARGET_OPTAB_SUPPORTED_P' can be useful if a
  18947. target-specific built-in also uses the 'rsqrtM2' pattern.)
  18948. This pattern is not allowed to 'FAIL'.
  18949. 'fmodM3'
  18950. Store the remainder of dividing operand 1 by operand 2 into operand
  18951. 0, rounded towards zero to an integer. All operands have mode M,
  18952. which is a scalar or vector floating-point mode.
  18953. This pattern is not allowed to 'FAIL'.
  18954. 'remainderM3'
  18955. Store the remainder of dividing operand 1 by operand 2 into operand
  18956. 0, rounded to the nearest integer. All operands have mode M, which
  18957. is a scalar or vector floating-point mode.
  18958. This pattern is not allowed to 'FAIL'.
  18959. 'scalbM3'
  18960. Raise 'FLT_RADIX' to the power of operand 2, multiply it by operand
  18961. 1, and store the result in operand 0. All operands have mode M,
  18962. which is a scalar or vector floating-point mode.
  18963. This pattern is not allowed to 'FAIL'.
  18964. 'ldexpM3'
  18965. Raise 2 to the power of operand 2, multiply it by operand 1, and
  18966. store the result in operand 0. Operands 0 and 1 have mode M, which
  18967. is a scalar or vector floating-point mode. Operand 2's mode has
  18968. the same number of elements as M and each element is wide enough to
  18969. store an 'int'. The integers are signed.
  18970. This pattern is not allowed to 'FAIL'.
  18971. 'cosM2'
  18972. Store the cosine of operand 1 into operand 0. Both operands have
  18973. mode M, which is a scalar or vector floating-point mode.
  18974. This pattern is not allowed to 'FAIL'.
  18975. 'sinM2'
  18976. Store the sine of operand 1 into operand 0. Both operands have
  18977. mode M, which is a scalar or vector floating-point mode.
  18978. This pattern is not allowed to 'FAIL'.
  18979. 'sincosM3'
  18980. Store the cosine of operand 2 into operand 0 and the sine of
  18981. operand 2 into operand 1. All operands have mode M, which is a
  18982. scalar or vector floating-point mode.
  18983. Targets that can calculate the sine and cosine simultaneously can
  18984. implement this pattern as opposed to implementing individual
  18985. 'sinM2' and 'cosM2' patterns. The 'sin' and 'cos' built-in
  18986. functions will then be expanded to the 'sincosM3' pattern, with one
  18987. of the output values left unused.
  18988. 'tanM2'
  18989. Store the tangent of operand 1 into operand 0. Both operands have
  18990. mode M, which is a scalar or vector floating-point mode.
  18991. This pattern is not allowed to 'FAIL'.
  18992. 'asinM2'
  18993. Store the arc sine of operand 1 into operand 0. Both operands have
  18994. mode M, which is a scalar or vector floating-point mode.
  18995. This pattern is not allowed to 'FAIL'.
  18996. 'acosM2'
  18997. Store the arc cosine of operand 1 into operand 0. Both operands
  18998. have mode M, which is a scalar or vector floating-point mode.
  18999. This pattern is not allowed to 'FAIL'.
  19000. 'atanM2'
  19001. Store the arc tangent of operand 1 into operand 0. Both operands
  19002. have mode M, which is a scalar or vector floating-point mode.
  19003. This pattern is not allowed to 'FAIL'.
  19004. 'expM2'
  19005. Raise e (the base of natural logarithms) to the power of operand 1
  19006. and store the result in operand 0. Both operands have mode M,
  19007. which is a scalar or vector floating-point mode.
  19008. This pattern is not allowed to 'FAIL'.
  19009. 'expm1M2'
  19010. Raise e (the base of natural logarithms) to the power of operand 1,
  19011. subtract 1, and store the result in operand 0. Both operands have
  19012. mode M, which is a scalar or vector floating-point mode.
  19013. For inputs close to zero, the pattern is expected to be more
  19014. accurate than a separate 'expM2' and 'subM3' would be.
  19015. This pattern is not allowed to 'FAIL'.
  19016. 'exp10M2'
  19017. Raise 10 to the power of operand 1 and store the result in operand
  19018. 0. Both operands have mode M, which is a scalar or vector
  19019. floating-point mode.
  19020. This pattern is not allowed to 'FAIL'.
  19021. 'exp2M2'
  19022. Raise 2 to the power of operand 1 and store the result in operand
  19023. 0. Both operands have mode M, which is a scalar or vector
  19024. floating-point mode.
  19025. This pattern is not allowed to 'FAIL'.
  19026. 'logM2'
  19027. Store the natural logarithm of operand 1 into operand 0. Both
  19028. operands have mode M, which is a scalar or vector floating-point
  19029. mode.
  19030. This pattern is not allowed to 'FAIL'.
  19031. 'log1pM2'
  19032. Add 1 to operand 1, compute the natural logarithm, and store the
  19033. result in operand 0. Both operands have mode M, which is a scalar
  19034. or vector floating-point mode.
  19035. For inputs close to zero, the pattern is expected to be more
  19036. accurate than a separate 'addM3' and 'logM2' would be.
  19037. This pattern is not allowed to 'FAIL'.
  19038. 'log10M2'
  19039. Store the base-10 logarithm of operand 1 into operand 0. Both
  19040. operands have mode M, which is a scalar or vector floating-point
  19041. mode.
  19042. This pattern is not allowed to 'FAIL'.
  19043. 'log2M2'
  19044. Store the base-2 logarithm of operand 1 into operand 0. Both
  19045. operands have mode M, which is a scalar or vector floating-point
  19046. mode.
  19047. This pattern is not allowed to 'FAIL'.
  19048. 'logbM2'
  19049. Store the base-'FLT_RADIX' logarithm of operand 1 into operand 0.
  19050. Both operands have mode M, which is a scalar or vector
  19051. floating-point mode.
  19052. This pattern is not allowed to 'FAIL'.
  19053. 'significandM2'
  19054. Store the significand of floating-point operand 1 in operand 0.
  19055. Both operands have mode M, which is a scalar or vector
  19056. floating-point mode.
  19057. This pattern is not allowed to 'FAIL'.
  19058. 'powM3'
  19059. Store the value of operand 1 raised to the exponent operand 2 into
  19060. operand 0. All operands have mode M, which is a scalar or vector
  19061. floating-point mode.
  19062. This pattern is not allowed to 'FAIL'.
  19063. 'atan2M3'
  19064. Store the arc tangent (inverse tangent) of operand 1 divided by
  19065. operand 2 into operand 0, using the signs of both arguments to
  19066. determine the quadrant of the result. All operands have mode M,
  19067. which is a scalar or vector floating-point mode.
  19068. This pattern is not allowed to 'FAIL'.
  19069. 'floorM2'
  19070. Store the largest integral value not greater than operand 1 in
  19071. operand 0. Both operands have mode M, which is a scalar or vector
  19072. floating-point mode. If '-ffp-int-builtin-inexact' is in effect,
  19073. the "inexact" exception may be raised for noninteger operands;
  19074. otherwise, it may not.
  19075. This pattern is not allowed to 'FAIL'.
  19076. 'btruncM2'
  19077. Round operand 1 to an integer, towards zero, and store the result
  19078. in operand 0. Both operands have mode M, which is a scalar or
  19079. vector floating-point mode. If '-ffp-int-builtin-inexact' is in
  19080. effect, the "inexact" exception may be raised for noninteger
  19081. operands; otherwise, it may not.
  19082. This pattern is not allowed to 'FAIL'.
  19083. 'roundM2'
  19084. Round operand 1 to the nearest integer, rounding away from zero in
  19085. the event of a tie, and store the result in operand 0. Both
  19086. operands have mode M, which is a scalar or vector floating-point
  19087. mode. If '-ffp-int-builtin-inexact' is in effect, the "inexact"
  19088. exception may be raised for noninteger operands; otherwise, it may
  19089. not.
  19090. This pattern is not allowed to 'FAIL'.
  19091. 'ceilM2'
  19092. Store the smallest integral value not less than operand 1 in
  19093. operand 0. Both operands have mode M, which is a scalar or vector
  19094. floating-point mode. If '-ffp-int-builtin-inexact' is in effect,
  19095. the "inexact" exception may be raised for noninteger operands;
  19096. otherwise, it may not.
  19097. This pattern is not allowed to 'FAIL'.
  19098. 'nearbyintM2'
  19099. Round operand 1 to an integer, using the current rounding mode, and
  19100. store the result in operand 0. Do not raise an inexact condition
  19101. when the result is different from the argument. Both operands have
  19102. mode M, which is a scalar or vector floating-point mode.
  19103. This pattern is not allowed to 'FAIL'.
  19104. 'rintM2'
  19105. Round operand 1 to an integer, using the current rounding mode, and
  19106. store the result in operand 0. Raise an inexact condition when the
  19107. result is different from the argument. Both operands have mode M,
  19108. which is a scalar or vector floating-point mode.
  19109. This pattern is not allowed to 'FAIL'.
  19110. 'lrintMN2'
  19111. Convert operand 1 (valid for floating point mode M) to fixed point
  19112. mode N as a signed number according to the current rounding mode
  19113. and store in operand 0 (which has mode N).
  19114. 'lroundMN2'
  19115. Convert operand 1 (valid for floating point mode M) to fixed point
  19116. mode N as a signed number rounding to nearest and away from zero
  19117. and store in operand 0 (which has mode N).
  19118. 'lfloorMN2'
  19119. Convert operand 1 (valid for floating point mode M) to fixed point
  19120. mode N as a signed number rounding down and store in operand 0
  19121. (which has mode N).
  19122. 'lceilMN2'
  19123. Convert operand 1 (valid for floating point mode M) to fixed point
  19124. mode N as a signed number rounding up and store in operand 0 (which
  19125. has mode N).
  19126. 'copysignM3'
  19127. Store a value with the magnitude of operand 1 and the sign of
  19128. operand 2 into operand 0. All operands have mode M, which is a
  19129. scalar or vector floating-point mode.
  19130. This pattern is not allowed to 'FAIL'.
  19131. 'ffsM2'
  19132. Store into operand 0 one plus the index of the least significant
  19133. 1-bit of operand 1. If operand 1 is zero, store zero.
  19134. M is either a scalar or vector integer mode. When it is a scalar,
  19135. operand 1 has mode M but operand 0 can have whatever scalar integer
  19136. mode is suitable for the target. The compiler will insert
  19137. conversion instructions as necessary (typically to convert the
  19138. result to the same width as 'int'). When M is a vector, both
  19139. operands must have mode M.
  19140. This pattern is not allowed to 'FAIL'.
  19141. 'clrsbM2'
  19142. Count leading redundant sign bits. Store into operand 0 the number
  19143. of redundant sign bits in operand 1, starting at the most
  19144. significant bit position. A redundant sign bit is defined as any
  19145. sign bit after the first. As such, this count will be one less
  19146. than the count of leading sign bits.
  19147. M is either a scalar or vector integer mode. When it is a scalar,
  19148. operand 1 has mode M but operand 0 can have whatever scalar integer
  19149. mode is suitable for the target. The compiler will insert
  19150. conversion instructions as necessary (typically to convert the
  19151. result to the same width as 'int'). When M is a vector, both
  19152. operands must have mode M.
  19153. This pattern is not allowed to 'FAIL'.
  19154. 'clzM2'
  19155. Store into operand 0 the number of leading 0-bits in operand 1,
  19156. starting at the most significant bit position. If operand 1 is 0,
  19157. the 'CLZ_DEFINED_VALUE_AT_ZERO' (*note Misc::) macro defines if the
  19158. result is undefined or has a useful value.
  19159. M is either a scalar or vector integer mode. When it is a scalar,
  19160. operand 1 has mode M but operand 0 can have whatever scalar integer
  19161. mode is suitable for the target. The compiler will insert
  19162. conversion instructions as necessary (typically to convert the
  19163. result to the same width as 'int'). When M is a vector, both
  19164. operands must have mode M.
  19165. This pattern is not allowed to 'FAIL'.
  19166. 'ctzM2'
  19167. Store into operand 0 the number of trailing 0-bits in operand 1,
  19168. starting at the least significant bit position. If operand 1 is 0,
  19169. the 'CTZ_DEFINED_VALUE_AT_ZERO' (*note Misc::) macro defines if the
  19170. result is undefined or has a useful value.
  19171. M is either a scalar or vector integer mode. When it is a scalar,
  19172. operand 1 has mode M but operand 0 can have whatever scalar integer
  19173. mode is suitable for the target. The compiler will insert
  19174. conversion instructions as necessary (typically to convert the
  19175. result to the same width as 'int'). When M is a vector, both
  19176. operands must have mode M.
  19177. This pattern is not allowed to 'FAIL'.
  19178. 'popcountM2'
  19179. Store into operand 0 the number of 1-bits in operand 1.
  19180. M is either a scalar or vector integer mode. When it is a scalar,
  19181. operand 1 has mode M but operand 0 can have whatever scalar integer
  19182. mode is suitable for the target. The compiler will insert
  19183. conversion instructions as necessary (typically to convert the
  19184. result to the same width as 'int'). When M is a vector, both
  19185. operands must have mode M.
  19186. This pattern is not allowed to 'FAIL'.
  19187. 'parityM2'
  19188. Store into operand 0 the parity of operand 1, i.e. the number of
  19189. 1-bits in operand 1 modulo 2.
  19190. M is either a scalar or vector integer mode. When it is a scalar,
  19191. operand 1 has mode M but operand 0 can have whatever scalar integer
  19192. mode is suitable for the target. The compiler will insert
  19193. conversion instructions as necessary (typically to convert the
  19194. result to the same width as 'int'). When M is a vector, both
  19195. operands must have mode M.
  19196. This pattern is not allowed to 'FAIL'.
  19197. 'one_cmplM2'
  19198. Store the bitwise-complement of operand 1 into operand 0.
  19199. 'movmemM'
  19200. Block move instruction. The destination and source blocks of
  19201. memory are the first two operands, and both are 'mem:BLK's with an
  19202. address in mode 'Pmode'.
  19203. The number of bytes to move is the third operand, in mode M.
  19204. Usually, you specify 'Pmode' for M. However, if you can generate
  19205. better code knowing the range of valid lengths is smaller than
  19206. those representable in a full Pmode pointer, you should provide a
  19207. pattern with a mode corresponding to the range of values you can
  19208. handle efficiently (e.g., 'QImode' for values in the range 0-127;
  19209. note we avoid numbers that appear negative) and also a pattern with
  19210. 'Pmode'.
  19211. The fourth operand is the known shared alignment of the source and
  19212. destination, in the form of a 'const_int' rtx. Thus, if the
  19213. compiler knows that both source and destination are word-aligned,
  19214. it may provide the value 4 for this operand.
  19215. Optional operands 5 and 6 specify expected alignment and size of
  19216. block respectively. The expected alignment differs from alignment
  19217. in operand 4 in a way that the blocks are not required to be
  19218. aligned according to it in all cases. This expected alignment is
  19219. also in bytes, just like operand 4. Expected size, when unknown,
  19220. is set to '(const_int -1)'.
  19221. Descriptions of multiple 'movmemM' patterns can only be beneficial
  19222. if the patterns for smaller modes have fewer restrictions on their
  19223. first, second and fourth operands. Note that the mode M in
  19224. 'movmemM' does not impose any restriction on the mode of
  19225. individually moved data units in the block.
  19226. These patterns need not give special consideration to the
  19227. possibility that the source and destination strings might overlap.
  19228. 'movstr'
  19229. String copy instruction, with 'stpcpy' semantics. Operand 0 is an
  19230. output operand in mode 'Pmode'. The addresses of the destination
  19231. and source strings are operands 1 and 2, and both are 'mem:BLK's
  19232. with addresses in mode 'Pmode'. The execution of the expansion of
  19233. this pattern should store in operand 0 the address in which the
  19234. 'NUL' terminator was stored in the destination string.
  19235. This patern has also several optional operands that are same as in
  19236. 'setmem'.
  19237. 'setmemM'
  19238. Block set instruction. The destination string is the first
  19239. operand, given as a 'mem:BLK' whose address is in mode 'Pmode'.
  19240. The number of bytes to set is the second operand, in mode M. The
  19241. value to initialize the memory with is the third operand. Targets
  19242. that only support the clearing of memory should reject any value
  19243. that is not the constant 0. See 'movmemM' for a discussion of the
  19244. choice of mode.
  19245. The fourth operand is the known alignment of the destination, in
  19246. the form of a 'const_int' rtx. Thus, if the compiler knows that
  19247. the destination is word-aligned, it may provide the value 4 for
  19248. this operand.
  19249. Optional operands 5 and 6 specify expected alignment and size of
  19250. block respectively. The expected alignment differs from alignment
  19251. in operand 4 in a way that the blocks are not required to be
  19252. aligned according to it in all cases. This expected alignment is
  19253. also in bytes, just like operand 4. Expected size, when unknown,
  19254. is set to '(const_int -1)'. Operand 7 is the minimal size of the
  19255. block and operand 8 is the maximal size of the block (NULL if it
  19256. can not be represented as CONST_INT). Operand 9 is the probable
  19257. maximal size (i.e. we can not rely on it for correctness, but it
  19258. can be used for choosing proper code sequence for a given size).
  19259. The use for multiple 'setmemM' is as for 'movmemM'.
  19260. 'cmpstrnM'
  19261. String compare instruction, with five operands. Operand 0 is the
  19262. output; it has mode M. The remaining four operands are like the
  19263. operands of 'movmemM'. The two memory blocks specified are
  19264. compared byte by byte in lexicographic order starting at the
  19265. beginning of each string. The instruction is not allowed to
  19266. prefetch more than one byte at a time since either string may end
  19267. in the first byte and reading past that may access an invalid page
  19268. or segment and cause a fault. The comparison terminates early if
  19269. the fetched bytes are different or if they are equal to zero. The
  19270. effect of the instruction is to store a value in operand 0 whose
  19271. sign indicates the result of the comparison.
  19272. 'cmpstrM'
  19273. String compare instruction, without known maximum length. Operand
  19274. 0 is the output; it has mode M. The second and third operand are
  19275. the blocks of memory to be compared; both are 'mem:BLK' with an
  19276. address in mode 'Pmode'.
  19277. The fourth operand is the known shared alignment of the source and
  19278. destination, in the form of a 'const_int' rtx. Thus, if the
  19279. compiler knows that both source and destination are word-aligned,
  19280. it may provide the value 4 for this operand.
  19281. The two memory blocks specified are compared byte by byte in
  19282. lexicographic order starting at the beginning of each string. The
  19283. instruction is not allowed to prefetch more than one byte at a time
  19284. since either string may end in the first byte and reading past that
  19285. may access an invalid page or segment and cause a fault. The
  19286. comparison will terminate when the fetched bytes are different or
  19287. if they are equal to zero. The effect of the instruction is to
  19288. store a value in operand 0 whose sign indicates the result of the
  19289. comparison.
  19290. 'cmpmemM'
  19291. Block compare instruction, with five operands like the operands of
  19292. 'cmpstrM'. The two memory blocks specified are compared byte by
  19293. byte in lexicographic order starting at the beginning of each
  19294. block. Unlike 'cmpstrM' the instruction can prefetch any bytes in
  19295. the two memory blocks. Also unlike 'cmpstrM' the comparison will
  19296. not stop if both bytes are zero. The effect of the instruction is
  19297. to store a value in operand 0 whose sign indicates the result of
  19298. the comparison.
  19299. 'strlenM'
  19300. Compute the length of a string, with three operands. Operand 0 is
  19301. the result (of mode M), operand 1 is a 'mem' referring to the first
  19302. character of the string, operand 2 is the character to search for
  19303. (normally zero), and operand 3 is a constant describing the known
  19304. alignment of the beginning of the string.
  19305. 'floatMN2'
  19306. Convert signed integer operand 1 (valid for fixed point mode M) to
  19307. floating point mode N and store in operand 0 (which has mode N).
  19308. 'floatunsMN2'
  19309. Convert unsigned integer operand 1 (valid for fixed point mode M)
  19310. to floating point mode N and store in operand 0 (which has mode N).
  19311. 'fixMN2'
  19312. Convert operand 1 (valid for floating point mode M) to fixed point
  19313. mode N as a signed number and store in operand 0 (which has mode
  19314. N). This instruction's result is defined only when the value of
  19315. operand 1 is an integer.
  19316. If the machine description defines this pattern, it also needs to
  19317. define the 'ftrunc' pattern.
  19318. 'fixunsMN2'
  19319. Convert operand 1 (valid for floating point mode M) to fixed point
  19320. mode N as an unsigned number and store in operand 0 (which has mode
  19321. N). This instruction's result is defined only when the value of
  19322. operand 1 is an integer.
  19323. 'ftruncM2'
  19324. Convert operand 1 (valid for floating point mode M) to an integer
  19325. value, still represented in floating point mode M, and store it in
  19326. operand 0 (valid for floating point mode M).
  19327. 'fix_truncMN2'
  19328. Like 'fixMN2' but works for any floating point value of mode M by
  19329. converting the value to an integer.
  19330. 'fixuns_truncMN2'
  19331. Like 'fixunsMN2' but works for any floating point value of mode M
  19332. by converting the value to an integer.
  19333. 'truncMN2'
  19334. Truncate operand 1 (valid for mode M) to mode N and store in
  19335. operand 0 (which has mode N). Both modes must be fixed point or
  19336. both floating point.
  19337. 'extendMN2'
  19338. Sign-extend operand 1 (valid for mode M) to mode N and store in
  19339. operand 0 (which has mode N). Both modes must be fixed point or
  19340. both floating point.
  19341. 'zero_extendMN2'
  19342. Zero-extend operand 1 (valid for mode M) to mode N and store in
  19343. operand 0 (which has mode N). Both modes must be fixed point.
  19344. 'fractMN2'
  19345. Convert operand 1 of mode M to mode N and store in operand 0 (which
  19346. has mode N). Mode M and mode N could be fixed-point to
  19347. fixed-point, signed integer to fixed-point, fixed-point to signed
  19348. integer, floating-point to fixed-point, or fixed-point to
  19349. floating-point. When overflows or underflows happen, the results
  19350. are undefined.
  19351. 'satfractMN2'
  19352. Convert operand 1 of mode M to mode N and store in operand 0 (which
  19353. has mode N). Mode M and mode N could be fixed-point to
  19354. fixed-point, signed integer to fixed-point, or floating-point to
  19355. fixed-point. When overflows or underflows happen, the instruction
  19356. saturates the results to the maximum or the minimum.
  19357. 'fractunsMN2'
  19358. Convert operand 1 of mode M to mode N and store in operand 0 (which
  19359. has mode N). Mode M and mode N could be unsigned integer to
  19360. fixed-point, or fixed-point to unsigned integer. When overflows or
  19361. underflows happen, the results are undefined.
  19362. 'satfractunsMN2'
  19363. Convert unsigned integer operand 1 of mode M to fixed-point mode N
  19364. and store in operand 0 (which has mode N). When overflows or
  19365. underflows happen, the instruction saturates the results to the
  19366. maximum or the minimum.
  19367. 'extvM'
  19368. Extract a bit-field from register operand 1, sign-extend it, and
  19369. store it in operand 0. Operand 2 specifies the width of the field
  19370. in bits and operand 3 the starting bit, which counts from the most
  19371. significant bit if 'BITS_BIG_ENDIAN' is true and from the least
  19372. significant bit otherwise.
  19373. Operands 0 and 1 both have mode M. Operands 2 and 3 have a
  19374. target-specific mode.
  19375. 'extvmisalignM'
  19376. Extract a bit-field from memory operand 1, sign extend it, and
  19377. store it in operand 0. Operand 2 specifies the width in bits and
  19378. operand 3 the starting bit. The starting bit is always somewhere
  19379. in the first byte of operand 1; it counts from the most significant
  19380. bit if 'BITS_BIG_ENDIAN' is true and from the least significant bit
  19381. otherwise.
  19382. Operand 0 has mode M while operand 1 has 'BLK' mode. Operands 2
  19383. and 3 have a target-specific mode.
  19384. The instruction must not read beyond the last byte of the
  19385. bit-field.
  19386. 'extzvM'
  19387. Like 'extvM' except that the bit-field value is zero-extended.
  19388. 'extzvmisalignM'
  19389. Like 'extvmisalignM' except that the bit-field value is
  19390. zero-extended.
  19391. 'insvM'
  19392. Insert operand 3 into a bit-field of register operand 0. Operand 1
  19393. specifies the width of the field in bits and operand 2 the starting
  19394. bit, which counts from the most significant bit if
  19395. 'BITS_BIG_ENDIAN' is true and from the least significant bit
  19396. otherwise.
  19397. Operands 0 and 3 both have mode M. Operands 1 and 2 have a
  19398. target-specific mode.
  19399. 'insvmisalignM'
  19400. Insert operand 3 into a bit-field of memory operand 0. Operand 1
  19401. specifies the width of the field in bits and operand 2 the starting
  19402. bit. The starting bit is always somewhere in the first byte of
  19403. operand 0; it counts from the most significant bit if
  19404. 'BITS_BIG_ENDIAN' is true and from the least significant bit
  19405. otherwise.
  19406. Operand 3 has mode M while operand 0 has 'BLK' mode. Operands 1
  19407. and 2 have a target-specific mode.
  19408. The instruction must not read or write beyond the last byte of the
  19409. bit-field.
  19410. 'extv'
  19411. Extract a bit-field from operand 1 (a register or memory operand),
  19412. where operand 2 specifies the width in bits and operand 3 the
  19413. starting bit, and store it in operand 0. Operand 0 must have mode
  19414. 'word_mode'. Operand 1 may have mode 'byte_mode' or 'word_mode';
  19415. often 'word_mode' is allowed only for registers. Operands 2 and 3
  19416. must be valid for 'word_mode'.
  19417. The RTL generation pass generates this instruction only with
  19418. constants for operands 2 and 3 and the constant is never zero for
  19419. operand 2.
  19420. The bit-field value is sign-extended to a full word integer before
  19421. it is stored in operand 0.
  19422. This pattern is deprecated; please use 'extvM' and 'extvmisalignM'
  19423. instead.
  19424. 'extzv'
  19425. Like 'extv' except that the bit-field value is zero-extended.
  19426. This pattern is deprecated; please use 'extzvM' and
  19427. 'extzvmisalignM' instead.
  19428. 'insv'
  19429. Store operand 3 (which must be valid for 'word_mode') into a
  19430. bit-field in operand 0, where operand 1 specifies the width in bits
  19431. and operand 2 the starting bit. Operand 0 may have mode
  19432. 'byte_mode' or 'word_mode'; often 'word_mode' is allowed only for
  19433. registers. Operands 1 and 2 must be valid for 'word_mode'.
  19434. The RTL generation pass generates this instruction only with
  19435. constants for operands 1 and 2 and the constant is never zero for
  19436. operand 1.
  19437. This pattern is deprecated; please use 'insvM' and 'insvmisalignM'
  19438. instead.
  19439. 'movMODEcc'
  19440. Conditionally move operand 2 or operand 3 into operand 0 according
  19441. to the comparison in operand 1. If the comparison is true, operand
  19442. 2 is moved into operand 0, otherwise operand 3 is moved.
  19443. The mode of the operands being compared need not be the same as the
  19444. operands being moved. Some machines, sparc64 for example, have
  19445. instructions that conditionally move an integer value based on the
  19446. floating point condition codes and vice versa.
  19447. If the machine does not have conditional move instructions, do not
  19448. define these patterns.
  19449. 'addMODEcc'
  19450. Similar to 'movMODEcc' but for conditional addition. Conditionally
  19451. move operand 2 or (operands 2 + operand 3) into operand 0 according
  19452. to the comparison in operand 1. If the comparison is false,
  19453. operand 2 is moved into operand 0, otherwise (operand 2 + operand
  19454. 3) is moved.
  19455. 'negMODEcc'
  19456. Similar to 'movMODEcc' but for conditional negation. Conditionally
  19457. move the negation of operand 2 or the unchanged operand 3 into
  19458. operand 0 according to the comparison in operand 1. If the
  19459. comparison is true, the negation of operand 2 is moved into operand
  19460. 0, otherwise operand 3 is moved.
  19461. 'notMODEcc'
  19462. Similar to 'negMODEcc' but for conditional complement.
  19463. Conditionally move the bitwise complement of operand 2 or the
  19464. unchanged operand 3 into operand 0 according to the comparison in
  19465. operand 1. If the comparison is true, the complement of operand 2
  19466. is moved into operand 0, otherwise operand 3 is moved.
  19467. 'cstoreMODE4'
  19468. Store zero or nonzero in operand 0 according to whether a
  19469. comparison is true. Operand 1 is a comparison operator. Operand 2
  19470. and operand 3 are the first and second operand of the comparison,
  19471. respectively. You specify the mode that operand 0 must have when
  19472. you write the 'match_operand' expression. The compiler
  19473. automatically sees which mode you have used and supplies an operand
  19474. of that mode.
  19475. The value stored for a true condition must have 1 as its low bit,
  19476. or else must be negative. Otherwise the instruction is not
  19477. suitable and you should omit it from the machine description. You
  19478. describe to the compiler exactly which value is stored by defining
  19479. the macro 'STORE_FLAG_VALUE' (*note Misc::). If a description
  19480. cannot be found that can be used for all the possible comparison
  19481. operators, you should pick one and use a 'define_expand' to map all
  19482. results onto the one you chose.
  19483. These operations may 'FAIL', but should do so only in relatively
  19484. uncommon cases; if they would 'FAIL' for common cases involving
  19485. integer comparisons, it is best to restrict the predicates to not
  19486. allow these operands. Likewise if a given comparison operator will
  19487. always fail, independent of the operands (for floating-point modes,
  19488. the 'ordered_comparison_operator' predicate is often useful in this
  19489. case).
  19490. If this pattern is omitted, the compiler will generate a
  19491. conditional branch--for example, it may copy a constant one to the
  19492. target and branching around an assignment of zero to the target--or
  19493. a libcall. If the predicate for operand 1 only rejects some
  19494. operators, it will also try reordering the operands and/or
  19495. inverting the result value (e.g. by an exclusive OR). These
  19496. possibilities could be cheaper or equivalent to the instructions
  19497. used for the 'cstoreMODE4' pattern followed by those required to
  19498. convert a positive result from 'STORE_FLAG_VALUE' to 1; in this
  19499. case, you can and should make operand 1's predicate reject some
  19500. operators in the 'cstoreMODE4' pattern, or remove the pattern
  19501. altogether from the machine description.
  19502. 'cbranchMODE4'
  19503. Conditional branch instruction combined with a compare instruction.
  19504. Operand 0 is a comparison operator. Operand 1 and operand 2 are
  19505. the first and second operands of the comparison, respectively.
  19506. Operand 3 is the 'code_label' to jump to.
  19507. 'jump'
  19508. A jump inside a function; an unconditional branch. Operand 0 is
  19509. the 'code_label' to jump to. This pattern name is mandatory on all
  19510. machines.
  19511. 'call'
  19512. Subroutine call instruction returning no value. Operand 0 is the
  19513. function to call; operand 1 is the number of bytes of arguments
  19514. pushed as a 'const_int'; operand 2 is the number of registers used
  19515. as operands.
  19516. On most machines, operand 2 is not actually stored into the RTL
  19517. pattern. It is supplied for the sake of some RISC machines which
  19518. need to put this information into the assembler code; they can put
  19519. it in the RTL instead of operand 1.
  19520. Operand 0 should be a 'mem' RTX whose address is the address of the
  19521. function. Note, however, that this address can be a 'symbol_ref'
  19522. expression even if it would not be a legitimate memory address on
  19523. the target machine. If it is also not a valid argument for a call
  19524. instruction, the pattern for this operation should be a
  19525. 'define_expand' (*note Expander Definitions::) that places the
  19526. address into a register and uses that register in the call
  19527. instruction.
  19528. 'call_value'
  19529. Subroutine call instruction returning a value. Operand 0 is the
  19530. hard register in which the value is returned. There are three more
  19531. operands, the same as the three operands of the 'call' instruction
  19532. (but with numbers increased by one).
  19533. Subroutines that return 'BLKmode' objects use the 'call' insn.
  19534. 'call_pop', 'call_value_pop'
  19535. Similar to 'call' and 'call_value', except used if defined and if
  19536. 'RETURN_POPS_ARGS' is nonzero. They should emit a 'parallel' that
  19537. contains both the function call and a 'set' to indicate the
  19538. adjustment made to the frame pointer.
  19539. For machines where 'RETURN_POPS_ARGS' can be nonzero, the use of
  19540. these patterns increases the number of functions for which the
  19541. frame pointer can be eliminated, if desired.
  19542. 'untyped_call'
  19543. Subroutine call instruction returning a value of any type. Operand
  19544. 0 is the function to call; operand 1 is a memory location where the
  19545. result of calling the function is to be stored; operand 2 is a
  19546. 'parallel' expression where each element is a 'set' expression that
  19547. indicates the saving of a function return value into the result
  19548. block.
  19549. This instruction pattern should be defined to support
  19550. '__builtin_apply' on machines where special instructions are needed
  19551. to call a subroutine with arbitrary arguments or to save the value
  19552. returned. This instruction pattern is required on machines that
  19553. have multiple registers that can hold a return value (i.e.
  19554. 'FUNCTION_VALUE_REGNO_P' is true for more than one register).
  19555. 'return'
  19556. Subroutine return instruction. This instruction pattern name
  19557. should be defined only if a single instruction can do all the work
  19558. of returning from a function.
  19559. Like the 'movM' patterns, this pattern is also used after the RTL
  19560. generation phase. In this case it is to support machines where
  19561. multiple instructions are usually needed to return from a function,
  19562. but some class of functions only requires one instruction to
  19563. implement a return. Normally, the applicable functions are those
  19564. which do not need to save any registers or allocate stack space.
  19565. It is valid for this pattern to expand to an instruction using
  19566. 'simple_return' if no epilogue is required.
  19567. 'simple_return'
  19568. Subroutine return instruction. This instruction pattern name
  19569. should be defined only if a single instruction can do all the work
  19570. of returning from a function on a path where no epilogue is
  19571. required. This pattern is very similar to the 'return' instruction
  19572. pattern, but it is emitted only by the shrink-wrapping optimization
  19573. on paths where the function prologue has not been executed, and a
  19574. function return should occur without any of the effects of the
  19575. epilogue. Additional uses may be introduced on paths where both
  19576. the prologue and the epilogue have executed.
  19577. For such machines, the condition specified in this pattern should
  19578. only be true when 'reload_completed' is nonzero and the function's
  19579. epilogue would only be a single instruction. For machines with
  19580. register windows, the routine 'leaf_function_p' may be used to
  19581. determine if a register window push is required.
  19582. Machines that have conditional return instructions should define
  19583. patterns such as
  19584. (define_insn ""
  19585. [(set (pc)
  19586. (if_then_else (match_operator
  19587. 0 "comparison_operator"
  19588. [(cc0) (const_int 0)])
  19589. (return)
  19590. (pc)))]
  19591. "CONDITION"
  19592. "...")
  19593. where CONDITION would normally be the same condition specified on
  19594. the named 'return' pattern.
  19595. 'untyped_return'
  19596. Untyped subroutine return instruction. This instruction pattern
  19597. should be defined to support '__builtin_return' on machines where
  19598. special instructions are needed to return a value of any type.
  19599. Operand 0 is a memory location where the result of calling a
  19600. function with '__builtin_apply' is stored; operand 1 is a
  19601. 'parallel' expression where each element is a 'set' expression that
  19602. indicates the restoring of a function return value from the result
  19603. block.
  19604. 'nop'
  19605. No-op instruction. This instruction pattern name should always be
  19606. defined to output a no-op in assembler code. '(const_int 0)' will
  19607. do as an RTL pattern.
  19608. 'indirect_jump'
  19609. An instruction to jump to an address which is operand zero. This
  19610. pattern name is mandatory on all machines.
  19611. 'casesi'
  19612. Instruction to jump through a dispatch table, including bounds
  19613. checking. This instruction takes five operands:
  19614. 1. The index to dispatch on, which has mode 'SImode'.
  19615. 2. The lower bound for indices in the table, an integer constant.
  19616. 3. The total range of indices in the table--the largest index
  19617. minus the smallest one (both inclusive).
  19618. 4. A label that precedes the table itself.
  19619. 5. A label to jump to if the index has a value outside the
  19620. bounds.
  19621. The table is an 'addr_vec' or 'addr_diff_vec' inside of a
  19622. 'jump_table_data'. The number of elements in the table is one plus
  19623. the difference between the upper bound and the lower bound.
  19624. 'tablejump'
  19625. Instruction to jump to a variable address. This is a low-level
  19626. capability which can be used to implement a dispatch table when
  19627. there is no 'casesi' pattern.
  19628. This pattern requires two operands: the address or offset, and a
  19629. label which should immediately precede the jump table. If the
  19630. macro 'CASE_VECTOR_PC_RELATIVE' evaluates to a nonzero value then
  19631. the first operand is an offset which counts from the address of the
  19632. table; otherwise, it is an absolute address to jump to. In either
  19633. case, the first operand has mode 'Pmode'.
  19634. The 'tablejump' insn is always the last insn before the jump table
  19635. it uses. Its assembler code normally has no need to use the second
  19636. operand, but you should incorporate it in the RTL pattern so that
  19637. the jump optimizer will not delete the table as unreachable code.
  19638. 'decrement_and_branch_until_zero'
  19639. Conditional branch instruction that decrements a register and jumps
  19640. if the register is nonzero. Operand 0 is the register to decrement
  19641. and test; operand 1 is the label to jump to if the register is
  19642. nonzero. *Note Looping Patterns::.
  19643. This optional instruction pattern is only used by the combiner,
  19644. typically for loops reversed by the loop optimizer when strength
  19645. reduction is enabled.
  19646. 'doloop_end'
  19647. Conditional branch instruction that decrements a register and jumps
  19648. if the register is nonzero. Operand 0 is the register to decrement
  19649. and test; operand 1 is the label to jump to if the register is
  19650. nonzero. *Note Looping Patterns::.
  19651. This optional instruction pattern should be defined for machines
  19652. with low-overhead looping instructions as the loop optimizer will
  19653. try to modify suitable loops to utilize it. The target hook
  19654. 'TARGET_CAN_USE_DOLOOP_P' controls the conditions under which
  19655. low-overhead loops can be used.
  19656. 'doloop_begin'
  19657. Companion instruction to 'doloop_end' required for machines that
  19658. need to perform some initialization, such as loading a special
  19659. counter register. Operand 1 is the associated 'doloop_end' pattern
  19660. and operand 0 is the register that it decrements.
  19661. If initialization insns do not always need to be emitted, use a
  19662. 'define_expand' (*note Expander Definitions::) and make it fail.
  19663. 'canonicalize_funcptr_for_compare'
  19664. Canonicalize the function pointer in operand 1 and store the result
  19665. into operand 0.
  19666. Operand 0 is always a 'reg' and has mode 'Pmode'; operand 1 may be
  19667. a 'reg', 'mem', 'symbol_ref', 'const_int', etc and also has mode
  19668. 'Pmode'.
  19669. Canonicalization of a function pointer usually involves computing
  19670. the address of the function which would be called if the function
  19671. pointer were used in an indirect call.
  19672. Only define this pattern if function pointers on the target machine
  19673. can have different values but still call the same function when
  19674. used in an indirect call.
  19675. 'save_stack_block'
  19676. 'save_stack_function'
  19677. 'save_stack_nonlocal'
  19678. 'restore_stack_block'
  19679. 'restore_stack_function'
  19680. 'restore_stack_nonlocal'
  19681. Most machines save and restore the stack pointer by copying it to
  19682. or from an object of mode 'Pmode'. Do not define these patterns on
  19683. such machines.
  19684. Some machines require special handling for stack pointer saves and
  19685. restores. On those machines, define the patterns corresponding to
  19686. the non-standard cases by using a 'define_expand' (*note Expander
  19687. Definitions::) that produces the required insns. The three types
  19688. of saves and restores are:
  19689. 1. 'save_stack_block' saves the stack pointer at the start of a
  19690. block that allocates a variable-sized object, and
  19691. 'restore_stack_block' restores the stack pointer when the
  19692. block is exited.
  19693. 2. 'save_stack_function' and 'restore_stack_function' do a
  19694. similar job for the outermost block of a function and are used
  19695. when the function allocates variable-sized objects or calls
  19696. 'alloca'. Only the epilogue uses the restored stack pointer,
  19697. allowing a simpler save or restore sequence on some machines.
  19698. 3. 'save_stack_nonlocal' is used in functions that contain labels
  19699. branched to by nested functions. It saves the stack pointer
  19700. in such a way that the inner function can use
  19701. 'restore_stack_nonlocal' to restore the stack pointer. The
  19702. compiler generates code to restore the frame and argument
  19703. pointer registers, but some machines require saving and
  19704. restoring additional data such as register window information
  19705. or stack backchains. Place insns in these patterns to save
  19706. and restore any such required data.
  19707. When saving the stack pointer, operand 0 is the save area and
  19708. operand 1 is the stack pointer. The mode used to allocate the save
  19709. area defaults to 'Pmode' but you can override that choice by
  19710. defining the 'STACK_SAVEAREA_MODE' macro (*note Storage Layout::).
  19711. You must specify an integral mode, or 'VOIDmode' if no save area is
  19712. needed for a particular type of save (either because no save is
  19713. needed or because a machine-specific save area can be used).
  19714. Operand 0 is the stack pointer and operand 1 is the save area for
  19715. restore operations. If 'save_stack_block' is defined, operand 0
  19716. must not be 'VOIDmode' since these saves can be arbitrarily nested.
  19717. A save area is a 'mem' that is at a constant offset from
  19718. 'virtual_stack_vars_rtx' when the stack pointer is saved for use by
  19719. nonlocal gotos and a 'reg' in the other two cases.
  19720. 'allocate_stack'
  19721. Subtract (or add if 'STACK_GROWS_DOWNWARD' is undefined) operand 1
  19722. from the stack pointer to create space for dynamically allocated
  19723. data.
  19724. Store the resultant pointer to this space into operand 0. If you
  19725. are allocating space from the main stack, do this by emitting a
  19726. move insn to copy 'virtual_stack_dynamic_rtx' to operand 0. If you
  19727. are allocating the space elsewhere, generate code to copy the
  19728. location of the space to operand 0. In the latter case, you must
  19729. ensure this space gets freed when the corresponding space on the
  19730. main stack is free.
  19731. Do not define this pattern if all that must be done is the
  19732. subtraction. Some machines require other operations such as stack
  19733. probes or maintaining the back chain. Define this pattern to emit
  19734. those operations in addition to updating the stack pointer.
  19735. 'check_stack'
  19736. If stack checking (*note Stack Checking::) cannot be done on your
  19737. system by probing the stack, define this pattern to perform the
  19738. needed check and signal an error if the stack has overflowed. The
  19739. single operand is the address in the stack farthest from the
  19740. current stack pointer that you need to validate. Normally, on
  19741. platforms where this pattern is needed, you would obtain the stack
  19742. limit from a global or thread-specific variable or register.
  19743. 'probe_stack_address'
  19744. If stack checking (*note Stack Checking::) can be done on your
  19745. system by probing the stack but without the need to actually access
  19746. it, define this pattern and signal an error if the stack has
  19747. overflowed. The single operand is the memory address in the stack
  19748. that needs to be probed.
  19749. 'probe_stack'
  19750. If stack checking (*note Stack Checking::) can be done on your
  19751. system by probing the stack but doing it with a "store zero"
  19752. instruction is not valid or optimal, define this pattern to do the
  19753. probing differently and signal an error if the stack has
  19754. overflowed. The single operand is the memory reference in the
  19755. stack that needs to be probed.
  19756. 'nonlocal_goto'
  19757. Emit code to generate a non-local goto, e.g., a jump from one
  19758. function to a label in an outer function. This pattern has four
  19759. arguments, each representing a value to be used in the jump. The
  19760. first argument is to be loaded into the frame pointer, the second
  19761. is the address to branch to (code to dispatch to the actual label),
  19762. the third is the address of a location where the stack is saved,
  19763. and the last is the address of the label, to be placed in the
  19764. location for the incoming static chain.
  19765. On most machines you need not define this pattern, since GCC will
  19766. already generate the correct code, which is to load the frame
  19767. pointer and static chain, restore the stack (using the
  19768. 'restore_stack_nonlocal' pattern, if defined), and jump indirectly
  19769. to the dispatcher. You need only define this pattern if this code
  19770. will not work on your machine.
  19771. 'nonlocal_goto_receiver'
  19772. This pattern, if defined, contains code needed at the target of a
  19773. nonlocal goto after the code already generated by GCC. You will
  19774. not normally need to define this pattern. A typical reason why you
  19775. might need this pattern is if some value, such as a pointer to a
  19776. global table, must be restored when the frame pointer is restored.
  19777. Note that a nonlocal goto only occurs within a unit-of-translation,
  19778. so a global table pointer that is shared by all functions of a
  19779. given module need not be restored. There are no arguments.
  19780. 'exception_receiver'
  19781. This pattern, if defined, contains code needed at the site of an
  19782. exception handler that isn't needed at the site of a nonlocal goto.
  19783. You will not normally need to define this pattern. A typical
  19784. reason why you might need this pattern is if some value, such as a
  19785. pointer to a global table, must be restored after control flow is
  19786. branched to the handler of an exception. There are no arguments.
  19787. 'builtin_setjmp_setup'
  19788. This pattern, if defined, contains additional code needed to
  19789. initialize the 'jmp_buf'. You will not normally need to define
  19790. this pattern. A typical reason why you might need this pattern is
  19791. if some value, such as a pointer to a global table, must be
  19792. restored. Though it is preferred that the pointer value be
  19793. recalculated if possible (given the address of a label for
  19794. instance). The single argument is a pointer to the 'jmp_buf'.
  19795. Note that the buffer is five words long and that the first three
  19796. are normally used by the generic mechanism.
  19797. 'builtin_setjmp_receiver'
  19798. This pattern, if defined, contains code needed at the site of a
  19799. built-in setjmp that isn't needed at the site of a nonlocal goto.
  19800. You will not normally need to define this pattern. A typical
  19801. reason why you might need this pattern is if some value, such as a
  19802. pointer to a global table, must be restored. It takes one
  19803. argument, which is the label to which builtin_longjmp transferred
  19804. control; this pattern may be emitted at a small offset from that
  19805. label.
  19806. 'builtin_longjmp'
  19807. This pattern, if defined, performs the entire action of the
  19808. longjmp. You will not normally need to define this pattern unless
  19809. you also define 'builtin_setjmp_setup'. The single argument is a
  19810. pointer to the 'jmp_buf'.
  19811. 'eh_return'
  19812. This pattern, if defined, affects the way '__builtin_eh_return',
  19813. and thence the call frame exception handling library routines, are
  19814. built. It is intended to handle non-trivial actions needed along
  19815. the abnormal return path.
  19816. The address of the exception handler to which the function should
  19817. return is passed as operand to this pattern. It will normally need
  19818. to copied by the pattern to some special register or memory
  19819. location. If the pattern needs to determine the location of the
  19820. target call frame in order to do so, it may use
  19821. 'EH_RETURN_STACKADJ_RTX', if defined; it will have already been
  19822. assigned.
  19823. If this pattern is not defined, the default action will be to
  19824. simply copy the return address to 'EH_RETURN_HANDLER_RTX'. Either
  19825. that macro or this pattern needs to be defined if call frame
  19826. exception handling is to be used.
  19827. 'prologue'
  19828. This pattern, if defined, emits RTL for entry to a function. The
  19829. function entry is responsible for setting up the stack frame,
  19830. initializing the frame pointer register, saving callee saved
  19831. registers, etc.
  19832. Using a prologue pattern is generally preferred over defining
  19833. 'TARGET_ASM_FUNCTION_PROLOGUE' to emit assembly code for the
  19834. prologue.
  19835. The 'prologue' pattern is particularly useful for targets which
  19836. perform instruction scheduling.
  19837. 'window_save'
  19838. This pattern, if defined, emits RTL for a register window save. It
  19839. should be defined if the target machine has register windows but
  19840. the window events are decoupled from calls to subroutines. The
  19841. canonical example is the SPARC architecture.
  19842. 'epilogue'
  19843. This pattern emits RTL for exit from a function. The function exit
  19844. is responsible for deallocating the stack frame, restoring callee
  19845. saved registers and emitting the return instruction.
  19846. Using an epilogue pattern is generally preferred over defining
  19847. 'TARGET_ASM_FUNCTION_EPILOGUE' to emit assembly code for the
  19848. epilogue.
  19849. The 'epilogue' pattern is particularly useful for targets which
  19850. perform instruction scheduling or which have delay slots for their
  19851. return instruction.
  19852. 'sibcall_epilogue'
  19853. This pattern, if defined, emits RTL for exit from a function
  19854. without the final branch back to the calling function. This
  19855. pattern will be emitted before any sibling call (aka tail call)
  19856. sites.
  19857. The 'sibcall_epilogue' pattern must not clobber any arguments used
  19858. for parameter passing or any stack slots for arguments passed to
  19859. the current function.
  19860. 'trap'
  19861. This pattern, if defined, signals an error, typically by causing
  19862. some kind of signal to be raised.
  19863. 'ctrapMM4'
  19864. Conditional trap instruction. Operand 0 is a piece of RTL which
  19865. performs a comparison, and operands 1 and 2 are the arms of the
  19866. comparison. Operand 3 is the trap code, an integer.
  19867. A typical 'ctrap' pattern looks like
  19868. (define_insn "ctrapsi4"
  19869. [(trap_if (match_operator 0 "trap_operator"
  19870. [(match_operand 1 "register_operand")
  19871. (match_operand 2 "immediate_operand")])
  19872. (match_operand 3 "const_int_operand" "i"))]
  19873. ""
  19874. "...")
  19875. 'prefetch'
  19876. This pattern, if defined, emits code for a non-faulting data
  19877. prefetch instruction. Operand 0 is the address of the memory to
  19878. prefetch. Operand 1 is a constant 1 if the prefetch is preparing
  19879. for a write to the memory address, or a constant 0 otherwise.
  19880. Operand 2 is the expected degree of temporal locality of the data
  19881. and is a value between 0 and 3, inclusive; 0 means that the data
  19882. has no temporal locality, so it need not be left in the cache after
  19883. the access; 3 means that the data has a high degree of temporal
  19884. locality and should be left in all levels of cache possible; 1 and
  19885. 2 mean, respectively, a low or moderate degree of temporal
  19886. locality.
  19887. Targets that do not support write prefetches or locality hints can
  19888. ignore the values of operands 1 and 2.
  19889. 'blockage'
  19890. This pattern defines a pseudo insn that prevents the instruction
  19891. scheduler and other passes from moving instructions and using
  19892. register equivalences across the boundary defined by the blockage
  19893. insn. This needs to be an UNSPEC_VOLATILE pattern or a volatile
  19894. ASM.
  19895. 'memory_barrier'
  19896. If the target memory model is not fully synchronous, then this
  19897. pattern should be defined to an instruction that orders both loads
  19898. and stores before the instruction with respect to loads and stores
  19899. after the instruction. This pattern has no operands.
  19900. 'sync_compare_and_swapMODE'
  19901. This pattern, if defined, emits code for an atomic compare-and-swap
  19902. operation. Operand 1 is the memory on which the atomic operation
  19903. is performed. Operand 2 is the "old" value to be compared against
  19904. the current contents of the memory location. Operand 3 is the
  19905. "new" value to store in the memory if the compare succeeds.
  19906. Operand 0 is the result of the operation; it should contain the
  19907. contents of the memory before the operation. If the compare
  19908. succeeds, this should obviously be a copy of operand 2.
  19909. This pattern must show that both operand 0 and operand 1 are
  19910. modified.
  19911. This pattern must issue any memory barrier instructions such that
  19912. all memory operations before the atomic operation occur before the
  19913. atomic operation and all memory operations after the atomic
  19914. operation occur after the atomic operation.
  19915. For targets where the success or failure of the compare-and-swap
  19916. operation is available via the status flags, it is possible to
  19917. avoid a separate compare operation and issue the subsequent branch
  19918. or store-flag operation immediately after the compare-and-swap. To
  19919. this end, GCC will look for a 'MODE_CC' set in the output of
  19920. 'sync_compare_and_swapMODE'; if the machine description includes
  19921. such a set, the target should also define special 'cbranchcc4'
  19922. and/or 'cstorecc4' instructions. GCC will then be able to take the
  19923. destination of the 'MODE_CC' set and pass it to the 'cbranchcc4' or
  19924. 'cstorecc4' pattern as the first operand of the comparison (the
  19925. second will be '(const_int 0)').
  19926. For targets where the operating system may provide support for this
  19927. operation via library calls, the 'sync_compare_and_swap_optab' may
  19928. be initialized to a function with the same interface as the
  19929. '__sync_val_compare_and_swap_N' built-in. If the entire set of
  19930. __SYNC builtins are supported via library calls, the target can
  19931. initialize all of the optabs at once with 'init_sync_libfuncs'.
  19932. For the purposes of C++11 'std::atomic::is_lock_free', it is
  19933. assumed that these library calls do _not_ use any kind of
  19934. interruptable locking.
  19935. 'sync_addMODE', 'sync_subMODE'
  19936. 'sync_iorMODE', 'sync_andMODE'
  19937. 'sync_xorMODE', 'sync_nandMODE'
  19938. These patterns emit code for an atomic operation on memory.
  19939. Operand 0 is the memory on which the atomic operation is performed.
  19940. Operand 1 is the second operand to the binary operator.
  19941. This pattern must issue any memory barrier instructions such that
  19942. all memory operations before the atomic operation occur before the
  19943. atomic operation and all memory operations after the atomic
  19944. operation occur after the atomic operation.
  19945. If these patterns are not defined, the operation will be
  19946. constructed from a compare-and-swap operation, if defined.
  19947. 'sync_old_addMODE', 'sync_old_subMODE'
  19948. 'sync_old_iorMODE', 'sync_old_andMODE'
  19949. 'sync_old_xorMODE', 'sync_old_nandMODE'
  19950. These patterns emit code for an atomic operation on memory, and
  19951. return the value that the memory contained before the operation.
  19952. Operand 0 is the result value, operand 1 is the memory on which the
  19953. atomic operation is performed, and operand 2 is the second operand
  19954. to the binary operator.
  19955. This pattern must issue any memory barrier instructions such that
  19956. all memory operations before the atomic operation occur before the
  19957. atomic operation and all memory operations after the atomic
  19958. operation occur after the atomic operation.
  19959. If these patterns are not defined, the operation will be
  19960. constructed from a compare-and-swap operation, if defined.
  19961. 'sync_new_addMODE', 'sync_new_subMODE'
  19962. 'sync_new_iorMODE', 'sync_new_andMODE'
  19963. 'sync_new_xorMODE', 'sync_new_nandMODE'
  19964. These patterns are like their 'sync_old_OP' counterparts, except
  19965. that they return the value that exists in the memory location after
  19966. the operation, rather than before the operation.
  19967. 'sync_lock_test_and_setMODE'
  19968. This pattern takes two forms, based on the capabilities of the
  19969. target. In either case, operand 0 is the result of the operand,
  19970. operand 1 is the memory on which the atomic operation is performed,
  19971. and operand 2 is the value to set in the lock.
  19972. In the ideal case, this operation is an atomic exchange operation,
  19973. in which the previous value in memory operand is copied into the
  19974. result operand, and the value operand is stored in the memory
  19975. operand.
  19976. For less capable targets, any value operand that is not the
  19977. constant 1 should be rejected with 'FAIL'. In this case the target
  19978. may use an atomic test-and-set bit operation. The result operand
  19979. should contain 1 if the bit was previously set and 0 if the bit was
  19980. previously clear. The true contents of the memory operand are
  19981. implementation defined.
  19982. This pattern must issue any memory barrier instructions such that
  19983. the pattern as a whole acts as an acquire barrier, that is all
  19984. memory operations after the pattern do not occur until the lock is
  19985. acquired.
  19986. If this pattern is not defined, the operation will be constructed
  19987. from a compare-and-swap operation, if defined.
  19988. 'sync_lock_releaseMODE'
  19989. This pattern, if defined, releases a lock set by
  19990. 'sync_lock_test_and_setMODE'. Operand 0 is the memory that
  19991. contains the lock; operand 1 is the value to store in the lock.
  19992. If the target doesn't implement full semantics for
  19993. 'sync_lock_test_and_setMODE', any value operand which is not the
  19994. constant 0 should be rejected with 'FAIL', and the true contents of
  19995. the memory operand are implementation defined.
  19996. This pattern must issue any memory barrier instructions such that
  19997. the pattern as a whole acts as a release barrier, that is the lock
  19998. is released only after all previous memory operations have
  19999. completed.
  20000. If this pattern is not defined, then a 'memory_barrier' pattern
  20001. will be emitted, followed by a store of the value to the memory
  20002. operand.
  20003. 'atomic_compare_and_swapMODE'
  20004. This pattern, if defined, emits code for an atomic compare-and-swap
  20005. operation with memory model semantics. Operand 2 is the memory on
  20006. which the atomic operation is performed. Operand 0 is an output
  20007. operand which is set to true or false based on whether the
  20008. operation succeeded. Operand 1 is an output operand which is set
  20009. to the contents of the memory before the operation was attempted.
  20010. Operand 3 is the value that is expected to be in memory. Operand 4
  20011. is the value to put in memory if the expected value is found there.
  20012. Operand 5 is set to 1 if this compare and swap is to be treated as
  20013. a weak operation. Operand 6 is the memory model to be used if the
  20014. operation is a success. Operand 7 is the memory model to be used
  20015. if the operation fails.
  20016. If memory referred to in operand 2 contains the value in operand 3,
  20017. then operand 4 is stored in memory pointed to by operand 2 and
  20018. fencing based on the memory model in operand 6 is issued.
  20019. If memory referred to in operand 2 does not contain the value in
  20020. operand 3, then fencing based on the memory model in operand 7 is
  20021. issued.
  20022. If a target does not support weak compare-and-swap operations, or
  20023. the port elects not to implement weak operations, the argument in
  20024. operand 5 can be ignored. Note a strong implementation must be
  20025. provided.
  20026. If this pattern is not provided, the '__atomic_compare_exchange'
  20027. built-in functions will utilize the legacy 'sync_compare_and_swap'
  20028. pattern with an '__ATOMIC_SEQ_CST' memory model.
  20029. 'atomic_loadMODE'
  20030. This pattern implements an atomic load operation with memory model
  20031. semantics. Operand 1 is the memory address being loaded from.
  20032. Operand 0 is the result of the load. Operand 2 is the memory model
  20033. to be used for the load operation.
  20034. If not present, the '__atomic_load' built-in function will either
  20035. resort to a normal load with memory barriers, or a compare-and-swap
  20036. operation if a normal load would not be atomic.
  20037. 'atomic_storeMODE'
  20038. This pattern implements an atomic store operation with memory model
  20039. semantics. Operand 0 is the memory address being stored to.
  20040. Operand 1 is the value to be written. Operand 2 is the memory
  20041. model to be used for the operation.
  20042. If not present, the '__atomic_store' built-in function will attempt
  20043. to perform a normal store and surround it with any required memory
  20044. fences. If the store would not be atomic, then an
  20045. '__atomic_exchange' is attempted with the result being ignored.
  20046. 'atomic_exchangeMODE'
  20047. This pattern implements an atomic exchange operation with memory
  20048. model semantics. Operand 1 is the memory location the operation is
  20049. performed on. Operand 0 is an output operand which is set to the
  20050. original value contained in the memory pointed to by operand 1.
  20051. Operand 2 is the value to be stored. Operand 3 is the memory model
  20052. to be used.
  20053. If this pattern is not present, the built-in function
  20054. '__atomic_exchange' will attempt to preform the operation with a
  20055. compare and swap loop.
  20056. 'atomic_addMODE', 'atomic_subMODE'
  20057. 'atomic_orMODE', 'atomic_andMODE'
  20058. 'atomic_xorMODE', 'atomic_nandMODE'
  20059. These patterns emit code for an atomic operation on memory with
  20060. memory model semantics. Operand 0 is the memory on which the
  20061. atomic operation is performed. Operand 1 is the second operand to
  20062. the binary operator. Operand 2 is the memory model to be used by
  20063. the operation.
  20064. If these patterns are not defined, attempts will be made to use
  20065. legacy 'sync' patterns, or equivalent patterns which return a
  20066. result. If none of these are available a compare-and-swap loop
  20067. will be used.
  20068. 'atomic_fetch_addMODE', 'atomic_fetch_subMODE'
  20069. 'atomic_fetch_orMODE', 'atomic_fetch_andMODE'
  20070. 'atomic_fetch_xorMODE', 'atomic_fetch_nandMODE'
  20071. These patterns emit code for an atomic operation on memory with
  20072. memory model semantics, and return the original value. Operand 0
  20073. is an output operand which contains the value of the memory
  20074. location before the operation was performed. Operand 1 is the
  20075. memory on which the atomic operation is performed. Operand 2 is
  20076. the second operand to the binary operator. Operand 3 is the memory
  20077. model to be used by the operation.
  20078. If these patterns are not defined, attempts will be made to use
  20079. legacy 'sync' patterns. If none of these are available a
  20080. compare-and-swap loop will be used.
  20081. 'atomic_add_fetchMODE', 'atomic_sub_fetchMODE'
  20082. 'atomic_or_fetchMODE', 'atomic_and_fetchMODE'
  20083. 'atomic_xor_fetchMODE', 'atomic_nand_fetchMODE'
  20084. These patterns emit code for an atomic operation on memory with
  20085. memory model semantics and return the result after the operation is
  20086. performed. Operand 0 is an output operand which contains the value
  20087. after the operation. Operand 1 is the memory on which the atomic
  20088. operation is performed. Operand 2 is the second operand to the
  20089. binary operator. Operand 3 is the memory model to be used by the
  20090. operation.
  20091. If these patterns are not defined, attempts will be made to use
  20092. legacy 'sync' patterns, or equivalent patterns which return the
  20093. result before the operation followed by the arithmetic operation
  20094. required to produce the result. If none of these are available a
  20095. compare-and-swap loop will be used.
  20096. 'atomic_test_and_set'
  20097. This pattern emits code for '__builtin_atomic_test_and_set'.
  20098. Operand 0 is an output operand which is set to true if the previous
  20099. previous contents of the byte was "set", and false otherwise.
  20100. Operand 1 is the 'QImode' memory to be modified. Operand 2 is the
  20101. memory model to be used.
  20102. The specific value that defines "set" is implementation defined,
  20103. and is normally based on what is performed by the native atomic
  20104. test and set instruction.
  20105. 'atomic_bit_test_and_setMODE'
  20106. 'atomic_bit_test_and_complementMODE'
  20107. 'atomic_bit_test_and_resetMODE'
  20108. These patterns emit code for an atomic bitwise operation on memory
  20109. with memory model semantics, and return the original value of the
  20110. specified bit. Operand 0 is an output operand which contains the
  20111. value of the specified bit from the memory location before the
  20112. operation was performed. Operand 1 is the memory on which the
  20113. atomic operation is performed. Operand 2 is the bit within the
  20114. operand, starting with least significant bit. Operand 3 is the
  20115. memory model to be used by the operation. Operand 4 is a flag - it
  20116. is 'const1_rtx' if operand 0 should contain the original value of
  20117. the specified bit in the least significant bit of the operand, and
  20118. 'const0_rtx' if the bit should be in its original position in the
  20119. operand. 'atomic_bit_test_and_setMODE' atomically sets the
  20120. specified bit after remembering its original value,
  20121. 'atomic_bit_test_and_complementMODE' inverts the specified bit and
  20122. 'atomic_bit_test_and_resetMODE' clears the specified bit.
  20123. If these patterns are not defined, attempts will be made to use
  20124. 'atomic_fetch_orMODE', 'atomic_fetch_xorMODE' or
  20125. 'atomic_fetch_andMODE' instruction patterns, or their 'sync'
  20126. counterparts. If none of these are available a compare-and-swap
  20127. loop will be used.
  20128. 'mem_thread_fenceMODE'
  20129. This pattern emits code required to implement a thread fence with
  20130. memory model semantics. Operand 0 is the memory model to be used.
  20131. If this pattern is not specified, all memory models except
  20132. '__ATOMIC_RELAXED' will result in issuing a 'sync_synchronize'
  20133. barrier pattern.
  20134. 'mem_signal_fenceMODE'
  20135. This pattern emits code required to implement a signal fence with
  20136. memory model semantics. Operand 0 is the memory model to be used.
  20137. This pattern should impact the compiler optimizers the same way
  20138. that mem_signal_fence does, but it does not need to issue any
  20139. barrier instructions.
  20140. If this pattern is not specified, all memory models except
  20141. '__ATOMIC_RELAXED' will result in issuing a 'sync_synchronize'
  20142. barrier pattern.
  20143. 'get_thread_pointerMODE'
  20144. 'set_thread_pointerMODE'
  20145. These patterns emit code that reads/sets the TLS thread pointer.
  20146. Currently, these are only needed if the target needs to support the
  20147. '__builtin_thread_pointer' and '__builtin_set_thread_pointer'
  20148. builtins.
  20149. The get/set patterns have a single output/input operand
  20150. respectively, with MODE intended to be 'Pmode'.
  20151. 'stack_protect_set'
  20152. This pattern, if defined, moves a 'ptr_mode' value from the memory
  20153. in operand 1 to the memory in operand 0 without leaving the value
  20154. in a register afterward. This is to avoid leaking the value some
  20155. place that an attacker might use to rewrite the stack guard slot
  20156. after having clobbered it.
  20157. If this pattern is not defined, then a plain move pattern is
  20158. generated.
  20159. 'stack_protect_test'
  20160. This pattern, if defined, compares a 'ptr_mode' value from the
  20161. memory in operand 1 with the memory in operand 0 without leaving
  20162. the value in a register afterward and branches to operand 2 if the
  20163. values were equal.
  20164. If this pattern is not defined, then a plain compare pattern and
  20165. conditional branch pattern is used.
  20166. 'clear_cache'
  20167. This pattern, if defined, flushes the instruction cache for a
  20168. region of memory. The region is bounded to by the Pmode pointers
  20169. in operand 0 inclusive and operand 1 exclusive.
  20170. If this pattern is not defined, a call to the library function
  20171. '__clear_cache' is used.
  20172. 
  20173. File: gccint.info, Node: Pattern Ordering, Next: Dependent Patterns, Prev: Standard Names, Up: Machine Desc
  20174. 16.10 When the Order of Patterns Matters
  20175. ========================================
  20176. Sometimes an insn can match more than one instruction pattern. Then the
  20177. pattern that appears first in the machine description is the one used.
  20178. Therefore, more specific patterns (patterns that will match fewer
  20179. things) and faster instructions (those that will produce better code
  20180. when they do match) should usually go first in the description.
  20181. In some cases the effect of ordering the patterns can be used to hide a
  20182. pattern when it is not valid. For example, the 68000 has an instruction
  20183. for converting a fullword to floating point and another for converting a
  20184. byte to floating point. An instruction converting an integer to
  20185. floating point could match either one. We put the pattern to convert
  20186. the fullword first to make sure that one will be used rather than the
  20187. other. (Otherwise a large integer might be generated as a single-byte
  20188. immediate quantity, which would not work.) Instead of using this
  20189. pattern ordering it would be possible to make the pattern for
  20190. convert-a-byte smart enough to deal properly with any constant value.
  20191. 
  20192. File: gccint.info, Node: Dependent Patterns, Next: Jump Patterns, Prev: Pattern Ordering, Up: Machine Desc
  20193. 16.11 Interdependence of Patterns
  20194. =================================
  20195. In some cases machines support instructions identical except for the
  20196. machine mode of one or more operands. For example, there may be
  20197. "sign-extend halfword" and "sign-extend byte" instructions whose
  20198. patterns are
  20199. (set (match_operand:SI 0 ...)
  20200. (extend:SI (match_operand:HI 1 ...)))
  20201. (set (match_operand:SI 0 ...)
  20202. (extend:SI (match_operand:QI 1 ...)))
  20203. Constant integers do not specify a machine mode, so an instruction to
  20204. extend a constant value could match either pattern. The pattern it
  20205. actually will match is the one that appears first in the file. For
  20206. correct results, this must be the one for the widest possible mode
  20207. ('HImode', here). If the pattern matches the 'QImode' instruction, the
  20208. results will be incorrect if the constant value does not actually fit
  20209. that mode.
  20210. Such instructions to extend constants are rarely generated because they
  20211. are optimized away, but they do occasionally happen in nonoptimized
  20212. compilations.
  20213. If a constraint in a pattern allows a constant, the reload pass may
  20214. replace a register with a constant permitted by the constraint in some
  20215. cases. Similarly for memory references. Because of this substitution,
  20216. you should not provide separate patterns for increment and decrement
  20217. instructions. Instead, they should be generated from the same pattern
  20218. that supports register-register add insns by examining the operands and
  20219. generating the appropriate machine instruction.
  20220. 
  20221. File: gccint.info, Node: Jump Patterns, Next: Looping Patterns, Prev: Dependent Patterns, Up: Machine Desc
  20222. 16.12 Defining Jump Instruction Patterns
  20223. ========================================
  20224. GCC does not assume anything about how the machine realizes jumps. The
  20225. machine description should define a single pattern, usually a
  20226. 'define_expand', which expands to all the required insns.
  20227. Usually, this would be a comparison insn to set the condition code and
  20228. a separate branch insn testing the condition code and branching or not
  20229. according to its value. For many machines, however, separating compares
  20230. and branches is limiting, which is why the more flexible approach with
  20231. one 'define_expand' is used in GCC. The machine description becomes
  20232. clearer for architectures that have compare-and-branch instructions but
  20233. no condition code. It also works better when different sets of
  20234. comparison operators are supported by different kinds of conditional
  20235. branches (e.g. integer vs. floating-point), or by conditional branches
  20236. with respect to conditional stores.
  20237. Two separate insns are always used if the machine description
  20238. represents a condition code register using the legacy RTL expression
  20239. '(cc0)', and on most machines that use a separate condition code
  20240. register (*note Condition Code::). For machines that use '(cc0)', in
  20241. fact, the set and use of the condition code must be separate and
  20242. adjacent(1), thus allowing flags in 'cc_status' to be used (*note
  20243. Condition Code::) and so that the comparison and branch insns could be
  20244. located from each other by using the functions 'prev_cc0_setter' and
  20245. 'next_cc0_user'.
  20246. Even in this case having a single entry point for conditional branches
  20247. is advantageous, because it handles equally well the case where a single
  20248. comparison instruction records the results of both signed and unsigned
  20249. comparison of the given operands (with the branch insns coming in
  20250. distinct signed and unsigned flavors) as in the x86 or SPARC, and the
  20251. case where there are distinct signed and unsigned compare instructions
  20252. and only one set of conditional branch instructions as in the PowerPC.
  20253. ---------- Footnotes ----------
  20254. (1) 'note' insns can separate them, though.
  20255. 
  20256. File: gccint.info, Node: Looping Patterns, Next: Insn Canonicalizations, Prev: Jump Patterns, Up: Machine Desc
  20257. 16.13 Defining Looping Instruction Patterns
  20258. ===========================================
  20259. Some machines have special jump instructions that can be utilized to
  20260. make loops more efficient. A common example is the 68000 'dbra'
  20261. instruction which performs a decrement of a register and a branch if the
  20262. result was greater than zero. Other machines, in particular digital
  20263. signal processors (DSPs), have special block repeat instructions to
  20264. provide low-overhead loop support. For example, the TI TMS320C3x/C4x
  20265. DSPs have a block repeat instruction that loads special registers to
  20266. mark the top and end of a loop and to count the number of loop
  20267. iterations. This avoids the need for fetching and executing a
  20268. 'dbra'-like instruction and avoids pipeline stalls associated with the
  20269. jump.
  20270. GCC has three special named patterns to support low overhead looping.
  20271. They are 'decrement_and_branch_until_zero', 'doloop_begin', and
  20272. 'doloop_end'. The first pattern, 'decrement_and_branch_until_zero', is
  20273. not emitted during RTL generation but may be emitted during the
  20274. instruction combination phase. This requires the assistance of the loop
  20275. optimizer, using information collected during strength reduction, to
  20276. reverse a loop to count down to zero. Some targets also require the
  20277. loop optimizer to add a 'REG_NONNEG' note to indicate that the iteration
  20278. count is always positive. This is needed if the target performs a
  20279. signed loop termination test. For example, the 68000 uses a pattern
  20280. similar to the following for its 'dbra' instruction:
  20281. (define_insn "decrement_and_branch_until_zero"
  20282. [(set (pc)
  20283. (if_then_else
  20284. (ge (plus:SI (match_operand:SI 0 "general_operand" "+d*am")
  20285. (const_int -1))
  20286. (const_int 0))
  20287. (label_ref (match_operand 1 "" ""))
  20288. (pc)))
  20289. (set (match_dup 0)
  20290. (plus:SI (match_dup 0)
  20291. (const_int -1)))]
  20292. "find_reg_note (insn, REG_NONNEG, 0)"
  20293. "...")
  20294. Note that since the insn is both a jump insn and has an output, it must
  20295. deal with its own reloads, hence the 'm' constraints. Also note that
  20296. since this insn is generated by the instruction combination phase
  20297. combining two sequential insns together into an implicit parallel insn,
  20298. the iteration counter needs to be biased by the same amount as the
  20299. decrement operation, in this case -1. Note that the following similar
  20300. pattern will not be matched by the combiner.
  20301. (define_insn "decrement_and_branch_until_zero"
  20302. [(set (pc)
  20303. (if_then_else
  20304. (ge (match_operand:SI 0 "general_operand" "+d*am")
  20305. (const_int 1))
  20306. (label_ref (match_operand 1 "" ""))
  20307. (pc)))
  20308. (set (match_dup 0)
  20309. (plus:SI (match_dup 0)
  20310. (const_int -1)))]
  20311. "find_reg_note (insn, REG_NONNEG, 0)"
  20312. "...")
  20313. The other two special looping patterns, 'doloop_begin' and
  20314. 'doloop_end', are emitted by the loop optimizer for certain well-behaved
  20315. loops with a finite number of loop iterations using information
  20316. collected during strength reduction.
  20317. The 'doloop_end' pattern describes the actual looping instruction (or
  20318. the implicit looping operation) and the 'doloop_begin' pattern is an
  20319. optional companion pattern that can be used for initialization needed
  20320. for some low-overhead looping instructions.
  20321. Note that some machines require the actual looping instruction to be
  20322. emitted at the top of the loop (e.g., the TMS320C3x/C4x DSPs). Emitting
  20323. the true RTL for a looping instruction at the top of the loop can cause
  20324. problems with flow analysis. So instead, a dummy 'doloop' insn is
  20325. emitted at the end of the loop. The machine dependent reorg pass checks
  20326. for the presence of this 'doloop' insn and then searches back to the top
  20327. of the loop, where it inserts the true looping insn (provided there are
  20328. no instructions in the loop which would cause problems). Any additional
  20329. labels can be emitted at this point. In addition, if the desired
  20330. special iteration counter register was not allocated, this machine
  20331. dependent reorg pass could emit a traditional compare and jump
  20332. instruction pair.
  20333. The essential difference between the 'decrement_and_branch_until_zero'
  20334. and the 'doloop_end' patterns is that the loop optimizer allocates an
  20335. additional pseudo register for the latter as an iteration counter. This
  20336. pseudo register cannot be used within the loop (i.e., general induction
  20337. variables cannot be derived from it), however, in many cases the loop
  20338. induction variable may become redundant and removed by the flow pass.
  20339. 
  20340. File: gccint.info, Node: Insn Canonicalizations, Next: Expander Definitions, Prev: Looping Patterns, Up: Machine Desc
  20341. 16.14 Canonicalization of Instructions
  20342. ======================================
  20343. There are often cases where multiple RTL expressions could represent an
  20344. operation performed by a single machine instruction. This situation is
  20345. most commonly encountered with logical, branch, and multiply-accumulate
  20346. instructions. In such cases, the compiler attempts to convert these
  20347. multiple RTL expressions into a single canonical form to reduce the
  20348. number of insn patterns required.
  20349. In addition to algebraic simplifications, following canonicalizations
  20350. are performed:
  20351. * For commutative and comparison operators, a constant is always made
  20352. the second operand. If a machine only supports a constant as the
  20353. second operand, only patterns that match a constant in the second
  20354. operand need be supplied.
  20355. * For associative operators, a sequence of operators will always
  20356. chain to the left; for instance, only the left operand of an
  20357. integer 'plus' can itself be a 'plus'. 'and', 'ior', 'xor',
  20358. 'plus', 'mult', 'smin', 'smax', 'umin', and 'umax' are associative
  20359. when applied to integers, and sometimes to floating-point.
  20360. * For these operators, if only one operand is a 'neg', 'not', 'mult',
  20361. 'plus', or 'minus' expression, it will be the first operand.
  20362. * In combinations of 'neg', 'mult', 'plus', and 'minus', the 'neg'
  20363. operations (if any) will be moved inside the operations as far as
  20364. possible. For instance, '(neg (mult A B))' is canonicalized as
  20365. '(mult (neg A) B)', but '(plus (mult (neg B) C) A)' is
  20366. canonicalized as '(minus A (mult B C))'.
  20367. * For the 'compare' operator, a constant is always the second operand
  20368. if the first argument is a condition code register or '(cc0)'.
  20369. * An operand of 'neg', 'not', 'mult', 'plus', or 'minus' is made the
  20370. first operand under the same conditions as above.
  20371. * '(ltu (plus A B) B)' is converted to '(ltu (plus A B) A)'.
  20372. Likewise with 'geu' instead of 'ltu'.
  20373. * '(minus X (const_int N))' is converted to '(plus X (const_int
  20374. -N))'.
  20375. * Within address computations (i.e., inside 'mem'), a left shift is
  20376. converted into the appropriate multiplication by a power of two.
  20377. * De Morgan's Law is used to move bitwise negation inside a bitwise
  20378. logical-and or logical-or operation. If this results in only one
  20379. operand being a 'not' expression, it will be the first one.
  20380. A machine that has an instruction that performs a bitwise
  20381. logical-and of one operand with the bitwise negation of the other
  20382. should specify the pattern for that instruction as
  20383. (define_insn ""
  20384. [(set (match_operand:M 0 ...)
  20385. (and:M (not:M (match_operand:M 1 ...))
  20386. (match_operand:M 2 ...)))]
  20387. "..."
  20388. "...")
  20389. Similarly, a pattern for a "NAND" instruction should be written
  20390. (define_insn ""
  20391. [(set (match_operand:M 0 ...)
  20392. (ior:M (not:M (match_operand:M 1 ...))
  20393. (not:M (match_operand:M 2 ...))))]
  20394. "..."
  20395. "...")
  20396. In both cases, it is not necessary to include patterns for the many
  20397. logically equivalent RTL expressions.
  20398. * The only possible RTL expressions involving both bitwise
  20399. exclusive-or and bitwise negation are '(xor:M X Y)' and '(not:M
  20400. (xor:M X Y))'.
  20401. * The sum of three items, one of which is a constant, will only
  20402. appear in the form
  20403. (plus:M (plus:M X Y) CONSTANT)
  20404. * Equality comparisons of a group of bits (usually a single bit) with
  20405. zero will be written using 'zero_extract' rather than the
  20406. equivalent 'and' or 'sign_extract' operations.
  20407. * '(sign_extend:M1 (mult:M2 (sign_extend:M2 X) (sign_extend:M2 Y)))'
  20408. is converted to '(mult:M1 (sign_extend:M1 X) (sign_extend:M1 Y))',
  20409. and likewise for 'zero_extend'.
  20410. * '(sign_extend:M1 (mult:M2 (ashiftrt:M2 X S) (sign_extend:M2 Y)))'
  20411. is converted to '(mult:M1 (sign_extend:M1 (ashiftrt:M2 X S))
  20412. (sign_extend:M1 Y))', and likewise for patterns using 'zero_extend'
  20413. and 'lshiftrt'. If the second operand of 'mult' is also a shift,
  20414. then that is extended also. This transformation is only applied
  20415. when it can be proven that the original operation had sufficient
  20416. precision to prevent overflow.
  20417. Further canonicalization rules are defined in the function
  20418. 'commutative_operand_precedence' in 'gcc/rtlanal.c'.
  20419. 
  20420. File: gccint.info, Node: Expander Definitions, Next: Insn Splitting, Prev: Insn Canonicalizations, Up: Machine Desc
  20421. 16.15 Defining RTL Sequences for Code Generation
  20422. ================================================
  20423. On some target machines, some standard pattern names for RTL generation
  20424. cannot be handled with single insn, but a sequence of RTL insns can
  20425. represent them. For these target machines, you can write a
  20426. 'define_expand' to specify how to generate the sequence of RTL.
  20427. A 'define_expand' is an RTL expression that looks almost like a
  20428. 'define_insn'; but, unlike the latter, a 'define_expand' is used only
  20429. for RTL generation and it can produce more than one RTL insn.
  20430. A 'define_expand' RTX has four operands:
  20431. * The name. Each 'define_expand' must have a name, since the only
  20432. use for it is to refer to it by name.
  20433. * The RTL template. This is a vector of RTL expressions representing
  20434. a sequence of separate instructions. Unlike 'define_insn', there
  20435. is no implicit surrounding 'PARALLEL'.
  20436. * The condition, a string containing a C expression. This expression
  20437. is used to express how the availability of this pattern depends on
  20438. subclasses of target machine, selected by command-line options when
  20439. GCC is run. This is just like the condition of a 'define_insn'
  20440. that has a standard name. Therefore, the condition (if present)
  20441. may not depend on the data in the insn being matched, but only the
  20442. target-machine-type flags. The compiler needs to test these
  20443. conditions during initialization in order to learn exactly which
  20444. named instructions are available in a particular run.
  20445. * The preparation statements, a string containing zero or more C
  20446. statements which are to be executed before RTL code is generated
  20447. from the RTL template.
  20448. Usually these statements prepare temporary registers for use as
  20449. internal operands in the RTL template, but they can also generate
  20450. RTL insns directly by calling routines such as 'emit_insn', etc.
  20451. Any such insns precede the ones that come from the RTL template.
  20452. * Optionally, a vector containing the values of attributes. *Note
  20453. Insn Attributes::.
  20454. Every RTL insn emitted by a 'define_expand' must match some
  20455. 'define_insn' in the machine description. Otherwise, the compiler will
  20456. crash when trying to generate code for the insn or trying to optimize
  20457. it.
  20458. The RTL template, in addition to controlling generation of RTL insns,
  20459. also describes the operands that need to be specified when this pattern
  20460. is used. In particular, it gives a predicate for each operand.
  20461. A true operand, which needs to be specified in order to generate RTL
  20462. from the pattern, should be described with a 'match_operand' in its
  20463. first occurrence in the RTL template. This enters information on the
  20464. operand's predicate into the tables that record such things. GCC uses
  20465. the information to preload the operand into a register if that is
  20466. required for valid RTL code. If the operand is referred to more than
  20467. once, subsequent references should use 'match_dup'.
  20468. The RTL template may also refer to internal "operands" which are
  20469. temporary registers or labels used only within the sequence made by the
  20470. 'define_expand'. Internal operands are substituted into the RTL
  20471. template with 'match_dup', never with 'match_operand'. The values of
  20472. the internal operands are not passed in as arguments by the compiler
  20473. when it requests use of this pattern. Instead, they are computed within
  20474. the pattern, in the preparation statements. These statements compute
  20475. the values and store them into the appropriate elements of 'operands' so
  20476. that 'match_dup' can find them.
  20477. There are two special macros defined for use in the preparation
  20478. statements: 'DONE' and 'FAIL'. Use them with a following semicolon, as
  20479. a statement.
  20480. 'DONE'
  20481. Use the 'DONE' macro to end RTL generation for the pattern. The
  20482. only RTL insns resulting from the pattern on this occasion will be
  20483. those already emitted by explicit calls to 'emit_insn' within the
  20484. preparation statements; the RTL template will not be generated.
  20485. 'FAIL'
  20486. Make the pattern fail on this occasion. When a pattern fails, it
  20487. means that the pattern was not truly available. The calling
  20488. routines in the compiler will try other strategies for code
  20489. generation using other patterns.
  20490. Failure is currently supported only for binary (addition,
  20491. multiplication, shifting, etc.) and bit-field ('extv', 'extzv',
  20492. and 'insv') operations.
  20493. If the preparation falls through (invokes neither 'DONE' nor 'FAIL'),
  20494. then the 'define_expand' acts like a 'define_insn' in that the RTL
  20495. template is used to generate the insn.
  20496. The RTL template is not used for matching, only for generating the
  20497. initial insn list. If the preparation statement always invokes 'DONE'
  20498. or 'FAIL', the RTL template may be reduced to a simple list of operands,
  20499. such as this example:
  20500. (define_expand "addsi3"
  20501. [(match_operand:SI 0 "register_operand" "")
  20502. (match_operand:SI 1 "register_operand" "")
  20503. (match_operand:SI 2 "register_operand" "")]
  20504. ""
  20505. "
  20506. {
  20507. handle_add (operands[0], operands[1], operands[2]);
  20508. DONE;
  20509. }")
  20510. Here is an example, the definition of left-shift for the SPUR chip:
  20511. (define_expand "ashlsi3"
  20512. [(set (match_operand:SI 0 "register_operand" "")
  20513. (ashift:SI
  20514. (match_operand:SI 1 "register_operand" "")
  20515. (match_operand:SI 2 "nonmemory_operand" "")))]
  20516. ""
  20517. "
  20518. {
  20519. if (GET_CODE (operands[2]) != CONST_INT
  20520. || (unsigned) INTVAL (operands[2]) > 3)
  20521. FAIL;
  20522. }")
  20523. This example uses 'define_expand' so that it can generate an RTL insn
  20524. for shifting when the shift-count is in the supported range of 0 to 3
  20525. but fail in other cases where machine insns aren't available. When it
  20526. fails, the compiler tries another strategy using different patterns
  20527. (such as, a library call).
  20528. If the compiler were able to handle nontrivial condition-strings in
  20529. patterns with names, then it would be possible to use a 'define_insn' in
  20530. that case. Here is another case (zero-extension on the 68000) which
  20531. makes more use of the power of 'define_expand':
  20532. (define_expand "zero_extendhisi2"
  20533. [(set (match_operand:SI 0 "general_operand" "")
  20534. (const_int 0))
  20535. (set (strict_low_part
  20536. (subreg:HI
  20537. (match_dup 0)
  20538. 0))
  20539. (match_operand:HI 1 "general_operand" ""))]
  20540. ""
  20541. "operands[1] = make_safe_from (operands[1], operands[0]);")
  20542. Here two RTL insns are generated, one to clear the entire output operand
  20543. and the other to copy the input operand into its low half. This
  20544. sequence is incorrect if the input operand refers to [the old value of]
  20545. the output operand, so the preparation statement makes sure this isn't
  20546. so. The function 'make_safe_from' copies the 'operands[1]' into a
  20547. temporary register if it refers to 'operands[0]'. It does this by
  20548. emitting another RTL insn.
  20549. Finally, a third example shows the use of an internal operand.
  20550. Zero-extension on the SPUR chip is done by 'and'-ing the result against
  20551. a halfword mask. But this mask cannot be represented by a 'const_int'
  20552. because the constant value is too large to be legitimate on this
  20553. machine. So it must be copied into a register with 'force_reg' and then
  20554. the register used in the 'and'.
  20555. (define_expand "zero_extendhisi2"
  20556. [(set (match_operand:SI 0 "register_operand" "")
  20557. (and:SI (subreg:SI
  20558. (match_operand:HI 1 "register_operand" "")
  20559. 0)
  20560. (match_dup 2)))]
  20561. ""
  20562. "operands[2]
  20563. = force_reg (SImode, GEN_INT (65535)); ")
  20564. _Note:_ If the 'define_expand' is used to serve a standard binary or
  20565. unary arithmetic operation or a bit-field operation, then the last insn
  20566. it generates must not be a 'code_label', 'barrier' or 'note'. It must
  20567. be an 'insn', 'jump_insn' or 'call_insn'. If you don't need a real insn
  20568. at the end, emit an insn to copy the result of the operation into
  20569. itself. Such an insn will generate no code, but it can avoid problems
  20570. in the compiler.
  20571. 
  20572. File: gccint.info, Node: Insn Splitting, Next: Including Patterns, Prev: Expander Definitions, Up: Machine Desc
  20573. 16.16 Defining How to Split Instructions
  20574. ========================================
  20575. There are two cases where you should specify how to split a pattern into
  20576. multiple insns. On machines that have instructions requiring delay
  20577. slots (*note Delay Slots::) or that have instructions whose output is
  20578. not available for multiple cycles (*note Processor pipeline
  20579. description::), the compiler phases that optimize these cases need to be
  20580. able to move insns into one-instruction delay slots. However, some
  20581. insns may generate more than one machine instruction. These insns
  20582. cannot be placed into a delay slot.
  20583. Often you can rewrite the single insn as a list of individual insns,
  20584. each corresponding to one machine instruction. The disadvantage of
  20585. doing so is that it will cause the compilation to be slower and require
  20586. more space. If the resulting insns are too complex, it may also
  20587. suppress some optimizations. The compiler splits the insn if there is a
  20588. reason to believe that it might improve instruction or delay slot
  20589. scheduling.
  20590. The insn combiner phase also splits putative insns. If three insns are
  20591. merged into one insn with a complex expression that cannot be matched by
  20592. some 'define_insn' pattern, the combiner phase attempts to split the
  20593. complex pattern into two insns that are recognized. Usually it can
  20594. break the complex pattern into two patterns by splitting out some
  20595. subexpression. However, in some other cases, such as performing an
  20596. addition of a large constant in two insns on a RISC machine, the way to
  20597. split the addition into two insns is machine-dependent.
  20598. The 'define_split' definition tells the compiler how to split a complex
  20599. insn into several simpler insns. It looks like this:
  20600. (define_split
  20601. [INSN-PATTERN]
  20602. "CONDITION"
  20603. [NEW-INSN-PATTERN-1
  20604. NEW-INSN-PATTERN-2
  20605. ...]
  20606. "PREPARATION-STATEMENTS")
  20607. INSN-PATTERN is a pattern that needs to be split and CONDITION is the
  20608. final condition to be tested, as in a 'define_insn'. When an insn
  20609. matching INSN-PATTERN and satisfying CONDITION is found, it is replaced
  20610. in the insn list with the insns given by NEW-INSN-PATTERN-1,
  20611. NEW-INSN-PATTERN-2, etc.
  20612. The PREPARATION-STATEMENTS are similar to those statements that are
  20613. specified for 'define_expand' (*note Expander Definitions::) and are
  20614. executed before the new RTL is generated to prepare for the generated
  20615. code or emit some insns whose pattern is not fixed. Unlike those in
  20616. 'define_expand', however, these statements must not generate any new
  20617. pseudo-registers. Once reload has completed, they also must not
  20618. allocate any space in the stack frame.
  20619. Patterns are matched against INSN-PATTERN in two different
  20620. circumstances. If an insn needs to be split for delay slot scheduling
  20621. or insn scheduling, the insn is already known to be valid, which means
  20622. that it must have been matched by some 'define_insn' and, if
  20623. 'reload_completed' is nonzero, is known to satisfy the constraints of
  20624. that 'define_insn'. In that case, the new insn patterns must also be
  20625. insns that are matched by some 'define_insn' and, if 'reload_completed'
  20626. is nonzero, must also satisfy the constraints of those definitions.
  20627. As an example of this usage of 'define_split', consider the following
  20628. example from 'a29k.md', which splits a 'sign_extend' from 'HImode' to
  20629. 'SImode' into a pair of shift insns:
  20630. (define_split
  20631. [(set (match_operand:SI 0 "gen_reg_operand" "")
  20632. (sign_extend:SI (match_operand:HI 1 "gen_reg_operand" "")))]
  20633. ""
  20634. [(set (match_dup 0)
  20635. (ashift:SI (match_dup 1)
  20636. (const_int 16)))
  20637. (set (match_dup 0)
  20638. (ashiftrt:SI (match_dup 0)
  20639. (const_int 16)))]
  20640. "
  20641. { operands[1] = gen_lowpart (SImode, operands[1]); }")
  20642. When the combiner phase tries to split an insn pattern, it is always
  20643. the case that the pattern is _not_ matched by any 'define_insn'. The
  20644. combiner pass first tries to split a single 'set' expression and then
  20645. the same 'set' expression inside a 'parallel', but followed by a
  20646. 'clobber' of a pseudo-reg to use as a scratch register. In these cases,
  20647. the combiner expects exactly two new insn patterns to be generated. It
  20648. will verify that these patterns match some 'define_insn' definitions, so
  20649. you need not do this test in the 'define_split' (of course, there is no
  20650. point in writing a 'define_split' that will never produce insns that
  20651. match).
  20652. Here is an example of this use of 'define_split', taken from
  20653. 'rs6000.md':
  20654. (define_split
  20655. [(set (match_operand:SI 0 "gen_reg_operand" "")
  20656. (plus:SI (match_operand:SI 1 "gen_reg_operand" "")
  20657. (match_operand:SI 2 "non_add_cint_operand" "")))]
  20658. ""
  20659. [(set (match_dup 0) (plus:SI (match_dup 1) (match_dup 3)))
  20660. (set (match_dup 0) (plus:SI (match_dup 0) (match_dup 4)))]
  20661. "
  20662. {
  20663. int low = INTVAL (operands[2]) & 0xffff;
  20664. int high = (unsigned) INTVAL (operands[2]) >> 16;
  20665. if (low & 0x8000)
  20666. high++, low |= 0xffff0000;
  20667. operands[3] = GEN_INT (high << 16);
  20668. operands[4] = GEN_INT (low);
  20669. }")
  20670. Here the predicate 'non_add_cint_operand' matches any 'const_int' that
  20671. is _not_ a valid operand of a single add insn. The add with the smaller
  20672. displacement is written so that it can be substituted into the address
  20673. of a subsequent operation.
  20674. An example that uses a scratch register, from the same file, generates
  20675. an equality comparison of a register and a large constant:
  20676. (define_split
  20677. [(set (match_operand:CC 0 "cc_reg_operand" "")
  20678. (compare:CC (match_operand:SI 1 "gen_reg_operand" "")
  20679. (match_operand:SI 2 "non_short_cint_operand" "")))
  20680. (clobber (match_operand:SI 3 "gen_reg_operand" ""))]
  20681. "find_single_use (operands[0], insn, 0)
  20682. && (GET_CODE (*find_single_use (operands[0], insn, 0)) == EQ
  20683. || GET_CODE (*find_single_use (operands[0], insn, 0)) == NE)"
  20684. [(set (match_dup 3) (xor:SI (match_dup 1) (match_dup 4)))
  20685. (set (match_dup 0) (compare:CC (match_dup 3) (match_dup 5)))]
  20686. "
  20687. {
  20688. /* Get the constant we are comparing against, C, and see what it
  20689. looks like sign-extended to 16 bits. Then see what constant
  20690. could be XOR'ed with C to get the sign-extended value. */
  20691. int c = INTVAL (operands[2]);
  20692. int sextc = (c << 16) >> 16;
  20693. int xorv = c ^ sextc;
  20694. operands[4] = GEN_INT (xorv);
  20695. operands[5] = GEN_INT (sextc);
  20696. }")
  20697. To avoid confusion, don't write a single 'define_split' that accepts
  20698. some insns that match some 'define_insn' as well as some insns that
  20699. don't. Instead, write two separate 'define_split' definitions, one for
  20700. the insns that are valid and one for the insns that are not valid.
  20701. The splitter is allowed to split jump instructions into sequence of
  20702. jumps or create new jumps in while splitting non-jump instructions. As
  20703. the central flowgraph and branch prediction information needs to be
  20704. updated, several restriction apply.
  20705. Splitting of jump instruction into sequence that over by another jump
  20706. instruction is always valid, as compiler expect identical behavior of
  20707. new jump. When new sequence contains multiple jump instructions or new
  20708. labels, more assistance is needed. Splitter is required to create only
  20709. unconditional jumps, or simple conditional jump instructions.
  20710. Additionally it must attach a 'REG_BR_PROB' note to each conditional
  20711. jump. A global variable 'split_branch_probability' holds the
  20712. probability of the original branch in case it was a simple conditional
  20713. jump, -1 otherwise. To simplify recomputing of edge frequencies, the
  20714. new sequence is required to have only forward jumps to the newly created
  20715. labels.
  20716. For the common case where the pattern of a define_split exactly matches
  20717. the pattern of a define_insn, use 'define_insn_and_split'. It looks
  20718. like this:
  20719. (define_insn_and_split
  20720. [INSN-PATTERN]
  20721. "CONDITION"
  20722. "OUTPUT-TEMPLATE"
  20723. "SPLIT-CONDITION"
  20724. [NEW-INSN-PATTERN-1
  20725. NEW-INSN-PATTERN-2
  20726. ...]
  20727. "PREPARATION-STATEMENTS"
  20728. [INSN-ATTRIBUTES])
  20729. INSN-PATTERN, CONDITION, OUTPUT-TEMPLATE, and INSN-ATTRIBUTES are used
  20730. as in 'define_insn'. The NEW-INSN-PATTERN vector and the
  20731. PREPARATION-STATEMENTS are used as in a 'define_split'. The
  20732. SPLIT-CONDITION is also used as in 'define_split', with the additional
  20733. behavior that if the condition starts with '&&', the condition used for
  20734. the split will be the constructed as a logical "and" of the split
  20735. condition with the insn condition. For example, from i386.md:
  20736. (define_insn_and_split "zero_extendhisi2_and"
  20737. [(set (match_operand:SI 0 "register_operand" "=r")
  20738. (zero_extend:SI (match_operand:HI 1 "register_operand" "0")))
  20739. (clobber (reg:CC 17))]
  20740. "TARGET_ZERO_EXTEND_WITH_AND && !optimize_size"
  20741. "#"
  20742. "&& reload_completed"
  20743. [(parallel [(set (match_dup 0)
  20744. (and:SI (match_dup 0) (const_int 65535)))
  20745. (clobber (reg:CC 17))])]
  20746. ""
  20747. [(set_attr "type" "alu1")])
  20748. In this case, the actual split condition will be
  20749. 'TARGET_ZERO_EXTEND_WITH_AND && !optimize_size && reload_completed'.
  20750. The 'define_insn_and_split' construction provides exactly the same
  20751. functionality as two separate 'define_insn' and 'define_split' patterns.
  20752. It exists for compactness, and as a maintenance tool to prevent having
  20753. to ensure the two patterns' templates match.
  20754. 
  20755. File: gccint.info, Node: Including Patterns, Next: Peephole Definitions, Prev: Insn Splitting, Up: Machine Desc
  20756. 16.17 Including Patterns in Machine Descriptions.
  20757. =================================================
  20758. The 'include' pattern tells the compiler tools where to look for
  20759. patterns that are in files other than in the file '.md'. This is used
  20760. only at build time and there is no preprocessing allowed.
  20761. It looks like:
  20762. (include
  20763. PATHNAME)
  20764. For example:
  20765. (include "filestuff")
  20766. Where PATHNAME is a string that specifies the location of the file,
  20767. specifies the include file to be in 'gcc/config/target/filestuff'. The
  20768. directory 'gcc/config/target' is regarded as the default directory.
  20769. Machine descriptions may be split up into smaller more manageable
  20770. subsections and placed into subdirectories.
  20771. By specifying:
  20772. (include "BOGUS/filestuff")
  20773. the include file is specified to be in
  20774. 'gcc/config/TARGET/BOGUS/filestuff'.
  20775. Specifying an absolute path for the include file such as;
  20776. (include "/u2/BOGUS/filestuff")
  20777. is permitted but is not encouraged.
  20778. 16.17.1 RTL Generation Tool Options for Directory Search
  20779. --------------------------------------------------------
  20780. The '-IDIR' option specifies directories to search for machine
  20781. descriptions. For example:
  20782. genrecog -I/p1/abc/proc1 -I/p2/abcd/pro2 target.md
  20783. Add the directory DIR to the head of the list of directories to be
  20784. searched for header files. This can be used to override a system
  20785. machine definition file, substituting your own version, since these
  20786. directories are searched before the default machine description file
  20787. directories. If you use more than one '-I' option, the directories are
  20788. scanned in left-to-right order; the standard default directory come
  20789. after.
  20790. 
  20791. File: gccint.info, Node: Peephole Definitions, Next: Insn Attributes, Prev: Including Patterns, Up: Machine Desc
  20792. 16.18 Machine-Specific Peephole Optimizers
  20793. ==========================================
  20794. In addition to instruction patterns the 'md' file may contain
  20795. definitions of machine-specific peephole optimizations.
  20796. The combiner does not notice certain peephole optimizations when the
  20797. data flow in the program does not suggest that it should try them. For
  20798. example, sometimes two consecutive insns related in purpose can be
  20799. combined even though the second one does not appear to use a register
  20800. computed in the first one. A machine-specific peephole optimizer can
  20801. detect such opportunities.
  20802. There are two forms of peephole definitions that may be used. The
  20803. original 'define_peephole' is run at assembly output time to match insns
  20804. and substitute assembly text. Use of 'define_peephole' is deprecated.
  20805. A newer 'define_peephole2' matches insns and substitutes new insns.
  20806. The 'peephole2' pass is run after register allocation but before
  20807. scheduling, which may result in much better code for targets that do
  20808. scheduling.
  20809. * Menu:
  20810. * define_peephole:: RTL to Text Peephole Optimizers
  20811. * define_peephole2:: RTL to RTL Peephole Optimizers
  20812. 
  20813. File: gccint.info, Node: define_peephole, Next: define_peephole2, Up: Peephole Definitions
  20814. 16.18.1 RTL to Text Peephole Optimizers
  20815. ---------------------------------------
  20816. A definition looks like this:
  20817. (define_peephole
  20818. [INSN-PATTERN-1
  20819. INSN-PATTERN-2
  20820. ...]
  20821. "CONDITION"
  20822. "TEMPLATE"
  20823. "OPTIONAL-INSN-ATTRIBUTES")
  20824. The last string operand may be omitted if you are not using any
  20825. machine-specific information in this machine description. If present,
  20826. it must obey the same rules as in a 'define_insn'.
  20827. In this skeleton, INSN-PATTERN-1 and so on are patterns to match
  20828. consecutive insns. The optimization applies to a sequence of insns when
  20829. INSN-PATTERN-1 matches the first one, INSN-PATTERN-2 matches the next,
  20830. and so on.
  20831. Each of the insns matched by a peephole must also match a
  20832. 'define_insn'. Peepholes are checked only at the last stage just before
  20833. code generation, and only optionally. Therefore, any insn which would
  20834. match a peephole but no 'define_insn' will cause a crash in code
  20835. generation in an unoptimized compilation, or at various optimization
  20836. stages.
  20837. The operands of the insns are matched with 'match_operands',
  20838. 'match_operator', and 'match_dup', as usual. What is not usual is that
  20839. the operand numbers apply to all the insn patterns in the definition.
  20840. So, you can check for identical operands in two insns by using
  20841. 'match_operand' in one insn and 'match_dup' in the other.
  20842. The operand constraints used in 'match_operand' patterns do not have
  20843. any direct effect on the applicability of the peephole, but they will be
  20844. validated afterward, so make sure your constraints are general enough to
  20845. apply whenever the peephole matches. If the peephole matches but the
  20846. constraints are not satisfied, the compiler will crash.
  20847. It is safe to omit constraints in all the operands of the peephole; or
  20848. you can write constraints which serve as a double-check on the criteria
  20849. previously tested.
  20850. Once a sequence of insns matches the patterns, the CONDITION is
  20851. checked. This is a C expression which makes the final decision whether
  20852. to perform the optimization (we do so if the expression is nonzero). If
  20853. CONDITION is omitted (in other words, the string is empty) then the
  20854. optimization is applied to every sequence of insns that matches the
  20855. patterns.
  20856. The defined peephole optimizations are applied after register
  20857. allocation is complete. Therefore, the peephole definition can check
  20858. which operands have ended up in which kinds of registers, just by
  20859. looking at the operands.
  20860. The way to refer to the operands in CONDITION is to write 'operands[I]'
  20861. for operand number I (as matched by '(match_operand I ...)'). Use the
  20862. variable 'insn' to refer to the last of the insns being matched; use
  20863. 'prev_active_insn' to find the preceding insns.
  20864. When optimizing computations with intermediate results, you can use
  20865. CONDITION to match only when the intermediate results are not used
  20866. elsewhere. Use the C expression 'dead_or_set_p (INSN, OP)', where INSN
  20867. is the insn in which you expect the value to be used for the last time
  20868. (from the value of 'insn', together with use of 'prev_nonnote_insn'),
  20869. and OP is the intermediate value (from 'operands[I]').
  20870. Applying the optimization means replacing the sequence of insns with
  20871. one new insn. The TEMPLATE controls ultimate output of assembler code
  20872. for this combined insn. It works exactly like the template of a
  20873. 'define_insn'. Operand numbers in this template are the same ones used
  20874. in matching the original sequence of insns.
  20875. The result of a defined peephole optimizer does not need to match any
  20876. of the insn patterns in the machine description; it does not even have
  20877. an opportunity to match them. The peephole optimizer definition itself
  20878. serves as the insn pattern to control how the insn is output.
  20879. Defined peephole optimizers are run as assembler code is being output,
  20880. so the insns they produce are never combined or rearranged in any way.
  20881. Here is an example, taken from the 68000 machine description:
  20882. (define_peephole
  20883. [(set (reg:SI 15) (plus:SI (reg:SI 15) (const_int 4)))
  20884. (set (match_operand:DF 0 "register_operand" "=f")
  20885. (match_operand:DF 1 "register_operand" "ad"))]
  20886. "FP_REG_P (operands[0]) && ! FP_REG_P (operands[1])"
  20887. {
  20888. rtx xoperands[2];
  20889. xoperands[1] = gen_rtx_REG (SImode, REGNO (operands[1]) + 1);
  20890. #ifdef MOTOROLA
  20891. output_asm_insn ("move.l %1,(sp)", xoperands);
  20892. output_asm_insn ("move.l %1,-(sp)", operands);
  20893. return "fmove.d (sp)+,%0";
  20894. #else
  20895. output_asm_insn ("movel %1,sp@", xoperands);
  20896. output_asm_insn ("movel %1,sp@-", operands);
  20897. return "fmoved sp@+,%0";
  20898. #endif
  20899. })
  20900. The effect of this optimization is to change
  20901. jbsr _foobar
  20902. addql #4,sp
  20903. movel d1,sp@-
  20904. movel d0,sp@-
  20905. fmoved sp@+,fp0
  20906. into
  20907. jbsr _foobar
  20908. movel d1,sp@
  20909. movel d0,sp@-
  20910. fmoved sp@+,fp0
  20911. INSN-PATTERN-1 and so on look _almost_ like the second operand of
  20912. 'define_insn'. There is one important difference: the second operand of
  20913. 'define_insn' consists of one or more RTX's enclosed in square brackets.
  20914. Usually, there is only one: then the same action can be written as an
  20915. element of a 'define_peephole'. But when there are multiple actions in
  20916. a 'define_insn', they are implicitly enclosed in a 'parallel'. Then you
  20917. must explicitly write the 'parallel', and the square brackets within it,
  20918. in the 'define_peephole'. Thus, if an insn pattern looks like this,
  20919. (define_insn "divmodsi4"
  20920. [(set (match_operand:SI 0 "general_operand" "=d")
  20921. (div:SI (match_operand:SI 1 "general_operand" "0")
  20922. (match_operand:SI 2 "general_operand" "dmsK")))
  20923. (set (match_operand:SI 3 "general_operand" "=d")
  20924. (mod:SI (match_dup 1) (match_dup 2)))]
  20925. "TARGET_68020"
  20926. "divsl%.l %2,%3:%0")
  20927. then the way to mention this insn in a peephole is as follows:
  20928. (define_peephole
  20929. [...
  20930. (parallel
  20931. [(set (match_operand:SI 0 "general_operand" "=d")
  20932. (div:SI (match_operand:SI 1 "general_operand" "0")
  20933. (match_operand:SI 2 "general_operand" "dmsK")))
  20934. (set (match_operand:SI 3 "general_operand" "=d")
  20935. (mod:SI (match_dup 1) (match_dup 2)))])
  20936. ...]
  20937. ...)
  20938. 
  20939. File: gccint.info, Node: define_peephole2, Prev: define_peephole, Up: Peephole Definitions
  20940. 16.18.2 RTL to RTL Peephole Optimizers
  20941. --------------------------------------
  20942. The 'define_peephole2' definition tells the compiler how to substitute
  20943. one sequence of instructions for another sequence, what additional
  20944. scratch registers may be needed and what their lifetimes must be.
  20945. (define_peephole2
  20946. [INSN-PATTERN-1
  20947. INSN-PATTERN-2
  20948. ...]
  20949. "CONDITION"
  20950. [NEW-INSN-PATTERN-1
  20951. NEW-INSN-PATTERN-2
  20952. ...]
  20953. "PREPARATION-STATEMENTS")
  20954. The definition is almost identical to 'define_split' (*note Insn
  20955. Splitting::) except that the pattern to match is not a single
  20956. instruction, but a sequence of instructions.
  20957. It is possible to request additional scratch registers for use in the
  20958. output template. If appropriate registers are not free, the pattern
  20959. will simply not match.
  20960. Scratch registers are requested with a 'match_scratch' pattern at the
  20961. top level of the input pattern. The allocated register (initially) will
  20962. be dead at the point requested within the original sequence. If the
  20963. scratch is used at more than a single point, a 'match_dup' pattern at
  20964. the top level of the input pattern marks the last position in the input
  20965. sequence at which the register must be available.
  20966. Here is an example from the IA-32 machine description:
  20967. (define_peephole2
  20968. [(match_scratch:SI 2 "r")
  20969. (parallel [(set (match_operand:SI 0 "register_operand" "")
  20970. (match_operator:SI 3 "arith_or_logical_operator"
  20971. [(match_dup 0)
  20972. (match_operand:SI 1 "memory_operand" "")]))
  20973. (clobber (reg:CC 17))])]
  20974. "! optimize_size && ! TARGET_READ_MODIFY"
  20975. [(set (match_dup 2) (match_dup 1))
  20976. (parallel [(set (match_dup 0)
  20977. (match_op_dup 3 [(match_dup 0) (match_dup 2)]))
  20978. (clobber (reg:CC 17))])]
  20979. "")
  20980. This pattern tries to split a load from its use in the hopes that we'll
  20981. be able to schedule around the memory load latency. It allocates a
  20982. single 'SImode' register of class 'GENERAL_REGS' ('"r"') that needs to
  20983. be live only at the point just before the arithmetic.
  20984. A real example requiring extended scratch lifetimes is harder to come
  20985. by, so here's a silly made-up example:
  20986. (define_peephole2
  20987. [(match_scratch:SI 4 "r")
  20988. (set (match_operand:SI 0 "" "") (match_operand:SI 1 "" ""))
  20989. (set (match_operand:SI 2 "" "") (match_dup 1))
  20990. (match_dup 4)
  20991. (set (match_operand:SI 3 "" "") (match_dup 1))]
  20992. "/* determine 1 does not overlap 0 and 2 */"
  20993. [(set (match_dup 4) (match_dup 1))
  20994. (set (match_dup 0) (match_dup 4))
  20995. (set (match_dup 2) (match_dup 4))
  20996. (set (match_dup 3) (match_dup 4))]
  20997. "")
  20998. If we had not added the '(match_dup 4)' in the middle of the input
  20999. sequence, it might have been the case that the register we chose at the
  21000. beginning of the sequence is killed by the first or second 'set'.
  21001. 
  21002. File: gccint.info, Node: Insn Attributes, Next: Conditional Execution, Prev: Peephole Definitions, Up: Machine Desc
  21003. 16.19 Instruction Attributes
  21004. ============================
  21005. In addition to describing the instruction supported by the target
  21006. machine, the 'md' file also defines a group of "attributes" and a set of
  21007. values for each. Every generated insn is assigned a value for each
  21008. attribute. One possible attribute would be the effect that the insn has
  21009. on the machine's condition code. This attribute can then be used by
  21010. 'NOTICE_UPDATE_CC' to track the condition codes.
  21011. * Menu:
  21012. * Defining Attributes:: Specifying attributes and their values.
  21013. * Expressions:: Valid expressions for attribute values.
  21014. * Tagging Insns:: Assigning attribute values to insns.
  21015. * Attr Example:: An example of assigning attributes.
  21016. * Insn Lengths:: Computing the length of insns.
  21017. * Constant Attributes:: Defining attributes that are constant.
  21018. * Mnemonic Attribute:: Obtain the instruction mnemonic as attribute value.
  21019. * Delay Slots:: Defining delay slots required for a machine.
  21020. * Processor pipeline description:: Specifying information for insn scheduling.
  21021. 
  21022. File: gccint.info, Node: Defining Attributes, Next: Expressions, Up: Insn Attributes
  21023. 16.19.1 Defining Attributes and their Values
  21024. --------------------------------------------
  21025. The 'define_attr' expression is used to define each attribute required
  21026. by the target machine. It looks like:
  21027. (define_attr NAME LIST-OF-VALUES DEFAULT)
  21028. NAME is a string specifying the name of the attribute being defined.
  21029. Some attributes are used in a special way by the rest of the compiler.
  21030. The 'enabled' attribute can be used to conditionally enable or disable
  21031. insn alternatives (*note Disable Insn Alternatives::). The 'predicable'
  21032. attribute, together with a suitable 'define_cond_exec' (*note
  21033. Conditional Execution::), can be used to automatically generate
  21034. conditional variants of instruction patterns. The 'mnemonic' attribute
  21035. can be used to check for the instruction mnemonic (*note Mnemonic
  21036. Attribute::). The compiler internally uses the names 'ce_enabled' and
  21037. 'nonce_enabled', so they should not be used elsewhere as alternative
  21038. names.
  21039. LIST-OF-VALUES is either a string that specifies a comma-separated list
  21040. of values that can be assigned to the attribute, or a null string to
  21041. indicate that the attribute takes numeric values.
  21042. DEFAULT is an attribute expression that gives the value of this
  21043. attribute for insns that match patterns whose definition does not
  21044. include an explicit value for this attribute. *Note Attr Example::, for
  21045. more information on the handling of defaults. *Note Constant
  21046. Attributes::, for information on attributes that do not depend on any
  21047. particular insn.
  21048. For each defined attribute, a number of definitions are written to the
  21049. 'insn-attr.h' file. For cases where an explicit set of values is
  21050. specified for an attribute, the following are defined:
  21051. * A '#define' is written for the symbol 'HAVE_ATTR_NAME'.
  21052. * An enumerated class is defined for 'attr_NAME' with elements of the
  21053. form 'UPPER-NAME_UPPER-VALUE' where the attribute name and value
  21054. are first converted to uppercase.
  21055. * A function 'get_attr_NAME' is defined that is passed an insn and
  21056. returns the attribute value for that insn.
  21057. For example, if the following is present in the 'md' file:
  21058. (define_attr "type" "branch,fp,load,store,arith" ...)
  21059. the following lines will be written to the file 'insn-attr.h'.
  21060. #define HAVE_ATTR_type 1
  21061. enum attr_type {TYPE_BRANCH, TYPE_FP, TYPE_LOAD,
  21062. TYPE_STORE, TYPE_ARITH};
  21063. extern enum attr_type get_attr_type ();
  21064. If the attribute takes numeric values, no 'enum' type will be defined
  21065. and the function to obtain the attribute's value will return 'int'.
  21066. There are attributes which are tied to a specific meaning. These
  21067. attributes are not free to use for other purposes:
  21068. 'length'
  21069. The 'length' attribute is used to calculate the length of emitted
  21070. code chunks. This is especially important when verifying branch
  21071. distances. *Note Insn Lengths::.
  21072. 'enabled'
  21073. The 'enabled' attribute can be defined to prevent certain
  21074. alternatives of an insn definition from being used during code
  21075. generation. *Note Disable Insn Alternatives::.
  21076. 'mnemonic'
  21077. The 'mnemonic' attribute can be defined to implement instruction
  21078. specific checks in e.g. the pipeline description. *Note Mnemonic
  21079. Attribute::.
  21080. For each of these special attributes, the corresponding
  21081. 'HAVE_ATTR_NAME' '#define' is also written when the attribute is not
  21082. defined; in that case, it is defined as '0'.
  21083. Another way of defining an attribute is to use:
  21084. (define_enum_attr "ATTR" "ENUM" DEFAULT)
  21085. This works in just the same way as 'define_attr', except that the list
  21086. of values is taken from a separate enumeration called ENUM (*note
  21087. define_enum::). This form allows you to use the same list of values for
  21088. several attributes without having to repeat the list each time. For
  21089. example:
  21090. (define_enum "processor" [
  21091. model_a
  21092. model_b
  21093. ...
  21094. ])
  21095. (define_enum_attr "arch" "processor"
  21096. (const (symbol_ref "target_arch")))
  21097. (define_enum_attr "tune" "processor"
  21098. (const (symbol_ref "target_tune")))
  21099. defines the same attributes as:
  21100. (define_attr "arch" "model_a,model_b,..."
  21101. (const (symbol_ref "target_arch")))
  21102. (define_attr "tune" "model_a,model_b,..."
  21103. (const (symbol_ref "target_tune")))
  21104. but without duplicating the processor list. The second example defines
  21105. two separate C enums ('attr_arch' and 'attr_tune') whereas the first
  21106. defines a single C enum ('processor').
  21107. 
  21108. File: gccint.info, Node: Expressions, Next: Tagging Insns, Prev: Defining Attributes, Up: Insn Attributes
  21109. 16.19.2 Attribute Expressions
  21110. -----------------------------
  21111. RTL expressions used to define attributes use the codes described above
  21112. plus a few specific to attribute definitions, to be discussed below.
  21113. Attribute value expressions must have one of the following forms:
  21114. '(const_int I)'
  21115. The integer I specifies the value of a numeric attribute. I must
  21116. be non-negative.
  21117. The value of a numeric attribute can be specified either with a
  21118. 'const_int', or as an integer represented as a string in
  21119. 'const_string', 'eq_attr' (see below), 'attr', 'symbol_ref', simple
  21120. arithmetic expressions, and 'set_attr' overrides on specific
  21121. instructions (*note Tagging Insns::).
  21122. '(const_string VALUE)'
  21123. The string VALUE specifies a constant attribute value. If VALUE is
  21124. specified as '"*"', it means that the default value of the
  21125. attribute is to be used for the insn containing this expression.
  21126. '"*"' obviously cannot be used in the DEFAULT expression of a
  21127. 'define_attr'.
  21128. If the attribute whose value is being specified is numeric, VALUE
  21129. must be a string containing a non-negative integer (normally
  21130. 'const_int' would be used in this case). Otherwise, it must
  21131. contain one of the valid values for the attribute.
  21132. '(if_then_else TEST TRUE-VALUE FALSE-VALUE)'
  21133. TEST specifies an attribute test, whose format is defined below.
  21134. The value of this expression is TRUE-VALUE if TEST is true,
  21135. otherwise it is FALSE-VALUE.
  21136. '(cond [TEST1 VALUE1 ...] DEFAULT)'
  21137. The first operand of this expression is a vector containing an even
  21138. number of expressions and consisting of pairs of TEST and VALUE
  21139. expressions. The value of the 'cond' expression is that of the
  21140. VALUE corresponding to the first true TEST expression. If none of
  21141. the TEST expressions are true, the value of the 'cond' expression
  21142. is that of the DEFAULT expression.
  21143. TEST expressions can have one of the following forms:
  21144. '(const_int I)'
  21145. This test is true if I is nonzero and false otherwise.
  21146. '(not TEST)'
  21147. '(ior TEST1 TEST2)'
  21148. '(and TEST1 TEST2)'
  21149. These tests are true if the indicated logical function is true.
  21150. '(match_operand:M N PRED CONSTRAINTS)'
  21151. This test is true if operand N of the insn whose attribute value is
  21152. being determined has mode M (this part of the test is ignored if M
  21153. is 'VOIDmode') and the function specified by the string PRED
  21154. returns a nonzero value when passed operand N and mode M (this part
  21155. of the test is ignored if PRED is the null string).
  21156. The CONSTRAINTS operand is ignored and should be the null string.
  21157. '(match_test C-EXPR)'
  21158. The test is true if C expression C-EXPR is true. In non-constant
  21159. attributes, C-EXPR has access to the following variables:
  21160. INSN
  21161. The rtl instruction under test.
  21162. WHICH_ALTERNATIVE
  21163. The 'define_insn' alternative that INSN matches. *Note Output
  21164. Statement::.
  21165. OPERANDS
  21166. An array of INSN's rtl operands.
  21167. C-EXPR behaves like the condition in a C 'if' statement, so there
  21168. is no need to explicitly convert the expression into a boolean 0 or
  21169. 1 value. For example, the following two tests are equivalent:
  21170. (match_test "x & 2")
  21171. (match_test "(x & 2) != 0")
  21172. '(le ARITH1 ARITH2)'
  21173. '(leu ARITH1 ARITH2)'
  21174. '(lt ARITH1 ARITH2)'
  21175. '(ltu ARITH1 ARITH2)'
  21176. '(gt ARITH1 ARITH2)'
  21177. '(gtu ARITH1 ARITH2)'
  21178. '(ge ARITH1 ARITH2)'
  21179. '(geu ARITH1 ARITH2)'
  21180. '(ne ARITH1 ARITH2)'
  21181. '(eq ARITH1 ARITH2)'
  21182. These tests are true if the indicated comparison of the two
  21183. arithmetic expressions is true. Arithmetic expressions are formed
  21184. with 'plus', 'minus', 'mult', 'div', 'mod', 'abs', 'neg', 'and',
  21185. 'ior', 'xor', 'not', 'ashift', 'lshiftrt', and 'ashiftrt'
  21186. expressions.
  21187. 'const_int' and 'symbol_ref' are always valid terms (*note Insn
  21188. Lengths::,for additional forms). 'symbol_ref' is a string denoting
  21189. a C expression that yields an 'int' when evaluated by the
  21190. 'get_attr_...' routine. It should normally be a global variable.
  21191. '(eq_attr NAME VALUE)'
  21192. NAME is a string specifying the name of an attribute.
  21193. VALUE is a string that is either a valid value for attribute NAME,
  21194. a comma-separated list of values, or '!' followed by a value or
  21195. list. If VALUE does not begin with a '!', this test is true if the
  21196. value of the NAME attribute of the current insn is in the list
  21197. specified by VALUE. If VALUE begins with a '!', this test is true
  21198. if the attribute's value is _not_ in the specified list.
  21199. For example,
  21200. (eq_attr "type" "load,store")
  21201. is equivalent to
  21202. (ior (eq_attr "type" "load") (eq_attr "type" "store"))
  21203. If NAME specifies an attribute of 'alternative', it refers to the
  21204. value of the compiler variable 'which_alternative' (*note Output
  21205. Statement::) and the values must be small integers. For example,
  21206. (eq_attr "alternative" "2,3")
  21207. is equivalent to
  21208. (ior (eq (symbol_ref "which_alternative") (const_int 2))
  21209. (eq (symbol_ref "which_alternative") (const_int 3)))
  21210. Note that, for most attributes, an 'eq_attr' test is simplified in
  21211. cases where the value of the attribute being tested is known for
  21212. all insns matching a particular pattern. This is by far the most
  21213. common case.
  21214. '(attr_flag NAME)'
  21215. The value of an 'attr_flag' expression is true if the flag
  21216. specified by NAME is true for the 'insn' currently being scheduled.
  21217. NAME is a string specifying one of a fixed set of flags to test.
  21218. Test the flags 'forward' and 'backward' to determine the direction
  21219. of a conditional branch.
  21220. This example describes a conditional branch delay slot which can be
  21221. nullified for forward branches that are taken (annul-true) or for
  21222. backward branches which are not taken (annul-false).
  21223. (define_delay (eq_attr "type" "cbranch")
  21224. [(eq_attr "in_branch_delay" "true")
  21225. (and (eq_attr "in_branch_delay" "true")
  21226. (attr_flag "forward"))
  21227. (and (eq_attr "in_branch_delay" "true")
  21228. (attr_flag "backward"))])
  21229. The 'forward' and 'backward' flags are false if the current 'insn'
  21230. being scheduled is not a conditional branch.
  21231. 'attr_flag' is only used during delay slot scheduling and has no
  21232. meaning to other passes of the compiler.
  21233. '(attr NAME)'
  21234. The value of another attribute is returned. This is most useful
  21235. for numeric attributes, as 'eq_attr' and 'attr_flag' produce more
  21236. efficient code for non-numeric attributes.
  21237. 
  21238. File: gccint.info, Node: Tagging Insns, Next: Attr Example, Prev: Expressions, Up: Insn Attributes
  21239. 16.19.3 Assigning Attribute Values to Insns
  21240. -------------------------------------------
  21241. The value assigned to an attribute of an insn is primarily determined by
  21242. which pattern is matched by that insn (or which 'define_peephole'
  21243. generated it). Every 'define_insn' and 'define_peephole' can have an
  21244. optional last argument to specify the values of attributes for matching
  21245. insns. The value of any attribute not specified in a particular insn is
  21246. set to the default value for that attribute, as specified in its
  21247. 'define_attr'. Extensive use of default values for attributes permits
  21248. the specification of the values for only one or two attributes in the
  21249. definition of most insn patterns, as seen in the example in the next
  21250. section.
  21251. The optional last argument of 'define_insn' and 'define_peephole' is a
  21252. vector of expressions, each of which defines the value for a single
  21253. attribute. The most general way of assigning an attribute's value is to
  21254. use a 'set' expression whose first operand is an 'attr' expression
  21255. giving the name of the attribute being set. The second operand of the
  21256. 'set' is an attribute expression (*note Expressions::) giving the value
  21257. of the attribute.
  21258. When the attribute value depends on the 'alternative' attribute (i.e.,
  21259. which is the applicable alternative in the constraint of the insn), the
  21260. 'set_attr_alternative' expression can be used. It allows the
  21261. specification of a vector of attribute expressions, one for each
  21262. alternative.
  21263. When the generality of arbitrary attribute expressions is not required,
  21264. the simpler 'set_attr' expression can be used, which allows specifying a
  21265. string giving either a single attribute value or a list of attribute
  21266. values, one for each alternative.
  21267. The form of each of the above specifications is shown below. In each
  21268. case, NAME is a string specifying the attribute to be set.
  21269. '(set_attr NAME VALUE-STRING)'
  21270. VALUE-STRING is either a string giving the desired attribute value,
  21271. or a string containing a comma-separated list giving the values for
  21272. succeeding alternatives. The number of elements must match the
  21273. number of alternatives in the constraint of the insn pattern.
  21274. Note that it may be useful to specify '*' for some alternative, in
  21275. which case the attribute will assume its default value for insns
  21276. matching that alternative.
  21277. '(set_attr_alternative NAME [VALUE1 VALUE2 ...])'
  21278. Depending on the alternative of the insn, the value will be one of
  21279. the specified values. This is a shorthand for using a 'cond' with
  21280. tests on the 'alternative' attribute.
  21281. '(set (attr NAME) VALUE)'
  21282. The first operand of this 'set' must be the special RTL expression
  21283. 'attr', whose sole operand is a string giving the name of the
  21284. attribute being set. VALUE is the value of the attribute.
  21285. The following shows three different ways of representing the same
  21286. attribute value specification:
  21287. (set_attr "type" "load,store,arith")
  21288. (set_attr_alternative "type"
  21289. [(const_string "load") (const_string "store")
  21290. (const_string "arith")])
  21291. (set (attr "type")
  21292. (cond [(eq_attr "alternative" "1") (const_string "load")
  21293. (eq_attr "alternative" "2") (const_string "store")]
  21294. (const_string "arith")))
  21295. The 'define_asm_attributes' expression provides a mechanism to specify
  21296. the attributes assigned to insns produced from an 'asm' statement. It
  21297. has the form:
  21298. (define_asm_attributes [ATTR-SETS])
  21299. where ATTR-SETS is specified the same as for both the 'define_insn' and
  21300. the 'define_peephole' expressions.
  21301. These values will typically be the "worst case" attribute values. For
  21302. example, they might indicate that the condition code will be clobbered.
  21303. A specification for a 'length' attribute is handled specially. The way
  21304. to compute the length of an 'asm' insn is to multiply the length
  21305. specified in the expression 'define_asm_attributes' by the number of
  21306. machine instructions specified in the 'asm' statement, determined by
  21307. counting the number of semicolons and newlines in the string.
  21308. Therefore, the value of the 'length' attribute specified in a
  21309. 'define_asm_attributes' should be the maximum possible length of a
  21310. single machine instruction.
  21311. 
  21312. File: gccint.info, Node: Attr Example, Next: Insn Lengths, Prev: Tagging Insns, Up: Insn Attributes
  21313. 16.19.4 Example of Attribute Specifications
  21314. -------------------------------------------
  21315. The judicious use of defaulting is important in the efficient use of
  21316. insn attributes. Typically, insns are divided into "types" and an
  21317. attribute, customarily called 'type', is used to represent this value.
  21318. This attribute is normally used only to define the default value for
  21319. other attributes. An example will clarify this usage.
  21320. Assume we have a RISC machine with a condition code and in which only
  21321. full-word operations are performed in registers. Let us assume that we
  21322. can divide all insns into loads, stores, (integer) arithmetic
  21323. operations, floating point operations, and branches.
  21324. Here we will concern ourselves with determining the effect of an insn
  21325. on the condition code and will limit ourselves to the following possible
  21326. effects: The condition code can be set unpredictably (clobbered), not be
  21327. changed, be set to agree with the results of the operation, or only
  21328. changed if the item previously set into the condition code has been
  21329. modified.
  21330. Here is part of a sample 'md' file for such a machine:
  21331. (define_attr "type" "load,store,arith,fp,branch" (const_string "arith"))
  21332. (define_attr "cc" "clobber,unchanged,set,change0"
  21333. (cond [(eq_attr "type" "load")
  21334. (const_string "change0")
  21335. (eq_attr "type" "store,branch")
  21336. (const_string "unchanged")
  21337. (eq_attr "type" "arith")
  21338. (if_then_else (match_operand:SI 0 "" "")
  21339. (const_string "set")
  21340. (const_string "clobber"))]
  21341. (const_string "clobber")))
  21342. (define_insn ""
  21343. [(set (match_operand:SI 0 "general_operand" "=r,r,m")
  21344. (match_operand:SI 1 "general_operand" "r,m,r"))]
  21345. ""
  21346. "@
  21347. move %0,%1
  21348. load %0,%1
  21349. store %0,%1"
  21350. [(set_attr "type" "arith,load,store")])
  21351. Note that we assume in the above example that arithmetic operations
  21352. performed on quantities smaller than a machine word clobber the
  21353. condition code since they will set the condition code to a value
  21354. corresponding to the full-word result.
  21355. 
  21356. File: gccint.info, Node: Insn Lengths, Next: Constant Attributes, Prev: Attr Example, Up: Insn Attributes
  21357. 16.19.5 Computing the Length of an Insn
  21358. ---------------------------------------
  21359. For many machines, multiple types of branch instructions are provided,
  21360. each for different length branch displacements. In most cases, the
  21361. assembler will choose the correct instruction to use. However, when the
  21362. assembler cannot do so, GCC can when a special attribute, the 'length'
  21363. attribute, is defined. This attribute must be defined to have numeric
  21364. values by specifying a null string in its 'define_attr'.
  21365. In the case of the 'length' attribute, two additional forms of
  21366. arithmetic terms are allowed in test expressions:
  21367. '(match_dup N)'
  21368. This refers to the address of operand N of the current insn, which
  21369. must be a 'label_ref'.
  21370. '(pc)'
  21371. For non-branch instructions and backward branch instructions, this
  21372. refers to the address of the current insn. But for forward branch
  21373. instructions, this refers to the address of the next insn, because
  21374. the length of the current insn is to be computed.
  21375. For normal insns, the length will be determined by value of the
  21376. 'length' attribute. In the case of 'addr_vec' and 'addr_diff_vec' insn
  21377. patterns, the length is computed as the number of vectors multiplied by
  21378. the size of each vector.
  21379. Lengths are measured in addressable storage units (bytes).
  21380. Note that it is possible to call functions via the 'symbol_ref'
  21381. mechanism to compute the length of an insn. However, if you use this
  21382. mechanism you must provide dummy clauses to express the maximum length
  21383. without using the function call. You can an example of this in the 'pa'
  21384. machine description for the 'call_symref' pattern.
  21385. The following macros can be used to refine the length computation:
  21386. 'ADJUST_INSN_LENGTH (INSN, LENGTH)'
  21387. If defined, modifies the length assigned to instruction INSN as a
  21388. function of the context in which it is used. LENGTH is an lvalue
  21389. that contains the initially computed length of the insn and should
  21390. be updated with the correct length of the insn.
  21391. This macro will normally not be required. A case in which it is
  21392. required is the ROMP. On this machine, the size of an 'addr_vec'
  21393. insn must be increased by two to compensate for the fact that
  21394. alignment may be required.
  21395. The routine that returns 'get_attr_length' (the value of the 'length'
  21396. attribute) can be used by the output routine to determine the form of
  21397. the branch instruction to be written, as the example below illustrates.
  21398. As an example of the specification of variable-length branches,
  21399. consider the IBM 360. If we adopt the convention that a register will
  21400. be set to the starting address of a function, we can jump to labels
  21401. within 4k of the start using a four-byte instruction. Otherwise, we
  21402. need a six-byte sequence to load the address from memory and then branch
  21403. to it.
  21404. On such a machine, a pattern for a branch instruction might be
  21405. specified as follows:
  21406. (define_insn "jump"
  21407. [(set (pc)
  21408. (label_ref (match_operand 0 "" "")))]
  21409. ""
  21410. {
  21411. return (get_attr_length (insn) == 4
  21412. ? "b %l0" : "l r15,=a(%l0); br r15");
  21413. }
  21414. [(set (attr "length")
  21415. (if_then_else (lt (match_dup 0) (const_int 4096))
  21416. (const_int 4)
  21417. (const_int 6)))])
  21418. 
  21419. File: gccint.info, Node: Constant Attributes, Next: Mnemonic Attribute, Prev: Insn Lengths, Up: Insn Attributes
  21420. 16.19.6 Constant Attributes
  21421. ---------------------------
  21422. A special form of 'define_attr', where the expression for the default
  21423. value is a 'const' expression, indicates an attribute that is constant
  21424. for a given run of the compiler. Constant attributes may be used to
  21425. specify which variety of processor is used. For example,
  21426. (define_attr "cpu" "m88100,m88110,m88000"
  21427. (const
  21428. (cond [(symbol_ref "TARGET_88100") (const_string "m88100")
  21429. (symbol_ref "TARGET_88110") (const_string "m88110")]
  21430. (const_string "m88000"))))
  21431. (define_attr "memory" "fast,slow"
  21432. (const
  21433. (if_then_else (symbol_ref "TARGET_FAST_MEM")
  21434. (const_string "fast")
  21435. (const_string "slow"))))
  21436. The routine generated for constant attributes has no parameters as it
  21437. does not depend on any particular insn. RTL expressions used to define
  21438. the value of a constant attribute may use the 'symbol_ref' form, but may
  21439. not use either the 'match_operand' form or 'eq_attr' forms involving
  21440. insn attributes.
  21441. 
  21442. File: gccint.info, Node: Mnemonic Attribute, Next: Delay Slots, Prev: Constant Attributes, Up: Insn Attributes
  21443. 16.19.7 Mnemonic Attribute
  21444. --------------------------
  21445. The 'mnemonic' attribute is a string type attribute holding the
  21446. instruction mnemonic for an insn alternative. The attribute values will
  21447. automatically be generated by the machine description parser if there is
  21448. an attribute definition in the md file:
  21449. (define_attr "mnemonic" "unknown" (const_string "unknown"))
  21450. The default value can be freely chosen as long as it does not collide
  21451. with any of the instruction mnemonics. This value will be used whenever
  21452. the machine description parser is not able to determine the mnemonic
  21453. string. This might be the case for output templates containing more
  21454. than a single instruction as in '"mvcle\t%0,%1,0\;jo\t.-4"'.
  21455. The 'mnemonic' attribute set is not generated automatically if the
  21456. instruction string is generated via C code.
  21457. An existing 'mnemonic' attribute set in an insn definition will not be
  21458. overriden by the md file parser. That way it is possible to manually
  21459. set the instruction mnemonics for the cases where the md file parser
  21460. fails to determine it automatically.
  21461. The 'mnemonic' attribute is useful for dealing with instruction
  21462. specific properties in the pipeline description without defining
  21463. additional insn attributes.
  21464. (define_attr "ooo_expanded" ""
  21465. (cond [(eq_attr "mnemonic" "dlr,dsgr,d,dsgf,stam,dsgfr,dlgr")
  21466. (const_int 1)]
  21467. (const_int 0)))
  21468. 
  21469. File: gccint.info, Node: Delay Slots, Next: Processor pipeline description, Prev: Mnemonic Attribute, Up: Insn Attributes
  21470. 16.19.8 Delay Slot Scheduling
  21471. -----------------------------
  21472. The insn attribute mechanism can be used to specify the requirements for
  21473. delay slots, if any, on a target machine. An instruction is said to
  21474. require a "delay slot" if some instructions that are physically after
  21475. the instruction are executed as if they were located before it. Classic
  21476. examples are branch and call instructions, which often execute the
  21477. following instruction before the branch or call is performed.
  21478. On some machines, conditional branch instructions can optionally
  21479. "annul" instructions in the delay slot. This means that the instruction
  21480. will not be executed for certain branch outcomes. Both instructions
  21481. that annul if the branch is true and instructions that annul if the
  21482. branch is false are supported.
  21483. Delay slot scheduling differs from instruction scheduling in that
  21484. determining whether an instruction needs a delay slot is dependent only
  21485. on the type of instruction being generated, not on data flow between the
  21486. instructions. See the next section for a discussion of data-dependent
  21487. instruction scheduling.
  21488. The requirement of an insn needing one or more delay slots is indicated
  21489. via the 'define_delay' expression. It has the following form:
  21490. (define_delay TEST
  21491. [DELAY-1 ANNUL-TRUE-1 ANNUL-FALSE-1
  21492. DELAY-2 ANNUL-TRUE-2 ANNUL-FALSE-2
  21493. ...])
  21494. TEST is an attribute test that indicates whether this 'define_delay'
  21495. applies to a particular insn. If so, the number of required delay slots
  21496. is determined by the length of the vector specified as the second
  21497. argument. An insn placed in delay slot N must satisfy attribute test
  21498. DELAY-N. ANNUL-TRUE-N is an attribute test that specifies which insns
  21499. may be annulled if the branch is true. Similarly, ANNUL-FALSE-N
  21500. specifies which insns in the delay slot may be annulled if the branch is
  21501. false. If annulling is not supported for that delay slot, '(nil)'
  21502. should be coded.
  21503. For example, in the common case where branch and call insns require a
  21504. single delay slot, which may contain any insn other than a branch or
  21505. call, the following would be placed in the 'md' file:
  21506. (define_delay (eq_attr "type" "branch,call")
  21507. [(eq_attr "type" "!branch,call") (nil) (nil)])
  21508. Multiple 'define_delay' expressions may be specified. In this case,
  21509. each such expression specifies different delay slot requirements and
  21510. there must be no insn for which tests in two 'define_delay' expressions
  21511. are both true.
  21512. For example, if we have a machine that requires one delay slot for
  21513. branches but two for calls, no delay slot can contain a branch or call
  21514. insn, and any valid insn in the delay slot for the branch can be
  21515. annulled if the branch is true, we might represent this as follows:
  21516. (define_delay (eq_attr "type" "branch")
  21517. [(eq_attr "type" "!branch,call")
  21518. (eq_attr "type" "!branch,call")
  21519. (nil)])
  21520. (define_delay (eq_attr "type" "call")
  21521. [(eq_attr "type" "!branch,call") (nil) (nil)
  21522. (eq_attr "type" "!branch,call") (nil) (nil)])
  21523. 
  21524. File: gccint.info, Node: Processor pipeline description, Prev: Delay Slots, Up: Insn Attributes
  21525. 16.19.9 Specifying processor pipeline description
  21526. -------------------------------------------------
  21527. To achieve better performance, most modern processors (super-pipelined,
  21528. superscalar RISC, and VLIW processors) have many "functional units" on
  21529. which several instructions can be executed simultaneously. An
  21530. instruction starts execution if its issue conditions are satisfied. If
  21531. not, the instruction is stalled until its conditions are satisfied.
  21532. Such "interlock (pipeline) delay" causes interruption of the fetching of
  21533. successor instructions (or demands nop instructions, e.g. for some MIPS
  21534. processors).
  21535. There are two major kinds of interlock delays in modern processors.
  21536. The first one is a data dependence delay determining "instruction
  21537. latency time". The instruction execution is not started until all
  21538. source data have been evaluated by prior instructions (there are more
  21539. complex cases when the instruction execution starts even when the data
  21540. are not available but will be ready in given time after the instruction
  21541. execution start). Taking the data dependence delays into account is
  21542. simple. The data dependence (true, output, and anti-dependence) delay
  21543. between two instructions is given by a constant. In most cases this
  21544. approach is adequate. The second kind of interlock delays is a
  21545. reservation delay. The reservation delay means that two instructions
  21546. under execution will be in need of shared processors resources, i.e.
  21547. buses, internal registers, and/or functional units, which are reserved
  21548. for some time. Taking this kind of delay into account is complex
  21549. especially for modern RISC processors.
  21550. The task of exploiting more processor parallelism is solved by an
  21551. instruction scheduler. For a better solution to this problem, the
  21552. instruction scheduler has to have an adequate description of the
  21553. processor parallelism (or "pipeline description"). GCC machine
  21554. descriptions describe processor parallelism and functional unit
  21555. reservations for groups of instructions with the aid of "regular
  21556. expressions".
  21557. The GCC instruction scheduler uses a "pipeline hazard recognizer" to
  21558. figure out the possibility of the instruction issue by the processor on
  21559. a given simulated processor cycle. The pipeline hazard recognizer is
  21560. automatically generated from the processor pipeline description. The
  21561. pipeline hazard recognizer generated from the machine description is
  21562. based on a deterministic finite state automaton (DFA): the instruction
  21563. issue is possible if there is a transition from one automaton state to
  21564. another one. This algorithm is very fast, and furthermore, its speed is
  21565. not dependent on processor complexity(1).
  21566. The rest of this section describes the directives that constitute an
  21567. automaton-based processor pipeline description. The order of these
  21568. constructions within the machine description file is not important.
  21569. The following optional construction describes names of automata
  21570. generated and used for the pipeline hazards recognition. Sometimes the
  21571. generated finite state automaton used by the pipeline hazard recognizer
  21572. is large. If we use more than one automaton and bind functional units
  21573. to the automata, the total size of the automata is usually less than the
  21574. size of the single automaton. If there is no one such construction,
  21575. only one finite state automaton is generated.
  21576. (define_automaton AUTOMATA-NAMES)
  21577. AUTOMATA-NAMES is a string giving names of the automata. The names are
  21578. separated by commas. All the automata should have unique names. The
  21579. automaton name is used in the constructions 'define_cpu_unit' and
  21580. 'define_query_cpu_unit'.
  21581. Each processor functional unit used in the description of instruction
  21582. reservations should be described by the following construction.
  21583. (define_cpu_unit UNIT-NAMES [AUTOMATON-NAME])
  21584. UNIT-NAMES is a string giving the names of the functional units
  21585. separated by commas. Don't use name 'nothing', it is reserved for other
  21586. goals.
  21587. AUTOMATON-NAME is a string giving the name of the automaton with which
  21588. the unit is bound. The automaton should be described in construction
  21589. 'define_automaton'. You should give "automaton-name", if there is a
  21590. defined automaton.
  21591. The assignment of units to automata are constrained by the uses of the
  21592. units in insn reservations. The most important constraint is: if a unit
  21593. reservation is present on a particular cycle of an alternative for an
  21594. insn reservation, then some unit from the same automaton must be present
  21595. on the same cycle for the other alternatives of the insn reservation.
  21596. The rest of the constraints are mentioned in the description of the
  21597. subsequent constructions.
  21598. The following construction describes CPU functional units analogously
  21599. to 'define_cpu_unit'. The reservation of such units can be queried for
  21600. an automaton state. The instruction scheduler never queries reservation
  21601. of functional units for given automaton state. So as a rule, you don't
  21602. need this construction. This construction could be used for future code
  21603. generation goals (e.g. to generate VLIW insn templates).
  21604. (define_query_cpu_unit UNIT-NAMES [AUTOMATON-NAME])
  21605. UNIT-NAMES is a string giving names of the functional units separated
  21606. by commas.
  21607. AUTOMATON-NAME is a string giving the name of the automaton with which
  21608. the unit is bound.
  21609. The following construction is the major one to describe pipeline
  21610. characteristics of an instruction.
  21611. (define_insn_reservation INSN-NAME DEFAULT_LATENCY
  21612. CONDITION REGEXP)
  21613. DEFAULT_LATENCY is a number giving latency time of the instruction.
  21614. There is an important difference between the old description and the
  21615. automaton based pipeline description. The latency time is used for all
  21616. dependencies when we use the old description. In the automaton based
  21617. pipeline description, the given latency time is only used for true
  21618. dependencies. The cost of anti-dependencies is always zero and the cost
  21619. of output dependencies is the difference between latency times of the
  21620. producing and consuming insns (if the difference is negative, the cost
  21621. is considered to be zero). You can always change the default costs for
  21622. any description by using the target hook 'TARGET_SCHED_ADJUST_COST'
  21623. (*note Scheduling::).
  21624. INSN-NAME is a string giving the internal name of the insn. The
  21625. internal names are used in constructions 'define_bypass' and in the
  21626. automaton description file generated for debugging. The internal name
  21627. has nothing in common with the names in 'define_insn'. It is a good
  21628. practice to use insn classes described in the processor manual.
  21629. CONDITION defines what RTL insns are described by this construction.
  21630. You should remember that you will be in trouble if CONDITION for two or
  21631. more different 'define_insn_reservation' constructions is TRUE for an
  21632. insn. In this case what reservation will be used for the insn is not
  21633. defined. Such cases are not checked during generation of the pipeline
  21634. hazards recognizer because in general recognizing that two conditions
  21635. may have the same value is quite difficult (especially if the conditions
  21636. contain 'symbol_ref'). It is also not checked during the pipeline
  21637. hazard recognizer work because it would slow down the recognizer
  21638. considerably.
  21639. REGEXP is a string describing the reservation of the cpu's functional
  21640. units by the instruction. The reservations are described by a regular
  21641. expression according to the following syntax:
  21642. regexp = regexp "," oneof
  21643. | oneof
  21644. oneof = oneof "|" allof
  21645. | allof
  21646. allof = allof "+" repeat
  21647. | repeat
  21648. repeat = element "*" number
  21649. | element
  21650. element = cpu_function_unit_name
  21651. | reservation_name
  21652. | result_name
  21653. | "nothing"
  21654. | "(" regexp ")"
  21655. * ',' is used for describing the start of the next cycle in the
  21656. reservation.
  21657. * '|' is used for describing a reservation described by the first
  21658. regular expression *or* a reservation described by the second
  21659. regular expression *or* etc.
  21660. * '+' is used for describing a reservation described by the first
  21661. regular expression *and* a reservation described by the second
  21662. regular expression *and* etc.
  21663. * '*' is used for convenience and simply means a sequence in which
  21664. the regular expression are repeated NUMBER times with cycle
  21665. advancing (see ',').
  21666. * 'cpu_function_unit_name' denotes reservation of the named
  21667. functional unit.
  21668. * 'reservation_name' -- see description of construction
  21669. 'define_reservation'.
  21670. * 'nothing' denotes no unit reservations.
  21671. Sometimes unit reservations for different insns contain common parts.
  21672. In such case, you can simplify the pipeline description by describing
  21673. the common part by the following construction
  21674. (define_reservation RESERVATION-NAME REGEXP)
  21675. RESERVATION-NAME is a string giving name of REGEXP. Functional unit
  21676. names and reservation names are in the same name space. So the
  21677. reservation names should be different from the functional unit names and
  21678. can not be the reserved name 'nothing'.
  21679. The following construction is used to describe exceptions in the
  21680. latency time for given instruction pair. This is so called bypasses.
  21681. (define_bypass NUMBER OUT_INSN_NAMES IN_INSN_NAMES
  21682. [GUARD])
  21683. NUMBER defines when the result generated by the instructions given in
  21684. string OUT_INSN_NAMES will be ready for the instructions given in string
  21685. IN_INSN_NAMES. Each of these strings is a comma-separated list of
  21686. filename-style globs and they refer to the names of
  21687. 'define_insn_reservation's. For example:
  21688. (define_bypass 1 "cpu1_load_*, cpu1_store_*" "cpu1_load_*")
  21689. defines a bypass between instructions that start with 'cpu1_load_' or
  21690. 'cpu1_store_' and those that start with 'cpu1_load_'.
  21691. GUARD is an optional string giving the name of a C function which
  21692. defines an additional guard for the bypass. The function will get the
  21693. two insns as parameters. If the function returns zero the bypass will
  21694. be ignored for this case. The additional guard is necessary to
  21695. recognize complicated bypasses, e.g. when the consumer is only an
  21696. address of insn 'store' (not a stored value).
  21697. If there are more one bypass with the same output and input insns, the
  21698. chosen bypass is the first bypass with a guard in description whose
  21699. guard function returns nonzero. If there is no such bypass, then bypass
  21700. without the guard function is chosen.
  21701. The following five constructions are usually used to describe VLIW
  21702. processors, or more precisely, to describe a placement of small
  21703. instructions into VLIW instruction slots. They can be used for RISC
  21704. processors, too.
  21705. (exclusion_set UNIT-NAMES UNIT-NAMES)
  21706. (presence_set UNIT-NAMES PATTERNS)
  21707. (final_presence_set UNIT-NAMES PATTERNS)
  21708. (absence_set UNIT-NAMES PATTERNS)
  21709. (final_absence_set UNIT-NAMES PATTERNS)
  21710. UNIT-NAMES is a string giving names of functional units separated by
  21711. commas.
  21712. PATTERNS is a string giving patterns of functional units separated by
  21713. comma. Currently pattern is one unit or units separated by
  21714. white-spaces.
  21715. The first construction ('exclusion_set') means that each functional
  21716. unit in the first string can not be reserved simultaneously with a unit
  21717. whose name is in the second string and vice versa. For example, the
  21718. construction is useful for describing processors (e.g. some SPARC
  21719. processors) with a fully pipelined floating point functional unit which
  21720. can execute simultaneously only single floating point insns or only
  21721. double floating point insns.
  21722. The second construction ('presence_set') means that each functional
  21723. unit in the first string can not be reserved unless at least one of
  21724. pattern of units whose names are in the second string is reserved. This
  21725. is an asymmetric relation. For example, it is useful for description
  21726. that VLIW 'slot1' is reserved after 'slot0' reservation. We could
  21727. describe it by the following construction
  21728. (presence_set "slot1" "slot0")
  21729. Or 'slot1' is reserved only after 'slot0' and unit 'b0' reservation.
  21730. In this case we could write
  21731. (presence_set "slot1" "slot0 b0")
  21732. The third construction ('final_presence_set') is analogous to
  21733. 'presence_set'. The difference between them is when checking is done.
  21734. When an instruction is issued in given automaton state reflecting all
  21735. current and planned unit reservations, the automaton state is changed.
  21736. The first state is a source state, the second one is a result state.
  21737. Checking for 'presence_set' is done on the source state reservation,
  21738. checking for 'final_presence_set' is done on the result reservation.
  21739. This construction is useful to describe a reservation which is actually
  21740. two subsequent reservations. For example, if we use
  21741. (presence_set "slot1" "slot0")
  21742. the following insn will be never issued (because 'slot1' requires
  21743. 'slot0' which is absent in the source state).
  21744. (define_reservation "insn_and_nop" "slot0 + slot1")
  21745. but it can be issued if we use analogous 'final_presence_set'.
  21746. The forth construction ('absence_set') means that each functional unit
  21747. in the first string can be reserved only if each pattern of units whose
  21748. names are in the second string is not reserved. This is an asymmetric
  21749. relation (actually 'exclusion_set' is analogous to this one but it is
  21750. symmetric). For example it might be useful in a VLIW description to say
  21751. that 'slot0' cannot be reserved after either 'slot1' or 'slot2' have
  21752. been reserved. This can be described as:
  21753. (absence_set "slot0" "slot1, slot2")
  21754. Or 'slot2' can not be reserved if 'slot0' and unit 'b0' are reserved or
  21755. 'slot1' and unit 'b1' are reserved. In this case we could write
  21756. (absence_set "slot2" "slot0 b0, slot1 b1")
  21757. All functional units mentioned in a set should belong to the same
  21758. automaton.
  21759. The last construction ('final_absence_set') is analogous to
  21760. 'absence_set' but checking is done on the result (state) reservation.
  21761. See comments for 'final_presence_set'.
  21762. You can control the generator of the pipeline hazard recognizer with
  21763. the following construction.
  21764. (automata_option OPTIONS)
  21765. OPTIONS is a string giving options which affect the generated code.
  21766. Currently there are the following options:
  21767. * "no-minimization" makes no minimization of the automaton. This is
  21768. only worth to do when we are debugging the description and need to
  21769. look more accurately at reservations of states.
  21770. * "time" means printing time statistics about the generation of
  21771. automata.
  21772. * "stats" means printing statistics about the generated automata such
  21773. as the number of DFA states, NDFA states and arcs.
  21774. * "v" means a generation of the file describing the result automata.
  21775. The file has suffix '.dfa' and can be used for the description
  21776. verification and debugging.
  21777. * "w" means a generation of warning instead of error for non-critical
  21778. errors.
  21779. * "no-comb-vect" prevents the automaton generator from generating two
  21780. data structures and comparing them for space efficiency. Using a
  21781. comb vector to represent transitions may be better, but it can be
  21782. very expensive to construct. This option is useful if the build
  21783. process spends an unacceptably long time in genautomata.
  21784. * "ndfa" makes nondeterministic finite state automata. This affects
  21785. the treatment of operator '|' in the regular expressions. The
  21786. usual treatment of the operator is to try the first alternative
  21787. and, if the reservation is not possible, the second alternative.
  21788. The nondeterministic treatment means trying all alternatives, some
  21789. of them may be rejected by reservations in the subsequent insns.
  21790. * "collapse-ndfa" modifies the behavior of the generator when
  21791. producing an automaton. An additional state transition to collapse
  21792. a nondeterministic NDFA state to a deterministic DFA state is
  21793. generated. It can be triggered by passing 'const0_rtx' to
  21794. state_transition. In such an automaton, cycle advance transitions
  21795. are available only for these collapsed states. This option is
  21796. useful for ports that want to use the 'ndfa' option, but also want
  21797. to use 'define_query_cpu_unit' to assign units to insns issued in a
  21798. cycle.
  21799. * "progress" means output of a progress bar showing how many states
  21800. were generated so far for automaton being processed. This is
  21801. useful during debugging a DFA description. If you see too many
  21802. generated states, you could interrupt the generator of the pipeline
  21803. hazard recognizer and try to figure out a reason for generation of
  21804. the huge automaton.
  21805. As an example, consider a superscalar RISC machine which can issue
  21806. three insns (two integer insns and one floating point insn) on the cycle
  21807. but can finish only two insns. To describe this, we define the
  21808. following functional units.
  21809. (define_cpu_unit "i0_pipeline, i1_pipeline, f_pipeline")
  21810. (define_cpu_unit "port0, port1")
  21811. All simple integer insns can be executed in any integer pipeline and
  21812. their result is ready in two cycles. The simple integer insns are
  21813. issued into the first pipeline unless it is reserved, otherwise they are
  21814. issued into the second pipeline. Integer division and multiplication
  21815. insns can be executed only in the second integer pipeline and their
  21816. results are ready correspondingly in 8 and 4 cycles. The integer
  21817. division is not pipelined, i.e. the subsequent integer division insn can
  21818. not be issued until the current division insn finished. Floating point
  21819. insns are fully pipelined and their results are ready in 3 cycles.
  21820. Where the result of a floating point insn is used by an integer insn, an
  21821. additional delay of one cycle is incurred. To describe all of this we
  21822. could specify
  21823. (define_cpu_unit "div")
  21824. (define_insn_reservation "simple" 2 (eq_attr "type" "int")
  21825. "(i0_pipeline | i1_pipeline), (port0 | port1)")
  21826. (define_insn_reservation "mult" 4 (eq_attr "type" "mult")
  21827. "i1_pipeline, nothing*2, (port0 | port1)")
  21828. (define_insn_reservation "div" 8 (eq_attr "type" "div")
  21829. "i1_pipeline, div*7, div + (port0 | port1)")
  21830. (define_insn_reservation "float" 3 (eq_attr "type" "float")
  21831. "f_pipeline, nothing, (port0 | port1))
  21832. (define_bypass 4 "float" "simple,mult,div")
  21833. To simplify the description we could describe the following reservation
  21834. (define_reservation "finish" "port0|port1")
  21835. and use it in all 'define_insn_reservation' as in the following
  21836. construction
  21837. (define_insn_reservation "simple" 2 (eq_attr "type" "int")
  21838. "(i0_pipeline | i1_pipeline), finish")
  21839. ---------- Footnotes ----------
  21840. (1) However, the size of the automaton depends on processor
  21841. complexity. To limit this effect, machine descriptions can split
  21842. orthogonal parts of the machine description among several automata: but
  21843. then, since each of these must be stepped independently, this does cause
  21844. a small decrease in the algorithm's performance.
  21845. 
  21846. File: gccint.info, Node: Conditional Execution, Next: Define Subst, Prev: Insn Attributes, Up: Machine Desc
  21847. 16.20 Conditional Execution
  21848. ===========================
  21849. A number of architectures provide for some form of conditional
  21850. execution, or predication. The hallmark of this feature is the ability
  21851. to nullify most of the instructions in the instruction set. When the
  21852. instruction set is large and not entirely symmetric, it can be quite
  21853. tedious to describe these forms directly in the '.md' file. An
  21854. alternative is the 'define_cond_exec' template.
  21855. (define_cond_exec
  21856. [PREDICATE-PATTERN]
  21857. "CONDITION"
  21858. "OUTPUT-TEMPLATE"
  21859. "OPTIONAL-INSN-ATTRIBUES")
  21860. PREDICATE-PATTERN is the condition that must be true for the insn to be
  21861. executed at runtime and should match a relational operator. One can use
  21862. 'match_operator' to match several relational operators at once. Any
  21863. 'match_operand' operands must have no more than one alternative.
  21864. CONDITION is a C expression that must be true for the generated pattern
  21865. to match.
  21866. OUTPUT-TEMPLATE is a string similar to the 'define_insn' output
  21867. template (*note Output Template::), except that the '*' and '@' special
  21868. cases do not apply. This is only useful if the assembly text for the
  21869. predicate is a simple prefix to the main insn. In order to handle the
  21870. general case, there is a global variable 'current_insn_predicate' that
  21871. will contain the entire predicate if the current insn is predicated, and
  21872. will otherwise be 'NULL'.
  21873. OPTIONAL-INSN-ATTRIBUTES is an optional vector of attributes that gets
  21874. appended to the insn attributes of the produced cond_exec rtx. It can
  21875. be used to add some distinguishing attribute to cond_exec rtxs produced
  21876. that way. An example usage would be to use this attribute in
  21877. conjunction with attributes on the main pattern to disable particular
  21878. alternatives under certain conditions.
  21879. When 'define_cond_exec' is used, an implicit reference to the
  21880. 'predicable' instruction attribute is made. *Note Insn Attributes::.
  21881. This attribute must be a boolean (i.e. have exactly two elements in its
  21882. LIST-OF-VALUES), with the possible values being 'no' and 'yes'. The
  21883. default and all uses in the insns must be a simple constant, not a
  21884. complex expressions. It may, however, depend on the alternative, by
  21885. using a comma-separated list of values. If that is the case, the port
  21886. should also define an 'enabled' attribute (*note Disable Insn
  21887. Alternatives::), which should also allow only 'no' and 'yes' as its
  21888. values.
  21889. For each 'define_insn' for which the 'predicable' attribute is true, a
  21890. new 'define_insn' pattern will be generated that matches a predicated
  21891. version of the instruction. For example,
  21892. (define_insn "addsi"
  21893. [(set (match_operand:SI 0 "register_operand" "r")
  21894. (plus:SI (match_operand:SI 1 "register_operand" "r")
  21895. (match_operand:SI 2 "register_operand" "r")))]
  21896. "TEST1"
  21897. "add %2,%1,%0")
  21898. (define_cond_exec
  21899. [(ne (match_operand:CC 0 "register_operand" "c")
  21900. (const_int 0))]
  21901. "TEST2"
  21902. "(%0)")
  21903. generates a new pattern
  21904. (define_insn ""
  21905. [(cond_exec
  21906. (ne (match_operand:CC 3 "register_operand" "c") (const_int 0))
  21907. (set (match_operand:SI 0 "register_operand" "r")
  21908. (plus:SI (match_operand:SI 1 "register_operand" "r")
  21909. (match_operand:SI 2 "register_operand" "r"))))]
  21910. "(TEST2) && (TEST1)"
  21911. "(%3) add %2,%1,%0")
  21912. 
  21913. File: gccint.info, Node: Define Subst, Next: Constant Definitions, Prev: Conditional Execution, Up: Machine Desc
  21914. 16.21 RTL Templates Transformations
  21915. ===================================
  21916. For some hardware architectures there are common cases when the RTL
  21917. templates for the instructions can be derived from the other RTL
  21918. templates using simple transformations. E.g., 'i386.md' contains an RTL
  21919. template for the ordinary 'sub' instruction-- '*subsi_1', and for the
  21920. 'sub' instruction with subsequent zero-extension--'*subsi_1_zext'. Such
  21921. cases can be easily implemented by a single meta-template capable of
  21922. generating a modified case based on the initial one:
  21923. (define_subst "NAME"
  21924. [INPUT-TEMPLATE]
  21925. "CONDITION"
  21926. [OUTPUT-TEMPLATE])
  21927. INPUT-TEMPLATE is a pattern describing the source RTL template, which
  21928. will be transformed.
  21929. CONDITION is a C expression that is conjunct with the condition from
  21930. the input-template to generate a condition to be used in the
  21931. output-template.
  21932. OUTPUT-TEMPLATE is a pattern that will be used in the resulting
  21933. template.
  21934. 'define_subst' mechanism is tightly coupled with the notion of the
  21935. subst attribute (*note Subst Iterators::). The use of 'define_subst' is
  21936. triggered by a reference to a subst attribute in the transforming RTL
  21937. template. This reference initiates duplication of the source RTL
  21938. template and substitution of the attributes with their values. The
  21939. source RTL template is left unchanged, while the copy is transformed by
  21940. 'define_subst'. This transformation can fail in the case when the
  21941. source RTL template is not matched against the input-template of the
  21942. 'define_subst'. In such case the copy is deleted.
  21943. 'define_subst' can be used only in 'define_insn' and 'define_expand',
  21944. it cannot be used in other expressions (e.g. in
  21945. 'define_insn_and_split').
  21946. * Menu:
  21947. * Define Subst Example:: Example of 'define_subst' work.
  21948. * Define Subst Pattern Matching:: Process of template comparison.
  21949. * Define Subst Output Template:: Generation of output template.
  21950. 
  21951. File: gccint.info, Node: Define Subst Example, Next: Define Subst Pattern Matching, Up: Define Subst
  21952. 16.21.1 'define_subst' Example
  21953. ------------------------------
  21954. To illustrate how 'define_subst' works, let us examine a simple template
  21955. transformation.
  21956. Suppose there are two kinds of instructions: one that touches flags and
  21957. the other that does not. The instructions of the second type could be
  21958. generated with the following 'define_subst':
  21959. (define_subst "add_clobber_subst"
  21960. [(set (match_operand:SI 0 "" "")
  21961. (match_operand:SI 1 "" ""))]
  21962. ""
  21963. [(set (match_dup 0)
  21964. (match_dup 1))
  21965. (clobber (reg:CC FLAGS_REG))]
  21966. This 'define_subst' can be applied to any RTL pattern containing 'set'
  21967. of mode SI and generates a copy with clobber when it is applied.
  21968. Assume there is an RTL template for a 'max' instruction to be used in
  21969. 'define_subst' mentioned above:
  21970. (define_insn "maxsi"
  21971. [(set (match_operand:SI 0 "register_operand" "=r")
  21972. (max:SI
  21973. (match_operand:SI 1 "register_operand" "r")
  21974. (match_operand:SI 2 "register_operand" "r")))]
  21975. ""
  21976. "max\t{%2, %1, %0|%0, %1, %2}"
  21977. [...])
  21978. To mark the RTL template for 'define_subst' application,
  21979. subst-attributes are used. They should be declared in advance:
  21980. (define_subst_attr "add_clobber_name" "add_clobber_subst" "_noclobber" "_clobber")
  21981. Here 'add_clobber_name' is the attribute name, 'add_clobber_subst' is
  21982. the name of the corresponding 'define_subst', the third argument
  21983. ('_noclobber') is the attribute value that would be substituted into the
  21984. unchanged version of the source RTL template, and the last argument
  21985. ('_clobber') is the value that would be substituted into the second,
  21986. transformed, version of the RTL template.
  21987. Once the subst-attribute has been defined, it should be used in RTL
  21988. templates which need to be processed by the 'define_subst'. So, the
  21989. original RTL template should be changed:
  21990. (define_insn "maxsi<add_clobber_name>"
  21991. [(set (match_operand:SI 0 "register_operand" "=r")
  21992. (max:SI
  21993. (match_operand:SI 1 "register_operand" "r")
  21994. (match_operand:SI 2 "register_operand" "r")))]
  21995. ""
  21996. "max\t{%2, %1, %0|%0, %1, %2}"
  21997. [...])
  21998. The result of the 'define_subst' usage would look like the following:
  21999. (define_insn "maxsi_noclobber"
  22000. [(set (match_operand:SI 0 "register_operand" "=r")
  22001. (max:SI
  22002. (match_operand:SI 1 "register_operand" "r")
  22003. (match_operand:SI 2 "register_operand" "r")))]
  22004. ""
  22005. "max\t{%2, %1, %0|%0, %1, %2}"
  22006. [...])
  22007. (define_insn "maxsi_clobber"
  22008. [(set (match_operand:SI 0 "register_operand" "=r")
  22009. (max:SI
  22010. (match_operand:SI 1 "register_operand" "r")
  22011. (match_operand:SI 2 "register_operand" "r")))
  22012. (clobber (reg:CC FLAGS_REG))]
  22013. ""
  22014. "max\t{%2, %1, %0|%0, %1, %2}"
  22015. [...])
  22016. 
  22017. File: gccint.info, Node: Define Subst Pattern Matching, Next: Define Subst Output Template, Prev: Define Subst Example, Up: Define Subst
  22018. 16.21.2 Pattern Matching in 'define_subst'
  22019. ------------------------------------------
  22020. All expressions, allowed in 'define_insn' or 'define_expand', are
  22021. allowed in the input-template of 'define_subst', except 'match_par_dup',
  22022. 'match_scratch', 'match_parallel'. The meanings of expressions in the
  22023. input-template were changed:
  22024. 'match_operand' matches any expression (possibly, a subtree in
  22025. RTL-template), if modes of the 'match_operand' and this expression are
  22026. the same, or mode of the 'match_operand' is 'VOIDmode', or this
  22027. expression is 'match_dup', 'match_op_dup'. If the expression is
  22028. 'match_operand' too, and predicate of 'match_operand' from the input
  22029. pattern is not empty, then the predicates are compared. That can be
  22030. used for more accurate filtering of accepted RTL-templates.
  22031. 'match_operator' matches common operators (like 'plus', 'minus'),
  22032. 'unspec', 'unspec_volatile' operators and 'match_operator's from the
  22033. original pattern if the modes match and 'match_operator' from the input
  22034. pattern has the same number of operands as the operator from the
  22035. original pattern.
  22036. 
  22037. File: gccint.info, Node: Define Subst Output Template, Prev: Define Subst Pattern Matching, Up: Define Subst
  22038. 16.21.3 Generation of output template in 'define_subst'
  22039. -------------------------------------------------------
  22040. If all necessary checks for 'define_subst' application pass, a new
  22041. RTL-pattern, based on the output-template, is created to replace the old
  22042. template. Like in input-patterns, meanings of some RTL expressions are
  22043. changed when they are used in output-patterns of a 'define_subst'.
  22044. Thus, 'match_dup' is used for copying the whole expression from the
  22045. original pattern, which matched corresponding 'match_operand' from the
  22046. input pattern.
  22047. 'match_dup N' is used in the output template to be replaced with the
  22048. expression from the original pattern, which matched 'match_operand N'
  22049. from the input pattern. As a consequence, 'match_dup' cannot be used to
  22050. point to 'match_operand's from the output pattern, it should always
  22051. refer to a 'match_operand' from the input pattern.
  22052. In the output template one can refer to the expressions from the
  22053. original pattern and create new ones. For instance, some operands could
  22054. be added by means of standard 'match_operand'.
  22055. After replacing 'match_dup' with some RTL-subtree from the original
  22056. pattern, it could happen that several 'match_operand's in the output
  22057. pattern have the same indexes. It is unknown, how many and what indexes
  22058. would be used in the expression which would replace 'match_dup', so such
  22059. conflicts in indexes are inevitable. To overcome this issue,
  22060. 'match_operands' and 'match_operators', which were introduced into the
  22061. output pattern, are renumerated when all 'match_dup's are replaced.
  22062. Number of alternatives in 'match_operand's introduced into the output
  22063. template 'M' could differ from the number of alternatives in the
  22064. original pattern 'N', so in the resultant pattern there would be 'N*M'
  22065. alternatives. Thus, constraints from the original pattern would be
  22066. duplicated 'N' times, constraints from the output pattern would be
  22067. duplicated 'M' times, producing all possible combinations.
  22068. 
  22069. File: gccint.info, Node: Constant Definitions, Next: Iterators, Prev: Define Subst, Up: Machine Desc
  22070. 16.22 Constant Definitions
  22071. ==========================
  22072. Using literal constants inside instruction patterns reduces legibility
  22073. and can be a maintenance problem.
  22074. To overcome this problem, you may use the 'define_constants'
  22075. expression. It contains a vector of name-value pairs. From that point
  22076. on, wherever any of the names appears in the MD file, it is as if the
  22077. corresponding value had been written instead. You may use
  22078. 'define_constants' multiple times; each appearance adds more constants
  22079. to the table. It is an error to redefine a constant with a different
  22080. value.
  22081. To come back to the a29k load multiple example, instead of
  22082. (define_insn ""
  22083. [(match_parallel 0 "load_multiple_operation"
  22084. [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
  22085. (match_operand:SI 2 "memory_operand" "m"))
  22086. (use (reg:SI 179))
  22087. (clobber (reg:SI 179))])]
  22088. ""
  22089. "loadm 0,0,%1,%2")
  22090. You could write:
  22091. (define_constants [
  22092. (R_BP 177)
  22093. (R_FC 178)
  22094. (R_CR 179)
  22095. (R_Q 180)
  22096. ])
  22097. (define_insn ""
  22098. [(match_parallel 0 "load_multiple_operation"
  22099. [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
  22100. (match_operand:SI 2 "memory_operand" "m"))
  22101. (use (reg:SI R_CR))
  22102. (clobber (reg:SI R_CR))])]
  22103. ""
  22104. "loadm 0,0,%1,%2")
  22105. The constants that are defined with a define_constant are also output
  22106. in the insn-codes.h header file as #defines.
  22107. You can also use the machine description file to define enumerations.
  22108. Like the constants defined by 'define_constant', these enumerations are
  22109. visible to both the machine description file and the main C code.
  22110. The syntax is as follows:
  22111. (define_c_enum "NAME" [
  22112. VALUE0
  22113. VALUE1
  22114. ...
  22115. VALUEN
  22116. ])
  22117. This definition causes the equivalent of the following C code to appear
  22118. in 'insn-constants.h':
  22119. enum NAME {
  22120. VALUE0 = 0,
  22121. VALUE1 = 1,
  22122. ...
  22123. VALUEN = N
  22124. };
  22125. #define NUM_CNAME_VALUES (N + 1)
  22126. where CNAME is the capitalized form of NAME. It also makes each VALUEI
  22127. available in the machine description file, just as if it had been
  22128. declared with:
  22129. (define_constants [(VALUEI I)])
  22130. Each VALUEI is usually an upper-case identifier and usually begins with
  22131. CNAME.
  22132. You can split the enumeration definition into as many statements as you
  22133. like. The above example is directly equivalent to:
  22134. (define_c_enum "NAME" [VALUE0])
  22135. (define_c_enum "NAME" [VALUE1])
  22136. ...
  22137. (define_c_enum "NAME" [VALUEN])
  22138. Splitting the enumeration helps to improve the modularity of each
  22139. individual '.md' file. For example, if a port defines its
  22140. synchronization instructions in a separate 'sync.md' file, it is
  22141. convenient to define all synchronization-specific enumeration values in
  22142. 'sync.md' rather than in the main '.md' file.
  22143. Some enumeration names have special significance to GCC:
  22144. 'unspecv'
  22145. If an enumeration called 'unspecv' is defined, GCC will use it when
  22146. printing out 'unspec_volatile' expressions. For example:
  22147. (define_c_enum "unspecv" [
  22148. UNSPECV_BLOCKAGE
  22149. ])
  22150. causes GCC to print '(unspec_volatile ... 0)' as:
  22151. (unspec_volatile ... UNSPECV_BLOCKAGE)
  22152. 'unspec'
  22153. If an enumeration called 'unspec' is defined, GCC will use it when
  22154. printing out 'unspec' expressions. GCC will also use it when
  22155. printing out 'unspec_volatile' expressions unless an 'unspecv'
  22156. enumeration is also defined. You can therefore decide whether to
  22157. keep separate enumerations for volatile and non-volatile
  22158. expressions or whether to use the same enumeration for both.
  22159. Another way of defining an enumeration is to use 'define_enum':
  22160. (define_enum "NAME" [
  22161. VALUE0
  22162. VALUE1
  22163. ...
  22164. VALUEN
  22165. ])
  22166. This directive implies:
  22167. (define_c_enum "NAME" [
  22168. CNAME_CVALUE0
  22169. CNAME_CVALUE1
  22170. ...
  22171. CNAME_CVALUEN
  22172. ])
  22173. where CVALUEI is the capitalized form of VALUEI. However, unlike
  22174. 'define_c_enum', the enumerations defined by 'define_enum' can be used
  22175. in attribute specifications (*note define_enum_attr::).
  22176. 
  22177. File: gccint.info, Node: Iterators, Prev: Constant Definitions, Up: Machine Desc
  22178. 16.23 Iterators
  22179. ===============
  22180. Ports often need to define similar patterns for more than one machine
  22181. mode or for more than one rtx code. GCC provides some simple iterator
  22182. facilities to make this process easier.
  22183. * Menu:
  22184. * Mode Iterators:: Generating variations of patterns for different modes.
  22185. * Code Iterators:: Doing the same for codes.
  22186. * Int Iterators:: Doing the same for integers.
  22187. * Subst Iterators:: Generating variations of patterns for define_subst.
  22188. 
  22189. File: gccint.info, Node: Mode Iterators, Next: Code Iterators, Up: Iterators
  22190. 16.23.1 Mode Iterators
  22191. ----------------------
  22192. Ports often need to define similar patterns for two or more different
  22193. modes. For example:
  22194. * If a processor has hardware support for both single and double
  22195. floating-point arithmetic, the 'SFmode' patterns tend to be very
  22196. similar to the 'DFmode' ones.
  22197. * If a port uses 'SImode' pointers in one configuration and 'DImode'
  22198. pointers in another, it will usually have very similar 'SImode' and
  22199. 'DImode' patterns for manipulating pointers.
  22200. Mode iterators allow several patterns to be instantiated from one '.md'
  22201. file template. They can be used with any type of rtx-based construct,
  22202. such as a 'define_insn', 'define_split', or 'define_peephole2'.
  22203. * Menu:
  22204. * Defining Mode Iterators:: Defining a new mode iterator.
  22205. * Substitutions:: Combining mode iterators with substitutions
  22206. * Examples:: Examples
  22207. 
  22208. File: gccint.info, Node: Defining Mode Iterators, Next: Substitutions, Up: Mode Iterators
  22209. 16.23.1.1 Defining Mode Iterators
  22210. .................................
  22211. The syntax for defining a mode iterator is:
  22212. (define_mode_iterator NAME [(MODE1 "COND1") ... (MODEN "CONDN")])
  22213. This allows subsequent '.md' file constructs to use the mode suffix
  22214. ':NAME'. Every construct that does so will be expanded N times, once
  22215. with every use of ':NAME' replaced by ':MODE1', once with every use
  22216. replaced by ':MODE2', and so on. In the expansion for a particular
  22217. MODEI, every C condition will also require that CONDI be true.
  22218. For example:
  22219. (define_mode_iterator P [(SI "Pmode == SImode") (DI "Pmode == DImode")])
  22220. defines a new mode suffix ':P'. Every construct that uses ':P' will be
  22221. expanded twice, once with every ':P' replaced by ':SI' and once with
  22222. every ':P' replaced by ':DI'. The ':SI' version will only apply if
  22223. 'Pmode == SImode' and the ':DI' version will only apply if 'Pmode ==
  22224. DImode'.
  22225. As with other '.md' conditions, an empty string is treated as "always
  22226. true". '(MODE "")' can also be abbreviated to 'MODE'. For example:
  22227. (define_mode_iterator GPR [SI (DI "TARGET_64BIT")])
  22228. means that the ':DI' expansion only applies if 'TARGET_64BIT' but that
  22229. the ':SI' expansion has no such constraint.
  22230. Iterators are applied in the order they are defined. This can be
  22231. significant if two iterators are used in a construct that requires
  22232. substitutions. *Note Substitutions::.
  22233. 
  22234. File: gccint.info, Node: Substitutions, Next: Examples, Prev: Defining Mode Iterators, Up: Mode Iterators
  22235. 16.23.1.2 Substitution in Mode Iterators
  22236. ........................................
  22237. If an '.md' file construct uses mode iterators, each version of the
  22238. construct will often need slightly different strings or modes. For
  22239. example:
  22240. * When a 'define_expand' defines several 'addM3' patterns (*note
  22241. Standard Names::), each expander will need to use the appropriate
  22242. mode name for M.
  22243. * When a 'define_insn' defines several instruction patterns, each
  22244. instruction will often use a different assembler mnemonic.
  22245. * When a 'define_insn' requires operands with different modes, using
  22246. an iterator for one of the operand modes usually requires a
  22247. specific mode for the other operand(s).
  22248. GCC supports such variations through a system of "mode attributes".
  22249. There are two standard attributes: 'mode', which is the name of the mode
  22250. in lower case, and 'MODE', which is the same thing in upper case. You
  22251. can define other attributes using:
  22252. (define_mode_attr NAME [(MODE1 "VALUE1") ... (MODEN "VALUEN")])
  22253. where NAME is the name of the attribute and VALUEI is the value
  22254. associated with MODEI.
  22255. When GCC replaces some :ITERATOR with :MODE, it will scan each string
  22256. and mode in the pattern for sequences of the form '<ITERATOR:ATTR>',
  22257. where ATTR is the name of a mode attribute. If the attribute is defined
  22258. for MODE, the whole '<...>' sequence will be replaced by the appropriate
  22259. attribute value.
  22260. For example, suppose an '.md' file has:
  22261. (define_mode_iterator P [(SI "Pmode == SImode") (DI "Pmode == DImode")])
  22262. (define_mode_attr load [(SI "lw") (DI "ld")])
  22263. If one of the patterns that uses ':P' contains the string
  22264. '"<P:load>\t%0,%1"', the 'SI' version of that pattern will use
  22265. '"lw\t%0,%1"' and the 'DI' version will use '"ld\t%0,%1"'.
  22266. Here is an example of using an attribute for a mode:
  22267. (define_mode_iterator LONG [SI DI])
  22268. (define_mode_attr SHORT [(SI "HI") (DI "SI")])
  22269. (define_insn ...
  22270. (sign_extend:LONG (match_operand:<LONG:SHORT> ...)) ...)
  22271. The 'ITERATOR:' prefix may be omitted, in which case the substitution
  22272. will be attempted for every iterator expansion.
  22273. 
  22274. File: gccint.info, Node: Examples, Prev: Substitutions, Up: Mode Iterators
  22275. 16.23.1.3 Mode Iterator Examples
  22276. ................................
  22277. Here is an example from the MIPS port. It defines the following modes
  22278. and attributes (among others):
  22279. (define_mode_iterator GPR [SI (DI "TARGET_64BIT")])
  22280. (define_mode_attr d [(SI "") (DI "d")])
  22281. and uses the following template to define both 'subsi3' and 'subdi3':
  22282. (define_insn "sub<mode>3"
  22283. [(set (match_operand:GPR 0 "register_operand" "=d")
  22284. (minus:GPR (match_operand:GPR 1 "register_operand" "d")
  22285. (match_operand:GPR 2 "register_operand" "d")))]
  22286. ""
  22287. "<d>subu\t%0,%1,%2"
  22288. [(set_attr "type" "arith")
  22289. (set_attr "mode" "<MODE>")])
  22290. This is exactly equivalent to:
  22291. (define_insn "subsi3"
  22292. [(set (match_operand:SI 0 "register_operand" "=d")
  22293. (minus:SI (match_operand:SI 1 "register_operand" "d")
  22294. (match_operand:SI 2 "register_operand" "d")))]
  22295. ""
  22296. "subu\t%0,%1,%2"
  22297. [(set_attr "type" "arith")
  22298. (set_attr "mode" "SI")])
  22299. (define_insn "subdi3"
  22300. [(set (match_operand:DI 0 "register_operand" "=d")
  22301. (minus:DI (match_operand:DI 1 "register_operand" "d")
  22302. (match_operand:DI 2 "register_operand" "d")))]
  22303. ""
  22304. "dsubu\t%0,%1,%2"
  22305. [(set_attr "type" "arith")
  22306. (set_attr "mode" "DI")])
  22307. 
  22308. File: gccint.info, Node: Code Iterators, Next: Int Iterators, Prev: Mode Iterators, Up: Iterators
  22309. 16.23.2 Code Iterators
  22310. ----------------------
  22311. Code iterators operate in a similar way to mode iterators. *Note Mode
  22312. Iterators::.
  22313. The construct:
  22314. (define_code_iterator NAME [(CODE1 "COND1") ... (CODEN "CONDN")])
  22315. defines a pseudo rtx code NAME that can be instantiated as CODEI if
  22316. condition CONDI is true. Each CODEI must have the same rtx format.
  22317. *Note RTL Classes::.
  22318. As with mode iterators, each pattern that uses NAME will be expanded N
  22319. times, once with all uses of NAME replaced by CODE1, once with all uses
  22320. replaced by CODE2, and so on. *Note Defining Mode Iterators::.
  22321. It is possible to define attributes for codes as well as for modes.
  22322. There are two standard code attributes: 'code', the name of the code in
  22323. lower case, and 'CODE', the name of the code in upper case. Other
  22324. attributes are defined using:
  22325. (define_code_attr NAME [(CODE1 "VALUE1") ... (CODEN "VALUEN")])
  22326. Here's an example of code iterators in action, taken from the MIPS
  22327. port:
  22328. (define_code_iterator any_cond [unordered ordered unlt unge uneq ltgt unle ungt
  22329. eq ne gt ge lt le gtu geu ltu leu])
  22330. (define_expand "b<code>"
  22331. [(set (pc)
  22332. (if_then_else (any_cond:CC (cc0)
  22333. (const_int 0))
  22334. (label_ref (match_operand 0 ""))
  22335. (pc)))]
  22336. ""
  22337. {
  22338. gen_conditional_branch (operands, <CODE>);
  22339. DONE;
  22340. })
  22341. This is equivalent to:
  22342. (define_expand "bunordered"
  22343. [(set (pc)
  22344. (if_then_else (unordered:CC (cc0)
  22345. (const_int 0))
  22346. (label_ref (match_operand 0 ""))
  22347. (pc)))]
  22348. ""
  22349. {
  22350. gen_conditional_branch (operands, UNORDERED);
  22351. DONE;
  22352. })
  22353. (define_expand "bordered"
  22354. [(set (pc)
  22355. (if_then_else (ordered:CC (cc0)
  22356. (const_int 0))
  22357. (label_ref (match_operand 0 ""))
  22358. (pc)))]
  22359. ""
  22360. {
  22361. gen_conditional_branch (operands, ORDERED);
  22362. DONE;
  22363. })
  22364. ...
  22365. 
  22366. File: gccint.info, Node: Int Iterators, Next: Subst Iterators, Prev: Code Iterators, Up: Iterators
  22367. 16.23.3 Int Iterators
  22368. ---------------------
  22369. Int iterators operate in a similar way to code iterators. *Note Code
  22370. Iterators::.
  22371. The construct:
  22372. (define_int_iterator NAME [(INT1 "COND1") ... (INTN "CONDN")])
  22373. defines a pseudo integer constant NAME that can be instantiated as INTI
  22374. if condition CONDI is true. Each INT must have the same rtx format.
  22375. *Note RTL Classes::. Int iterators can appear in only those rtx fields
  22376. that have 'i' as the specifier. This means that each INT has to be a
  22377. constant defined using define_constant or define_c_enum.
  22378. As with mode and code iterators, each pattern that uses NAME will be
  22379. expanded N times, once with all uses of NAME replaced by INT1, once with
  22380. all uses replaced by INT2, and so on. *Note Defining Mode Iterators::.
  22381. It is possible to define attributes for ints as well as for codes and
  22382. modes. Attributes are defined using:
  22383. (define_int_attr NAME [(INT1 "VALUE1") ... (INTN "VALUEN")])
  22384. Here's an example of int iterators in action, taken from the ARM port:
  22385. (define_int_iterator QABSNEG [UNSPEC_VQABS UNSPEC_VQNEG])
  22386. (define_int_attr absneg [(UNSPEC_VQABS "abs") (UNSPEC_VQNEG "neg")])
  22387. (define_insn "neon_vq<absneg><mode>"
  22388. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  22389. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  22390. (match_operand:SI 2 "immediate_operand" "i")]
  22391. QABSNEG))]
  22392. "TARGET_NEON"
  22393. "vq<absneg>.<V_s_elem>\t%<V_reg>0, %<V_reg>1"
  22394. [(set_attr "type" "neon_vqneg_vqabs")]
  22395. )
  22396. This is equivalent to:
  22397. (define_insn "neon_vqabs<mode>"
  22398. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  22399. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  22400. (match_operand:SI 2 "immediate_operand" "i")]
  22401. UNSPEC_VQABS))]
  22402. "TARGET_NEON"
  22403. "vqabs.<V_s_elem>\t%<V_reg>0, %<V_reg>1"
  22404. [(set_attr "type" "neon_vqneg_vqabs")]
  22405. )
  22406. (define_insn "neon_vqneg<mode>"
  22407. [(set (match_operand:VDQIW 0 "s_register_operand" "=w")
  22408. (unspec:VDQIW [(match_operand:VDQIW 1 "s_register_operand" "w")
  22409. (match_operand:SI 2 "immediate_operand" "i")]
  22410. UNSPEC_VQNEG))]
  22411. "TARGET_NEON"
  22412. "vqneg.<V_s_elem>\t%<V_reg>0, %<V_reg>1"
  22413. [(set_attr "type" "neon_vqneg_vqabs")]
  22414. )
  22415. 
  22416. File: gccint.info, Node: Subst Iterators, Prev: Int Iterators, Up: Iterators
  22417. 16.23.4 Subst Iterators
  22418. -----------------------
  22419. Subst iterators are special type of iterators with the following
  22420. restrictions: they could not be declared explicitly, they always have
  22421. only two values, and they do not have explicit dedicated name.
  22422. Subst-iterators are triggered only when corresponding subst-attribute is
  22423. used in RTL-pattern.
  22424. Subst iterators transform templates in the following way: the templates
  22425. are duplicated, the subst-attributes in these templates are replaced
  22426. with the corresponding values, and a new attribute is implicitly added
  22427. to the given 'define_insn'/'define_expand'. The name of the added
  22428. attribute matches the name of 'define_subst'. Such attributes are
  22429. declared implicitly, and it is not allowed to have a 'define_attr' named
  22430. as a 'define_subst'.
  22431. Each subst iterator is linked to a 'define_subst'. It is declared
  22432. implicitly by the first appearance of the corresponding
  22433. 'define_subst_attr', and it is not allowed to define it explicitly.
  22434. Declarations of subst-attributes have the following syntax:
  22435. (define_subst_attr "NAME"
  22436. "SUBST-NAME"
  22437. "NO-SUBST-VALUE"
  22438. "SUBST-APPLIED-VALUE")
  22439. NAME is a string with which the given subst-attribute could be referred
  22440. to.
  22441. SUBST-NAME shows which 'define_subst' should be applied to an
  22442. RTL-template if the given subst-attribute is present in the
  22443. RTL-template.
  22444. NO-SUBST-VALUE is a value with which subst-attribute would be replaced
  22445. in the first copy of the original RTL-template.
  22446. SUBST-APPLIED-VALUE is a value with which subst-attribute would be
  22447. replaced in the second copy of the original RTL-template.
  22448. 
  22449. File: gccint.info, Node: Target Macros, Next: Host Config, Prev: Machine Desc, Up: Top
  22450. 17 Target Description Macros and Functions
  22451. ******************************************
  22452. In addition to the file 'MACHINE.md', a machine description includes a C
  22453. header file conventionally given the name 'MACHINE.h' and a C source
  22454. file named 'MACHINE.c'. The header file defines numerous macros that
  22455. convey the information about the target machine that does not fit into
  22456. the scheme of the '.md' file. The file 'tm.h' should be a link to
  22457. 'MACHINE.h'. The header file 'config.h' includes 'tm.h' and most
  22458. compiler source files include 'config.h'. The source file defines a
  22459. variable 'targetm', which is a structure containing pointers to
  22460. functions and data relating to the target machine. 'MACHINE.c' should
  22461. also contain their definitions, if they are not defined elsewhere in
  22462. GCC, and other functions called through the macros defined in the '.h'
  22463. file.
  22464. * Menu:
  22465. * Target Structure:: The 'targetm' variable.
  22466. * Driver:: Controlling how the driver runs the compilation passes.
  22467. * Run-time Target:: Defining '-m' options like '-m68000' and '-m68020'.
  22468. * Per-Function Data:: Defining data structures for per-function information.
  22469. * Storage Layout:: Defining sizes and alignments of data.
  22470. * Type Layout:: Defining sizes and properties of basic user data types.
  22471. * Registers:: Naming and describing the hardware registers.
  22472. * Register Classes:: Defining the classes of hardware registers.
  22473. * Stack and Calling:: Defining which way the stack grows and by how much.
  22474. * Varargs:: Defining the varargs macros.
  22475. * Trampolines:: Code set up at run time to enter a nested function.
  22476. * Library Calls:: Controlling how library routines are implicitly called.
  22477. * Addressing Modes:: Defining addressing modes valid for memory operands.
  22478. * Anchored Addresses:: Defining how '-fsection-anchors' should work.
  22479. * Condition Code:: Defining how insns update the condition code.
  22480. * Costs:: Defining relative costs of different operations.
  22481. * Scheduling:: Adjusting the behavior of the instruction scheduler.
  22482. * Sections:: Dividing storage into text, data, and other sections.
  22483. * PIC:: Macros for position independent code.
  22484. * Assembler Format:: Defining how to write insns and pseudo-ops to output.
  22485. * Debugging Info:: Defining the format of debugging output.
  22486. * Floating Point:: Handling floating point for cross-compilers.
  22487. * Mode Switching:: Insertion of mode-switching instructions.
  22488. * Target Attributes:: Defining target-specific uses of '__attribute__'.
  22489. * Emulated TLS:: Emulated TLS support.
  22490. * MIPS Coprocessors:: MIPS coprocessor support and how to customize it.
  22491. * PCH Target:: Validity checking for precompiled headers.
  22492. * C++ ABI:: Controlling C++ ABI changes.
  22493. * Named Address Spaces:: Adding support for named address spaces
  22494. * Misc:: Everything else.
  22495. 
  22496. File: gccint.info, Node: Target Structure, Next: Driver, Up: Target Macros
  22497. 17.1 The Global 'targetm' Variable
  22498. ==================================
  22499. -- Variable: struct gcc_target targetm
  22500. The target '.c' file must define the global 'targetm' variable
  22501. which contains pointers to functions and data relating to the
  22502. target machine. The variable is declared in 'target.h';
  22503. 'target-def.h' defines the macro 'TARGET_INITIALIZER' which is used
  22504. to initialize the variable, and macros for the default initializers
  22505. for elements of the structure. The '.c' file should override those
  22506. macros for which the default definition is inappropriate. For
  22507. example:
  22508. #include "target.h"
  22509. #include "target-def.h"
  22510. /* Initialize the GCC target structure. */
  22511. #undef TARGET_COMP_TYPE_ATTRIBUTES
  22512. #define TARGET_COMP_TYPE_ATTRIBUTES MACHINE_comp_type_attributes
  22513. struct gcc_target targetm = TARGET_INITIALIZER;
  22514. Where a macro should be defined in the '.c' file in this manner to form
  22515. part of the 'targetm' structure, it is documented below as a "Target
  22516. Hook" with a prototype. Many macros will change in future from being
  22517. defined in the '.h' file to being part of the 'targetm' structure.
  22518. Similarly, there is a 'targetcm' variable for hooks that are specific
  22519. to front ends for C-family languages, documented as "C Target Hook".
  22520. This is declared in 'c-family/c-target.h', the initializer
  22521. 'TARGETCM_INITIALIZER' in 'c-family/c-target-def.h'. If targets
  22522. initialize 'targetcm' themselves, they should set
  22523. 'target_has_targetcm=yes' in 'config.gcc'; otherwise a default
  22524. definition is used.
  22525. Similarly, there is a 'targetm_common' variable for hooks that are
  22526. shared between the compiler driver and the compilers proper, documented
  22527. as "Common Target Hook". This is declared in 'common/common-target.h',
  22528. the initializer 'TARGETM_COMMON_INITIALIZER' in
  22529. 'common/common-target-def.h'. If targets initialize 'targetm_common'
  22530. themselves, they should set 'target_has_targetm_common=yes' in
  22531. 'config.gcc'; otherwise a default definition is used.
  22532. 
  22533. File: gccint.info, Node: Driver, Next: Run-time Target, Prev: Target Structure, Up: Target Macros
  22534. 17.2 Controlling the Compilation Driver, 'gcc'
  22535. ==============================================
  22536. You can control the compilation driver.
  22537. -- Macro: DRIVER_SELF_SPECS
  22538. A list of specs for the driver itself. It should be a suitable
  22539. initializer for an array of strings, with no surrounding braces.
  22540. The driver applies these specs to its own command line between
  22541. loading default 'specs' files (but not command-line specified ones)
  22542. and choosing the multilib directory or running any subcommands. It
  22543. applies them in the order given, so each spec can depend on the
  22544. options added by earlier ones. It is also possible to remove
  22545. options using '%<OPTION' in the usual way.
  22546. This macro can be useful when a port has several interdependent
  22547. target options. It provides a way of standardizing the command
  22548. line so that the other specs are easier to write.
  22549. Do not define this macro if it does not need to do anything.
  22550. -- Macro: OPTION_DEFAULT_SPECS
  22551. A list of specs used to support configure-time default options
  22552. (i.e. '--with' options) in the driver. It should be a suitable
  22553. initializer for an array of structures, each containing two
  22554. strings, without the outermost pair of surrounding braces.
  22555. The first item in the pair is the name of the default. This must
  22556. match the code in 'config.gcc' for the target. The second item is
  22557. a spec to apply if a default with this name was specified. The
  22558. string '%(VALUE)' in the spec will be replaced by the value of the
  22559. default everywhere it occurs.
  22560. The driver will apply these specs to its own command line between
  22561. loading default 'specs' files and processing 'DRIVER_SELF_SPECS',
  22562. using the same mechanism as 'DRIVER_SELF_SPECS'.
  22563. Do not define this macro if it does not need to do anything.
  22564. -- Macro: CPP_SPEC
  22565. A C string constant that tells the GCC driver program options to
  22566. pass to CPP. It can also specify how to translate options you give
  22567. to GCC into options for GCC to pass to the CPP.
  22568. Do not define this macro if it does not need to do anything.
  22569. -- Macro: CPLUSPLUS_CPP_SPEC
  22570. This macro is just like 'CPP_SPEC', but is used for C++, rather
  22571. than C. If you do not define this macro, then the value of
  22572. 'CPP_SPEC' (if any) will be used instead.
  22573. -- Macro: CC1_SPEC
  22574. A C string constant that tells the GCC driver program options to
  22575. pass to 'cc1', 'cc1plus', 'f771', and the other language front
  22576. ends. It can also specify how to translate options you give to GCC
  22577. into options for GCC to pass to front ends.
  22578. Do not define this macro if it does not need to do anything.
  22579. -- Macro: CC1PLUS_SPEC
  22580. A C string constant that tells the GCC driver program options to
  22581. pass to 'cc1plus'. It can also specify how to translate options
  22582. you give to GCC into options for GCC to pass to the 'cc1plus'.
  22583. Do not define this macro if it does not need to do anything. Note
  22584. that everything defined in CC1_SPEC is already passed to 'cc1plus'
  22585. so there is no need to duplicate the contents of CC1_SPEC in
  22586. CC1PLUS_SPEC.
  22587. -- Macro: ASM_SPEC
  22588. A C string constant that tells the GCC driver program options to
  22589. pass to the assembler. It can also specify how to translate
  22590. options you give to GCC into options for GCC to pass to the
  22591. assembler. See the file 'sun3.h' for an example of this.
  22592. Do not define this macro if it does not need to do anything.
  22593. -- Macro: ASM_FINAL_SPEC
  22594. A C string constant that tells the GCC driver program how to run
  22595. any programs which cleanup after the normal assembler. Normally,
  22596. this is not needed. See the file 'mips.h' for an example of this.
  22597. Do not define this macro if it does not need to do anything.
  22598. -- Macro: AS_NEEDS_DASH_FOR_PIPED_INPUT
  22599. Define this macro, with no value, if the driver should give the
  22600. assembler an argument consisting of a single dash, '-', to instruct
  22601. it to read from its standard input (which will be a pipe connected
  22602. to the output of the compiler proper). This argument is given
  22603. after any '-o' option specifying the name of the output file.
  22604. If you do not define this macro, the assembler is assumed to read
  22605. its standard input if given no non-option arguments. If your
  22606. assembler cannot read standard input at all, use a '%{pipe:%e}'
  22607. construct; see 'mips.h' for instance.
  22608. -- Macro: LINK_SPEC
  22609. A C string constant that tells the GCC driver program options to
  22610. pass to the linker. It can also specify how to translate options
  22611. you give to GCC into options for GCC to pass to the linker.
  22612. Do not define this macro if it does not need to do anything.
  22613. -- Macro: LIB_SPEC
  22614. Another C string constant used much like 'LINK_SPEC'. The
  22615. difference between the two is that 'LIB_SPEC' is used at the end of
  22616. the command given to the linker.
  22617. If this macro is not defined, a default is provided that loads the
  22618. standard C library from the usual place. See 'gcc.c'.
  22619. -- Macro: LIBGCC_SPEC
  22620. Another C string constant that tells the GCC driver program how and
  22621. when to place a reference to 'libgcc.a' into the linker command
  22622. line. This constant is placed both before and after the value of
  22623. 'LIB_SPEC'.
  22624. If this macro is not defined, the GCC driver provides a default
  22625. that passes the string '-lgcc' to the linker.
  22626. -- Macro: REAL_LIBGCC_SPEC
  22627. By default, if 'ENABLE_SHARED_LIBGCC' is defined, the 'LIBGCC_SPEC'
  22628. is not directly used by the driver program but is instead modified
  22629. to refer to different versions of 'libgcc.a' depending on the
  22630. values of the command line flags '-static', '-shared',
  22631. '-static-libgcc', and '-shared-libgcc'. On targets where these
  22632. modifications are inappropriate, define 'REAL_LIBGCC_SPEC' instead.
  22633. 'REAL_LIBGCC_SPEC' tells the driver how to place a reference to
  22634. 'libgcc' on the link command line, but, unlike 'LIBGCC_SPEC', it is
  22635. used unmodified.
  22636. -- Macro: USE_LD_AS_NEEDED
  22637. A macro that controls the modifications to 'LIBGCC_SPEC' mentioned
  22638. in 'REAL_LIBGCC_SPEC'. If nonzero, a spec will be generated that
  22639. uses '--as-needed' or equivalent options and the shared 'libgcc' in
  22640. place of the static exception handler library, when linking without
  22641. any of '-static', '-static-libgcc', or '-shared-libgcc'.
  22642. -- Macro: LINK_EH_SPEC
  22643. If defined, this C string constant is added to 'LINK_SPEC'. When
  22644. 'USE_LD_AS_NEEDED' is zero or undefined, it also affects the
  22645. modifications to 'LIBGCC_SPEC' mentioned in 'REAL_LIBGCC_SPEC'.
  22646. -- Macro: STARTFILE_SPEC
  22647. Another C string constant used much like 'LINK_SPEC'. The
  22648. difference between the two is that 'STARTFILE_SPEC' is used at the
  22649. very beginning of the command given to the linker.
  22650. If this macro is not defined, a default is provided that loads the
  22651. standard C startup file from the usual place. See 'gcc.c'.
  22652. -- Macro: ENDFILE_SPEC
  22653. Another C string constant used much like 'LINK_SPEC'. The
  22654. difference between the two is that 'ENDFILE_SPEC' is used at the
  22655. very end of the command given to the linker.
  22656. Do not define this macro if it does not need to do anything.
  22657. -- Macro: THREAD_MODEL_SPEC
  22658. GCC '-v' will print the thread model GCC was configured to use.
  22659. However, this doesn't work on platforms that are multilibbed on
  22660. thread models, such as AIX 4.3. On such platforms, define
  22661. 'THREAD_MODEL_SPEC' such that it evaluates to a string without
  22662. blanks that names one of the recognized thread models. '%*', the
  22663. default value of this macro, will expand to the value of
  22664. 'thread_file' set in 'config.gcc'.
  22665. -- Macro: SYSROOT_SUFFIX_SPEC
  22666. Define this macro to add a suffix to the target sysroot when GCC is
  22667. configured with a sysroot. This will cause GCC to search for
  22668. usr/lib, et al, within sysroot+suffix.
  22669. -- Macro: SYSROOT_HEADERS_SUFFIX_SPEC
  22670. Define this macro to add a headers_suffix to the target sysroot
  22671. when GCC is configured with a sysroot. This will cause GCC to pass
  22672. the updated sysroot+headers_suffix to CPP, causing it to search for
  22673. usr/include, et al, within sysroot+headers_suffix.
  22674. -- Macro: EXTRA_SPECS
  22675. Define this macro to provide additional specifications to put in
  22676. the 'specs' file that can be used in various specifications like
  22677. 'CC1_SPEC'.
  22678. The definition should be an initializer for an array of structures,
  22679. containing a string constant, that defines the specification name,
  22680. and a string constant that provides the specification.
  22681. Do not define this macro if it does not need to do anything.
  22682. 'EXTRA_SPECS' is useful when an architecture contains several
  22683. related targets, which have various '..._SPECS' which are similar
  22684. to each other, and the maintainer would like one central place to
  22685. keep these definitions.
  22686. For example, the PowerPC System V.4 targets use 'EXTRA_SPECS' to
  22687. define either '_CALL_SYSV' when the System V calling sequence is
  22688. used or '_CALL_AIX' when the older AIX-based calling sequence is
  22689. used.
  22690. The 'config/rs6000/rs6000.h' target file defines:
  22691. #define EXTRA_SPECS \
  22692. { "cpp_sysv_default", CPP_SYSV_DEFAULT },
  22693. #define CPP_SYS_DEFAULT ""
  22694. The 'config/rs6000/sysv.h' target file defines:
  22695. #undef CPP_SPEC
  22696. #define CPP_SPEC \
  22697. "%{posix: -D_POSIX_SOURCE } \
  22698. %{mcall-sysv: -D_CALL_SYSV } \
  22699. %{!mcall-sysv: %(cpp_sysv_default) } \
  22700. %{msoft-float: -D_SOFT_FLOAT} %{mcpu=403: -D_SOFT_FLOAT}"
  22701. #undef CPP_SYSV_DEFAULT
  22702. #define CPP_SYSV_DEFAULT "-D_CALL_SYSV"
  22703. while the 'config/rs6000/eabiaix.h' target file defines
  22704. 'CPP_SYSV_DEFAULT' as:
  22705. #undef CPP_SYSV_DEFAULT
  22706. #define CPP_SYSV_DEFAULT "-D_CALL_AIX"
  22707. -- Macro: LINK_LIBGCC_SPECIAL_1
  22708. Define this macro if the driver program should find the library
  22709. 'libgcc.a'. If you do not define this macro, the driver program
  22710. will pass the argument '-lgcc' to tell the linker to do the search.
  22711. -- Macro: LINK_GCC_C_SEQUENCE_SPEC
  22712. The sequence in which libgcc and libc are specified to the linker.
  22713. By default this is '%G %L %G'.
  22714. -- Macro: POST_LINK_SPEC
  22715. Define this macro to add additional steps to be executed after
  22716. linker. The default value of this macro is empty string.
  22717. -- Macro: LINK_COMMAND_SPEC
  22718. A C string constant giving the complete command line need to
  22719. execute the linker. When you do this, you will need to update your
  22720. port each time a change is made to the link command line within
  22721. 'gcc.c'. Therefore, define this macro only if you need to
  22722. completely redefine the command line for invoking the linker and
  22723. there is no other way to accomplish the effect you need.
  22724. Overriding this macro may be avoidable by overriding
  22725. 'LINK_GCC_C_SEQUENCE_SPEC' instead.
  22726. -- Common Target Hook: bool TARGET_ALWAYS_STRIP_DOTDOT
  22727. True if '..' components should always be removed from directory
  22728. names computed relative to GCC's internal directories, false
  22729. (default) if such components should be preserved and directory
  22730. names containing them passed to other tools such as the linker.
  22731. -- Macro: MULTILIB_DEFAULTS
  22732. Define this macro as a C expression for the initializer of an array
  22733. of string to tell the driver program which options are defaults for
  22734. this target and thus do not need to be handled specially when using
  22735. 'MULTILIB_OPTIONS'.
  22736. Do not define this macro if 'MULTILIB_OPTIONS' is not defined in
  22737. the target makefile fragment or if none of the options listed in
  22738. 'MULTILIB_OPTIONS' are set by default. *Note Target Fragment::.
  22739. -- Macro: RELATIVE_PREFIX_NOT_LINKDIR
  22740. Define this macro to tell 'gcc' that it should only translate a
  22741. '-B' prefix into a '-L' linker option if the prefix indicates an
  22742. absolute file name.
  22743. -- Macro: MD_EXEC_PREFIX
  22744. If defined, this macro is an additional prefix to try after
  22745. 'STANDARD_EXEC_PREFIX'. 'MD_EXEC_PREFIX' is not searched when the
  22746. compiler is built as a cross compiler. If you define
  22747. 'MD_EXEC_PREFIX', then be sure to add it to the list of directories
  22748. used to find the assembler in 'configure.ac'.
  22749. -- Macro: STANDARD_STARTFILE_PREFIX
  22750. Define this macro as a C string constant if you wish to override
  22751. the standard choice of 'libdir' as the default prefix to try when
  22752. searching for startup files such as 'crt0.o'.
  22753. 'STANDARD_STARTFILE_PREFIX' is not searched when the compiler is
  22754. built as a cross compiler.
  22755. -- Macro: STANDARD_STARTFILE_PREFIX_1
  22756. Define this macro as a C string constant if you wish to override
  22757. the standard choice of '/lib' as a prefix to try after the default
  22758. prefix when searching for startup files such as 'crt0.o'.
  22759. 'STANDARD_STARTFILE_PREFIX_1' is not searched when the compiler is
  22760. built as a cross compiler.
  22761. -- Macro: STANDARD_STARTFILE_PREFIX_2
  22762. Define this macro as a C string constant if you wish to override
  22763. the standard choice of '/lib' as yet another prefix to try after
  22764. the default prefix when searching for startup files such as
  22765. 'crt0.o'. 'STANDARD_STARTFILE_PREFIX_2' is not searched when the
  22766. compiler is built as a cross compiler.
  22767. -- Macro: MD_STARTFILE_PREFIX
  22768. If defined, this macro supplies an additional prefix to try after
  22769. the standard prefixes. 'MD_EXEC_PREFIX' is not searched when the
  22770. compiler is built as a cross compiler.
  22771. -- Macro: MD_STARTFILE_PREFIX_1
  22772. If defined, this macro supplies yet another prefix to try after the
  22773. standard prefixes. It is not searched when the compiler is built
  22774. as a cross compiler.
  22775. -- Macro: INIT_ENVIRONMENT
  22776. Define this macro as a C string constant if you wish to set
  22777. environment variables for programs called by the driver, such as
  22778. the assembler and loader. The driver passes the value of this
  22779. macro to 'putenv' to initialize the necessary environment
  22780. variables.
  22781. -- Macro: LOCAL_INCLUDE_DIR
  22782. Define this macro as a C string constant if you wish to override
  22783. the standard choice of '/usr/local/include' as the default prefix
  22784. to try when searching for local header files. 'LOCAL_INCLUDE_DIR'
  22785. comes before 'NATIVE_SYSTEM_HEADER_DIR' (set in 'config.gcc',
  22786. normally '/usr/include') in the search order.
  22787. Cross compilers do not search either '/usr/local/include' or its
  22788. replacement.
  22789. -- Macro: NATIVE_SYSTEM_HEADER_COMPONENT
  22790. The "component" corresponding to 'NATIVE_SYSTEM_HEADER_DIR'. See
  22791. 'INCLUDE_DEFAULTS', below, for the description of components. If
  22792. you do not define this macro, no component is used.
  22793. -- Macro: INCLUDE_DEFAULTS
  22794. Define this macro if you wish to override the entire default search
  22795. path for include files. For a native compiler, the default search
  22796. path usually consists of 'GCC_INCLUDE_DIR', 'LOCAL_INCLUDE_DIR',
  22797. 'GPLUSPLUS_INCLUDE_DIR', and 'NATIVE_SYSTEM_HEADER_DIR'. In
  22798. addition, 'GPLUSPLUS_INCLUDE_DIR' and 'GCC_INCLUDE_DIR' are defined
  22799. automatically by 'Makefile', and specify private search areas for
  22800. GCC. The directory 'GPLUSPLUS_INCLUDE_DIR' is used only for C++
  22801. programs.
  22802. The definition should be an initializer for an array of structures.
  22803. Each array element should have four elements: the directory name (a
  22804. string constant), the component name (also a string constant), a
  22805. flag for C++-only directories, and a flag showing that the includes
  22806. in the directory don't need to be wrapped in 'extern 'C'' when
  22807. compiling C++. Mark the end of the array with a null element.
  22808. The component name denotes what GNU package the include file is
  22809. part of, if any, in all uppercase letters. For example, it might
  22810. be 'GCC' or 'BINUTILS'. If the package is part of a
  22811. vendor-supplied operating system, code the component name as '0'.
  22812. For example, here is the definition used for VAX/VMS:
  22813. #define INCLUDE_DEFAULTS \
  22814. { \
  22815. { "GNU_GXX_INCLUDE:", "G++", 1, 1}, \
  22816. { "GNU_CC_INCLUDE:", "GCC", 0, 0}, \
  22817. { "SYS$SYSROOT:[SYSLIB.]", 0, 0, 0}, \
  22818. { ".", 0, 0, 0}, \
  22819. { 0, 0, 0, 0} \
  22820. }
  22821. Here is the order of prefixes tried for exec files:
  22822. 1. Any prefixes specified by the user with '-B'.
  22823. 2. The environment variable 'GCC_EXEC_PREFIX' or, if 'GCC_EXEC_PREFIX'
  22824. is not set and the compiler has not been installed in the
  22825. configure-time PREFIX, the location in which the compiler has
  22826. actually been installed.
  22827. 3. The directories specified by the environment variable
  22828. 'COMPILER_PATH'.
  22829. 4. The macro 'STANDARD_EXEC_PREFIX', if the compiler has been
  22830. installed in the configured-time PREFIX.
  22831. 5. The location '/usr/libexec/gcc/', but only if this is a native
  22832. compiler.
  22833. 6. The location '/usr/lib/gcc/', but only if this is a native
  22834. compiler.
  22835. 7. The macro 'MD_EXEC_PREFIX', if defined, but only if this is a
  22836. native compiler.
  22837. Here is the order of prefixes tried for startfiles:
  22838. 1. Any prefixes specified by the user with '-B'.
  22839. 2. The environment variable 'GCC_EXEC_PREFIX' or its automatically
  22840. determined value based on the installed toolchain location.
  22841. 3. The directories specified by the environment variable
  22842. 'LIBRARY_PATH' (or port-specific name; native only, cross compilers
  22843. do not use this).
  22844. 4. The macro 'STANDARD_EXEC_PREFIX', but only if the toolchain is
  22845. installed in the configured PREFIX or this is a native compiler.
  22846. 5. The location '/usr/lib/gcc/', but only if this is a native
  22847. compiler.
  22848. 6. The macro 'MD_EXEC_PREFIX', if defined, but only if this is a
  22849. native compiler.
  22850. 7. The macro 'MD_STARTFILE_PREFIX', if defined, but only if this is a
  22851. native compiler, or we have a target system root.
  22852. 8. The macro 'MD_STARTFILE_PREFIX_1', if defined, but only if this is
  22853. a native compiler, or we have a target system root.
  22854. 9. The macro 'STANDARD_STARTFILE_PREFIX', with any sysroot
  22855. modifications. If this path is relative it will be prefixed by
  22856. 'GCC_EXEC_PREFIX' and the machine suffix or 'STANDARD_EXEC_PREFIX'
  22857. and the machine suffix.
  22858. 10. The macro 'STANDARD_STARTFILE_PREFIX_1', but only if this is a
  22859. native compiler, or we have a target system root. The default for
  22860. this macro is '/lib/'.
  22861. 11. The macro 'STANDARD_STARTFILE_PREFIX_2', but only if this is a
  22862. native compiler, or we have a target system root. The default for
  22863. this macro is '/usr/lib/'.
  22864. 
  22865. File: gccint.info, Node: Run-time Target, Next: Per-Function Data, Prev: Driver, Up: Target Macros
  22866. 17.3 Run-time Target Specification
  22867. ==================================
  22868. Here are run-time target specifications.
  22869. -- Macro: TARGET_CPU_CPP_BUILTINS ()
  22870. This function-like macro expands to a block of code that defines
  22871. built-in preprocessor macros and assertions for the target CPU,
  22872. using the functions 'builtin_define', 'builtin_define_std' and
  22873. 'builtin_assert'. When the front end calls this macro it provides
  22874. a trailing semicolon, and since it has finished command line option
  22875. processing your code can use those results freely.
  22876. 'builtin_assert' takes a string in the form you pass to the
  22877. command-line option '-A', such as 'cpu=mips', and creates the
  22878. assertion. 'builtin_define' takes a string in the form accepted by
  22879. option '-D' and unconditionally defines the macro.
  22880. 'builtin_define_std' takes a string representing the name of an
  22881. object-like macro. If it doesn't lie in the user's namespace,
  22882. 'builtin_define_std' defines it unconditionally. Otherwise, it
  22883. defines a version with two leading underscores, and another version
  22884. with two leading and trailing underscores, and defines the original
  22885. only if an ISO standard was not requested on the command line. For
  22886. example, passing 'unix' defines '__unix', '__unix__' and possibly
  22887. 'unix'; passing '_mips' defines '__mips', '__mips__' and possibly
  22888. '_mips', and passing '_ABI64' defines only '_ABI64'.
  22889. You can also test for the C dialect being compiled. The variable
  22890. 'c_language' is set to one of 'clk_c', 'clk_cplusplus' or
  22891. 'clk_objective_c'. Note that if we are preprocessing assembler,
  22892. this variable will be 'clk_c' but the function-like macro
  22893. 'preprocessing_asm_p()' will return true, so you might want to
  22894. check for that first. If you need to check for strict ANSI, the
  22895. variable 'flag_iso' can be used. The function-like macro
  22896. 'preprocessing_trad_p()' can be used to check for traditional
  22897. preprocessing.
  22898. -- Macro: TARGET_OS_CPP_BUILTINS ()
  22899. Similarly to 'TARGET_CPU_CPP_BUILTINS' but this macro is optional
  22900. and is used for the target operating system instead.
  22901. -- Macro: TARGET_OBJFMT_CPP_BUILTINS ()
  22902. Similarly to 'TARGET_CPU_CPP_BUILTINS' but this macro is optional
  22903. and is used for the target object format. 'elfos.h' uses this
  22904. macro to define '__ELF__', so you probably do not need to define it
  22905. yourself.
  22906. -- Variable: extern int target_flags
  22907. This variable is declared in 'options.h', which is included before
  22908. any target-specific headers.
  22909. -- Common Target Hook: int TARGET_DEFAULT_TARGET_FLAGS
  22910. This variable specifies the initial value of 'target_flags'. Its
  22911. default setting is 0.
  22912. -- Common Target Hook: bool TARGET_HANDLE_OPTION (struct gcc_options
  22913. *OPTS, struct gcc_options *OPTS_SET, const struct
  22914. cl_decoded_option *DECODED, location_t LOC)
  22915. This hook is called whenever the user specifies one of the
  22916. target-specific options described by the '.opt' definition files
  22917. (*note Options::). It has the opportunity to do some
  22918. option-specific processing and should return true if the option is
  22919. valid. The default definition does nothing but return true.
  22920. DECODED specifies the option and its arguments. OPTS and OPTS_SET
  22921. are the 'gcc_options' structures to be used for storing option
  22922. state, and LOC is the location at which the option was passed
  22923. ('UNKNOWN_LOCATION' except for options passed via attributes).
  22924. -- C Target Hook: bool TARGET_HANDLE_C_OPTION (size_t CODE, const char
  22925. *ARG, int VALUE)
  22926. This target hook is called whenever the user specifies one of the
  22927. target-specific C language family options described by the '.opt'
  22928. definition files(*note Options::). It has the opportunity to do
  22929. some option-specific processing and should return true if the
  22930. option is valid. The arguments are like for
  22931. 'TARGET_HANDLE_OPTION'. The default definition does nothing but
  22932. return false.
  22933. In general, you should use 'TARGET_HANDLE_OPTION' to handle
  22934. options. However, if processing an option requires routines that
  22935. are only available in the C (and related language) front ends, then
  22936. you should use 'TARGET_HANDLE_C_OPTION' instead.
  22937. -- C Target Hook: tree TARGET_OBJC_CONSTRUCT_STRING_OBJECT (tree
  22938. STRING)
  22939. Targets may provide a string object type that can be used within
  22940. and between C, C++ and their respective Objective-C dialects. A
  22941. string object might, for example, embed encoding and length
  22942. information. These objects are considered opaque to the compiler
  22943. and handled as references. An ideal implementation makes the
  22944. composition of the string object match that of the Objective-C
  22945. 'NSString' ('NXString' for GNUStep), allowing efficient
  22946. interworking between C-only and Objective-C code. If a target
  22947. implements string objects then this hook should return a reference
  22948. to such an object constructed from the normal 'C' string
  22949. representation provided in STRING. At present, the hook is used by
  22950. Objective-C only, to obtain a common-format string object when the
  22951. target provides one.
  22952. -- C Target Hook: void TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE
  22953. (const char *CLASSNAME)
  22954. Declare that Objective C class CLASSNAME is referenced by the
  22955. current TU.
  22956. -- C Target Hook: void TARGET_OBJC_DECLARE_CLASS_DEFINITION (const char
  22957. *CLASSNAME)
  22958. Declare that Objective C class CLASSNAME is defined by the current
  22959. TU.
  22960. -- C Target Hook: bool TARGET_STRING_OBJECT_REF_TYPE_P (const_tree
  22961. STRINGREF)
  22962. If a target implements string objects then this hook should return
  22963. 'true' if STRINGREF is a valid reference to such an object.
  22964. -- C Target Hook: void TARGET_CHECK_STRING_OBJECT_FORMAT_ARG (tree
  22965. FORMAT_ARG, tree ARGS_LIST)
  22966. If a target implements string objects then this hook should should
  22967. provide a facility to check the function arguments in ARGS_LIST
  22968. against the format specifiers in FORMAT_ARG where the type of
  22969. FORMAT_ARG is one recognized as a valid string reference type.
  22970. -- Target Hook: void TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE (void)
  22971. This target function is similar to the hook
  22972. 'TARGET_OPTION_OVERRIDE' but is called when the optimize level is
  22973. changed via an attribute or pragma or when it is reset at the end
  22974. of the code affected by the attribute or pragma. It is not called
  22975. at the beginning of compilation when 'TARGET_OPTION_OVERRIDE' is
  22976. called so if you want to perform these actions then, you should
  22977. have 'TARGET_OPTION_OVERRIDE' call
  22978. 'TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE'.
  22979. -- Macro: C_COMMON_OVERRIDE_OPTIONS
  22980. This is similar to the 'TARGET_OPTION_OVERRIDE' hook but is only
  22981. used in the C language frontends (C, Objective-C, C++,
  22982. Objective-C++) and so can be used to alter option flag variables
  22983. which only exist in those frontends.
  22984. -- Common Target Hook: const struct default_options *
  22985. TARGET_OPTION_OPTIMIZATION_TABLE
  22986. Some machines may desire to change what optimizations are performed
  22987. for various optimization levels. This variable, if defined,
  22988. describes options to enable at particular sets of optimization
  22989. levels. These options are processed once just after the
  22990. optimization level is determined and before the remainder of the
  22991. command options have been parsed, so may be overridden by other
  22992. options passed explicitly.
  22993. This processing is run once at program startup and when the
  22994. optimization options are changed via '#pragma GCC optimize' or by
  22995. using the 'optimize' attribute.
  22996. -- Common Target Hook: void TARGET_OPTION_INIT_STRUCT (struct
  22997. gcc_options *OPTS)
  22998. Set target-dependent initial values of fields in OPTS.
  22999. -- Common Target Hook: void TARGET_OPTION_DEFAULT_PARAMS (void)
  23000. Set target-dependent default values for '--param' settings, using
  23001. calls to 'set_default_param_value'.
  23002. -- Macro: SWITCHABLE_TARGET
  23003. Some targets need to switch between substantially different
  23004. subtargets during compilation. For example, the MIPS target has
  23005. one subtarget for the traditional MIPS architecture and another for
  23006. MIPS16. Source code can switch between these two subarchitectures
  23007. using the 'mips16' and 'nomips16' attributes.
  23008. Such subtargets can differ in things like the set of available
  23009. registers, the set of available instructions, the costs of various
  23010. operations, and so on. GCC caches a lot of this type of
  23011. information in global variables, and recomputing them for each
  23012. subtarget takes a significant amount of time. The compiler
  23013. therefore provides a facility for maintaining several versions of
  23014. the global variables and quickly switching between them; see
  23015. 'target-globals.h' for details.
  23016. Define this macro to 1 if your target needs this facility. The
  23017. default is 0.
  23018. -- Target Hook: bool TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P
  23019. (void)
  23020. Returns true if the target supports IEEE 754 floating-point
  23021. exceptions and rounding modes, false otherwise. This is intended
  23022. to relate to the 'float' and 'double' types, but not necessarily
  23023. 'long double'. By default, returns true if the 'adddf3'
  23024. instruction pattern is available and false otherwise, on the
  23025. assumption that hardware floating point supports exceptions and
  23026. rounding modes but software floating point does not.
  23027. 
  23028. File: gccint.info, Node: Per-Function Data, Next: Storage Layout, Prev: Run-time Target, Up: Target Macros
  23029. 17.4 Defining data structures for per-function information.
  23030. ===========================================================
  23031. If the target needs to store information on a per-function basis, GCC
  23032. provides a macro and a couple of variables to allow this. Note, just
  23033. using statics to store the information is a bad idea, since GCC supports
  23034. nested functions, so you can be halfway through encoding one function
  23035. when another one comes along.
  23036. GCC defines a data structure called 'struct function' which contains
  23037. all of the data specific to an individual function. This structure
  23038. contains a field called 'machine' whose type is 'struct machine_function
  23039. *', which can be used by targets to point to their own specific data.
  23040. If a target needs per-function specific data it should define the type
  23041. 'struct machine_function' and also the macro 'INIT_EXPANDERS'. This
  23042. macro should be used to initialize the function pointer
  23043. 'init_machine_status'. This pointer is explained below.
  23044. One typical use of per-function, target specific data is to create an
  23045. RTX to hold the register containing the function's return address. This
  23046. RTX can then be used to implement the '__builtin_return_address'
  23047. function, for level 0.
  23048. Note--earlier implementations of GCC used a single data area to hold
  23049. all of the per-function information. Thus when processing of a nested
  23050. function began the old per-function data had to be pushed onto a stack,
  23051. and when the processing was finished, it had to be popped off the stack.
  23052. GCC used to provide function pointers called 'save_machine_status' and
  23053. 'restore_machine_status' to handle the saving and restoring of the
  23054. target specific information. Since the single data area approach is no
  23055. longer used, these pointers are no longer supported.
  23056. -- Macro: INIT_EXPANDERS
  23057. Macro called to initialize any target specific information. This
  23058. macro is called once per function, before generation of any RTL has
  23059. begun. The intention of this macro is to allow the initialization
  23060. of the function pointer 'init_machine_status'.
  23061. -- Variable: void (*)(struct function *) init_machine_status
  23062. If this function pointer is non-'NULL' it will be called once per
  23063. function, before function compilation starts, in order to allow the
  23064. target to perform any target specific initialization of the 'struct
  23065. function' structure. It is intended that this would be used to
  23066. initialize the 'machine' of that structure.
  23067. 'struct machine_function' structures are expected to be freed by
  23068. GC. Generally, any memory that they reference must be allocated by
  23069. using GC allocation, including the structure itself.
  23070. 
  23071. File: gccint.info, Node: Storage Layout, Next: Type Layout, Prev: Per-Function Data, Up: Target Macros
  23072. 17.5 Storage Layout
  23073. ===================
  23074. Note that the definitions of the macros in this table which are sizes or
  23075. alignments measured in bits do not need to be constant. They can be C
  23076. expressions that refer to static variables, such as the 'target_flags'.
  23077. *Note Run-time Target::.
  23078. -- Macro: BITS_BIG_ENDIAN
  23079. Define this macro to have the value 1 if the most significant bit
  23080. in a byte has the lowest number; otherwise define it to have the
  23081. value zero. This means that bit-field instructions count from the
  23082. most significant bit. If the machine has no bit-field
  23083. instructions, then this must still be defined, but it doesn't
  23084. matter which value it is defined to. This macro need not be a
  23085. constant.
  23086. This macro does not affect the way structure fields are packed into
  23087. bytes or words; that is controlled by 'BYTES_BIG_ENDIAN'.
  23088. -- Macro: BYTES_BIG_ENDIAN
  23089. Define this macro to have the value 1 if the most significant byte
  23090. in a word has the lowest number. This macro need not be a
  23091. constant.
  23092. -- Macro: WORDS_BIG_ENDIAN
  23093. Define this macro to have the value 1 if, in a multiword object,
  23094. the most significant word has the lowest number. This applies to
  23095. both memory locations and registers; see 'REG_WORDS_BIG_ENDIAN' if
  23096. the order of words in memory is not the same as the order in
  23097. registers. This macro need not be a constant.
  23098. -- Macro: REG_WORDS_BIG_ENDIAN
  23099. On some machines, the order of words in a multiword object differs
  23100. between registers in memory. In such a situation, define this
  23101. macro to describe the order of words in a register. The macro
  23102. 'WORDS_BIG_ENDIAN' controls the order of words in memory.
  23103. -- Macro: FLOAT_WORDS_BIG_ENDIAN
  23104. Define this macro to have the value 1 if 'DFmode', 'XFmode' or
  23105. 'TFmode' floating point numbers are stored in memory with the word
  23106. containing the sign bit at the lowest address; otherwise define it
  23107. to have the value 0. This macro need not be a constant.
  23108. You need not define this macro if the ordering is the same as for
  23109. multi-word integers.
  23110. -- Macro: BITS_PER_WORD
  23111. Number of bits in a word. If you do not define this macro, the
  23112. default is 'BITS_PER_UNIT * UNITS_PER_WORD'.
  23113. -- Macro: MAX_BITS_PER_WORD
  23114. Maximum number of bits in a word. If this is undefined, the
  23115. default is 'BITS_PER_WORD'. Otherwise, it is the constant value
  23116. that is the largest value that 'BITS_PER_WORD' can have at
  23117. run-time.
  23118. -- Macro: UNITS_PER_WORD
  23119. Number of storage units in a word; normally the size of a
  23120. general-purpose register, a power of two from 1 or 8.
  23121. -- Macro: MIN_UNITS_PER_WORD
  23122. Minimum number of units in a word. If this is undefined, the
  23123. default is 'UNITS_PER_WORD'. Otherwise, it is the constant value
  23124. that is the smallest value that 'UNITS_PER_WORD' can have at
  23125. run-time.
  23126. -- Macro: POINTER_SIZE
  23127. Width of a pointer, in bits. You must specify a value no wider
  23128. than the width of 'Pmode'. If it is not equal to the width of
  23129. 'Pmode', you must define 'POINTERS_EXTEND_UNSIGNED'. If you do not
  23130. specify a value the default is 'BITS_PER_WORD'.
  23131. -- Macro: POINTERS_EXTEND_UNSIGNED
  23132. A C expression that determines how pointers should be extended from
  23133. 'ptr_mode' to either 'Pmode' or 'word_mode'. It is greater than
  23134. zero if pointers should be zero-extended, zero if they should be
  23135. sign-extended, and negative if some other sort of conversion is
  23136. needed. In the last case, the extension is done by the target's
  23137. 'ptr_extend' instruction.
  23138. You need not define this macro if the 'ptr_mode', 'Pmode' and
  23139. 'word_mode' are all the same width.
  23140. -- Macro: PROMOTE_MODE (M, UNSIGNEDP, TYPE)
  23141. A macro to update M and UNSIGNEDP when an object whose type is TYPE
  23142. and which has the specified mode and signedness is to be stored in
  23143. a register. This macro is only called when TYPE is a scalar type.
  23144. On most RISC machines, which only have operations that operate on a
  23145. full register, define this macro to set M to 'word_mode' if M is an
  23146. integer mode narrower than 'BITS_PER_WORD'. In most cases, only
  23147. integer modes should be widened because wider-precision
  23148. floating-point operations are usually more expensive than their
  23149. narrower counterparts.
  23150. For most machines, the macro definition does not change UNSIGNEDP.
  23151. However, some machines, have instructions that preferentially
  23152. handle either signed or unsigned quantities of certain modes. For
  23153. example, on the DEC Alpha, 32-bit loads from memory and 32-bit add
  23154. instructions sign-extend the result to 64 bits. On such machines,
  23155. set UNSIGNEDP according to which kind of extension is more
  23156. efficient.
  23157. Do not define this macro if it would never modify M.
  23158. -- Target Hook: enum flt_eval_method TARGET_C_EXCESS_PRECISION (enum
  23159. excess_precision_type TYPE)
  23160. Return a value, with the same meaning as the C99 macro
  23161. 'FLT_EVAL_METHOD' that describes which excess precision should be
  23162. applied. TYPE is either 'EXCESS_PRECISION_TYPE_IMPLICIT',
  23163. 'EXCESS_PRECISION_TYPE_FAST', or 'EXCESS_PRECISION_TYPE_STANDARD'.
  23164. For 'EXCESS_PRECISION_TYPE_IMPLICIT', the target should return
  23165. which precision and range operations will be implictly evaluated in
  23166. regardless of the excess precision explicitly added. For
  23167. 'EXCESS_PRECISION_TYPE_STANDARD' and 'EXCESS_PRECISION_TYPE_FAST',
  23168. the target should return the explicit excess precision that should
  23169. be added depending on the value set for
  23170. '-fexcess-precision=[standard|fast]'. Note that unpredictable
  23171. explicit excess precision does not make sense, so a target should
  23172. never return 'FLT_EVAL_METHOD_UNPREDICTABLE' when TYPE is
  23173. 'EXCESS_PRECISION_TYPE_STANDARD' or 'EXCESS_PRECISION_TYPE_FAST'.
  23174. -- Target Hook: machine_mode TARGET_PROMOTE_FUNCTION_MODE (const_tree
  23175. TYPE, machine_mode MODE, int *PUNSIGNEDP, const_tree FUNTYPE,
  23176. int FOR_RETURN)
  23177. Like 'PROMOTE_MODE', but it is applied to outgoing function
  23178. arguments or function return values. The target hook should return
  23179. the new mode and possibly change '*PUNSIGNEDP' if the promotion
  23180. should change signedness. This function is called only for scalar
  23181. _or pointer_ types.
  23182. FOR_RETURN allows to distinguish the promotion of arguments and
  23183. return values. If it is '1', a return value is being promoted and
  23184. 'TARGET_FUNCTION_VALUE' must perform the same promotions done here.
  23185. If it is '2', the returned mode should be that of the register in
  23186. which an incoming parameter is copied, or the outgoing result is
  23187. computed; then the hook should return the same mode as
  23188. 'promote_mode', though the signedness may be different.
  23189. TYPE can be NULL when promoting function arguments of libcalls.
  23190. The default is to not promote arguments and return values. You can
  23191. also define the hook to
  23192. 'default_promote_function_mode_always_promote' if you would like to
  23193. apply the same rules given by 'PROMOTE_MODE'.
  23194. -- Macro: PARM_BOUNDARY
  23195. Normal alignment required for function parameters on the stack, in
  23196. bits. All stack parameters receive at least this much alignment
  23197. regardless of data type. On most machines, this is the same as the
  23198. size of an integer.
  23199. -- Macro: STACK_BOUNDARY
  23200. Define this macro to the minimum alignment enforced by hardware for
  23201. the stack pointer on this machine. The definition is a C
  23202. expression for the desired alignment (measured in bits). This
  23203. value is used as a default if 'PREFERRED_STACK_BOUNDARY' is not
  23204. defined. On most machines, this should be the same as
  23205. 'PARM_BOUNDARY'.
  23206. -- Macro: PREFERRED_STACK_BOUNDARY
  23207. Define this macro if you wish to preserve a certain alignment for
  23208. the stack pointer, greater than what the hardware enforces. The
  23209. definition is a C expression for the desired alignment (measured in
  23210. bits). This macro must evaluate to a value equal to or larger than
  23211. 'STACK_BOUNDARY'.
  23212. -- Macro: INCOMING_STACK_BOUNDARY
  23213. Define this macro if the incoming stack boundary may be different
  23214. from 'PREFERRED_STACK_BOUNDARY'. This macro must evaluate to a
  23215. value equal to or larger than 'STACK_BOUNDARY'.
  23216. -- Macro: FUNCTION_BOUNDARY
  23217. Alignment required for a function entry point, in bits.
  23218. -- Macro: BIGGEST_ALIGNMENT
  23219. Biggest alignment that any data type can require on this machine,
  23220. in bits. Note that this is not the biggest alignment that is
  23221. supported, just the biggest alignment that, when violated, may
  23222. cause a fault.
  23223. -- Target Hook: HOST_WIDE_INT TARGET_ABSOLUTE_BIGGEST_ALIGNMENT
  23224. If defined, this target hook specifies the absolute biggest
  23225. alignment that a type or variable can have on this machine,
  23226. otherwise, 'BIGGEST_ALIGNMENT' is used.
  23227. -- Macro: MALLOC_ABI_ALIGNMENT
  23228. Alignment, in bits, a C conformant malloc implementation has to
  23229. provide. If not defined, the default value is 'BITS_PER_WORD'.
  23230. -- Macro: ATTRIBUTE_ALIGNED_VALUE
  23231. Alignment used by the '__attribute__ ((aligned))' construct. If
  23232. not defined, the default value is 'BIGGEST_ALIGNMENT'.
  23233. -- Macro: MINIMUM_ATOMIC_ALIGNMENT
  23234. If defined, the smallest alignment, in bits, that can be given to
  23235. an object that can be referenced in one operation, without
  23236. disturbing any nearby object. Normally, this is 'BITS_PER_UNIT',
  23237. but may be larger on machines that don't have byte or half-word
  23238. store operations.
  23239. -- Macro: BIGGEST_FIELD_ALIGNMENT
  23240. Biggest alignment that any structure or union field can require on
  23241. this machine, in bits. If defined, this overrides
  23242. 'BIGGEST_ALIGNMENT' for structure and union fields only, unless the
  23243. field alignment has been set by the '__attribute__ ((aligned (N)))'
  23244. construct.
  23245. -- Macro: ADJUST_FIELD_ALIGN (FIELD, TYPE, COMPUTED)
  23246. An expression for the alignment of a structure field FIELD of type
  23247. TYPE if the alignment computed in the usual way (including applying
  23248. of 'BIGGEST_ALIGNMENT' and 'BIGGEST_FIELD_ALIGNMENT' to the
  23249. alignment) is COMPUTED. It overrides alignment only if the field
  23250. alignment has not been set by the '__attribute__ ((aligned (N)))'
  23251. construct. Note that FIELD may be 'NULL_TREE' in case we just
  23252. query for the minimum alignment of a field of type TYPE in
  23253. structure context.
  23254. -- Macro: MAX_STACK_ALIGNMENT
  23255. Biggest stack alignment guaranteed by the backend. Use this macro
  23256. to specify the maximum alignment of a variable on stack.
  23257. If not defined, the default value is 'STACK_BOUNDARY'.
  23258. -- Macro: MAX_OFILE_ALIGNMENT
  23259. Biggest alignment supported by the object file format of this
  23260. machine. Use this macro to limit the alignment which can be
  23261. specified using the '__attribute__ ((aligned (N)))' construct. If
  23262. not defined, the default value is 'BIGGEST_ALIGNMENT'.
  23263. On systems that use ELF, the default (in 'config/elfos.h') is the
  23264. largest supported 32-bit ELF section alignment representable on a
  23265. 32-bit host e.g. '(((uint64_t) 1 << 28) * 8)'. On 32-bit ELF the
  23266. largest supported section alignment in bits is '(0x80000000 * 8)',
  23267. but this is not representable on 32-bit hosts.
  23268. -- Macro: DATA_ALIGNMENT (TYPE, BASIC-ALIGN)
  23269. If defined, a C expression to compute the alignment for a variable
  23270. in the static store. TYPE is the data type, and BASIC-ALIGN is the
  23271. alignment that the object would ordinarily have. The value of this
  23272. macro is used instead of that alignment to align the object.
  23273. If this macro is not defined, then BASIC-ALIGN is used.
  23274. One use of this macro is to increase alignment of medium-size data
  23275. to make it all fit in fewer cache lines. Another is to cause
  23276. character arrays to be word-aligned so that 'strcpy' calls that
  23277. copy constants to character arrays can be done inline.
  23278. -- Macro: DATA_ABI_ALIGNMENT (TYPE, BASIC-ALIGN)
  23279. Similar to 'DATA_ALIGNMENT', but for the cases where the ABI
  23280. mandates some alignment increase, instead of optimization only
  23281. purposes. E.g. AMD x86-64 psABI says that variables with array
  23282. type larger than 15 bytes must be aligned to 16 byte boundaries.
  23283. If this macro is not defined, then BASIC-ALIGN is used.
  23284. -- Macro: CONSTANT_ALIGNMENT (CONSTANT, BASIC-ALIGN)
  23285. If defined, a C expression to compute the alignment given to a
  23286. constant that is being placed in memory. CONSTANT is the constant
  23287. and BASIC-ALIGN is the alignment that the object would ordinarily
  23288. have. The value of this macro is used instead of that alignment to
  23289. align the object.
  23290. The default definition just returns BASIC-ALIGN.
  23291. The typical use of this macro is to increase alignment for string
  23292. constants to be word aligned so that 'strcpy' calls that copy
  23293. constants can be done inline.
  23294. -- Macro: LOCAL_ALIGNMENT (TYPE, BASIC-ALIGN)
  23295. If defined, a C expression to compute the alignment for a variable
  23296. in the local store. TYPE is the data type, and BASIC-ALIGN is the
  23297. alignment that the object would ordinarily have. The value of this
  23298. macro is used instead of that alignment to align the object.
  23299. If this macro is not defined, then BASIC-ALIGN is used.
  23300. One use of this macro is to increase alignment of medium-size data
  23301. to make it all fit in fewer cache lines.
  23302. If the value of this macro has a type, it should be an unsigned
  23303. type.
  23304. -- Target Hook: HOST_WIDE_INT TARGET_VECTOR_ALIGNMENT (const_tree TYPE)
  23305. This hook can be used to define the alignment for a vector of type
  23306. TYPE, in order to comply with a platform ABI. The default is to
  23307. require natural alignment for vector types. The alignment returned
  23308. by this hook must be a power-of-two multiple of the default
  23309. alignment of the vector element type.
  23310. -- Macro: STACK_SLOT_ALIGNMENT (TYPE, MODE, BASIC-ALIGN)
  23311. If defined, a C expression to compute the alignment for stack slot.
  23312. TYPE is the data type, MODE is the widest mode available, and
  23313. BASIC-ALIGN is the alignment that the slot would ordinarily have.
  23314. The value of this macro is used instead of that alignment to align
  23315. the slot.
  23316. If this macro is not defined, then BASIC-ALIGN is used when TYPE is
  23317. 'NULL'. Otherwise, 'LOCAL_ALIGNMENT' will be used.
  23318. This macro is to set alignment of stack slot to the maximum
  23319. alignment of all possible modes which the slot may have.
  23320. If the value of this macro has a type, it should be an unsigned
  23321. type.
  23322. -- Macro: LOCAL_DECL_ALIGNMENT (DECL)
  23323. If defined, a C expression to compute the alignment for a local
  23324. variable DECL.
  23325. If this macro is not defined, then 'LOCAL_ALIGNMENT (TREE_TYPE
  23326. (DECL), DECL_ALIGN (DECL))' is used.
  23327. One use of this macro is to increase alignment of medium-size data
  23328. to make it all fit in fewer cache lines.
  23329. If the value of this macro has a type, it should be an unsigned
  23330. type.
  23331. -- Macro: MINIMUM_ALIGNMENT (EXP, MODE, ALIGN)
  23332. If defined, a C expression to compute the minimum required
  23333. alignment for dynamic stack realignment purposes for EXP (a type or
  23334. decl), MODE, assuming normal alignment ALIGN.
  23335. If this macro is not defined, then ALIGN will be used.
  23336. -- Macro: EMPTY_FIELD_BOUNDARY
  23337. Alignment in bits to be given to a structure bit-field that follows
  23338. an empty field such as 'int : 0;'.
  23339. If 'PCC_BITFIELD_TYPE_MATTERS' is true, it overrides this macro.
  23340. -- Macro: STRUCTURE_SIZE_BOUNDARY
  23341. Number of bits which any structure or union's size must be a
  23342. multiple of. Each structure or union's size is rounded up to a
  23343. multiple of this.
  23344. If you do not define this macro, the default is the same as
  23345. 'BITS_PER_UNIT'.
  23346. -- Macro: STRICT_ALIGNMENT
  23347. Define this macro to be the value 1 if instructions will fail to
  23348. work if given data not on the nominal alignment. If instructions
  23349. will merely go slower in that case, define this macro as 0.
  23350. -- Macro: PCC_BITFIELD_TYPE_MATTERS
  23351. Define this if you wish to imitate the way many other C compilers
  23352. handle alignment of bit-fields and the structures that contain
  23353. them.
  23354. The behavior is that the type written for a named bit-field ('int',
  23355. 'short', or other integer type) imposes an alignment for the entire
  23356. structure, as if the structure really did contain an ordinary field
  23357. of that type. In addition, the bit-field is placed within the
  23358. structure so that it would fit within such a field, not crossing a
  23359. boundary for it.
  23360. Thus, on most machines, a named bit-field whose type is written as
  23361. 'int' would not cross a four-byte boundary, and would force
  23362. four-byte alignment for the whole structure. (The alignment used
  23363. may not be four bytes; it is controlled by the other alignment
  23364. parameters.)
  23365. An unnamed bit-field will not affect the alignment of the
  23366. containing structure.
  23367. If the macro is defined, its definition should be a C expression; a
  23368. nonzero value for the expression enables this behavior.
  23369. Note that if this macro is not defined, or its value is zero, some
  23370. bit-fields may cross more than one alignment boundary. The
  23371. compiler can support such references if there are 'insv', 'extv',
  23372. and 'extzv' insns that can directly reference memory.
  23373. The other known way of making bit-fields work is to define
  23374. 'STRUCTURE_SIZE_BOUNDARY' as large as 'BIGGEST_ALIGNMENT'. Then
  23375. every structure can be accessed with fullwords.
  23376. Unless the machine has bit-field instructions or you define
  23377. 'STRUCTURE_SIZE_BOUNDARY' that way, you must define
  23378. 'PCC_BITFIELD_TYPE_MATTERS' to have a nonzero value.
  23379. If your aim is to make GCC use the same conventions for laying out
  23380. bit-fields as are used by another compiler, here is how to
  23381. investigate what the other compiler does. Compile and run this
  23382. program:
  23383. struct foo1
  23384. {
  23385. char x;
  23386. char :0;
  23387. char y;
  23388. };
  23389. struct foo2
  23390. {
  23391. char x;
  23392. int :0;
  23393. char y;
  23394. };
  23395. main ()
  23396. {
  23397. printf ("Size of foo1 is %d\n",
  23398. sizeof (struct foo1));
  23399. printf ("Size of foo2 is %d\n",
  23400. sizeof (struct foo2));
  23401. exit (0);
  23402. }
  23403. If this prints 2 and 5, then the compiler's behavior is what you
  23404. would get from 'PCC_BITFIELD_TYPE_MATTERS'.
  23405. -- Macro: BITFIELD_NBYTES_LIMITED
  23406. Like 'PCC_BITFIELD_TYPE_MATTERS' except that its effect is limited
  23407. to aligning a bit-field within the structure.
  23408. -- Target Hook: bool TARGET_ALIGN_ANON_BITFIELD (void)
  23409. When 'PCC_BITFIELD_TYPE_MATTERS' is true this hook will determine
  23410. whether unnamed bitfields affect the alignment of the containing
  23411. structure. The hook should return true if the structure should
  23412. inherit the alignment requirements of an unnamed bitfield's type.
  23413. -- Target Hook: bool TARGET_NARROW_VOLATILE_BITFIELD (void)
  23414. This target hook should return 'true' if accesses to volatile
  23415. bitfields should use the narrowest mode possible. It should return
  23416. 'false' if these accesses should use the bitfield container type.
  23417. The default is 'false'.
  23418. -- Target Hook: bool TARGET_MEMBER_TYPE_FORCES_BLK (const_tree FIELD,
  23419. machine_mode MODE)
  23420. Return true if a structure, union or array containing FIELD should
  23421. be accessed using 'BLKMODE'.
  23422. If FIELD is the only field in the structure, MODE is its mode,
  23423. otherwise MODE is VOIDmode. MODE is provided in the case where
  23424. structures of one field would require the structure's mode to
  23425. retain the field's mode.
  23426. Normally, this is not needed.
  23427. -- Macro: ROUND_TYPE_ALIGN (TYPE, COMPUTED, SPECIFIED)
  23428. Define this macro as an expression for the alignment of a type
  23429. (given by TYPE as a tree node) if the alignment computed in the
  23430. usual way is COMPUTED and the alignment explicitly specified was
  23431. SPECIFIED.
  23432. The default is to use SPECIFIED if it is larger; otherwise, use the
  23433. smaller of COMPUTED and 'BIGGEST_ALIGNMENT'
  23434. -- Macro: MAX_FIXED_MODE_SIZE
  23435. An integer expression for the size in bits of the largest integer
  23436. machine mode that should actually be used. All integer machine
  23437. modes of this size or smaller can be used for structures and unions
  23438. with the appropriate sizes. If this macro is undefined,
  23439. 'GET_MODE_BITSIZE (DImode)' is assumed.
  23440. -- Macro: STACK_SAVEAREA_MODE (SAVE_LEVEL)
  23441. If defined, an expression of type 'machine_mode' that specifies the
  23442. mode of the save area operand of a 'save_stack_LEVEL' named pattern
  23443. (*note Standard Names::). SAVE_LEVEL is one of 'SAVE_BLOCK',
  23444. 'SAVE_FUNCTION', or 'SAVE_NONLOCAL' and selects which of the three
  23445. named patterns is having its mode specified.
  23446. You need not define this macro if it always returns 'Pmode'. You
  23447. would most commonly define this macro if the 'save_stack_LEVEL'
  23448. patterns need to support both a 32- and a 64-bit mode.
  23449. -- Macro: STACK_SIZE_MODE
  23450. If defined, an expression of type 'machine_mode' that specifies the
  23451. mode of the size increment operand of an 'allocate_stack' named
  23452. pattern (*note Standard Names::).
  23453. You need not define this macro if it always returns 'word_mode'.
  23454. You would most commonly define this macro if the 'allocate_stack'
  23455. pattern needs to support both a 32- and a 64-bit mode.
  23456. -- Target Hook: machine_mode TARGET_LIBGCC_CMP_RETURN_MODE (void)
  23457. This target hook should return the mode to be used for the return
  23458. value of compare instructions expanded to libgcc calls. If not
  23459. defined 'word_mode' is returned which is the right choice for a
  23460. majority of targets.
  23461. -- Target Hook: machine_mode TARGET_LIBGCC_SHIFT_COUNT_MODE (void)
  23462. This target hook should return the mode to be used for the shift
  23463. count operand of shift instructions expanded to libgcc calls. If
  23464. not defined 'word_mode' is returned which is the right choice for a
  23465. majority of targets.
  23466. -- Target Hook: machine_mode TARGET_UNWIND_WORD_MODE (void)
  23467. Return machine mode to be used for '_Unwind_Word' type. The
  23468. default is to use 'word_mode'.
  23469. -- Target Hook: bool TARGET_MS_BITFIELD_LAYOUT_P (const_tree
  23470. RECORD_TYPE)
  23471. This target hook returns 'true' if bit-fields in the given
  23472. RECORD_TYPE are to be laid out following the rules of Microsoft
  23473. Visual C/C++, namely: (i) a bit-field won't share the same storage
  23474. unit with the previous bit-field if their underlying types have
  23475. different sizes, and the bit-field will be aligned to the highest
  23476. alignment of the underlying types of itself and of the previous
  23477. bit-field; (ii) a zero-sized bit-field will affect the alignment of
  23478. the whole enclosing structure, even if it is unnamed; except that
  23479. (iii) a zero-sized bit-field will be disregarded unless it follows
  23480. another bit-field of nonzero size. If this hook returns 'true',
  23481. other macros that control bit-field layout are ignored.
  23482. When a bit-field is inserted into a packed record, the whole size
  23483. of the underlying type is used by one or more same-size adjacent
  23484. bit-fields (that is, if its long:3, 32 bits is used in the record,
  23485. and any additional adjacent long bit-fields are packed into the
  23486. same chunk of 32 bits. However, if the size changes, a new field
  23487. of that size is allocated). In an unpacked record, this is the
  23488. same as using alignment, but not equivalent when packing.
  23489. If both MS bit-fields and '__attribute__((packed))' are used, the
  23490. latter will take precedence. If '__attribute__((packed))' is used
  23491. on a single field when MS bit-fields are in use, it will take
  23492. precedence for that field, but the alignment of the rest of the
  23493. structure may affect its placement.
  23494. -- Target Hook: bool TARGET_DECIMAL_FLOAT_SUPPORTED_P (void)
  23495. Returns true if the target supports decimal floating point.
  23496. -- Target Hook: bool TARGET_FIXED_POINT_SUPPORTED_P (void)
  23497. Returns true if the target supports fixed-point arithmetic.
  23498. -- Target Hook: void TARGET_EXPAND_TO_RTL_HOOK (void)
  23499. This hook is called just before expansion into rtl, allowing the
  23500. target to perform additional initializations or analysis before the
  23501. expansion. For example, the rs6000 port uses it to allocate a
  23502. scratch stack slot for use in copying SDmode values between memory
  23503. and floating point registers whenever the function being expanded
  23504. has any SDmode usage.
  23505. -- Target Hook: void TARGET_INSTANTIATE_DECLS (void)
  23506. This hook allows the backend to perform additional instantiations
  23507. on rtl that are not actually in any insns yet, but will be later.
  23508. -- Target Hook: const char * TARGET_MANGLE_TYPE (const_tree TYPE)
  23509. If your target defines any fundamental types, or any types your
  23510. target uses should be mangled differently from the default, define
  23511. this hook to return the appropriate encoding for these types as
  23512. part of a C++ mangled name. The TYPE argument is the tree
  23513. structure representing the type to be mangled. The hook may be
  23514. applied to trees which are not target-specific fundamental types;
  23515. it should return 'NULL' for all such types, as well as arguments it
  23516. does not recognize. If the return value is not 'NULL', it must
  23517. point to a statically-allocated string constant.
  23518. Target-specific fundamental types might be new fundamental types or
  23519. qualified versions of ordinary fundamental types. Encode new
  23520. fundamental types as 'u N NAME', where NAME is the name used for
  23521. the type in source code, and N is the length of NAME in decimal.
  23522. Encode qualified versions of ordinary types as 'U N NAME CODE',
  23523. where NAME is the name used for the type qualifier in source code,
  23524. N is the length of NAME as above, and CODE is the code used to
  23525. represent the unqualified version of this type. (See
  23526. 'write_builtin_type' in 'cp/mangle.c' for the list of codes.) In
  23527. both cases the spaces are for clarity; do not include any spaces in
  23528. your string.
  23529. This hook is applied to types prior to typedef resolution. If the
  23530. mangled name for a particular type depends only on that type's main
  23531. variant, you can perform typedef resolution yourself using
  23532. 'TYPE_MAIN_VARIANT' before mangling.
  23533. The default version of this hook always returns 'NULL', which is
  23534. appropriate for a target that does not define any new fundamental
  23535. types.
  23536. 
  23537. File: gccint.info, Node: Type Layout, Next: Registers, Prev: Storage Layout, Up: Target Macros
  23538. 17.6 Layout of Source Language Data Types
  23539. =========================================
  23540. These macros define the sizes and other characteristics of the standard
  23541. basic data types used in programs being compiled. Unlike the macros in
  23542. the previous section, these apply to specific features of C and related
  23543. languages, rather than to fundamental aspects of storage layout.
  23544. -- Macro: INT_TYPE_SIZE
  23545. A C expression for the size in bits of the type 'int' on the target
  23546. machine. If you don't define this, the default is one word.
  23547. -- Macro: SHORT_TYPE_SIZE
  23548. A C expression for the size in bits of the type 'short' on the
  23549. target machine. If you don't define this, the default is half a
  23550. word. (If this would be less than one storage unit, it is rounded
  23551. up to one unit.)
  23552. -- Macro: LONG_TYPE_SIZE
  23553. A C expression for the size in bits of the type 'long' on the
  23554. target machine. If you don't define this, the default is one word.
  23555. -- Macro: ADA_LONG_TYPE_SIZE
  23556. On some machines, the size used for the Ada equivalent of the type
  23557. 'long' by a native Ada compiler differs from that used by C. In
  23558. that situation, define this macro to be a C expression to be used
  23559. for the size of that type. If you don't define this, the default
  23560. is the value of 'LONG_TYPE_SIZE'.
  23561. -- Macro: LONG_LONG_TYPE_SIZE
  23562. A C expression for the size in bits of the type 'long long' on the
  23563. target machine. If you don't define this, the default is two
  23564. words. If you want to support GNU Ada on your machine, the value
  23565. of this macro must be at least 64.
  23566. -- Macro: CHAR_TYPE_SIZE
  23567. A C expression for the size in bits of the type 'char' on the
  23568. target machine. If you don't define this, the default is
  23569. 'BITS_PER_UNIT'.
  23570. -- Macro: BOOL_TYPE_SIZE
  23571. A C expression for the size in bits of the C++ type 'bool' and C99
  23572. type '_Bool' on the target machine. If you don't define this, and
  23573. you probably shouldn't, the default is 'CHAR_TYPE_SIZE'.
  23574. -- Macro: FLOAT_TYPE_SIZE
  23575. A C expression for the size in bits of the type 'float' on the
  23576. target machine. If you don't define this, the default is one word.
  23577. -- Macro: DOUBLE_TYPE_SIZE
  23578. A C expression for the size in bits of the type 'double' on the
  23579. target machine. If you don't define this, the default is two
  23580. words.
  23581. -- Macro: LONG_DOUBLE_TYPE_SIZE
  23582. A C expression for the size in bits of the type 'long double' on
  23583. the target machine. If you don't define this, the default is two
  23584. words.
  23585. -- Macro: SHORT_FRACT_TYPE_SIZE
  23586. A C expression for the size in bits of the type 'short _Fract' on
  23587. the target machine. If you don't define this, the default is
  23588. 'BITS_PER_UNIT'.
  23589. -- Macro: FRACT_TYPE_SIZE
  23590. A C expression for the size in bits of the type '_Fract' on the
  23591. target machine. If you don't define this, the default is
  23592. 'BITS_PER_UNIT * 2'.
  23593. -- Macro: LONG_FRACT_TYPE_SIZE
  23594. A C expression for the size in bits of the type 'long _Fract' on
  23595. the target machine. If you don't define this, the default is
  23596. 'BITS_PER_UNIT * 4'.
  23597. -- Macro: LONG_LONG_FRACT_TYPE_SIZE
  23598. A C expression for the size in bits of the type 'long long _Fract'
  23599. on the target machine. If you don't define this, the default is
  23600. 'BITS_PER_UNIT * 8'.
  23601. -- Macro: SHORT_ACCUM_TYPE_SIZE
  23602. A C expression for the size in bits of the type 'short _Accum' on
  23603. the target machine. If you don't define this, the default is
  23604. 'BITS_PER_UNIT * 2'.
  23605. -- Macro: ACCUM_TYPE_SIZE
  23606. A C expression for the size in bits of the type '_Accum' on the
  23607. target machine. If you don't define this, the default is
  23608. 'BITS_PER_UNIT * 4'.
  23609. -- Macro: LONG_ACCUM_TYPE_SIZE
  23610. A C expression for the size in bits of the type 'long _Accum' on
  23611. the target machine. If you don't define this, the default is
  23612. 'BITS_PER_UNIT * 8'.
  23613. -- Macro: LONG_LONG_ACCUM_TYPE_SIZE
  23614. A C expression for the size in bits of the type 'long long _Accum'
  23615. on the target machine. If you don't define this, the default is
  23616. 'BITS_PER_UNIT * 16'.
  23617. -- Macro: LIBGCC2_GNU_PREFIX
  23618. This macro corresponds to the 'TARGET_LIBFUNC_GNU_PREFIX' target
  23619. hook and should be defined if that hook is overriden to be true.
  23620. It causes function names in libgcc to be changed to use a '__gnu_'
  23621. prefix for their name rather than the default '__'. A port which
  23622. uses this macro should also arrange to use 't-gnu-prefix' in the
  23623. libgcc 'config.host'.
  23624. -- Macro: WIDEST_HARDWARE_FP_SIZE
  23625. A C expression for the size in bits of the widest floating-point
  23626. format supported by the hardware. If you define this macro, you
  23627. must specify a value less than or equal to the value of
  23628. 'LONG_DOUBLE_TYPE_SIZE'. If you do not define this macro, the
  23629. value of 'LONG_DOUBLE_TYPE_SIZE' is the default.
  23630. -- Macro: DEFAULT_SIGNED_CHAR
  23631. An expression whose value is 1 or 0, according to whether the type
  23632. 'char' should be signed or unsigned by default. The user can
  23633. always override this default with the options '-fsigned-char' and
  23634. '-funsigned-char'.
  23635. -- Target Hook: bool TARGET_DEFAULT_SHORT_ENUMS (void)
  23636. This target hook should return true if the compiler should give an
  23637. 'enum' type only as many bytes as it takes to represent the range
  23638. of possible values of that type. It should return false if all
  23639. 'enum' types should be allocated like 'int'.
  23640. The default is to return false.
  23641. -- Macro: SIZE_TYPE
  23642. A C expression for a string describing the name of the data type to
  23643. use for size values. The typedef name 'size_t' is defined using
  23644. the contents of the string.
  23645. The string can contain more than one keyword. If so, separate them
  23646. with spaces, and write first any length keyword, then 'unsigned' if
  23647. appropriate, and finally 'int'. The string must exactly match one
  23648. of the data type names defined in the function
  23649. 'c_common_nodes_and_builtins' in the file 'c-family/c-common.c'.
  23650. You may not omit 'int' or change the order--that would cause the
  23651. compiler to crash on startup.
  23652. If you don't define this macro, the default is '"long unsigned
  23653. int"'.
  23654. -- Macro: SIZETYPE
  23655. GCC defines internal types ('sizetype', 'ssizetype', 'bitsizetype'
  23656. and 'sbitsizetype') for expressions dealing with size. This macro
  23657. is a C expression for a string describing the name of the data type
  23658. from which the precision of 'sizetype' is extracted.
  23659. The string has the same restrictions as 'SIZE_TYPE' string.
  23660. If you don't define this macro, the default is 'SIZE_TYPE'.
  23661. -- Macro: PTRDIFF_TYPE
  23662. A C expression for a string describing the name of the data type to
  23663. use for the result of subtracting two pointers. The typedef name
  23664. 'ptrdiff_t' is defined using the contents of the string. See
  23665. 'SIZE_TYPE' above for more information.
  23666. If you don't define this macro, the default is '"long int"'.
  23667. -- Macro: WCHAR_TYPE
  23668. A C expression for a string describing the name of the data type to
  23669. use for wide characters. The typedef name 'wchar_t' is defined
  23670. using the contents of the string. See 'SIZE_TYPE' above for more
  23671. information.
  23672. If you don't define this macro, the default is '"int"'.
  23673. -- Macro: WCHAR_TYPE_SIZE
  23674. A C expression for the size in bits of the data type for wide
  23675. characters. This is used in 'cpp', which cannot make use of
  23676. 'WCHAR_TYPE'.
  23677. -- Macro: WINT_TYPE
  23678. A C expression for a string describing the name of the data type to
  23679. use for wide characters passed to 'printf' and returned from
  23680. 'getwc'. The typedef name 'wint_t' is defined using the contents
  23681. of the string. See 'SIZE_TYPE' above for more information.
  23682. If you don't define this macro, the default is '"unsigned int"'.
  23683. -- Macro: INTMAX_TYPE
  23684. A C expression for a string describing the name of the data type
  23685. that can represent any value of any standard or extended signed
  23686. integer type. The typedef name 'intmax_t' is defined using the
  23687. contents of the string. See 'SIZE_TYPE' above for more
  23688. information.
  23689. If you don't define this macro, the default is the first of
  23690. '"int"', '"long int"', or '"long long int"' that has as much
  23691. precision as 'long long int'.
  23692. -- Macro: UINTMAX_TYPE
  23693. A C expression for a string describing the name of the data type
  23694. that can represent any value of any standard or extended unsigned
  23695. integer type. The typedef name 'uintmax_t' is defined using the
  23696. contents of the string. See 'SIZE_TYPE' above for more
  23697. information.
  23698. If you don't define this macro, the default is the first of
  23699. '"unsigned int"', '"long unsigned int"', or '"long long unsigned
  23700. int"' that has as much precision as 'long long unsigned int'.
  23701. -- Macro: SIG_ATOMIC_TYPE
  23702. -- Macro: INT8_TYPE
  23703. -- Macro: INT16_TYPE
  23704. -- Macro: INT32_TYPE
  23705. -- Macro: INT64_TYPE
  23706. -- Macro: UINT8_TYPE
  23707. -- Macro: UINT16_TYPE
  23708. -- Macro: UINT32_TYPE
  23709. -- Macro: UINT64_TYPE
  23710. -- Macro: INT_LEAST8_TYPE
  23711. -- Macro: INT_LEAST16_TYPE
  23712. -- Macro: INT_LEAST32_TYPE
  23713. -- Macro: INT_LEAST64_TYPE
  23714. -- Macro: UINT_LEAST8_TYPE
  23715. -- Macro: UINT_LEAST16_TYPE
  23716. -- Macro: UINT_LEAST32_TYPE
  23717. -- Macro: UINT_LEAST64_TYPE
  23718. -- Macro: INT_FAST8_TYPE
  23719. -- Macro: INT_FAST16_TYPE
  23720. -- Macro: INT_FAST32_TYPE
  23721. -- Macro: INT_FAST64_TYPE
  23722. -- Macro: UINT_FAST8_TYPE
  23723. -- Macro: UINT_FAST16_TYPE
  23724. -- Macro: UINT_FAST32_TYPE
  23725. -- Macro: UINT_FAST64_TYPE
  23726. -- Macro: INTPTR_TYPE
  23727. -- Macro: UINTPTR_TYPE
  23728. C expressions for the standard types 'sig_atomic_t', 'int8_t',
  23729. 'int16_t', 'int32_t', 'int64_t', 'uint8_t', 'uint16_t', 'uint32_t',
  23730. 'uint64_t', 'int_least8_t', 'int_least16_t', 'int_least32_t',
  23731. 'int_least64_t', 'uint_least8_t', 'uint_least16_t',
  23732. 'uint_least32_t', 'uint_least64_t', 'int_fast8_t', 'int_fast16_t',
  23733. 'int_fast32_t', 'int_fast64_t', 'uint_fast8_t', 'uint_fast16_t',
  23734. 'uint_fast32_t', 'uint_fast64_t', 'intptr_t', and 'uintptr_t'. See
  23735. 'SIZE_TYPE' above for more information.
  23736. If any of these macros evaluates to a null pointer, the
  23737. corresponding type is not supported; if GCC is configured to
  23738. provide '<stdint.h>' in such a case, the header provided may not
  23739. conform to C99, depending on the type in question. The defaults
  23740. for all of these macros are null pointers.
  23741. -- Macro: TARGET_PTRMEMFUNC_VBIT_LOCATION
  23742. The C++ compiler represents a pointer-to-member-function with a
  23743. struct that looks like:
  23744. struct {
  23745. union {
  23746. void (*fn)();
  23747. ptrdiff_t vtable_index;
  23748. };
  23749. ptrdiff_t delta;
  23750. };
  23751. The C++ compiler must use one bit to indicate whether the function
  23752. that will be called through a pointer-to-member-function is
  23753. virtual. Normally, we assume that the low-order bit of a function
  23754. pointer must always be zero. Then, by ensuring that the
  23755. vtable_index is odd, we can distinguish which variant of the union
  23756. is in use. But, on some platforms function pointers can be odd,
  23757. and so this doesn't work. In that case, we use the low-order bit
  23758. of the 'delta' field, and shift the remainder of the 'delta' field
  23759. to the left.
  23760. GCC will automatically make the right selection about where to
  23761. store this bit using the 'FUNCTION_BOUNDARY' setting for your
  23762. platform. However, some platforms such as ARM/Thumb have
  23763. 'FUNCTION_BOUNDARY' set such that functions always start at even
  23764. addresses, but the lowest bit of pointers to functions indicate
  23765. whether the function at that address is in ARM or Thumb mode. If
  23766. this is the case of your architecture, you should define this macro
  23767. to 'ptrmemfunc_vbit_in_delta'.
  23768. In general, you should not have to define this macro. On
  23769. architectures in which function addresses are always even,
  23770. according to 'FUNCTION_BOUNDARY', GCC will automatically define
  23771. this macro to 'ptrmemfunc_vbit_in_pfn'.
  23772. -- Macro: TARGET_VTABLE_USES_DESCRIPTORS
  23773. Normally, the C++ compiler uses function pointers in vtables. This
  23774. macro allows the target to change to use "function descriptors"
  23775. instead. Function descriptors are found on targets for whom a
  23776. function pointer is actually a small data structure. Normally the
  23777. data structure consists of the actual code address plus a data
  23778. pointer to which the function's data is relative.
  23779. If vtables are used, the value of this macro should be the number
  23780. of words that the function descriptor occupies.
  23781. -- Macro: TARGET_VTABLE_ENTRY_ALIGN
  23782. By default, the vtable entries are void pointers, the so the
  23783. alignment is the same as pointer alignment. The value of this
  23784. macro specifies the alignment of the vtable entry in bits. It
  23785. should be defined only when special alignment is necessary. */
  23786. -- Macro: TARGET_VTABLE_DATA_ENTRY_DISTANCE
  23787. There are a few non-descriptor entries in the vtable at offsets
  23788. below zero. If these entries must be padded (say, to preserve the
  23789. alignment specified by 'TARGET_VTABLE_ENTRY_ALIGN'), set this to
  23790. the number of words in each data entry.
  23791. 
  23792. File: gccint.info, Node: Registers, Next: Register Classes, Prev: Type Layout, Up: Target Macros
  23793. 17.7 Register Usage
  23794. ===================
  23795. This section explains how to describe what registers the target machine
  23796. has, and how (in general) they can be used.
  23797. The description of which registers a specific instruction can use is
  23798. done with register classes; see *note Register Classes::. For
  23799. information on using registers to access a stack frame, see *note Frame
  23800. Registers::. For passing values in registers, see *note Register
  23801. Arguments::. For returning values in registers, see *note Scalar
  23802. Return::.
  23803. * Menu:
  23804. * Register Basics:: Number and kinds of registers.
  23805. * Allocation Order:: Order in which registers are allocated.
  23806. * Values in Registers:: What kinds of values each reg can hold.
  23807. * Leaf Functions:: Renumbering registers for leaf functions.
  23808. * Stack Registers:: Handling a register stack such as 80387.
  23809. 
  23810. File: gccint.info, Node: Register Basics, Next: Allocation Order, Up: Registers
  23811. 17.7.1 Basic Characteristics of Registers
  23812. -----------------------------------------
  23813. Registers have various characteristics.
  23814. -- Macro: FIRST_PSEUDO_REGISTER
  23815. Number of hardware registers known to the compiler. They receive
  23816. numbers 0 through 'FIRST_PSEUDO_REGISTER-1'; thus, the first pseudo
  23817. register's number really is assigned the number
  23818. 'FIRST_PSEUDO_REGISTER'.
  23819. -- Macro: FIXED_REGISTERS
  23820. An initializer that says which registers are used for fixed
  23821. purposes all throughout the compiled code and are therefore not
  23822. available for general allocation. These would include the stack
  23823. pointer, the frame pointer (except on machines where that can be
  23824. used as a general register when no frame pointer is needed), the
  23825. program counter on machines where that is considered one of the
  23826. addressable registers, and any other numbered register with a
  23827. standard use.
  23828. This information is expressed as a sequence of numbers, separated
  23829. by commas and surrounded by braces. The Nth number is 1 if
  23830. register N is fixed, 0 otherwise.
  23831. The table initialized from this macro, and the table initialized by
  23832. the following one, may be overridden at run time either
  23833. automatically, by the actions of the macro
  23834. 'CONDITIONAL_REGISTER_USAGE', or by the user with the command
  23835. options '-ffixed-REG', '-fcall-used-REG' and '-fcall-saved-REG'.
  23836. -- Macro: CALL_USED_REGISTERS
  23837. Like 'FIXED_REGISTERS' but has 1 for each register that is
  23838. clobbered (in general) by function calls as well as for fixed
  23839. registers. This macro therefore identifies the registers that are
  23840. not available for general allocation of values that must live
  23841. across function calls.
  23842. If a register has 0 in 'CALL_USED_REGISTERS', the compiler
  23843. automatically saves it on function entry and restores it on
  23844. function exit, if the register is used within the function.
  23845. -- Macro: CALL_REALLY_USED_REGISTERS
  23846. Like 'CALL_USED_REGISTERS' except this macro doesn't require that
  23847. the entire set of 'FIXED_REGISTERS' be included.
  23848. ('CALL_USED_REGISTERS' must be a superset of 'FIXED_REGISTERS').
  23849. This macro is optional. If not specified, it defaults to the value
  23850. of 'CALL_USED_REGISTERS'.
  23851. -- Macro: HARD_REGNO_CALL_PART_CLOBBERED (REGNO, MODE)
  23852. A C expression that is nonzero if it is not permissible to store a
  23853. value of mode MODE in hard register number REGNO across a call
  23854. without some part of it being clobbered. For most machines this
  23855. macro need not be defined. It is only required for machines that
  23856. do not preserve the entire contents of a register across a call.
  23857. -- Target Hook: void TARGET_CONDITIONAL_REGISTER_USAGE (void)
  23858. This hook may conditionally modify five variables 'fixed_regs',
  23859. 'call_used_regs', 'global_regs', 'reg_names', and
  23860. 'reg_class_contents', to take into account any dependence of these
  23861. register sets on target flags. The first three of these are of
  23862. type 'char []' (interpreted as boolean vectors). 'global_regs' is
  23863. a 'const char *[]', and 'reg_class_contents' is a 'HARD_REG_SET'.
  23864. Before the macro is called, 'fixed_regs', 'call_used_regs',
  23865. 'reg_class_contents', and 'reg_names' have been initialized from
  23866. 'FIXED_REGISTERS', 'CALL_USED_REGISTERS', 'REG_CLASS_CONTENTS', and
  23867. 'REGISTER_NAMES', respectively. 'global_regs' has been cleared,
  23868. and any '-ffixed-REG', '-fcall-used-REG' and '-fcall-saved-REG'
  23869. command options have been applied.
  23870. If the usage of an entire class of registers depends on the target
  23871. flags, you may indicate this to GCC by using this macro to modify
  23872. 'fixed_regs' and 'call_used_regs' to 1 for each of the registers in
  23873. the classes which should not be used by GCC. Also make
  23874. 'define_register_constraint's return 'NO_REGS' for constraints that
  23875. shouldn't be used.
  23876. (However, if this class is not included in 'GENERAL_REGS' and all
  23877. of the insn patterns whose constraints permit this class are
  23878. controlled by target switches, then GCC will automatically avoid
  23879. using these registers when the target switches are opposed to
  23880. them.)
  23881. -- Macro: INCOMING_REGNO (OUT)
  23882. Define this macro if the target machine has register windows. This
  23883. C expression returns the register number as seen by the called
  23884. function corresponding to the register number OUT as seen by the
  23885. calling function. Return OUT if register number OUT is not an
  23886. outbound register.
  23887. -- Macro: OUTGOING_REGNO (IN)
  23888. Define this macro if the target machine has register windows. This
  23889. C expression returns the register number as seen by the calling
  23890. function corresponding to the register number IN as seen by the
  23891. called function. Return IN if register number IN is not an inbound
  23892. register.
  23893. -- Macro: LOCAL_REGNO (REGNO)
  23894. Define this macro if the target machine has register windows. This
  23895. C expression returns true if the register is call-saved but is in
  23896. the register window. Unlike most call-saved registers, such
  23897. registers need not be explicitly restored on function exit or
  23898. during non-local gotos.
  23899. -- Macro: PC_REGNUM
  23900. If the program counter has a register number, define this as that
  23901. register number. Otherwise, do not define it.
  23902. 
  23903. File: gccint.info, Node: Allocation Order, Next: Values in Registers, Prev: Register Basics, Up: Registers
  23904. 17.7.2 Order of Allocation of Registers
  23905. ---------------------------------------
  23906. Registers are allocated in order.
  23907. -- Macro: REG_ALLOC_ORDER
  23908. If defined, an initializer for a vector of integers, containing the
  23909. numbers of hard registers in the order in which GCC should prefer
  23910. to use them (from most preferred to least).
  23911. If this macro is not defined, registers are used lowest numbered
  23912. first (all else being equal).
  23913. One use of this macro is on machines where the highest numbered
  23914. registers must always be saved and the save-multiple-registers
  23915. instruction supports only sequences of consecutive registers. On
  23916. such machines, define 'REG_ALLOC_ORDER' to be an initializer that
  23917. lists the highest numbered allocable register first.
  23918. -- Macro: ADJUST_REG_ALLOC_ORDER
  23919. A C statement (sans semicolon) to choose the order in which to
  23920. allocate hard registers for pseudo-registers local to a basic
  23921. block.
  23922. Store the desired register order in the array 'reg_alloc_order'.
  23923. Element 0 should be the register to allocate first; element 1, the
  23924. next register; and so on.
  23925. The macro body should not assume anything about the contents of
  23926. 'reg_alloc_order' before execution of the macro.
  23927. On most machines, it is not necessary to define this macro.
  23928. -- Macro: HONOR_REG_ALLOC_ORDER
  23929. Normally, IRA tries to estimate the costs for saving a register in
  23930. the prologue and restoring it in the epilogue. This discourages it
  23931. from using call-saved registers. If a machine wants to ensure that
  23932. IRA allocates registers in the order given by REG_ALLOC_ORDER even
  23933. if some call-saved registers appear earlier than call-used ones,
  23934. then define this macro as a C expression to nonzero. Default is 0.
  23935. -- Macro: IRA_HARD_REGNO_ADD_COST_MULTIPLIER (REGNO)
  23936. In some case register allocation order is not enough for the
  23937. Integrated Register Allocator (IRA) to generate a good code. If
  23938. this macro is defined, it should return a floating point value
  23939. based on REGNO. The cost of using REGNO for a pseudo will be
  23940. increased by approximately the pseudo's usage frequency times the
  23941. value returned by this macro. Not defining this macro is
  23942. equivalent to having it always return '0.0'.
  23943. On most machines, it is not necessary to define this macro.
  23944. 
  23945. File: gccint.info, Node: Values in Registers, Next: Leaf Functions, Prev: Allocation Order, Up: Registers
  23946. 17.7.3 How Values Fit in Registers
  23947. ----------------------------------
  23948. This section discusses the macros that describe which kinds of values
  23949. (specifically, which machine modes) each register can hold, and how many
  23950. consecutive registers are needed for a given mode.
  23951. -- Macro: HARD_REGNO_NREGS (REGNO, MODE)
  23952. A C expression for the number of consecutive hard registers,
  23953. starting at register number REGNO, required to hold a value of mode
  23954. MODE. This macro must never return zero, even if a register cannot
  23955. hold the requested mode - indicate that with HARD_REGNO_MODE_OK
  23956. and/or CANNOT_CHANGE_MODE_CLASS instead.
  23957. On a machine where all registers are exactly one word, a suitable
  23958. definition of this macro is
  23959. #define HARD_REGNO_NREGS(REGNO, MODE) \
  23960. ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) \
  23961. / UNITS_PER_WORD)
  23962. -- Macro: HARD_REGNO_NREGS_HAS_PADDING (REGNO, MODE)
  23963. A C expression that is nonzero if a value of mode MODE, stored in
  23964. memory, ends with padding that causes it to take up more space than
  23965. in registers starting at register number REGNO (as determined by
  23966. multiplying GCC's notion of the size of the register when
  23967. containing this mode by the number of registers returned by
  23968. 'HARD_REGNO_NREGS'). By default this is zero.
  23969. For example, if a floating-point value is stored in three 32-bit
  23970. registers but takes up 128 bits in memory, then this would be
  23971. nonzero.
  23972. This macros only needs to be defined if there are cases where
  23973. 'subreg_get_info' would otherwise wrongly determine that a 'subreg'
  23974. can be represented by an offset to the register number, when in
  23975. fact such a 'subreg' would contain some of the padding not stored
  23976. in registers and so not be representable.
  23977. -- Macro: HARD_REGNO_NREGS_WITH_PADDING (REGNO, MODE)
  23978. For values of REGNO and MODE for which
  23979. 'HARD_REGNO_NREGS_HAS_PADDING' returns nonzero, a C expression
  23980. returning the greater number of registers required to hold the
  23981. value including any padding. In the example above, the value would
  23982. be four.
  23983. -- Macro: REGMODE_NATURAL_SIZE (MODE)
  23984. Define this macro if the natural size of registers that hold values
  23985. of mode MODE is not the word size. It is a C expression that
  23986. should give the natural size in bytes for the specified mode. It
  23987. is used by the register allocator to try to optimize its results.
  23988. This happens for example on SPARC 64-bit where the natural size of
  23989. floating-point registers is still 32-bit.
  23990. -- Macro: HARD_REGNO_MODE_OK (REGNO, MODE)
  23991. A C expression that is nonzero if it is permissible to store a
  23992. value of mode MODE in hard register number REGNO (or in several
  23993. registers starting with that one). For a machine where all
  23994. registers are equivalent, a suitable definition is
  23995. #define HARD_REGNO_MODE_OK(REGNO, MODE) 1
  23996. You need not include code to check for the numbers of fixed
  23997. registers, because the allocation mechanism considers them to be
  23998. always occupied.
  23999. On some machines, double-precision values must be kept in even/odd
  24000. register pairs. You can implement that by defining this macro to
  24001. reject odd register numbers for such modes.
  24002. The minimum requirement for a mode to be OK in a register is that
  24003. the 'movMODE' instruction pattern support moves between the
  24004. register and other hard register in the same class and that moving
  24005. a value into the register and back out not alter it.
  24006. Since the same instruction used to move 'word_mode' will work for
  24007. all narrower integer modes, it is not necessary on any machine for
  24008. 'HARD_REGNO_MODE_OK' to distinguish between these modes, provided
  24009. you define patterns 'movhi', etc., to take advantage of this. This
  24010. is useful because of the interaction between 'HARD_REGNO_MODE_OK'
  24011. and 'MODES_TIEABLE_P'; it is very desirable for all integer modes
  24012. to be tieable.
  24013. Many machines have special registers for floating point arithmetic.
  24014. Often people assume that floating point machine modes are allowed
  24015. only in floating point registers. This is not true. Any registers
  24016. that can hold integers can safely _hold_ a floating point machine
  24017. mode, whether or not floating arithmetic can be done on it in those
  24018. registers. Integer move instructions can be used to move the
  24019. values.
  24020. On some machines, though, the converse is true: fixed-point machine
  24021. modes may not go in floating registers. This is true if the
  24022. floating registers normalize any value stored in them, because
  24023. storing a non-floating value there would garble it. In this case,
  24024. 'HARD_REGNO_MODE_OK' should reject fixed-point machine modes in
  24025. floating registers. But if the floating registers do not
  24026. automatically normalize, if you can store any bit pattern in one
  24027. and retrieve it unchanged without a trap, then any machine mode may
  24028. go in a floating register, so you can define this macro to say so.
  24029. The primary significance of special floating registers is rather
  24030. that they are the registers acceptable in floating point arithmetic
  24031. instructions. However, this is of no concern to
  24032. 'HARD_REGNO_MODE_OK'. You handle it by writing the proper
  24033. constraints for those instructions.
  24034. On some machines, the floating registers are especially slow to
  24035. access, so that it is better to store a value in a stack frame than
  24036. in such a register if floating point arithmetic is not being done.
  24037. As long as the floating registers are not in class 'GENERAL_REGS',
  24038. they will not be used unless some pattern's constraint asks for
  24039. one.
  24040. -- Macro: HARD_REGNO_RENAME_OK (FROM, TO)
  24041. A C expression that is nonzero if it is OK to rename a hard
  24042. register FROM to another hard register TO.
  24043. One common use of this macro is to prevent renaming of a register
  24044. to another register that is not saved by a prologue in an interrupt
  24045. handler.
  24046. The default is always nonzero.
  24047. -- Macro: MODES_TIEABLE_P (MODE1, MODE2)
  24048. A C expression that is nonzero if a value of mode MODE1 is
  24049. accessible in mode MODE2 without copying.
  24050. If 'HARD_REGNO_MODE_OK (R, MODE1)' and 'HARD_REGNO_MODE_OK (R,
  24051. MODE2)' are always the same for any R, then 'MODES_TIEABLE_P
  24052. (MODE1, MODE2)' should be nonzero. If they differ for any R, you
  24053. should define this macro to return zero unless some other mechanism
  24054. ensures the accessibility of the value in a narrower mode.
  24055. You should define this macro to return nonzero in as many cases as
  24056. possible since doing so will allow GCC to perform better register
  24057. allocation.
  24058. -- Target Hook: bool TARGET_HARD_REGNO_SCRATCH_OK (unsigned int REGNO)
  24059. This target hook should return 'true' if it is OK to use a hard
  24060. register REGNO as scratch reg in peephole2.
  24061. One common use of this macro is to prevent using of a register that
  24062. is not saved by a prologue in an interrupt handler.
  24063. The default version of this hook always returns 'true'.
  24064. -- Macro: AVOID_CCMODE_COPIES
  24065. Define this macro if the compiler should avoid copies to/from
  24066. 'CCmode' registers. You should only define this macro if support
  24067. for copying to/from 'CCmode' is incomplete.
  24068. 
  24069. File: gccint.info, Node: Leaf Functions, Next: Stack Registers, Prev: Values in Registers, Up: Registers
  24070. 17.7.4 Handling Leaf Functions
  24071. ------------------------------
  24072. On some machines, a leaf function (i.e., one which makes no calls) can
  24073. run more efficiently if it does not make its own register window. Often
  24074. this means it is required to receive its arguments in the registers
  24075. where they are passed by the caller, instead of the registers where they
  24076. would normally arrive.
  24077. The special treatment for leaf functions generally applies only when
  24078. other conditions are met; for example, often they may use only those
  24079. registers for its own variables and temporaries. We use the term "leaf
  24080. function" to mean a function that is suitable for this special handling,
  24081. so that functions with no calls are not necessarily "leaf functions".
  24082. GCC assigns register numbers before it knows whether the function is
  24083. suitable for leaf function treatment. So it needs to renumber the
  24084. registers in order to output a leaf function. The following macros
  24085. accomplish this.
  24086. -- Macro: LEAF_REGISTERS
  24087. Name of a char vector, indexed by hard register number, which
  24088. contains 1 for a register that is allowable in a candidate for leaf
  24089. function treatment.
  24090. If leaf function treatment involves renumbering the registers, then
  24091. the registers marked here should be the ones before
  24092. renumbering--those that GCC would ordinarily allocate. The
  24093. registers which will actually be used in the assembler code, after
  24094. renumbering, should not be marked with 1 in this vector.
  24095. Define this macro only if the target machine offers a way to
  24096. optimize the treatment of leaf functions.
  24097. -- Macro: LEAF_REG_REMAP (REGNO)
  24098. A C expression whose value is the register number to which REGNO
  24099. should be renumbered, when a function is treated as a leaf
  24100. function.
  24101. If REGNO is a register number which should not appear in a leaf
  24102. function before renumbering, then the expression should yield -1,
  24103. which will cause the compiler to abort.
  24104. Define this macro only if the target machine offers a way to
  24105. optimize the treatment of leaf functions, and registers need to be
  24106. renumbered to do this.
  24107. 'TARGET_ASM_FUNCTION_PROLOGUE' and 'TARGET_ASM_FUNCTION_EPILOGUE' must
  24108. usually treat leaf functions specially. They can test the C variable
  24109. 'current_function_is_leaf' which is nonzero for leaf functions.
  24110. 'current_function_is_leaf' is set prior to local register allocation and
  24111. is valid for the remaining compiler passes. They can also test the C
  24112. variable 'current_function_uses_only_leaf_regs' which is nonzero for
  24113. leaf functions which only use leaf registers.
  24114. 'current_function_uses_only_leaf_regs' is valid after all passes that
  24115. modify the instructions have been run and is only useful if
  24116. 'LEAF_REGISTERS' is defined.
  24117. 
  24118. File: gccint.info, Node: Stack Registers, Prev: Leaf Functions, Up: Registers
  24119. 17.7.5 Registers That Form a Stack
  24120. ----------------------------------
  24121. There are special features to handle computers where some of the
  24122. "registers" form a stack. Stack registers are normally written by
  24123. pushing onto the stack, and are numbered relative to the top of the
  24124. stack.
  24125. Currently, GCC can only handle one group of stack-like registers, and
  24126. they must be consecutively numbered. Furthermore, the existing support
  24127. for stack-like registers is specific to the 80387 floating point
  24128. coprocessor. If you have a new architecture that uses stack-like
  24129. registers, you will need to do substantial work on 'reg-stack.c' and
  24130. write your machine description to cooperate with it, as well as defining
  24131. these macros.
  24132. -- Macro: STACK_REGS
  24133. Define this if the machine has any stack-like registers.
  24134. -- Macro: STACK_REG_COVER_CLASS
  24135. This is a cover class containing the stack registers. Define this
  24136. if the machine has any stack-like registers.
  24137. -- Macro: FIRST_STACK_REG
  24138. The number of the first stack-like register. This one is the top
  24139. of the stack.
  24140. -- Macro: LAST_STACK_REG
  24141. The number of the last stack-like register. This one is the bottom
  24142. of the stack.
  24143. 
  24144. File: gccint.info, Node: Register Classes, Next: Stack and Calling, Prev: Registers, Up: Target Macros
  24145. 17.8 Register Classes
  24146. =====================
  24147. On many machines, the numbered registers are not all equivalent. For
  24148. example, certain registers may not be allowed for indexed addressing;
  24149. certain registers may not be allowed in some instructions. These
  24150. machine restrictions are described to the compiler using "register
  24151. classes".
  24152. You define a number of register classes, giving each one a name and
  24153. saying which of the registers belong to it. Then you can specify
  24154. register classes that are allowed as operands to particular instruction
  24155. patterns.
  24156. In general, each register will belong to several classes. In fact, one
  24157. class must be named 'ALL_REGS' and contain all the registers. Another
  24158. class must be named 'NO_REGS' and contain no registers. Often the union
  24159. of two classes will be another class; however, this is not required.
  24160. One of the classes must be named 'GENERAL_REGS'. There is nothing
  24161. terribly special about the name, but the operand constraint letters 'r'
  24162. and 'g' specify this class. If 'GENERAL_REGS' is the same as
  24163. 'ALL_REGS', just define it as a macro which expands to 'ALL_REGS'.
  24164. Order the classes so that if class X is contained in class Y then X has
  24165. a lower class number than Y.
  24166. The way classes other than 'GENERAL_REGS' are specified in operand
  24167. constraints is through machine-dependent operand constraint letters.
  24168. You can define such letters to correspond to various classes, then use
  24169. them in operand constraints.
  24170. You must define the narrowest register classes for allocatable
  24171. registers, so that each class either has no subclasses, or that for some
  24172. mode, the move cost between registers within the class is cheaper than
  24173. moving a register in the class to or from memory (*note Costs::).
  24174. You should define a class for the union of two classes whenever some
  24175. instruction allows both classes. For example, if an instruction allows
  24176. either a floating point (coprocessor) register or a general register for
  24177. a certain operand, you should define a class 'FLOAT_OR_GENERAL_REGS'
  24178. which includes both of them. Otherwise you will get suboptimal code, or
  24179. even internal compiler errors when reload cannot find a register in the
  24180. class computed via 'reg_class_subunion'.
  24181. You must also specify certain redundant information about the register
  24182. classes: for each class, which classes contain it and which ones are
  24183. contained in it; for each pair of classes, the largest class contained
  24184. in their union.
  24185. When a value occupying several consecutive registers is expected in a
  24186. certain class, all the registers used must belong to that class.
  24187. Therefore, register classes cannot be used to enforce a requirement for
  24188. a register pair to start with an even-numbered register. The way to
  24189. specify this requirement is with 'HARD_REGNO_MODE_OK'.
  24190. Register classes used for input-operands of bitwise-and or shift
  24191. instructions have a special requirement: each such class must have, for
  24192. each fixed-point machine mode, a subclass whose registers can transfer
  24193. that mode to or from memory. For example, on some machines, the
  24194. operations for single-byte values ('QImode') are limited to certain
  24195. registers. When this is so, each register class that is used in a
  24196. bitwise-and or shift instruction must have a subclass consisting of
  24197. registers from which single-byte values can be loaded or stored. This
  24198. is so that 'PREFERRED_RELOAD_CLASS' can always have a possible value to
  24199. return.
  24200. -- Data type: enum reg_class
  24201. An enumerated type that must be defined with all the register class
  24202. names as enumerated values. 'NO_REGS' must be first. 'ALL_REGS'
  24203. must be the last register class, followed by one more enumerated
  24204. value, 'LIM_REG_CLASSES', which is not a register class but rather
  24205. tells how many classes there are.
  24206. Each register class has a number, which is the value of casting the
  24207. class name to type 'int'. The number serves as an index in many of
  24208. the tables described below.
  24209. -- Macro: N_REG_CLASSES
  24210. The number of distinct register classes, defined as follows:
  24211. #define N_REG_CLASSES (int) LIM_REG_CLASSES
  24212. -- Macro: REG_CLASS_NAMES
  24213. An initializer containing the names of the register classes as C
  24214. string constants. These names are used in writing some of the
  24215. debugging dumps.
  24216. -- Macro: REG_CLASS_CONTENTS
  24217. An initializer containing the contents of the register classes, as
  24218. integers which are bit masks. The Nth integer specifies the
  24219. contents of class N. The way the integer MASK is interpreted is
  24220. that register R is in the class if 'MASK & (1 << R)' is 1.
  24221. When the machine has more than 32 registers, an integer does not
  24222. suffice. Then the integers are replaced by sub-initializers,
  24223. braced groupings containing several integers. Each sub-initializer
  24224. must be suitable as an initializer for the type 'HARD_REG_SET'
  24225. which is defined in 'hard-reg-set.h'. In this situation, the first
  24226. integer in each sub-initializer corresponds to registers 0 through
  24227. 31, the second integer to registers 32 through 63, and so on.
  24228. -- Macro: REGNO_REG_CLASS (REGNO)
  24229. A C expression whose value is a register class containing hard
  24230. register REGNO. In general there is more than one such class;
  24231. choose a class which is "minimal", meaning that no smaller class
  24232. also contains the register.
  24233. -- Macro: BASE_REG_CLASS
  24234. A macro whose definition is the name of the class to which a valid
  24235. base register must belong. A base register is one used in an
  24236. address which is the register value plus a displacement.
  24237. -- Macro: MODE_BASE_REG_CLASS (MODE)
  24238. This is a variation of the 'BASE_REG_CLASS' macro which allows the
  24239. selection of a base register in a mode dependent manner. If MODE
  24240. is VOIDmode then it should return the same value as
  24241. 'BASE_REG_CLASS'.
  24242. -- Macro: MODE_BASE_REG_REG_CLASS (MODE)
  24243. A C expression whose value is the register class to which a valid
  24244. base register must belong in order to be used in a base plus index
  24245. register address. You should define this macro if base plus index
  24246. addresses have different requirements than other base register
  24247. uses.
  24248. -- Macro: MODE_CODE_BASE_REG_CLASS (MODE, ADDRESS_SPACE, OUTER_CODE,
  24249. INDEX_CODE)
  24250. A C expression whose value is the register class to which a valid
  24251. base register for a memory reference in mode MODE to address space
  24252. ADDRESS_SPACE must belong. OUTER_CODE and INDEX_CODE define the
  24253. context in which the base register occurs. OUTER_CODE is the code
  24254. of the immediately enclosing expression ('MEM' for the top level of
  24255. an address, 'ADDRESS' for something that occurs in an
  24256. 'address_operand'). INDEX_CODE is the code of the corresponding
  24257. index expression if OUTER_CODE is 'PLUS'; 'SCRATCH' otherwise.
  24258. -- Macro: INDEX_REG_CLASS
  24259. A macro whose definition is the name of the class to which a valid
  24260. index register must belong. An index register is one used in an
  24261. address where its value is either multiplied by a scale factor or
  24262. added to another register (as well as added to a displacement).
  24263. -- Macro: REGNO_OK_FOR_BASE_P (NUM)
  24264. A C expression which is nonzero if register number NUM is suitable
  24265. for use as a base register in operand addresses.
  24266. -- Macro: REGNO_MODE_OK_FOR_BASE_P (NUM, MODE)
  24267. A C expression that is just like 'REGNO_OK_FOR_BASE_P', except that
  24268. that expression may examine the mode of the memory reference in
  24269. MODE. You should define this macro if the mode of the memory
  24270. reference affects whether a register may be used as a base
  24271. register. If you define this macro, the compiler will use it
  24272. instead of 'REGNO_OK_FOR_BASE_P'. The mode may be 'VOIDmode' for
  24273. addresses that appear outside a 'MEM', i.e., as an
  24274. 'address_operand'.
  24275. -- Macro: REGNO_MODE_OK_FOR_REG_BASE_P (NUM, MODE)
  24276. A C expression which is nonzero if register number NUM is suitable
  24277. for use as a base register in base plus index operand addresses,
  24278. accessing memory in mode MODE. It may be either a suitable hard
  24279. register or a pseudo register that has been allocated such a hard
  24280. register. You should define this macro if base plus index
  24281. addresses have different requirements than other base register
  24282. uses.
  24283. Use of this macro is deprecated; please use the more general
  24284. 'REGNO_MODE_CODE_OK_FOR_BASE_P'.
  24285. -- Macro: REGNO_MODE_CODE_OK_FOR_BASE_P (NUM, MODE, ADDRESS_SPACE,
  24286. OUTER_CODE, INDEX_CODE)
  24287. A C expression which is nonzero if register number NUM is suitable
  24288. for use as a base register in operand addresses, accessing memory
  24289. in mode MODE in address space ADDRESS_SPACE. This is similar to
  24290. 'REGNO_MODE_OK_FOR_BASE_P', except that that expression may examine
  24291. the context in which the register appears in the memory reference.
  24292. OUTER_CODE is the code of the immediately enclosing expression
  24293. ('MEM' if at the top level of the address, 'ADDRESS' for something
  24294. that occurs in an 'address_operand'). INDEX_CODE is the code of
  24295. the corresponding index expression if OUTER_CODE is 'PLUS';
  24296. 'SCRATCH' otherwise. The mode may be 'VOIDmode' for addresses that
  24297. appear outside a 'MEM', i.e., as an 'address_operand'.
  24298. -- Macro: REGNO_OK_FOR_INDEX_P (NUM)
  24299. A C expression which is nonzero if register number NUM is suitable
  24300. for use as an index register in operand addresses. It may be
  24301. either a suitable hard register or a pseudo register that has been
  24302. allocated such a hard register.
  24303. The difference between an index register and a base register is
  24304. that the index register may be scaled. If an address involves the
  24305. sum of two registers, neither one of them scaled, then either one
  24306. may be labeled the "base" and the other the "index"; but whichever
  24307. labeling is used must fit the machine's constraints of which
  24308. registers may serve in each capacity. The compiler will try both
  24309. labelings, looking for one that is valid, and will reload one or
  24310. both registers only if neither labeling works.
  24311. -- Target Hook: reg_class_t TARGET_PREFERRED_RENAME_CLASS (reg_class_t
  24312. RCLASS)
  24313. A target hook that places additional preference on the register
  24314. class to use when it is necessary to rename a register in class
  24315. RCLASS to another class, or perhaps NO_REGS, if no preferred
  24316. register class is found or hook 'preferred_rename_class' is not
  24317. implemented. Sometimes returning a more restrictive class makes
  24318. better code. For example, on ARM, thumb-2 instructions using
  24319. 'LO_REGS' may be smaller than instructions using 'GENERIC_REGS'.
  24320. By returning 'LO_REGS' from 'preferred_rename_class', code size can
  24321. be reduced.
  24322. -- Target Hook: reg_class_t TARGET_PREFERRED_RELOAD_CLASS (rtx X,
  24323. reg_class_t RCLASS)
  24324. A target hook that places additional restrictions on the register
  24325. class to use when it is necessary to copy value X into a register
  24326. in class RCLASS. The value is a register class; perhaps RCLASS, or
  24327. perhaps another, smaller class.
  24328. The default version of this hook always returns value of 'rclass'
  24329. argument.
  24330. Sometimes returning a more restrictive class makes better code.
  24331. For example, on the 68000, when X is an integer constant that is in
  24332. range for a 'moveq' instruction, the value of this macro is always
  24333. 'DATA_REGS' as long as RCLASS includes the data registers.
  24334. Requiring a data register guarantees that a 'moveq' will be used.
  24335. One case where 'TARGET_PREFERRED_RELOAD_CLASS' must not return
  24336. RCLASS is if X is a legitimate constant which cannot be loaded into
  24337. some register class. By returning 'NO_REGS' you can force X into a
  24338. memory location. For example, rs6000 can load immediate values
  24339. into general-purpose registers, but does not have an instruction
  24340. for loading an immediate value into a floating-point register, so
  24341. 'TARGET_PREFERRED_RELOAD_CLASS' returns 'NO_REGS' when X is a
  24342. floating-point constant. If the constant can't be loaded into any
  24343. kind of register, code generation will be better if
  24344. 'TARGET_LEGITIMATE_CONSTANT_P' makes the constant illegitimate
  24345. instead of using 'TARGET_PREFERRED_RELOAD_CLASS'.
  24346. If an insn has pseudos in it after register allocation, reload will
  24347. go through the alternatives and call repeatedly
  24348. 'TARGET_PREFERRED_RELOAD_CLASS' to find the best one. Returning
  24349. 'NO_REGS', in this case, makes reload add a '!' in front of the
  24350. constraint: the x86 back-end uses this feature to discourage usage
  24351. of 387 registers when math is done in the SSE registers (and vice
  24352. versa).
  24353. -- Macro: PREFERRED_RELOAD_CLASS (X, CLASS)
  24354. A C expression that places additional restrictions on the register
  24355. class to use when it is necessary to copy value X into a register
  24356. in class CLASS. The value is a register class; perhaps CLASS, or
  24357. perhaps another, smaller class. On many machines, the following
  24358. definition is safe:
  24359. #define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
  24360. Sometimes returning a more restrictive class makes better code.
  24361. For example, on the 68000, when X is an integer constant that is in
  24362. range for a 'moveq' instruction, the value of this macro is always
  24363. 'DATA_REGS' as long as CLASS includes the data registers.
  24364. Requiring a data register guarantees that a 'moveq' will be used.
  24365. One case where 'PREFERRED_RELOAD_CLASS' must not return CLASS is if
  24366. X is a legitimate constant which cannot be loaded into some
  24367. register class. By returning 'NO_REGS' you can force X into a
  24368. memory location. For example, rs6000 can load immediate values
  24369. into general-purpose registers, but does not have an instruction
  24370. for loading an immediate value into a floating-point register, so
  24371. 'PREFERRED_RELOAD_CLASS' returns 'NO_REGS' when X is a
  24372. floating-point constant. If the constant cannot be loaded into any
  24373. kind of register, code generation will be better if
  24374. 'TARGET_LEGITIMATE_CONSTANT_P' makes the constant illegitimate
  24375. instead of using 'TARGET_PREFERRED_RELOAD_CLASS'.
  24376. If an insn has pseudos in it after register allocation, reload will
  24377. go through the alternatives and call repeatedly
  24378. 'PREFERRED_RELOAD_CLASS' to find the best one. Returning
  24379. 'NO_REGS', in this case, makes reload add a '!' in front of the
  24380. constraint: the x86 back-end uses this feature to discourage usage
  24381. of 387 registers when math is done in the SSE registers (and vice
  24382. versa).
  24383. -- Target Hook: reg_class_t TARGET_PREFERRED_OUTPUT_RELOAD_CLASS (rtx
  24384. X, reg_class_t RCLASS)
  24385. Like 'TARGET_PREFERRED_RELOAD_CLASS', but for output reloads
  24386. instead of input reloads.
  24387. The default version of this hook always returns value of 'rclass'
  24388. argument.
  24389. You can also use 'TARGET_PREFERRED_OUTPUT_RELOAD_CLASS' to
  24390. discourage reload from using some alternatives, like
  24391. 'TARGET_PREFERRED_RELOAD_CLASS'.
  24392. -- Macro: LIMIT_RELOAD_CLASS (MODE, CLASS)
  24393. A C expression that places additional restrictions on the register
  24394. class to use when it is necessary to be able to hold a value of
  24395. mode MODE in a reload register for which class CLASS would
  24396. ordinarily be used.
  24397. Unlike 'PREFERRED_RELOAD_CLASS', this macro should be used when
  24398. there are certain modes that simply cannot go in certain reload
  24399. classes.
  24400. The value is a register class; perhaps CLASS, or perhaps another,
  24401. smaller class.
  24402. Don't define this macro unless the target machine has limitations
  24403. which require the macro to do something nontrivial.
  24404. -- Target Hook: reg_class_t TARGET_SECONDARY_RELOAD (bool IN_P, rtx X,
  24405. reg_class_t RELOAD_CLASS, machine_mode RELOAD_MODE,
  24406. secondary_reload_info *SRI)
  24407. Many machines have some registers that cannot be copied directly to
  24408. or from memory or even from other types of registers. An example
  24409. is the 'MQ' register, which on most machines, can only be copied to
  24410. or from general registers, but not memory. Below, we shall be
  24411. using the term 'intermediate register' when a move operation cannot
  24412. be performed directly, but has to be done by copying the source
  24413. into the intermediate register first, and then copying the
  24414. intermediate register to the destination. An intermediate register
  24415. always has the same mode as source and destination. Since it holds
  24416. the actual value being copied, reload might apply optimizations to
  24417. re-use an intermediate register and eliding the copy from the
  24418. source when it can determine that the intermediate register still
  24419. holds the required value.
  24420. Another kind of secondary reload is required on some machines which
  24421. allow copying all registers to and from memory, but require a
  24422. scratch register for stores to some memory locations (e.g., those
  24423. with symbolic address on the RT, and those with certain symbolic
  24424. address on the SPARC when compiling PIC). Scratch registers need
  24425. not have the same mode as the value being copied, and usually hold
  24426. a different value than that being copied. Special patterns in the
  24427. md file are needed to describe how the copy is performed with the
  24428. help of the scratch register; these patterns also describe the
  24429. number, register class(es) and mode(s) of the scratch register(s).
  24430. In some cases, both an intermediate and a scratch register are
  24431. required.
  24432. For input reloads, this target hook is called with nonzero IN_P,
  24433. and X is an rtx that needs to be copied to a register of class
  24434. RELOAD_CLASS in RELOAD_MODE. For output reloads, this target hook
  24435. is called with zero IN_P, and a register of class RELOAD_CLASS
  24436. needs to be copied to rtx X in RELOAD_MODE.
  24437. If copying a register of RELOAD_CLASS from/to X requires an
  24438. intermediate register, the hook 'secondary_reload' should return
  24439. the register class required for this intermediate register. If no
  24440. intermediate register is required, it should return NO_REGS. If
  24441. more than one intermediate register is required, describe the one
  24442. that is closest in the copy chain to the reload register.
  24443. If scratch registers are needed, you also have to describe how to
  24444. perform the copy from/to the reload register to/from this closest
  24445. intermediate register. Or if no intermediate register is required,
  24446. but still a scratch register is needed, describe the copy from/to
  24447. the reload register to/from the reload operand X.
  24448. You do this by setting 'sri->icode' to the instruction code of a
  24449. pattern in the md file which performs the move. Operands 0 and 1
  24450. are the output and input of this copy, respectively. Operands from
  24451. operand 2 onward are for scratch operands. These scratch operands
  24452. must have a mode, and a single-register-class output constraint.
  24453. When an intermediate register is used, the 'secondary_reload' hook
  24454. will be called again to determine how to copy the intermediate
  24455. register to/from the reload operand X, so your hook must also have
  24456. code to handle the register class of the intermediate operand.
  24457. X might be a pseudo-register or a 'subreg' of a pseudo-register,
  24458. which could either be in a hard register or in memory. Use
  24459. 'true_regnum' to find out; it will return -1 if the pseudo is in
  24460. memory and the hard register number if it is in a register.
  24461. Scratch operands in memory (constraint '"=m"' / '"=&m"') are
  24462. currently not supported. For the time being, you will have to
  24463. continue to use 'SECONDARY_MEMORY_NEEDED' for that purpose.
  24464. 'copy_cost' also uses this target hook to find out how values are
  24465. copied. If you want it to include some extra cost for the need to
  24466. allocate (a) scratch register(s), set 'sri->extra_cost' to the
  24467. additional cost. Or if two dependent moves are supposed to have a
  24468. lower cost than the sum of the individual moves due to expected
  24469. fortuitous scheduling and/or special forwarding logic, you can set
  24470. 'sri->extra_cost' to a negative amount.
  24471. -- Macro: SECONDARY_RELOAD_CLASS (CLASS, MODE, X)
  24472. -- Macro: SECONDARY_INPUT_RELOAD_CLASS (CLASS, MODE, X)
  24473. -- Macro: SECONDARY_OUTPUT_RELOAD_CLASS (CLASS, MODE, X)
  24474. These macros are obsolete, new ports should use the target hook
  24475. 'TARGET_SECONDARY_RELOAD' instead.
  24476. These are obsolete macros, replaced by the
  24477. 'TARGET_SECONDARY_RELOAD' target hook. Older ports still define
  24478. these macros to indicate to the reload phase that it may need to
  24479. allocate at least one register for a reload in addition to the
  24480. register to contain the data. Specifically, if copying X to a
  24481. register CLASS in MODE requires an intermediate register, you were
  24482. supposed to define 'SECONDARY_INPUT_RELOAD_CLASS' to return the
  24483. largest register class all of whose registers can be used as
  24484. intermediate registers or scratch registers.
  24485. If copying a register CLASS in MODE to X requires an intermediate
  24486. or scratch register, 'SECONDARY_OUTPUT_RELOAD_CLASS' was supposed
  24487. to be defined be defined to return the largest register class
  24488. required. If the requirements for input and output reloads were
  24489. the same, the macro 'SECONDARY_RELOAD_CLASS' should have been used
  24490. instead of defining both macros identically.
  24491. The values returned by these macros are often 'GENERAL_REGS'.
  24492. Return 'NO_REGS' if no spare register is needed; i.e., if X can be
  24493. directly copied to or from a register of CLASS in MODE without
  24494. requiring a scratch register. Do not define this macro if it would
  24495. always return 'NO_REGS'.
  24496. If a scratch register is required (either with or without an
  24497. intermediate register), you were supposed to define patterns for
  24498. 'reload_inM' or 'reload_outM', as required (*note Standard Names::.
  24499. These patterns, which were normally implemented with a
  24500. 'define_expand', should be similar to the 'movM' patterns, except
  24501. that operand 2 is the scratch register.
  24502. These patterns need constraints for the reload register and scratch
  24503. register that contain a single register class. If the original
  24504. reload register (whose class is CLASS) can meet the constraint
  24505. given in the pattern, the value returned by these macros is used
  24506. for the class of the scratch register. Otherwise, two additional
  24507. reload registers are required. Their classes are obtained from the
  24508. constraints in the insn pattern.
  24509. X might be a pseudo-register or a 'subreg' of a pseudo-register,
  24510. which could either be in a hard register or in memory. Use
  24511. 'true_regnum' to find out; it will return -1 if the pseudo is in
  24512. memory and the hard register number if it is in a register.
  24513. These macros should not be used in the case where a particular
  24514. class of registers can only be copied to memory and not to another
  24515. class of registers. In that case, secondary reload registers are
  24516. not needed and would not be helpful. Instead, a stack location
  24517. must be used to perform the copy and the 'movM' pattern should use
  24518. memory as an intermediate storage. This case often occurs between
  24519. floating-point and general registers.
  24520. -- Macro: SECONDARY_MEMORY_NEEDED (CLASS1, CLASS2, M)
  24521. Certain machines have the property that some registers cannot be
  24522. copied to some other registers without using memory. Define this
  24523. macro on those machines to be a C expression that is nonzero if
  24524. objects of mode M in registers of CLASS1 can only be copied to
  24525. registers of class CLASS2 by storing a register of CLASS1 into
  24526. memory and loading that memory location into a register of CLASS2.
  24527. Do not define this macro if its value would always be zero.
  24528. -- Macro: SECONDARY_MEMORY_NEEDED_RTX (MODE)
  24529. Normally when 'SECONDARY_MEMORY_NEEDED' is defined, the compiler
  24530. allocates a stack slot for a memory location needed for register
  24531. copies. If this macro is defined, the compiler instead uses the
  24532. memory location defined by this macro.
  24533. Do not define this macro if you do not define
  24534. 'SECONDARY_MEMORY_NEEDED'.
  24535. -- Macro: SECONDARY_MEMORY_NEEDED_MODE (MODE)
  24536. When the compiler needs a secondary memory location to copy between
  24537. two registers of mode MODE, it normally allocates sufficient memory
  24538. to hold a quantity of 'BITS_PER_WORD' bits and performs the store
  24539. and load operations in a mode that many bits wide and whose class
  24540. is the same as that of MODE.
  24541. This is right thing to do on most machines because it ensures that
  24542. all bits of the register are copied and prevents accesses to the
  24543. registers in a narrower mode, which some machines prohibit for
  24544. floating-point registers.
  24545. However, this default behavior is not correct on some machines,
  24546. such as the DEC Alpha, that store short integers in floating-point
  24547. registers differently than in integer registers. On those
  24548. machines, the default widening will not work correctly and you must
  24549. define this macro to suppress that widening in some cases. See the
  24550. file 'alpha.h' for details.
  24551. Do not define this macro if you do not define
  24552. 'SECONDARY_MEMORY_NEEDED' or if widening MODE to a mode that is
  24553. 'BITS_PER_WORD' bits wide is correct for your machine.
  24554. -- Target Hook: bool TARGET_CLASS_LIKELY_SPILLED_P (reg_class_t RCLASS)
  24555. A target hook which returns 'true' if pseudos that have been
  24556. assigned to registers of class RCLASS would likely be spilled
  24557. because registers of RCLASS are needed for spill registers.
  24558. The default version of this target hook returns 'true' if RCLASS
  24559. has exactly one register and 'false' otherwise. On most machines,
  24560. this default should be used. For generally register-starved
  24561. machines, such as i386, or machines with right register
  24562. constraints, such as SH, this hook can be used to avoid excessive
  24563. spilling.
  24564. This hook is also used by some of the global intra-procedural code
  24565. transformations to throtle code motion, to avoid increasing
  24566. register pressure.
  24567. -- Target Hook: unsigned char TARGET_CLASS_MAX_NREGS (reg_class_t
  24568. RCLASS, machine_mode MODE)
  24569. A target hook returns the maximum number of consecutive registers
  24570. of class RCLASS needed to hold a value of mode MODE.
  24571. This is closely related to the macro 'HARD_REGNO_NREGS'. In fact,
  24572. the value returned by 'TARGET_CLASS_MAX_NREGS (RCLASS, MODE)'
  24573. target hook should be the maximum value of 'HARD_REGNO_NREGS
  24574. (REGNO, MODE)' for all REGNO values in the class RCLASS.
  24575. This target hook helps control the handling of multiple-word values
  24576. in the reload pass.
  24577. The default version of this target hook returns the size of MODE in
  24578. words.
  24579. -- Macro: CLASS_MAX_NREGS (CLASS, MODE)
  24580. A C expression for the maximum number of consecutive registers of
  24581. class CLASS needed to hold a value of mode MODE.
  24582. This is closely related to the macro 'HARD_REGNO_NREGS'. In fact,
  24583. the value of the macro 'CLASS_MAX_NREGS (CLASS, MODE)' should be
  24584. the maximum value of 'HARD_REGNO_NREGS (REGNO, MODE)' for all REGNO
  24585. values in the class CLASS.
  24586. This macro helps control the handling of multiple-word values in
  24587. the reload pass.
  24588. -- Macro: CANNOT_CHANGE_MODE_CLASS (FROM, TO, CLASS)
  24589. If defined, a C expression that returns nonzero for a CLASS for
  24590. which a change from mode FROM to mode TO is invalid.
  24591. For example, loading 32-bit integer or floating-point objects into
  24592. floating-point registers on Alpha extends them to 64 bits.
  24593. Therefore loading a 64-bit object and then storing it as a 32-bit
  24594. object does not store the low-order 32 bits, as would be the case
  24595. for a normal register. Therefore, 'alpha.h' defines
  24596. 'CANNOT_CHANGE_MODE_CLASS' as below:
  24597. #define CANNOT_CHANGE_MODE_CLASS(FROM, TO, CLASS) \
  24598. (GET_MODE_SIZE (FROM) != GET_MODE_SIZE (TO) \
  24599. ? reg_classes_intersect_p (FLOAT_REGS, (CLASS)) : 0)
  24600. Even if storing from a register in mode TO would be valid, if both
  24601. FROM and 'raw_reg_mode' for CLASS are wider than 'word_mode', then
  24602. we must prevent TO narrowing the mode. This happens when the
  24603. middle-end assumes that it can load or store pieces of an N-word
  24604. pseudo, and that the pseudo will eventually be allocated to N
  24605. 'word_mode' hard registers. Failure to prevent this kind of mode
  24606. change will result in the entire 'raw_reg_mode' being modified
  24607. instead of the partial value that the middle-end intended.
  24608. -- Target Hook: reg_class_t TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS
  24609. (int, REG_CLASS_T, REG_CLASS_T)
  24610. A target hook which can change allocno class for given pseudo from
  24611. allocno and best class calculated by IRA.
  24612. The default version of this target hook always returns given class.
  24613. -- Target Hook: bool TARGET_LRA_P (void)
  24614. A target hook which returns true if we use LRA instead of reload
  24615. pass. The default version of this target hook returns true. New
  24616. ports should use LRA, and existing ports are encouraged to convert.
  24617. -- Target Hook: int TARGET_REGISTER_PRIORITY (int)
  24618. A target hook which returns the register priority number to which
  24619. the register HARD_REGNO belongs to. The bigger the number, the
  24620. more preferable the hard register usage (when all other conditions
  24621. are the same). This hook can be used to prefer some hard register
  24622. over others in LRA. For example, some x86-64 register usage needs
  24623. additional prefix which makes instructions longer. The hook can
  24624. return lower priority number for such registers make them less
  24625. favorable and as result making the generated code smaller. The
  24626. default version of this target hook returns always zero.
  24627. -- Target Hook: bool TARGET_REGISTER_USAGE_LEVELING_P (void)
  24628. A target hook which returns true if we need register usage
  24629. leveling. That means if a few hard registers are equally good for
  24630. the assignment, we choose the least used hard register. The
  24631. register usage leveling may be profitable for some targets. Don't
  24632. use the usage leveling for targets with conditional execution or
  24633. targets with big register files as it hurts if-conversion and
  24634. cross-jumping optimizations. The default version of this target
  24635. hook returns always false.
  24636. -- Target Hook: bool TARGET_DIFFERENT_ADDR_DISPLACEMENT_P (void)
  24637. A target hook which returns true if an address with the same
  24638. structure can have different maximal legitimate displacement. For
  24639. example, the displacement can depend on memory mode or on operand
  24640. combinations in the insn. The default version of this target hook
  24641. returns always false.
  24642. -- Target Hook: bool TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P (rtx SUBST)
  24643. A target hook which returns 'true' if SUBST can't substitute safely
  24644. pseudos with equivalent memory values during register allocation.
  24645. The default version of this target hook returns 'false'. On most
  24646. machines, this default should be used. For generally machines with
  24647. non orthogonal register usage for addressing, such as SH, this hook
  24648. can be used to avoid excessive spilling.
  24649. -- Target Hook: bool TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT (rtx *DISP,
  24650. rtx *OFFSET, machine_mode MODE)
  24651. A target hook which returns 'true' if *DISP is legitimezed to valid
  24652. address displacement with subtracting *OFFSET at memory mode MODE.
  24653. The default version of this target hook returns 'false'. This hook
  24654. will benefit machines with limited base plus displacement
  24655. addressing.
  24656. -- Target Hook: reg_class_t TARGET_SPILL_CLASS (reg_class_t,
  24657. MACHINE_MODE)
  24658. This hook defines a class of registers which could be used for
  24659. spilling pseudos of the given mode and class, or 'NO_REGS' if only
  24660. memory should be used. Not defining this hook is equivalent to
  24661. returning 'NO_REGS' for all inputs.
  24662. -- Target Hook: bool TARGET_ADDITIONAL_ALLOCNO_CLASS_P (reg_class_t)
  24663. This hook should return 'true' if given class of registers should
  24664. be an allocno class in any way. Usually RA uses only one register
  24665. class from all classes containing the same register set. In some
  24666. complicated cases, you need to have two or more such classes as
  24667. allocno ones for RA correct work. Not defining this hook is
  24668. equivalent to returning 'false' for all inputs.
  24669. -- Target Hook: machine_mode TARGET_CSTORE_MODE (enum insn_code ICODE)
  24670. This hook defines the machine mode to use for the boolean result of
  24671. conditional store patterns. The ICODE argument is the instruction
  24672. code for the cstore being performed. Not definiting this hook is
  24673. the same as accepting the mode encoded into operand 0 of the cstore
  24674. expander patterns.
  24675. -- Target Hook: int TARGET_COMPUTE_PRESSURE_CLASSES (enum reg_class
  24676. *PRESSURE_CLASSES)
  24677. A target hook which lets a backend compute the set of pressure
  24678. classes to be used by those optimization passes which take register
  24679. pressure into account, as opposed to letting IRA compute them. It
  24680. returns the number of register classes stored in the array
  24681. PRESSURE_CLASSES.
  24682. 
  24683. File: gccint.info, Node: Stack and Calling, Next: Varargs, Prev: Register Classes, Up: Target Macros
  24684. 17.9 Stack Layout and Calling Conventions
  24685. =========================================
  24686. This describes the stack layout and calling conventions.
  24687. * Menu:
  24688. * Frame Layout::
  24689. * Exception Handling::
  24690. * Stack Checking::
  24691. * Frame Registers::
  24692. * Elimination::
  24693. * Stack Arguments::
  24694. * Register Arguments::
  24695. * Scalar Return::
  24696. * Aggregate Return::
  24697. * Caller Saves::
  24698. * Function Entry::
  24699. * Profiling::
  24700. * Tail Calls::
  24701. * Shrink-wrapping separate components::
  24702. * Stack Smashing Protection::
  24703. * Miscellaneous Register Hooks::
  24704. 
  24705. File: gccint.info, Node: Frame Layout, Next: Exception Handling, Up: Stack and Calling
  24706. 17.9.1 Basic Stack Layout
  24707. -------------------------
  24708. Here is the basic stack layout.
  24709. -- Macro: STACK_GROWS_DOWNWARD
  24710. Define this macro to be true if pushing a word onto the stack moves
  24711. the stack pointer to a smaller address, and false otherwise.
  24712. -- Macro: STACK_PUSH_CODE
  24713. This macro defines the operation used when something is pushed on
  24714. the stack. In RTL, a push operation will be '(set (mem
  24715. (STACK_PUSH_CODE (reg sp))) ...)'
  24716. The choices are 'PRE_DEC', 'POST_DEC', 'PRE_INC', and 'POST_INC'.
  24717. Which of these is correct depends on the stack direction and on
  24718. whether the stack pointer points to the last item on the stack or
  24719. whether it points to the space for the next item on the stack.
  24720. The default is 'PRE_DEC' when 'STACK_GROWS_DOWNWARD' is true, which
  24721. is almost always right, and 'PRE_INC' otherwise, which is often
  24722. wrong.
  24723. -- Macro: FRAME_GROWS_DOWNWARD
  24724. Define this macro to nonzero value if the addresses of local
  24725. variable slots are at negative offsets from the frame pointer.
  24726. -- Macro: ARGS_GROW_DOWNWARD
  24727. Define this macro if successive arguments to a function occupy
  24728. decreasing addresses on the stack.
  24729. -- Macro: STARTING_FRAME_OFFSET
  24730. Offset from the frame pointer to the first local variable slot to
  24731. be allocated.
  24732. If 'FRAME_GROWS_DOWNWARD', find the next slot's offset by
  24733. subtracting the first slot's length from 'STARTING_FRAME_OFFSET'.
  24734. Otherwise, it is found by adding the length of the first slot to
  24735. the value 'STARTING_FRAME_OFFSET'.
  24736. -- Macro: STACK_ALIGNMENT_NEEDED
  24737. Define to zero to disable final alignment of the stack during
  24738. reload. The nonzero default for this macro is suitable for most
  24739. ports.
  24740. On ports where 'STARTING_FRAME_OFFSET' is nonzero or where there is
  24741. a register save block following the local block that doesn't
  24742. require alignment to 'STACK_BOUNDARY', it may be beneficial to
  24743. disable stack alignment and do it in the backend.
  24744. -- Macro: STACK_POINTER_OFFSET
  24745. Offset from the stack pointer register to the first location at
  24746. which outgoing arguments are placed. If not specified, the default
  24747. value of zero is used. This is the proper value for most machines.
  24748. If 'ARGS_GROW_DOWNWARD', this is the offset to the location above
  24749. the first location at which outgoing arguments are placed.
  24750. -- Macro: FIRST_PARM_OFFSET (FUNDECL)
  24751. Offset from the argument pointer register to the first argument's
  24752. address. On some machines it may depend on the data type of the
  24753. function.
  24754. If 'ARGS_GROW_DOWNWARD', this is the offset to the location above
  24755. the first argument's address.
  24756. -- Macro: STACK_DYNAMIC_OFFSET (FUNDECL)
  24757. Offset from the stack pointer register to an item dynamically
  24758. allocated on the stack, e.g., by 'alloca'.
  24759. The default value for this macro is 'STACK_POINTER_OFFSET' plus the
  24760. length of the outgoing arguments. The default is correct for most
  24761. machines. See 'function.c' for details.
  24762. -- Macro: INITIAL_FRAME_ADDRESS_RTX
  24763. A C expression whose value is RTL representing the address of the
  24764. initial stack frame. This address is passed to 'RETURN_ADDR_RTX'
  24765. and 'DYNAMIC_CHAIN_ADDRESS'. If you don't define this macro, a
  24766. reasonable default value will be used. Define this macro in order
  24767. to make frame pointer elimination work in the presence of
  24768. '__builtin_frame_address (count)' and '__builtin_return_address
  24769. (count)' for 'count' not equal to zero.
  24770. -- Macro: DYNAMIC_CHAIN_ADDRESS (FRAMEADDR)
  24771. A C expression whose value is RTL representing the address in a
  24772. stack frame where the pointer to the caller's frame is stored.
  24773. Assume that FRAMEADDR is an RTL expression for the address of the
  24774. stack frame itself.
  24775. If you don't define this macro, the default is to return the value
  24776. of FRAMEADDR--that is, the stack frame address is also the address
  24777. of the stack word that points to the previous frame.
  24778. -- Macro: SETUP_FRAME_ADDRESSES
  24779. A C expression that produces the machine-specific code to setup the
  24780. stack so that arbitrary frames can be accessed. For example, on
  24781. the SPARC, we must flush all of the register windows to the stack
  24782. before we can access arbitrary stack frames. You will seldom need
  24783. to define this macro. The default is to do nothing.
  24784. -- Target Hook: rtx TARGET_BUILTIN_SETJMP_FRAME_VALUE (void)
  24785. This target hook should return an rtx that is used to store the
  24786. address of the current frame into the built in 'setjmp' buffer.
  24787. The default value, 'virtual_stack_vars_rtx', is correct for most
  24788. machines. One reason you may need to define this target hook is if
  24789. 'hard_frame_pointer_rtx' is the appropriate value on your machine.
  24790. -- Macro: FRAME_ADDR_RTX (FRAMEADDR)
  24791. A C expression whose value is RTL representing the value of the
  24792. frame address for the current frame. FRAMEADDR is the frame
  24793. pointer of the current frame. This is used for
  24794. __builtin_frame_address. You need only define this macro if the
  24795. frame address is not the same as the frame pointer. Most machines
  24796. do not need to define it.
  24797. -- Macro: RETURN_ADDR_RTX (COUNT, FRAMEADDR)
  24798. A C expression whose value is RTL representing the value of the
  24799. return address for the frame COUNT steps up from the current frame,
  24800. after the prologue. FRAMEADDR is the frame pointer of the COUNT
  24801. frame, or the frame pointer of the COUNT - 1 frame if
  24802. 'RETURN_ADDR_IN_PREVIOUS_FRAME' is nonzero.
  24803. The value of the expression must always be the correct address when
  24804. COUNT is zero, but may be 'NULL_RTX' if there is no way to
  24805. determine the return address of other frames.
  24806. -- Macro: RETURN_ADDR_IN_PREVIOUS_FRAME
  24807. Define this macro to nonzero value if the return address of a
  24808. particular stack frame is accessed from the frame pointer of the
  24809. previous stack frame. The zero default for this macro is suitable
  24810. for most ports.
  24811. -- Macro: INCOMING_RETURN_ADDR_RTX
  24812. A C expression whose value is RTL representing the location of the
  24813. incoming return address at the beginning of any function, before
  24814. the prologue. This RTL is either a 'REG', indicating that the
  24815. return value is saved in 'REG', or a 'MEM' representing a location
  24816. in the stack.
  24817. You only need to define this macro if you want to support call
  24818. frame debugging information like that provided by DWARF 2.
  24819. If this RTL is a 'REG', you should also define
  24820. 'DWARF_FRAME_RETURN_COLUMN' to 'DWARF_FRAME_REGNUM (REGNO)'.
  24821. -- Macro: DWARF_ALT_FRAME_RETURN_COLUMN
  24822. A C expression whose value is an integer giving a DWARF 2 column
  24823. number that may be used as an alternative return column. The
  24824. column must not correspond to any gcc hard register (that is, it
  24825. must not be in the range of 'DWARF_FRAME_REGNUM').
  24826. This macro can be useful if 'DWARF_FRAME_RETURN_COLUMN' is set to a
  24827. general register, but an alternative column needs to be used for
  24828. signal frames. Some targets have also used different frame return
  24829. columns over time.
  24830. -- Macro: DWARF_ZERO_REG
  24831. A C expression whose value is an integer giving a DWARF 2 register
  24832. number that is considered to always have the value zero. This
  24833. should only be defined if the target has an architected zero
  24834. register, and someone decided it was a good idea to use that
  24835. register number to terminate the stack backtrace. New ports should
  24836. avoid this.
  24837. -- Target Hook: void TARGET_DWARF_HANDLE_FRAME_UNSPEC (const char
  24838. *LABEL, rtx PATTERN, int INDEX)
  24839. This target hook allows the backend to emit frame-related insns
  24840. that contain UNSPECs or UNSPEC_VOLATILEs. The DWARF 2 call frame
  24841. debugging info engine will invoke it on insns of the form
  24842. (set (reg) (unspec [...] UNSPEC_INDEX))
  24843. and
  24844. (set (reg) (unspec_volatile [...] UNSPECV_INDEX)).
  24845. to let the backend emit the call frame instructions. LABEL is the
  24846. CFI label attached to the insn, PATTERN is the pattern of the insn
  24847. and INDEX is 'UNSPEC_INDEX' or 'UNSPECV_INDEX'.
  24848. -- Macro: INCOMING_FRAME_SP_OFFSET
  24849. A C expression whose value is an integer giving the offset, in
  24850. bytes, from the value of the stack pointer register to the top of
  24851. the stack frame at the beginning of any function, before the
  24852. prologue. The top of the frame is defined to be the value of the
  24853. stack pointer in the previous frame, just before the call
  24854. instruction.
  24855. You only need to define this macro if you want to support call
  24856. frame debugging information like that provided by DWARF 2.
  24857. -- Macro: ARG_POINTER_CFA_OFFSET (FUNDECL)
  24858. A C expression whose value is an integer giving the offset, in
  24859. bytes, from the argument pointer to the canonical frame address
  24860. (cfa). The final value should coincide with that calculated by
  24861. 'INCOMING_FRAME_SP_OFFSET'. Which is unfortunately not usable
  24862. during virtual register instantiation.
  24863. The default value for this macro is 'FIRST_PARM_OFFSET (fundecl) +
  24864. crtl->args.pretend_args_size', which is correct for most machines;
  24865. in general, the arguments are found immediately before the stack
  24866. frame. Note that this is not the case on some targets that save
  24867. registers into the caller's frame, such as SPARC and rs6000, and so
  24868. such targets need to define this macro.
  24869. You only need to define this macro if the default is incorrect, and
  24870. you want to support call frame debugging information like that
  24871. provided by DWARF 2.
  24872. -- Macro: FRAME_POINTER_CFA_OFFSET (FUNDECL)
  24873. If defined, a C expression whose value is an integer giving the
  24874. offset in bytes from the frame pointer to the canonical frame
  24875. address (cfa). The final value should coincide with that
  24876. calculated by 'INCOMING_FRAME_SP_OFFSET'.
  24877. Normally the CFA is calculated as an offset from the argument
  24878. pointer, via 'ARG_POINTER_CFA_OFFSET', but if the argument pointer
  24879. is variable due to the ABI, this may not be possible. If this
  24880. macro is defined, it implies that the virtual register
  24881. instantiation should be based on the frame pointer instead of the
  24882. argument pointer. Only one of 'FRAME_POINTER_CFA_OFFSET' and
  24883. 'ARG_POINTER_CFA_OFFSET' should be defined.
  24884. -- Macro: CFA_FRAME_BASE_OFFSET (FUNDECL)
  24885. If defined, a C expression whose value is an integer giving the
  24886. offset in bytes from the canonical frame address (cfa) to the frame
  24887. base used in DWARF 2 debug information. The default is zero. A
  24888. different value may reduce the size of debug information on some
  24889. ports.
  24890. 
  24891. File: gccint.info, Node: Exception Handling, Next: Stack Checking, Prev: Frame Layout, Up: Stack and Calling
  24892. 17.9.2 Exception Handling Support
  24893. ---------------------------------
  24894. -- Macro: EH_RETURN_DATA_REGNO (N)
  24895. A C expression whose value is the Nth register number used for data
  24896. by exception handlers, or 'INVALID_REGNUM' if fewer than N
  24897. registers are usable.
  24898. The exception handling library routines communicate with the
  24899. exception handlers via a set of agreed upon registers. Ideally
  24900. these registers should be call-clobbered; it is possible to use
  24901. call-saved registers, but may negatively impact code size. The
  24902. target must support at least 2 data registers, but should define 4
  24903. if there are enough free registers.
  24904. You must define this macro if you want to support call frame
  24905. exception handling like that provided by DWARF 2.
  24906. -- Macro: EH_RETURN_STACKADJ_RTX
  24907. A C expression whose value is RTL representing a location in which
  24908. to store a stack adjustment to be applied before function return.
  24909. This is used to unwind the stack to an exception handler's call
  24910. frame. It will be assigned zero on code paths that return
  24911. normally.
  24912. Typically this is a call-clobbered hard register that is otherwise
  24913. untouched by the epilogue, but could also be a stack slot.
  24914. Do not define this macro if the stack pointer is saved and restored
  24915. by the regular prolog and epilog code in the call frame itself; in
  24916. this case, the exception handling library routines will update the
  24917. stack location to be restored in place. Otherwise, you must define
  24918. this macro if you want to support call frame exception handling
  24919. like that provided by DWARF 2.
  24920. -- Macro: EH_RETURN_HANDLER_RTX
  24921. A C expression whose value is RTL representing a location in which
  24922. to store the address of an exception handler to which we should
  24923. return. It will not be assigned on code paths that return
  24924. normally.
  24925. Typically this is the location in the call frame at which the
  24926. normal return address is stored. For targets that return by
  24927. popping an address off the stack, this might be a memory address
  24928. just below the _target_ call frame rather than inside the current
  24929. call frame. If defined, 'EH_RETURN_STACKADJ_RTX' will have already
  24930. been assigned, so it may be used to calculate the location of the
  24931. target call frame.
  24932. Some targets have more complex requirements than storing to an
  24933. address calculable during initial code generation. In that case
  24934. the 'eh_return' instruction pattern should be used instead.
  24935. If you want to support call frame exception handling, you must
  24936. define either this macro or the 'eh_return' instruction pattern.
  24937. -- Macro: RETURN_ADDR_OFFSET
  24938. If defined, an integer-valued C expression for which rtl will be
  24939. generated to add it to the exception handler address before it is
  24940. searched in the exception handling tables, and to subtract it again
  24941. from the address before using it to return to the exception
  24942. handler.
  24943. -- Macro: ASM_PREFERRED_EH_DATA_FORMAT (CODE, GLOBAL)
  24944. This macro chooses the encoding of pointers embedded in the
  24945. exception handling sections. If at all possible, this should be
  24946. defined such that the exception handling section will not require
  24947. dynamic relocations, and so may be read-only.
  24948. CODE is 0 for data, 1 for code labels, 2 for function pointers.
  24949. GLOBAL is true if the symbol may be affected by dynamic
  24950. relocations. The macro should return a combination of the
  24951. 'DW_EH_PE_*' defines as found in 'dwarf2.h'.
  24952. If this macro is not defined, pointers will not be encoded but
  24953. represented directly.
  24954. -- Macro: ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX (FILE, ENCODING, SIZE,
  24955. ADDR, DONE)
  24956. This macro allows the target to emit whatever special magic is
  24957. required to represent the encoding chosen by
  24958. 'ASM_PREFERRED_EH_DATA_FORMAT'. Generic code takes care of
  24959. pc-relative and indirect encodings; this must be defined if the
  24960. target uses text-relative or data-relative encodings.
  24961. This is a C statement that branches to DONE if the format was
  24962. handled. ENCODING is the format chosen, SIZE is the number of
  24963. bytes that the format occupies, ADDR is the 'SYMBOL_REF' to be
  24964. emitted.
  24965. -- Macro: MD_FALLBACK_FRAME_STATE_FOR (CONTEXT, FS)
  24966. This macro allows the target to add CPU and operating system
  24967. specific code to the call-frame unwinder for use when there is no
  24968. unwind data available. The most common reason to implement this
  24969. macro is to unwind through signal frames.
  24970. This macro is called from 'uw_frame_state_for' in 'unwind-dw2.c',
  24971. 'unwind-dw2-xtensa.c' and 'unwind-ia64.c'. CONTEXT is an
  24972. '_Unwind_Context'; FS is an '_Unwind_FrameState'. Examine
  24973. 'context->ra' for the address of the code being executed and
  24974. 'context->cfa' for the stack pointer value. If the frame can be
  24975. decoded, the register save addresses should be updated in FS and
  24976. the macro should evaluate to '_URC_NO_REASON'. If the frame cannot
  24977. be decoded, the macro should evaluate to '_URC_END_OF_STACK'.
  24978. For proper signal handling in Java this macro is accompanied by
  24979. 'MAKE_THROW_FRAME', defined in 'libjava/include/*-signal.h'
  24980. headers.
  24981. -- Macro: MD_HANDLE_UNWABI (CONTEXT, FS)
  24982. This macro allows the target to add operating system specific code
  24983. to the call-frame unwinder to handle the IA-64 '.unwabi' unwinding
  24984. directive, usually used for signal or interrupt frames.
  24985. This macro is called from 'uw_update_context' in libgcc's
  24986. 'unwind-ia64.c'. CONTEXT is an '_Unwind_Context'; FS is an
  24987. '_Unwind_FrameState'. Examine 'fs->unwabi' for the abi and context
  24988. in the '.unwabi' directive. If the '.unwabi' directive can be
  24989. handled, the register save addresses should be updated in FS.
  24990. -- Macro: TARGET_USES_WEAK_UNWIND_INFO
  24991. A C expression that evaluates to true if the target requires unwind
  24992. info to be given comdat linkage. Define it to be '1' if comdat
  24993. linkage is necessary. The default is '0'.
  24994. 
  24995. File: gccint.info, Node: Stack Checking, Next: Frame Registers, Prev: Exception Handling, Up: Stack and Calling
  24996. 17.9.3 Specifying How Stack Checking is Done
  24997. --------------------------------------------
  24998. GCC will check that stack references are within the boundaries of the
  24999. stack, if the option '-fstack-check' is specified, in one of three ways:
  25000. 1. If the value of the 'STACK_CHECK_BUILTIN' macro is nonzero, GCC
  25001. will assume that you have arranged for full stack checking to be
  25002. done at appropriate places in the configuration files. GCC will
  25003. not do other special processing.
  25004. 2. If 'STACK_CHECK_BUILTIN' is zero and the value of the
  25005. 'STACK_CHECK_STATIC_BUILTIN' macro is nonzero, GCC will assume that
  25006. you have arranged for static stack checking (checking of the static
  25007. stack frame of functions) to be done at appropriate places in the
  25008. configuration files. GCC will only emit code to do dynamic stack
  25009. checking (checking on dynamic stack allocations) using the third
  25010. approach below.
  25011. 3. If neither of the above are true, GCC will generate code to
  25012. periodically "probe" the stack pointer using the values of the
  25013. macros defined below.
  25014. If neither STACK_CHECK_BUILTIN nor STACK_CHECK_STATIC_BUILTIN is
  25015. defined, GCC will change its allocation strategy for large objects if
  25016. the option '-fstack-check' is specified: they will always be allocated
  25017. dynamically if their size exceeds 'STACK_CHECK_MAX_VAR_SIZE' bytes.
  25018. -- Macro: STACK_CHECK_BUILTIN
  25019. A nonzero value if stack checking is done by the configuration
  25020. files in a machine-dependent manner. You should define this macro
  25021. if stack checking is required by the ABI of your machine or if you
  25022. would like to do stack checking in some more efficient way than the
  25023. generic approach. The default value of this macro is zero.
  25024. -- Macro: STACK_CHECK_STATIC_BUILTIN
  25025. A nonzero value if static stack checking is done by the
  25026. configuration files in a machine-dependent manner. You should
  25027. define this macro if you would like to do static stack checking in
  25028. some more efficient way than the generic approach. The default
  25029. value of this macro is zero.
  25030. -- Macro: STACK_CHECK_PROBE_INTERVAL_EXP
  25031. An integer specifying the interval at which GCC must generate stack
  25032. probe instructions, defined as 2 raised to this integer. You will
  25033. normally define this macro so that the interval be no larger than
  25034. the size of the "guard pages" at the end of a stack area. The
  25035. default value of 12 (4096-byte interval) is suitable for most
  25036. systems.
  25037. -- Macro: STACK_CHECK_MOVING_SP
  25038. An integer which is nonzero if GCC should move the stack pointer
  25039. page by page when doing probes. This can be necessary on systems
  25040. where the stack pointer contains the bottom address of the memory
  25041. area accessible to the executing thread at any point in time. In
  25042. this situation an alternate signal stack is required in order to be
  25043. able to recover from a stack overflow. The default value of this
  25044. macro is zero.
  25045. -- Macro: STACK_CHECK_PROTECT
  25046. The number of bytes of stack needed to recover from a stack
  25047. overflow, for languages where such a recovery is supported. The
  25048. default value of 4KB/8KB with the 'setjmp'/'longjmp'-based
  25049. exception handling mechanism and 8KB/12KB with other exception
  25050. handling mechanisms should be adequate for most architectures and
  25051. operating systems.
  25052. The following macros are relevant only if neither STACK_CHECK_BUILTIN
  25053. nor STACK_CHECK_STATIC_BUILTIN is defined; you can omit them altogether
  25054. in the opposite case.
  25055. -- Macro: STACK_CHECK_MAX_FRAME_SIZE
  25056. The maximum size of a stack frame, in bytes. GCC will generate
  25057. probe instructions in non-leaf functions to ensure at least this
  25058. many bytes of stack are available. If a stack frame is larger than
  25059. this size, stack checking will not be reliable and GCC will issue a
  25060. warning. The default is chosen so that GCC only generates one
  25061. instruction on most systems. You should normally not change the
  25062. default value of this macro.
  25063. -- Macro: STACK_CHECK_FIXED_FRAME_SIZE
  25064. GCC uses this value to generate the above warning message. It
  25065. represents the amount of fixed frame used by a function, not
  25066. including space for any callee-saved registers, temporaries and
  25067. user variables. You need only specify an upper bound for this
  25068. amount and will normally use the default of four words.
  25069. -- Macro: STACK_CHECK_MAX_VAR_SIZE
  25070. The maximum size, in bytes, of an object that GCC will place in the
  25071. fixed area of the stack frame when the user specifies
  25072. '-fstack-check'. GCC computed the default from the values of the
  25073. above macros and you will normally not need to override that
  25074. default.
  25075. 
  25076. File: gccint.info, Node: Frame Registers, Next: Elimination, Prev: Stack Checking, Up: Stack and Calling
  25077. 17.9.4 Registers That Address the Stack Frame
  25078. ---------------------------------------------
  25079. This discusses registers that address the stack frame.
  25080. -- Macro: STACK_POINTER_REGNUM
  25081. The register number of the stack pointer register, which must also
  25082. be a fixed register according to 'FIXED_REGISTERS'. On most
  25083. machines, the hardware determines which register this is.
  25084. -- Macro: FRAME_POINTER_REGNUM
  25085. The register number of the frame pointer register, which is used to
  25086. access automatic variables in the stack frame. On some machines,
  25087. the hardware determines which register this is. On other machines,
  25088. you can choose any register you wish for this purpose.
  25089. -- Macro: HARD_FRAME_POINTER_REGNUM
  25090. On some machines the offset between the frame pointer and starting
  25091. offset of the automatic variables is not known until after register
  25092. allocation has been done (for example, because the saved registers
  25093. are between these two locations). On those machines, define
  25094. 'FRAME_POINTER_REGNUM' the number of a special, fixed register to
  25095. be used internally until the offset is known, and define
  25096. 'HARD_FRAME_POINTER_REGNUM' to be the actual hard register number
  25097. used for the frame pointer.
  25098. You should define this macro only in the very rare circumstances
  25099. when it is not possible to calculate the offset between the frame
  25100. pointer and the automatic variables until after register allocation
  25101. has been completed. When this macro is defined, you must also
  25102. indicate in your definition of 'ELIMINABLE_REGS' how to eliminate
  25103. 'FRAME_POINTER_REGNUM' into either 'HARD_FRAME_POINTER_REGNUM' or
  25104. 'STACK_POINTER_REGNUM'.
  25105. Do not define this macro if it would be the same as
  25106. 'FRAME_POINTER_REGNUM'.
  25107. -- Macro: ARG_POINTER_REGNUM
  25108. The register number of the arg pointer register, which is used to
  25109. access the function's argument list. On some machines, this is the
  25110. same as the frame pointer register. On some machines, the hardware
  25111. determines which register this is. On other machines, you can
  25112. choose any register you wish for this purpose. If this is not the
  25113. same register as the frame pointer register, then you must mark it
  25114. as a fixed register according to 'FIXED_REGISTERS', or arrange to
  25115. be able to eliminate it (*note Elimination::).
  25116. -- Macro: HARD_FRAME_POINTER_IS_FRAME_POINTER
  25117. Define this to a preprocessor constant that is nonzero if
  25118. 'hard_frame_pointer_rtx' and 'frame_pointer_rtx' should be the
  25119. same. The default definition is '(HARD_FRAME_POINTER_REGNUM ==
  25120. FRAME_POINTER_REGNUM)'; you only need to define this macro if that
  25121. definition is not suitable for use in preprocessor conditionals.
  25122. -- Macro: HARD_FRAME_POINTER_IS_ARG_POINTER
  25123. Define this to a preprocessor constant that is nonzero if
  25124. 'hard_frame_pointer_rtx' and 'arg_pointer_rtx' should be the same.
  25125. The default definition is '(HARD_FRAME_POINTER_REGNUM ==
  25126. ARG_POINTER_REGNUM)'; you only need to define this macro if that
  25127. definition is not suitable for use in preprocessor conditionals.
  25128. -- Macro: RETURN_ADDRESS_POINTER_REGNUM
  25129. The register number of the return address pointer register, which
  25130. is used to access the current function's return address from the
  25131. stack. On some machines, the return address is not at a fixed
  25132. offset from the frame pointer or stack pointer or argument pointer.
  25133. This register can be defined to point to the return address on the
  25134. stack, and then be converted by 'ELIMINABLE_REGS' into either the
  25135. frame pointer or stack pointer.
  25136. Do not define this macro unless there is no other way to get the
  25137. return address from the stack.
  25138. -- Macro: STATIC_CHAIN_REGNUM
  25139. -- Macro: STATIC_CHAIN_INCOMING_REGNUM
  25140. Register numbers used for passing a function's static chain
  25141. pointer. If register windows are used, the register number as seen
  25142. by the called function is 'STATIC_CHAIN_INCOMING_REGNUM', while the
  25143. register number as seen by the calling function is
  25144. 'STATIC_CHAIN_REGNUM'. If these registers are the same,
  25145. 'STATIC_CHAIN_INCOMING_REGNUM' need not be defined.
  25146. The static chain register need not be a fixed register.
  25147. If the static chain is passed in memory, these macros should not be
  25148. defined; instead, the 'TARGET_STATIC_CHAIN' hook should be used.
  25149. -- Target Hook: rtx TARGET_STATIC_CHAIN (const_tree FNDECL_OR_TYPE,
  25150. bool INCOMING_P)
  25151. This hook replaces the use of 'STATIC_CHAIN_REGNUM' et al for
  25152. targets that may use different static chain locations for different
  25153. nested functions. This may be required if the target has function
  25154. attributes that affect the calling conventions of the function and
  25155. those calling conventions use different static chain locations.
  25156. The default version of this hook uses 'STATIC_CHAIN_REGNUM' et al.
  25157. If the static chain is passed in memory, this hook should be used
  25158. to provide rtx giving 'mem' expressions that denote where they are
  25159. stored. Often the 'mem' expression as seen by the caller will be
  25160. at an offset from the stack pointer and the 'mem' expression as
  25161. seen by the callee will be at an offset from the frame pointer.
  25162. The variables 'stack_pointer_rtx', 'frame_pointer_rtx', and
  25163. 'arg_pointer_rtx' will have been initialized and should be used to
  25164. refer to those items.
  25165. -- Macro: DWARF_FRAME_REGISTERS
  25166. This macro specifies the maximum number of hard registers that can
  25167. be saved in a call frame. This is used to size data structures
  25168. used in DWARF2 exception handling.
  25169. Prior to GCC 3.0, this macro was needed in order to establish a
  25170. stable exception handling ABI in the face of adding new hard
  25171. registers for ISA extensions. In GCC 3.0 and later, the EH ABI is
  25172. insulated from changes in the number of hard registers.
  25173. Nevertheless, this macro can still be used to reduce the runtime
  25174. memory requirements of the exception handling routines, which can
  25175. be substantial if the ISA contains a lot of registers that are not
  25176. call-saved.
  25177. If this macro is not defined, it defaults to
  25178. 'FIRST_PSEUDO_REGISTER'.
  25179. -- Macro: PRE_GCC3_DWARF_FRAME_REGISTERS
  25180. This macro is similar to 'DWARF_FRAME_REGISTERS', but is provided
  25181. for backward compatibility in pre GCC 3.0 compiled code.
  25182. If this macro is not defined, it defaults to
  25183. 'DWARF_FRAME_REGISTERS'.
  25184. -- Macro: DWARF_REG_TO_UNWIND_COLUMN (REGNO)
  25185. Define this macro if the target's representation for dwarf
  25186. registers is different than the internal representation for unwind
  25187. column. Given a dwarf register, this macro should return the
  25188. internal unwind column number to use instead.
  25189. See the PowerPC's SPE target for an example.
  25190. -- Macro: DWARF_FRAME_REGNUM (REGNO)
  25191. Define this macro if the target's representation for dwarf
  25192. registers used in .eh_frame or .debug_frame is different from that
  25193. used in other debug info sections. Given a GCC hard register
  25194. number, this macro should return the .eh_frame register number.
  25195. The default is 'DBX_REGISTER_NUMBER (REGNO)'.
  25196. -- Macro: DWARF2_FRAME_REG_OUT (REGNO, FOR_EH)
  25197. Define this macro to map register numbers held in the call frame
  25198. info that GCC has collected using 'DWARF_FRAME_REGNUM' to those
  25199. that should be output in .debug_frame ('FOR_EH' is zero) and
  25200. .eh_frame ('FOR_EH' is nonzero). The default is to return 'REGNO'.
  25201. -- Macro: REG_VALUE_IN_UNWIND_CONTEXT
  25202. Define this macro if the target stores register values as
  25203. '_Unwind_Word' type in unwind context. It should be defined if
  25204. target register size is larger than the size of 'void *'. The
  25205. default is to store register values as 'void *' type.
  25206. -- Macro: ASSUME_EXTENDED_UNWIND_CONTEXT
  25207. Define this macro to be 1 if the target always uses extended unwind
  25208. context with version, args_size and by_value fields. If it is
  25209. undefined, it will be defined to 1 when
  25210. 'REG_VALUE_IN_UNWIND_CONTEXT' is defined and 0 otherwise.
  25211. 
  25212. File: gccint.info, Node: Elimination, Next: Stack Arguments, Prev: Frame Registers, Up: Stack and Calling
  25213. 17.9.5 Eliminating Frame Pointer and Arg Pointer
  25214. ------------------------------------------------
  25215. This is about eliminating the frame pointer and arg pointer.
  25216. -- Target Hook: bool TARGET_FRAME_POINTER_REQUIRED (void)
  25217. This target hook should return 'true' if a function must have and
  25218. use a frame pointer. This target hook is called in the reload
  25219. pass. If its return value is 'true' the function will have a frame
  25220. pointer.
  25221. This target hook can in principle examine the current function and
  25222. decide according to the facts, but on most machines the constant
  25223. 'false' or the constant 'true' suffices. Use 'false' when the
  25224. machine allows code to be generated with no frame pointer, and
  25225. doing so saves some time or space. Use 'true' when there is no
  25226. possible advantage to avoiding a frame pointer.
  25227. In certain cases, the compiler does not know how to produce valid
  25228. code without a frame pointer. The compiler recognizes those cases
  25229. and automatically gives the function a frame pointer regardless of
  25230. what 'targetm.frame_pointer_required' returns. You don't need to
  25231. worry about them.
  25232. In a function that does not require a frame pointer, the frame
  25233. pointer register can be allocated for ordinary usage, unless you
  25234. mark it as a fixed register. See 'FIXED_REGISTERS' for more
  25235. information.
  25236. Default return value is 'false'.
  25237. -- Macro: ELIMINABLE_REGS
  25238. This macro specifies a table of register pairs used to eliminate
  25239. unneeded registers that point into the stack frame.
  25240. The definition of this macro is a list of structure
  25241. initializations, each of which specifies an original and
  25242. replacement register.
  25243. On some machines, the position of the argument pointer is not known
  25244. until the compilation is completed. In such a case, a separate
  25245. hard register must be used for the argument pointer. This register
  25246. can be eliminated by replacing it with either the frame pointer or
  25247. the argument pointer, depending on whether or not the frame pointer
  25248. has been eliminated.
  25249. In this case, you might specify:
  25250. #define ELIMINABLE_REGS \
  25251. {{ARG_POINTER_REGNUM, STACK_POINTER_REGNUM}, \
  25252. {ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM}, \
  25253. {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}}
  25254. Note that the elimination of the argument pointer with the stack
  25255. pointer is specified first since that is the preferred elimination.
  25256. -- Target Hook: bool TARGET_CAN_ELIMINATE (const int FROM_REG, const
  25257. int TO_REG)
  25258. This target hook should return 'true' if the compiler is allowed to
  25259. try to replace register number FROM_REG with register number
  25260. TO_REG. This target hook will usually be 'true', since most of the
  25261. cases preventing register elimination are things that the compiler
  25262. already knows about.
  25263. Default return value is 'true'.
  25264. -- Macro: INITIAL_ELIMINATION_OFFSET (FROM-REG, TO-REG, OFFSET-VAR)
  25265. This macro returns the initial difference between the specified
  25266. pair of registers. The value would be computed from information
  25267. such as the result of 'get_frame_size ()' and the tables of
  25268. registers 'df_regs_ever_live_p' and 'call_used_regs'.
  25269. -- Target Hook: void TARGET_COMPUTE_FRAME_LAYOUT (void)
  25270. This target hook is called once each time the frame layout needs to
  25271. be recalculated. The calculations can be cached by the target and
  25272. can then be used by 'INITIAL_ELIMINATION_OFFSET' instead of
  25273. re-computing the layout on every invocation of that hook. This is
  25274. particularly useful for targets that have an expensive frame layout
  25275. function. Implementing this callback is optional.
  25276. 
  25277. File: gccint.info, Node: Stack Arguments, Next: Register Arguments, Prev: Elimination, Up: Stack and Calling
  25278. 17.9.6 Passing Function Arguments on the Stack
  25279. ----------------------------------------------
  25280. The macros in this section control how arguments are passed on the
  25281. stack. See the following section for other macros that control passing
  25282. certain arguments in registers.
  25283. -- Target Hook: bool TARGET_PROMOTE_PROTOTYPES (const_tree FNTYPE)
  25284. This target hook returns 'true' if an argument declared in a
  25285. prototype as an integral type smaller than 'int' should actually be
  25286. passed as an 'int'. In addition to avoiding errors in certain
  25287. cases of mismatch, it also makes for better code on certain
  25288. machines. The default is to not promote prototypes.
  25289. -- Macro: PUSH_ARGS
  25290. A C expression. If nonzero, push insns will be used to pass
  25291. outgoing arguments. If the target machine does not have a push
  25292. instruction, set it to zero. That directs GCC to use an alternate
  25293. strategy: to allocate the entire argument block and then store the
  25294. arguments into it. When 'PUSH_ARGS' is nonzero, 'PUSH_ROUNDING'
  25295. must be defined too.
  25296. -- Macro: PUSH_ARGS_REVERSED
  25297. A C expression. If nonzero, function arguments will be evaluated
  25298. from last to first, rather than from first to last. If this macro
  25299. is not defined, it defaults to 'PUSH_ARGS' on targets where the
  25300. stack and args grow in opposite directions, and 0 otherwise.
  25301. -- Macro: PUSH_ROUNDING (NPUSHED)
  25302. A C expression that is the number of bytes actually pushed onto the
  25303. stack when an instruction attempts to push NPUSHED bytes.
  25304. On some machines, the definition
  25305. #define PUSH_ROUNDING(BYTES) (BYTES)
  25306. will suffice. But on other machines, instructions that appear to
  25307. push one byte actually push two bytes in an attempt to maintain
  25308. alignment. Then the definition should be
  25309. #define PUSH_ROUNDING(BYTES) (((BYTES) + 1) & ~1)
  25310. If the value of this macro has a type, it should be an unsigned
  25311. type.
  25312. -- Macro: ACCUMULATE_OUTGOING_ARGS
  25313. A C expression. If nonzero, the maximum amount of space required
  25314. for outgoing arguments will be computed and placed into
  25315. 'crtl->outgoing_args_size'. No space will be pushed onto the stack
  25316. for each call; instead, the function prologue should increase the
  25317. stack frame size by this amount.
  25318. Setting both 'PUSH_ARGS' and 'ACCUMULATE_OUTGOING_ARGS' is not
  25319. proper.
  25320. -- Macro: REG_PARM_STACK_SPACE (FNDECL)
  25321. Define this macro if functions should assume that stack space has
  25322. been allocated for arguments even when their values are passed in
  25323. registers.
  25324. The value of this macro is the size, in bytes, of the area reserved
  25325. for arguments passed in registers for the function represented by
  25326. FNDECL, which can be zero if GCC is calling a library function.
  25327. The argument FNDECL can be the FUNCTION_DECL, or the type itself of
  25328. the function.
  25329. This space can be allocated by the caller, or be a part of the
  25330. machine-dependent stack frame: 'OUTGOING_REG_PARM_STACK_SPACE' says
  25331. which.
  25332. -- Macro: INCOMING_REG_PARM_STACK_SPACE (FNDECL)
  25333. Like 'REG_PARM_STACK_SPACE', but for incoming register arguments.
  25334. Define this macro if space guaranteed when compiling a function
  25335. body is different to space required when making a call, a situation
  25336. that can arise with K&R style function definitions.
  25337. -- Macro: OUTGOING_REG_PARM_STACK_SPACE (FNTYPE)
  25338. Define this to a nonzero value if it is the responsibility of the
  25339. caller to allocate the area reserved for arguments passed in
  25340. registers when calling a function of FNTYPE. FNTYPE may be NULL if
  25341. the function called is a library function.
  25342. If 'ACCUMULATE_OUTGOING_ARGS' is defined, this macro controls
  25343. whether the space for these arguments counts in the value of
  25344. 'crtl->outgoing_args_size'.
  25345. -- Macro: STACK_PARMS_IN_REG_PARM_AREA
  25346. Define this macro if 'REG_PARM_STACK_SPACE' is defined, but the
  25347. stack parameters don't skip the area specified by it.
  25348. Normally, when a parameter is not passed in registers, it is placed
  25349. on the stack beyond the 'REG_PARM_STACK_SPACE' area. Defining this
  25350. macro suppresses this behavior and causes the parameter to be
  25351. passed on the stack in its natural location.
  25352. -- Target Hook: int TARGET_RETURN_POPS_ARGS (tree FUNDECL, tree
  25353. FUNTYPE, int SIZE)
  25354. This target hook returns the number of bytes of its own arguments
  25355. that a function pops on returning, or 0 if the function pops no
  25356. arguments and the caller must therefore pop them all after the
  25357. function returns.
  25358. FUNDECL is a C variable whose value is a tree node that describes
  25359. the function in question. Normally it is a node of type
  25360. 'FUNCTION_DECL' that describes the declaration of the function.
  25361. From this you can obtain the 'DECL_ATTRIBUTES' of the function.
  25362. FUNTYPE is a C variable whose value is a tree node that describes
  25363. the function in question. Normally it is a node of type
  25364. 'FUNCTION_TYPE' that describes the data type of the function. From
  25365. this it is possible to obtain the data types of the value and
  25366. arguments (if known).
  25367. When a call to a library function is being considered, FUNDECL will
  25368. contain an identifier node for the library function. Thus, if you
  25369. need to distinguish among various library functions, you can do so
  25370. by their names. Note that "library function" in this context means
  25371. a function used to perform arithmetic, whose name is known
  25372. specially in the compiler and was not mentioned in the C code being
  25373. compiled.
  25374. SIZE is the number of bytes of arguments passed on the stack. If a
  25375. variable number of bytes is passed, it is zero, and argument
  25376. popping will always be the responsibility of the calling function.
  25377. On the VAX, all functions always pop their arguments, so the
  25378. definition of this macro is SIZE. On the 68000, using the standard
  25379. calling convention, no functions pop their arguments, so the value
  25380. of the macro is always 0 in this case. But an alternative calling
  25381. convention is available in which functions that take a fixed number
  25382. of arguments pop them but other functions (such as 'printf') pop
  25383. nothing (the caller pops all). When this convention is in use,
  25384. FUNTYPE is examined to determine whether a function takes a fixed
  25385. number of arguments.
  25386. -- Macro: CALL_POPS_ARGS (CUM)
  25387. A C expression that should indicate the number of bytes a call
  25388. sequence pops off the stack. It is added to the value of
  25389. 'RETURN_POPS_ARGS' when compiling a function call.
  25390. CUM is the variable in which all arguments to the called function
  25391. have been accumulated.
  25392. On certain architectures, such as the SH5, a call trampoline is
  25393. used that pops certain registers off the stack, depending on the
  25394. arguments that have been passed to the function. Since this is a
  25395. property of the call site, not of the called function,
  25396. 'RETURN_POPS_ARGS' is not appropriate.
  25397. 
  25398. File: gccint.info, Node: Register Arguments, Next: Scalar Return, Prev: Stack Arguments, Up: Stack and Calling
  25399. 17.9.7 Passing Arguments in Registers
  25400. -------------------------------------
  25401. This section describes the macros which let you control how various
  25402. types of arguments are passed in registers or how they are arranged in
  25403. the stack.
  25404. -- Target Hook: rtx TARGET_FUNCTION_ARG (cumulative_args_t CA,
  25405. machine_mode MODE, const_tree TYPE, bool NAMED)
  25406. Return an RTX indicating whether a function argument is passed in a
  25407. register and if so, which register.
  25408. The arguments are CA, which summarizes all the previous arguments;
  25409. MODE, the machine mode of the argument; TYPE, the data type of the
  25410. argument as a tree node or 0 if that is not known (which happens
  25411. for C support library functions); and NAMED, which is 'true' for an
  25412. ordinary argument and 'false' for nameless arguments that
  25413. correspond to '...' in the called function's prototype. TYPE can
  25414. be an incomplete type if a syntax error has previously occurred.
  25415. The return value is usually either a 'reg' RTX for the hard
  25416. register in which to pass the argument, or zero to pass the
  25417. argument on the stack.
  25418. The return value can be a 'const_int' which means argument is
  25419. passed in a target specific slot with specified number. Target
  25420. hooks should be used to store or load argument in such case. See
  25421. 'TARGET_STORE_BOUNDS_FOR_ARG' and 'TARGET_LOAD_BOUNDS_FOR_ARG' for
  25422. more information.
  25423. The value of the expression can also be a 'parallel' RTX. This is
  25424. used when an argument is passed in multiple locations. The mode of
  25425. the 'parallel' should be the mode of the entire argument. The
  25426. 'parallel' holds any number of 'expr_list' pairs; each one
  25427. describes where part of the argument is passed. In each
  25428. 'expr_list' the first operand must be a 'reg' RTX for the hard
  25429. register in which to pass this part of the argument, and the mode
  25430. of the register RTX indicates how large this part of the argument
  25431. is. The second operand of the 'expr_list' is a 'const_int' which
  25432. gives the offset in bytes into the entire argument of where this
  25433. part starts. As a special exception the first 'expr_list' in the
  25434. 'parallel' RTX may have a first operand of zero. This indicates
  25435. that the entire argument is also stored on the stack.
  25436. The last time this hook is called, it is called with 'MODE ==
  25437. VOIDmode', and its result is passed to the 'call' or 'call_value'
  25438. pattern as operands 2 and 3 respectively.
  25439. The usual way to make the ISO library 'stdarg.h' work on a machine
  25440. where some arguments are usually passed in registers, is to cause
  25441. nameless arguments to be passed on the stack instead. This is done
  25442. by making 'TARGET_FUNCTION_ARG' return 0 whenever NAMED is 'false'.
  25443. You may use the hook 'targetm.calls.must_pass_in_stack' in the
  25444. definition of this macro to determine if this argument is of a type
  25445. that must be passed in the stack. If 'REG_PARM_STACK_SPACE' is not
  25446. defined and 'TARGET_FUNCTION_ARG' returns nonzero for such an
  25447. argument, the compiler will abort. If 'REG_PARM_STACK_SPACE' is
  25448. defined, the argument will be computed in the stack and then loaded
  25449. into a register.
  25450. -- Target Hook: bool TARGET_MUST_PASS_IN_STACK (machine_mode MODE,
  25451. const_tree TYPE)
  25452. This target hook should return 'true' if we should not pass TYPE
  25453. solely in registers. The file 'expr.h' defines a definition that
  25454. is usually appropriate, refer to 'expr.h' for additional
  25455. documentation.
  25456. -- Target Hook: rtx TARGET_FUNCTION_INCOMING_ARG (cumulative_args_t CA,
  25457. machine_mode MODE, const_tree TYPE, bool NAMED)
  25458. Define this hook if the caller and callee on the target have
  25459. different views of where arguments are passed. Also define this
  25460. hook if there are functions that are never directly called, but are
  25461. invoked by the hardware and which have nonstandard calling
  25462. conventions.
  25463. In this case 'TARGET_FUNCTION_ARG' computes the register in which
  25464. the caller passes the value, and 'TARGET_FUNCTION_INCOMING_ARG'
  25465. should be defined in a similar fashion to tell the function being
  25466. called where the arguments will arrive.
  25467. 'TARGET_FUNCTION_INCOMING_ARG' can also return arbitrary address
  25468. computation using hard register, which can be forced into a
  25469. register, so that it can be used to pass special arguments.
  25470. If 'TARGET_FUNCTION_INCOMING_ARG' is not defined,
  25471. 'TARGET_FUNCTION_ARG' serves both purposes.
  25472. -- Target Hook: bool TARGET_USE_PSEUDO_PIC_REG (void)
  25473. This hook should return 1 in case pseudo register should be created
  25474. for pic_offset_table_rtx during function expand.
  25475. -- Target Hook: void TARGET_INIT_PIC_REG (void)
  25476. Perform a target dependent initialization of pic_offset_table_rtx.
  25477. This hook is called at the start of register allocation.
  25478. -- Target Hook: int TARGET_ARG_PARTIAL_BYTES (cumulative_args_t CUM,
  25479. machine_mode MODE, tree TYPE, bool NAMED)
  25480. This target hook returns the number of bytes at the beginning of an
  25481. argument that must be put in registers. The value must be zero for
  25482. arguments that are passed entirely in registers or that are
  25483. entirely pushed on the stack.
  25484. On some machines, certain arguments must be passed partially in
  25485. registers and partially in memory. On these machines, typically
  25486. the first few words of arguments are passed in registers, and the
  25487. rest on the stack. If a multi-word argument (a 'double' or a
  25488. structure) crosses that boundary, its first few words must be
  25489. passed in registers and the rest must be pushed. This macro tells
  25490. the compiler when this occurs, and how many bytes should go in
  25491. registers.
  25492. 'TARGET_FUNCTION_ARG' for these arguments should return the first
  25493. register to be used by the caller for this argument; likewise
  25494. 'TARGET_FUNCTION_INCOMING_ARG', for the called function.
  25495. -- Target Hook: bool TARGET_PASS_BY_REFERENCE (cumulative_args_t CUM,
  25496. machine_mode MODE, const_tree TYPE, bool NAMED)
  25497. This target hook should return 'true' if an argument at the
  25498. position indicated by CUM should be passed by reference. This
  25499. predicate is queried after target independent reasons for being
  25500. passed by reference, such as 'TREE_ADDRESSABLE (type)'.
  25501. If the hook returns true, a copy of that argument is made in memory
  25502. and a pointer to the argument is passed instead of the argument
  25503. itself. The pointer is passed in whatever way is appropriate for
  25504. passing a pointer to that type.
  25505. -- Target Hook: bool TARGET_CALLEE_COPIES (cumulative_args_t CUM,
  25506. machine_mode MODE, const_tree TYPE, bool NAMED)
  25507. The function argument described by the parameters to this hook is
  25508. known to be passed by reference. The hook should return true if
  25509. the function argument should be copied by the callee instead of
  25510. copied by the caller.
  25511. For any argument for which the hook returns true, if it can be
  25512. determined that the argument is not modified, then a copy need not
  25513. be generated.
  25514. The default version of this hook always returns false.
  25515. -- Macro: CUMULATIVE_ARGS
  25516. A C type for declaring a variable that is used as the first
  25517. argument of 'TARGET_FUNCTION_ARG' and other related values. For
  25518. some target machines, the type 'int' suffices and can hold the
  25519. number of bytes of argument so far.
  25520. There is no need to record in 'CUMULATIVE_ARGS' anything about the
  25521. arguments that have been passed on the stack. The compiler has
  25522. other variables to keep track of that. For target machines on
  25523. which all arguments are passed on the stack, there is no need to
  25524. store anything in 'CUMULATIVE_ARGS'; however, the data structure
  25525. must exist and should not be empty, so use 'int'.
  25526. -- Macro: OVERRIDE_ABI_FORMAT (FNDECL)
  25527. If defined, this macro is called before generating any code for a
  25528. function, but after the CFUN descriptor for the function has been
  25529. created. The back end may use this macro to update CFUN to reflect
  25530. an ABI other than that which would normally be used by default. If
  25531. the compiler is generating code for a compiler-generated function,
  25532. FNDECL may be 'NULL'.
  25533. -- Macro: INIT_CUMULATIVE_ARGS (CUM, FNTYPE, LIBNAME, FNDECL,
  25534. N_NAMED_ARGS)
  25535. A C statement (sans semicolon) for initializing the variable CUM
  25536. for the state at the beginning of the argument list. The variable
  25537. has type 'CUMULATIVE_ARGS'. The value of FNTYPE is the tree node
  25538. for the data type of the function which will receive the args, or 0
  25539. if the args are to a compiler support library function. For direct
  25540. calls that are not libcalls, FNDECL contain the declaration node of
  25541. the function. FNDECL is also set when 'INIT_CUMULATIVE_ARGS' is
  25542. used to find arguments for the function being compiled.
  25543. N_NAMED_ARGS is set to the number of named arguments, including a
  25544. structure return address if it is passed as a parameter, when
  25545. making a call. When processing incoming arguments, N_NAMED_ARGS is
  25546. set to -1.
  25547. When processing a call to a compiler support library function,
  25548. LIBNAME identifies which one. It is a 'symbol_ref' rtx which
  25549. contains the name of the function, as a string. LIBNAME is 0 when
  25550. an ordinary C function call is being processed. Thus, each time
  25551. this macro is called, either LIBNAME or FNTYPE is nonzero, but
  25552. never both of them at once.
  25553. -- Macro: INIT_CUMULATIVE_LIBCALL_ARGS (CUM, MODE, LIBNAME)
  25554. Like 'INIT_CUMULATIVE_ARGS' but only used for outgoing libcalls, it
  25555. gets a 'MODE' argument instead of FNTYPE, that would be 'NULL'.
  25556. INDIRECT would always be zero, too. If this macro is not defined,
  25557. 'INIT_CUMULATIVE_ARGS (cum, NULL_RTX, libname, 0)' is used instead.
  25558. -- Macro: INIT_CUMULATIVE_INCOMING_ARGS (CUM, FNTYPE, LIBNAME)
  25559. Like 'INIT_CUMULATIVE_ARGS' but overrides it for the purposes of
  25560. finding the arguments for the function being compiled. If this
  25561. macro is undefined, 'INIT_CUMULATIVE_ARGS' is used instead.
  25562. The value passed for LIBNAME is always 0, since library routines
  25563. with special calling conventions are never compiled with GCC. The
  25564. argument LIBNAME exists for symmetry with 'INIT_CUMULATIVE_ARGS'.
  25565. -- Target Hook: void TARGET_FUNCTION_ARG_ADVANCE (cumulative_args_t CA,
  25566. machine_mode MODE, const_tree TYPE, bool NAMED)
  25567. This hook updates the summarizer variable pointed to by CA to
  25568. advance past an argument in the argument list. The values MODE,
  25569. TYPE and NAMED describe that argument. Once this is done, the
  25570. variable CUM is suitable for analyzing the _following_ argument
  25571. with 'TARGET_FUNCTION_ARG', etc.
  25572. This hook need not do anything if the argument in question was
  25573. passed on the stack. The compiler knows how to track the amount of
  25574. stack space used for arguments without any special help.
  25575. -- Macro: FUNCTION_ARG_OFFSET (MODE, TYPE)
  25576. If defined, a C expression that is the number of bytes to add to
  25577. the offset of the argument passed in memory. This is needed for
  25578. the SPU, which passes 'char' and 'short' arguments in the preferred
  25579. slot that is in the middle of the quad word instead of starting at
  25580. the top.
  25581. -- Macro: FUNCTION_ARG_PADDING (MODE, TYPE)
  25582. If defined, a C expression which determines whether, and in which
  25583. direction, to pad out an argument with extra space. The value
  25584. should be of type 'enum direction': either 'upward' to pad above
  25585. the argument, 'downward' to pad below, or 'none' to inhibit
  25586. padding.
  25587. The _amount_ of padding is not controlled by this macro, but by the
  25588. target hook 'TARGET_FUNCTION_ARG_ROUND_BOUNDARY'. It is always
  25589. just enough to reach the next multiple of that boundary.
  25590. This macro has a default definition which is right for most
  25591. systems. For little-endian machines, the default is to pad upward.
  25592. For big-endian machines, the default is to pad downward for an
  25593. argument of constant size shorter than an 'int', and upward
  25594. otherwise.
  25595. -- Macro: PAD_VARARGS_DOWN
  25596. If defined, a C expression which determines whether the default
  25597. implementation of va_arg will attempt to pad down before reading
  25598. the next argument, if that argument is smaller than its aligned
  25599. space as controlled by 'PARM_BOUNDARY'. If this macro is not
  25600. defined, all such arguments are padded down if 'BYTES_BIG_ENDIAN'
  25601. is true.
  25602. -- Macro: BLOCK_REG_PADDING (MODE, TYPE, FIRST)
  25603. Specify padding for the last element of a block move between
  25604. registers and memory. FIRST is nonzero if this is the only
  25605. element. Defining this macro allows better control of register
  25606. function parameters on big-endian machines, without using
  25607. 'PARALLEL' rtl. In particular, 'MUST_PASS_IN_STACK' need not test
  25608. padding and mode of types in registers, as there is no longer a
  25609. "wrong" part of a register; For example, a three byte aggregate may
  25610. be passed in the high part of a register if so required.
  25611. -- Target Hook: unsigned int TARGET_FUNCTION_ARG_BOUNDARY (machine_mode
  25612. MODE, const_tree TYPE)
  25613. This hook returns the alignment boundary, in bits, of an argument
  25614. with the specified mode and type. The default hook returns
  25615. 'PARM_BOUNDARY' for all arguments.
  25616. -- Target Hook: unsigned int TARGET_FUNCTION_ARG_ROUND_BOUNDARY
  25617. (machine_mode MODE, const_tree TYPE)
  25618. Normally, the size of an argument is rounded up to 'PARM_BOUNDARY',
  25619. which is the default value for this hook. You can define this hook
  25620. to return a different value if an argument size must be rounded to
  25621. a larger value.
  25622. -- Macro: FUNCTION_ARG_REGNO_P (REGNO)
  25623. A C expression that is nonzero if REGNO is the number of a hard
  25624. register in which function arguments are sometimes passed. This
  25625. does _not_ include implicit arguments such as the static chain and
  25626. the structure-value address. On many machines, no registers can be
  25627. used for this purpose since all function arguments are pushed on
  25628. the stack.
  25629. -- Target Hook: bool TARGET_SPLIT_COMPLEX_ARG (const_tree TYPE)
  25630. This hook should return true if parameter of type TYPE are passed
  25631. as two scalar parameters. By default, GCC will attempt to pack
  25632. complex arguments into the target's word size. Some ABIs require
  25633. complex arguments to be split and treated as their individual
  25634. components. For example, on AIX64, complex floats should be passed
  25635. in a pair of floating point registers, even though a complex float
  25636. would fit in one 64-bit floating point register.
  25637. The default value of this hook is 'NULL', which is treated as
  25638. always false.
  25639. -- Target Hook: tree TARGET_BUILD_BUILTIN_VA_LIST (void)
  25640. This hook returns a type node for 'va_list' for the target. The
  25641. default version of the hook returns 'void*'.
  25642. -- Target Hook: int TARGET_ENUM_VA_LIST_P (int IDX, const char **PNAME,
  25643. tree *PTREE)
  25644. This target hook is used in function 'c_common_nodes_and_builtins'
  25645. to iterate through the target specific builtin types for va_list.
  25646. The variable IDX is used as iterator. PNAME has to be a pointer to
  25647. a 'const char *' and PTREE a pointer to a 'tree' typed variable.
  25648. The arguments PNAME and PTREE are used to store the result of this
  25649. macro and are set to the name of the va_list builtin type and its
  25650. internal type. If the return value of this macro is zero, then
  25651. there is no more element. Otherwise the IDX should be increased
  25652. for the next call of this macro to iterate through all types.
  25653. -- Target Hook: tree TARGET_FN_ABI_VA_LIST (tree FNDECL)
  25654. This hook returns the va_list type of the calling convention
  25655. specified by FNDECL. The default version of this hook returns
  25656. 'va_list_type_node'.
  25657. -- Target Hook: tree TARGET_CANONICAL_VA_LIST_TYPE (tree TYPE)
  25658. This hook returns the va_list type of the calling convention
  25659. specified by the type of TYPE. If TYPE is not a valid va_list
  25660. type, it returns 'NULL_TREE'.
  25661. -- Target Hook: tree TARGET_GIMPLIFY_VA_ARG_EXPR (tree VALIST, tree
  25662. TYPE, gimple_seq *PRE_P, gimple_seq *POST_P)
  25663. This hook performs target-specific gimplification of 'VA_ARG_EXPR'.
  25664. The first two parameters correspond to the arguments to 'va_arg';
  25665. the latter two are as in 'gimplify.c:gimplify_expr'.
  25666. -- Target Hook: bool TARGET_VALID_POINTER_MODE (machine_mode MODE)
  25667. Define this to return nonzero if the port can handle pointers with
  25668. machine mode MODE. The default version of this hook returns true
  25669. for both 'ptr_mode' and 'Pmode'.
  25670. -- Target Hook: bool TARGET_REF_MAY_ALIAS_ERRNO (struct ao_ref *REF)
  25671. Define this to return nonzero if the memory reference REF may alias
  25672. with the system C library errno location. The default version of
  25673. this hook assumes the system C library errno location is either a
  25674. declaration of type int or accessed by dereferencing a pointer to
  25675. int.
  25676. -- Target Hook: bool TARGET_SCALAR_MODE_SUPPORTED_P (machine_mode MODE)
  25677. Define this to return nonzero if the port is prepared to handle
  25678. insns involving scalar mode MODE. For a scalar mode to be
  25679. considered supported, all the basic arithmetic and comparisons must
  25680. work.
  25681. The default version of this hook returns true for any mode required
  25682. to handle the basic C types (as defined by the port). Included
  25683. here are the double-word arithmetic supported by the code in
  25684. 'optabs.c'.
  25685. -- Target Hook: bool TARGET_VECTOR_MODE_SUPPORTED_P (machine_mode MODE)
  25686. Define this to return nonzero if the port is prepared to handle
  25687. insns involving vector mode MODE. At the very least, it must have
  25688. move patterns for this mode.
  25689. -- Target Hook: bool TARGET_ARRAY_MODE_SUPPORTED_P (machine_mode MODE,
  25690. unsigned HOST_WIDE_INT NELEMS)
  25691. Return true if GCC should try to use a scalar mode to store an
  25692. array of NELEMS elements, given that each element has mode MODE.
  25693. Returning true here overrides the usual 'MAX_FIXED_MODE' limit and
  25694. allows GCC to use any defined integer mode.
  25695. One use of this hook is to support vector load and store operations
  25696. that operate on several homogeneous vectors. For example, ARM NEON
  25697. has operations like:
  25698. int8x8x3_t vld3_s8 (const int8_t *)
  25699. where the return type is defined as:
  25700. typedef struct int8x8x3_t
  25701. {
  25702. int8x8_t val[3];
  25703. } int8x8x3_t;
  25704. If this hook allows 'val' to have a scalar mode, then 'int8x8x3_t'
  25705. can have the same mode. GCC can then store 'int8x8x3_t's in
  25706. registers rather than forcing them onto the stack.
  25707. -- Target Hook: bool TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P
  25708. (machine_mode MODE)
  25709. Define this to return nonzero if libgcc provides support for the
  25710. floating-point mode MODE, which is known to pass
  25711. 'TARGET_SCALAR_MODE_SUPPORTED_P'. The default version of this hook
  25712. returns true for all of 'SFmode', 'DFmode', 'XFmode' and 'TFmode',
  25713. if such modes exist.
  25714. -- Target Hook: machine_mode TARGET_FLOATN_MODE (int N, bool EXTENDED)
  25715. Define this to return the machine mode to use for the type
  25716. '_FloatN', if EXTENDED is false, or the type '_FloatNx', if
  25717. EXTENDED is true. If such a type is not supported, return
  25718. 'VOIDmode'. The default version of this hook returns 'SFmode' for
  25719. '_Float32', 'DFmode' for '_Float64' and '_Float32x' and 'TFmode'
  25720. for '_Float128', if those modes exist and satisfy the requirements
  25721. for those types and pass 'TARGET_SCALAR_MODE_SUPPORTED_P' and
  25722. 'TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P'; for '_Float64x', it
  25723. returns the first of 'XFmode' and 'TFmode' that exists and
  25724. satisfies the same requirements; for other types, it returns
  25725. 'VOIDmode'. The hook is only called for values of N and EXTENDED
  25726. that are valid according to ISO/IEC TS 18661-3:2015; that is, N is
  25727. one of 32, 64, 128, or, if EXTENDED is false, 16 or greater than
  25728. 128 and a multiple of 32.
  25729. -- Target Hook: bool TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P
  25730. (machine_mode MODE)
  25731. Define this to return nonzero for machine modes for which the port
  25732. has small register classes. If this target hook returns nonzero
  25733. for a given MODE, the compiler will try to minimize the lifetime of
  25734. registers in MODE. The hook may be called with 'VOIDmode' as
  25735. argument. In this case, the hook is expected to return nonzero if
  25736. it returns nonzero for any mode.
  25737. On some machines, it is risky to let hard registers live across
  25738. arbitrary insns. Typically, these machines have instructions that
  25739. require values to be in specific registers (like an accumulator),
  25740. and reload will fail if the required hard register is used for
  25741. another purpose across such an insn.
  25742. Passes before reload do not know which hard registers will be used
  25743. in an instruction, but the machine modes of the registers set or
  25744. used in the instruction are already known. And for some machines,
  25745. register classes are small for, say, integer registers but not for
  25746. floating point registers. For example, the AMD x86-64 architecture
  25747. requires specific registers for the legacy x86 integer
  25748. instructions, but there are many SSE registers for floating point
  25749. operations. On such targets, a good strategy may be to return
  25750. nonzero from this hook for 'INTEGRAL_MODE_P' machine modes but zero
  25751. for the SSE register classes.
  25752. The default version of this hook returns false for any mode. It is
  25753. always safe to redefine this hook to return with a nonzero value.
  25754. But if you unnecessarily define it, you will reduce the amount of
  25755. optimizations that can be performed in some cases. If you do not
  25756. define this hook to return a nonzero value when it is required, the
  25757. compiler will run out of spill registers and print a fatal error
  25758. message.
  25759. 
  25760. File: gccint.info, Node: Scalar Return, Next: Aggregate Return, Prev: Register Arguments, Up: Stack and Calling
  25761. 17.9.8 How Scalar Function Values Are Returned
  25762. ----------------------------------------------
  25763. This section discusses the macros that control returning scalars as
  25764. values--values that can fit in registers.
  25765. -- Target Hook: rtx TARGET_FUNCTION_VALUE (const_tree RET_TYPE,
  25766. const_tree FN_DECL_OR_TYPE, bool OUTGOING)
  25767. Define this to return an RTX representing the place where a
  25768. function returns or receives a value of data type RET_TYPE, a tree
  25769. node representing a data type. FN_DECL_OR_TYPE is a tree node
  25770. representing 'FUNCTION_DECL' or 'FUNCTION_TYPE' of a function being
  25771. called. If OUTGOING is false, the hook should compute the register
  25772. in which the caller will see the return value. Otherwise, the hook
  25773. should return an RTX representing the place where a function
  25774. returns a value.
  25775. On many machines, only 'TYPE_MODE (RET_TYPE)' is relevant.
  25776. (Actually, on most machines, scalar values are returned in the same
  25777. place regardless of mode.) The value of the expression is usually
  25778. a 'reg' RTX for the hard register where the return value is stored.
  25779. The value can also be a 'parallel' RTX, if the return value is in
  25780. multiple places. See 'TARGET_FUNCTION_ARG' for an explanation of
  25781. the 'parallel' form. Note that the callee will populate every
  25782. location specified in the 'parallel', but if the first element of
  25783. the 'parallel' contains the whole return value, callers will use
  25784. that element as the canonical location and ignore the others. The
  25785. m68k port uses this type of 'parallel' to return pointers in both
  25786. '%a0' (the canonical location) and '%d0'.
  25787. If 'TARGET_PROMOTE_FUNCTION_RETURN' returns true, you must apply
  25788. the same promotion rules specified in 'PROMOTE_MODE' if VALTYPE is
  25789. a scalar type.
  25790. If the precise function being called is known, FUNC is a tree node
  25791. ('FUNCTION_DECL') for it; otherwise, FUNC is a null pointer. This
  25792. makes it possible to use a different value-returning convention for
  25793. specific functions when all their calls are known.
  25794. Some target machines have "register windows" so that the register
  25795. in which a function returns its value is not the same as the one in
  25796. which the caller sees the value. For such machines, you should
  25797. return different RTX depending on OUTGOING.
  25798. 'TARGET_FUNCTION_VALUE' is not used for return values with
  25799. aggregate data types, because these are returned in another way.
  25800. See 'TARGET_STRUCT_VALUE_RTX' and related macros, below.
  25801. -- Macro: FUNCTION_VALUE (VALTYPE, FUNC)
  25802. This macro has been deprecated. Use 'TARGET_FUNCTION_VALUE' for a
  25803. new target instead.
  25804. -- Macro: LIBCALL_VALUE (MODE)
  25805. A C expression to create an RTX representing the place where a
  25806. library function returns a value of mode MODE.
  25807. Note that "library function" in this context means a compiler
  25808. support routine, used to perform arithmetic, whose name is known
  25809. specially by the compiler and was not mentioned in the C code being
  25810. compiled.
  25811. -- Target Hook: rtx TARGET_LIBCALL_VALUE (machine_mode MODE, const_rtx
  25812. FUN)
  25813. Define this hook if the back-end needs to know the name of the
  25814. libcall function in order to determine where the result should be
  25815. returned.
  25816. The mode of the result is given by MODE and the name of the called
  25817. library function is given by FUN. The hook should return an RTX
  25818. representing the place where the library function result will be
  25819. returned.
  25820. If this hook is not defined, then LIBCALL_VALUE will be used.
  25821. -- Macro: FUNCTION_VALUE_REGNO_P (REGNO)
  25822. A C expression that is nonzero if REGNO is the number of a hard
  25823. register in which the values of called function may come back.
  25824. A register whose use for returning values is limited to serving as
  25825. the second of a pair (for a value of type 'double', say) need not
  25826. be recognized by this macro. So for most machines, this definition
  25827. suffices:
  25828. #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
  25829. If the machine has register windows, so that the caller and the
  25830. called function use different registers for the return value, this
  25831. macro should recognize only the caller's register numbers.
  25832. This macro has been deprecated. Use
  25833. 'TARGET_FUNCTION_VALUE_REGNO_P' for a new target instead.
  25834. -- Target Hook: bool TARGET_FUNCTION_VALUE_REGNO_P (const unsigned int
  25835. REGNO)
  25836. A target hook that return 'true' if REGNO is the number of a hard
  25837. register in which the values of called function may come back.
  25838. A register whose use for returning values is limited to serving as
  25839. the second of a pair (for a value of type 'double', say) need not
  25840. be recognized by this target hook.
  25841. If the machine has register windows, so that the caller and the
  25842. called function use different registers for the return value, this
  25843. target hook should recognize only the caller's register numbers.
  25844. If this hook is not defined, then FUNCTION_VALUE_REGNO_P will be
  25845. used.
  25846. -- Macro: APPLY_RESULT_SIZE
  25847. Define this macro if 'untyped_call' and 'untyped_return' need more
  25848. space than is implied by 'FUNCTION_VALUE_REGNO_P' for saving and
  25849. restoring an arbitrary return value.
  25850. -- Target Hook: bool TARGET_OMIT_STRUCT_RETURN_REG
  25851. Normally, when a function returns a structure by memory, the
  25852. address is passed as an invisible pointer argument, but the
  25853. compiler also arranges to return the address from the function like
  25854. it would a normal pointer return value. Define this to true if
  25855. that behavior is undesirable on your target.
  25856. -- Target Hook: bool TARGET_RETURN_IN_MSB (const_tree TYPE)
  25857. This hook should return true if values of type TYPE are returned at
  25858. the most significant end of a register (in other words, if they are
  25859. padded at the least significant end). You can assume that TYPE is
  25860. returned in a register; the caller is required to check this.
  25861. Note that the register provided by 'TARGET_FUNCTION_VALUE' must be
  25862. able to hold the complete return value. For example, if a 1-, 2-
  25863. or 3-byte structure is returned at the most significant end of a
  25864. 4-byte register, 'TARGET_FUNCTION_VALUE' should provide an 'SImode'
  25865. rtx.
  25866. 
  25867. File: gccint.info, Node: Aggregate Return, Next: Caller Saves, Prev: Scalar Return, Up: Stack and Calling
  25868. 17.9.9 How Large Values Are Returned
  25869. ------------------------------------
  25870. When a function value's mode is 'BLKmode' (and in some other cases), the
  25871. value is not returned according to 'TARGET_FUNCTION_VALUE' (*note Scalar
  25872. Return::). Instead, the caller passes the address of a block of memory
  25873. in which the value should be stored. This address is called the
  25874. "structure value address".
  25875. This section describes how to control returning structure values in
  25876. memory.
  25877. -- Target Hook: bool TARGET_RETURN_IN_MEMORY (const_tree TYPE,
  25878. const_tree FNTYPE)
  25879. This target hook should return a nonzero value to say to return the
  25880. function value in memory, just as large structures are always
  25881. returned. Here TYPE will be the data type of the value, and FNTYPE
  25882. will be the type of the function doing the returning, or 'NULL' for
  25883. libcalls.
  25884. Note that values of mode 'BLKmode' must be explicitly handled by
  25885. this function. Also, the option '-fpcc-struct-return' takes effect
  25886. regardless of this macro. On most systems, it is possible to leave
  25887. the hook undefined; this causes a default definition to be used,
  25888. whose value is the constant 1 for 'BLKmode' values, and 0
  25889. otherwise.
  25890. Do not use this hook to indicate that structures and unions should
  25891. always be returned in memory. You should instead use
  25892. 'DEFAULT_PCC_STRUCT_RETURN' to indicate this.
  25893. -- Macro: DEFAULT_PCC_STRUCT_RETURN
  25894. Define this macro to be 1 if all structure and union return values
  25895. must be in memory. Since this results in slower code, this should
  25896. be defined only if needed for compatibility with other compilers or
  25897. with an ABI. If you define this macro to be 0, then the
  25898. conventions used for structure and union return values are decided
  25899. by the 'TARGET_RETURN_IN_MEMORY' target hook.
  25900. If not defined, this defaults to the value 1.
  25901. -- Target Hook: rtx TARGET_STRUCT_VALUE_RTX (tree FNDECL, int INCOMING)
  25902. This target hook should return the location of the structure value
  25903. address (normally a 'mem' or 'reg'), or 0 if the address is passed
  25904. as an "invisible" first argument. Note that FNDECL may be 'NULL',
  25905. for libcalls. You do not need to define this target hook if the
  25906. address is always passed as an "invisible" first argument.
  25907. On some architectures the place where the structure value address
  25908. is found by the called function is not the same place that the
  25909. caller put it. This can be due to register windows, or it could be
  25910. because the function prologue moves it to a different place.
  25911. INCOMING is '1' or '2' when the location is needed in the context
  25912. of the called function, and '0' in the context of the caller.
  25913. If INCOMING is nonzero and the address is to be found on the stack,
  25914. return a 'mem' which refers to the frame pointer. If INCOMING is
  25915. '2', the result is being used to fetch the structure value address
  25916. at the beginning of a function. If you need to emit adjusting
  25917. code, you should do it at this point.
  25918. -- Macro: PCC_STATIC_STRUCT_RETURN
  25919. Define this macro if the usual system convention on the target
  25920. machine for returning structures and unions is for the called
  25921. function to return the address of a static variable containing the
  25922. value.
  25923. Do not define this if the usual system convention is for the caller
  25924. to pass an address to the subroutine.
  25925. This macro has effect in '-fpcc-struct-return' mode, but it does
  25926. nothing when you use '-freg-struct-return' mode.
  25927. -- Target Hook: machine_mode TARGET_GET_RAW_RESULT_MODE (int REGNO)
  25928. This target hook returns the mode to be used when accessing raw
  25929. return registers in '__builtin_return'. Define this macro if the
  25930. value in REG_RAW_MODE is not correct.
  25931. -- Target Hook: machine_mode TARGET_GET_RAW_ARG_MODE (int REGNO)
  25932. This target hook returns the mode to be used when accessing raw
  25933. argument registers in '__builtin_apply_args'. Define this macro if
  25934. the value in REG_RAW_MODE is not correct.
  25935. 
  25936. File: gccint.info, Node: Caller Saves, Next: Function Entry, Prev: Aggregate Return, Up: Stack and Calling
  25937. 17.9.10 Caller-Saves Register Allocation
  25938. ----------------------------------------
  25939. If you enable it, GCC can save registers around function calls. This
  25940. makes it possible to use call-clobbered registers to hold variables that
  25941. must live across calls.
  25942. -- Macro: HARD_REGNO_CALLER_SAVE_MODE (REGNO, NREGS)
  25943. A C expression specifying which mode is required for saving NREGS
  25944. of a pseudo-register in call-clobbered hard register REGNO. If
  25945. REGNO is unsuitable for caller save, 'VOIDmode' should be returned.
  25946. For most machines this macro need not be defined since GCC will
  25947. select the smallest suitable mode.
  25948. 
  25949. File: gccint.info, Node: Function Entry, Next: Profiling, Prev: Caller Saves, Up: Stack and Calling
  25950. 17.9.11 Function Entry and Exit
  25951. -------------------------------
  25952. This section describes the macros that output function entry
  25953. ("prologue") and exit ("epilogue") code.
  25954. -- Target Hook: void TARGET_ASM_FUNCTION_PROLOGUE (FILE *FILE,
  25955. HOST_WIDE_INT SIZE)
  25956. If defined, a function that outputs the assembler code for entry to
  25957. a function. The prologue is responsible for setting up the stack
  25958. frame, initializing the frame pointer register, saving registers
  25959. that must be saved, and allocating SIZE additional bytes of storage
  25960. for the local variables. SIZE is an integer. FILE is a stdio
  25961. stream to which the assembler code should be output.
  25962. The label for the beginning of the function need not be output by
  25963. this macro. That has already been done when the macro is run.
  25964. To determine which registers to save, the macro can refer to the
  25965. array 'regs_ever_live': element R is nonzero if hard register R is
  25966. used anywhere within the function. This implies the function
  25967. prologue should save register R, provided it is not one of the
  25968. call-used registers. ('TARGET_ASM_FUNCTION_EPILOGUE' must likewise
  25969. use 'regs_ever_live'.)
  25970. On machines that have "register windows", the function entry code
  25971. does not save on the stack the registers that are in the windows,
  25972. even if they are supposed to be preserved by function calls;
  25973. instead it takes appropriate steps to "push" the register stack, if
  25974. any non-call-used registers are used in the function.
  25975. On machines where functions may or may not have frame-pointers, the
  25976. function entry code must vary accordingly; it must set up the frame
  25977. pointer if one is wanted, and not otherwise. To determine whether
  25978. a frame pointer is in wanted, the macro can refer to the variable
  25979. 'frame_pointer_needed'. The variable's value will be 1 at run time
  25980. in a function that needs a frame pointer. *Note Elimination::.
  25981. The function entry code is responsible for allocating any stack
  25982. space required for the function. This stack space consists of the
  25983. regions listed below. In most cases, these regions are allocated
  25984. in the order listed, with the last listed region closest to the top
  25985. of the stack (the lowest address if 'STACK_GROWS_DOWNWARD' is
  25986. defined, and the highest address if it is not defined). You can
  25987. use a different order for a machine if doing so is more convenient
  25988. or required for compatibility reasons. Except in cases where
  25989. required by standard or by a debugger, there is no reason why the
  25990. stack layout used by GCC need agree with that used by other
  25991. compilers for a machine.
  25992. -- Target Hook: void TARGET_ASM_FUNCTION_END_PROLOGUE (FILE *FILE)
  25993. If defined, a function that outputs assembler code at the end of a
  25994. prologue. This should be used when the function prologue is being
  25995. emitted as RTL, and you have some extra assembler that needs to be
  25996. emitted. *Note prologue instruction pattern::.
  25997. -- Target Hook: void TARGET_ASM_FUNCTION_BEGIN_EPILOGUE (FILE *FILE)
  25998. If defined, a function that outputs assembler code at the start of
  25999. an epilogue. This should be used when the function epilogue is
  26000. being emitted as RTL, and you have some extra assembler that needs
  26001. to be emitted. *Note epilogue instruction pattern::.
  26002. -- Target Hook: void TARGET_ASM_FUNCTION_EPILOGUE (FILE *FILE,
  26003. HOST_WIDE_INT SIZE)
  26004. If defined, a function that outputs the assembler code for exit
  26005. from a function. The epilogue is responsible for restoring the
  26006. saved registers and stack pointer to their values when the function
  26007. was called, and returning control to the caller. This macro takes
  26008. the same arguments as the macro 'TARGET_ASM_FUNCTION_PROLOGUE', and
  26009. the registers to restore are determined from 'regs_ever_live' and
  26010. 'CALL_USED_REGISTERS' in the same way.
  26011. On some machines, there is a single instruction that does all the
  26012. work of returning from the function. On these machines, give that
  26013. instruction the name 'return' and do not define the macro
  26014. 'TARGET_ASM_FUNCTION_EPILOGUE' at all.
  26015. Do not define a pattern named 'return' if you want the
  26016. 'TARGET_ASM_FUNCTION_EPILOGUE' to be used. If you want the target
  26017. switches to control whether return instructions or epilogues are
  26018. used, define a 'return' pattern with a validity condition that
  26019. tests the target switches appropriately. If the 'return' pattern's
  26020. validity condition is false, epilogues will be used.
  26021. On machines where functions may or may not have frame-pointers, the
  26022. function exit code must vary accordingly. Sometimes the code for
  26023. these two cases is completely different. To determine whether a
  26024. frame pointer is wanted, the macro can refer to the variable
  26025. 'frame_pointer_needed'. The variable's value will be 1 when
  26026. compiling a function that needs a frame pointer.
  26027. Normally, 'TARGET_ASM_FUNCTION_PROLOGUE' and
  26028. 'TARGET_ASM_FUNCTION_EPILOGUE' must treat leaf functions specially.
  26029. The C variable 'current_function_is_leaf' is nonzero for such a
  26030. function. *Note Leaf Functions::.
  26031. On some machines, some functions pop their arguments on exit while
  26032. others leave that for the caller to do. For example, the 68020
  26033. when given '-mrtd' pops arguments in functions that take a fixed
  26034. number of arguments.
  26035. Your definition of the macro 'RETURN_POPS_ARGS' decides which
  26036. functions pop their own arguments. 'TARGET_ASM_FUNCTION_EPILOGUE'
  26037. needs to know what was decided. The number of bytes of the current
  26038. function's arguments that this function should pop is available in
  26039. 'crtl->args.pops_args'. *Note Scalar Return::.
  26040. * A region of 'crtl->args.pretend_args_size' bytes of uninitialized
  26041. space just underneath the first argument arriving on the stack.
  26042. (This may not be at the very start of the allocated stack region if
  26043. the calling sequence has pushed anything else since pushing the
  26044. stack arguments. But usually, on such machines, nothing else has
  26045. been pushed yet, because the function prologue itself does all the
  26046. pushing.) This region is used on machines where an argument may be
  26047. passed partly in registers and partly in memory, and, in some cases
  26048. to support the features in '<stdarg.h>'.
  26049. * An area of memory used to save certain registers used by the
  26050. function. The size of this area, which may also include space for
  26051. such things as the return address and pointers to previous stack
  26052. frames, is machine-specific and usually depends on which registers
  26053. have been used in the function. Machines with register windows
  26054. often do not require a save area.
  26055. * A region of at least SIZE bytes, possibly rounded up to an
  26056. allocation boundary, to contain the local variables of the
  26057. function. On some machines, this region and the save area may
  26058. occur in the opposite order, with the save area closer to the top
  26059. of the stack.
  26060. * Optionally, when 'ACCUMULATE_OUTGOING_ARGS' is defined, a region of
  26061. 'crtl->outgoing_args_size' bytes to be used for outgoing argument
  26062. lists of the function. *Note Stack Arguments::.
  26063. -- Macro: EXIT_IGNORE_STACK
  26064. Define this macro as a C expression that is nonzero if the return
  26065. instruction or the function epilogue ignores the value of the stack
  26066. pointer; in other words, if it is safe to delete an instruction to
  26067. adjust the stack pointer before a return from the function. The
  26068. default is 0.
  26069. Note that this macro's value is relevant only for functions for
  26070. which frame pointers are maintained. It is never safe to delete a
  26071. final stack adjustment in a function that has no frame pointer, and
  26072. the compiler knows this regardless of 'EXIT_IGNORE_STACK'.
  26073. -- Macro: EPILOGUE_USES (REGNO)
  26074. Define this macro as a C expression that is nonzero for registers
  26075. that are used by the epilogue or the 'return' pattern. The stack
  26076. and frame pointer registers are already assumed to be used as
  26077. needed.
  26078. -- Macro: EH_USES (REGNO)
  26079. Define this macro as a C expression that is nonzero for registers
  26080. that are used by the exception handling mechanism, and so should be
  26081. considered live on entry to an exception edge.
  26082. -- Target Hook: void TARGET_ASM_OUTPUT_MI_THUNK (FILE *FILE, tree
  26083. THUNK_FNDECL, HOST_WIDE_INT DELTA, HOST_WIDE_INT VCALL_OFFSET,
  26084. tree FUNCTION)
  26085. A function that outputs the assembler code for a thunk function,
  26086. used to implement C++ virtual function calls with multiple
  26087. inheritance. The thunk acts as a wrapper around a virtual
  26088. function, adjusting the implicit object parameter before handing
  26089. control off to the real function.
  26090. First, emit code to add the integer DELTA to the location that
  26091. contains the incoming first argument. Assume that this argument
  26092. contains a pointer, and is the one used to pass the 'this' pointer
  26093. in C++. This is the incoming argument _before_ the function
  26094. prologue, e.g. '%o0' on a sparc. The addition must preserve the
  26095. values of all other incoming arguments.
  26096. Then, if VCALL_OFFSET is nonzero, an additional adjustment should
  26097. be made after adding 'delta'. In particular, if P is the adjusted
  26098. pointer, the following adjustment should be made:
  26099. p += (*((ptrdiff_t **)p))[vcall_offset/sizeof(ptrdiff_t)]
  26100. After the additions, emit code to jump to FUNCTION, which is a
  26101. 'FUNCTION_DECL'. This is a direct pure jump, not a call, and does
  26102. not touch the return address. Hence returning from FUNCTION will
  26103. return to whoever called the current 'thunk'.
  26104. The effect must be as if FUNCTION had been called directly with the
  26105. adjusted first argument. This macro is responsible for emitting
  26106. all of the code for a thunk function;
  26107. 'TARGET_ASM_FUNCTION_PROLOGUE' and 'TARGET_ASM_FUNCTION_EPILOGUE'
  26108. are not invoked.
  26109. The THUNK_FNDECL is redundant. (DELTA and FUNCTION have already
  26110. been extracted from it.) It might possibly be useful on some
  26111. targets, but probably not.
  26112. If you do not define this macro, the target-independent code in the
  26113. C++ front end will generate a less efficient heavyweight thunk that
  26114. calls FUNCTION instead of jumping to it. The generic approach does
  26115. not support varargs.
  26116. -- Target Hook: bool TARGET_ASM_CAN_OUTPUT_MI_THUNK (const_tree
  26117. THUNK_FNDECL, HOST_WIDE_INT DELTA, HOST_WIDE_INT VCALL_OFFSET,
  26118. const_tree FUNCTION)
  26119. A function that returns true if TARGET_ASM_OUTPUT_MI_THUNK would be
  26120. able to output the assembler code for the thunk function specified
  26121. by the arguments it is passed, and false otherwise. In the latter
  26122. case, the generic approach will be used by the C++ front end, with
  26123. the limitations previously exposed.
  26124. 
  26125. File: gccint.info, Node: Profiling, Next: Tail Calls, Prev: Function Entry, Up: Stack and Calling
  26126. 17.9.12 Generating Code for Profiling
  26127. -------------------------------------
  26128. These macros will help you generate code for profiling.
  26129. -- Macro: FUNCTION_PROFILER (FILE, LABELNO)
  26130. A C statement or compound statement to output to FILE some
  26131. assembler code to call the profiling subroutine 'mcount'.
  26132. The details of how 'mcount' expects to be called are determined by
  26133. your operating system environment, not by GCC. To figure them out,
  26134. compile a small program for profiling using the system's installed
  26135. C compiler and look at the assembler code that results.
  26136. Older implementations of 'mcount' expect the address of a counter
  26137. variable to be loaded into some register. The name of this
  26138. variable is 'LP' followed by the number LABELNO, so you would
  26139. generate the name using 'LP%d' in a 'fprintf'.
  26140. -- Macro: PROFILE_HOOK
  26141. A C statement or compound statement to output to FILE some assembly
  26142. code to call the profiling subroutine 'mcount' even the target does
  26143. not support profiling.
  26144. -- Macro: NO_PROFILE_COUNTERS
  26145. Define this macro to be an expression with a nonzero value if the
  26146. 'mcount' subroutine on your system does not need a counter variable
  26147. allocated for each function. This is true for almost all modern
  26148. implementations. If you define this macro, you must not use the
  26149. LABELNO argument to 'FUNCTION_PROFILER'.
  26150. -- Macro: PROFILE_BEFORE_PROLOGUE
  26151. Define this macro if the code for function profiling should come
  26152. before the function prologue. Normally, the profiling code comes
  26153. after.
  26154. -- Target Hook: bool TARGET_KEEP_LEAF_WHEN_PROFILED (void)
  26155. This target hook returns true if the target wants the leaf flag for
  26156. the current function to stay true even if it calls mcount. This
  26157. might make sense for targets using the leaf flag only to determine
  26158. whether a stack frame needs to be generated or not and for which
  26159. the call to mcount is generated before the function prologue.
  26160. 
  26161. File: gccint.info, Node: Tail Calls, Next: Shrink-wrapping separate components, Prev: Profiling, Up: Stack and Calling
  26162. 17.9.13 Permitting tail calls
  26163. -----------------------------
  26164. -- Target Hook: bool TARGET_FUNCTION_OK_FOR_SIBCALL (tree DECL, tree
  26165. EXP)
  26166. True if it is OK to do sibling call optimization for the specified
  26167. call expression EXP. DECL will be the called function, or 'NULL'
  26168. if this is an indirect call.
  26169. It is not uncommon for limitations of calling conventions to
  26170. prevent tail calls to functions outside the current unit of
  26171. translation, or during PIC compilation. The hook is used to
  26172. enforce these restrictions, as the 'sibcall' md pattern can not
  26173. fail, or fall over to a "normal" call. The criteria for successful
  26174. sibling call optimization may vary greatly between different
  26175. architectures.
  26176. -- Target Hook: void TARGET_EXTRA_LIVE_ON_ENTRY (bitmap REGS)
  26177. Add any hard registers to REGS that are live on entry to the
  26178. function. This hook only needs to be defined to provide registers
  26179. that cannot be found by examination of FUNCTION_ARG_REGNO_P, the
  26180. callee saved registers, STATIC_CHAIN_INCOMING_REGNUM,
  26181. STATIC_CHAIN_REGNUM, TARGET_STRUCT_VALUE_RTX, FRAME_POINTER_REGNUM,
  26182. EH_USES, FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and the
  26183. PIC_OFFSET_TABLE_REGNUM.
  26184. -- Target Hook: void TARGET_SET_UP_BY_PROLOGUE (struct
  26185. hard_reg_set_container *)
  26186. This hook should add additional registers that are computed by the
  26187. prologue to the hard regset for shrink-wrapping optimization
  26188. purposes.
  26189. -- Target Hook: bool TARGET_WARN_FUNC_RETURN (tree)
  26190. True if a function's return statements should be checked for
  26191. matching the function's return type. This includes checking for
  26192. falling off the end of a non-void function. Return false if no
  26193. such check should be made.
  26194. 
  26195. File: gccint.info, Node: Shrink-wrapping separate components, Next: Stack Smashing Protection, Prev: Tail Calls, Up: Stack and Calling
  26196. 17.9.14 Shrink-wrapping separate components
  26197. -------------------------------------------
  26198. The prologue may perform a variety of target dependent tasks such as
  26199. saving callee-saved registers, saving the return address, aligning the
  26200. stack, creating a stack frame, initializing the PIC register, setting up
  26201. the static chain, etc.
  26202. On some targets some of these tasks may be independent of others and
  26203. thus may be shrink-wrapped separately. These independent tasks are
  26204. referred to as components and are handled generically by the target
  26205. independent parts of GCC.
  26206. Using the following hooks those prologue or epilogue components can be
  26207. shrink-wrapped separately, so that the initialization (and possibly
  26208. teardown) those components do is not done as frequently on execution
  26209. paths where this would unnecessary.
  26210. What exactly those components are is up to the target code; the generic
  26211. code treats them abstractly, as a bit in an 'sbitmap'. These 'sbitmap's
  26212. are allocated by the 'shrink_wrap.get_separate_components' and
  26213. 'shrink_wrap.components_for_bb' hooks, and deallocated by the generic
  26214. code.
  26215. -- Target Hook: sbitmap TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS
  26216. (void)
  26217. This hook should return an 'sbitmap' with the bits set for those
  26218. components that can be separately shrink-wrapped in the current
  26219. function. Return 'NULL' if the current function should not get any
  26220. separate shrink-wrapping. Don't define this hook if it would
  26221. always return 'NULL'. If it is defined, the other hooks in this
  26222. group have to be defined as well.
  26223. -- Target Hook: sbitmap TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB
  26224. (basic_block)
  26225. This hook should return an 'sbitmap' with the bits set for those
  26226. components where either the prologue component has to be executed
  26227. before the 'basic_block', or the epilogue component after it, or
  26228. both.
  26229. -- Target Hook: void TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS (sbitmap
  26230. COMPONENTS, edge E, sbitmap EDGE_COMPONENTS, bool IS_PROLOGUE)
  26231. This hook should clear the bits in the COMPONENTS bitmap for those
  26232. components in EDGE_COMPONENTS that the target cannot handle on edge
  26233. E, where IS_PROLOGUE says if this is for a prologue or an epilogue
  26234. instead.
  26235. -- Target Hook: void TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS
  26236. (sbitmap)
  26237. Emit prologue insns for the components indicated by the parameter.
  26238. -- Target Hook: void TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS
  26239. (sbitmap)
  26240. Emit epilogue insns for the components indicated by the parameter.
  26241. -- Target Hook: void TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS
  26242. (sbitmap)
  26243. Mark the components in the parameter as handled, so that the
  26244. 'prologue' and 'epilogue' named patterns know to ignore those
  26245. components. The target code should not hang on to the 'sbitmap',
  26246. it will be deleted after this call.
  26247. 
  26248. File: gccint.info, Node: Stack Smashing Protection, Next: Miscellaneous Register Hooks, Prev: Shrink-wrapping separate components, Up: Stack and Calling
  26249. 17.9.15 Stack smashing protection
  26250. ---------------------------------
  26251. -- Target Hook: tree TARGET_STACK_PROTECT_GUARD (void)
  26252. This hook returns a 'DECL' node for the external variable to use
  26253. for the stack protection guard. This variable is initialized by
  26254. the runtime to some random value and is used to initialize the
  26255. guard value that is placed at the top of the local stack frame.
  26256. The type of this variable must be 'ptr_type_node'.
  26257. The default version of this hook creates a variable called
  26258. '__stack_chk_guard', which is normally defined in 'libgcc2.c'.
  26259. -- Target Hook: tree TARGET_STACK_PROTECT_FAIL (void)
  26260. This hook returns a 'CALL_EXPR' that alerts the runtime that the
  26261. stack protect guard variable has been modified. This expression
  26262. should involve a call to a 'noreturn' function.
  26263. The default version of this hook invokes a function called
  26264. '__stack_chk_fail', taking no arguments. This function is normally
  26265. defined in 'libgcc2.c'.
  26266. -- Target Hook: bool TARGET_STACK_PROTECT_RUNTIME_ENABLED_P (void)
  26267. Returns true if the target wants GCC's default stack protect
  26268. runtime support, otherwise return false. The default
  26269. implementation always returns true.
  26270. -- Common Target Hook: bool TARGET_SUPPORTS_SPLIT_STACK (bool REPORT,
  26271. struct gcc_options *OPTS)
  26272. Whether this target supports splitting the stack when the options
  26273. described in OPTS have been passed. This is called after options
  26274. have been parsed, so the target may reject splitting the stack in
  26275. some configurations. The default version of this hook returns
  26276. false. If REPORT is true, this function may issue a warning or
  26277. error; if REPORT is false, it must simply return a value
  26278. 
  26279. File: gccint.info, Node: Miscellaneous Register Hooks, Prev: Stack Smashing Protection, Up: Stack and Calling
  26280. 17.9.16 Miscellaneous register hooks
  26281. ------------------------------------
  26282. -- Target Hook: bool TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS
  26283. Set to true if each call that binds to a local definition
  26284. explicitly clobbers or sets all non-fixed registers modified by
  26285. performing the call. That is, by the call pattern itself, or by
  26286. code that might be inserted by the linker (e.g. stubs, veneers,
  26287. branch islands), but not including those modifiable by the callee.
  26288. The affected registers may be mentioned explicitly in the call
  26289. pattern, or included as clobbers in CALL_INSN_FUNCTION_USAGE. The
  26290. default version of this hook is set to false. The purpose of this
  26291. hook is to enable the fipa-ra optimization.
  26292. 
  26293. File: gccint.info, Node: Varargs, Next: Trampolines, Prev: Stack and Calling, Up: Target Macros
  26294. 17.10 Implementing the Varargs Macros
  26295. =====================================
  26296. GCC comes with an implementation of '<varargs.h>' and '<stdarg.h>' that
  26297. work without change on machines that pass arguments on the stack. Other
  26298. machines require their own implementations of varargs, and the two
  26299. machine independent header files must have conditionals to include it.
  26300. ISO '<stdarg.h>' differs from traditional '<varargs.h>' mainly in the
  26301. calling convention for 'va_start'. The traditional implementation takes
  26302. just one argument, which is the variable in which to store the argument
  26303. pointer. The ISO implementation of 'va_start' takes an additional
  26304. second argument. The user is supposed to write the last named argument
  26305. of the function here.
  26306. However, 'va_start' should not use this argument. The way to find the
  26307. end of the named arguments is with the built-in functions described
  26308. below.
  26309. -- Macro: __builtin_saveregs ()
  26310. Use this built-in function to save the argument registers in memory
  26311. so that the varargs mechanism can access them. Both ISO and
  26312. traditional versions of 'va_start' must use '__builtin_saveregs',
  26313. unless you use 'TARGET_SETUP_INCOMING_VARARGS' (see below) instead.
  26314. On some machines, '__builtin_saveregs' is open-coded under the
  26315. control of the target hook 'TARGET_EXPAND_BUILTIN_SAVEREGS'. On
  26316. other machines, it calls a routine written in assembler language,
  26317. found in 'libgcc2.c'.
  26318. Code generated for the call to '__builtin_saveregs' appears at the
  26319. beginning of the function, as opposed to where the call to
  26320. '__builtin_saveregs' is written, regardless of what the code is.
  26321. This is because the registers must be saved before the function
  26322. starts to use them for its own purposes.
  26323. -- Macro: __builtin_next_arg (LASTARG)
  26324. This builtin returns the address of the first anonymous stack
  26325. argument, as type 'void *'. If 'ARGS_GROW_DOWNWARD', it returns
  26326. the address of the location above the first anonymous stack
  26327. argument. Use it in 'va_start' to initialize the pointer for
  26328. fetching arguments from the stack. Also use it in 'va_start' to
  26329. verify that the second parameter LASTARG is the last named argument
  26330. of the current function.
  26331. -- Macro: __builtin_classify_type (OBJECT)
  26332. Since each machine has its own conventions for which data types are
  26333. passed in which kind of register, your implementation of 'va_arg'
  26334. has to embody these conventions. The easiest way to categorize the
  26335. specified data type is to use '__builtin_classify_type' together
  26336. with 'sizeof' and '__alignof__'.
  26337. '__builtin_classify_type' ignores the value of OBJECT, considering
  26338. only its data type. It returns an integer describing what kind of
  26339. type that is--integer, floating, pointer, structure, and so on.
  26340. The file 'typeclass.h' defines an enumeration that you can use to
  26341. interpret the values of '__builtin_classify_type'.
  26342. These machine description macros help implement varargs:
  26343. -- Target Hook: rtx TARGET_EXPAND_BUILTIN_SAVEREGS (void)
  26344. If defined, this hook produces the machine-specific code for a call
  26345. to '__builtin_saveregs'. This code will be moved to the very
  26346. beginning of the function, before any parameter access are made.
  26347. The return value of this function should be an RTX that contains
  26348. the value to use as the return of '__builtin_saveregs'.
  26349. -- Target Hook: void TARGET_SETUP_INCOMING_VARARGS (cumulative_args_t
  26350. ARGS_SO_FAR, machine_mode MODE, tree TYPE, int
  26351. *PRETEND_ARGS_SIZE, int SECOND_TIME)
  26352. This target hook offers an alternative to using
  26353. '__builtin_saveregs' and defining the hook
  26354. 'TARGET_EXPAND_BUILTIN_SAVEREGS'. Use it to store the anonymous
  26355. register arguments into the stack so that all the arguments appear
  26356. to have been passed consecutively on the stack. Once this is done,
  26357. you can use the standard implementation of varargs that works for
  26358. machines that pass all their arguments on the stack.
  26359. The argument ARGS_SO_FAR points to the 'CUMULATIVE_ARGS' data
  26360. structure, containing the values that are obtained after processing
  26361. the named arguments. The arguments MODE and TYPE describe the last
  26362. named argument--its machine mode and its data type as a tree node.
  26363. The target hook should do two things: first, push onto the stack
  26364. all the argument registers _not_ used for the named arguments, and
  26365. second, store the size of the data thus pushed into the
  26366. 'int'-valued variable pointed to by PRETEND_ARGS_SIZE. The value
  26367. that you store here will serve as additional offset for setting up
  26368. the stack frame.
  26369. Because you must generate code to push the anonymous arguments at
  26370. compile time without knowing their data types,
  26371. 'TARGET_SETUP_INCOMING_VARARGS' is only useful on machines that
  26372. have just a single category of argument register and use it
  26373. uniformly for all data types.
  26374. If the argument SECOND_TIME is nonzero, it means that the arguments
  26375. of the function are being analyzed for the second time. This
  26376. happens for an inline function, which is not actually compiled
  26377. until the end of the source file. The hook
  26378. 'TARGET_SETUP_INCOMING_VARARGS' should not generate any
  26379. instructions in this case.
  26380. -- Target Hook: bool TARGET_STRICT_ARGUMENT_NAMING (cumulative_args_t
  26381. CA)
  26382. Define this hook to return 'true' if the location where a function
  26383. argument is passed depends on whether or not it is a named
  26384. argument.
  26385. This hook controls how the NAMED argument to 'TARGET_FUNCTION_ARG'
  26386. is set for varargs and stdarg functions. If this hook returns
  26387. 'true', the NAMED argument is always true for named arguments, and
  26388. false for unnamed arguments. If it returns 'false', but
  26389. 'TARGET_PRETEND_OUTGOING_VARARGS_NAMED' returns 'true', then all
  26390. arguments are treated as named. Otherwise, all named arguments
  26391. except the last are treated as named.
  26392. You need not define this hook if it always returns 'false'.
  26393. -- Target Hook: void TARGET_CALL_ARGS (rtx, TREE)
  26394. While generating RTL for a function call, this target hook is
  26395. invoked once for each argument passed to the function, either a
  26396. register returned by 'TARGET_FUNCTION_ARG' or a memory location.
  26397. It is called just before the point where argument registers are
  26398. stored. The type of the function to be called is also passed as
  26399. the second argument; it is 'NULL_TREE' for libcalls. The
  26400. 'TARGET_END_CALL_ARGS' hook is invoked just after the code to copy
  26401. the return reg has been emitted. This functionality can be used to
  26402. perform special setup of call argument registers if a target needs
  26403. it. For functions without arguments, the hook is called once with
  26404. 'pc_rtx' passed instead of an argument register. Most ports do not
  26405. need to implement anything for this hook.
  26406. -- Target Hook: void TARGET_END_CALL_ARGS (void)
  26407. This target hook is invoked while generating RTL for a function
  26408. call, just after the point where the return reg is copied into a
  26409. pseudo. It signals that all the call argument and return registers
  26410. for the just emitted call are now no longer in use. Most ports do
  26411. not need to implement anything for this hook.
  26412. -- Target Hook: bool TARGET_PRETEND_OUTGOING_VARARGS_NAMED
  26413. (cumulative_args_t CA)
  26414. If you need to conditionally change ABIs so that one works with
  26415. 'TARGET_SETUP_INCOMING_VARARGS', but the other works like neither
  26416. 'TARGET_SETUP_INCOMING_VARARGS' nor 'TARGET_STRICT_ARGUMENT_NAMING'
  26417. was defined, then define this hook to return 'true' if
  26418. 'TARGET_SETUP_INCOMING_VARARGS' is used, 'false' otherwise.
  26419. Otherwise, you should not define this hook.
  26420. -- Target Hook: rtx TARGET_LOAD_BOUNDS_FOR_ARG (rtx SLOT, rtx ARG, rtx
  26421. SLOT_NO)
  26422. This hook is used by expand pass to emit insn to load bounds of ARG
  26423. passed in SLOT. Expand pass uses this hook in case bounds of ARG
  26424. are not passed in register. If SLOT is a memory, then bounds are
  26425. loaded as for regular pointer loaded from memory. If SLOT is not a
  26426. memory then SLOT_NO is an integer constant holding number of the
  26427. target dependent special slot which should be used to obtain
  26428. bounds. Hook returns RTX holding loaded bounds.
  26429. -- Target Hook: void TARGET_STORE_BOUNDS_FOR_ARG (rtx ARG, rtx SLOT,
  26430. rtx BOUNDS, rtx SLOT_NO)
  26431. This hook is used by expand pass to emit insns to store BOUNDS of
  26432. ARG passed in SLOT. Expand pass uses this hook in case BOUNDS of
  26433. ARG are not passed in register. If SLOT is a memory, then BOUNDS
  26434. are stored as for regular pointer stored in memory. If SLOT is not
  26435. a memory then SLOT_NO is an integer constant holding number of the
  26436. target dependent special slot which should be used to store BOUNDS.
  26437. -- Target Hook: rtx TARGET_LOAD_RETURNED_BOUNDS (rtx SLOT)
  26438. This hook is used by expand pass to emit insn to load bounds
  26439. returned by function call in SLOT. Hook returns RTX holding loaded
  26440. bounds.
  26441. -- Target Hook: void TARGET_STORE_RETURNED_BOUNDS (rtx SLOT, rtx
  26442. BOUNDS)
  26443. This hook is used by expand pass to emit insn to store BOUNDS
  26444. returned by function call into SLOT.
  26445. -- Target Hook: rtx TARGET_CHKP_FUNCTION_VALUE_BOUNDS (const_tree
  26446. RET_TYPE, const_tree FN_DECL_OR_TYPE, bool OUTGOING)
  26447. Define this to return an RTX representing the place where a
  26448. function returns bounds for returned pointers. Arguments meaning
  26449. is similar to 'TARGET_FUNCTION_VALUE'.
  26450. -- Target Hook: void TARGET_SETUP_INCOMING_VARARG_BOUNDS
  26451. (cumulative_args_t ARGS_SO_FAR, enum machine_mode MODE, tree
  26452. TYPE, int *PRETEND_ARGS_SIZE, int SECOND_TIME)
  26453. Use it to store bounds for anonymous register arguments stored into
  26454. the stack. Arguments meaning is similar to
  26455. 'TARGET_SETUP_INCOMING_VARARGS'.
  26456. 
  26457. File: gccint.info, Node: Trampolines, Next: Library Calls, Prev: Varargs, Up: Target Macros
  26458. 17.11 Trampolines for Nested Functions
  26459. ======================================
  26460. A "trampoline" is a small piece of code that is created at run time when
  26461. the address of a nested function is taken. It normally resides on the
  26462. stack, in the stack frame of the containing function. These macros tell
  26463. GCC how to generate code to allocate and initialize a trampoline.
  26464. The instructions in the trampoline must do two things: load a constant
  26465. address into the static chain register, and jump to the real address of
  26466. the nested function. On CISC machines such as the m68k, this requires
  26467. two instructions, a move immediate and a jump. Then the two addresses
  26468. exist in the trampoline as word-long immediate operands. On RISC
  26469. machines, it is often necessary to load each address into a register in
  26470. two parts. Then pieces of each address form separate immediate
  26471. operands.
  26472. The code generated to initialize the trampoline must store the variable
  26473. parts--the static chain value and the function address--into the
  26474. immediate operands of the instructions. On a CISC machine, this is
  26475. simply a matter of copying each address to a memory reference at the
  26476. proper offset from the start of the trampoline. On a RISC machine, it
  26477. may be necessary to take out pieces of the address and store them
  26478. separately.
  26479. -- Target Hook: void TARGET_ASM_TRAMPOLINE_TEMPLATE (FILE *F)
  26480. This hook is called by 'assemble_trampoline_template' to output, on
  26481. the stream F, assembler code for a block of data that contains the
  26482. constant parts of a trampoline. This code should not include a
  26483. label--the label is taken care of automatically.
  26484. If you do not define this hook, it means no template is needed for
  26485. the target. Do not define this hook on systems where the block
  26486. move code to copy the trampoline into place would be larger than
  26487. the code to generate it on the spot.
  26488. -- Macro: TRAMPOLINE_SECTION
  26489. Return the section into which the trampoline template is to be
  26490. placed (*note Sections::). The default value is
  26491. 'readonly_data_section'.
  26492. -- Macro: TRAMPOLINE_SIZE
  26493. A C expression for the size in bytes of the trampoline, as an
  26494. integer.
  26495. -- Macro: TRAMPOLINE_ALIGNMENT
  26496. Alignment required for trampolines, in bits.
  26497. If you don't define this macro, the value of 'FUNCTION_ALIGNMENT'
  26498. is used for aligning trampolines.
  26499. -- Target Hook: void TARGET_TRAMPOLINE_INIT (rtx M_TRAMP, tree FNDECL,
  26500. rtx STATIC_CHAIN)
  26501. This hook is called to initialize a trampoline. M_TRAMP is an RTX
  26502. for the memory block for the trampoline; FNDECL is the
  26503. 'FUNCTION_DECL' for the nested function; STATIC_CHAIN is an RTX for
  26504. the static chain value that should be passed to the function when
  26505. it is called.
  26506. If the target defines 'TARGET_ASM_TRAMPOLINE_TEMPLATE', then the
  26507. first thing this hook should do is emit a block move into M_TRAMP
  26508. from the memory block returned by 'assemble_trampoline_template'.
  26509. Note that the block move need only cover the constant parts of the
  26510. trampoline. If the target isolates the variable parts of the
  26511. trampoline to the end, not all 'TRAMPOLINE_SIZE' bytes need be
  26512. copied.
  26513. If the target requires any other actions, such as flushing caches
  26514. or enabling stack execution, these actions should be performed
  26515. after initializing the trampoline proper.
  26516. -- Target Hook: rtx TARGET_TRAMPOLINE_ADJUST_ADDRESS (rtx ADDR)
  26517. This hook should perform any machine-specific adjustment in the
  26518. address of the trampoline. Its argument contains the address of
  26519. the memory block that was passed to 'TARGET_TRAMPOLINE_INIT'. In
  26520. case the address to be used for a function call should be different
  26521. from the address at which the template was stored, the different
  26522. address should be returned; otherwise ADDR should be returned
  26523. unchanged. If this hook is not defined, ADDR will be used for
  26524. function calls.
  26525. -- Target Hook: int TARGET_CUSTOM_FUNCTION_DESCRIPTORS
  26526. This hook should be defined to a power of 2 if the target will
  26527. benefit from the use of custom descriptors for nested functions
  26528. instead of the standard trampolines. Such descriptors are created
  26529. at run time on the stack and made up of data only, but they are
  26530. non-standard so the generated code must be prepared to deal with
  26531. them. This hook should be defined to 0 if the target uses function
  26532. descriptors for its standard calling sequence, like for example
  26533. HP-PA or IA-64. Using descriptors for nested functions eliminates
  26534. the need for trampolines that reside on the stack and require it to
  26535. be made executable.
  26536. The value of the macro is used to parameterize the run-time
  26537. identification scheme implemented to distinguish descriptors from
  26538. function addresses: it gives the number of bytes by which their
  26539. address is misaligned compared with function addresses. The value
  26540. of 1 will generally work, unless it is already reserved by the
  26541. target for another purpose, like for example on ARM.
  26542. Implementing trampolines is difficult on many machines because they
  26543. have separate instruction and data caches. Writing into a stack
  26544. location fails to clear the memory in the instruction cache, so when the
  26545. program jumps to that location, it executes the old contents.
  26546. Here are two possible solutions. One is to clear the relevant parts of
  26547. the instruction cache whenever a trampoline is set up. The other is to
  26548. make all trampolines identical, by having them jump to a standard
  26549. subroutine. The former technique makes trampoline execution faster; the
  26550. latter makes initialization faster.
  26551. To clear the instruction cache when a trampoline is initialized, define
  26552. the following macro.
  26553. -- Macro: CLEAR_INSN_CACHE (BEG, END)
  26554. If defined, expands to a C expression clearing the _instruction
  26555. cache_ in the specified interval. The definition of this macro
  26556. would typically be a series of 'asm' statements. Both BEG and END
  26557. are both pointer expressions.
  26558. To use a standard subroutine, define the following macro. In addition,
  26559. you must make sure that the instructions in a trampoline fill an entire
  26560. cache line with identical instructions, or else ensure that the
  26561. beginning of the trampoline code is always aligned at the same point in
  26562. its cache line. Look in 'm68k.h' as a guide.
  26563. -- Macro: TRANSFER_FROM_TRAMPOLINE
  26564. Define this macro if trampolines need a special subroutine to do
  26565. their work. The macro should expand to a series of 'asm'
  26566. statements which will be compiled with GCC. They go in a library
  26567. function named '__transfer_from_trampoline'.
  26568. If you need to avoid executing the ordinary prologue code of a
  26569. compiled C function when you jump to the subroutine, you can do so
  26570. by placing a special label of your own in the assembler code. Use
  26571. one 'asm' statement to generate an assembler label, and another to
  26572. make the label global. Then trampolines can use that label to jump
  26573. directly to your special assembler code.
  26574. 
  26575. File: gccint.info, Node: Library Calls, Next: Addressing Modes, Prev: Trampolines, Up: Target Macros
  26576. 17.12 Implicit Calls to Library Routines
  26577. ========================================
  26578. Here is an explanation of implicit calls to library routines.
  26579. -- Macro: DECLARE_LIBRARY_RENAMES
  26580. This macro, if defined, should expand to a piece of C code that
  26581. will get expanded when compiling functions for libgcc.a. It can be
  26582. used to provide alternate names for GCC's internal library
  26583. functions if there are ABI-mandated names that the compiler should
  26584. provide.
  26585. -- Target Hook: void TARGET_INIT_LIBFUNCS (void)
  26586. This hook should declare additional library routines or rename
  26587. existing ones, using the functions 'set_optab_libfunc' and
  26588. 'init_one_libfunc' defined in 'optabs.c'. 'init_optabs' calls this
  26589. macro after initializing all the normal library routines.
  26590. The default is to do nothing. Most ports don't need to define this
  26591. hook.
  26592. -- Target Hook: bool TARGET_LIBFUNC_GNU_PREFIX
  26593. If false (the default), internal library routines start with two
  26594. underscores. If set to true, these routines start with '__gnu_'
  26595. instead. E.g., '__muldi3' changes to '__gnu_muldi3'. This
  26596. currently only affects functions defined in 'libgcc2.c'. If this
  26597. is set to true, the 'tm.h' file must also '#define
  26598. LIBGCC2_GNU_PREFIX'.
  26599. -- Macro: FLOAT_LIB_COMPARE_RETURNS_BOOL (MODE, COMPARISON)
  26600. This macro should return 'true' if the library routine that
  26601. implements the floating point comparison operator COMPARISON in
  26602. mode MODE will return a boolean, and FALSE if it will return a
  26603. tristate.
  26604. GCC's own floating point libraries return tristates from the
  26605. comparison operators, so the default returns false always. Most
  26606. ports don't need to define this macro.
  26607. -- Macro: TARGET_LIB_INT_CMP_BIASED
  26608. This macro should evaluate to 'true' if the integer comparison
  26609. functions (like '__cmpdi2') return 0 to indicate that the first
  26610. operand is smaller than the second, 1 to indicate that they are
  26611. equal, and 2 to indicate that the first operand is greater than the
  26612. second. If this macro evaluates to 'false' the comparison
  26613. functions return -1, 0, and 1 instead of 0, 1, and 2. If the
  26614. target uses the routines in 'libgcc.a', you do not need to define
  26615. this macro.
  26616. -- Macro: TARGET_HAS_NO_HW_DIVIDE
  26617. This macro should be defined if the target has no hardware divide
  26618. instructions. If this macro is defined, GCC will use an algorithm
  26619. which make use of simple logical and arithmetic operations for
  26620. 64-bit division. If the macro is not defined, GCC will use an
  26621. algorithm which make use of a 64-bit by 32-bit divide primitive.
  26622. -- Macro: TARGET_EDOM
  26623. The value of 'EDOM' on the target machine, as a C integer constant
  26624. expression. If you don't define this macro, GCC does not attempt
  26625. to deposit the value of 'EDOM' into 'errno' directly. Look in
  26626. '/usr/include/errno.h' to find the value of 'EDOM' on your system.
  26627. If you do not define 'TARGET_EDOM', then compiled code reports
  26628. domain errors by calling the library function and letting it report
  26629. the error. If mathematical functions on your system use 'matherr'
  26630. when there is an error, then you should leave 'TARGET_EDOM'
  26631. undefined so that 'matherr' is used normally.
  26632. -- Macro: GEN_ERRNO_RTX
  26633. Define this macro as a C expression to create an rtl expression
  26634. that refers to the global "variable" 'errno'. (On certain systems,
  26635. 'errno' may not actually be a variable.) If you don't define this
  26636. macro, a reasonable default is used.
  26637. -- Target Hook: bool TARGET_LIBC_HAS_FUNCTION (enum function_class
  26638. FN_CLASS)
  26639. This hook determines whether a function from a class of functions
  26640. FN_CLASS is present at the runtime.
  26641. -- Macro: NEXT_OBJC_RUNTIME
  26642. Set this macro to 1 to use the "NeXT" Objective-C message sending
  26643. conventions by default. This calling convention involves passing
  26644. the object, the selector and the method arguments all at once to
  26645. the method-lookup library function. This is the usual setting when
  26646. targeting Darwin/Mac OS X systems, which have the NeXT runtime
  26647. installed.
  26648. If the macro is set to 0, the "GNU" Objective-C message sending
  26649. convention will be used by default. This convention passes just
  26650. the object and the selector to the method-lookup function, which
  26651. returns a pointer to the method.
  26652. In either case, it remains possible to select code-generation for
  26653. the alternate scheme, by means of compiler command line switches.
  26654. 
  26655. File: gccint.info, Node: Addressing Modes, Next: Anchored Addresses, Prev: Library Calls, Up: Target Macros
  26656. 17.13 Addressing Modes
  26657. ======================
  26658. This is about addressing modes.
  26659. -- Macro: HAVE_PRE_INCREMENT
  26660. -- Macro: HAVE_PRE_DECREMENT
  26661. -- Macro: HAVE_POST_INCREMENT
  26662. -- Macro: HAVE_POST_DECREMENT
  26663. A C expression that is nonzero if the machine supports
  26664. pre-increment, pre-decrement, post-increment, or post-decrement
  26665. addressing respectively.
  26666. -- Macro: HAVE_PRE_MODIFY_DISP
  26667. -- Macro: HAVE_POST_MODIFY_DISP
  26668. A C expression that is nonzero if the machine supports pre- or
  26669. post-address side-effect generation involving constants other than
  26670. the size of the memory operand.
  26671. -- Macro: HAVE_PRE_MODIFY_REG
  26672. -- Macro: HAVE_POST_MODIFY_REG
  26673. A C expression that is nonzero if the machine supports pre- or
  26674. post-address side-effect generation involving a register
  26675. displacement.
  26676. -- Macro: CONSTANT_ADDRESS_P (X)
  26677. A C expression that is 1 if the RTX X is a constant which is a
  26678. valid address. On most machines the default definition of
  26679. '(CONSTANT_P (X) && GET_CODE (X) != CONST_DOUBLE)' is acceptable,
  26680. but a few machines are more restrictive as to which constant
  26681. addresses are supported.
  26682. -- Macro: CONSTANT_P (X)
  26683. 'CONSTANT_P', which is defined by target-independent code, accepts
  26684. integer-values expressions whose values are not explicitly known,
  26685. such as 'symbol_ref', 'label_ref', and 'high' expressions and
  26686. 'const' arithmetic expressions, in addition to 'const_int' and
  26687. 'const_double' expressions.
  26688. -- Macro: MAX_REGS_PER_ADDRESS
  26689. A number, the maximum number of registers that can appear in a
  26690. valid memory address. Note that it is up to you to specify a value
  26691. equal to the maximum number that 'TARGET_LEGITIMATE_ADDRESS_P'
  26692. would ever accept.
  26693. -- Target Hook: bool TARGET_LEGITIMATE_ADDRESS_P (machine_mode MODE,
  26694. rtx X, bool STRICT)
  26695. A function that returns whether X (an RTX) is a legitimate memory
  26696. address on the target machine for a memory operand of mode MODE.
  26697. Legitimate addresses are defined in two variants: a strict variant
  26698. and a non-strict one. The STRICT parameter chooses which variant
  26699. is desired by the caller.
  26700. The strict variant is used in the reload pass. It must be defined
  26701. so that any pseudo-register that has not been allocated a hard
  26702. register is considered a memory reference. This is because in
  26703. contexts where some kind of register is required, a pseudo-register
  26704. with no hard register must be rejected. For non-hard registers,
  26705. the strict variant should look up the 'reg_renumber' array; it
  26706. should then proceed using the hard register number in the array, or
  26707. treat the pseudo as a memory reference if the array holds '-1'.
  26708. The non-strict variant is used in other passes. It must be defined
  26709. to accept all pseudo-registers in every context where some kind of
  26710. register is required.
  26711. Normally, constant addresses which are the sum of a 'symbol_ref'
  26712. and an integer are stored inside a 'const' RTX to mark them as
  26713. constant. Therefore, there is no need to recognize such sums
  26714. specifically as legitimate addresses. Normally you would simply
  26715. recognize any 'const' as legitimate.
  26716. Usually 'PRINT_OPERAND_ADDRESS' is not prepared to handle constant
  26717. sums that are not marked with 'const'. It assumes that a naked
  26718. 'plus' indicates indexing. If so, then you _must_ reject such
  26719. naked constant sums as illegitimate addresses, so that none of them
  26720. will be given to 'PRINT_OPERAND_ADDRESS'.
  26721. On some machines, whether a symbolic address is legitimate depends
  26722. on the section that the address refers to. On these machines,
  26723. define the target hook 'TARGET_ENCODE_SECTION_INFO' to store the
  26724. information into the 'symbol_ref', and then check for it here.
  26725. When you see a 'const', you will have to look inside it to find the
  26726. 'symbol_ref' in order to determine the section. *Note Assembler
  26727. Format::.
  26728. Some ports are still using a deprecated legacy substitute for this
  26729. hook, the 'GO_IF_LEGITIMATE_ADDRESS' macro. This macro has this
  26730. syntax:
  26731. #define GO_IF_LEGITIMATE_ADDRESS (MODE, X, LABEL)
  26732. and should 'goto LABEL' if the address X is a valid address on the
  26733. target machine for a memory operand of mode MODE.
  26734. Compiler source files that want to use the strict variant of this
  26735. macro define the macro 'REG_OK_STRICT'. You should use an '#ifdef
  26736. REG_OK_STRICT' conditional to define the strict variant in that
  26737. case and the non-strict variant otherwise.
  26738. Using the hook is usually simpler because it limits the number of
  26739. files that are recompiled when changes are made.
  26740. -- Macro: TARGET_MEM_CONSTRAINT
  26741. A single character to be used instead of the default ''m''
  26742. character for general memory addresses. This defines the
  26743. constraint letter which matches the memory addresses accepted by
  26744. 'TARGET_LEGITIMATE_ADDRESS_P'. Define this macro if you want to
  26745. support new address formats in your back end without changing the
  26746. semantics of the ''m'' constraint. This is necessary in order to
  26747. preserve functionality of inline assembly constructs using the
  26748. ''m'' constraint.
  26749. -- Macro: FIND_BASE_TERM (X)
  26750. A C expression to determine the base term of address X, or to
  26751. provide a simplified version of X from which 'alias.c' can easily
  26752. find the base term. This macro is used in only two places:
  26753. 'find_base_value' and 'find_base_term' in 'alias.c'.
  26754. It is always safe for this macro to not be defined. It exists so
  26755. that alias analysis can understand machine-dependent addresses.
  26756. The typical use of this macro is to handle addresses containing a
  26757. label_ref or symbol_ref within an UNSPEC.
  26758. -- Target Hook: rtx TARGET_LEGITIMIZE_ADDRESS (rtx X, rtx OLDX,
  26759. machine_mode MODE)
  26760. This hook is given an invalid memory address X for an operand of
  26761. mode MODE and should try to return a valid memory address.
  26762. X will always be the result of a call to 'break_out_memory_refs',
  26763. and OLDX will be the operand that was given to that function to
  26764. produce X.
  26765. The code of the hook should not alter the substructure of X. If it
  26766. transforms X into a more legitimate form, it should return the new
  26767. X.
  26768. It is not necessary for this hook to come up with a legitimate
  26769. address, with the exception of native TLS addresses (*note Emulated
  26770. TLS::). The compiler has standard ways of doing so in all cases.
  26771. In fact, if the target supports only emulated TLS, it is safe to
  26772. omit this hook or make it return X if it cannot find a valid way to
  26773. legitimize the address. But often a machine-dependent strategy can
  26774. generate better code.
  26775. -- Macro: LEGITIMIZE_RELOAD_ADDRESS (X, MODE, OPNUM, TYPE, IND_LEVELS,
  26776. WIN)
  26777. A C compound statement that attempts to replace X, which is an
  26778. address that needs reloading, with a valid memory address for an
  26779. operand of mode MODE. WIN will be a C statement label elsewhere in
  26780. the code. It is not necessary to define this macro, but it might
  26781. be useful for performance reasons.
  26782. For example, on the i386, it is sometimes possible to use a single
  26783. reload register instead of two by reloading a sum of two pseudo
  26784. registers into a register. On the other hand, for number of RISC
  26785. processors offsets are limited so that often an intermediate
  26786. address needs to be generated in order to address a stack slot. By
  26787. defining 'LEGITIMIZE_RELOAD_ADDRESS' appropriately, the
  26788. intermediate addresses generated for adjacent some stack slots can
  26789. be made identical, and thus be shared.
  26790. _Note_: This macro should be used with caution. It is necessary to
  26791. know something of how reload works in order to effectively use
  26792. this, and it is quite easy to produce macros that build in too much
  26793. knowledge of reload internals.
  26794. _Note_: This macro must be able to reload an address created by a
  26795. previous invocation of this macro. If it fails to handle such
  26796. addresses then the compiler may generate incorrect code or abort.
  26797. The macro definition should use 'push_reload' to indicate parts
  26798. that need reloading; OPNUM, TYPE and IND_LEVELS are usually
  26799. suitable to be passed unaltered to 'push_reload'.
  26800. The code generated by this macro must not alter the substructure of
  26801. X. If it transforms X into a more legitimate form, it should
  26802. assign X (which will always be a C variable) a new value. This
  26803. also applies to parts that you change indirectly by calling
  26804. 'push_reload'.
  26805. The macro definition may use 'strict_memory_address_p' to test if
  26806. the address has become legitimate.
  26807. If you want to change only a part of X, one standard way of doing
  26808. this is to use 'copy_rtx'. Note, however, that it unshares only a
  26809. single level of rtl. Thus, if the part to be changed is not at the
  26810. top level, you'll need to replace first the top level. It is not
  26811. necessary for this macro to come up with a legitimate address; but
  26812. often a machine-dependent strategy can generate better code.
  26813. -- Target Hook: bool TARGET_MODE_DEPENDENT_ADDRESS_P (const_rtx ADDR,
  26814. addr_space_t ADDRSPACE)
  26815. This hook returns 'true' if memory address ADDR in address space
  26816. ADDRSPACE can have different meanings depending on the machine mode
  26817. of the memory reference it is used for or if the address is valid
  26818. for some modes but not others.
  26819. Autoincrement and autodecrement addresses typically have
  26820. mode-dependent effects because the amount of the increment or
  26821. decrement is the size of the operand being addressed. Some
  26822. machines have other mode-dependent addresses. Many RISC machines
  26823. have no mode-dependent addresses.
  26824. You may assume that ADDR is a valid address for the machine.
  26825. The default version of this hook returns 'false'.
  26826. -- Target Hook: bool TARGET_LEGITIMATE_CONSTANT_P (machine_mode MODE,
  26827. rtx X)
  26828. This hook returns true if X is a legitimate constant for a
  26829. MODE-mode immediate operand on the target machine. You can assume
  26830. that X satisfies 'CONSTANT_P', so you need not check this.
  26831. The default definition returns true.
  26832. -- Target Hook: rtx TARGET_DELEGITIMIZE_ADDRESS (rtx X)
  26833. This hook is used to undo the possibly obfuscating effects of the
  26834. 'LEGITIMIZE_ADDRESS' and 'LEGITIMIZE_RELOAD_ADDRESS' target macros.
  26835. Some backend implementations of these macros wrap symbol references
  26836. inside an 'UNSPEC' rtx to represent PIC or similar addressing
  26837. modes. This target hook allows GCC's optimizers to understand the
  26838. semantics of these opaque 'UNSPEC's by converting them back into
  26839. their original form.
  26840. -- Target Hook: bool TARGET_CONST_NOT_OK_FOR_DEBUG_P (rtx X)
  26841. This hook should return true if X should not be emitted into debug
  26842. sections.
  26843. -- Target Hook: bool TARGET_CANNOT_FORCE_CONST_MEM (machine_mode MODE,
  26844. rtx X)
  26845. This hook should return true if X is of a form that cannot (or
  26846. should not) be spilled to the constant pool. MODE is the mode of
  26847. X.
  26848. The default version of this hook returns false.
  26849. The primary reason to define this hook is to prevent reload from
  26850. deciding that a non-legitimate constant would be better reloaded
  26851. from the constant pool instead of spilling and reloading a register
  26852. holding the constant. This restriction is often true of addresses
  26853. of TLS symbols for various targets.
  26854. -- Target Hook: bool TARGET_USE_BLOCKS_FOR_CONSTANT_P (machine_mode
  26855. MODE, const_rtx X)
  26856. This hook should return true if pool entries for constant X can be
  26857. placed in an 'object_block' structure. MODE is the mode of X.
  26858. The default version returns false for all constants.
  26859. -- Target Hook: bool TARGET_USE_BLOCKS_FOR_DECL_P (const_tree DECL)
  26860. This hook should return true if pool entries for DECL should be
  26861. placed in an 'object_block' structure.
  26862. The default version returns true for all decls.
  26863. -- Target Hook: tree TARGET_BUILTIN_RECIPROCAL (tree FNDECL)
  26864. This hook should return the DECL of a function that implements the
  26865. reciprocal of the machine-specific builtin function FNDECL, or
  26866. 'NULL_TREE' if such a function is not available.
  26867. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD (void)
  26868. This hook should return the DECL of a function F that given an
  26869. address ADDR as an argument returns a mask M that can be used to
  26870. extract from two vectors the relevant data that resides in ADDR in
  26871. case ADDR is not properly aligned.
  26872. The autovectorizer, when vectorizing a load operation from an
  26873. address ADDR that may be unaligned, will generate two vector loads
  26874. from the two aligned addresses around ADDR. It then generates a
  26875. 'REALIGN_LOAD' operation to extract the relevant data from the two
  26876. loaded vectors. The first two arguments to 'REALIGN_LOAD', V1 and
  26877. V2, are the two vectors, each of size VS, and the third argument,
  26878. OFF, defines how the data will be extracted from these two vectors:
  26879. if OFF is 0, then the returned vector is V2; otherwise, the
  26880. returned vector is composed from the last VS-OFF elements of V1
  26881. concatenated to the first OFF elements of V2.
  26882. If this hook is defined, the autovectorizer will generate a call to
  26883. F (using the DECL tree that this hook returns) and will use the
  26884. return value of F as the argument OFF to 'REALIGN_LOAD'.
  26885. Therefore, the mask M returned by F should comply with the
  26886. semantics expected by 'REALIGN_LOAD' described above. If this hook
  26887. is not defined, then ADDR will be used as the argument OFF to
  26888. 'REALIGN_LOAD', in which case the low log2(VS) - 1 bits of ADDR
  26889. will be considered.
  26890. -- Target Hook: int TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST (enum
  26891. vect_cost_for_stmt TYPE_OF_COST, tree VECTYPE, int MISALIGN)
  26892. Returns cost of different scalar or vector statements for
  26893. vectorization cost model. For vector memory operations the cost
  26894. may depend on type (VECTYPE) and misalignment value (MISALIGN).
  26895. -- Target Hook: bool TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
  26896. (const_tree TYPE, bool IS_PACKED)
  26897. Return true if vector alignment is reachable (by peeling N
  26898. iterations) for the given scalar type TYPE. IS_PACKED is false if
  26899. the scalar access using TYPE is known to be naturally aligned.
  26900. -- Target Hook: bool TARGET_VECTORIZE_VEC_PERM_CONST_OK (machine_mode,
  26901. const unsigned char *SEL)
  26902. Return true if a vector created for 'vec_perm_const' is valid.
  26903. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_CONVERSION (unsigned
  26904. CODE, tree DEST_TYPE, tree SRC_TYPE)
  26905. This hook should return the DECL of a function that implements
  26906. conversion of the input vector of type SRC_TYPE to type DEST_TYPE.
  26907. The value of CODE is one of the enumerators in 'enum tree_code' and
  26908. specifies how the conversion is to be applied (truncation,
  26909. rounding, etc.).
  26910. If this hook is defined, the autovectorizer will use the
  26911. 'TARGET_VECTORIZE_BUILTIN_CONVERSION' target hook when vectorizing
  26912. conversion. Otherwise, it will return 'NULL_TREE'.
  26913. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION
  26914. (unsigned CODE, tree VEC_TYPE_OUT, tree VEC_TYPE_IN)
  26915. This hook should return the decl of a function that implements the
  26916. vectorized variant of the function with the 'combined_fn' code CODE
  26917. or 'NULL_TREE' if such a function is not available. The return
  26918. type of the vectorized function shall be of vector type
  26919. VEC_TYPE_OUT and the argument types should be VEC_TYPE_IN.
  26920. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION
  26921. (tree FNDECL, tree VEC_TYPE_OUT, tree VEC_TYPE_IN)
  26922. This hook should return the decl of a function that implements the
  26923. vectorized variant of target built-in function 'fndecl'. The
  26924. return type of the vectorized function shall be of vector type
  26925. VEC_TYPE_OUT and the argument types should be VEC_TYPE_IN.
  26926. -- Target Hook: bool TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
  26927. (machine_mode MODE, const_tree TYPE, int MISALIGNMENT, bool
  26928. IS_PACKED)
  26929. This hook should return true if the target supports misaligned
  26930. vector store/load of a specific factor denoted in the MISALIGNMENT
  26931. parameter. The vector store/load should be of machine mode MODE
  26932. and the elements in the vectors should be of type TYPE. IS_PACKED
  26933. parameter is true if the memory access is defined in a packed
  26934. struct.
  26935. -- Target Hook: machine_mode TARGET_VECTORIZE_PREFERRED_SIMD_MODE
  26936. (machine_mode MODE)
  26937. This hook should return the preferred mode for vectorizing scalar
  26938. mode MODE. The default is equal to 'word_mode', because the
  26939. vectorizer can do some transformations even in absence of
  26940. specialized SIMD hardware.
  26941. -- Target Hook: unsigned int
  26942. TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES (void)
  26943. This hook should return a mask of sizes that should be iterated
  26944. over after trying to autovectorize using the vector size derived
  26945. from the mode returned by 'TARGET_VECTORIZE_PREFERRED_SIMD_MODE'.
  26946. The default is zero which means to not iterate over other vector
  26947. sizes.
  26948. -- Target Hook: machine_mode TARGET_VECTORIZE_GET_MASK_MODE (unsigned
  26949. NUNITS, unsigned LENGTH)
  26950. This hook returns mode to be used for a mask to be used for a
  26951. vector of specified LENGTH with NUNITS elements. By default an
  26952. integer vector mode of a proper size is returned.
  26953. -- Target Hook: void * TARGET_VECTORIZE_INIT_COST (struct loop
  26954. *LOOP_INFO)
  26955. This hook should initialize target-specific data structures in
  26956. preparation for modeling the costs of vectorizing a loop or basic
  26957. block. The default allocates three unsigned integers for
  26958. accumulating costs for the prologue, body, and epilogue of the loop
  26959. or basic block. If LOOP_INFO is non-NULL, it identifies the loop
  26960. being vectorized; otherwise a single block is being vectorized.
  26961. -- Target Hook: unsigned TARGET_VECTORIZE_ADD_STMT_COST (void *DATA,
  26962. int COUNT, enum vect_cost_for_stmt KIND, struct _stmt_vec_info
  26963. *STMT_INFO, int MISALIGN, enum vect_cost_model_location WHERE)
  26964. This hook should update the target-specific DATA in response to
  26965. adding COUNT copies of the given KIND of statement to a loop or
  26966. basic block. The default adds the builtin vectorizer cost for the
  26967. copies of the statement to the accumulator specified by WHERE, (the
  26968. prologue, body, or epilogue) and returns the amount added. The
  26969. return value should be viewed as a tentative cost that may later be
  26970. revised.
  26971. -- Target Hook: void TARGET_VECTORIZE_FINISH_COST (void *DATA, unsigned
  26972. *PROLOGUE_COST, unsigned *BODY_COST, unsigned *EPILOGUE_COST)
  26973. This hook should complete calculations of the cost of vectorizing a
  26974. loop or basic block based on DATA, and return the prologue, body,
  26975. and epilogue costs as unsigned integers. The default returns the
  26976. value of the three accumulators.
  26977. -- Target Hook: void TARGET_VECTORIZE_DESTROY_COST_DATA (void *DATA)
  26978. This hook should release DATA and any related data structures
  26979. allocated by TARGET_VECTORIZE_INIT_COST. The default releases the
  26980. accumulator.
  26981. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_GATHER (const_tree
  26982. MEM_VECTYPE, const_tree INDEX_TYPE, int SCALE)
  26983. Target builtin that implements vector gather operation.
  26984. MEM_VECTYPE is the vector type of the load and INDEX_TYPE is scalar
  26985. type of the index, scaled by SCALE. The default is 'NULL_TREE'
  26986. which means to not vectorize gather loads.
  26987. -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_SCATTER (const_tree
  26988. VECTYPE, const_tree INDEX_TYPE, int SCALE)
  26989. Target builtin that implements vector scatter operation. VECTYPE
  26990. is the vector type of the store and INDEX_TYPE is scalar type of
  26991. the index, scaled by SCALE. The default is 'NULL_TREE' which means
  26992. to not vectorize scatter stores.
  26993. -- Target Hook: int TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN
  26994. (struct cgraph_node *, struct cgraph_simd_clone *, TREE, INT)
  26995. This hook should set VECSIZE_MANGLE, VECSIZE_INT, VECSIZE_FLOAT
  26996. fields in SIMD_CLONE structure pointed by CLONE_INFO argument and
  26997. also SIMDLEN field if it was previously 0. The hook should return
  26998. 0 if SIMD clones shouldn't be emitted, or number of VECSIZE_MANGLE
  26999. variants that should be emitted.
  27000. -- Target Hook: void TARGET_SIMD_CLONE_ADJUST (struct cgraph_node *)
  27001. This hook should add implicit 'attribute(target("..."))' attribute
  27002. to SIMD clone NODE if needed.
  27003. -- Target Hook: int TARGET_SIMD_CLONE_USABLE (struct cgraph_node *)
  27004. This hook should return -1 if SIMD clone NODE shouldn't be used in
  27005. vectorized loops in current function, or non-negative number if it
  27006. is usable. In that case, the smaller the number is, the more
  27007. desirable it is to use it.
  27008. -- Target Hook: int TARGET_SIMT_VF (void)
  27009. Return number of threads in SIMT thread group on the target.
  27010. -- Target Hook: bool TARGET_GOACC_VALIDATE_DIMS (tree DECL, int *DIMS,
  27011. int FN_LEVEL)
  27012. This hook should check the launch dimensions provided for an
  27013. OpenACC compute region, or routine. Defaulted values are
  27014. represented as -1 and non-constant values as 0. The FN_LEVEL is
  27015. negative for the function corresponding to the compute region. For
  27016. a routine is is the outermost level at which partitioned execution
  27017. may be spawned. The hook should verify non-default values. If
  27018. DECL is NULL, global defaults are being validated and unspecified
  27019. defaults should be filled in. Diagnostics should be issued as
  27020. appropriate. Return true, if changes have been made. You must
  27021. override this hook to provide dimensions larger than 1.
  27022. -- Target Hook: int TARGET_GOACC_DIM_LIMIT (int AXIS)
  27023. This hook should return the maximum size of a particular dimension,
  27024. or zero if unbounded.
  27025. -- Target Hook: bool TARGET_GOACC_FORK_JOIN (gcall *CALL, const int
  27026. *DIMS, bool IS_FORK)
  27027. This hook can be used to convert IFN_GOACC_FORK and IFN_GOACC_JOIN
  27028. function calls to target-specific gimple, or indicate whether they
  27029. should be retained. It is executed during the oacc_device_lower
  27030. pass. It should return true, if the call should be retained. It
  27031. should return false, if it is to be deleted (either because
  27032. target-specific gimple has been inserted before it, or there is no
  27033. need for it). The default hook returns false, if there are no RTL
  27034. expanders for them.
  27035. -- Target Hook: void TARGET_GOACC_REDUCTION (gcall *CALL)
  27036. This hook is used by the oacc_transform pass to expand calls to the
  27037. GOACC_REDUCTION internal function, into a sequence of gimple
  27038. instructions. CALL is gimple statement containing the call to the
  27039. function. This hook removes statement CALL after the expanded
  27040. sequence has been inserted. This hook is also responsible for
  27041. allocating any storage for reductions when necessary.
  27042. 
  27043. File: gccint.info, Node: Anchored Addresses, Next: Condition Code, Prev: Addressing Modes, Up: Target Macros
  27044. 17.14 Anchored Addresses
  27045. ========================
  27046. GCC usually addresses every static object as a separate entity. For
  27047. example, if we have:
  27048. static int a, b, c;
  27049. int foo (void) { return a + b + c; }
  27050. the code for 'foo' will usually calculate three separate symbolic
  27051. addresses: those of 'a', 'b' and 'c'. On some targets, it would be
  27052. better to calculate just one symbolic address and access the three
  27053. variables relative to it. The equivalent pseudocode would be something
  27054. like:
  27055. int foo (void)
  27056. {
  27057. register int *xr = &x;
  27058. return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
  27059. }
  27060. (which isn't valid C). We refer to shared addresses like 'x' as
  27061. "section anchors". Their use is controlled by '-fsection-anchors'.
  27062. The hooks below describe the target properties that GCC needs to know
  27063. in order to make effective use of section anchors. It won't use section
  27064. anchors at all unless either 'TARGET_MIN_ANCHOR_OFFSET' or
  27065. 'TARGET_MAX_ANCHOR_OFFSET' is set to a nonzero value.
  27066. -- Target Hook: HOST_WIDE_INT TARGET_MIN_ANCHOR_OFFSET
  27067. The minimum offset that should be applied to a section anchor. On
  27068. most targets, it should be the smallest offset that can be applied
  27069. to a base register while still giving a legitimate address for
  27070. every mode. The default value is 0.
  27071. -- Target Hook: HOST_WIDE_INT TARGET_MAX_ANCHOR_OFFSET
  27072. Like 'TARGET_MIN_ANCHOR_OFFSET', but the maximum (inclusive) offset
  27073. that should be applied to section anchors. The default value is 0.
  27074. -- Target Hook: void TARGET_ASM_OUTPUT_ANCHOR (rtx X)
  27075. Write the assembly code to define section anchor X, which is a
  27076. 'SYMBOL_REF' for which 'SYMBOL_REF_ANCHOR_P (X)' is true. The hook
  27077. is called with the assembly output position set to the beginning of
  27078. 'SYMBOL_REF_BLOCK (X)'.
  27079. If 'ASM_OUTPUT_DEF' is available, the hook's default definition
  27080. uses it to define the symbol as '. + SYMBOL_REF_BLOCK_OFFSET (X)'.
  27081. If 'ASM_OUTPUT_DEF' is not available, the hook's default definition
  27082. is 'NULL', which disables the use of section anchors altogether.
  27083. -- Target Hook: bool TARGET_USE_ANCHORS_FOR_SYMBOL_P (const_rtx X)
  27084. Return true if GCC should attempt to use anchors to access
  27085. 'SYMBOL_REF' X. You can assume 'SYMBOL_REF_HAS_BLOCK_INFO_P (X)'
  27086. and '!SYMBOL_REF_ANCHOR_P (X)'.
  27087. The default version is correct for most targets, but you might need
  27088. to intercept this hook to handle things like target-specific
  27089. attributes or target-specific sections.
  27090. 
  27091. File: gccint.info, Node: Condition Code, Next: Costs, Prev: Anchored Addresses, Up: Target Macros
  27092. 17.15 Condition Code Status
  27093. ===========================
  27094. The macros in this section can be split in two families, according to
  27095. the two ways of representing condition codes in GCC.
  27096. The first representation is the so called '(cc0)' representation (*note
  27097. Jump Patterns::), where all instructions can have an implicit clobber of
  27098. the condition codes. The second is the condition code register
  27099. representation, which provides better schedulability for architectures
  27100. that do have a condition code register, but on which most instructions
  27101. do not affect it. The latter category includes most RISC machines.
  27102. The implicit clobbering poses a strong restriction on the placement of
  27103. the definition and use of the condition code. In the past the
  27104. definition and use were always adjacent. However, recent changes to
  27105. support trapping arithmatic may result in the definition and user being
  27106. in different blocks. Thus, there may be a 'NOTE_INSN_BASIC_BLOCK'
  27107. between them. Additionally, the definition may be the source of
  27108. exception handling edges.
  27109. These restrictions can prevent important optimizations on some
  27110. machines. For example, on the IBM RS/6000, there is a delay for taken
  27111. branches unless the condition code register is set three instructions
  27112. earlier than the conditional branch. The instruction scheduler cannot
  27113. perform this optimization if it is not permitted to separate the
  27114. definition and use of the condition code register.
  27115. For this reason, it is possible and suggested to use a register to
  27116. represent the condition code for new ports. If there is a specific
  27117. condition code register in the machine, use a hard register. If the
  27118. condition code or comparison result can be placed in any general
  27119. register, or if there are multiple condition registers, use a pseudo
  27120. register. Registers used to store the condition code value will usually
  27121. have a mode that is in class 'MODE_CC'.
  27122. Alternatively, you can use 'BImode' if the comparison operator is
  27123. specified already in the compare instruction. In this case, you are not
  27124. interested in most macros in this section.
  27125. * Menu:
  27126. * CC0 Condition Codes:: Old style representation of condition codes.
  27127. * MODE_CC Condition Codes:: Modern representation of condition codes.
  27128. 
  27129. File: gccint.info, Node: CC0 Condition Codes, Next: MODE_CC Condition Codes, Up: Condition Code
  27130. 17.15.1 Representation of condition codes using '(cc0)'
  27131. -------------------------------------------------------
  27132. The file 'conditions.h' defines a variable 'cc_status' to describe how
  27133. the condition code was computed (in case the interpretation of the
  27134. condition code depends on the instruction that it was set by). This
  27135. variable contains the RTL expressions on which the condition code is
  27136. currently based, and several standard flags.
  27137. Sometimes additional machine-specific flags must be defined in the
  27138. machine description header file. It can also add additional
  27139. machine-specific information by defining 'CC_STATUS_MDEP'.
  27140. -- Macro: CC_STATUS_MDEP
  27141. C code for a data type which is used for declaring the 'mdep'
  27142. component of 'cc_status'. It defaults to 'int'.
  27143. This macro is not used on machines that do not use 'cc0'.
  27144. -- Macro: CC_STATUS_MDEP_INIT
  27145. A C expression to initialize the 'mdep' field to "empty". The
  27146. default definition does nothing, since most machines don't use the
  27147. field anyway. If you want to use the field, you should probably
  27148. define this macro to initialize it.
  27149. This macro is not used on machines that do not use 'cc0'.
  27150. -- Macro: NOTICE_UPDATE_CC (EXP, INSN)
  27151. A C compound statement to set the components of 'cc_status'
  27152. appropriately for an insn INSN whose body is EXP. It is this
  27153. macro's responsibility to recognize insns that set the condition
  27154. code as a byproduct of other activity as well as those that
  27155. explicitly set '(cc0)'.
  27156. This macro is not used on machines that do not use 'cc0'.
  27157. If there are insns that do not set the condition code but do alter
  27158. other machine registers, this macro must check to see whether they
  27159. invalidate the expressions that the condition code is recorded as
  27160. reflecting. For example, on the 68000, insns that store in address
  27161. registers do not set the condition code, which means that usually
  27162. 'NOTICE_UPDATE_CC' can leave 'cc_status' unaltered for such insns.
  27163. But suppose that the previous insn set the condition code based on
  27164. location 'a4@(102)' and the current insn stores a new value in
  27165. 'a4'. Although the condition code is not changed by this, it will
  27166. no longer be true that it reflects the contents of 'a4@(102)'.
  27167. Therefore, 'NOTICE_UPDATE_CC' must alter 'cc_status' in this case
  27168. to say that nothing is known about the condition code value.
  27169. The definition of 'NOTICE_UPDATE_CC' must be prepared to deal with
  27170. the results of peephole optimization: insns whose patterns are
  27171. 'parallel' RTXs containing various 'reg', 'mem' or constants which
  27172. are just the operands. The RTL structure of these insns is not
  27173. sufficient to indicate what the insns actually do. What
  27174. 'NOTICE_UPDATE_CC' should do when it sees one is just to run
  27175. 'CC_STATUS_INIT'.
  27176. A possible definition of 'NOTICE_UPDATE_CC' is to call a function
  27177. that looks at an attribute (*note Insn Attributes::) named, for
  27178. example, 'cc'. This avoids having detailed information about
  27179. patterns in two places, the 'md' file and in 'NOTICE_UPDATE_CC'.
  27180. 
  27181. File: gccint.info, Node: MODE_CC Condition Codes, Prev: CC0 Condition Codes, Up: Condition Code
  27182. 17.15.2 Representation of condition codes using registers
  27183. ---------------------------------------------------------
  27184. -- Macro: SELECT_CC_MODE (OP, X, Y)
  27185. On many machines, the condition code may be produced by other
  27186. instructions than compares, for example the branch can use directly
  27187. the condition code set by a subtract instruction. However, on some
  27188. machines when the condition code is set this way some bits (such as
  27189. the overflow bit) are not set in the same way as a test
  27190. instruction, so that a different branch instruction must be used
  27191. for some conditional branches. When this happens, use the machine
  27192. mode of the condition code register to record different formats of
  27193. the condition code register. Modes can also be used to record
  27194. which compare instruction (e.g. a signed or an unsigned
  27195. comparison) produced the condition codes.
  27196. If other modes than 'CCmode' are required, add them to
  27197. 'MACHINE-modes.def' and define 'SELECT_CC_MODE' to choose a mode
  27198. given an operand of a compare. This is needed because the modes
  27199. have to be chosen not only during RTL generation but also, for
  27200. example, by instruction combination. The result of
  27201. 'SELECT_CC_MODE' should be consistent with the mode used in the
  27202. patterns; for example to support the case of the add on the SPARC
  27203. discussed above, we have the pattern
  27204. (define_insn ""
  27205. [(set (reg:CCNZ 0)
  27206. (compare:CCNZ
  27207. (plus:SI (match_operand:SI 0 "register_operand" "%r")
  27208. (match_operand:SI 1 "arith_operand" "rI"))
  27209. (const_int 0)))]
  27210. ""
  27211. "...")
  27212. together with a 'SELECT_CC_MODE' that returns 'CCNZmode' for
  27213. comparisons whose argument is a 'plus':
  27214. #define SELECT_CC_MODE(OP,X,Y) \
  27215. (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT \
  27216. ? ((OP == LT || OP == LE || OP == GT || OP == GE) \
  27217. ? CCFPEmode : CCFPmode) \
  27218. : ((GET_CODE (X) == PLUS || GET_CODE (X) == MINUS \
  27219. || GET_CODE (X) == NEG || GET_CODE (x) == ASHIFT) \
  27220. ? CCNZmode : CCmode))
  27221. Another reason to use modes is to retain information on which
  27222. operands were used by the comparison; see 'REVERSIBLE_CC_MODE'
  27223. later in this section.
  27224. You should define this macro if and only if you define extra CC
  27225. modes in 'MACHINE-modes.def'.
  27226. -- Target Hook: void TARGET_CANONICALIZE_COMPARISON (int *CODE, rtx
  27227. *OP0, rtx *OP1, bool OP0_PRESERVE_VALUE)
  27228. On some machines not all possible comparisons are defined, but you
  27229. can convert an invalid comparison into a valid one. For example,
  27230. the Alpha does not have a 'GT' comparison, but you can use an 'LT'
  27231. comparison instead and swap the order of the operands.
  27232. On such machines, implement this hook to do any required
  27233. conversions. CODE is the initial comparison code and OP0 and OP1
  27234. are the left and right operands of the comparison, respectively.
  27235. If OP0_PRESERVE_VALUE is 'true' the implementation is not allowed
  27236. to change the value of OP0 since the value might be used in RTXs
  27237. which aren't comparisons. E.g. the implementation is not allowed
  27238. to swap operands in that case.
  27239. GCC will not assume that the comparison resulting from this macro
  27240. is valid but will see if the resulting insn matches a pattern in
  27241. the 'md' file.
  27242. You need not to implement this hook if it would never change the
  27243. comparison code or operands.
  27244. -- Macro: REVERSIBLE_CC_MODE (MODE)
  27245. A C expression whose value is one if it is always safe to reverse a
  27246. comparison whose mode is MODE. If 'SELECT_CC_MODE' can ever return
  27247. MODE for a floating-point inequality comparison, then
  27248. 'REVERSIBLE_CC_MODE (MODE)' must be zero.
  27249. You need not define this macro if it would always returns zero or
  27250. if the floating-point format is anything other than
  27251. 'IEEE_FLOAT_FORMAT'. For example, here is the definition used on
  27252. the SPARC, where floating-point inequality comparisons are given
  27253. either 'CCFPEmode' or 'CCFPmode':
  27254. #define REVERSIBLE_CC_MODE(MODE) \
  27255. ((MODE) != CCFPEmode && (MODE) != CCFPmode)
  27256. -- Macro: REVERSE_CONDITION (CODE, MODE)
  27257. A C expression whose value is reversed condition code of the CODE
  27258. for comparison done in CC_MODE MODE. The macro is used only in
  27259. case 'REVERSIBLE_CC_MODE (MODE)' is nonzero. Define this macro in
  27260. case machine has some non-standard way how to reverse certain
  27261. conditionals. For instance in case all floating point conditions
  27262. are non-trapping, compiler may freely convert unordered compares to
  27263. ordered ones. Then definition may look like:
  27264. #define REVERSE_CONDITION(CODE, MODE) \
  27265. ((MODE) != CCFPmode ? reverse_condition (CODE) \
  27266. : reverse_condition_maybe_unordered (CODE))
  27267. -- Target Hook: bool TARGET_FIXED_CONDITION_CODE_REGS (unsigned int
  27268. *P1, unsigned int *P2)
  27269. On targets which do not use '(cc0)', and which use a hard register
  27270. rather than a pseudo-register to hold condition codes, the regular
  27271. CSE passes are often not able to identify cases in which the hard
  27272. register is set to a common value. Use this hook to enable a small
  27273. pass which optimizes such cases. This hook should return true to
  27274. enable this pass, and it should set the integers to which its
  27275. arguments point to the hard register numbers used for condition
  27276. codes. When there is only one such register, as is true on most
  27277. systems, the integer pointed to by P2 should be set to
  27278. 'INVALID_REGNUM'.
  27279. The default version of this hook returns false.
  27280. -- Target Hook: machine_mode TARGET_CC_MODES_COMPATIBLE (machine_mode
  27281. M1, machine_mode M2)
  27282. On targets which use multiple condition code modes in class
  27283. 'MODE_CC', it is sometimes the case that a comparison can be
  27284. validly done in more than one mode. On such a system, define this
  27285. target hook to take two mode arguments and to return a mode in
  27286. which both comparisons may be validly done. If there is no such
  27287. mode, return 'VOIDmode'.
  27288. The default version of this hook checks whether the modes are the
  27289. same. If they are, it returns that mode. If they are different,
  27290. it returns 'VOIDmode'.
  27291. -- Target Hook: unsigned int TARGET_FLAGS_REGNUM
  27292. If the target has a dedicated flags register, and it needs to use
  27293. the post-reload comparison elimination pass, then this value should
  27294. be set appropriately.
  27295. 
  27296. File: gccint.info, Node: Costs, Next: Scheduling, Prev: Condition Code, Up: Target Macros
  27297. 17.16 Describing Relative Costs of Operations
  27298. =============================================
  27299. These macros let you describe the relative speed of various operations
  27300. on the target machine.
  27301. -- Macro: REGISTER_MOVE_COST (MODE, FROM, TO)
  27302. A C expression for the cost of moving data of mode MODE from a
  27303. register in class FROM to one in class TO. The classes are
  27304. expressed using the enumeration values such as 'GENERAL_REGS'. A
  27305. value of 2 is the default; other values are interpreted relative to
  27306. that.
  27307. It is not required that the cost always equal 2 when FROM is the
  27308. same as TO; on some machines it is expensive to move between
  27309. registers if they are not general registers.
  27310. If reload sees an insn consisting of a single 'set' between two
  27311. hard registers, and if 'REGISTER_MOVE_COST' applied to their
  27312. classes returns a value of 2, reload does not check to ensure that
  27313. the constraints of the insn are met. Setting a cost of other than
  27314. 2 will allow reload to verify that the constraints are met. You
  27315. should do this if the 'movM' pattern's constraints do not allow
  27316. such copying.
  27317. These macros are obsolete, new ports should use the target hook
  27318. 'TARGET_REGISTER_MOVE_COST' instead.
  27319. -- Target Hook: int TARGET_REGISTER_MOVE_COST (machine_mode MODE,
  27320. reg_class_t FROM, reg_class_t TO)
  27321. This target hook should return the cost of moving data of mode MODE
  27322. from a register in class FROM to one in class TO. The classes are
  27323. expressed using the enumeration values such as 'GENERAL_REGS'. A
  27324. value of 2 is the default; other values are interpreted relative to
  27325. that.
  27326. It is not required that the cost always equal 2 when FROM is the
  27327. same as TO; on some machines it is expensive to move between
  27328. registers if they are not general registers.
  27329. If reload sees an insn consisting of a single 'set' between two
  27330. hard registers, and if 'TARGET_REGISTER_MOVE_COST' applied to their
  27331. classes returns a value of 2, reload does not check to ensure that
  27332. the constraints of the insn are met. Setting a cost of other than
  27333. 2 will allow reload to verify that the constraints are met. You
  27334. should do this if the 'movM' pattern's constraints do not allow
  27335. such copying.
  27336. The default version of this function returns 2.
  27337. -- Macro: MEMORY_MOVE_COST (MODE, CLASS, IN)
  27338. A C expression for the cost of moving data of mode MODE between a
  27339. register of class CLASS and memory; IN is zero if the value is to
  27340. be written to memory, nonzero if it is to be read in. This cost is
  27341. relative to those in 'REGISTER_MOVE_COST'. If moving between
  27342. registers and memory is more expensive than between two registers,
  27343. you should define this macro to express the relative cost.
  27344. If you do not define this macro, GCC uses a default cost of 4 plus
  27345. the cost of copying via a secondary reload register, if one is
  27346. needed. If your machine requires a secondary reload register to
  27347. copy between memory and a register of CLASS but the reload
  27348. mechanism is more complex than copying via an intermediate, define
  27349. this macro to reflect the actual cost of the move.
  27350. GCC defines the function 'memory_move_secondary_cost' if secondary
  27351. reloads are needed. It computes the costs due to copying via a
  27352. secondary register. If your machine copies from memory using a
  27353. secondary register in the conventional way but the default base
  27354. value of 4 is not correct for your machine, define this macro to
  27355. add some other value to the result of that function. The arguments
  27356. to that function are the same as to this macro.
  27357. These macros are obsolete, new ports should use the target hook
  27358. 'TARGET_MEMORY_MOVE_COST' instead.
  27359. -- Target Hook: int TARGET_MEMORY_MOVE_COST (machine_mode MODE,
  27360. reg_class_t RCLASS, bool IN)
  27361. This target hook should return the cost of moving data of mode MODE
  27362. between a register of class RCLASS and memory; IN is 'false' if the
  27363. value is to be written to memory, 'true' if it is to be read in.
  27364. This cost is relative to those in 'TARGET_REGISTER_MOVE_COST'. If
  27365. moving between registers and memory is more expensive than between
  27366. two registers, you should add this target hook to express the
  27367. relative cost.
  27368. If you do not add this target hook, GCC uses a default cost of 4
  27369. plus the cost of copying via a secondary reload register, if one is
  27370. needed. If your machine requires a secondary reload register to
  27371. copy between memory and a register of RCLASS but the reload
  27372. mechanism is more complex than copying via an intermediate, use
  27373. this target hook to reflect the actual cost of the move.
  27374. GCC defines the function 'memory_move_secondary_cost' if secondary
  27375. reloads are needed. It computes the costs due to copying via a
  27376. secondary register. If your machine copies from memory using a
  27377. secondary register in the conventional way but the default base
  27378. value of 4 is not correct for your machine, use this target hook to
  27379. add some other value to the result of that function. The arguments
  27380. to that function are the same as to this target hook.
  27381. -- Macro: BRANCH_COST (SPEED_P, PREDICTABLE_P)
  27382. A C expression for the cost of a branch instruction. A value of 1
  27383. is the default; other values are interpreted relative to that.
  27384. Parameter SPEED_P is true when the branch in question should be
  27385. optimized for speed. When it is false, 'BRANCH_COST' should return
  27386. a value optimal for code size rather than performance.
  27387. PREDICTABLE_P is true for well-predicted branches. On many
  27388. architectures the 'BRANCH_COST' can be reduced then.
  27389. Here are additional macros which do not specify precise relative costs,
  27390. but only that certain actions are more expensive than GCC would
  27391. ordinarily expect.
  27392. -- Macro: SLOW_BYTE_ACCESS
  27393. Define this macro as a C expression which is nonzero if accessing
  27394. less than a word of memory (i.e. a 'char' or a 'short') is no
  27395. faster than accessing a word of memory, i.e., if such access
  27396. require more than one instruction or if there is no difference in
  27397. cost between byte and (aligned) word loads.
  27398. When this macro is not defined, the compiler will access a field by
  27399. finding the smallest containing object; when it is defined, a
  27400. fullword load will be used if alignment permits. Unless bytes
  27401. accesses are faster than word accesses, using word accesses is
  27402. preferable since it may eliminate subsequent memory access if
  27403. subsequent accesses occur to other fields in the same word of the
  27404. structure, but to different bytes.
  27405. -- Macro: SLOW_UNALIGNED_ACCESS (MODE, ALIGNMENT)
  27406. Define this macro to be the value 1 if memory accesses described by
  27407. the MODE and ALIGNMENT parameters have a cost many times greater
  27408. than aligned accesses, for example if they are emulated in a trap
  27409. handler. This macro is invoked only for unaligned accesses, i.e.
  27410. when 'ALIGNMENT < GET_MODE_ALIGNMENT (MODE)'.
  27411. When this macro is nonzero, the compiler will act as if
  27412. 'STRICT_ALIGNMENT' were nonzero when generating code for block
  27413. moves. This can cause significantly more instructions to be
  27414. produced. Therefore, do not set this macro nonzero if unaligned
  27415. accesses only add a cycle or two to the time for a memory access.
  27416. If the value of this macro is always zero, it need not be defined.
  27417. If this macro is defined, it should produce a nonzero value when
  27418. 'STRICT_ALIGNMENT' is nonzero.
  27419. -- Macro: MOVE_RATIO (SPEED)
  27420. The threshold of number of scalar memory-to-memory move insns,
  27421. _below_ which a sequence of insns should be generated instead of a
  27422. string move insn or a library call. Increasing the value will
  27423. always make code faster, but eventually incurs high cost in
  27424. increased code size.
  27425. Note that on machines where the corresponding move insn is a
  27426. 'define_expand' that emits a sequence of insns, this macro counts
  27427. the number of such sequences.
  27428. The parameter SPEED is true if the code is currently being
  27429. optimized for speed rather than size.
  27430. If you don't define this, a reasonable default is used.
  27431. -- Target Hook: bool TARGET_USE_BY_PIECES_INFRASTRUCTURE_P (unsigned
  27432. HOST_WIDE_INT SIZE, unsigned int ALIGNMENT, enum
  27433. by_pieces_operation OP, bool SPEED_P)
  27434. GCC will attempt several strategies when asked to copy between two
  27435. areas of memory, or to set, clear or store to memory, for example
  27436. when copying a 'struct'. The 'by_pieces' infrastructure implements
  27437. such memory operations as a sequence of load, store or move insns.
  27438. Alternate strategies are to expand the 'movmem' or 'setmem' optabs,
  27439. to emit a library call, or to emit unit-by-unit, loop-based
  27440. operations.
  27441. This target hook should return true if, for a memory operation with
  27442. a given SIZE and ALIGNMENT, using the 'by_pieces' infrastructure is
  27443. expected to result in better code generation. Both SIZE and
  27444. ALIGNMENT are measured in terms of storage units.
  27445. The parameter OP is one of: 'CLEAR_BY_PIECES', 'MOVE_BY_PIECES',
  27446. 'SET_BY_PIECES', 'STORE_BY_PIECES' or 'COMPARE_BY_PIECES'. These
  27447. describe the type of memory operation under consideration.
  27448. The parameter SPEED_P is true if the code is currently being
  27449. optimized for speed rather than size.
  27450. Returning true for higher values of SIZE can improve code
  27451. generation for speed if the target does not provide an
  27452. implementation of the 'movmem' or 'setmem' standard names, if the
  27453. 'movmem' or 'setmem' implementation would be more expensive than a
  27454. sequence of insns, or if the overhead of a library call would
  27455. dominate that of the body of the memory operation.
  27456. Returning true for higher values of 'size' may also cause an
  27457. increase in code size, for example where the number of insns
  27458. emitted to perform a move would be greater than that of a library
  27459. call.
  27460. -- Target Hook: int TARGET_COMPARE_BY_PIECES_BRANCH_RATIO (machine_mode
  27461. MODE)
  27462. When expanding a block comparison in MODE, gcc can try to reduce
  27463. the number of branches at the expense of more memory operations.
  27464. This hook allows the target to override the default choice. It
  27465. should return the factor by which branches should be reduced over
  27466. the plain expansion with one comparison per MODE-sized piece. A
  27467. port can also prevent a particular mode from being used for block
  27468. comparisons by returning a negative number from this hook.
  27469. -- Macro: MOVE_MAX_PIECES
  27470. A C expression used by 'move_by_pieces' to determine the largest
  27471. unit a load or store used to copy memory is. Defaults to
  27472. 'MOVE_MAX'.
  27473. -- Macro: STORE_MAX_PIECES
  27474. A C expression used by 'store_by_pieces' to determine the largest
  27475. unit a store used to memory is. Defaults to 'MOVE_MAX_PIECES', or
  27476. two times the size of 'HOST_WIDE_INT', whichever is smaller.
  27477. -- Macro: COMPARE_MAX_PIECES
  27478. A C expression used by 'compare_by_pieces' to determine the largest
  27479. unit a load or store used to compare memory is. Defaults to
  27480. 'MOVE_MAX_PIECES'.
  27481. -- Macro: CLEAR_RATIO (SPEED)
  27482. The threshold of number of scalar move insns, _below_ which a
  27483. sequence of insns should be generated to clear memory instead of a
  27484. string clear insn or a library call. Increasing the value will
  27485. always make code faster, but eventually incurs high cost in
  27486. increased code size.
  27487. The parameter SPEED is true if the code is currently being
  27488. optimized for speed rather than size.
  27489. If you don't define this, a reasonable default is used.
  27490. -- Macro: SET_RATIO (SPEED)
  27491. The threshold of number of scalar move insns, _below_ which a
  27492. sequence of insns should be generated to set memory to a constant
  27493. value, instead of a block set insn or a library call. Increasing
  27494. the value will always make code faster, but eventually incurs high
  27495. cost in increased code size.
  27496. The parameter SPEED is true if the code is currently being
  27497. optimized for speed rather than size.
  27498. If you don't define this, it defaults to the value of 'MOVE_RATIO'.
  27499. -- Macro: USE_LOAD_POST_INCREMENT (MODE)
  27500. A C expression used to determine whether a load postincrement is a
  27501. good thing to use for a given mode. Defaults to the value of
  27502. 'HAVE_POST_INCREMENT'.
  27503. -- Macro: USE_LOAD_POST_DECREMENT (MODE)
  27504. A C expression used to determine whether a load postdecrement is a
  27505. good thing to use for a given mode. Defaults to the value of
  27506. 'HAVE_POST_DECREMENT'.
  27507. -- Macro: USE_LOAD_PRE_INCREMENT (MODE)
  27508. A C expression used to determine whether a load preincrement is a
  27509. good thing to use for a given mode. Defaults to the value of
  27510. 'HAVE_PRE_INCREMENT'.
  27511. -- Macro: USE_LOAD_PRE_DECREMENT (MODE)
  27512. A C expression used to determine whether a load predecrement is a
  27513. good thing to use for a given mode. Defaults to the value of
  27514. 'HAVE_PRE_DECREMENT'.
  27515. -- Macro: USE_STORE_POST_INCREMENT (MODE)
  27516. A C expression used to determine whether a store postincrement is a
  27517. good thing to use for a given mode. Defaults to the value of
  27518. 'HAVE_POST_INCREMENT'.
  27519. -- Macro: USE_STORE_POST_DECREMENT (MODE)
  27520. A C expression used to determine whether a store postdecrement is a
  27521. good thing to use for a given mode. Defaults to the value of
  27522. 'HAVE_POST_DECREMENT'.
  27523. -- Macro: USE_STORE_PRE_INCREMENT (MODE)
  27524. This macro is used to determine whether a store preincrement is a
  27525. good thing to use for a given mode. Defaults to the value of
  27526. 'HAVE_PRE_INCREMENT'.
  27527. -- Macro: USE_STORE_PRE_DECREMENT (MODE)
  27528. This macro is used to determine whether a store predecrement is a
  27529. good thing to use for a given mode. Defaults to the value of
  27530. 'HAVE_PRE_DECREMENT'.
  27531. -- Macro: NO_FUNCTION_CSE
  27532. Define this macro to be true if it is as good or better to call a
  27533. constant function address than to call an address kept in a
  27534. register.
  27535. -- Macro: LOGICAL_OP_NON_SHORT_CIRCUIT
  27536. Define this macro if a non-short-circuit operation produced by
  27537. 'fold_range_test ()' is optimal. This macro defaults to true if
  27538. 'BRANCH_COST' is greater than or equal to the value 2.
  27539. -- Target Hook: bool TARGET_OPTAB_SUPPORTED_P (int OP, machine_mode
  27540. MODE1, machine_mode MODE2, optimization_type OPT_TYPE)
  27541. Return true if the optimizers should use optab OP with modes MODE1
  27542. and MODE2 for optimization type OPT_TYPE. The optab is known to
  27543. have an associated '.md' instruction whose C condition is true.
  27544. MODE2 is only meaningful for conversion optabs; for direct optabs
  27545. it is a copy of MODE1.
  27546. For example, when called with OP equal to 'rint_optab' and MODE1
  27547. equal to 'DFmode', the hook should say whether the optimizers
  27548. should use optab 'rintdf2'.
  27549. The default hook returns true for all inputs.
  27550. -- Target Hook: bool TARGET_RTX_COSTS (rtx X, machine_mode MODE, int
  27551. OUTER_CODE, int OPNO, int *TOTAL, bool SPEED)
  27552. This target hook describes the relative costs of RTL expressions.
  27553. The cost may depend on the precise form of the expression, which is
  27554. available for examination in X, and the fact that X appears as
  27555. operand OPNO of an expression with rtx code OUTER_CODE. That is,
  27556. the hook can assume that there is some rtx Y such that 'GET_CODE
  27557. (Y) == OUTER_CODE' and such that either (a) 'XEXP (Y, OPNO) == X'
  27558. or (b) 'XVEC (Y, OPNO)' contains X.
  27559. MODE is X's machine mode, or for cases like 'const_int' that do not
  27560. have a mode, the mode in which X is used.
  27561. In implementing this hook, you can use the construct 'COSTS_N_INSNS
  27562. (N)' to specify a cost equal to N fast instructions.
  27563. On entry to the hook, '*TOTAL' contains a default estimate for the
  27564. cost of the expression. The hook should modify this value as
  27565. necessary. Traditionally, the default costs are 'COSTS_N_INSNS
  27566. (5)' for multiplications, 'COSTS_N_INSNS (7)' for division and
  27567. modulus operations, and 'COSTS_N_INSNS (1)' for all other
  27568. operations.
  27569. When optimizing for code size, i.e. when 'speed' is false, this
  27570. target hook should be used to estimate the relative size cost of an
  27571. expression, again relative to 'COSTS_N_INSNS'.
  27572. The hook returns true when all subexpressions of X have been
  27573. processed, and false when 'rtx_cost' should recurse.
  27574. -- Target Hook: int TARGET_ADDRESS_COST (rtx ADDRESS, machine_mode
  27575. MODE, addr_space_t AS, bool SPEED)
  27576. This hook computes the cost of an addressing mode that contains
  27577. ADDRESS. If not defined, the cost is computed from the ADDRESS
  27578. expression and the 'TARGET_RTX_COST' hook.
  27579. For most CISC machines, the default cost is a good approximation of
  27580. the true cost of the addressing mode. However, on RISC machines,
  27581. all instructions normally have the same length and execution time.
  27582. Hence all addresses will have equal costs.
  27583. In cases where more than one form of an address is known, the form
  27584. with the lowest cost will be used. If multiple forms have the
  27585. same, lowest, cost, the one that is the most complex will be used.
  27586. For example, suppose an address that is equal to the sum of a
  27587. register and a constant is used twice in the same basic block.
  27588. When this macro is not defined, the address will be computed in a
  27589. register and memory references will be indirect through that
  27590. register. On machines where the cost of the addressing mode
  27591. containing the sum is no higher than that of a simple indirect
  27592. reference, this will produce an additional instruction and possibly
  27593. require an additional register. Proper specification of this macro
  27594. eliminates this overhead for such machines.
  27595. This hook is never called with an invalid address.
  27596. On machines where an address involving more than one register is as
  27597. cheap as an address computation involving only one register,
  27598. defining 'TARGET_ADDRESS_COST' to reflect this can cause two
  27599. registers to be live over a region of code where only one would
  27600. have been if 'TARGET_ADDRESS_COST' were not defined in that manner.
  27601. This effect should be considered in the definition of this macro.
  27602. Equivalent costs should probably only be given to addresses with
  27603. different numbers of registers on machines with lots of registers.
  27604. -- Target Hook: unsigned int TARGET_MAX_NOCE_IFCVT_SEQ_COST (edge E)
  27605. This hook returns a value in the same units as 'TARGET_RTX_COSTS',
  27606. giving the maximum acceptable cost for a sequence generated by the
  27607. RTL if-conversion pass when conditional execution is not available.
  27608. The RTL if-conversion pass attempts to convert conditional
  27609. operations that would require a branch to a series of unconditional
  27610. operations and 'movMODEcc' insns. This hook returns the maximum
  27611. cost of the unconditional instructions and the 'movMODEcc' insns.
  27612. RTL if-conversion is cancelled if the cost of the converted
  27613. sequence is greater than the value returned by this hook.
  27614. 'e' is the edge between the basic block containing the conditional
  27615. branch to the basic block which would be executed if the condition
  27616. were true.
  27617. The default implementation of this hook uses the
  27618. 'max-rtl-if-conversion-[un]predictable' parameters if they are set,
  27619. and uses a multiple of 'BRANCH_COST' otherwise.
  27620. -- Target Hook: bool TARGET_NOCE_CONVERSION_PROFITABLE_P (rtx_insn
  27621. *SEQ, struct noce_if_info *IF_INFO)
  27622. This hook returns true if the instruction sequence 'seq' is a good
  27623. candidate as a replacement for the if-convertible sequence
  27624. described in 'if_info'.
  27625. -- Target Hook: bool TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P (void)
  27626. This predicate controls the use of the eager delay slot filler to
  27627. disallow speculatively executed instructions being placed in delay
  27628. slots. Targets such as certain MIPS architectures possess both
  27629. branches with and without delay slots. As the eager delay slot
  27630. filler can decrease performance, disabling it is beneficial when
  27631. ordinary branches are available. Use of delay slot branches filled
  27632. using the basic filler is often still desirable as the delay slot
  27633. can hide a pipeline bubble.
  27634. 
  27635. File: gccint.info, Node: Scheduling, Next: Sections, Prev: Costs, Up: Target Macros
  27636. 17.17 Adjusting the Instruction Scheduler
  27637. =========================================
  27638. The instruction scheduler may need a fair amount of machine-specific
  27639. adjustment in order to produce good code. GCC provides several target
  27640. hooks for this purpose. It is usually enough to define just a few of
  27641. them: try the first ones in this list first.
  27642. -- Target Hook: int TARGET_SCHED_ISSUE_RATE (void)
  27643. This hook returns the maximum number of instructions that can ever
  27644. issue at the same time on the target machine. The default is one.
  27645. Although the insn scheduler can define itself the possibility of
  27646. issue an insn on the same cycle, the value can serve as an
  27647. additional constraint to issue insns on the same simulated
  27648. processor cycle (see hooks 'TARGET_SCHED_REORDER' and
  27649. 'TARGET_SCHED_REORDER2'). This value must be constant over the
  27650. entire compilation. If you need it to vary depending on what the
  27651. instructions are, you must use 'TARGET_SCHED_VARIABLE_ISSUE'.
  27652. -- Target Hook: int TARGET_SCHED_VARIABLE_ISSUE (FILE *FILE, int
  27653. VERBOSE, rtx_insn *INSN, int MORE)
  27654. This hook is executed by the scheduler after it has scheduled an
  27655. insn from the ready list. It should return the number of insns
  27656. which can still be issued in the current cycle. The default is
  27657. 'MORE - 1' for insns other than 'CLOBBER' and 'USE', which normally
  27658. are not counted against the issue rate. You should define this
  27659. hook if some insns take more machine resources than others, so that
  27660. fewer insns can follow them in the same cycle. FILE is either a
  27661. null pointer, or a stdio stream to write any debug output to.
  27662. VERBOSE is the verbose level provided by '-fsched-verbose-N'. INSN
  27663. is the instruction that was scheduled.
  27664. -- Target Hook: int TARGET_SCHED_ADJUST_COST (rtx_insn *INSN, int
  27665. DEP_TYPE1, rtx_insn *DEP_INSN, int COST, unsigned int DW)
  27666. This function corrects the value of COST based on the relationship
  27667. between INSN and DEP_INSN through a dependence of type dep_type,
  27668. and strength DW. It should return the new value. The default is
  27669. to make no adjustment to COST. This can be used for example to
  27670. specify to the scheduler using the traditional pipeline description
  27671. that an output- or anti-dependence does not incur the same cost as
  27672. a data-dependence. If the scheduler using the automaton based
  27673. pipeline description, the cost of anti-dependence is zero and the
  27674. cost of output-dependence is maximum of one and the difference of
  27675. latency times of the first and the second insns. If these values
  27676. are not acceptable, you could use the hook to modify them too. See
  27677. also *note Processor pipeline description::.
  27678. -- Target Hook: int TARGET_SCHED_ADJUST_PRIORITY (rtx_insn *INSN, int
  27679. PRIORITY)
  27680. This hook adjusts the integer scheduling priority PRIORITY of INSN.
  27681. It should return the new priority. Increase the priority to
  27682. execute INSN earlier, reduce the priority to execute INSN later.
  27683. Do not define this hook if you do not need to adjust the scheduling
  27684. priorities of insns.
  27685. -- Target Hook: int TARGET_SCHED_REORDER (FILE *FILE, int VERBOSE,
  27686. rtx_insn **READY, int *N_READYP, int CLOCK)
  27687. This hook is executed by the scheduler after it has scheduled the
  27688. ready list, to allow the machine description to reorder it (for
  27689. example to combine two small instructions together on 'VLIW'
  27690. machines). FILE is either a null pointer, or a stdio stream to
  27691. write any debug output to. VERBOSE is the verbose level provided
  27692. by '-fsched-verbose-N'. READY is a pointer to the ready list of
  27693. instructions that are ready to be scheduled. N_READYP is a pointer
  27694. to the number of elements in the ready list. The scheduler reads
  27695. the ready list in reverse order, starting with READY[*N_READYP - 1]
  27696. and going to READY[0]. CLOCK is the timer tick of the scheduler.
  27697. You may modify the ready list and the number of ready insns. The
  27698. return value is the number of insns that can issue this cycle;
  27699. normally this is just 'issue_rate'. See also
  27700. 'TARGET_SCHED_REORDER2'.
  27701. -- Target Hook: int TARGET_SCHED_REORDER2 (FILE *FILE, int VERBOSE,
  27702. rtx_insn **READY, int *N_READYP, int CLOCK)
  27703. Like 'TARGET_SCHED_REORDER', but called at a different time. That
  27704. function is called whenever the scheduler starts a new cycle. This
  27705. one is called once per iteration over a cycle, immediately after
  27706. 'TARGET_SCHED_VARIABLE_ISSUE'; it can reorder the ready list and
  27707. return the number of insns to be scheduled in the same cycle.
  27708. Defining this hook can be useful if there are frequent situations
  27709. where scheduling one insn causes other insns to become ready in the
  27710. same cycle. These other insns can then be taken into account
  27711. properly.
  27712. -- Target Hook: bool TARGET_SCHED_MACRO_FUSION_P (void)
  27713. This hook is used to check whether target platform supports macro
  27714. fusion.
  27715. -- Target Hook: bool TARGET_SCHED_MACRO_FUSION_PAIR_P (rtx_insn *PREV,
  27716. rtx_insn *CURR)
  27717. This hook is used to check whether two insns should be macro fused
  27718. for a target microarchitecture. If this hook returns true for the
  27719. given insn pair (PREV and CURR), the scheduler will put them into a
  27720. sched group, and they will not be scheduled apart. The two insns
  27721. will be either two SET insns or a compare and a conditional jump
  27722. and this hook should validate any dependencies needed to fuse the
  27723. two insns together.
  27724. -- Target Hook: void TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK
  27725. (rtx_insn *HEAD, rtx_insn *TAIL)
  27726. This hook is called after evaluation forward dependencies of insns
  27727. in chain given by two parameter values (HEAD and TAIL
  27728. correspondingly) but before insns scheduling of the insn chain.
  27729. For example, it can be used for better insn classification if it
  27730. requires analysis of dependencies. This hook can use backward and
  27731. forward dependencies of the insn scheduler because they are already
  27732. calculated.
  27733. -- Target Hook: void TARGET_SCHED_INIT (FILE *FILE, int VERBOSE, int
  27734. MAX_READY)
  27735. This hook is executed by the scheduler at the beginning of each
  27736. block of instructions that are to be scheduled. FILE is either a
  27737. null pointer, or a stdio stream to write any debug output to.
  27738. VERBOSE is the verbose level provided by '-fsched-verbose-N'.
  27739. MAX_READY is the maximum number of insns in the current scheduling
  27740. region that can be live at the same time. This can be used to
  27741. allocate scratch space if it is needed, e.g. by
  27742. 'TARGET_SCHED_REORDER'.
  27743. -- Target Hook: void TARGET_SCHED_FINISH (FILE *FILE, int VERBOSE)
  27744. This hook is executed by the scheduler at the end of each block of
  27745. instructions that are to be scheduled. It can be used to perform
  27746. cleanup of any actions done by the other scheduling hooks. FILE is
  27747. either a null pointer, or a stdio stream to write any debug output
  27748. to. VERBOSE is the verbose level provided by '-fsched-verbose-N'.
  27749. -- Target Hook: void TARGET_SCHED_INIT_GLOBAL (FILE *FILE, int VERBOSE,
  27750. int OLD_MAX_UID)
  27751. This hook is executed by the scheduler after function level
  27752. initializations. FILE is either a null pointer, or a stdio stream
  27753. to write any debug output to. VERBOSE is the verbose level
  27754. provided by '-fsched-verbose-N'. OLD_MAX_UID is the maximum insn
  27755. uid when scheduling begins.
  27756. -- Target Hook: void TARGET_SCHED_FINISH_GLOBAL (FILE *FILE, int
  27757. VERBOSE)
  27758. This is the cleanup hook corresponding to
  27759. 'TARGET_SCHED_INIT_GLOBAL'. FILE is either a null pointer, or a
  27760. stdio stream to write any debug output to. VERBOSE is the verbose
  27761. level provided by '-fsched-verbose-N'.
  27762. -- Target Hook: rtx TARGET_SCHED_DFA_PRE_CYCLE_INSN (void)
  27763. The hook returns an RTL insn. The automaton state used in the
  27764. pipeline hazard recognizer is changed as if the insn were scheduled
  27765. when the new simulated processor cycle starts. Usage of the hook
  27766. may simplify the automaton pipeline description for some VLIW
  27767. processors. If the hook is defined, it is used only for the
  27768. automaton based pipeline description. The default is not to change
  27769. the state when the new simulated processor cycle starts.
  27770. -- Target Hook: void TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN (void)
  27771. The hook can be used to initialize data used by the previous hook.
  27772. -- Target Hook: rtx_insn * TARGET_SCHED_DFA_POST_CYCLE_INSN (void)
  27773. The hook is analogous to 'TARGET_SCHED_DFA_PRE_CYCLE_INSN' but used
  27774. to changed the state as if the insn were scheduled when the new
  27775. simulated processor cycle finishes.
  27776. -- Target Hook: void TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN (void)
  27777. The hook is analogous to 'TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN' but
  27778. used to initialize data used by the previous hook.
  27779. -- Target Hook: void TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE (void)
  27780. The hook to notify target that the current simulated cycle is about
  27781. to finish. The hook is analogous to
  27782. 'TARGET_SCHED_DFA_PRE_CYCLE_INSN' but used to change the state in
  27783. more complicated situations - e.g., when advancing state on a
  27784. single insn is not enough.
  27785. -- Target Hook: void TARGET_SCHED_DFA_POST_ADVANCE_CYCLE (void)
  27786. The hook to notify target that new simulated cycle has just
  27787. started. The hook is analogous to
  27788. 'TARGET_SCHED_DFA_POST_CYCLE_INSN' but used to change the state in
  27789. more complicated situations - e.g., when advancing state on a
  27790. single insn is not enough.
  27791. -- Target Hook: int TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD
  27792. (void)
  27793. This hook controls better choosing an insn from the ready insn
  27794. queue for the DFA-based insn scheduler. Usually the scheduler
  27795. chooses the first insn from the queue. If the hook returns a
  27796. positive value, an additional scheduler code tries all permutations
  27797. of 'TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD ()' subsequent
  27798. ready insns to choose an insn whose issue will result in maximal
  27799. number of issued insns on the same cycle. For the VLIW processor,
  27800. the code could actually solve the problem of packing simple insns
  27801. into the VLIW insn. Of course, if the rules of VLIW packing are
  27802. described in the automaton.
  27803. This code also could be used for superscalar RISC processors. Let
  27804. us consider a superscalar RISC processor with 3 pipelines. Some
  27805. insns can be executed in pipelines A or B, some insns can be
  27806. executed only in pipelines B or C, and one insn can be executed in
  27807. pipeline B. The processor may issue the 1st insn into A and the
  27808. 2nd one into B. In this case, the 3rd insn will wait for freeing B
  27809. until the next cycle. If the scheduler issues the 3rd insn the
  27810. first, the processor could issue all 3 insns per cycle.
  27811. Actually this code demonstrates advantages of the automaton based
  27812. pipeline hazard recognizer. We try quickly and easy many insn
  27813. schedules to choose the best one.
  27814. The default is no multipass scheduling.
  27815. -- Target Hook: int
  27816. TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD
  27817. (rtx_insn *INSN, int READY_INDEX)
  27818. This hook controls what insns from the ready insn queue will be
  27819. considered for the multipass insn scheduling. If the hook returns
  27820. zero for INSN, the insn will be considered in multipass scheduling.
  27821. Positive return values will remove INSN from consideration on the
  27822. current round of multipass scheduling. Negative return values will
  27823. remove INSN from consideration for given number of cycles.
  27824. Backends should be careful about returning non-zero for highest
  27825. priority instruction at position 0 in the ready list. READY_INDEX
  27826. is passed to allow backends make correct judgements.
  27827. The default is that any ready insns can be chosen to be issued.
  27828. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BEGIN (void
  27829. *DATA, signed char *READY_TRY, int N_READY, bool
  27830. FIRST_CYCLE_INSN_P)
  27831. This hook prepares the target backend for a new round of multipass
  27832. scheduling.
  27833. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_ISSUE (void
  27834. *DATA, signed char *READY_TRY, int N_READY, rtx_insn *INSN,
  27835. const void *PREV_DATA)
  27836. This hook is called when multipass scheduling evaluates instruction
  27837. INSN.
  27838. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BACKTRACK
  27839. (const void *DATA, signed char *READY_TRY, int N_READY)
  27840. This is called when multipass scheduling backtracks from evaluation
  27841. of an instruction.
  27842. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_END (const void
  27843. *DATA)
  27844. This hook notifies the target about the result of the concluded
  27845. current round of multipass scheduling.
  27846. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_INIT (void
  27847. *DATA)
  27848. This hook initializes target-specific data used in multipass
  27849. scheduling.
  27850. -- Target Hook: void TARGET_SCHED_FIRST_CYCLE_MULTIPASS_FINI (void
  27851. *DATA)
  27852. This hook finalizes target-specific data used in multipass
  27853. scheduling.
  27854. -- Target Hook: int TARGET_SCHED_DFA_NEW_CYCLE (FILE *DUMP, int
  27855. VERBOSE, rtx_insn *INSN, int LAST_CLOCK, int CLOCK, int
  27856. *SORT_P)
  27857. This hook is called by the insn scheduler before issuing INSN on
  27858. cycle CLOCK. If the hook returns nonzero, INSN is not issued on
  27859. this processor cycle. Instead, the processor cycle is advanced.
  27860. If *SORT_P is zero, the insn ready queue is not sorted on the new
  27861. cycle start as usually. DUMP and VERBOSE specify the file and
  27862. verbosity level to use for debugging output. LAST_CLOCK and CLOCK
  27863. are, respectively, the processor cycle on which the previous insn
  27864. has been issued, and the current processor cycle.
  27865. -- Target Hook: bool TARGET_SCHED_IS_COSTLY_DEPENDENCE (struct _dep
  27866. *_DEP, int COST, int DISTANCE)
  27867. This hook is used to define which dependences are considered costly
  27868. by the target, so costly that it is not advisable to schedule the
  27869. insns that are involved in the dependence too close to one another.
  27870. The parameters to this hook are as follows: The first parameter
  27871. _DEP is the dependence being evaluated. The second parameter COST
  27872. is the cost of the dependence as estimated by the scheduler, and
  27873. the third parameter DISTANCE is the distance in cycles between the
  27874. two insns. The hook returns 'true' if considering the distance
  27875. between the two insns the dependence between them is considered
  27876. costly by the target, and 'false' otherwise.
  27877. Defining this hook can be useful in multiple-issue out-of-order
  27878. machines, where (a) it's practically hopeless to predict the actual
  27879. data/resource delays, however: (b) there's a better chance to
  27880. predict the actual grouping that will be formed, and (c) correctly
  27881. emulating the grouping can be very important. In such targets one
  27882. may want to allow issuing dependent insns closer to one
  27883. another--i.e., closer than the dependence distance; however, not in
  27884. cases of "costly dependences", which this hooks allows to define.
  27885. -- Target Hook: void TARGET_SCHED_H_I_D_EXTENDED (void)
  27886. This hook is called by the insn scheduler after emitting a new
  27887. instruction to the instruction stream. The hook notifies a target
  27888. backend to extend its per instruction data structures.
  27889. -- Target Hook: void * TARGET_SCHED_ALLOC_SCHED_CONTEXT (void)
  27890. Return a pointer to a store large enough to hold target scheduling
  27891. context.
  27892. -- Target Hook: void TARGET_SCHED_INIT_SCHED_CONTEXT (void *TC, bool
  27893. CLEAN_P)
  27894. Initialize store pointed to by TC to hold target scheduling
  27895. context. It CLEAN_P is true then initialize TC as if scheduler is
  27896. at the beginning of the block. Otherwise, copy the current context
  27897. into TC.
  27898. -- Target Hook: void TARGET_SCHED_SET_SCHED_CONTEXT (void *TC)
  27899. Copy target scheduling context pointed to by TC to the current
  27900. context.
  27901. -- Target Hook: void TARGET_SCHED_CLEAR_SCHED_CONTEXT (void *TC)
  27902. Deallocate internal data in target scheduling context pointed to by
  27903. TC.
  27904. -- Target Hook: void TARGET_SCHED_FREE_SCHED_CONTEXT (void *TC)
  27905. Deallocate a store for target scheduling context pointed to by TC.
  27906. -- Target Hook: int TARGET_SCHED_SPECULATE_INSN (rtx_insn *INSN,
  27907. unsigned int DEP_STATUS, rtx *NEW_PAT)
  27908. This hook is called by the insn scheduler when INSN has only
  27909. speculative dependencies and therefore can be scheduled
  27910. speculatively. The hook is used to check if the pattern of INSN
  27911. has a speculative version and, in case of successful check, to
  27912. generate that speculative pattern. The hook should return 1, if
  27913. the instruction has a speculative form, or -1, if it doesn't.
  27914. REQUEST describes the type of requested speculation. If the return
  27915. value equals 1 then NEW_PAT is assigned the generated speculative
  27916. pattern.
  27917. -- Target Hook: bool TARGET_SCHED_NEEDS_BLOCK_P (unsigned int
  27918. DEP_STATUS)
  27919. This hook is called by the insn scheduler during generation of
  27920. recovery code for INSN. It should return 'true', if the
  27921. corresponding check instruction should branch to recovery code, or
  27922. 'false' otherwise.
  27923. -- Target Hook: rtx TARGET_SCHED_GEN_SPEC_CHECK (rtx_insn *INSN,
  27924. rtx_insn *LABEL, unsigned int DS)
  27925. This hook is called by the insn scheduler to generate a pattern for
  27926. recovery check instruction. If MUTATE_P is zero, then INSN is a
  27927. speculative instruction for which the check should be generated.
  27928. LABEL is either a label of a basic block, where recovery code
  27929. should be emitted, or a null pointer, when requested check doesn't
  27930. branch to recovery code (a simple check). If MUTATE_P is nonzero,
  27931. then a pattern for a branchy check corresponding to a simple check
  27932. denoted by INSN should be generated. In this case LABEL can't be
  27933. null.
  27934. -- Target Hook: void TARGET_SCHED_SET_SCHED_FLAGS (struct spec_info_def
  27935. *SPEC_INFO)
  27936. This hook is used by the insn scheduler to find out what features
  27937. should be enabled/used. The structure *SPEC_INFO should be filled
  27938. in by the target. The structure describes speculation types that
  27939. can be used in the scheduler.
  27940. -- Target Hook: bool TARGET_SCHED_CAN_SPECULATE_INSN (rtx_insn *INSN)
  27941. Some instructions should never be speculated by the schedulers,
  27942. usually because the instruction is too expensive to get this wrong.
  27943. Often such instructions have long latency, and often they are not
  27944. fully modeled in the pipeline descriptions. This hook should
  27945. return 'false' if INSN should not be speculated.
  27946. -- Target Hook: int TARGET_SCHED_SMS_RES_MII (struct ddg *G)
  27947. This hook is called by the swing modulo scheduler to calculate a
  27948. resource-based lower bound which is based on the resources
  27949. available in the machine and the resources required by each
  27950. instruction. The target backend can use G to calculate such bound.
  27951. A very simple lower bound will be used in case this hook is not
  27952. implemented: the total number of instructions divided by the issue
  27953. rate.
  27954. -- Target Hook: bool TARGET_SCHED_DISPATCH (rtx_insn *INSN, int X)
  27955. This hook is called by Haifa Scheduler. It returns true if
  27956. dispatch scheduling is supported in hardware and the condition
  27957. specified in the parameter is true.
  27958. -- Target Hook: void TARGET_SCHED_DISPATCH_DO (rtx_insn *INSN, int X)
  27959. This hook is called by Haifa Scheduler. It performs the operation
  27960. specified in its second parameter.
  27961. -- Target Hook: bool TARGET_SCHED_EXPOSED_PIPELINE
  27962. True if the processor has an exposed pipeline, which means that not
  27963. just the order of instructions is important for correctness when
  27964. scheduling, but also the latencies of operations.
  27965. -- Target Hook: int TARGET_SCHED_REASSOCIATION_WIDTH (unsigned int OPC,
  27966. machine_mode MODE)
  27967. This hook is called by tree reassociator to determine a level of
  27968. parallelism required in output calculations chain.
  27969. -- Target Hook: void TARGET_SCHED_FUSION_PRIORITY (rtx_insn *INSN, int
  27970. MAX_PRI, int *FUSION_PRI, int *PRI)
  27971. This hook is called by scheduling fusion pass. It calculates
  27972. fusion priorities for each instruction passed in by parameter. The
  27973. priorities are returned via pointer parameters.
  27974. INSN is the instruction whose priorities need to be calculated.
  27975. MAX_PRI is the maximum priority can be returned in any cases.
  27976. FUSION_PRI is the pointer parameter through which INSN's fusion
  27977. priority should be calculated and returned. PRI is the pointer
  27978. parameter through which INSN's priority should be calculated and
  27979. returned.
  27980. Same FUSION_PRI should be returned for instructions which should be
  27981. scheduled together. Different PRI should be returned for
  27982. instructions with same FUSION_PRI. FUSION_PRI is the major sort
  27983. key, PRI is the minor sort key. All instructions will be scheduled
  27984. according to the two priorities. All priorities calculated should
  27985. be between 0 (exclusive) and MAX_PRI (inclusive). To avoid false
  27986. dependencies, FUSION_PRI of instructions which need to be scheduled
  27987. together should be smaller than FUSION_PRI of irrelevant
  27988. instructions.
  27989. Given below example:
  27990. ldr r10, [r1, 4]
  27991. add r4, r4, r10
  27992. ldr r15, [r2, 8]
  27993. sub r5, r5, r15
  27994. ldr r11, [r1, 0]
  27995. add r4, r4, r11
  27996. ldr r16, [r2, 12]
  27997. sub r5, r5, r16
  27998. On targets like ARM/AArch64, the two pairs of consecutive loads
  27999. should be merged. Since peephole2 pass can't help in this case
  28000. unless consecutive loads are actually next to each other in
  28001. instruction flow. That's where this scheduling fusion pass works.
  28002. This hook calculates priority for each instruction based on its
  28003. fustion type, like:
  28004. ldr r10, [r1, 4] ; fusion_pri=99, pri=96
  28005. add r4, r4, r10 ; fusion_pri=100, pri=100
  28006. ldr r15, [r2, 8] ; fusion_pri=98, pri=92
  28007. sub r5, r5, r15 ; fusion_pri=100, pri=100
  28008. ldr r11, [r1, 0] ; fusion_pri=99, pri=100
  28009. add r4, r4, r11 ; fusion_pri=100, pri=100
  28010. ldr r16, [r2, 12] ; fusion_pri=98, pri=88
  28011. sub r5, r5, r16 ; fusion_pri=100, pri=100
  28012. Scheduling fusion pass then sorts all ready to issue instructions
  28013. according to the priorities. As a result, instructions of same
  28014. fusion type will be pushed together in instruction flow, like:
  28015. ldr r11, [r1, 0]
  28016. ldr r10, [r1, 4]
  28017. ldr r15, [r2, 8]
  28018. ldr r16, [r2, 12]
  28019. add r4, r4, r10
  28020. sub r5, r5, r15
  28021. add r4, r4, r11
  28022. sub r5, r5, r16
  28023. Now peephole2 pass can simply merge the two pairs of loads.
  28024. Since scheduling fusion pass relies on peephole2 to do real fusion
  28025. work, it is only enabled by default when peephole2 is in effect.
  28026. This is firstly introduced on ARM/AArch64 targets, please refer to
  28027. the hook implementation for how different fusion types are
  28028. supported.
  28029. -- Target Hook: void TARGET_EXPAND_DIVMOD_LIBFUNC (rtx LIBFUNC,
  28030. machine_mode MODE, rtx OP0, rtx OP1, rtx *QUOT, rtx *REM)
  28031. Define this hook for enabling divmod transform if the port does not
  28032. have hardware divmod insn but defines target-specific divmod
  28033. libfuncs.
  28034. 
  28035. File: gccint.info, Node: Sections, Next: PIC, Prev: Scheduling, Up: Target Macros
  28036. 17.18 Dividing the Output into Sections (Texts, Data, ...)
  28037. ==========================================================
  28038. An object file is divided into sections containing different types of
  28039. data. In the most common case, there are three sections: the "text
  28040. section", which holds instructions and read-only data; the "data
  28041. section", which holds initialized writable data; and the "bss section",
  28042. which holds uninitialized data. Some systems have other kinds of
  28043. sections.
  28044. 'varasm.c' provides several well-known sections, such as
  28045. 'text_section', 'data_section' and 'bss_section'. The normal way of
  28046. controlling a 'FOO_section' variable is to define the associated
  28047. 'FOO_SECTION_ASM_OP' macro, as described below. The macros are only
  28048. read once, when 'varasm.c' initializes itself, so their values must be
  28049. run-time constants. They may however depend on command-line flags.
  28050. _Note:_ Some run-time files, such 'crtstuff.c', also make use of the
  28051. 'FOO_SECTION_ASM_OP' macros, and expect them to be string literals.
  28052. Some assemblers require a different string to be written every time a
  28053. section is selected. If your assembler falls into this category, you
  28054. should define the 'TARGET_ASM_INIT_SECTIONS' hook and use
  28055. 'get_unnamed_section' to set up the sections.
  28056. You must always create a 'text_section', either by defining
  28057. 'TEXT_SECTION_ASM_OP' or by initializing 'text_section' in
  28058. 'TARGET_ASM_INIT_SECTIONS'. The same is true of 'data_section' and
  28059. 'DATA_SECTION_ASM_OP'. If you do not create a distinct
  28060. 'readonly_data_section', the default is to reuse 'text_section'.
  28061. All the other 'varasm.c' sections are optional, and are null if the
  28062. target does not provide them.
  28063. -- Macro: TEXT_SECTION_ASM_OP
  28064. A C expression whose value is a string, including spacing,
  28065. containing the assembler operation that should precede instructions
  28066. and read-only data. Normally '"\t.text"' is right.
  28067. -- Macro: HOT_TEXT_SECTION_NAME
  28068. If defined, a C string constant for the name of the section
  28069. containing most frequently executed functions of the program. If
  28070. not defined, GCC will provide a default definition if the target
  28071. supports named sections.
  28072. -- Macro: UNLIKELY_EXECUTED_TEXT_SECTION_NAME
  28073. If defined, a C string constant for the name of the section
  28074. containing unlikely executed functions in the program.
  28075. -- Macro: DATA_SECTION_ASM_OP
  28076. A C expression whose value is a string, including spacing,
  28077. containing the assembler operation to identify the following data
  28078. as writable initialized data. Normally '"\t.data"' is right.
  28079. -- Macro: SDATA_SECTION_ASM_OP
  28080. If defined, a C expression whose value is a string, including
  28081. spacing, containing the assembler operation to identify the
  28082. following data as initialized, writable small data.
  28083. -- Macro: READONLY_DATA_SECTION_ASM_OP
  28084. A C expression whose value is a string, including spacing,
  28085. containing the assembler operation to identify the following data
  28086. as read-only initialized data.
  28087. -- Macro: BSS_SECTION_ASM_OP
  28088. If defined, a C expression whose value is a string, including
  28089. spacing, containing the assembler operation to identify the
  28090. following data as uninitialized global data. If not defined, and
  28091. 'ASM_OUTPUT_ALIGNED_BSS' not defined, uninitialized global data
  28092. will be output in the data section if '-fno-common' is passed,
  28093. otherwise 'ASM_OUTPUT_COMMON' will be used.
  28094. -- Macro: SBSS_SECTION_ASM_OP
  28095. If defined, a C expression whose value is a string, including
  28096. spacing, containing the assembler operation to identify the
  28097. following data as uninitialized, writable small data.
  28098. -- Macro: TLS_COMMON_ASM_OP
  28099. If defined, a C expression whose value is a string containing the
  28100. assembler operation to identify the following data as thread-local
  28101. common data. The default is '".tls_common"'.
  28102. -- Macro: TLS_SECTION_ASM_FLAG
  28103. If defined, a C expression whose value is a character constant
  28104. containing the flag used to mark a section as a TLS section. The
  28105. default is ''T''.
  28106. -- Macro: INIT_SECTION_ASM_OP
  28107. If defined, a C expression whose value is a string, including
  28108. spacing, containing the assembler operation to identify the
  28109. following data as initialization code. If not defined, GCC will
  28110. assume such a section does not exist. This section has no
  28111. corresponding 'init_section' variable; it is used entirely in
  28112. runtime code.
  28113. -- Macro: FINI_SECTION_ASM_OP
  28114. If defined, a C expression whose value is a string, including
  28115. spacing, containing the assembler operation to identify the
  28116. following data as finalization code. If not defined, GCC will
  28117. assume such a section does not exist. This section has no
  28118. corresponding 'fini_section' variable; it is used entirely in
  28119. runtime code.
  28120. -- Macro: INIT_ARRAY_SECTION_ASM_OP
  28121. If defined, a C expression whose value is a string, including
  28122. spacing, containing the assembler operation to identify the
  28123. following data as part of the '.init_array' (or equivalent)
  28124. section. If not defined, GCC will assume such a section does not
  28125. exist. Do not define both this macro and 'INIT_SECTION_ASM_OP'.
  28126. -- Macro: FINI_ARRAY_SECTION_ASM_OP
  28127. If defined, a C expression whose value is a string, including
  28128. spacing, containing the assembler operation to identify the
  28129. following data as part of the '.fini_array' (or equivalent)
  28130. section. If not defined, GCC will assume such a section does not
  28131. exist. Do not define both this macro and 'FINI_SECTION_ASM_OP'.
  28132. -- Macro: MACH_DEP_SECTION_ASM_FLAG
  28133. If defined, a C expression whose value is a character constant
  28134. containing the flag used to mark a machine-dependent section. This
  28135. corresponds to the 'SECTION_MACH_DEP' section flag.
  28136. -- Macro: CRT_CALL_STATIC_FUNCTION (SECTION_OP, FUNCTION)
  28137. If defined, an ASM statement that switches to a different section
  28138. via SECTION_OP, calls FUNCTION, and switches back to the text
  28139. section. This is used in 'crtstuff.c' if 'INIT_SECTION_ASM_OP' or
  28140. 'FINI_SECTION_ASM_OP' to calls to initialization and finalization
  28141. functions from the init and fini sections. By default, this macro
  28142. uses a simple function call. Some ports need hand-crafted assembly
  28143. code to avoid dependencies on registers initialized in the function
  28144. prologue or to ensure that constant pools don't end up too far way
  28145. in the text section.
  28146. -- Macro: TARGET_LIBGCC_SDATA_SECTION
  28147. If defined, a string which names the section into which small
  28148. variables defined in crtstuff and libgcc should go. This is useful
  28149. when the target has options for optimizing access to small data,
  28150. and you want the crtstuff and libgcc routines to be conservative in
  28151. what they expect of your application yet liberal in what your
  28152. application expects. For example, for targets with a '.sdata'
  28153. section (like MIPS), you could compile crtstuff with '-G 0' so that
  28154. it doesn't require small data support from your application, but
  28155. use this macro to put small data into '.sdata' so that your
  28156. application can access these variables whether it uses small data
  28157. or not.
  28158. -- Macro: FORCE_CODE_SECTION_ALIGN
  28159. If defined, an ASM statement that aligns a code section to some
  28160. arbitrary boundary. This is used to force all fragments of the
  28161. '.init' and '.fini' sections to have to same alignment and thus
  28162. prevent the linker from having to add any padding.
  28163. -- Macro: JUMP_TABLES_IN_TEXT_SECTION
  28164. Define this macro to be an expression with a nonzero value if jump
  28165. tables (for 'tablejump' insns) should be output in the text
  28166. section, along with the assembler instructions. Otherwise, the
  28167. readonly data section is used.
  28168. This macro is irrelevant if there is no separate readonly data
  28169. section.
  28170. -- Target Hook: void TARGET_ASM_INIT_SECTIONS (void)
  28171. Define this hook if you need to do something special to set up the
  28172. 'varasm.c' sections, or if your target has some special sections of
  28173. its own that you need to create.
  28174. GCC calls this hook after processing the command line, but before
  28175. writing any assembly code, and before calling any of the
  28176. section-returning hooks described below.
  28177. -- Target Hook: int TARGET_ASM_RELOC_RW_MASK (void)
  28178. Return a mask describing how relocations should be treated when
  28179. selecting sections. Bit 1 should be set if global relocations
  28180. should be placed in a read-write section; bit 0 should be set if
  28181. local relocations should be placed in a read-write section.
  28182. The default version of this function returns 3 when '-fpic' is in
  28183. effect, and 0 otherwise. The hook is typically redefined when the
  28184. target cannot support (some kinds of) dynamic relocations in
  28185. read-only sections even in executables.
  28186. -- Target Hook: section * TARGET_ASM_SELECT_SECTION (tree EXP, int
  28187. RELOC, unsigned HOST_WIDE_INT ALIGN)
  28188. Return the section into which EXP should be placed. You can assume
  28189. that EXP is either a 'VAR_DECL' node or a constant of some sort.
  28190. RELOC indicates whether the initial value of EXP requires link-time
  28191. relocations. Bit 0 is set when variable contains local relocations
  28192. only, while bit 1 is set for global relocations. ALIGN is the
  28193. constant alignment in bits.
  28194. The default version of this function takes care of putting
  28195. read-only variables in 'readonly_data_section'.
  28196. See also USE_SELECT_SECTION_FOR_FUNCTIONS.
  28197. -- Macro: USE_SELECT_SECTION_FOR_FUNCTIONS
  28198. Define this macro if you wish TARGET_ASM_SELECT_SECTION to be
  28199. called for 'FUNCTION_DECL's as well as for variables and constants.
  28200. In the case of a 'FUNCTION_DECL', RELOC will be zero if the
  28201. function has been determined to be likely to be called, and nonzero
  28202. if it is unlikely to be called.
  28203. -- Target Hook: void TARGET_ASM_UNIQUE_SECTION (tree DECL, int RELOC)
  28204. Build up a unique section name, expressed as a 'STRING_CST' node,
  28205. and assign it to 'DECL_SECTION_NAME (DECL)'. As with
  28206. 'TARGET_ASM_SELECT_SECTION', RELOC indicates whether the initial
  28207. value of EXP requires link-time relocations.
  28208. The default version of this function appends the symbol name to the
  28209. ELF section name that would normally be used for the symbol. For
  28210. example, the function 'foo' would be placed in '.text.foo'.
  28211. Whatever the actual target object format, this is often good
  28212. enough.
  28213. -- Target Hook: section * TARGET_ASM_FUNCTION_RODATA_SECTION (tree
  28214. DECL)
  28215. Return the readonly data section associated with 'DECL_SECTION_NAME
  28216. (DECL)'. The default version of this function selects
  28217. '.gnu.linkonce.r.name' if the function's section is
  28218. '.gnu.linkonce.t.name', '.rodata.name' if function is in
  28219. '.text.name', and the normal readonly-data section otherwise.
  28220. -- Target Hook: const char * TARGET_ASM_MERGEABLE_RODATA_PREFIX
  28221. Usually, the compiler uses the prefix '".rodata"' to construct
  28222. section names for mergeable constant data. Define this macro to
  28223. override the string if a different section name should be used.
  28224. -- Target Hook: section * TARGET_ASM_TM_CLONE_TABLE_SECTION (void)
  28225. Return the section that should be used for transactional memory
  28226. clone tables.
  28227. -- Target Hook: section * TARGET_ASM_SELECT_RTX_SECTION (machine_mode
  28228. MODE, rtx X, unsigned HOST_WIDE_INT ALIGN)
  28229. Return the section into which a constant X, of mode MODE, should be
  28230. placed. You can assume that X is some kind of constant in RTL.
  28231. The argument MODE is redundant except in the case of a 'const_int'
  28232. rtx. ALIGN is the constant alignment in bits.
  28233. The default version of this function takes care of putting symbolic
  28234. constants in 'flag_pic' mode in 'data_section' and everything else
  28235. in 'readonly_data_section'.
  28236. -- Target Hook: tree TARGET_MANGLE_DECL_ASSEMBLER_NAME (tree DECL, tree
  28237. ID)
  28238. Define this hook if you need to postprocess the assembler name
  28239. generated by target-independent code. The ID provided to this hook
  28240. will be the computed name (e.g., the macro 'DECL_NAME' of the DECL
  28241. in C, or the mangled name of the DECL in C++). The return value of
  28242. the hook is an 'IDENTIFIER_NODE' for the appropriate mangled name
  28243. on your target system. The default implementation of this hook
  28244. just returns the ID provided.
  28245. -- Target Hook: void TARGET_ENCODE_SECTION_INFO (tree DECL, rtx RTL,
  28246. int NEW_DECL_P)
  28247. Define this hook if references to a symbol or a constant must be
  28248. treated differently depending on something about the variable or
  28249. function named by the symbol (such as what section it is in).
  28250. The hook is executed immediately after rtl has been created for
  28251. DECL, which may be a variable or function declaration or an entry
  28252. in the constant pool. In either case, RTL is the rtl in question.
  28253. Do _not_ use 'DECL_RTL (DECL)' in this hook; that field may not
  28254. have been initialized yet.
  28255. In the case of a constant, it is safe to assume that the rtl is a
  28256. 'mem' whose address is a 'symbol_ref'. Most decls will also have
  28257. this form, but that is not guaranteed. Global register variables,
  28258. for instance, will have a 'reg' for their rtl. (Normally the right
  28259. thing to do with such unusual rtl is leave it alone.)
  28260. The NEW_DECL_P argument will be true if this is the first time that
  28261. 'TARGET_ENCODE_SECTION_INFO' has been invoked on this decl. It
  28262. will be false for subsequent invocations, which will happen for
  28263. duplicate declarations. Whether or not anything must be done for
  28264. the duplicate declaration depends on whether the hook examines
  28265. 'DECL_ATTRIBUTES'. NEW_DECL_P is always true when the hook is
  28266. called for a constant.
  28267. The usual thing for this hook to do is to record flags in the
  28268. 'symbol_ref', using 'SYMBOL_REF_FLAG' or 'SYMBOL_REF_FLAGS'.
  28269. Historically, the name string was modified if it was necessary to
  28270. encode more than one bit of information, but this practice is now
  28271. discouraged; use 'SYMBOL_REF_FLAGS'.
  28272. The default definition of this hook, 'default_encode_section_info'
  28273. in 'varasm.c', sets a number of commonly-useful bits in
  28274. 'SYMBOL_REF_FLAGS'. Check whether the default does what you need
  28275. before overriding it.
  28276. -- Target Hook: const char * TARGET_STRIP_NAME_ENCODING (const char
  28277. *NAME)
  28278. Decode NAME and return the real name part, sans the characters that
  28279. 'TARGET_ENCODE_SECTION_INFO' may have added.
  28280. -- Target Hook: bool TARGET_IN_SMALL_DATA_P (const_tree EXP)
  28281. Returns true if EXP should be placed into a "small data" section.
  28282. The default version of this hook always returns false.
  28283. -- Target Hook: bool TARGET_HAVE_SRODATA_SECTION
  28284. Contains the value true if the target places read-only "small data"
  28285. into a separate section. The default value is false.
  28286. -- Target Hook: bool TARGET_PROFILE_BEFORE_PROLOGUE (void)
  28287. It returns true if target wants profile code emitted before
  28288. prologue.
  28289. The default version of this hook use the target macro
  28290. 'PROFILE_BEFORE_PROLOGUE'.
  28291. -- Target Hook: bool TARGET_BINDS_LOCAL_P (const_tree EXP)
  28292. Returns true if EXP names an object for which name resolution rules
  28293. must resolve to the current "module" (dynamic shared library or
  28294. executable image).
  28295. The default version of this hook implements the name resolution
  28296. rules for ELF, which has a looser model of global name binding than
  28297. other currently supported object file formats.
  28298. -- Target Hook: bool TARGET_HAVE_TLS
  28299. Contains the value true if the target supports thread-local
  28300. storage. The default value is false.
  28301. 
  28302. File: gccint.info, Node: PIC, Next: Assembler Format, Prev: Sections, Up: Target Macros
  28303. 17.19 Position Independent Code
  28304. ===============================
  28305. This section describes macros that help implement generation of position
  28306. independent code. Simply defining these macros is not enough to
  28307. generate valid PIC; you must also add support to the hook
  28308. 'TARGET_LEGITIMATE_ADDRESS_P' and to the macro 'PRINT_OPERAND_ADDRESS',
  28309. as well as 'LEGITIMIZE_ADDRESS'. You must modify the definition of
  28310. 'movsi' to do something appropriate when the source operand contains a
  28311. symbolic address. You may also need to alter the handling of switch
  28312. statements so that they use relative addresses.
  28313. -- Macro: PIC_OFFSET_TABLE_REGNUM
  28314. The register number of the register used to address a table of
  28315. static data addresses in memory. In some cases this register is
  28316. defined by a processor's "application binary interface" (ABI).
  28317. When this macro is defined, RTL is generated for this register
  28318. once, as with the stack pointer and frame pointer registers. If
  28319. this macro is not defined, it is up to the machine-dependent files
  28320. to allocate such a register (if necessary). Note that this
  28321. register must be fixed when in use (e.g. when 'flag_pic' is true).
  28322. -- Macro: PIC_OFFSET_TABLE_REG_CALL_CLOBBERED
  28323. A C expression that is nonzero if the register defined by
  28324. 'PIC_OFFSET_TABLE_REGNUM' is clobbered by calls. If not defined,
  28325. the default is zero. Do not define this macro if
  28326. 'PIC_OFFSET_TABLE_REGNUM' is not defined.
  28327. -- Macro: LEGITIMATE_PIC_OPERAND_P (X)
  28328. A C expression that is nonzero if X is a legitimate immediate
  28329. operand on the target machine when generating position independent
  28330. code. You can assume that X satisfies 'CONSTANT_P', so you need
  28331. not check this. You can also assume FLAG_PIC is true, so you need
  28332. not check it either. You need not define this macro if all
  28333. constants (including 'SYMBOL_REF') can be immediate operands when
  28334. generating position independent code.
  28335. 
  28336. File: gccint.info, Node: Assembler Format, Next: Debugging Info, Prev: PIC, Up: Target Macros
  28337. 17.20 Defining the Output Assembler Language
  28338. ============================================
  28339. This section describes macros whose principal purpose is to describe how
  28340. to write instructions in assembler language--rather than what the
  28341. instructions do.
  28342. * Menu:
  28343. * File Framework:: Structural information for the assembler file.
  28344. * Data Output:: Output of constants (numbers, strings, addresses).
  28345. * Uninitialized Data:: Output of uninitialized variables.
  28346. * Label Output:: Output and generation of labels.
  28347. * Initialization:: General principles of initialization
  28348. and termination routines.
  28349. * Macros for Initialization::
  28350. Specific macros that control the handling of
  28351. initialization and termination routines.
  28352. * Instruction Output:: Output of actual instructions.
  28353. * Dispatch Tables:: Output of jump tables.
  28354. * Exception Region Output:: Output of exception region code.
  28355. * Alignment Output:: Pseudo ops for alignment and skipping data.
  28356. 
  28357. File: gccint.info, Node: File Framework, Next: Data Output, Up: Assembler Format
  28358. 17.20.1 The Overall Framework of an Assembler File
  28359. --------------------------------------------------
  28360. This describes the overall framework of an assembly file.
  28361. -- Target Hook: void TARGET_ASM_FILE_START (void)
  28362. Output to 'asm_out_file' any text which the assembler expects to
  28363. find at the beginning of a file. The default behavior is
  28364. controlled by two flags, documented below. Unless your target's
  28365. assembler is quite unusual, if you override the default, you should
  28366. call 'default_file_start' at some point in your target hook. This
  28367. lets other target files rely on these variables.
  28368. -- Target Hook: bool TARGET_ASM_FILE_START_APP_OFF
  28369. If this flag is true, the text of the macro 'ASM_APP_OFF' will be
  28370. printed as the very first line in the assembly file, unless
  28371. '-fverbose-asm' is in effect. (If that macro has been defined to
  28372. the empty string, this variable has no effect.) With the normal
  28373. definition of 'ASM_APP_OFF', the effect is to notify the GNU
  28374. assembler that it need not bother stripping comments or extra
  28375. whitespace from its input. This allows it to work a bit faster.
  28376. The default is false. You should not set it to true unless you
  28377. have verified that your port does not generate any extra whitespace
  28378. or comments that will cause GAS to issue errors in NO_APP mode.
  28379. -- Target Hook: bool TARGET_ASM_FILE_START_FILE_DIRECTIVE
  28380. If this flag is true, 'output_file_directive' will be called for
  28381. the primary source file, immediately after printing 'ASM_APP_OFF'
  28382. (if that is enabled). Most ELF assemblers expect this to be done.
  28383. The default is false.
  28384. -- Target Hook: void TARGET_ASM_FILE_END (void)
  28385. Output to 'asm_out_file' any text which the assembler expects to
  28386. find at the end of a file. The default is to output nothing.
  28387. -- Function: void file_end_indicate_exec_stack ()
  28388. Some systems use a common convention, the '.note.GNU-stack' special
  28389. section, to indicate whether or not an object file relies on the
  28390. stack being executable. If your system uses this convention, you
  28391. should define 'TARGET_ASM_FILE_END' to this function. If you need
  28392. to do other things in that hook, have your hook function call this
  28393. function.
  28394. -- Target Hook: void TARGET_ASM_LTO_START (void)
  28395. Output to 'asm_out_file' any text which the assembler expects to
  28396. find at the start of an LTO section. The default is to output
  28397. nothing.
  28398. -- Target Hook: void TARGET_ASM_LTO_END (void)
  28399. Output to 'asm_out_file' any text which the assembler expects to
  28400. find at the end of an LTO section. The default is to output
  28401. nothing.
  28402. -- Target Hook: void TARGET_ASM_CODE_END (void)
  28403. Output to 'asm_out_file' any text which is needed before emitting
  28404. unwind info and debug info at the end of a file. Some targets emit
  28405. here PIC setup thunks that cannot be emitted at the end of file,
  28406. because they couldn't have unwind info then. The default is to
  28407. output nothing.
  28408. -- Macro: ASM_COMMENT_START
  28409. A C string constant describing how to begin a comment in the target
  28410. assembler language. The compiler assumes that the comment will end
  28411. at the end of the line.
  28412. -- Macro: ASM_APP_ON
  28413. A C string constant for text to be output before each 'asm'
  28414. statement or group of consecutive ones. Normally this is '"#APP"',
  28415. which is a comment that has no effect on most assemblers but tells
  28416. the GNU assembler that it must check the lines that follow for all
  28417. valid assembler constructs.
  28418. -- Macro: ASM_APP_OFF
  28419. A C string constant for text to be output after each 'asm'
  28420. statement or group of consecutive ones. Normally this is
  28421. '"#NO_APP"', which tells the GNU assembler to resume making the
  28422. time-saving assumptions that are valid for ordinary compiler
  28423. output.
  28424. -- Macro: ASM_OUTPUT_SOURCE_FILENAME (STREAM, NAME)
  28425. A C statement to output COFF information or DWARF debugging
  28426. information which indicates that filename NAME is the current
  28427. source file to the stdio stream STREAM.
  28428. This macro need not be defined if the standard form of output for
  28429. the file format in use is appropriate.
  28430. -- Target Hook: void TARGET_ASM_OUTPUT_SOURCE_FILENAME (FILE *FILE,
  28431. const char *NAME)
  28432. Output COFF information or DWARF debugging information which
  28433. indicates that filename NAME is the current source file to the
  28434. stdio stream FILE.
  28435. This target hook need not be defined if the standard form of output
  28436. for the file format in use is appropriate.
  28437. -- Target Hook: void TARGET_ASM_OUTPUT_IDENT (const char *NAME)
  28438. Output a string based on NAME, suitable for the '#ident' directive,
  28439. or the equivalent directive or pragma in non-C-family languages.
  28440. If this hook is not defined, nothing is output for the '#ident'
  28441. directive.
  28442. -- Macro: OUTPUT_QUOTED_STRING (STREAM, STRING)
  28443. A C statement to output the string STRING to the stdio stream
  28444. STREAM. If you do not call the function 'output_quoted_string' in
  28445. your config files, GCC will only call it to output filenames to the
  28446. assembler source. So you can use it to canonicalize the format of
  28447. the filename using this macro.
  28448. -- Target Hook: void TARGET_ASM_NAMED_SECTION (const char *NAME,
  28449. unsigned int FLAGS, tree DECL)
  28450. Output assembly directives to switch to section NAME. The section
  28451. should have attributes as specified by FLAGS, which is a bit mask
  28452. of the 'SECTION_*' flags defined in 'output.h'. If DECL is
  28453. non-NULL, it is the 'VAR_DECL' or 'FUNCTION_DECL' with which this
  28454. section is associated.
  28455. -- Target Hook: bool TARGET_ASM_ELF_FLAGS_NUMERIC (unsigned int FLAGS,
  28456. unsigned int *NUM)
  28457. This hook can be used to encode ELF section flags for which no
  28458. letter code has been defined in the assembler. It is called by
  28459. 'default_asm_named_section' whenever the section flags need to be
  28460. emitted in the assembler output. If the hook returns true, then
  28461. the numerical value for ELF section flags should be calculated from
  28462. FLAGS and saved in *NUM; the value is printed out instead of the
  28463. normal sequence of letter codes. If the hook is not defined, or if
  28464. it returns false, then NUM is ignored and the traditional letter
  28465. sequence is emitted.
  28466. -- Target Hook: section * TARGET_ASM_FUNCTION_SECTION (tree DECL, enum
  28467. node_frequency FREQ, bool STARTUP, bool EXIT)
  28468. Return preferred text (sub)section for function DECL. Main purpose
  28469. of this function is to separate cold, normal and hot functions.
  28470. STARTUP is true when function is known to be used only at startup
  28471. (from static constructors or it is 'main()'). EXIT is true when
  28472. function is known to be used only at exit (from static
  28473. destructors). Return NULL if function should go to default text
  28474. section.
  28475. -- Target Hook: void TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS (FILE
  28476. *FILE, tree DECL, bool NEW_IS_COLD)
  28477. Used by the target to emit any assembler directives or additional
  28478. labels needed when a function is partitioned between different
  28479. sections. Output should be written to FILE. The function decl is
  28480. available as DECL and the new section is 'cold' if NEW_IS_COLD is
  28481. 'true'.
  28482. -- Common Target Hook: bool TARGET_HAVE_NAMED_SECTIONS
  28483. This flag is true if the target supports
  28484. 'TARGET_ASM_NAMED_SECTION'. It must not be modified by
  28485. command-line option processing.
  28486. -- Target Hook: bool TARGET_HAVE_SWITCHABLE_BSS_SECTIONS
  28487. This flag is true if we can create zeroed data by switching to a
  28488. BSS section and then using 'ASM_OUTPUT_SKIP' to allocate the space.
  28489. This is true on most ELF targets.
  28490. -- Target Hook: unsigned int TARGET_SECTION_TYPE_FLAGS (tree DECL,
  28491. const char *NAME, int RELOC)
  28492. Choose a set of section attributes for use by
  28493. 'TARGET_ASM_NAMED_SECTION' based on a variable or function decl, a
  28494. section name, and whether or not the declaration's initializer may
  28495. contain runtime relocations. DECL may be null, in which case
  28496. read-write data should be assumed.
  28497. The default version of this function handles choosing code vs data,
  28498. read-only vs read-write data, and 'flag_pic'. You should only need
  28499. to override this if your target has special flags that might be set
  28500. via '__attribute__'.
  28501. -- Target Hook: int TARGET_ASM_RECORD_GCC_SWITCHES (print_switch_type
  28502. TYPE, const char *TEXT)
  28503. Provides the target with the ability to record the gcc command line
  28504. switches that have been passed to the compiler, and options that
  28505. are enabled. The TYPE argument specifies what is being recorded.
  28506. It can take the following values:
  28507. 'SWITCH_TYPE_PASSED'
  28508. TEXT is a command line switch that has been set by the user.
  28509. 'SWITCH_TYPE_ENABLED'
  28510. TEXT is an option which has been enabled. This might be as a
  28511. direct result of a command line switch, or because it is
  28512. enabled by default or because it has been enabled as a side
  28513. effect of a different command line switch. For example, the
  28514. '-O2' switch enables various different individual optimization
  28515. passes.
  28516. 'SWITCH_TYPE_DESCRIPTIVE'
  28517. TEXT is either NULL or some descriptive text which should be
  28518. ignored. If TEXT is NULL then it is being used to warn the
  28519. target hook that either recording is starting or ending. The
  28520. first time TYPE is SWITCH_TYPE_DESCRIPTIVE and TEXT is NULL,
  28521. the warning is for start up and the second time the warning is
  28522. for wind down. This feature is to allow the target hook to
  28523. make any necessary preparations before it starts to record
  28524. switches and to perform any necessary tidying up after it has
  28525. finished recording switches.
  28526. 'SWITCH_TYPE_LINE_START'
  28527. This option can be ignored by this target hook.
  28528. 'SWITCH_TYPE_LINE_END'
  28529. This option can be ignored by this target hook.
  28530. The hook's return value must be zero. Other return values may be
  28531. supported in the future.
  28532. By default this hook is set to NULL, but an example implementation
  28533. is provided for ELF based targets. Called ELF_RECORD_GCC_SWITCHES,
  28534. it records the switches as ASCII text inside a new, string
  28535. mergeable section in the assembler output file. The name of the
  28536. new section is provided by the
  28537. 'TARGET_ASM_RECORD_GCC_SWITCHES_SECTION' target hook.
  28538. -- Target Hook: const char * TARGET_ASM_RECORD_GCC_SWITCHES_SECTION
  28539. This is the name of the section that will be created by the example
  28540. ELF implementation of the 'TARGET_ASM_RECORD_GCC_SWITCHES' target
  28541. hook.
  28542. 
  28543. File: gccint.info, Node: Data Output, Next: Uninitialized Data, Prev: File Framework, Up: Assembler Format
  28544. 17.20.2 Output of Data
  28545. ----------------------
  28546. -- Target Hook: const char * TARGET_ASM_BYTE_OP
  28547. -- Target Hook: const char * TARGET_ASM_ALIGNED_HI_OP
  28548. -- Target Hook: const char * TARGET_ASM_ALIGNED_SI_OP
  28549. -- Target Hook: const char * TARGET_ASM_ALIGNED_DI_OP
  28550. -- Target Hook: const char * TARGET_ASM_ALIGNED_TI_OP
  28551. -- Target Hook: const char * TARGET_ASM_UNALIGNED_HI_OP
  28552. -- Target Hook: const char * TARGET_ASM_UNALIGNED_SI_OP
  28553. -- Target Hook: const char * TARGET_ASM_UNALIGNED_DI_OP
  28554. -- Target Hook: const char * TARGET_ASM_UNALIGNED_TI_OP
  28555. These hooks specify assembly directives for creating certain kinds
  28556. of integer object. The 'TARGET_ASM_BYTE_OP' directive creates a
  28557. byte-sized object, the 'TARGET_ASM_ALIGNED_HI_OP' one creates an
  28558. aligned two-byte object, and so on. Any of the hooks may be
  28559. 'NULL', indicating that no suitable directive is available.
  28560. The compiler will print these strings at the start of a new line,
  28561. followed immediately by the object's initial value. In most cases,
  28562. the string should contain a tab, a pseudo-op, and then another tab.
  28563. -- Target Hook: bool TARGET_ASM_INTEGER (rtx X, unsigned int SIZE, int
  28564. ALIGNED_P)
  28565. The 'assemble_integer' function uses this hook to output an integer
  28566. object. X is the object's value, SIZE is its size in bytes and
  28567. ALIGNED_P indicates whether it is aligned. The function should
  28568. return 'true' if it was able to output the object. If it returns
  28569. false, 'assemble_integer' will try to split the object into smaller
  28570. parts.
  28571. The default implementation of this hook will use the
  28572. 'TARGET_ASM_BYTE_OP' family of strings, returning 'false' when the
  28573. relevant string is 'NULL'.
  28574. -- Target Hook: void TARGET_ASM_DECL_END (void)
  28575. Define this hook if the target assembler requires a special marker
  28576. to terminate an initialized variable declaration.
  28577. -- Target Hook: bool TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA (FILE *FILE,
  28578. rtx X)
  28579. A target hook to recognize RTX patterns that 'output_addr_const'
  28580. can't deal with, and output assembly code to FILE corresponding to
  28581. the pattern X. This may be used to allow machine-dependent
  28582. 'UNSPEC's to appear within constants.
  28583. If target hook fails to recognize a pattern, it must return
  28584. 'false', so that a standard error message is printed. If it prints
  28585. an error message itself, by calling, for example,
  28586. 'output_operand_lossage', it may just return 'true'.
  28587. -- Macro: ASM_OUTPUT_ASCII (STREAM, PTR, LEN)
  28588. A C statement to output to the stdio stream STREAM an assembler
  28589. instruction to assemble a string constant containing the LEN bytes
  28590. at PTR. PTR will be a C expression of type 'char *' and LEN a C
  28591. expression of type 'int'.
  28592. If the assembler has a '.ascii' pseudo-op as found in the Berkeley
  28593. Unix assembler, do not define the macro 'ASM_OUTPUT_ASCII'.
  28594. -- Macro: ASM_OUTPUT_FDESC (STREAM, DECL, N)
  28595. A C statement to output word N of a function descriptor for DECL.
  28596. This must be defined if 'TARGET_VTABLE_USES_DESCRIPTORS' is
  28597. defined, and is otherwise unused.
  28598. -- Macro: CONSTANT_POOL_BEFORE_FUNCTION
  28599. You may define this macro as a C expression. You should define the
  28600. expression to have a nonzero value if GCC should output the
  28601. constant pool for a function before the code for the function, or a
  28602. zero value if GCC should output the constant pool after the
  28603. function. If you do not define this macro, the usual case, GCC
  28604. will output the constant pool before the function.
  28605. -- Macro: ASM_OUTPUT_POOL_PROLOGUE (FILE, FUNNAME, FUNDECL, SIZE)
  28606. A C statement to output assembler commands to define the start of
  28607. the constant pool for a function. FUNNAME is a string giving the
  28608. name of the function. Should the return type of the function be
  28609. required, it can be obtained via FUNDECL. SIZE is the size, in
  28610. bytes, of the constant pool that will be written immediately after
  28611. this call.
  28612. If no constant-pool prefix is required, the usual case, this macro
  28613. need not be defined.
  28614. -- Macro: ASM_OUTPUT_SPECIAL_POOL_ENTRY (FILE, X, MODE, ALIGN, LABELNO,
  28615. JUMPTO)
  28616. A C statement (with or without semicolon) to output a constant in
  28617. the constant pool, if it needs special treatment. (This macro need
  28618. not do anything for RTL expressions that can be output normally.)
  28619. The argument FILE is the standard I/O stream to output the
  28620. assembler code on. X is the RTL expression for the constant to
  28621. output, and MODE is the machine mode (in case X is a 'const_int').
  28622. ALIGN is the required alignment for the value X; you should output
  28623. an assembler directive to force this much alignment.
  28624. The argument LABELNO is a number to use in an internal label for
  28625. the address of this pool entry. The definition of this macro is
  28626. responsible for outputting the label definition at the proper
  28627. place. Here is how to do this:
  28628. (*targetm.asm_out.internal_label) (FILE, "LC", LABELNO);
  28629. When you output a pool entry specially, you should end with a
  28630. 'goto' to the label JUMPTO. This will prevent the same pool entry
  28631. from being output a second time in the usual manner.
  28632. You need not define this macro if it would do nothing.
  28633. -- Macro: ASM_OUTPUT_POOL_EPILOGUE (FILE FUNNAME FUNDECL SIZE)
  28634. A C statement to output assembler commands to at the end of the
  28635. constant pool for a function. FUNNAME is a string giving the name
  28636. of the function. Should the return type of the function be
  28637. required, you can obtain it via FUNDECL. SIZE is the size, in
  28638. bytes, of the constant pool that GCC wrote immediately before this
  28639. call.
  28640. If no constant-pool epilogue is required, the usual case, you need
  28641. not define this macro.
  28642. -- Macro: IS_ASM_LOGICAL_LINE_SEPARATOR (C, STR)
  28643. Define this macro as a C expression which is nonzero if C is used
  28644. as a logical line separator by the assembler. STR points to the
  28645. position in the string where C was found; this can be used if a
  28646. line separator uses multiple characters.
  28647. If you do not define this macro, the default is that only the
  28648. character ';' is treated as a logical line separator.
  28649. -- Target Hook: const char * TARGET_ASM_OPEN_PAREN
  28650. -- Target Hook: const char * TARGET_ASM_CLOSE_PAREN
  28651. These target hooks are C string constants, describing the syntax in
  28652. the assembler for grouping arithmetic expressions. If not
  28653. overridden, they default to normal parentheses, which is correct
  28654. for most assemblers.
  28655. These macros are provided by 'real.h' for writing the definitions of
  28656. 'ASM_OUTPUT_DOUBLE' and the like:
  28657. -- Macro: REAL_VALUE_TO_TARGET_SINGLE (X, L)
  28658. -- Macro: REAL_VALUE_TO_TARGET_DOUBLE (X, L)
  28659. -- Macro: REAL_VALUE_TO_TARGET_LONG_DOUBLE (X, L)
  28660. -- Macro: REAL_VALUE_TO_TARGET_DECIMAL32 (X, L)
  28661. -- Macro: REAL_VALUE_TO_TARGET_DECIMAL64 (X, L)
  28662. -- Macro: REAL_VALUE_TO_TARGET_DECIMAL128 (X, L)
  28663. These translate X, of type 'REAL_VALUE_TYPE', to the target's
  28664. floating point representation, and store its bit pattern in the
  28665. variable L. For 'REAL_VALUE_TO_TARGET_SINGLE' and
  28666. 'REAL_VALUE_TO_TARGET_DECIMAL32', this variable should be a simple
  28667. 'long int'. For the others, it should be an array of 'long int'.
  28668. The number of elements in this array is determined by the size of
  28669. the desired target floating point data type: 32 bits of it go in
  28670. each 'long int' array element. Each array element holds 32 bits of
  28671. the result, even if 'long int' is wider than 32 bits on the host
  28672. machine.
  28673. The array element values are designed so that you can print them
  28674. out using 'fprintf' in the order they should appear in the target
  28675. machine's memory.
  28676. 
  28677. File: gccint.info, Node: Uninitialized Data, Next: Label Output, Prev: Data Output, Up: Assembler Format
  28678. 17.20.3 Output of Uninitialized Variables
  28679. -----------------------------------------
  28680. Each of the macros in this section is used to do the whole job of
  28681. outputting a single uninitialized variable.
  28682. -- Macro: ASM_OUTPUT_COMMON (STREAM, NAME, SIZE, ROUNDED)
  28683. A C statement (sans semicolon) to output to the stdio stream STREAM
  28684. the assembler definition of a common-label named NAME whose size is
  28685. SIZE bytes. The variable ROUNDED is the size rounded up to
  28686. whatever alignment the caller wants. It is possible that SIZE may
  28687. be zero, for instance if a struct with no other member than a
  28688. zero-length array is defined. In this case, the backend must
  28689. output a symbol definition that allocates at least one byte, both
  28690. so that the address of the resulting object does not compare equal
  28691. to any other, and because some object formats cannot even express
  28692. the concept of a zero-sized common symbol, as that is how they
  28693. represent an ordinary undefined external.
  28694. Use the expression 'assemble_name (STREAM, NAME)' to output the
  28695. name itself; before and after that, output the additional assembler
  28696. syntax for defining the name, and a newline.
  28697. This macro controls how the assembler definitions of uninitialized
  28698. common global variables are output.
  28699. -- Macro: ASM_OUTPUT_ALIGNED_COMMON (STREAM, NAME, SIZE, ALIGNMENT)
  28700. Like 'ASM_OUTPUT_COMMON' except takes the required alignment as a
  28701. separate, explicit argument. If you define this macro, it is used
  28702. in place of 'ASM_OUTPUT_COMMON', and gives you more flexibility in
  28703. handling the required alignment of the variable. The alignment is
  28704. specified as the number of bits.
  28705. -- Macro: ASM_OUTPUT_ALIGNED_DECL_COMMON (STREAM, DECL, NAME, SIZE,
  28706. ALIGNMENT)
  28707. Like 'ASM_OUTPUT_ALIGNED_COMMON' except that DECL of the variable
  28708. to be output, if there is one, or 'NULL_TREE' if there is no
  28709. corresponding variable. If you define this macro, GCC will use it
  28710. in place of both 'ASM_OUTPUT_COMMON' and
  28711. 'ASM_OUTPUT_ALIGNED_COMMON'. Define this macro when you need to
  28712. see the variable's decl in order to chose what to output.
  28713. -- Macro: ASM_OUTPUT_ALIGNED_BSS (STREAM, DECL, NAME, SIZE, ALIGNMENT)
  28714. A C statement (sans semicolon) to output to the stdio stream STREAM
  28715. the assembler definition of uninitialized global DECL named NAME
  28716. whose size is SIZE bytes. The variable ALIGNMENT is the alignment
  28717. specified as the number of bits.
  28718. Try to use function 'asm_output_aligned_bss' defined in file
  28719. 'varasm.c' when defining this macro. If unable, use the expression
  28720. 'assemble_name (STREAM, NAME)' to output the name itself; before
  28721. and after that, output the additional assembler syntax for defining
  28722. the name, and a newline.
  28723. There are two ways of handling global BSS. One is to define this
  28724. macro. The other is to have 'TARGET_ASM_SELECT_SECTION' return a
  28725. switchable BSS section (*note
  28726. TARGET_HAVE_SWITCHABLE_BSS_SECTIONS::). You do not need to do
  28727. both.
  28728. Some languages do not have 'common' data, and require a non-common
  28729. form of global BSS in order to handle uninitialized globals
  28730. efficiently. C++ is one example of this. However, if the target
  28731. does not support global BSS, the front end may choose to make
  28732. globals common in order to save space in the object file.
  28733. -- Macro: ASM_OUTPUT_LOCAL (STREAM, NAME, SIZE, ROUNDED)
  28734. A C statement (sans semicolon) to output to the stdio stream STREAM
  28735. the assembler definition of a local-common-label named NAME whose
  28736. size is SIZE bytes. The variable ROUNDED is the size rounded up to
  28737. whatever alignment the caller wants.
  28738. Use the expression 'assemble_name (STREAM, NAME)' to output the
  28739. name itself; before and after that, output the additional assembler
  28740. syntax for defining the name, and a newline.
  28741. This macro controls how the assembler definitions of uninitialized
  28742. static variables are output.
  28743. -- Macro: ASM_OUTPUT_ALIGNED_LOCAL (STREAM, NAME, SIZE, ALIGNMENT)
  28744. Like 'ASM_OUTPUT_LOCAL' except takes the required alignment as a
  28745. separate, explicit argument. If you define this macro, it is used
  28746. in place of 'ASM_OUTPUT_LOCAL', and gives you more flexibility in
  28747. handling the required alignment of the variable. The alignment is
  28748. specified as the number of bits.
  28749. -- Macro: ASM_OUTPUT_ALIGNED_DECL_LOCAL (STREAM, DECL, NAME, SIZE,
  28750. ALIGNMENT)
  28751. Like 'ASM_OUTPUT_ALIGNED_DECL' except that DECL of the variable to
  28752. be output, if there is one, or 'NULL_TREE' if there is no
  28753. corresponding variable. If you define this macro, GCC will use it
  28754. in place of both 'ASM_OUTPUT_DECL' and 'ASM_OUTPUT_ALIGNED_DECL'.
  28755. Define this macro when you need to see the variable's decl in order
  28756. to chose what to output.
  28757. 
  28758. File: gccint.info, Node: Label Output, Next: Initialization, Prev: Uninitialized Data, Up: Assembler Format
  28759. 17.20.4 Output and Generation of Labels
  28760. ---------------------------------------
  28761. This is about outputting labels.
  28762. -- Macro: ASM_OUTPUT_LABEL (STREAM, NAME)
  28763. A C statement (sans semicolon) to output to the stdio stream STREAM
  28764. the assembler definition of a label named NAME. Use the expression
  28765. 'assemble_name (STREAM, NAME)' to output the name itself; before
  28766. and after that, output the additional assembler syntax for defining
  28767. the name, and a newline. A default definition of this macro is
  28768. provided which is correct for most systems.
  28769. -- Macro: ASM_OUTPUT_FUNCTION_LABEL (STREAM, NAME, DECL)
  28770. A C statement (sans semicolon) to output to the stdio stream STREAM
  28771. the assembler definition of a label named NAME of a function. Use
  28772. the expression 'assemble_name (STREAM, NAME)' to output the name
  28773. itself; before and after that, output the additional assembler
  28774. syntax for defining the name, and a newline. A default definition
  28775. of this macro is provided which is correct for most systems.
  28776. If this macro is not defined, then the function name is defined in
  28777. the usual manner as a label (by means of 'ASM_OUTPUT_LABEL').
  28778. -- Macro: ASM_OUTPUT_INTERNAL_LABEL (STREAM, NAME)
  28779. Identical to 'ASM_OUTPUT_LABEL', except that NAME is known to refer
  28780. to a compiler-generated label. The default definition uses
  28781. 'assemble_name_raw', which is like 'assemble_name' except that it
  28782. is more efficient.
  28783. -- Macro: SIZE_ASM_OP
  28784. A C string containing the appropriate assembler directive to
  28785. specify the size of a symbol, without any arguments. On systems
  28786. that use ELF, the default (in 'config/elfos.h') is '"\t.size\t"';
  28787. on other systems, the default is not to define this macro.
  28788. Define this macro only if it is correct to use the default
  28789. definitions of 'ASM_OUTPUT_SIZE_DIRECTIVE' and
  28790. 'ASM_OUTPUT_MEASURED_SIZE' for your system. If you need your own
  28791. custom definitions of those macros, or if you do not need explicit
  28792. symbol sizes at all, do not define this macro.
  28793. -- Macro: ASM_OUTPUT_SIZE_DIRECTIVE (STREAM, NAME, SIZE)
  28794. A C statement (sans semicolon) to output to the stdio stream STREAM
  28795. a directive telling the assembler that the size of the symbol NAME
  28796. is SIZE. SIZE is a 'HOST_WIDE_INT'. If you define 'SIZE_ASM_OP',
  28797. a default definition of this macro is provided.
  28798. -- Macro: ASM_OUTPUT_MEASURED_SIZE (STREAM, NAME)
  28799. A C statement (sans semicolon) to output to the stdio stream STREAM
  28800. a directive telling the assembler to calculate the size of the
  28801. symbol NAME by subtracting its address from the current address.
  28802. If you define 'SIZE_ASM_OP', a default definition of this macro is
  28803. provided. The default assumes that the assembler recognizes a
  28804. special '.' symbol as referring to the current address, and can
  28805. calculate the difference between this and another symbol. If your
  28806. assembler does not recognize '.' or cannot do calculations with it,
  28807. you will need to redefine 'ASM_OUTPUT_MEASURED_SIZE' to use some
  28808. other technique.
  28809. -- Macro: NO_DOLLAR_IN_LABEL
  28810. Define this macro if the assembler does not accept the character
  28811. '$' in label names. By default constructors and destructors in G++
  28812. have '$' in the identifiers. If this macro is defined, '.' is used
  28813. instead.
  28814. -- Macro: NO_DOT_IN_LABEL
  28815. Define this macro if the assembler does not accept the character
  28816. '.' in label names. By default constructors and destructors in G++
  28817. have names that use '.'. If this macro is defined, these names are
  28818. rewritten to avoid '.'.
  28819. -- Macro: TYPE_ASM_OP
  28820. A C string containing the appropriate assembler directive to
  28821. specify the type of a symbol, without any arguments. On systems
  28822. that use ELF, the default (in 'config/elfos.h') is '"\t.type\t"';
  28823. on other systems, the default is not to define this macro.
  28824. Define this macro only if it is correct to use the default
  28825. definition of 'ASM_OUTPUT_TYPE_DIRECTIVE' for your system. If you
  28826. need your own custom definition of this macro, or if you do not
  28827. need explicit symbol types at all, do not define this macro.
  28828. -- Macro: TYPE_OPERAND_FMT
  28829. A C string which specifies (using 'printf' syntax) the format of
  28830. the second operand to 'TYPE_ASM_OP'. On systems that use ELF, the
  28831. default (in 'config/elfos.h') is '"@%s"'; on other systems, the
  28832. default is not to define this macro.
  28833. Define this macro only if it is correct to use the default
  28834. definition of 'ASM_OUTPUT_TYPE_DIRECTIVE' for your system. If you
  28835. need your own custom definition of this macro, or if you do not
  28836. need explicit symbol types at all, do not define this macro.
  28837. -- Macro: ASM_OUTPUT_TYPE_DIRECTIVE (STREAM, TYPE)
  28838. A C statement (sans semicolon) to output to the stdio stream STREAM
  28839. a directive telling the assembler that the type of the symbol NAME
  28840. is TYPE. TYPE is a C string; currently, that string is always
  28841. either '"function"' or '"object"', but you should not count on
  28842. this.
  28843. If you define 'TYPE_ASM_OP' and 'TYPE_OPERAND_FMT', a default
  28844. definition of this macro is provided.
  28845. -- Macro: ASM_DECLARE_FUNCTION_NAME (STREAM, NAME, DECL)
  28846. A C statement (sans semicolon) to output to the stdio stream STREAM
  28847. any text necessary for declaring the name NAME of a function which
  28848. is being defined. This macro is responsible for outputting the
  28849. label definition (perhaps using 'ASM_OUTPUT_FUNCTION_LABEL'). The
  28850. argument DECL is the 'FUNCTION_DECL' tree node representing the
  28851. function.
  28852. If this macro is not defined, then the function name is defined in
  28853. the usual manner as a label (by means of
  28854. 'ASM_OUTPUT_FUNCTION_LABEL').
  28855. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' in the definition
  28856. of this macro.
  28857. -- Macro: ASM_DECLARE_FUNCTION_SIZE (STREAM, NAME, DECL)
  28858. A C statement (sans semicolon) to output to the stdio stream STREAM
  28859. any text necessary for declaring the size of a function which is
  28860. being defined. The argument NAME is the name of the function. The
  28861. argument DECL is the 'FUNCTION_DECL' tree node representing the
  28862. function.
  28863. If this macro is not defined, then the function size is not
  28864. defined.
  28865. You may wish to use 'ASM_OUTPUT_MEASURED_SIZE' in the definition of
  28866. this macro.
  28867. -- Macro: ASM_DECLARE_COLD_FUNCTION_NAME (STREAM, NAME, DECL)
  28868. A C statement (sans semicolon) to output to the stdio stream STREAM
  28869. any text necessary for declaring the name NAME of a cold function
  28870. partition which is being defined. This macro is responsible for
  28871. outputting the label definition (perhaps using
  28872. 'ASM_OUTPUT_FUNCTION_LABEL'). The argument DECL is the
  28873. 'FUNCTION_DECL' tree node representing the function.
  28874. If this macro is not defined, then the cold partition name is
  28875. defined in the usual manner as a label (by means of
  28876. 'ASM_OUTPUT_LABEL').
  28877. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' in the definition
  28878. of this macro.
  28879. -- Macro: ASM_DECLARE_COLD_FUNCTION_SIZE (STREAM, NAME, DECL)
  28880. A C statement (sans semicolon) to output to the stdio stream STREAM
  28881. any text necessary for declaring the size of a cold function
  28882. partition which is being defined. The argument NAME is the name of
  28883. the cold partition of the function. The argument DECL is the
  28884. 'FUNCTION_DECL' tree node representing the function.
  28885. If this macro is not defined, then the partition size is not
  28886. defined.
  28887. You may wish to use 'ASM_OUTPUT_MEASURED_SIZE' in the definition of
  28888. this macro.
  28889. -- Macro: ASM_DECLARE_OBJECT_NAME (STREAM, NAME, DECL)
  28890. A C statement (sans semicolon) to output to the stdio stream STREAM
  28891. any text necessary for declaring the name NAME of an initialized
  28892. variable which is being defined. This macro must output the label
  28893. definition (perhaps using 'ASM_OUTPUT_LABEL'). The argument DECL
  28894. is the 'VAR_DECL' tree node representing the variable.
  28895. If this macro is not defined, then the variable name is defined in
  28896. the usual manner as a label (by means of 'ASM_OUTPUT_LABEL').
  28897. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' and/or
  28898. 'ASM_OUTPUT_SIZE_DIRECTIVE' in the definition of this macro.
  28899. -- Target Hook: void TARGET_ASM_DECLARE_CONSTANT_NAME (FILE *FILE,
  28900. const char *NAME, const_tree EXPR, HOST_WIDE_INT SIZE)
  28901. A target hook to output to the stdio stream FILE any text necessary
  28902. for declaring the name NAME of a constant which is being defined.
  28903. This target hook is responsible for outputting the label definition
  28904. (perhaps using 'assemble_label'). The argument EXP is the value of
  28905. the constant, and SIZE is the size of the constant in bytes. The
  28906. NAME will be an internal label.
  28907. The default version of this target hook, define the NAME in the
  28908. usual manner as a label (by means of 'assemble_label').
  28909. You may wish to use 'ASM_OUTPUT_TYPE_DIRECTIVE' in this target
  28910. hook.
  28911. -- Macro: ASM_DECLARE_REGISTER_GLOBAL (STREAM, DECL, REGNO, NAME)
  28912. A C statement (sans semicolon) to output to the stdio stream STREAM
  28913. any text necessary for claiming a register REGNO for a global
  28914. variable DECL with name NAME.
  28915. If you don't define this macro, that is equivalent to defining it
  28916. to do nothing.
  28917. -- Macro: ASM_FINISH_DECLARE_OBJECT (STREAM, DECL, TOPLEVEL, ATEND)
  28918. A C statement (sans semicolon) to finish up declaring a variable
  28919. name once the compiler has processed its initializer fully and thus
  28920. has had a chance to determine the size of an array when controlled
  28921. by an initializer. This is used on systems where it's necessary to
  28922. declare something about the size of the object.
  28923. If you don't define this macro, that is equivalent to defining it
  28924. to do nothing.
  28925. You may wish to use 'ASM_OUTPUT_SIZE_DIRECTIVE' and/or
  28926. 'ASM_OUTPUT_MEASURED_SIZE' in the definition of this macro.
  28927. -- Target Hook: void TARGET_ASM_GLOBALIZE_LABEL (FILE *STREAM, const
  28928. char *NAME)
  28929. This target hook is a function to output to the stdio stream STREAM
  28930. some commands that will make the label NAME global; that is,
  28931. available for reference from other files.
  28932. The default implementation relies on a proper definition of
  28933. 'GLOBAL_ASM_OP'.
  28934. -- Target Hook: void TARGET_ASM_GLOBALIZE_DECL_NAME (FILE *STREAM, tree
  28935. DECL)
  28936. This target hook is a function to output to the stdio stream STREAM
  28937. some commands that will make the name associated with DECL global;
  28938. that is, available for reference from other files.
  28939. The default implementation uses the TARGET_ASM_GLOBALIZE_LABEL
  28940. target hook.
  28941. -- Target Hook: void TARGET_ASM_ASSEMBLE_UNDEFINED_DECL (FILE *STREAM,
  28942. const char *NAME, const_tree DECL)
  28943. This target hook is a function to output to the stdio stream STREAM
  28944. some commands that will declare the name associated with DECL which
  28945. is not defined in the current translation unit. Most assemblers do
  28946. not require anything to be output in this case.
  28947. -- Macro: ASM_WEAKEN_LABEL (STREAM, NAME)
  28948. A C statement (sans semicolon) to output to the stdio stream STREAM
  28949. some commands that will make the label NAME weak; that is,
  28950. available for reference from other files but only used if no other
  28951. definition is available. Use the expression 'assemble_name
  28952. (STREAM, NAME)' to output the name itself; before and after that,
  28953. output the additional assembler syntax for making that name weak,
  28954. and a newline.
  28955. If you don't define this macro or 'ASM_WEAKEN_DECL', GCC will not
  28956. support weak symbols and you should not define the 'SUPPORTS_WEAK'
  28957. macro.
  28958. -- Macro: ASM_WEAKEN_DECL (STREAM, DECL, NAME, VALUE)
  28959. Combines (and replaces) the function of 'ASM_WEAKEN_LABEL' and
  28960. 'ASM_OUTPUT_WEAK_ALIAS', allowing access to the associated function
  28961. or variable decl. If VALUE is not 'NULL', this C statement should
  28962. output to the stdio stream STREAM assembler code which defines
  28963. (equates) the weak symbol NAME to have the value VALUE. If VALUE
  28964. is 'NULL', it should output commands to make NAME weak.
  28965. -- Macro: ASM_OUTPUT_WEAKREF (STREAM, DECL, NAME, VALUE)
  28966. Outputs a directive that enables NAME to be used to refer to symbol
  28967. VALUE with weak-symbol semantics. 'decl' is the declaration of
  28968. 'name'.
  28969. -- Macro: SUPPORTS_WEAK
  28970. A preprocessor constant expression which evaluates to true if the
  28971. target supports weak symbols.
  28972. If you don't define this macro, 'defaults.h' provides a default
  28973. definition. If either 'ASM_WEAKEN_LABEL' or 'ASM_WEAKEN_DECL' is
  28974. defined, the default definition is '1'; otherwise, it is '0'.
  28975. -- Macro: TARGET_SUPPORTS_WEAK
  28976. A C expression which evaluates to true if the target supports weak
  28977. symbols.
  28978. If you don't define this macro, 'defaults.h' provides a default
  28979. definition. The default definition is '(SUPPORTS_WEAK)'. Define
  28980. this macro if you want to control weak symbol support with a
  28981. compiler flag such as '-melf'.
  28982. -- Macro: MAKE_DECL_ONE_ONLY (DECL)
  28983. A C statement (sans semicolon) to mark DECL to be emitted as a
  28984. public symbol such that extra copies in multiple translation units
  28985. will be discarded by the linker. Define this macro if your object
  28986. file format provides support for this concept, such as the 'COMDAT'
  28987. section flags in the Microsoft Windows PE/COFF format, and this
  28988. support requires changes to DECL, such as putting it in a separate
  28989. section.
  28990. -- Macro: SUPPORTS_ONE_ONLY
  28991. A C expression which evaluates to true if the target supports
  28992. one-only semantics.
  28993. If you don't define this macro, 'varasm.c' provides a default
  28994. definition. If 'MAKE_DECL_ONE_ONLY' is defined, the default
  28995. definition is '1'; otherwise, it is '0'. Define this macro if you
  28996. want to control one-only symbol support with a compiler flag, or if
  28997. setting the 'DECL_ONE_ONLY' flag is enough to mark a declaration to
  28998. be emitted as one-only.
  28999. -- Target Hook: void TARGET_ASM_ASSEMBLE_VISIBILITY (tree DECL, int
  29000. VISIBILITY)
  29001. This target hook is a function to output to ASM_OUT_FILE some
  29002. commands that will make the symbol(s) associated with DECL have
  29003. hidden, protected or internal visibility as specified by
  29004. VISIBILITY.
  29005. -- Macro: TARGET_WEAK_NOT_IN_ARCHIVE_TOC
  29006. A C expression that evaluates to true if the target's linker
  29007. expects that weak symbols do not appear in a static archive's table
  29008. of contents. The default is '0'.
  29009. Leaving weak symbols out of an archive's table of contents means
  29010. that, if a symbol will only have a definition in one translation
  29011. unit and will have undefined references from other translation
  29012. units, that symbol should not be weak. Defining this macro to be
  29013. nonzero will thus have the effect that certain symbols that would
  29014. normally be weak (explicit template instantiations, and vtables for
  29015. polymorphic classes with noninline key methods) will instead be
  29016. nonweak.
  29017. The C++ ABI requires this macro to be zero. Define this macro for
  29018. targets where full C++ ABI compliance is impossible and where
  29019. linker restrictions require weak symbols to be left out of a static
  29020. archive's table of contents.
  29021. -- Macro: ASM_OUTPUT_EXTERNAL (STREAM, DECL, NAME)
  29022. A C statement (sans semicolon) to output to the stdio stream STREAM
  29023. any text necessary for declaring the name of an external symbol
  29024. named NAME which is referenced in this compilation but not defined.
  29025. The value of DECL is the tree node for the declaration.
  29026. This macro need not be defined if it does not need to output
  29027. anything. The GNU assembler and most Unix assemblers don't require
  29028. anything.
  29029. -- Target Hook: void TARGET_ASM_EXTERNAL_LIBCALL (rtx SYMREF)
  29030. This target hook is a function to output to ASM_OUT_FILE an
  29031. assembler pseudo-op to declare a library function name external.
  29032. The name of the library function is given by SYMREF, which is a
  29033. 'symbol_ref'.
  29034. -- Target Hook: void TARGET_ASM_MARK_DECL_PRESERVED (const char
  29035. *SYMBOL)
  29036. This target hook is a function to output to ASM_OUT_FILE an
  29037. assembler directive to annotate SYMBOL as used. The Darwin target
  29038. uses the .no_dead_code_strip directive.
  29039. -- Macro: ASM_OUTPUT_LABELREF (STREAM, NAME)
  29040. A C statement (sans semicolon) to output to the stdio stream STREAM
  29041. a reference in assembler syntax to a label named NAME. This should
  29042. add '_' to the front of the name, if that is customary on your
  29043. operating system, as it is in most Berkeley Unix systems. This
  29044. macro is used in 'assemble_name'.
  29045. -- Target Hook: tree TARGET_MANGLE_ASSEMBLER_NAME (const char *NAME)
  29046. Given a symbol NAME, perform same mangling as 'varasm.c''s
  29047. 'assemble_name', but in memory rather than to a file stream,
  29048. returning result as an 'IDENTIFIER_NODE'. Required for correct LTO
  29049. symtabs. The default implementation calls the
  29050. 'TARGET_STRIP_NAME_ENCODING' hook and then prepends the
  29051. 'USER_LABEL_PREFIX', if any.
  29052. -- Macro: ASM_OUTPUT_SYMBOL_REF (STREAM, SYM)
  29053. A C statement (sans semicolon) to output a reference to
  29054. 'SYMBOL_REF' SYM. If not defined, 'assemble_name' will be used to
  29055. output the name of the symbol. This macro may be used to modify
  29056. the way a symbol is referenced depending on information encoded by
  29057. 'TARGET_ENCODE_SECTION_INFO'.
  29058. -- Macro: ASM_OUTPUT_LABEL_REF (STREAM, BUF)
  29059. A C statement (sans semicolon) to output a reference to BUF, the
  29060. result of 'ASM_GENERATE_INTERNAL_LABEL'. If not defined,
  29061. 'assemble_name' will be used to output the name of the symbol.
  29062. This macro is not used by 'output_asm_label', or the '%l' specifier
  29063. that calls it; the intention is that this macro should be set when
  29064. it is necessary to output a label differently when its address is
  29065. being taken.
  29066. -- Target Hook: void TARGET_ASM_INTERNAL_LABEL (FILE *STREAM, const
  29067. char *PREFIX, unsigned long LABELNO)
  29068. A function to output to the stdio stream STREAM a label whose name
  29069. is made from the string PREFIX and the number LABELNO.
  29070. It is absolutely essential that these labels be distinct from the
  29071. labels used for user-level functions and variables. Otherwise,
  29072. certain programs will have name conflicts with internal labels.
  29073. It is desirable to exclude internal labels from the symbol table of
  29074. the object file. Most assemblers have a naming convention for
  29075. labels that should be excluded; on many systems, the letter 'L' at
  29076. the beginning of a label has this effect. You should find out what
  29077. convention your system uses, and follow it.
  29078. The default version of this function utilizes
  29079. 'ASM_GENERATE_INTERNAL_LABEL'.
  29080. -- Macro: ASM_OUTPUT_DEBUG_LABEL (STREAM, PREFIX, NUM)
  29081. A C statement to output to the stdio stream STREAM a debug info
  29082. label whose name is made from the string PREFIX and the number NUM.
  29083. This is useful for VLIW targets, where debug info labels may need
  29084. to be treated differently than branch target labels. On some
  29085. systems, branch target labels must be at the beginning of
  29086. instruction bundles, but debug info labels can occur in the middle
  29087. of instruction bundles.
  29088. If this macro is not defined, then
  29089. '(*targetm.asm_out.internal_label)' will be used.
  29090. -- Macro: ASM_GENERATE_INTERNAL_LABEL (STRING, PREFIX, NUM)
  29091. A C statement to store into the string STRING a label whose name is
  29092. made from the string PREFIX and the number NUM.
  29093. This string, when output subsequently by 'assemble_name', should
  29094. produce the output that '(*targetm.asm_out.internal_label)' would
  29095. produce with the same PREFIX and NUM.
  29096. If the string begins with '*', then 'assemble_name' will output the
  29097. rest of the string unchanged. It is often convenient for
  29098. 'ASM_GENERATE_INTERNAL_LABEL' to use '*' in this way. If the
  29099. string doesn't start with '*', then 'ASM_OUTPUT_LABELREF' gets to
  29100. output the string, and may change it. (Of course,
  29101. 'ASM_OUTPUT_LABELREF' is also part of your machine description, so
  29102. you should know what it does on your machine.)
  29103. -- Macro: ASM_FORMAT_PRIVATE_NAME (OUTVAR, NAME, NUMBER)
  29104. A C expression to assign to OUTVAR (which is a variable of type
  29105. 'char *') a newly allocated string made from the string NAME and
  29106. the number NUMBER, with some suitable punctuation added. Use
  29107. 'alloca' to get space for the string.
  29108. The string will be used as an argument to 'ASM_OUTPUT_LABELREF' to
  29109. produce an assembler label for an internal static variable whose
  29110. name is NAME. Therefore, the string must be such as to result in
  29111. valid assembler code. The argument NUMBER is different each time
  29112. this macro is executed; it prevents conflicts between
  29113. similarly-named internal static variables in different scopes.
  29114. Ideally this string should not be a valid C identifier, to prevent
  29115. any conflict with the user's own symbols. Most assemblers allow
  29116. periods or percent signs in assembler symbols; putting at least one
  29117. of these between the name and the number will suffice.
  29118. If this macro is not defined, a default definition will be provided
  29119. which is correct for most systems.
  29120. -- Macro: ASM_OUTPUT_DEF (STREAM, NAME, VALUE)
  29121. A C statement to output to the stdio stream STREAM assembler code
  29122. which defines (equates) the symbol NAME to have the value VALUE.
  29123. If 'SET_ASM_OP' is defined, a default definition is provided which
  29124. is correct for most systems.
  29125. -- Macro: ASM_OUTPUT_DEF_FROM_DECLS (STREAM, DECL_OF_NAME,
  29126. DECL_OF_VALUE)
  29127. A C statement to output to the stdio stream STREAM assembler code
  29128. which defines (equates) the symbol whose tree node is DECL_OF_NAME
  29129. to have the value of the tree node DECL_OF_VALUE. This macro will
  29130. be used in preference to 'ASM_OUTPUT_DEF' if it is defined and if
  29131. the tree nodes are available.
  29132. If 'SET_ASM_OP' is defined, a default definition is provided which
  29133. is correct for most systems.
  29134. -- Macro: TARGET_DEFERRED_OUTPUT_DEFS (DECL_OF_NAME, DECL_OF_VALUE)
  29135. A C statement that evaluates to true if the assembler code which
  29136. defines (equates) the symbol whose tree node is DECL_OF_NAME to
  29137. have the value of the tree node DECL_OF_VALUE should be emitted
  29138. near the end of the current compilation unit. The default is to
  29139. not defer output of defines. This macro affects defines output by
  29140. 'ASM_OUTPUT_DEF' and 'ASM_OUTPUT_DEF_FROM_DECLS'.
  29141. -- Macro: ASM_OUTPUT_WEAK_ALIAS (STREAM, NAME, VALUE)
  29142. A C statement to output to the stdio stream STREAM assembler code
  29143. which defines (equates) the weak symbol NAME to have the value
  29144. VALUE. If VALUE is 'NULL', it defines NAME as an undefined weak
  29145. symbol.
  29146. Define this macro if the target only supports weak aliases; define
  29147. 'ASM_OUTPUT_DEF' instead if possible.
  29148. -- Macro: OBJC_GEN_METHOD_LABEL (BUF, IS_INST, CLASS_NAME, CAT_NAME,
  29149. SEL_NAME)
  29150. Define this macro to override the default assembler names used for
  29151. Objective-C methods.
  29152. The default name is a unique method number followed by the name of
  29153. the class (e.g. '_1_Foo'). For methods in categories, the name of
  29154. the category is also included in the assembler name (e.g.
  29155. '_1_Foo_Bar').
  29156. These names are safe on most systems, but make debugging difficult
  29157. since the method's selector is not present in the name. Therefore,
  29158. particular systems define other ways of computing names.
  29159. BUF is an expression of type 'char *' which gives you a buffer in
  29160. which to store the name; its length is as long as CLASS_NAME,
  29161. CAT_NAME and SEL_NAME put together, plus 50 characters extra.
  29162. The argument IS_INST specifies whether the method is an instance
  29163. method or a class method; CLASS_NAME is the name of the class;
  29164. CAT_NAME is the name of the category (or 'NULL' if the method is
  29165. not in a category); and SEL_NAME is the name of the selector.
  29166. On systems where the assembler can handle quoted names, you can use
  29167. this macro to provide more human-readable names.
  29168. 
  29169. File: gccint.info, Node: Initialization, Next: Macros for Initialization, Prev: Label Output, Up: Assembler Format
  29170. 17.20.5 How Initialization Functions Are Handled
  29171. ------------------------------------------------
  29172. The compiled code for certain languages includes "constructors" (also
  29173. called "initialization routines")--functions to initialize data in the
  29174. program when the program is started. These functions need to be called
  29175. before the program is "started"--that is to say, before 'main' is
  29176. called.
  29177. Compiling some languages generates "destructors" (also called
  29178. "termination routines") that should be called when the program
  29179. terminates.
  29180. To make the initialization and termination functions work, the compiler
  29181. must output something in the assembler code to cause those functions to
  29182. be called at the appropriate time. When you port the compiler to a new
  29183. system, you need to specify how to do this.
  29184. There are two major ways that GCC currently supports the execution of
  29185. initialization and termination functions. Each way has two variants.
  29186. Much of the structure is common to all four variations.
  29187. The linker must build two lists of these functions--a list of
  29188. initialization functions, called '__CTOR_LIST__', and a list of
  29189. termination functions, called '__DTOR_LIST__'.
  29190. Each list always begins with an ignored function pointer (which may
  29191. hold 0, -1, or a count of the function pointers after it, depending on
  29192. the environment). This is followed by a series of zero or more function
  29193. pointers to constructors (or destructors), followed by a function
  29194. pointer containing zero.
  29195. Depending on the operating system and its executable file format,
  29196. either 'crtstuff.c' or 'libgcc2.c' traverses these lists at startup time
  29197. and exit time. Constructors are called in reverse order of the list;
  29198. destructors in forward order.
  29199. The best way to handle static constructors works only for object file
  29200. formats which provide arbitrarily-named sections. A section is set
  29201. aside for a list of constructors, and another for a list of destructors.
  29202. Traditionally these are called '.ctors' and '.dtors'. Each object file
  29203. that defines an initialization function also puts a word in the
  29204. constructor section to point to that function. The linker accumulates
  29205. all these words into one contiguous '.ctors' section. Termination
  29206. functions are handled similarly.
  29207. This method will be chosen as the default by 'target-def.h' if
  29208. 'TARGET_ASM_NAMED_SECTION' is defined. A target that does not support
  29209. arbitrary sections, but does support special designated constructor and
  29210. destructor sections may define 'CTORS_SECTION_ASM_OP' and
  29211. 'DTORS_SECTION_ASM_OP' to achieve the same effect.
  29212. When arbitrary sections are available, there are two variants,
  29213. depending upon how the code in 'crtstuff.c' is called. On systems that
  29214. support a ".init" section which is executed at program startup, parts of
  29215. 'crtstuff.c' are compiled into that section. The program is linked by
  29216. the 'gcc' driver like this:
  29217. ld -o OUTPUT_FILE crti.o crtbegin.o ... -lgcc crtend.o crtn.o
  29218. The prologue of a function ('__init') appears in the '.init' section of
  29219. 'crti.o'; the epilogue appears in 'crtn.o'. Likewise for the function
  29220. '__fini' in the ".fini" section. Normally these files are provided by
  29221. the operating system or by the GNU C library, but are provided by GCC
  29222. for a few targets.
  29223. The objects 'crtbegin.o' and 'crtend.o' are (for most targets) compiled
  29224. from 'crtstuff.c'. They contain, among other things, code fragments
  29225. within the '.init' and '.fini' sections that branch to routines in the
  29226. '.text' section. The linker will pull all parts of a section together,
  29227. which results in a complete '__init' function that invokes the routines
  29228. we need at startup.
  29229. To use this variant, you must define the 'INIT_SECTION_ASM_OP' macro
  29230. properly.
  29231. If no init section is available, when GCC compiles any function called
  29232. 'main' (or more accurately, any function designated as a program entry
  29233. point by the language front end calling 'expand_main_function'), it
  29234. inserts a procedure call to '__main' as the first executable code after
  29235. the function prologue. The '__main' function is defined in 'libgcc2.c'
  29236. and runs the global constructors.
  29237. In file formats that don't support arbitrary sections, there are again
  29238. two variants. In the simplest variant, the GNU linker (GNU 'ld') and an
  29239. 'a.out' format must be used. In this case, 'TARGET_ASM_CONSTRUCTOR' is
  29240. defined to produce a '.stabs' entry of type 'N_SETT', referencing the
  29241. name '__CTOR_LIST__', and with the address of the void function
  29242. containing the initialization code as its value. The GNU linker
  29243. recognizes this as a request to add the value to a "set"; the values are
  29244. accumulated, and are eventually placed in the executable as a vector in
  29245. the format described above, with a leading (ignored) count and a
  29246. trailing zero element. 'TARGET_ASM_DESTRUCTOR' is handled similarly.
  29247. Since no init section is available, the absence of 'INIT_SECTION_ASM_OP'
  29248. causes the compilation of 'main' to call '__main' as above, starting the
  29249. initialization process.
  29250. The last variant uses neither arbitrary sections nor the GNU linker.
  29251. This is preferable when you want to do dynamic linking and when using
  29252. file formats which the GNU linker does not support, such as 'ECOFF'. In
  29253. this case, 'TARGET_HAVE_CTORS_DTORS' is false, initialization and
  29254. termination functions are recognized simply by their names. This
  29255. requires an extra program in the linkage step, called 'collect2'. This
  29256. program pretends to be the linker, for use with GCC; it does its job by
  29257. running the ordinary linker, but also arranges to include the vectors of
  29258. initialization and termination functions. These functions are called
  29259. via '__main' as described above. In order to use this method,
  29260. 'use_collect2' must be defined in the target in 'config.gcc'.
  29261. The following section describes the specific macros that control and
  29262. customize the handling of initialization and termination functions.
  29263. 
  29264. File: gccint.info, Node: Macros for Initialization, Next: Instruction Output, Prev: Initialization, Up: Assembler Format
  29265. 17.20.6 Macros Controlling Initialization Routines
  29266. --------------------------------------------------
  29267. Here are the macros that control how the compiler handles initialization
  29268. and termination functions:
  29269. -- Macro: INIT_SECTION_ASM_OP
  29270. If defined, a C string constant, including spacing, for the
  29271. assembler operation to identify the following data as
  29272. initialization code. If not defined, GCC will assume such a
  29273. section does not exist. When you are using special sections for
  29274. initialization and termination functions, this macro also controls
  29275. how 'crtstuff.c' and 'libgcc2.c' arrange to run the initialization
  29276. functions.
  29277. -- Macro: HAS_INIT_SECTION
  29278. If defined, 'main' will not call '__main' as described above. This
  29279. macro should be defined for systems that control start-up code on a
  29280. symbol-by-symbol basis, such as OSF/1, and should not be defined
  29281. explicitly for systems that support 'INIT_SECTION_ASM_OP'.
  29282. -- Macro: LD_INIT_SWITCH
  29283. If defined, a C string constant for a switch that tells the linker
  29284. that the following symbol is an initialization routine.
  29285. -- Macro: LD_FINI_SWITCH
  29286. If defined, a C string constant for a switch that tells the linker
  29287. that the following symbol is a finalization routine.
  29288. -- Macro: COLLECT_SHARED_INIT_FUNC (STREAM, FUNC)
  29289. If defined, a C statement that will write a function that can be
  29290. automatically called when a shared library is loaded. The function
  29291. should call FUNC, which takes no arguments. If not defined, and
  29292. the object format requires an explicit initialization function,
  29293. then a function called '_GLOBAL__DI' will be generated.
  29294. This function and the following one are used by collect2 when
  29295. linking a shared library that needs constructors or destructors, or
  29296. has DWARF2 exception tables embedded in the code.
  29297. -- Macro: COLLECT_SHARED_FINI_FUNC (STREAM, FUNC)
  29298. If defined, a C statement that will write a function that can be
  29299. automatically called when a shared library is unloaded. The
  29300. function should call FUNC, which takes no arguments. If not
  29301. defined, and the object format requires an explicit finalization
  29302. function, then a function called '_GLOBAL__DD' will be generated.
  29303. -- Macro: INVOKE__main
  29304. If defined, 'main' will call '__main' despite the presence of
  29305. 'INIT_SECTION_ASM_OP'. This macro should be defined for systems
  29306. where the init section is not actually run automatically, but is
  29307. still useful for collecting the lists of constructors and
  29308. destructors.
  29309. -- Macro: SUPPORTS_INIT_PRIORITY
  29310. If nonzero, the C++ 'init_priority' attribute is supported and the
  29311. compiler should emit instructions to control the order of
  29312. initialization of objects. If zero, the compiler will issue an
  29313. error message upon encountering an 'init_priority' attribute.
  29314. -- Target Hook: bool TARGET_HAVE_CTORS_DTORS
  29315. This value is true if the target supports some "native" method of
  29316. collecting constructors and destructors to be run at startup and
  29317. exit. It is false if we must use 'collect2'.
  29318. -- Target Hook: void TARGET_ASM_CONSTRUCTOR (rtx SYMBOL, int PRIORITY)
  29319. If defined, a function that outputs assembler code to arrange to
  29320. call the function referenced by SYMBOL at initialization time.
  29321. Assume that SYMBOL is a 'SYMBOL_REF' for a function taking no
  29322. arguments and with no return value. If the target supports
  29323. initialization priorities, PRIORITY is a value between 0 and
  29324. 'MAX_INIT_PRIORITY'; otherwise it must be 'DEFAULT_INIT_PRIORITY'.
  29325. If this macro is not defined by the target, a suitable default will
  29326. be chosen if (1) the target supports arbitrary section names, (2)
  29327. the target defines 'CTORS_SECTION_ASM_OP', or (3) 'USE_COLLECT2' is
  29328. not defined.
  29329. -- Target Hook: void TARGET_ASM_DESTRUCTOR (rtx SYMBOL, int PRIORITY)
  29330. This is like 'TARGET_ASM_CONSTRUCTOR' but used for termination
  29331. functions rather than initialization functions.
  29332. If 'TARGET_HAVE_CTORS_DTORS' is true, the initialization routine
  29333. generated for the generated object file will have static linkage.
  29334. If your system uses 'collect2' as the means of processing constructors,
  29335. then that program normally uses 'nm' to scan an object file for
  29336. constructor functions to be called.
  29337. On certain kinds of systems, you can define this macro to make
  29338. 'collect2' work faster (and, in some cases, make it work at all):
  29339. -- Macro: OBJECT_FORMAT_COFF
  29340. Define this macro if the system uses COFF (Common Object File
  29341. Format) object files, so that 'collect2' can assume this format and
  29342. scan object files directly for dynamic constructor/destructor
  29343. functions.
  29344. This macro is effective only in a native compiler; 'collect2' as
  29345. part of a cross compiler always uses 'nm' for the target machine.
  29346. -- Macro: REAL_NM_FILE_NAME
  29347. Define this macro as a C string constant containing the file name
  29348. to use to execute 'nm'. The default is to search the path normally
  29349. for 'nm'.
  29350. -- Macro: NM_FLAGS
  29351. 'collect2' calls 'nm' to scan object files for static constructors
  29352. and destructors and LTO info. By default, '-n' is passed. Define
  29353. 'NM_FLAGS' to a C string constant if other options are needed to
  29354. get the same output format as GNU 'nm -n' produces.
  29355. If your system supports shared libraries and has a program to list the
  29356. dynamic dependencies of a given library or executable, you can define
  29357. these macros to enable support for running initialization and
  29358. termination functions in shared libraries:
  29359. -- Macro: LDD_SUFFIX
  29360. Define this macro to a C string constant containing the name of the
  29361. program which lists dynamic dependencies, like 'ldd' under SunOS 4.
  29362. -- Macro: PARSE_LDD_OUTPUT (PTR)
  29363. Define this macro to be C code that extracts filenames from the
  29364. output of the program denoted by 'LDD_SUFFIX'. PTR is a variable
  29365. of type 'char *' that points to the beginning of a line of output
  29366. from 'LDD_SUFFIX'. If the line lists a dynamic dependency, the
  29367. code must advance PTR to the beginning of the filename on that
  29368. line. Otherwise, it must set PTR to 'NULL'.
  29369. -- Macro: SHLIB_SUFFIX
  29370. Define this macro to a C string constant containing the default
  29371. shared library extension of the target (e.g., '".so"'). 'collect2'
  29372. strips version information after this suffix when generating global
  29373. constructor and destructor names. This define is only needed on
  29374. targets that use 'collect2' to process constructors and
  29375. destructors.
  29376. 
  29377. File: gccint.info, Node: Instruction Output, Next: Dispatch Tables, Prev: Macros for Initialization, Up: Assembler Format
  29378. 17.20.7 Output of Assembler Instructions
  29379. ----------------------------------------
  29380. This describes assembler instruction output.
  29381. -- Macro: REGISTER_NAMES
  29382. A C initializer containing the assembler's names for the machine
  29383. registers, each one as a C string constant. This is what
  29384. translates register numbers in the compiler into assembler
  29385. language.
  29386. -- Macro: ADDITIONAL_REGISTER_NAMES
  29387. If defined, a C initializer for an array of structures containing a
  29388. name and a register number. This macro defines additional names
  29389. for hard registers, thus allowing the 'asm' option in declarations
  29390. to refer to registers using alternate names.
  29391. -- Macro: OVERLAPPING_REGISTER_NAMES
  29392. If defined, a C initializer for an array of structures containing a
  29393. name, a register number and a count of the number of consecutive
  29394. machine registers the name overlaps. This macro defines additional
  29395. names for hard registers, thus allowing the 'asm' option in
  29396. declarations to refer to registers using alternate names. Unlike
  29397. 'ADDITIONAL_REGISTER_NAMES', this macro should be used when the
  29398. register name implies multiple underlying registers.
  29399. This macro should be used when it is important that a clobber in an
  29400. 'asm' statement clobbers all the underlying values implied by the
  29401. register name. For example, on ARM, clobbering the
  29402. double-precision VFP register "d0" implies clobbering both
  29403. single-precision registers "s0" and "s1".
  29404. -- Macro: ASM_OUTPUT_OPCODE (STREAM, PTR)
  29405. Define this macro if you are using an unusual assembler that
  29406. requires different names for the machine instructions.
  29407. The definition is a C statement or statements which output an
  29408. assembler instruction opcode to the stdio stream STREAM. The
  29409. macro-operand PTR is a variable of type 'char *' which points to
  29410. the opcode name in its "internal" form--the form that is written in
  29411. the machine description. The definition should output the opcode
  29412. name to STREAM, performing any translation you desire, and
  29413. increment the variable PTR to point at the end of the opcode so
  29414. that it will not be output twice.
  29415. In fact, your macro definition may process less than the entire
  29416. opcode name, or more than the opcode name; but if you want to
  29417. process text that includes '%'-sequences to substitute operands,
  29418. you must take care of the substitution yourself. Just be sure to
  29419. increment PTR over whatever text should not be output normally.
  29420. If you need to look at the operand values, they can be found as the
  29421. elements of 'recog_data.operand'.
  29422. If the macro definition does nothing, the instruction is output in
  29423. the usual way.
  29424. -- Macro: FINAL_PRESCAN_INSN (INSN, OPVEC, NOPERANDS)
  29425. If defined, a C statement to be executed just prior to the output
  29426. of assembler code for INSN, to modify the extracted operands so
  29427. they will be output differently.
  29428. Here the argument OPVEC is the vector containing the operands
  29429. extracted from INSN, and NOPERANDS is the number of elements of the
  29430. vector which contain meaningful data for this insn. The contents
  29431. of this vector are what will be used to convert the insn template
  29432. into assembler code, so you can change the assembler output by
  29433. changing the contents of the vector.
  29434. This macro is useful when various assembler syntaxes share a single
  29435. file of instruction patterns; by defining this macro differently,
  29436. you can cause a large class of instructions to be output
  29437. differently (such as with rearranged operands). Naturally,
  29438. variations in assembler syntax affecting individual insn patterns
  29439. ought to be handled by writing conditional output routines in those
  29440. patterns.
  29441. If this macro is not defined, it is equivalent to a null statement.
  29442. -- Target Hook: void TARGET_ASM_FINAL_POSTSCAN_INSN (FILE *FILE,
  29443. rtx_insn *INSN, rtx *OPVEC, int NOPERANDS)
  29444. If defined, this target hook is a function which is executed just
  29445. after the output of assembler code for INSN, to change the mode of
  29446. the assembler if necessary.
  29447. Here the argument OPVEC is the vector containing the operands
  29448. extracted from INSN, and NOPERANDS is the number of elements of the
  29449. vector which contain meaningful data for this insn. The contents
  29450. of this vector are what was used to convert the insn template into
  29451. assembler code, so you can change the assembler mode by checking
  29452. the contents of the vector.
  29453. -- Macro: PRINT_OPERAND (STREAM, X, CODE)
  29454. A C compound statement to output to stdio stream STREAM the
  29455. assembler syntax for an instruction operand X. X is an RTL
  29456. expression.
  29457. CODE is a value that can be used to specify one of several ways of
  29458. printing the operand. It is used when identical operands must be
  29459. printed differently depending on the context. CODE comes from the
  29460. '%' specification that was used to request printing of the operand.
  29461. If the specification was just '%DIGIT' then CODE is 0; if the
  29462. specification was '%LTR DIGIT' then CODE is the ASCII code for LTR.
  29463. If X is a register, this macro should print the register's name.
  29464. The names can be found in an array 'reg_names' whose type is 'char
  29465. *[]'. 'reg_names' is initialized from 'REGISTER_NAMES'.
  29466. When the machine description has a specification '%PUNCT' (a '%'
  29467. followed by a punctuation character), this macro is called with a
  29468. null pointer for X and the punctuation character for CODE.
  29469. -- Macro: PRINT_OPERAND_PUNCT_VALID_P (CODE)
  29470. A C expression which evaluates to true if CODE is a valid
  29471. punctuation character for use in the 'PRINT_OPERAND' macro. If
  29472. 'PRINT_OPERAND_PUNCT_VALID_P' is not defined, it means that no
  29473. punctuation characters (except for the standard one, '%') are used
  29474. in this way.
  29475. -- Macro: PRINT_OPERAND_ADDRESS (STREAM, X)
  29476. A C compound statement to output to stdio stream STREAM the
  29477. assembler syntax for an instruction operand that is a memory
  29478. reference whose address is X. X is an RTL expression.
  29479. On some machines, the syntax for a symbolic address depends on the
  29480. section that the address refers to. On these machines, define the
  29481. hook 'TARGET_ENCODE_SECTION_INFO' to store the information into the
  29482. 'symbol_ref', and then check for it here. *Note Assembler
  29483. Format::.
  29484. -- Macro: DBR_OUTPUT_SEQEND (FILE)
  29485. A C statement, to be executed after all slot-filler instructions
  29486. have been output. If necessary, call 'dbr_sequence_length' to
  29487. determine the number of slots filled in a sequence (zero if not
  29488. currently outputting a sequence), to decide how many no-ops to
  29489. output, or whatever.
  29490. Don't define this macro if it has nothing to do, but it is helpful
  29491. in reading assembly output if the extent of the delay sequence is
  29492. made explicit (e.g. with white space).
  29493. Note that output routines for instructions with delay slots must be
  29494. prepared to deal with not being output as part of a sequence (i.e. when
  29495. the scheduling pass is not run, or when no slot fillers could be found.)
  29496. The variable 'final_sequence' is null when not processing a sequence,
  29497. otherwise it contains the 'sequence' rtx being output.
  29498. -- Macro: REGISTER_PREFIX
  29499. -- Macro: LOCAL_LABEL_PREFIX
  29500. -- Macro: USER_LABEL_PREFIX
  29501. -- Macro: IMMEDIATE_PREFIX
  29502. If defined, C string expressions to be used for the '%R', '%L',
  29503. '%U', and '%I' options of 'asm_fprintf' (see 'final.c'). These are
  29504. useful when a single 'md' file must support multiple assembler
  29505. formats. In that case, the various 'tm.h' files can define these
  29506. macros differently.
  29507. -- Macro: ASM_FPRINTF_EXTENSIONS (FILE, ARGPTR, FORMAT)
  29508. If defined this macro should expand to a series of 'case'
  29509. statements which will be parsed inside the 'switch' statement of
  29510. the 'asm_fprintf' function. This allows targets to define extra
  29511. printf formats which may useful when generating their assembler
  29512. statements. Note that uppercase letters are reserved for future
  29513. generic extensions to asm_fprintf, and so are not available to
  29514. target specific code. The output file is given by the parameter
  29515. FILE. The varargs input pointer is ARGPTR and the rest of the
  29516. format string, starting the character after the one that is being
  29517. switched upon, is pointed to by FORMAT.
  29518. -- Macro: ASSEMBLER_DIALECT
  29519. If your target supports multiple dialects of assembler language
  29520. (such as different opcodes), define this macro as a C expression
  29521. that gives the numeric index of the assembler language dialect to
  29522. use, with zero as the first variant.
  29523. If this macro is defined, you may use constructs of the form
  29524. '{option0|option1|option2...}'
  29525. in the output templates of patterns (*note Output Template::) or in
  29526. the first argument of 'asm_fprintf'. This construct outputs
  29527. 'option0', 'option1', 'option2', etc., if the value of
  29528. 'ASSEMBLER_DIALECT' is zero, one, two, etc. Any special characters
  29529. within these strings retain their usual meaning. If there are
  29530. fewer alternatives within the braces than the value of
  29531. 'ASSEMBLER_DIALECT', the construct outputs nothing. If it's needed
  29532. to print curly braces or '|' character in assembler output
  29533. directly, '%{', '%}' and '%|' can be used.
  29534. If you do not define this macro, the characters '{', '|' and '}' do
  29535. not have any special meaning when used in templates or operands to
  29536. 'asm_fprintf'.
  29537. Define the macros 'REGISTER_PREFIX', 'LOCAL_LABEL_PREFIX',
  29538. 'USER_LABEL_PREFIX' and 'IMMEDIATE_PREFIX' if you can express the
  29539. variations in assembler language syntax with that mechanism.
  29540. Define 'ASSEMBLER_DIALECT' and use the '{option0|option1}' syntax
  29541. if the syntax variant are larger and involve such things as
  29542. different opcodes or operand order.
  29543. -- Macro: ASM_OUTPUT_REG_PUSH (STREAM, REGNO)
  29544. A C expression to output to STREAM some assembler code which will
  29545. push hard register number REGNO onto the stack. The code need not
  29546. be optimal, since this macro is used only when profiling.
  29547. -- Macro: ASM_OUTPUT_REG_POP (STREAM, REGNO)
  29548. A C expression to output to STREAM some assembler code which will
  29549. pop hard register number REGNO off of the stack. The code need not
  29550. be optimal, since this macro is used only when profiling.
  29551. 
  29552. File: gccint.info, Node: Dispatch Tables, Next: Exception Region Output, Prev: Instruction Output, Up: Assembler Format
  29553. 17.20.8 Output of Dispatch Tables
  29554. ---------------------------------
  29555. This concerns dispatch tables.
  29556. -- Macro: ASM_OUTPUT_ADDR_DIFF_ELT (STREAM, BODY, VALUE, REL)
  29557. A C statement to output to the stdio stream STREAM an assembler
  29558. pseudo-instruction to generate a difference between two labels.
  29559. VALUE and REL are the numbers of two internal labels. The
  29560. definitions of these labels are output using
  29561. '(*targetm.asm_out.internal_label)', and they must be printed in
  29562. the same way here. For example,
  29563. fprintf (STREAM, "\t.word L%d-L%d\n",
  29564. VALUE, REL)
  29565. You must provide this macro on machines where the addresses in a
  29566. dispatch table are relative to the table's own address. If
  29567. defined, GCC will also use this macro on all machines when
  29568. producing PIC. BODY is the body of the 'ADDR_DIFF_VEC'; it is
  29569. provided so that the mode and flags can be read.
  29570. -- Macro: ASM_OUTPUT_ADDR_VEC_ELT (STREAM, VALUE)
  29571. This macro should be provided on machines where the addresses in a
  29572. dispatch table are absolute.
  29573. The definition should be a C statement to output to the stdio
  29574. stream STREAM an assembler pseudo-instruction to generate a
  29575. reference to a label. VALUE is the number of an internal label
  29576. whose definition is output using
  29577. '(*targetm.asm_out.internal_label)'. For example,
  29578. fprintf (STREAM, "\t.word L%d\n", VALUE)
  29579. -- Macro: ASM_OUTPUT_CASE_LABEL (STREAM, PREFIX, NUM, TABLE)
  29580. Define this if the label before a jump-table needs to be output
  29581. specially. The first three arguments are the same as for
  29582. '(*targetm.asm_out.internal_label)'; the fourth argument is the
  29583. jump-table which follows (a 'jump_table_data' containing an
  29584. 'addr_vec' or 'addr_diff_vec').
  29585. This feature is used on system V to output a 'swbeg' statement for
  29586. the table.
  29587. If this macro is not defined, these labels are output with
  29588. '(*targetm.asm_out.internal_label)'.
  29589. -- Macro: ASM_OUTPUT_CASE_END (STREAM, NUM, TABLE)
  29590. Define this if something special must be output at the end of a
  29591. jump-table. The definition should be a C statement to be executed
  29592. after the assembler code for the table is written. It should write
  29593. the appropriate code to stdio stream STREAM. The argument TABLE is
  29594. the jump-table insn, and NUM is the label-number of the preceding
  29595. label.
  29596. If this macro is not defined, nothing special is output at the end
  29597. of the jump-table.
  29598. -- Target Hook: void TARGET_ASM_EMIT_UNWIND_LABEL (FILE *STREAM, tree
  29599. DECL, int FOR_EH, int EMPTY)
  29600. This target hook emits a label at the beginning of each FDE. It
  29601. should be defined on targets where FDEs need special labels, and it
  29602. should write the appropriate label, for the FDE associated with the
  29603. function declaration DECL, to the stdio stream STREAM. The third
  29604. argument, FOR_EH, is a boolean: true if this is for an exception
  29605. table. The fourth argument, EMPTY, is a boolean: true if this is a
  29606. placeholder label for an omitted FDE.
  29607. The default is that FDEs are not given nonlocal labels.
  29608. -- Target Hook: void TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL (FILE *STREAM)
  29609. This target hook emits a label at the beginning of the exception
  29610. table. It should be defined on targets where it is desirable for
  29611. the table to be broken up according to function.
  29612. The default is that no label is emitted.
  29613. -- Target Hook: void TARGET_ASM_EMIT_EXCEPT_PERSONALITY (rtx
  29614. PERSONALITY)
  29615. If the target implements 'TARGET_ASM_UNWIND_EMIT', this hook may be
  29616. used to emit a directive to install a personality hook into the
  29617. unwind info. This hook should not be used if dwarf2 unwind info is
  29618. used.
  29619. -- Target Hook: void TARGET_ASM_UNWIND_EMIT (FILE *STREAM, rtx_insn
  29620. *INSN)
  29621. This target hook emits assembly directives required to unwind the
  29622. given instruction. This is only used when
  29623. 'TARGET_EXCEPT_UNWIND_INFO' returns 'UI_TARGET'.
  29624. -- Target Hook: bool TARGET_ASM_UNWIND_EMIT_BEFORE_INSN
  29625. True if the 'TARGET_ASM_UNWIND_EMIT' hook should be called before
  29626. the assembly for INSN has been emitted, false if the hook should be
  29627. called afterward.
  29628. 
  29629. File: gccint.info, Node: Exception Region Output, Next: Alignment Output, Prev: Dispatch Tables, Up: Assembler Format
  29630. 17.20.9 Assembler Commands for Exception Regions
  29631. ------------------------------------------------
  29632. This describes commands marking the start and the end of an exception
  29633. region.
  29634. -- Macro: EH_FRAME_SECTION_NAME
  29635. If defined, a C string constant for the name of the section
  29636. containing exception handling frame unwind information. If not
  29637. defined, GCC will provide a default definition if the target
  29638. supports named sections. 'crtstuff.c' uses this macro to switch to
  29639. the appropriate section.
  29640. You should define this symbol if your target supports DWARF 2 frame
  29641. unwind information and the default definition does not work.
  29642. -- Macro: EH_FRAME_THROUGH_COLLECT2
  29643. If defined, DWARF 2 frame unwind information will identified by
  29644. specially named labels. The collect2 process will locate these
  29645. labels and generate code to register the frames.
  29646. This might be necessary, for instance, if the system linker will
  29647. not place the eh_frames in-between the sentinals from 'crtstuff.c',
  29648. or if the system linker does garbage collection and sections cannot
  29649. be marked as not to be collected.
  29650. -- Macro: EH_TABLES_CAN_BE_READ_ONLY
  29651. Define this macro to 1 if your target is such that no frame unwind
  29652. information encoding used with non-PIC code will ever require a
  29653. runtime relocation, but the linker may not support merging
  29654. read-only and read-write sections into a single read-write section.
  29655. -- Macro: MASK_RETURN_ADDR
  29656. An rtx used to mask the return address found via 'RETURN_ADDR_RTX',
  29657. so that it does not contain any extraneous set bits in it.
  29658. -- Macro: DWARF2_UNWIND_INFO
  29659. Define this macro to 0 if your target supports DWARF 2 frame unwind
  29660. information, but it does not yet work with exception handling.
  29661. Otherwise, if your target supports this information (if it defines
  29662. 'INCOMING_RETURN_ADDR_RTX' and 'OBJECT_FORMAT_ELF'), GCC will
  29663. provide a default definition of 1.
  29664. -- Common Target Hook: enum unwind_info_type TARGET_EXCEPT_UNWIND_INFO
  29665. (struct gcc_options *OPTS)
  29666. This hook defines the mechanism that will be used for exception
  29667. handling by the target. If the target has ABI specified unwind
  29668. tables, the hook should return 'UI_TARGET'. If the target is to
  29669. use the 'setjmp'/'longjmp'-based exception handling scheme, the
  29670. hook should return 'UI_SJLJ'. If the target supports DWARF 2 frame
  29671. unwind information, the hook should return 'UI_DWARF2'.
  29672. A target may, if exceptions are disabled, choose to return
  29673. 'UI_NONE'. This may end up simplifying other parts of
  29674. target-specific code. The default implementation of this hook
  29675. never returns 'UI_NONE'.
  29676. Note that the value returned by this hook should be constant. It
  29677. should not depend on anything except the command-line switches
  29678. described by OPTS. In particular, the setting 'UI_SJLJ' must be
  29679. fixed at compiler start-up as C pre-processor macros and builtin
  29680. functions related to exception handling are set up depending on
  29681. this setting.
  29682. The default implementation of the hook first honors the
  29683. '--enable-sjlj-exceptions' configure option, then
  29684. 'DWARF2_UNWIND_INFO', and finally defaults to 'UI_SJLJ'. If
  29685. 'DWARF2_UNWIND_INFO' depends on command-line options, the target
  29686. must define this hook so that OPTS is used correctly.
  29687. -- Common Target Hook: bool TARGET_UNWIND_TABLES_DEFAULT
  29688. This variable should be set to 'true' if the target ABI requires
  29689. unwinding tables even when exceptions are not used. It must not be
  29690. modified by command-line option processing.
  29691. -- Macro: DONT_USE_BUILTIN_SETJMP
  29692. Define this macro to 1 if the 'setjmp'/'longjmp'-based scheme
  29693. should use the 'setjmp'/'longjmp' functions from the C library
  29694. instead of the '__builtin_setjmp'/'__builtin_longjmp' machinery.
  29695. -- Macro: JMP_BUF_SIZE
  29696. This macro has no effect unless 'DONT_USE_BUILTIN_SETJMP' is also
  29697. defined. Define this macro if the default size of 'jmp_buf' buffer
  29698. for the 'setjmp'/'longjmp'-based exception handling mechanism is
  29699. not large enough, or if it is much too large. The default size is
  29700. 'FIRST_PSEUDO_REGISTER * sizeof(void *)'.
  29701. -- Macro: DWARF_CIE_DATA_ALIGNMENT
  29702. This macro need only be defined if the target might save registers
  29703. in the function prologue at an offset to the stack pointer that is
  29704. not aligned to 'UNITS_PER_WORD'. The definition should be the
  29705. negative minimum alignment if 'STACK_GROWS_DOWNWARD' is true, and
  29706. the positive minimum alignment otherwise. *Note SDB and DWARF::.
  29707. Only applicable if the target supports DWARF 2 frame unwind
  29708. information.
  29709. -- Target Hook: bool TARGET_TERMINATE_DW2_EH_FRAME_INFO
  29710. Contains the value true if the target should add a zero word onto
  29711. the end of a Dwarf-2 frame info section when used for exception
  29712. handling. Default value is false if 'EH_FRAME_SECTION_NAME' is
  29713. defined, and true otherwise.
  29714. -- Target Hook: rtx TARGET_DWARF_REGISTER_SPAN (rtx REG)
  29715. Given a register, this hook should return a parallel of registers
  29716. to represent where to find the register pieces. Define this hook
  29717. if the register and its mode are represented in Dwarf in
  29718. non-contiguous locations, or if the register should be represented
  29719. in more than one register in Dwarf. Otherwise, this hook should
  29720. return 'NULL_RTX'. If not defined, the default is to return
  29721. 'NULL_RTX'.
  29722. -- Target Hook: machine_mode TARGET_DWARF_FRAME_REG_MODE (int REGNO)
  29723. Given a register, this hook should return the mode which the
  29724. corresponding Dwarf frame register should have. This is normally
  29725. used to return a smaller mode than the raw mode to prevent call
  29726. clobbered parts of a register altering the frame register size
  29727. -- Target Hook: void TARGET_INIT_DWARF_REG_SIZES_EXTRA (tree ADDRESS)
  29728. If some registers are represented in Dwarf-2 unwind information in
  29729. multiple pieces, define this hook to fill in information about the
  29730. sizes of those pieces in the table used by the unwinder at runtime.
  29731. It will be called by 'expand_builtin_init_dwarf_reg_sizes' after
  29732. filling in a single size corresponding to each hard register;
  29733. ADDRESS is the address of the table.
  29734. -- Target Hook: bool TARGET_ASM_TTYPE (rtx SYM)
  29735. This hook is used to output a reference from a frame unwinding
  29736. table to the type_info object identified by SYM. It should return
  29737. 'true' if the reference was output. Returning 'false' will cause
  29738. the reference to be output using the normal Dwarf2 routines.
  29739. -- Target Hook: bool TARGET_ARM_EABI_UNWINDER
  29740. This flag should be set to 'true' on targets that use an ARM EABI
  29741. based unwinding library, and 'false' on other targets. This
  29742. effects the format of unwinding tables, and how the unwinder in
  29743. entered after running a cleanup. The default is 'false'.
  29744. 
  29745. File: gccint.info, Node: Alignment Output, Prev: Exception Region Output, Up: Assembler Format
  29746. 17.20.10 Assembler Commands for Alignment
  29747. -----------------------------------------
  29748. This describes commands for alignment.
  29749. -- Macro: JUMP_ALIGN (LABEL)
  29750. The alignment (log base 2) to put in front of LABEL, which is a
  29751. common destination of jumps and has no fallthru incoming edge.
  29752. This macro need not be defined if you don't want any special
  29753. alignment to be done at such a time. Most machine descriptions do
  29754. not currently define the macro.
  29755. Unless it's necessary to inspect the LABEL parameter, it is better
  29756. to set the variable ALIGN_JUMPS in the target's
  29757. 'TARGET_OPTION_OVERRIDE'. Otherwise, you should try to honor the
  29758. user's selection in ALIGN_JUMPS in a 'JUMP_ALIGN' implementation.
  29759. -- Target Hook: int TARGET_ASM_JUMP_ALIGN_MAX_SKIP (rtx_insn *LABEL)
  29760. The maximum number of bytes to skip before LABEL when applying
  29761. 'JUMP_ALIGN'. This works only if 'ASM_OUTPUT_MAX_SKIP_ALIGN' is
  29762. defined.
  29763. -- Macro: LABEL_ALIGN_AFTER_BARRIER (LABEL)
  29764. The alignment (log base 2) to put in front of LABEL, which follows
  29765. a 'BARRIER'.
  29766. This macro need not be defined if you don't want any special
  29767. alignment to be done at such a time. Most machine descriptions do
  29768. not currently define the macro.
  29769. -- Target Hook: int TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP
  29770. (rtx_insn *LABEL)
  29771. The maximum number of bytes to skip before LABEL when applying
  29772. 'LABEL_ALIGN_AFTER_BARRIER'. This works only if
  29773. 'ASM_OUTPUT_MAX_SKIP_ALIGN' is defined.
  29774. -- Macro: LOOP_ALIGN (LABEL)
  29775. The alignment (log base 2) to put in front of LABEL that heads a
  29776. frequently executed basic block (usually the header of a loop).
  29777. This macro need not be defined if you don't want any special
  29778. alignment to be done at such a time. Most machine descriptions do
  29779. not currently define the macro.
  29780. Unless it's necessary to inspect the LABEL parameter, it is better
  29781. to set the variable 'align_loops' in the target's
  29782. 'TARGET_OPTION_OVERRIDE'. Otherwise, you should try to honor the
  29783. user's selection in 'align_loops' in a 'LOOP_ALIGN' implementation.
  29784. -- Target Hook: int TARGET_ASM_LOOP_ALIGN_MAX_SKIP (rtx_insn *LABEL)
  29785. The maximum number of bytes to skip when applying 'LOOP_ALIGN' to
  29786. LABEL. This works only if 'ASM_OUTPUT_MAX_SKIP_ALIGN' is defined.
  29787. -- Macro: LABEL_ALIGN (LABEL)
  29788. The alignment (log base 2) to put in front of LABEL. If
  29789. 'LABEL_ALIGN_AFTER_BARRIER' / 'LOOP_ALIGN' specify a different
  29790. alignment, the maximum of the specified values is used.
  29791. Unless it's necessary to inspect the LABEL parameter, it is better
  29792. to set the variable 'align_labels' in the target's
  29793. 'TARGET_OPTION_OVERRIDE'. Otherwise, you should try to honor the
  29794. user's selection in 'align_labels' in a 'LABEL_ALIGN'
  29795. implementation.
  29796. -- Target Hook: int TARGET_ASM_LABEL_ALIGN_MAX_SKIP (rtx_insn *LABEL)
  29797. The maximum number of bytes to skip when applying 'LABEL_ALIGN' to
  29798. LABEL. This works only if 'ASM_OUTPUT_MAX_SKIP_ALIGN' is defined.
  29799. -- Macro: ASM_OUTPUT_SKIP (STREAM, NBYTES)
  29800. A C statement to output to the stdio stream STREAM an assembler
  29801. instruction to advance the location counter by NBYTES bytes. Those
  29802. bytes should be zero when loaded. NBYTES will be a C expression of
  29803. type 'unsigned HOST_WIDE_INT'.
  29804. -- Macro: ASM_NO_SKIP_IN_TEXT
  29805. Define this macro if 'ASM_OUTPUT_SKIP' should not be used in the
  29806. text section because it fails to put zeros in the bytes that are
  29807. skipped. This is true on many Unix systems, where the pseudo-op to
  29808. skip bytes produces no-op instructions rather than zeros when used
  29809. in the text section.
  29810. -- Macro: ASM_OUTPUT_ALIGN (STREAM, POWER)
  29811. A C statement to output to the stdio stream STREAM an assembler
  29812. command to advance the location counter to a multiple of 2 to the
  29813. POWER bytes. POWER will be a C expression of type 'int'.
  29814. -- Macro: ASM_OUTPUT_ALIGN_WITH_NOP (STREAM, POWER)
  29815. Like 'ASM_OUTPUT_ALIGN', except that the "nop" instruction is used
  29816. for padding, if necessary.
  29817. -- Macro: ASM_OUTPUT_MAX_SKIP_ALIGN (STREAM, POWER, MAX_SKIP)
  29818. A C statement to output to the stdio stream STREAM an assembler
  29819. command to advance the location counter to a multiple of 2 to the
  29820. POWER bytes, but only if MAX_SKIP or fewer bytes are needed to
  29821. satisfy the alignment request. POWER and MAX_SKIP will be a C
  29822. expression of type 'int'.
  29823. 
  29824. File: gccint.info, Node: Debugging Info, Next: Floating Point, Prev: Assembler Format, Up: Target Macros
  29825. 17.21 Controlling Debugging Information Format
  29826. ==============================================
  29827. This describes how to specify debugging information.
  29828. * Menu:
  29829. * All Debuggers:: Macros that affect all debugging formats uniformly.
  29830. * DBX Options:: Macros enabling specific options in DBX format.
  29831. * DBX Hooks:: Hook macros for varying DBX format.
  29832. * File Names and DBX:: Macros controlling output of file names in DBX format.
  29833. * SDB and DWARF:: Macros for SDB (COFF) and DWARF formats.
  29834. * VMS Debug:: Macros for VMS debug format.
  29835. 
  29836. File: gccint.info, Node: All Debuggers, Next: DBX Options, Up: Debugging Info
  29837. 17.21.1 Macros Affecting All Debugging Formats
  29838. ----------------------------------------------
  29839. These macros affect all debugging formats.
  29840. -- Macro: DBX_REGISTER_NUMBER (REGNO)
  29841. A C expression that returns the DBX register number for the
  29842. compiler register number REGNO. In the default macro provided, the
  29843. value of this expression will be REGNO itself. But sometimes there
  29844. are some registers that the compiler knows about and DBX does not,
  29845. or vice versa. In such cases, some register may need to have one
  29846. number in the compiler and another for DBX.
  29847. If two registers have consecutive numbers inside GCC, and they can
  29848. be used as a pair to hold a multiword value, then they _must_ have
  29849. consecutive numbers after renumbering with 'DBX_REGISTER_NUMBER'.
  29850. Otherwise, debuggers will be unable to access such a pair, because
  29851. they expect register pairs to be consecutive in their own numbering
  29852. scheme.
  29853. If you find yourself defining 'DBX_REGISTER_NUMBER' in way that
  29854. does not preserve register pairs, then what you must do instead is
  29855. redefine the actual register numbering scheme.
  29856. -- Macro: DEBUGGER_AUTO_OFFSET (X)
  29857. A C expression that returns the integer offset value for an
  29858. automatic variable having address X (an RTL expression). The
  29859. default computation assumes that X is based on the frame-pointer
  29860. and gives the offset from the frame-pointer. This is required for
  29861. targets that produce debugging output for DBX or COFF-style
  29862. debugging output for SDB and allow the frame-pointer to be
  29863. eliminated when the '-g' options is used.
  29864. -- Macro: DEBUGGER_ARG_OFFSET (OFFSET, X)
  29865. A C expression that returns the integer offset value for an
  29866. argument having address X (an RTL expression). The nominal offset
  29867. is OFFSET.
  29868. -- Macro: PREFERRED_DEBUGGING_TYPE
  29869. A C expression that returns the type of debugging output GCC should
  29870. produce when the user specifies just '-g'. Define this if you have
  29871. arranged for GCC to support more than one format of debugging
  29872. output. Currently, the allowable values are 'DBX_DEBUG',
  29873. 'SDB_DEBUG', 'DWARF_DEBUG', 'DWARF2_DEBUG', 'XCOFF_DEBUG',
  29874. 'VMS_DEBUG', and 'VMS_AND_DWARF2_DEBUG'.
  29875. When the user specifies '-ggdb', GCC normally also uses the value
  29876. of this macro to select the debugging output format, but with two
  29877. exceptions. If 'DWARF2_DEBUGGING_INFO' is defined, GCC uses the
  29878. value 'DWARF2_DEBUG'. Otherwise, if 'DBX_DEBUGGING_INFO' is
  29879. defined, GCC uses 'DBX_DEBUG'.
  29880. The value of this macro only affects the default debugging output;
  29881. the user can always get a specific type of output by using
  29882. '-gstabs', '-gcoff', '-gdwarf-2', '-gxcoff', or '-gvms'.
  29883. 
  29884. File: gccint.info, Node: DBX Options, Next: DBX Hooks, Prev: All Debuggers, Up: Debugging Info
  29885. 17.21.2 Specific Options for DBX Output
  29886. ---------------------------------------
  29887. These are specific options for DBX output.
  29888. -- Macro: DBX_DEBUGGING_INFO
  29889. Define this macro if GCC should produce debugging output for DBX in
  29890. response to the '-g' option.
  29891. -- Macro: XCOFF_DEBUGGING_INFO
  29892. Define this macro if GCC should produce XCOFF format debugging
  29893. output in response to the '-g' option. This is a variant of DBX
  29894. format.
  29895. -- Macro: DEFAULT_GDB_EXTENSIONS
  29896. Define this macro to control whether GCC should by default generate
  29897. GDB's extended version of DBX debugging information (assuming
  29898. DBX-format debugging information is enabled at all). If you don't
  29899. define the macro, the default is 1: always generate the extended
  29900. information if there is any occasion to.
  29901. -- Macro: DEBUG_SYMS_TEXT
  29902. Define this macro if all '.stabs' commands should be output while
  29903. in the text section.
  29904. -- Macro: ASM_STABS_OP
  29905. A C string constant, including spacing, naming the assembler pseudo
  29906. op to use instead of '"\t.stabs\t"' to define an ordinary debugging
  29907. symbol. If you don't define this macro, '"\t.stabs\t"' is used.
  29908. This macro applies only to DBX debugging information format.
  29909. -- Macro: ASM_STABD_OP
  29910. A C string constant, including spacing, naming the assembler pseudo
  29911. op to use instead of '"\t.stabd\t"' to define a debugging symbol
  29912. whose value is the current location. If you don't define this
  29913. macro, '"\t.stabd\t"' is used. This macro applies only to DBX
  29914. debugging information format.
  29915. -- Macro: ASM_STABN_OP
  29916. A C string constant, including spacing, naming the assembler pseudo
  29917. op to use instead of '"\t.stabn\t"' to define a debugging symbol
  29918. with no name. If you don't define this macro, '"\t.stabn\t"' is
  29919. used. This macro applies only to DBX debugging information format.
  29920. -- Macro: DBX_NO_XREFS
  29921. Define this macro if DBX on your system does not support the
  29922. construct 'xsTAGNAME'. On some systems, this construct is used to
  29923. describe a forward reference to a structure named TAGNAME. On
  29924. other systems, this construct is not supported at all.
  29925. -- Macro: DBX_CONTIN_LENGTH
  29926. A symbol name in DBX-format debugging information is normally
  29927. continued (split into two separate '.stabs' directives) when it
  29928. exceeds a certain length (by default, 80 characters). On some
  29929. operating systems, DBX requires this splitting; on others,
  29930. splitting must not be done. You can inhibit splitting by defining
  29931. this macro with the value zero. You can override the default
  29932. splitting-length by defining this macro as an expression for the
  29933. length you desire.
  29934. -- Macro: DBX_CONTIN_CHAR
  29935. Normally continuation is indicated by adding a '\' character to the
  29936. end of a '.stabs' string when a continuation follows. To use a
  29937. different character instead, define this macro as a character
  29938. constant for the character you want to use. Do not define this
  29939. macro if backslash is correct for your system.
  29940. -- Macro: DBX_STATIC_STAB_DATA_SECTION
  29941. Define this macro if it is necessary to go to the data section
  29942. before outputting the '.stabs' pseudo-op for a non-global static
  29943. variable.
  29944. -- Macro: DBX_TYPE_DECL_STABS_CODE
  29945. The value to use in the "code" field of the '.stabs' directive for
  29946. a typedef. The default is 'N_LSYM'.
  29947. -- Macro: DBX_STATIC_CONST_VAR_CODE
  29948. The value to use in the "code" field of the '.stabs' directive for
  29949. a static variable located in the text section. DBX format does not
  29950. provide any "right" way to do this. The default is 'N_FUN'.
  29951. -- Macro: DBX_REGPARM_STABS_CODE
  29952. The value to use in the "code" field of the '.stabs' directive for
  29953. a parameter passed in registers. DBX format does not provide any
  29954. "right" way to do this. The default is 'N_RSYM'.
  29955. -- Macro: DBX_REGPARM_STABS_LETTER
  29956. The letter to use in DBX symbol data to identify a symbol as a
  29957. parameter passed in registers. DBX format does not customarily
  29958. provide any way to do this. The default is ''P''.
  29959. -- Macro: DBX_FUNCTION_FIRST
  29960. Define this macro if the DBX information for a function and its
  29961. arguments should precede the assembler code for the function.
  29962. Normally, in DBX format, the debugging information entirely follows
  29963. the assembler code.
  29964. -- Macro: DBX_BLOCKS_FUNCTION_RELATIVE
  29965. Define this macro, with value 1, if the value of a symbol
  29966. describing the scope of a block ('N_LBRAC' or 'N_RBRAC') should be
  29967. relative to the start of the enclosing function. Normally, GCC
  29968. uses an absolute address.
  29969. -- Macro: DBX_LINES_FUNCTION_RELATIVE
  29970. Define this macro, with value 1, if the value of a symbol
  29971. indicating the current line number ('N_SLINE') should be relative
  29972. to the start of the enclosing function. Normally, GCC uses an
  29973. absolute address.
  29974. -- Macro: DBX_USE_BINCL
  29975. Define this macro if GCC should generate 'N_BINCL' and 'N_EINCL'
  29976. stabs for included header files, as on Sun systems. This macro
  29977. also directs GCC to output a type number as a pair of a file number
  29978. and a type number within the file. Normally, GCC does not generate
  29979. 'N_BINCL' or 'N_EINCL' stabs, and it outputs a single number for a
  29980. type number.
  29981. 
  29982. File: gccint.info, Node: DBX Hooks, Next: File Names and DBX, Prev: DBX Options, Up: Debugging Info
  29983. 17.21.3 Open-Ended Hooks for DBX Format
  29984. ---------------------------------------
  29985. These are hooks for DBX format.
  29986. -- Macro: DBX_OUTPUT_SOURCE_LINE (STREAM, LINE, COUNTER)
  29987. A C statement to output DBX debugging information before code for
  29988. line number LINE of the current source file to the stdio stream
  29989. STREAM. COUNTER is the number of time the macro was invoked,
  29990. including the current invocation; it is intended to generate unique
  29991. labels in the assembly output.
  29992. This macro should not be defined if the default output is correct,
  29993. or if it can be made correct by defining
  29994. 'DBX_LINES_FUNCTION_RELATIVE'.
  29995. -- Macro: NO_DBX_FUNCTION_END
  29996. Some stabs encapsulation formats (in particular ECOFF), cannot
  29997. handle the '.stabs "",N_FUN,,0,0,Lscope-function-1' gdb dbx
  29998. extension construct. On those machines, define this macro to turn
  29999. this feature off without disturbing the rest of the gdb extensions.
  30000. -- Macro: NO_DBX_BNSYM_ENSYM
  30001. Some assemblers cannot handle the '.stabd BNSYM/ENSYM,0,0' gdb dbx
  30002. extension construct. On those machines, define this macro to turn
  30003. this feature off without disturbing the rest of the gdb extensions.
  30004. 
  30005. File: gccint.info, Node: File Names and DBX, Next: SDB and DWARF, Prev: DBX Hooks, Up: Debugging Info
  30006. 17.21.4 File Names in DBX Format
  30007. --------------------------------
  30008. This describes file names in DBX format.
  30009. -- Macro: DBX_OUTPUT_MAIN_SOURCE_FILENAME (STREAM, NAME)
  30010. A C statement to output DBX debugging information to the stdio
  30011. stream STREAM, which indicates that file NAME is the main source
  30012. file--the file specified as the input file for compilation. This
  30013. macro is called only once, at the beginning of compilation.
  30014. This macro need not be defined if the standard form of output for
  30015. DBX debugging information is appropriate.
  30016. It may be necessary to refer to a label equal to the beginning of
  30017. the text section. You can use 'assemble_name (stream,
  30018. ltext_label_name)' to do so. If you do this, you must also set the
  30019. variable USED_LTEXT_LABEL_NAME to 'true'.
  30020. -- Macro: NO_DBX_MAIN_SOURCE_DIRECTORY
  30021. Define this macro, with value 1, if GCC should not emit an
  30022. indication of the current directory for compilation and current
  30023. source language at the beginning of the file.
  30024. -- Macro: NO_DBX_GCC_MARKER
  30025. Define this macro, with value 1, if GCC should not emit an
  30026. indication that this object file was compiled by GCC. The default
  30027. is to emit an 'N_OPT' stab at the beginning of every source file,
  30028. with 'gcc2_compiled.' for the string and value 0.
  30029. -- Macro: DBX_OUTPUT_MAIN_SOURCE_FILE_END (STREAM, NAME)
  30030. A C statement to output DBX debugging information at the end of
  30031. compilation of the main source file NAME. Output should be written
  30032. to the stdio stream STREAM.
  30033. If you don't define this macro, nothing special is output at the
  30034. end of compilation, which is correct for most machines.
  30035. -- Macro: DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
  30036. Define this macro _instead of_ defining
  30037. 'DBX_OUTPUT_MAIN_SOURCE_FILE_END', if what needs to be output at
  30038. the end of compilation is an 'N_SO' stab with an empty string,
  30039. whose value is the highest absolute text address in the file.
  30040. 
  30041. File: gccint.info, Node: SDB and DWARF, Next: VMS Debug, Prev: File Names and DBX, Up: Debugging Info
  30042. 17.21.5 Macros for SDB and DWARF Output
  30043. ---------------------------------------
  30044. Here are macros for SDB and DWARF output.
  30045. -- Macro: SDB_DEBUGGING_INFO
  30046. Define this macro to 1 if GCC should produce COFF-style debugging
  30047. output for SDB in response to the '-g' option.
  30048. -- Macro: DWARF2_DEBUGGING_INFO
  30049. Define this macro if GCC should produce dwarf version 2 format
  30050. debugging output in response to the '-g' option.
  30051. -- Target Hook: int TARGET_DWARF_CALLING_CONVENTION (const_tree
  30052. FUNCTION)
  30053. Define this to enable the dwarf attribute
  30054. 'DW_AT_calling_convention' to be emitted for each function.
  30055. Instead of an integer return the enum value for the 'DW_CC_'
  30056. tag.
  30057. To support optional call frame debugging information, you must also
  30058. define 'INCOMING_RETURN_ADDR_RTX' and either set
  30059. 'RTX_FRAME_RELATED_P' on the prologue insns if you use RTL for the
  30060. prologue, or call 'dwarf2out_def_cfa' and 'dwarf2out_reg_save' as
  30061. appropriate from 'TARGET_ASM_FUNCTION_PROLOGUE' if you don't.
  30062. -- Macro: DWARF2_FRAME_INFO
  30063. Define this macro to a nonzero value if GCC should always output
  30064. Dwarf 2 frame information. If 'TARGET_EXCEPT_UNWIND_INFO' (*note
  30065. Exception Region Output::) returns 'UI_DWARF2', and exceptions are
  30066. enabled, GCC will output this information not matter how you define
  30067. 'DWARF2_FRAME_INFO'.
  30068. -- Target Hook: enum unwind_info_type TARGET_DEBUG_UNWIND_INFO (void)
  30069. This hook defines the mechanism that will be used for describing
  30070. frame unwind information to the debugger. Normally the hook will
  30071. return 'UI_DWARF2' if DWARF 2 debug information is enabled, and
  30072. return 'UI_NONE' otherwise.
  30073. A target may return 'UI_DWARF2' even when DWARF 2 debug information
  30074. is disabled in order to always output DWARF 2 frame information.
  30075. A target may return 'UI_TARGET' if it has ABI specified unwind
  30076. tables. This will suppress generation of the normal debug frame
  30077. unwind information.
  30078. -- Macro: DWARF2_ASM_LINE_DEBUG_INFO
  30079. Define this macro to be a nonzero value if the assembler can
  30080. generate Dwarf 2 line debug info sections. This will result in
  30081. much more compact line number tables, and hence is desirable if it
  30082. works.
  30083. -- Target Hook: bool TARGET_WANT_DEBUG_PUB_SECTIONS
  30084. True if the '.debug_pubtypes' and '.debug_pubnames' sections should
  30085. be emitted. These sections are not used on most platforms, and in
  30086. particular GDB does not use them.
  30087. -- Target Hook: bool TARGET_DELAY_SCHED2
  30088. True if sched2 is not to be run at its normal place. This usually
  30089. means it will be run as part of machine-specific reorg.
  30090. -- Target Hook: bool TARGET_DELAY_VARTRACK
  30091. True if vartrack is not to be run at its normal place. This
  30092. usually means it will be run as part of machine-specific reorg.
  30093. -- Target Hook: bool TARGET_NO_REGISTER_ALLOCATION
  30094. True if register allocation and the passes following it should not
  30095. be run. Usually true only for virtual assembler targets.
  30096. -- Macro: ASM_OUTPUT_DWARF_DELTA (STREAM, SIZE, LABEL1, LABEL2)
  30097. A C statement to issue assembly directives that create a difference
  30098. LAB1 minus LAB2, using an integer of the given SIZE.
  30099. -- Macro: ASM_OUTPUT_DWARF_VMS_DELTA (STREAM, SIZE, LABEL1, LABEL2)
  30100. A C statement to issue assembly directives that create a difference
  30101. between the two given labels in system defined units, e.g.
  30102. instruction slots on IA64 VMS, using an integer of the given size.
  30103. -- Macro: ASM_OUTPUT_DWARF_OFFSET (STREAM, SIZE, LABEL, OFFSET,
  30104. SECTION)
  30105. A C statement to issue assembly directives that create a
  30106. section-relative reference to the given LABEL plus OFFSET, using an
  30107. integer of the given SIZE. The label is known to be defined in the
  30108. given SECTION.
  30109. -- Macro: ASM_OUTPUT_DWARF_PCREL (STREAM, SIZE, LABEL)
  30110. A C statement to issue assembly directives that create a
  30111. self-relative reference to the given LABEL, using an integer of the
  30112. given SIZE.
  30113. -- Macro: ASM_OUTPUT_DWARF_DATAREL (STREAM, SIZE, LABEL)
  30114. A C statement to issue assembly directives that create a reference
  30115. to the given LABEL relative to the dbase, using an integer of the
  30116. given SIZE.
  30117. -- Macro: ASM_OUTPUT_DWARF_TABLE_REF (LABEL)
  30118. A C statement to issue assembly directives that create a reference
  30119. to the DWARF table identifier LABEL from the current section. This
  30120. is used on some systems to avoid garbage collecting a DWARF table
  30121. which is referenced by a function.
  30122. -- Target Hook: void TARGET_ASM_OUTPUT_DWARF_DTPREL (FILE *FILE, int
  30123. SIZE, rtx X)
  30124. If defined, this target hook is a function which outputs a
  30125. DTP-relative reference to the given TLS symbol of the specified
  30126. size.
  30127. -- Macro: PUT_SDB_ ...
  30128. Define these macros to override the assembler syntax for the
  30129. special SDB assembler directives. See 'sdbout.c' for a list of
  30130. these macros and their arguments. If the standard syntax is used,
  30131. you need not define them yourself.
  30132. -- Macro: SDB_DELIM
  30133. Some assemblers do not support a semicolon as a delimiter, even
  30134. between SDB assembler directives. In that case, define this macro
  30135. to be the delimiter to use (usually '\n'). It is not necessary to
  30136. define a new set of 'PUT_SDB_OP' macros if this is the only change
  30137. required.
  30138. -- Macro: SDB_ALLOW_UNKNOWN_REFERENCES
  30139. Define this macro to allow references to unknown structure, union,
  30140. or enumeration tags to be emitted. Standard COFF does not allow
  30141. handling of unknown references, MIPS ECOFF has support for it.
  30142. -- Macro: SDB_ALLOW_FORWARD_REFERENCES
  30143. Define this macro to allow references to structure, union, or
  30144. enumeration tags that have not yet been seen to be handled. Some
  30145. assemblers choke if forward tags are used, while some require it.
  30146. -- Macro: SDB_OUTPUT_SOURCE_LINE (STREAM, LINE)
  30147. A C statement to output SDB debugging information before code for
  30148. line number LINE of the current source file to the stdio stream
  30149. STREAM. The default is to emit an '.ln' directive.
  30150. 
  30151. File: gccint.info, Node: VMS Debug, Prev: SDB and DWARF, Up: Debugging Info
  30152. 17.21.6 Macros for VMS Debug Format
  30153. -----------------------------------
  30154. Here are macros for VMS debug format.
  30155. -- Macro: VMS_DEBUGGING_INFO
  30156. Define this macro if GCC should produce debugging output for VMS in
  30157. response to the '-g' option. The default behavior for VMS is to
  30158. generate minimal debug info for a traceback in the absence of '-g'
  30159. unless explicitly overridden with '-g0'. This behavior is
  30160. controlled by 'TARGET_OPTION_OPTIMIZATION' and
  30161. 'TARGET_OPTION_OVERRIDE'.
  30162. 
  30163. File: gccint.info, Node: Floating Point, Next: Mode Switching, Prev: Debugging Info, Up: Target Macros
  30164. 17.22 Cross Compilation and Floating Point
  30165. ==========================================
  30166. While all modern machines use twos-complement representation for
  30167. integers, there are a variety of representations for floating point
  30168. numbers. This means that in a cross-compiler the representation of
  30169. floating point numbers in the compiled program may be different from
  30170. that used in the machine doing the compilation.
  30171. Because different representation systems may offer different amounts of
  30172. range and precision, all floating point constants must be represented in
  30173. the target machine's format. Therefore, the cross compiler cannot
  30174. safely use the host machine's floating point arithmetic; it must emulate
  30175. the target's arithmetic. To ensure consistency, GCC always uses
  30176. emulation to work with floating point values, even when the host and
  30177. target floating point formats are identical.
  30178. The following macros are provided by 'real.h' for the compiler to use.
  30179. All parts of the compiler which generate or optimize floating-point
  30180. calculations must use these macros. They may evaluate their operands
  30181. more than once, so operands must not have side effects.
  30182. -- Macro: REAL_VALUE_TYPE
  30183. The C data type to be used to hold a floating point value in the
  30184. target machine's format. Typically this is a 'struct' containing
  30185. an array of 'HOST_WIDE_INT', but all code should treat it as an
  30186. opaque quantity.
  30187. -- Macro: HOST_WIDE_INT REAL_VALUE_FIX (REAL_VALUE_TYPE X)
  30188. Truncates X to a signed integer, rounding toward zero.
  30189. -- Macro: unsigned HOST_WIDE_INT REAL_VALUE_UNSIGNED_FIX
  30190. (REAL_VALUE_TYPE X)
  30191. Truncates X to an unsigned integer, rounding toward zero. If X is
  30192. negative, returns zero.
  30193. -- Macro: REAL_VALUE_TYPE REAL_VALUE_ATOF (const char *STRING,
  30194. machine_mode MODE)
  30195. Converts STRING into a floating point number in the target
  30196. machine's representation for mode MODE. This routine can handle
  30197. both decimal and hexadecimal floating point constants, using the
  30198. syntax defined by the C language for both.
  30199. -- Macro: int REAL_VALUE_NEGATIVE (REAL_VALUE_TYPE X)
  30200. Returns 1 if X is negative (including negative zero), 0 otherwise.
  30201. -- Macro: int REAL_VALUE_ISINF (REAL_VALUE_TYPE X)
  30202. Determines whether X represents infinity (positive or negative).
  30203. -- Macro: int REAL_VALUE_ISNAN (REAL_VALUE_TYPE X)
  30204. Determines whether X represents a "NaN" (not-a-number).
  30205. -- Macro: REAL_VALUE_TYPE REAL_VALUE_NEGATE (REAL_VALUE_TYPE X)
  30206. Returns the negative of the floating point value X.
  30207. -- Macro: REAL_VALUE_TYPE REAL_VALUE_ABS (REAL_VALUE_TYPE X)
  30208. Returns the absolute value of X.
  30209. 
  30210. File: gccint.info, Node: Mode Switching, Next: Target Attributes, Prev: Floating Point, Up: Target Macros
  30211. 17.23 Mode Switching Instructions
  30212. =================================
  30213. The following macros control mode switching optimizations:
  30214. -- Macro: OPTIMIZE_MODE_SWITCHING (ENTITY)
  30215. Define this macro if the port needs extra instructions inserted for
  30216. mode switching in an optimizing compilation.
  30217. For an example, the SH4 can perform both single and double
  30218. precision floating point operations, but to perform a single
  30219. precision operation, the FPSCR PR bit has to be cleared, while for
  30220. a double precision operation, this bit has to be set. Changing the
  30221. PR bit requires a general purpose register as a scratch register,
  30222. hence these FPSCR sets have to be inserted before reload, i.e. you
  30223. cannot put this into instruction emitting or
  30224. 'TARGET_MACHINE_DEPENDENT_REORG'.
  30225. You can have multiple entities that are mode-switched, and select
  30226. at run time which entities actually need it.
  30227. 'OPTIMIZE_MODE_SWITCHING' should return nonzero for any ENTITY that
  30228. needs mode-switching. If you define this macro, you also have to
  30229. define 'NUM_MODES_FOR_MODE_SWITCHING', 'TARGET_MODE_NEEDED',
  30230. 'TARGET_MODE_PRIORITY' and 'TARGET_MODE_EMIT'.
  30231. 'TARGET_MODE_AFTER', 'TARGET_MODE_ENTRY', and 'TARGET_MODE_EXIT'
  30232. are optional.
  30233. -- Macro: NUM_MODES_FOR_MODE_SWITCHING
  30234. If you define 'OPTIMIZE_MODE_SWITCHING', you have to define this as
  30235. initializer for an array of integers. Each initializer element N
  30236. refers to an entity that needs mode switching, and specifies the
  30237. number of different modes that might need to be set for this
  30238. entity. The position of the initializer in the
  30239. initializer--starting counting at zero--determines the integer that
  30240. is used to refer to the mode-switched entity in question. In
  30241. macros that take mode arguments / yield a mode result, modes are
  30242. represented as numbers 0 ... N - 1. N is used to specify that no
  30243. mode switch is needed / supplied.
  30244. -- Target Hook: void TARGET_MODE_EMIT (int ENTITY, int MODE, int
  30245. PREV_MODE, HARD_REG_SET REGS_LIVE)
  30246. Generate one or more insns to set ENTITY to MODE. HARD_REG_LIVE is
  30247. the set of hard registers live at the point where the insn(s) are
  30248. to be inserted. PREV_MOXDE indicates the mode to switch from.
  30249. Sets of a lower numbered entity will be emitted before sets of a
  30250. higher numbered entity to a mode of the same or lower priority.
  30251. -- Target Hook: int TARGET_MODE_NEEDED (int ENTITY, rtx_insn *INSN)
  30252. ENTITY is an integer specifying a mode-switched entity. If
  30253. 'OPTIMIZE_MODE_SWITCHING' is defined, you must define this macro to
  30254. return an integer value not larger than the corresponding element
  30255. in 'NUM_MODES_FOR_MODE_SWITCHING', to denote the mode that ENTITY
  30256. must be switched into prior to the execution of INSN.
  30257. -- Target Hook: int TARGET_MODE_AFTER (int ENTITY, int MODE, rtx_insn
  30258. *INSN)
  30259. ENTITY is an integer specifying a mode-switched entity. If this
  30260. macro is defined, it is evaluated for every INSN during mode
  30261. switching. It determines the mode that an insn results in (if
  30262. different from the incoming mode).
  30263. -- Target Hook: int TARGET_MODE_ENTRY (int ENTITY)
  30264. If this macro is defined, it is evaluated for every ENTITY that
  30265. needs mode switching. It should evaluate to an integer, which is a
  30266. mode that ENTITY is assumed to be switched to at function entry.
  30267. If 'TARGET_MODE_ENTRY' is defined then 'TARGET_MODE_EXIT' must be
  30268. defined.
  30269. -- Target Hook: int TARGET_MODE_EXIT (int ENTITY)
  30270. If this macro is defined, it is evaluated for every ENTITY that
  30271. needs mode switching. It should evaluate to an integer, which is a
  30272. mode that ENTITY is assumed to be switched to at function exit. If
  30273. 'TARGET_MODE_EXIT' is defined then 'TARGET_MODE_ENTRY' must be
  30274. defined.
  30275. -- Target Hook: int TARGET_MODE_PRIORITY (int ENTITY, int N)
  30276. This macro specifies the order in which modes for ENTITY are
  30277. processed. 0 is the highest priority,
  30278. 'NUM_MODES_FOR_MODE_SWITCHING[ENTITY] - 1' the lowest. The value
  30279. of the macro should be an integer designating a mode for ENTITY.
  30280. For any fixed ENTITY, 'mode_priority' (ENTITY, N) shall be a
  30281. bijection in 0 ... 'num_modes_for_mode_switching[ENTITY] - 1'.
  30282. 
  30283. File: gccint.info, Node: Target Attributes, Next: Emulated TLS, Prev: Mode Switching, Up: Target Macros
  30284. 17.24 Defining target-specific uses of '__attribute__'
  30285. ======================================================
  30286. Target-specific attributes may be defined for functions, data and types.
  30287. These are described using the following target hooks; they also need to
  30288. be documented in 'extend.texi'.
  30289. -- Target Hook: const struct attribute_spec * TARGET_ATTRIBUTE_TABLE
  30290. If defined, this target hook points to an array of 'struct
  30291. attribute_spec' (defined in 'tree-core.h') specifying the machine
  30292. specific attributes for this target and some of the restrictions on
  30293. the entities to which these attributes are applied and the
  30294. arguments they take.
  30295. -- Target Hook: bool TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P (const_tree
  30296. NAME)
  30297. If defined, this target hook is a function which returns true if
  30298. the machine-specific attribute named NAME expects an identifier
  30299. given as its first argument to be passed on as a plain identifier,
  30300. not subjected to name lookup. If this is not defined, the default
  30301. is false for all machine-specific attributes.
  30302. -- Target Hook: int TARGET_COMP_TYPE_ATTRIBUTES (const_tree TYPE1,
  30303. const_tree TYPE2)
  30304. If defined, this target hook is a function which returns zero if
  30305. the attributes on TYPE1 and TYPE2 are incompatible, one if they are
  30306. compatible, and two if they are nearly compatible (which causes a
  30307. warning to be generated). If this is not defined, machine-specific
  30308. attributes are supposed always to be compatible.
  30309. -- Target Hook: void TARGET_SET_DEFAULT_TYPE_ATTRIBUTES (tree TYPE)
  30310. If defined, this target hook is a function which assigns default
  30311. attributes to the newly defined TYPE.
  30312. -- Target Hook: tree TARGET_MERGE_TYPE_ATTRIBUTES (tree TYPE1, tree
  30313. TYPE2)
  30314. Define this target hook if the merging of type attributes needs
  30315. special handling. If defined, the result is a list of the combined
  30316. 'TYPE_ATTRIBUTES' of TYPE1 and TYPE2. It is assumed that
  30317. 'comptypes' has already been called and returned 1. This function
  30318. may call 'merge_attributes' to handle machine-independent merging.
  30319. -- Target Hook: tree TARGET_MERGE_DECL_ATTRIBUTES (tree OLDDECL, tree
  30320. NEWDECL)
  30321. Define this target hook if the merging of decl attributes needs
  30322. special handling. If defined, the result is a list of the combined
  30323. 'DECL_ATTRIBUTES' of OLDDECL and NEWDECL. NEWDECL is a duplicate
  30324. declaration of OLDDECL. Examples of when this is needed are when
  30325. one attribute overrides another, or when an attribute is nullified
  30326. by a subsequent definition. This function may call
  30327. 'merge_attributes' to handle machine-independent merging.
  30328. If the only target-specific handling you require is 'dllimport' for
  30329. Microsoft Windows targets, you should define the macro
  30330. 'TARGET_DLLIMPORT_DECL_ATTRIBUTES' to '1'. The compiler will then
  30331. define a function called 'merge_dllimport_decl_attributes' which
  30332. can then be defined as the expansion of
  30333. 'TARGET_MERGE_DECL_ATTRIBUTES'. You can also add
  30334. 'handle_dll_attribute' in the attribute table for your port to
  30335. perform initial processing of the 'dllimport' and 'dllexport'
  30336. attributes. This is done in 'i386/cygwin.h' and 'i386/i386.c', for
  30337. example.
  30338. -- Target Hook: bool TARGET_VALID_DLLIMPORT_ATTRIBUTE_P (const_tree
  30339. DECL)
  30340. DECL is a variable or function with '__attribute__((dllimport))'
  30341. specified. Use this hook if the target needs to add extra
  30342. validation checks to 'handle_dll_attribute'.
  30343. -- Macro: TARGET_DECLSPEC
  30344. Define this macro to a nonzero value if you want to treat
  30345. '__declspec(X)' as equivalent to '__attribute((X))'. By default,
  30346. this behavior is enabled only for targets that define
  30347. 'TARGET_DLLIMPORT_DECL_ATTRIBUTES'. The current implementation of
  30348. '__declspec' is via a built-in macro, but you should not rely on
  30349. this implementation detail.
  30350. -- Target Hook: void TARGET_INSERT_ATTRIBUTES (tree NODE, tree
  30351. *ATTR_PTR)
  30352. Define this target hook if you want to be able to add attributes to
  30353. a decl when it is being created. This is normally useful for back
  30354. ends which wish to implement a pragma by using the attributes which
  30355. correspond to the pragma's effect. The NODE argument is the decl
  30356. which is being created. The ATTR_PTR argument is a pointer to the
  30357. attribute list for this decl. The list itself should not be
  30358. modified, since it may be shared with other decls, but attributes
  30359. may be chained on the head of the list and '*ATTR_PTR' modified to
  30360. point to the new attributes, or a copy of the list may be made if
  30361. further changes are needed.
  30362. -- Target Hook: bool TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P (const_tree
  30363. FNDECL)
  30364. This target hook returns 'true' if it is OK to inline FNDECL into
  30365. the current function, despite its having target-specific
  30366. attributes, 'false' otherwise. By default, if a function has a
  30367. target specific attribute attached to it, it will not be inlined.
  30368. -- Target Hook: bool TARGET_OPTION_VALID_ATTRIBUTE_P (tree FNDECL, tree
  30369. NAME, tree ARGS, int FLAGS)
  30370. This hook is called to parse 'attribute(target("..."))', which
  30371. allows setting target-specific options on individual functions.
  30372. These function-specific options may differ from the options
  30373. specified on the command line. The hook should return 'true' if
  30374. the options are valid.
  30375. The hook should set the 'DECL_FUNCTION_SPECIFIC_TARGET' field in
  30376. the function declaration to hold a pointer to a target-specific
  30377. 'struct cl_target_option' structure.
  30378. -- Target Hook: void TARGET_OPTION_SAVE (struct cl_target_option *PTR,
  30379. struct gcc_options *OPTS)
  30380. This hook is called to save any additional target-specific
  30381. information in the 'struct cl_target_option' structure for
  30382. function-specific options from the 'struct gcc_options' structure.
  30383. *Note Option file format::.
  30384. -- Target Hook: void TARGET_OPTION_RESTORE (struct gcc_options *OPTS,
  30385. struct cl_target_option *PTR)
  30386. This hook is called to restore any additional target-specific
  30387. information in the 'struct cl_target_option' structure for
  30388. function-specific options to the 'struct gcc_options' structure.
  30389. -- Target Hook: void TARGET_OPTION_POST_STREAM_IN (struct
  30390. cl_target_option *PTR)
  30391. This hook is called to update target-specific information in the
  30392. 'struct cl_target_option' structure after it is streamed in from
  30393. LTO bytecode.
  30394. -- Target Hook: void TARGET_OPTION_PRINT (FILE *FILE, int INDENT,
  30395. struct cl_target_option *PTR)
  30396. This hook is called to print any additional target-specific
  30397. information in the 'struct cl_target_option' structure for
  30398. function-specific options.
  30399. -- Target Hook: bool TARGET_OPTION_PRAGMA_PARSE (tree ARGS, tree
  30400. POP_TARGET)
  30401. This target hook parses the options for '#pragma GCC target', which
  30402. sets the target-specific options for functions that occur later in
  30403. the input stream. The options accepted should be the same as those
  30404. handled by the 'TARGET_OPTION_VALID_ATTRIBUTE_P' hook.
  30405. -- Target Hook: void TARGET_OPTION_OVERRIDE (void)
  30406. Sometimes certain combinations of command options do not make sense
  30407. on a particular target machine. You can override the hook
  30408. 'TARGET_OPTION_OVERRIDE' to take account of this. This hooks is
  30409. called once just after all the command options have been parsed.
  30410. Don't use this hook to turn on various extra optimizations for
  30411. '-O'. That is what 'TARGET_OPTION_OPTIMIZATION' is for.
  30412. If you need to do something whenever the optimization level is
  30413. changed via the optimize attribute or pragma, see
  30414. 'TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE'
  30415. -- Target Hook: bool TARGET_OPTION_FUNCTION_VERSIONS (tree DECL1, tree
  30416. DECL2)
  30417. This target hook returns 'true' if DECL1 and DECL2 are versions of
  30418. the same function. DECL1 and DECL2 are function versions if and
  30419. only if they have the same function signature and different target
  30420. specific attributes, that is, they are compiled for different
  30421. target machines.
  30422. -- Target Hook: bool TARGET_CAN_INLINE_P (tree CALLER, tree CALLEE)
  30423. This target hook returns 'false' if the CALLER function cannot
  30424. inline CALLEE, based on target specific information. By default,
  30425. inlining is not allowed if the callee function has function
  30426. specific target options and the caller does not use the same
  30427. options.
  30428. -- Target Hook: void TARGET_RELAYOUT_FUNCTION (tree FNDECL)
  30429. This target hook fixes function FNDECL after attributes are
  30430. processed. Default does nothing. On ARM, the default function's
  30431. alignment is updated with the attribute target.
  30432. 
  30433. File: gccint.info, Node: Emulated TLS, Next: MIPS Coprocessors, Prev: Target Attributes, Up: Target Macros
  30434. 17.25 Emulating TLS
  30435. ===================
  30436. For targets whose psABI does not provide Thread Local Storage via
  30437. specific relocations and instruction sequences, an emulation layer is
  30438. used. A set of target hooks allows this emulation layer to be
  30439. configured for the requirements of a particular target. For instance
  30440. the psABI may in fact specify TLS support in terms of an emulation
  30441. layer.
  30442. The emulation layer works by creating a control object for every TLS
  30443. object. To access the TLS object, a lookup function is provided which,
  30444. when given the address of the control object, will return the address of
  30445. the current thread's instance of the TLS object.
  30446. -- Target Hook: const char * TARGET_EMUTLS_GET_ADDRESS
  30447. Contains the name of the helper function that uses a TLS control
  30448. object to locate a TLS instance. The default causes libgcc's
  30449. emulated TLS helper function to be used.
  30450. -- Target Hook: const char * TARGET_EMUTLS_REGISTER_COMMON
  30451. Contains the name of the helper function that should be used at
  30452. program startup to register TLS objects that are implicitly
  30453. initialized to zero. If this is 'NULL', all TLS objects will have
  30454. explicit initializers. The default causes libgcc's emulated TLS
  30455. registration function to be used.
  30456. -- Target Hook: const char * TARGET_EMUTLS_VAR_SECTION
  30457. Contains the name of the section in which TLS control variables
  30458. should be placed. The default of 'NULL' allows these to be placed
  30459. in any section.
  30460. -- Target Hook: const char * TARGET_EMUTLS_TMPL_SECTION
  30461. Contains the name of the section in which TLS initializers should
  30462. be placed. The default of 'NULL' allows these to be placed in any
  30463. section.
  30464. -- Target Hook: const char * TARGET_EMUTLS_VAR_PREFIX
  30465. Contains the prefix to be prepended to TLS control variable names.
  30466. The default of 'NULL' uses a target-specific prefix.
  30467. -- Target Hook: const char * TARGET_EMUTLS_TMPL_PREFIX
  30468. Contains the prefix to be prepended to TLS initializer objects.
  30469. The default of 'NULL' uses a target-specific prefix.
  30470. -- Target Hook: tree TARGET_EMUTLS_VAR_FIELDS (tree TYPE, tree *NAME)
  30471. Specifies a function that generates the FIELD_DECLs for a TLS
  30472. control object type. TYPE is the RECORD_TYPE the fields are for
  30473. and NAME should be filled with the structure tag, if the default of
  30474. '__emutls_object' is unsuitable. The default creates a type
  30475. suitable for libgcc's emulated TLS function.
  30476. -- Target Hook: tree TARGET_EMUTLS_VAR_INIT (tree VAR, tree DECL, tree
  30477. TMPL_ADDR)
  30478. Specifies a function that generates the CONSTRUCTOR to initialize a
  30479. TLS control object. VAR is the TLS control object, DECL is the TLS
  30480. object and TMPL_ADDR is the address of the initializer. The
  30481. default initializes libgcc's emulated TLS control object.
  30482. -- Target Hook: bool TARGET_EMUTLS_VAR_ALIGN_FIXED
  30483. Specifies whether the alignment of TLS control variable objects is
  30484. fixed and should not be increased as some backends may do to
  30485. optimize single objects. The default is false.
  30486. -- Target Hook: bool TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS
  30487. Specifies whether a DWARF 'DW_OP_form_tls_address' location
  30488. descriptor may be used to describe emulated TLS control objects.
  30489. 
  30490. File: gccint.info, Node: MIPS Coprocessors, Next: PCH Target, Prev: Emulated TLS, Up: Target Macros
  30491. 17.26 Defining coprocessor specifics for MIPS targets.
  30492. ======================================================
  30493. The MIPS specification allows MIPS implementations to have as many as 4
  30494. coprocessors, each with as many as 32 private registers. GCC supports
  30495. accessing these registers and transferring values between the registers
  30496. and memory using asm-ized variables. For example:
  30497. register unsigned int cp0count asm ("c0r1");
  30498. unsigned int d;
  30499. d = cp0count + 3;
  30500. ("c0r1" is the default name of register 1 in coprocessor 0; alternate
  30501. names may be added as described below, or the default names may be
  30502. overridden entirely in 'SUBTARGET_CONDITIONAL_REGISTER_USAGE'.)
  30503. Coprocessor registers are assumed to be epilogue-used; sets to them
  30504. will be preserved even if it does not appear that the register is used
  30505. again later in the function.
  30506. Another note: according to the MIPS spec, coprocessor 1 (if present) is
  30507. the FPU. One accesses COP1 registers through standard mips
  30508. floating-point support; they are not included in this mechanism.
  30509. 
  30510. File: gccint.info, Node: PCH Target, Next: C++ ABI, Prev: MIPS Coprocessors, Up: Target Macros
  30511. 17.27 Parameters for Precompiled Header Validity Checking
  30512. =========================================================
  30513. -- Target Hook: void * TARGET_GET_PCH_VALIDITY (size_t *SZ)
  30514. This hook returns a pointer to the data needed by
  30515. 'TARGET_PCH_VALID_P' and sets '*SZ' to the size of the data in
  30516. bytes.
  30517. -- Target Hook: const char * TARGET_PCH_VALID_P (const void *DATA,
  30518. size_t SZ)
  30519. This hook checks whether the options used to create a PCH file are
  30520. compatible with the current settings. It returns 'NULL' if so and
  30521. a suitable error message if not. Error messages will be presented
  30522. to the user and must be localized using '_(MSG)'.
  30523. DATA is the data that was returned by 'TARGET_GET_PCH_VALIDITY'
  30524. when the PCH file was created and SZ is the size of that data in
  30525. bytes. It's safe to assume that the data was created by the same
  30526. version of the compiler, so no format checking is needed.
  30527. The default definition of 'default_pch_valid_p' should be suitable
  30528. for most targets.
  30529. -- Target Hook: const char * TARGET_CHECK_PCH_TARGET_FLAGS (int
  30530. PCH_FLAGS)
  30531. If this hook is nonnull, the default implementation of
  30532. 'TARGET_PCH_VALID_P' will use it to check for compatible values of
  30533. 'target_flags'. PCH_FLAGS specifies the value that 'target_flags'
  30534. had when the PCH file was created. The return value is the same as
  30535. for 'TARGET_PCH_VALID_P'.
  30536. -- Target Hook: void TARGET_PREPARE_PCH_SAVE (void)
  30537. Called before writing out a PCH file. If the target has some
  30538. garbage-collected data that needs to be in a particular state on
  30539. PCH loads, it can use this hook to enforce that state. Very few
  30540. targets need to do anything here.
  30541. 
  30542. File: gccint.info, Node: C++ ABI, Next: Named Address Spaces, Prev: PCH Target, Up: Target Macros
  30543. 17.28 C++ ABI parameters
  30544. ========================
  30545. -- Target Hook: tree TARGET_CXX_GUARD_TYPE (void)
  30546. Define this hook to override the integer type used for guard
  30547. variables. These are used to implement one-time construction of
  30548. static objects. The default is long_long_integer_type_node.
  30549. -- Target Hook: bool TARGET_CXX_GUARD_MASK_BIT (void)
  30550. This hook determines how guard variables are used. It should
  30551. return 'false' (the default) if the first byte should be used. A
  30552. return value of 'true' indicates that only the least significant
  30553. bit should be used.
  30554. -- Target Hook: tree TARGET_CXX_GET_COOKIE_SIZE (tree TYPE)
  30555. This hook returns the size of the cookie to use when allocating an
  30556. array whose elements have the indicated TYPE. Assumes that it is
  30557. already known that a cookie is needed. The default is 'max(sizeof
  30558. (size_t), alignof(type))', as defined in section 2.7 of the
  30559. IA64/Generic C++ ABI.
  30560. -- Target Hook: bool TARGET_CXX_COOKIE_HAS_SIZE (void)
  30561. This hook should return 'true' if the element size should be stored
  30562. in array cookies. The default is to return 'false'.
  30563. -- Target Hook: int TARGET_CXX_IMPORT_EXPORT_CLASS (tree TYPE, int
  30564. IMPORT_EXPORT)
  30565. If defined by a backend this hook allows the decision made to
  30566. export class TYPE to be overruled. Upon entry IMPORT_EXPORT will
  30567. contain 1 if the class is going to be exported, -1 if it is going
  30568. to be imported and 0 otherwise. This function should return the
  30569. modified value and perform any other actions necessary to support
  30570. the backend's targeted operating system.
  30571. -- Target Hook: bool TARGET_CXX_CDTOR_RETURNS_THIS (void)
  30572. This hook should return 'true' if constructors and destructors
  30573. return the address of the object created/destroyed. The default is
  30574. to return 'false'.
  30575. -- Target Hook: bool TARGET_CXX_KEY_METHOD_MAY_BE_INLINE (void)
  30576. This hook returns true if the key method for a class (i.e., the
  30577. method which, if defined in the current translation unit, causes
  30578. the virtual table to be emitted) may be an inline function. Under
  30579. the standard Itanium C++ ABI the key method may be an inline
  30580. function so long as the function is not declared inline in the
  30581. class definition. Under some variants of the ABI, an inline
  30582. function can never be the key method. The default is to return
  30583. 'true'.
  30584. -- Target Hook: void TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY (tree
  30585. DECL)
  30586. DECL is a virtual table, virtual table table, typeinfo object, or
  30587. other similar implicit class data object that will be emitted with
  30588. external linkage in this translation unit. No ELF visibility has
  30589. been explicitly specified. If the target needs to specify a
  30590. visibility other than that of the containing class, use this hook
  30591. to set 'DECL_VISIBILITY' and 'DECL_VISIBILITY_SPECIFIED'.
  30592. -- Target Hook: bool TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT (void)
  30593. This hook returns true (the default) if virtual tables and other
  30594. similar implicit class data objects are always COMDAT if they have
  30595. external linkage. If this hook returns false, then class data for
  30596. classes whose virtual table will be emitted in only one translation
  30597. unit will not be COMDAT.
  30598. -- Target Hook: bool TARGET_CXX_LIBRARY_RTTI_COMDAT (void)
  30599. This hook returns true (the default) if the RTTI information for
  30600. the basic types which is defined in the C++ runtime should always
  30601. be COMDAT, false if it should not be COMDAT.
  30602. -- Target Hook: bool TARGET_CXX_USE_AEABI_ATEXIT (void)
  30603. This hook returns true if '__aeabi_atexit' (as defined by the ARM
  30604. EABI) should be used to register static destructors when
  30605. '-fuse-cxa-atexit' is in effect. The default is to return false to
  30606. use '__cxa_atexit'.
  30607. -- Target Hook: bool TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT (void)
  30608. This hook returns true if the target 'atexit' function can be used
  30609. in the same manner as '__cxa_atexit' to register C++ static
  30610. destructors. This requires that 'atexit'-registered functions in
  30611. shared libraries are run in the correct order when the libraries
  30612. are unloaded. The default is to return false.
  30613. -- Target Hook: void TARGET_CXX_ADJUST_CLASS_AT_DEFINITION (tree TYPE)
  30614. TYPE is a C++ class (i.e., RECORD_TYPE or UNION_TYPE) that has just
  30615. been defined. Use this hook to make adjustments to the class (eg,
  30616. tweak visibility or perform any other required target
  30617. modifications).
  30618. -- Target Hook: tree TARGET_CXX_DECL_MANGLING_CONTEXT (const_tree DECL)
  30619. Return target-specific mangling context of DECL or 'NULL_TREE'.
  30620. 
  30621. File: gccint.info, Node: Named Address Spaces, Next: Misc, Prev: C++ ABI, Up: Target Macros
  30622. 17.29 Adding support for named address spaces
  30623. =============================================
  30624. The draft technical report of the ISO/IEC JTC1 S22 WG14 N1275 standards
  30625. committee, 'Programming Languages - C - Extensions to support embedded
  30626. processors', specifies a syntax for embedded processors to specify
  30627. alternate address spaces. You can configure a GCC port to support
  30628. section 5.1 of the draft report to add support for address spaces other
  30629. than the default address space. These address spaces are new keywords
  30630. that are similar to the 'volatile' and 'const' type attributes.
  30631. Pointers to named address spaces can have a different size than
  30632. pointers to the generic address space.
  30633. For example, the SPU port uses the '__ea' address space to refer to
  30634. memory in the host processor, rather than memory local to the SPU
  30635. processor. Access to memory in the '__ea' address space involves
  30636. issuing DMA operations to move data between the host processor and the
  30637. local processor memory address space. Pointers in the '__ea' address
  30638. space are either 32 bits or 64 bits based on the '-mea32' or '-mea64'
  30639. switches (native SPU pointers are always 32 bits).
  30640. Internally, address spaces are represented as a small integer in the
  30641. range 0 to 15 with address space 0 being reserved for the generic
  30642. address space.
  30643. To register a named address space qualifier keyword with the C front
  30644. end, the target may call the 'c_register_addr_space' routine. For
  30645. example, the SPU port uses the following to declare '__ea' as the
  30646. keyword for named address space #1:
  30647. #define ADDR_SPACE_EA 1
  30648. c_register_addr_space ("__ea", ADDR_SPACE_EA);
  30649. -- Target Hook: machine_mode TARGET_ADDR_SPACE_POINTER_MODE
  30650. (addr_space_t ADDRESS_SPACE)
  30651. Define this to return the machine mode to use for pointers to
  30652. ADDRESS_SPACE if the target supports named address spaces. The
  30653. default version of this hook returns 'ptr_mode'.
  30654. -- Target Hook: machine_mode TARGET_ADDR_SPACE_ADDRESS_MODE
  30655. (addr_space_t ADDRESS_SPACE)
  30656. Define this to return the machine mode to use for addresses in
  30657. ADDRESS_SPACE if the target supports named address spaces. The
  30658. default version of this hook returns 'Pmode'.
  30659. -- Target Hook: bool TARGET_ADDR_SPACE_VALID_POINTER_MODE (machine_mode
  30660. MODE, addr_space_t AS)
  30661. Define this to return nonzero if the port can handle pointers with
  30662. machine mode MODE to address space AS. This target hook is the
  30663. same as the 'TARGET_VALID_POINTER_MODE' target hook, except that it
  30664. includes explicit named address space support. The default version
  30665. of this hook returns true for the modes returned by either the
  30666. 'TARGET_ADDR_SPACE_POINTER_MODE' or
  30667. 'TARGET_ADDR_SPACE_ADDRESS_MODE' target hooks for the given address
  30668. space.
  30669. -- Target Hook: bool TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P
  30670. (machine_mode MODE, rtx EXP, bool STRICT, addr_space_t AS)
  30671. Define this to return true if EXP is a valid address for mode MODE
  30672. in the named address space AS. The STRICT parameter says whether
  30673. strict addressing is in effect after reload has finished. This
  30674. target hook is the same as the 'TARGET_LEGITIMATE_ADDRESS_P' target
  30675. hook, except that it includes explicit named address space support.
  30676. -- Target Hook: rtx TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS (rtx X, rtx
  30677. OLDX, machine_mode MODE, addr_space_t AS)
  30678. Define this to modify an invalid address X to be a valid address
  30679. with mode MODE in the named address space AS. This target hook is
  30680. the same as the 'TARGET_LEGITIMIZE_ADDRESS' target hook, except
  30681. that it includes explicit named address space support.
  30682. -- Target Hook: bool TARGET_ADDR_SPACE_SUBSET_P (addr_space_t SUBSET,
  30683. addr_space_t SUPERSET)
  30684. Define this to return whether the SUBSET named address space is
  30685. contained within the SUPERSET named address space. Pointers to a
  30686. named address space that is a subset of another named address space
  30687. will be converted automatically without a cast if used together in
  30688. arithmetic operations. Pointers to a superset address space can be
  30689. converted to pointers to a subset address space via explicit casts.
  30690. -- Target Hook: bool TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID (addr_space_t
  30691. AS)
  30692. Define this to modify the default handling of address 0 for the
  30693. address space. Return true if 0 should be considered a valid
  30694. address.
  30695. -- Target Hook: rtx TARGET_ADDR_SPACE_CONVERT (rtx OP, tree FROM_TYPE,
  30696. tree TO_TYPE)
  30697. Define this to convert the pointer expression represented by the
  30698. RTL OP with type FROM_TYPE that points to a named address space to
  30699. a new pointer expression with type TO_TYPE that points to a
  30700. different named address space. When this hook it called, it is
  30701. guaranteed that one of the two address spaces is a subset of the
  30702. other, as determined by the 'TARGET_ADDR_SPACE_SUBSET_P' target
  30703. hook.
  30704. -- Target Hook: int TARGET_ADDR_SPACE_DEBUG (addr_space_t AS)
  30705. Define this to define how the address space is encoded in dwarf.
  30706. The result is the value to be used with 'DW_AT_address_class'.
  30707. -- Target Hook: void TARGET_ADDR_SPACE_DIAGNOSE_USAGE (addr_space_t AS,
  30708. location_t LOC)
  30709. Define this hook if the availability of an address space depends on
  30710. command line options and some diagnostics should be printed when
  30711. the address space is used. This hook is called during parsing and
  30712. allows to emit a better diagnostic compared to the case where the
  30713. address space was not registered with 'c_register_addr_space'. AS
  30714. is the address space as registered with 'c_register_addr_space'.
  30715. LOC is the location of the address space qualifier token. The
  30716. default implementation does nothing.
  30717. 
  30718. File: gccint.info, Node: Misc, Prev: Named Address Spaces, Up: Target Macros
  30719. 17.30 Miscellaneous Parameters
  30720. ==============================
  30721. Here are several miscellaneous parameters.
  30722. -- Macro: HAS_LONG_COND_BRANCH
  30723. Define this boolean macro to indicate whether or not your
  30724. architecture has conditional branches that can span all of memory.
  30725. It is used in conjunction with an optimization that partitions hot
  30726. and cold basic blocks into separate sections of the executable. If
  30727. this macro is set to false, gcc will convert any conditional
  30728. branches that attempt to cross between sections into unconditional
  30729. branches or indirect jumps.
  30730. -- Macro: HAS_LONG_UNCOND_BRANCH
  30731. Define this boolean macro to indicate whether or not your
  30732. architecture has unconditional branches that can span all of
  30733. memory. It is used in conjunction with an optimization that
  30734. partitions hot and cold basic blocks into separate sections of the
  30735. executable. If this macro is set to false, gcc will convert any
  30736. unconditional branches that attempt to cross between sections into
  30737. indirect jumps.
  30738. -- Macro: CASE_VECTOR_MODE
  30739. An alias for a machine mode name. This is the machine mode that
  30740. elements of a jump-table should have.
  30741. -- Macro: CASE_VECTOR_SHORTEN_MODE (MIN_OFFSET, MAX_OFFSET, BODY)
  30742. Optional: return the preferred mode for an 'addr_diff_vec' when the
  30743. minimum and maximum offset are known. If you define this, it
  30744. enables extra code in branch shortening to deal with
  30745. 'addr_diff_vec'. To make this work, you also have to define
  30746. 'INSN_ALIGN' and make the alignment for 'addr_diff_vec' explicit.
  30747. The BODY argument is provided so that the offset_unsigned and scale
  30748. flags can be updated.
  30749. -- Macro: CASE_VECTOR_PC_RELATIVE
  30750. Define this macro to be a C expression to indicate when jump-tables
  30751. should contain relative addresses. You need not define this macro
  30752. if jump-tables never contain relative addresses, or jump-tables
  30753. should contain relative addresses only when '-fPIC' or '-fPIC' is
  30754. in effect.
  30755. -- Target Hook: unsigned int TARGET_CASE_VALUES_THRESHOLD (void)
  30756. This function return the smallest number of different values for
  30757. which it is best to use a jump-table instead of a tree of
  30758. conditional branches. The default is four for machines with a
  30759. 'casesi' instruction and five otherwise. This is best for most
  30760. machines.
  30761. -- Macro: WORD_REGISTER_OPERATIONS
  30762. Define this macro to 1 if operations between registers with
  30763. integral mode smaller than a word are always performed on the
  30764. entire register. To be more explicit, if you start with a pair of
  30765. 'word_mode' registers with known values and you do a subword, for
  30766. example 'QImode', addition on the low part of the registers, then
  30767. the compiler may consider that the result has a known value in
  30768. 'word_mode' too if the macro is defined to 1. Most RISC machines
  30769. have this property and most CISC machines do not.
  30770. -- Target Hook: unsigned int TARGET_MIN_ARITHMETIC_PRECISION (void)
  30771. On some RISC architectures with 64-bit registers, the processor
  30772. also maintains 32-bit condition codes that make it possible to do
  30773. real 32-bit arithmetic, although the operations are performed on
  30774. the full registers.
  30775. On such architectures, defining this hook to 32 tells the compiler
  30776. to try using 32-bit arithmetical operations setting the condition
  30777. codes instead of doing full 64-bit arithmetic.
  30778. More generally, define this hook on RISC architectures if you want
  30779. the compiler to try using arithmetical operations setting the
  30780. condition codes with a precision lower than the word precision.
  30781. You need not define this hook if 'WORD_REGISTER_OPERATIONS' is not
  30782. defined to 1.
  30783. -- Macro: LOAD_EXTEND_OP (MEM_MODE)
  30784. Define this macro to be a C expression indicating when insns that
  30785. read memory in MEM_MODE, an integral mode narrower than a word, set
  30786. the bits outside of MEM_MODE to be either the sign-extension or the
  30787. zero-extension of the data read. Return 'SIGN_EXTEND' for values
  30788. of MEM_MODE for which the insn sign-extends, 'ZERO_EXTEND' for
  30789. which it zero-extends, and 'UNKNOWN' for other modes.
  30790. This macro is not called with MEM_MODE non-integral or with a width
  30791. greater than or equal to 'BITS_PER_WORD', so you may return any
  30792. value in this case. Do not define this macro if it would always
  30793. return 'UNKNOWN'. On machines where this macro is defined, you
  30794. will normally define it as the constant 'SIGN_EXTEND' or
  30795. 'ZERO_EXTEND'.
  30796. You may return a non-'UNKNOWN' value even if for some hard
  30797. registers the sign extension is not performed, if for the
  30798. 'REGNO_REG_CLASS' of these hard registers
  30799. 'CANNOT_CHANGE_MODE_CLASS' returns nonzero when the FROM mode is
  30800. MEM_MODE and the TO mode is any integral mode larger than this but
  30801. not larger than 'word_mode'.
  30802. You must return 'UNKNOWN' if for some hard registers that allow
  30803. this mode, 'CANNOT_CHANGE_MODE_CLASS' says that they cannot change
  30804. to 'word_mode', but that they can change to another integral mode
  30805. that is larger then MEM_MODE but still smaller than 'word_mode'.
  30806. -- Macro: SHORT_IMMEDIATES_SIGN_EXTEND
  30807. Define this macro to 1 if loading short immediate values into
  30808. registers sign extends.
  30809. -- Target Hook: unsigned int TARGET_MIN_DIVISIONS_FOR_RECIP_MUL
  30810. (machine_mode MODE)
  30811. When '-ffast-math' is in effect, GCC tries to optimize divisions by
  30812. the same divisor, by turning them into multiplications by the
  30813. reciprocal. This target hook specifies the minimum number of
  30814. divisions that should be there for GCC to perform the optimization
  30815. for a variable of mode MODE. The default implementation returns 3
  30816. if the machine has an instruction for the division, and 2 if it
  30817. does not.
  30818. -- Macro: MOVE_MAX
  30819. The maximum number of bytes that a single instruction can move
  30820. quickly between memory and registers or between two memory
  30821. locations.
  30822. -- Macro: MAX_MOVE_MAX
  30823. The maximum number of bytes that a single instruction can move
  30824. quickly between memory and registers or between two memory
  30825. locations. If this is undefined, the default is 'MOVE_MAX'.
  30826. Otherwise, it is the constant value that is the largest value that
  30827. 'MOVE_MAX' can have at run-time.
  30828. -- Macro: SHIFT_COUNT_TRUNCATED
  30829. A C expression that is nonzero if on this machine the number of
  30830. bits actually used for the count of a shift operation is equal to
  30831. the number of bits needed to represent the size of the object being
  30832. shifted. When this macro is nonzero, the compiler will assume that
  30833. it is safe to omit a sign-extend, zero-extend, and certain bitwise
  30834. 'and' instructions that truncates the count of a shift operation.
  30835. On machines that have instructions that act on bit-fields at
  30836. variable positions, which may include 'bit test' instructions, a
  30837. nonzero 'SHIFT_COUNT_TRUNCATED' also enables deletion of
  30838. truncations of the values that serve as arguments to bit-field
  30839. instructions.
  30840. If both types of instructions truncate the count (for shifts) and
  30841. position (for bit-field operations), or if no variable-position
  30842. bit-field instructions exist, you should define this macro.
  30843. However, on some machines, such as the 80386 and the 680x0,
  30844. truncation only applies to shift operations and not the (real or
  30845. pretended) bit-field operations. Define 'SHIFT_COUNT_TRUNCATED' to
  30846. be zero on such machines. Instead, add patterns to the 'md' file
  30847. that include the implied truncation of the shift instructions.
  30848. You need not define this macro if it would always have the value of
  30849. zero.
  30850. -- Target Hook: unsigned HOST_WIDE_INT TARGET_SHIFT_TRUNCATION_MASK
  30851. (machine_mode MODE)
  30852. This function describes how the standard shift patterns for MODE
  30853. deal with shifts by negative amounts or by more than the width of
  30854. the mode. *Note shift patterns::.
  30855. On many machines, the shift patterns will apply a mask M to the
  30856. shift count, meaning that a fixed-width shift of X by Y is
  30857. equivalent to an arbitrary-width shift of X by Y & M. If this is
  30858. true for mode MODE, the function should return M, otherwise it
  30859. should return 0. A return value of 0 indicates that no particular
  30860. behavior is guaranteed.
  30861. Note that, unlike 'SHIFT_COUNT_TRUNCATED', this function does _not_
  30862. apply to general shift rtxes; it applies only to instructions that
  30863. are generated by the named shift patterns.
  30864. The default implementation of this function returns
  30865. 'GET_MODE_BITSIZE (MODE) - 1' if 'SHIFT_COUNT_TRUNCATED' and 0
  30866. otherwise. This definition is always safe, but if
  30867. 'SHIFT_COUNT_TRUNCATED' is false, and some shift patterns
  30868. nevertheless truncate the shift count, you may get better code by
  30869. overriding it.
  30870. -- Macro: TRULY_NOOP_TRUNCATION (OUTPREC, INPREC)
  30871. A C expression which is nonzero if on this machine it is safe to
  30872. "convert" an integer of INPREC bits to one of OUTPREC bits (where
  30873. OUTPREC is smaller than INPREC) by merely operating on it as if it
  30874. had only OUTPREC bits.
  30875. On many machines, this expression can be 1.
  30876. When 'TRULY_NOOP_TRUNCATION' returns 1 for a pair of sizes for
  30877. modes for which 'MODES_TIEABLE_P' is 0, suboptimal code can result.
  30878. If this is the case, making 'TRULY_NOOP_TRUNCATION' return 0 in
  30879. such cases may improve things.
  30880. -- Target Hook: int TARGET_MODE_REP_EXTENDED (machine_mode MODE,
  30881. machine_mode REP_MODE)
  30882. The representation of an integral mode can be such that the values
  30883. are always extended to a wider integral mode. Return 'SIGN_EXTEND'
  30884. if values of MODE are represented in sign-extended form to
  30885. REP_MODE. Return 'UNKNOWN' otherwise. (Currently, none of the
  30886. targets use zero-extended representation this way so unlike
  30887. 'LOAD_EXTEND_OP', 'TARGET_MODE_REP_EXTENDED' is expected to return
  30888. either 'SIGN_EXTEND' or 'UNKNOWN'. Also no target extends MODE to
  30889. REP_MODE so that REP_MODE is not the next widest integral mode and
  30890. currently we take advantage of this fact.)
  30891. Similarly to 'LOAD_EXTEND_OP' you may return a non-'UNKNOWN' value
  30892. even if the extension is not performed on certain hard registers as
  30893. long as for the 'REGNO_REG_CLASS' of these hard registers
  30894. 'CANNOT_CHANGE_MODE_CLASS' returns nonzero.
  30895. Note that 'TARGET_MODE_REP_EXTENDED' and 'LOAD_EXTEND_OP' describe
  30896. two related properties. If you define 'TARGET_MODE_REP_EXTENDED
  30897. (mode, word_mode)' you probably also want to define 'LOAD_EXTEND_OP
  30898. (mode)' to return the same type of extension.
  30899. In order to enforce the representation of 'mode',
  30900. 'TRULY_NOOP_TRUNCATION' should return false when truncating to
  30901. 'mode'.
  30902. -- Macro: STORE_FLAG_VALUE
  30903. A C expression describing the value returned by a comparison
  30904. operator with an integral mode and stored by a store-flag
  30905. instruction ('cstoreMODE4') when the condition is true. This
  30906. description must apply to _all_ the 'cstoreMODE4' patterns and all
  30907. the comparison operators whose results have a 'MODE_INT' mode.
  30908. A value of 1 or -1 means that the instruction implementing the
  30909. comparison operator returns exactly 1 or -1 when the comparison is
  30910. true and 0 when the comparison is false. Otherwise, the value
  30911. indicates which bits of the result are guaranteed to be 1 when the
  30912. comparison is true. This value is interpreted in the mode of the
  30913. comparison operation, which is given by the mode of the first
  30914. operand in the 'cstoreMODE4' pattern. Either the low bit or the
  30915. sign bit of 'STORE_FLAG_VALUE' be on. Presently, only those bits
  30916. are used by the compiler.
  30917. If 'STORE_FLAG_VALUE' is neither 1 or -1, the compiler will
  30918. generate code that depends only on the specified bits. It can also
  30919. replace comparison operators with equivalent operations if they
  30920. cause the required bits to be set, even if the remaining bits are
  30921. undefined. For example, on a machine whose comparison operators
  30922. return an 'SImode' value and where 'STORE_FLAG_VALUE' is defined as
  30923. '0x80000000', saying that just the sign bit is relevant, the
  30924. expression
  30925. (ne:SI (and:SI X (const_int POWER-OF-2)) (const_int 0))
  30926. can be converted to
  30927. (ashift:SI X (const_int N))
  30928. where N is the appropriate shift count to move the bit being tested
  30929. into the sign bit.
  30930. There is no way to describe a machine that always sets the
  30931. low-order bit for a true value, but does not guarantee the value of
  30932. any other bits, but we do not know of any machine that has such an
  30933. instruction. If you are trying to port GCC to such a machine,
  30934. include an instruction to perform a logical-and of the result with
  30935. 1 in the pattern for the comparison operators and let us know at
  30936. <gcc@gcc.gnu.org>.
  30937. Often, a machine will have multiple instructions that obtain a
  30938. value from a comparison (or the condition codes). Here are rules
  30939. to guide the choice of value for 'STORE_FLAG_VALUE', and hence the
  30940. instructions to be used:
  30941. * Use the shortest sequence that yields a valid definition for
  30942. 'STORE_FLAG_VALUE'. It is more efficient for the compiler to
  30943. "normalize" the value (convert it to, e.g., 1 or 0) than for
  30944. the comparison operators to do so because there may be
  30945. opportunities to combine the normalization with other
  30946. operations.
  30947. * For equal-length sequences, use a value of 1 or -1, with -1
  30948. being slightly preferred on machines with expensive jumps and
  30949. 1 preferred on other machines.
  30950. * As a second choice, choose a value of '0x80000001' if
  30951. instructions exist that set both the sign and low-order bits
  30952. but do not define the others.
  30953. * Otherwise, use a value of '0x80000000'.
  30954. Many machines can produce both the value chosen for
  30955. 'STORE_FLAG_VALUE' and its negation in the same number of
  30956. instructions. On those machines, you should also define a pattern
  30957. for those cases, e.g., one matching
  30958. (set A (neg:M (ne:M B C)))
  30959. Some machines can also perform 'and' or 'plus' operations on
  30960. condition code values with less instructions than the corresponding
  30961. 'cstoreMODE4' insn followed by 'and' or 'plus'. On those machines,
  30962. define the appropriate patterns. Use the names 'incscc' and
  30963. 'decscc', respectively, for the patterns which perform 'plus' or
  30964. 'minus' operations on condition code values. See 'rs6000.md' for
  30965. some examples. The GNU Superoptimizer can be used to find such
  30966. instruction sequences on other machines.
  30967. If this macro is not defined, the default value, 1, is used. You
  30968. need not define 'STORE_FLAG_VALUE' if the machine has no store-flag
  30969. instructions, or if the value generated by these instructions is 1.
  30970. -- Macro: FLOAT_STORE_FLAG_VALUE (MODE)
  30971. A C expression that gives a nonzero 'REAL_VALUE_TYPE' value that is
  30972. returned when comparison operators with floating-point results are
  30973. true. Define this macro on machines that have comparison
  30974. operations that return floating-point values. If there are no such
  30975. operations, do not define this macro.
  30976. -- Macro: VECTOR_STORE_FLAG_VALUE (MODE)
  30977. A C expression that gives a rtx representing the nonzero true
  30978. element for vector comparisons. The returned rtx should be valid
  30979. for the inner mode of MODE which is guaranteed to be a vector mode.
  30980. Define this macro on machines that have vector comparison
  30981. operations that return a vector result. If there are no such
  30982. operations, do not define this macro. Typically, this macro is
  30983. defined as 'const1_rtx' or 'constm1_rtx'. This macro may return
  30984. 'NULL_RTX' to prevent the compiler optimizing such vector
  30985. comparison operations for the given mode.
  30986. -- Macro: CLZ_DEFINED_VALUE_AT_ZERO (MODE, VALUE)
  30987. -- Macro: CTZ_DEFINED_VALUE_AT_ZERO (MODE, VALUE)
  30988. A C expression that indicates whether the architecture defines a
  30989. value for 'clz' or 'ctz' with a zero operand. A result of '0'
  30990. indicates the value is undefined. If the value is defined for only
  30991. the RTL expression, the macro should evaluate to '1'; if the value
  30992. applies also to the corresponding optab entry (which is normally
  30993. the case if it expands directly into the corresponding RTL), then
  30994. the macro should evaluate to '2'. In the cases where the value is
  30995. defined, VALUE should be set to this value.
  30996. If this macro is not defined, the value of 'clz' or 'ctz' at zero
  30997. is assumed to be undefined.
  30998. This macro must be defined if the target's expansion for 'ffs'
  30999. relies on a particular value to get correct results. Otherwise it
  31000. is not necessary, though it may be used to optimize some corner
  31001. cases, and to provide a default expansion for the 'ffs' optab.
  31002. Note that regardless of this macro the "definedness" of 'clz' and
  31003. 'ctz' at zero do _not_ extend to the builtin functions visible to
  31004. the user. Thus one may be free to adjust the value at will to
  31005. match the target expansion of these operations without fear of
  31006. breaking the API.
  31007. -- Macro: Pmode
  31008. An alias for the machine mode for pointers. On most machines,
  31009. define this to be the integer mode corresponding to the width of a
  31010. hardware pointer; 'SImode' on 32-bit machine or 'DImode' on 64-bit
  31011. machines. On some machines you must define this to be one of the
  31012. partial integer modes, such as 'PSImode'.
  31013. The width of 'Pmode' must be at least as large as the value of
  31014. 'POINTER_SIZE'. If it is not equal, you must define the macro
  31015. 'POINTERS_EXTEND_UNSIGNED' to specify how pointers are extended to
  31016. 'Pmode'.
  31017. -- Macro: FUNCTION_MODE
  31018. An alias for the machine mode used for memory references to
  31019. functions being called, in 'call' RTL expressions. On most CISC
  31020. machines, where an instruction can begin at any byte address, this
  31021. should be 'QImode'. On most RISC machines, where all instructions
  31022. have fixed size and alignment, this should be a mode with the same
  31023. size and alignment as the machine instruction words - typically
  31024. 'SImode' or 'HImode'.
  31025. -- Macro: STDC_0_IN_SYSTEM_HEADERS
  31026. In normal operation, the preprocessor expands '__STDC__' to the
  31027. constant 1, to signify that GCC conforms to ISO Standard C. On
  31028. some hosts, like Solaris, the system compiler uses a different
  31029. convention, where '__STDC__' is normally 0, but is 1 if the user
  31030. specifies strict conformance to the C Standard.
  31031. Defining 'STDC_0_IN_SYSTEM_HEADERS' makes GNU CPP follows the host
  31032. convention when processing system header files, but when processing
  31033. user files '__STDC__' will always expand to 1.
  31034. -- C Target Hook: const char * TARGET_C_PREINCLUDE (void)
  31035. Define this hook to return the name of a header file to be included
  31036. at the start of all compilations, as if it had been included with
  31037. '#include <FILE>'. If this hook returns 'NULL', or is not defined,
  31038. or the header is not found, or if the user specifies
  31039. '-ffreestanding' or '-nostdinc', no header is included.
  31040. This hook can be used together with a header provided by the system
  31041. C library to implement ISO C requirements for certain macros to be
  31042. predefined that describe properties of the whole implementation
  31043. rather than just the compiler.
  31044. -- C Target Hook: bool TARGET_CXX_IMPLICIT_EXTERN_C (const char*)
  31045. Define this hook to add target-specific C++ implicit extern C
  31046. functions. If this function returns true for the name of a
  31047. file-scope function, that function implicitly gets extern "C"
  31048. linkage rather than whatever language linkage the declaration would
  31049. normally have. An example of such function is WinMain on Win32
  31050. targets.
  31051. -- Macro: NO_IMPLICIT_EXTERN_C
  31052. Define this macro if the system header files support C++ as well as
  31053. C. This macro inhibits the usual method of using system header
  31054. files in C++, which is to pretend that the file's contents are
  31055. enclosed in 'extern "C" {...}'.
  31056. -- Macro: REGISTER_TARGET_PRAGMAS ()
  31057. Define this macro if you want to implement any target-specific
  31058. pragmas. If defined, it is a C expression which makes a series of
  31059. calls to 'c_register_pragma' or 'c_register_pragma_with_expansion'
  31060. for each pragma. The macro may also do any setup required for the
  31061. pragmas.
  31062. The primary reason to define this macro is to provide compatibility
  31063. with other compilers for the same target. In general, we
  31064. discourage definition of target-specific pragmas for GCC.
  31065. If the pragma can be implemented by attributes then you should
  31066. consider defining the target hook 'TARGET_INSERT_ATTRIBUTES' as
  31067. well.
  31068. Preprocessor macros that appear on pragma lines are not expanded.
  31069. All '#pragma' directives that do not match any registered pragma
  31070. are silently ignored, unless the user specifies
  31071. '-Wunknown-pragmas'.
  31072. -- Function: void c_register_pragma (const char *SPACE, const char
  31073. *NAME, void (*CALLBACK) (struct cpp_reader *))
  31074. -- Function: void c_register_pragma_with_expansion (const char *SPACE,
  31075. const char *NAME, void (*CALLBACK) (struct cpp_reader *))
  31076. Each call to 'c_register_pragma' or
  31077. 'c_register_pragma_with_expansion' establishes one pragma. The
  31078. CALLBACK routine will be called when the preprocessor encounters a
  31079. pragma of the form
  31080. #pragma [SPACE] NAME ...
  31081. SPACE is the case-sensitive namespace of the pragma, or 'NULL' to
  31082. put the pragma in the global namespace. The callback routine
  31083. receives PFILE as its first argument, which can be passed on to
  31084. cpplib's functions if necessary. You can lex tokens after the NAME
  31085. by calling 'pragma_lex'. Tokens that are not read by the callback
  31086. will be silently ignored. The end of the line is indicated by a
  31087. token of type 'CPP_EOF'. Macro expansion occurs on the arguments
  31088. of pragmas registered with 'c_register_pragma_with_expansion' but
  31089. not on the arguments of pragmas registered with
  31090. 'c_register_pragma'.
  31091. Note that the use of 'pragma_lex' is specific to the C and C++
  31092. compilers. It will not work in the Java or Fortran compilers, or
  31093. any other language compilers for that matter. Thus if 'pragma_lex'
  31094. is going to be called from target-specific code, it must only be
  31095. done so when building the C and C++ compilers. This can be done by
  31096. defining the variables 'c_target_objs' and 'cxx_target_objs' in the
  31097. target entry in the 'config.gcc' file. These variables should name
  31098. the target-specific, language-specific object file which contains
  31099. the code that uses 'pragma_lex'. Note it will also be necessary to
  31100. add a rule to the makefile fragment pointed to by 'tmake_file' that
  31101. shows how to build this object file.
  31102. -- Macro: HANDLE_PRAGMA_PACK_WITH_EXPANSION
  31103. Define this macro if macros should be expanded in the arguments of
  31104. '#pragma pack'.
  31105. -- Macro: TARGET_DEFAULT_PACK_STRUCT
  31106. If your target requires a structure packing default other than 0
  31107. (meaning the machine default), define this macro to the necessary
  31108. value (in bytes). This must be a value that would also be valid to
  31109. use with '#pragma pack()' (that is, a small power of two).
  31110. -- Macro: DOLLARS_IN_IDENTIFIERS
  31111. Define this macro to control use of the character '$' in identifier
  31112. names for the C family of languages. 0 means '$' is not allowed by
  31113. default; 1 means it is allowed. 1 is the default; there is no need
  31114. to define this macro in that case.
  31115. -- Macro: INSN_SETS_ARE_DELAYED (INSN)
  31116. Define this macro as a C expression that is nonzero if it is safe
  31117. for the delay slot scheduler to place instructions in the delay
  31118. slot of INSN, even if they appear to use a resource set or
  31119. clobbered in INSN. INSN is always a 'jump_insn' or an 'insn'; GCC
  31120. knows that every 'call_insn' has this behavior. On machines where
  31121. some 'insn' or 'jump_insn' is really a function call and hence has
  31122. this behavior, you should define this macro.
  31123. You need not define this macro if it would always return zero.
  31124. -- Macro: INSN_REFERENCES_ARE_DELAYED (INSN)
  31125. Define this macro as a C expression that is nonzero if it is safe
  31126. for the delay slot scheduler to place instructions in the delay
  31127. slot of INSN, even if they appear to set or clobber a resource
  31128. referenced in INSN. INSN is always a 'jump_insn' or an 'insn'. On
  31129. machines where some 'insn' or 'jump_insn' is really a function call
  31130. and its operands are registers whose use is actually in the
  31131. subroutine it calls, you should define this macro. Doing so allows
  31132. the delay slot scheduler to move instructions which copy arguments
  31133. into the argument registers into the delay slot of INSN.
  31134. You need not define this macro if it would always return zero.
  31135. -- Macro: MULTIPLE_SYMBOL_SPACES
  31136. Define this macro as a C expression that is nonzero if, in some
  31137. cases, global symbols from one translation unit may not be bound to
  31138. undefined symbols in another translation unit without user
  31139. intervention. For instance, under Microsoft Windows symbols must
  31140. be explicitly imported from shared libraries (DLLs).
  31141. You need not define this macro if it would always evaluate to zero.
  31142. -- Target Hook: rtx_insn * TARGET_MD_ASM_ADJUST (vec<rtx>& OUTPUTS,
  31143. vec<rtx>& INPUTS, vec<const char *>& CONSTRAINTS, vec<rtx>&
  31144. CLOBBERS, HARD_REG_SET& CLOBBERED_REGS)
  31145. This target hook may add "clobbers" to CLOBBERS and CLOBBERED_REGS
  31146. for any hard regs the port wishes to automatically clobber for an
  31147. asm. The OUTPUTS and INPUTS may be inspected to avoid clobbering a
  31148. register that is already used by the asm.
  31149. It may modify the OUTPUTS, INPUTS, and CONSTRAINTS as necessary for
  31150. other pre-processing. In this case the return value is a sequence
  31151. of insns to emit after the asm.
  31152. -- Macro: MATH_LIBRARY
  31153. Define this macro as a C string constant for the linker argument to
  31154. link in the system math library, minus the initial '"-l"', or '""'
  31155. if the target does not have a separate math library.
  31156. You need only define this macro if the default of '"m"' is wrong.
  31157. -- Macro: LIBRARY_PATH_ENV
  31158. Define this macro as a C string constant for the environment
  31159. variable that specifies where the linker should look for libraries.
  31160. You need only define this macro if the default of '"LIBRARY_PATH"'
  31161. is wrong.
  31162. -- Macro: TARGET_POSIX_IO
  31163. Define this macro if the target supports the following POSIX file
  31164. functions, access, mkdir and file locking with fcntl / F_SETLKW.
  31165. Defining 'TARGET_POSIX_IO' will enable the test coverage code to
  31166. use file locking when exiting a program, which avoids race
  31167. conditions if the program has forked. It will also create
  31168. directories at run-time for cross-profiling.
  31169. -- Macro: MAX_CONDITIONAL_EXECUTE
  31170. A C expression for the maximum number of instructions to execute
  31171. via conditional execution instructions instead of a branch. A
  31172. value of 'BRANCH_COST'+1 is the default if the machine does not use
  31173. cc0, and 1 if it does use cc0.
  31174. -- Macro: IFCVT_MODIFY_TESTS (CE_INFO, TRUE_EXPR, FALSE_EXPR)
  31175. Used if the target needs to perform machine-dependent modifications
  31176. on the conditionals used for turning basic blocks into
  31177. conditionally executed code. CE_INFO points to a data structure,
  31178. 'struct ce_if_block', which contains information about the
  31179. currently processed blocks. TRUE_EXPR and FALSE_EXPR are the tests
  31180. that are used for converting the then-block and the else-block,
  31181. respectively. Set either TRUE_EXPR or FALSE_EXPR to a null pointer
  31182. if the tests cannot be converted.
  31183. -- Macro: IFCVT_MODIFY_MULTIPLE_TESTS (CE_INFO, BB, TRUE_EXPR,
  31184. FALSE_EXPR)
  31185. Like 'IFCVT_MODIFY_TESTS', but used when converting more
  31186. complicated if-statements into conditions combined by 'and' and
  31187. 'or' operations. BB contains the basic block that contains the
  31188. test that is currently being processed and about to be turned into
  31189. a condition.
  31190. -- Macro: IFCVT_MODIFY_INSN (CE_INFO, PATTERN, INSN)
  31191. A C expression to modify the PATTERN of an INSN that is to be
  31192. converted to conditional execution format. CE_INFO points to a
  31193. data structure, 'struct ce_if_block', which contains information
  31194. about the currently processed blocks.
  31195. -- Macro: IFCVT_MODIFY_FINAL (CE_INFO)
  31196. A C expression to perform any final machine dependent modifications
  31197. in converting code to conditional execution. The involved basic
  31198. blocks can be found in the 'struct ce_if_block' structure that is
  31199. pointed to by CE_INFO.
  31200. -- Macro: IFCVT_MODIFY_CANCEL (CE_INFO)
  31201. A C expression to cancel any machine dependent modifications in
  31202. converting code to conditional execution. The involved basic
  31203. blocks can be found in the 'struct ce_if_block' structure that is
  31204. pointed to by CE_INFO.
  31205. -- Macro: IFCVT_MACHDEP_INIT (CE_INFO)
  31206. A C expression to initialize any machine specific data for
  31207. if-conversion of the if-block in the 'struct ce_if_block' structure
  31208. that is pointed to by CE_INFO.
  31209. -- Target Hook: void TARGET_MACHINE_DEPENDENT_REORG (void)
  31210. If non-null, this hook performs a target-specific pass over the
  31211. instruction stream. The compiler will run it at all optimization
  31212. levels, just before the point at which it normally does
  31213. delayed-branch scheduling.
  31214. The exact purpose of the hook varies from target to target. Some
  31215. use it to do transformations that are necessary for correctness,
  31216. such as laying out in-function constant pools or avoiding hardware
  31217. hazards. Others use it as an opportunity to do some
  31218. machine-dependent optimizations.
  31219. You need not implement the hook if it has nothing to do. The
  31220. default definition is null.
  31221. -- Target Hook: void TARGET_INIT_BUILTINS (void)
  31222. Define this hook if you have any machine-specific built-in
  31223. functions that need to be defined. It should be a function that
  31224. performs the necessary setup.
  31225. Machine specific built-in functions can be useful to expand special
  31226. machine instructions that would otherwise not normally be generated
  31227. because they have no equivalent in the source language (for
  31228. example, SIMD vector instructions or prefetch instructions).
  31229. To create a built-in function, call the function
  31230. 'lang_hooks.builtin_function' which is defined by the language
  31231. front end. You can use any type nodes set up by
  31232. 'build_common_tree_nodes'; only language front ends that use those
  31233. two functions will call 'TARGET_INIT_BUILTINS'.
  31234. -- Target Hook: tree TARGET_BUILTIN_DECL (unsigned CODE, bool
  31235. INITIALIZE_P)
  31236. Define this hook if you have any machine-specific built-in
  31237. functions that need to be defined. It should be a function that
  31238. returns the builtin function declaration for the builtin function
  31239. code CODE. If there is no such builtin and it cannot be
  31240. initialized at this time if INITIALIZE_P is true the function
  31241. should return 'NULL_TREE'. If CODE is out of range the function
  31242. should return 'error_mark_node'.
  31243. -- Target Hook: rtx TARGET_EXPAND_BUILTIN (tree EXP, rtx TARGET, rtx
  31244. SUBTARGET, machine_mode MODE, int IGNORE)
  31245. Expand a call to a machine specific built-in function that was set
  31246. up by 'TARGET_INIT_BUILTINS'. EXP is the expression for the
  31247. function call; the result should go to TARGET if that is
  31248. convenient, and have mode MODE if that is convenient. SUBTARGET
  31249. may be used as the target for computing one of EXP's operands.
  31250. IGNORE is nonzero if the value is to be ignored. This function
  31251. should return the result of the call to the built-in function.
  31252. -- Target Hook: tree TARGET_BUILTIN_CHKP_FUNCTION (unsigned FCODE)
  31253. This hook allows target to redefine built-in functions used by
  31254. Pointer Bounds Checker for code instrumentation. Hook should
  31255. return fndecl of function implementing generic builtin whose code
  31256. is passed in FCODE. Currently following built-in functions are
  31257. obtained using this hook:
  31258. -- Built-in Function: __bounds_type __chkp_bndmk (const void *LB,
  31259. size_t SIZE)
  31260. Function code - BUILT_IN_CHKP_BNDMK. This built-in function is
  31261. used by Pointer Bounds Checker to create bound values. LB
  31262. holds low bound of the resulting bounds. SIZE holds size of
  31263. created bounds.
  31264. -- Built-in Function: void __chkp_bndstx (const void *PTR,
  31265. __bounds_type B, const void **LOC)
  31266. Function code - 'BUILT_IN_CHKP_BNDSTX'. This built-in
  31267. function is used by Pointer Bounds Checker to store bounds B
  31268. for pointer PTR when PTR is stored by address LOC.
  31269. -- Built-in Function: __bounds_type __chkp_bndldx (const void
  31270. **LOC, const void *PTR)
  31271. Function code - 'BUILT_IN_CHKP_BNDLDX'. This built-in
  31272. function is used by Pointer Bounds Checker to get bounds of
  31273. pointer PTR loaded by address LOC.
  31274. -- Built-in Function: void __chkp_bndcl (const void *PTR,
  31275. __bounds_type B)
  31276. Function code - 'BUILT_IN_CHKP_BNDCL'. This built-in function
  31277. is used by Pointer Bounds Checker to perform check for pointer
  31278. PTR against lower bound of bounds B.
  31279. -- Built-in Function: void __chkp_bndcu (const void *PTR,
  31280. __bounds_type B)
  31281. Function code - 'BUILT_IN_CHKP_BNDCU'. This built-in function
  31282. is used by Pointer Bounds Checker to perform check for pointer
  31283. PTR against upper bound of bounds B.
  31284. -- Built-in Function: __bounds_type __chkp_bndret (void *PTR)
  31285. Function code - 'BUILT_IN_CHKP_BNDRET'. This built-in
  31286. function is used by Pointer Bounds Checker to obtain bounds
  31287. returned by a call statement. PTR passed to built-in is
  31288. 'SSA_NAME' returned by the call.
  31289. -- Built-in Function: __bounds_type __chkp_intersect
  31290. (__bounds_type B1, __bounds_type B2)
  31291. Function code - 'BUILT_IN_CHKP_INTERSECT'. This built-in
  31292. function returns intersection of bounds B1 and B2.
  31293. -- Built-in Function: __bounds_type __chkp_narrow (const void
  31294. *PTR, __bounds_type B, size_t S)
  31295. Function code - 'BUILT_IN_CHKP_NARROW'. This built-in
  31296. function returns intersection of bounds B and [PTR, PTR + S -
  31297. '1'].
  31298. -- Built-in Function: size_t __chkp_sizeof (const void *PTR)
  31299. Function code - 'BUILT_IN_CHKP_SIZEOF'. This built-in
  31300. function returns size of object referenced by PTR. PTR is
  31301. always 'ADDR_EXPR' of 'VAR_DECL'. This built-in is used by
  31302. Pointer Bounds Checker when bounds of object cannot be
  31303. computed statically (e.g. object has incomplete type).
  31304. -- Built-in Function: const void *__chkp_extract_lower
  31305. (__bounds_type B)
  31306. Function code - 'BUILT_IN_CHKP_EXTRACT_LOWER'. This built-in
  31307. function returns lower bound of bounds B.
  31308. -- Built-in Function: const void *__chkp_extract_upper
  31309. (__bounds_type B)
  31310. Function code - 'BUILT_IN_CHKP_EXTRACT_UPPER'. This built-in
  31311. function returns upper bound of bounds B.
  31312. -- Target Hook: tree TARGET_CHKP_BOUND_TYPE (void)
  31313. Return type to be used for bounds
  31314. -- Target Hook: enum machine_mode TARGET_CHKP_BOUND_MODE (void)
  31315. Return mode to be used for bounds.
  31316. -- Target Hook: tree TARGET_CHKP_MAKE_BOUNDS_CONSTANT (HOST_WIDE_INT
  31317. LB, HOST_WIDE_INT UB)
  31318. Return constant used to statically initialize constant bounds with
  31319. specified lower bound LB and upper bounds UB.
  31320. -- Target Hook: int TARGET_CHKP_INITIALIZE_BOUNDS (tree VAR, tree LB,
  31321. tree UB, tree *STMTS)
  31322. Generate a list of statements STMTS to initialize pointer bounds
  31323. variable VAR with bounds LB and UB. Return the number of generated
  31324. statements.
  31325. -- Target Hook: tree TARGET_RESOLVE_OVERLOADED_BUILTIN (unsigned int
  31326. LOC, tree FNDECL, void *ARGLIST)
  31327. Select a replacement for a machine specific built-in function that
  31328. was set up by 'TARGET_INIT_BUILTINS'. This is done _before_
  31329. regular type checking, and so allows the target to implement a
  31330. crude form of function overloading. FNDECL is the declaration of
  31331. the built-in function. ARGLIST is the list of arguments passed to
  31332. the built-in function. The result is a complete expression that
  31333. implements the operation, usually another 'CALL_EXPR'. ARGLIST
  31334. really has type 'VEC(tree,gc)*'
  31335. -- Target Hook: tree TARGET_FOLD_BUILTIN (tree FNDECL, int N_ARGS, tree
  31336. *ARGP, bool IGNORE)
  31337. Fold a call to a machine specific built-in function that was set up
  31338. by 'TARGET_INIT_BUILTINS'. FNDECL is the declaration of the
  31339. built-in function. N_ARGS is the number of arguments passed to the
  31340. function; the arguments themselves are pointed to by ARGP. The
  31341. result is another tree, valid for both GIMPLE and GENERIC,
  31342. containing a simplified expression for the call's result. If
  31343. IGNORE is true the value will be ignored.
  31344. -- Target Hook: bool TARGET_GIMPLE_FOLD_BUILTIN (gimple_stmt_iterator
  31345. *GSI)
  31346. Fold a call to a machine specific built-in function that was set up
  31347. by 'TARGET_INIT_BUILTINS'. GSI points to the gimple statement
  31348. holding the function call. Returns true if any change was made to
  31349. the GIMPLE stream.
  31350. -- Target Hook: int TARGET_COMPARE_VERSION_PRIORITY (tree DECL1, tree
  31351. DECL2)
  31352. This hook is used to compare the target attributes in two functions
  31353. to determine which function's features get higher priority. This
  31354. is used during function multi-versioning to figure out the order in
  31355. which two versions must be dispatched. A function version with a
  31356. higher priority is checked for dispatching earlier. DECL1 and
  31357. DECL2 are the two function decls that will be compared.
  31358. -- Target Hook: tree TARGET_GET_FUNCTION_VERSIONS_DISPATCHER (void
  31359. *DECL)
  31360. This hook is used to get the dispatcher function for a set of
  31361. function versions. The dispatcher function is called to invoke the
  31362. right function version at run-time. DECL is one version from a set
  31363. of semantically identical versions.
  31364. -- Target Hook: tree TARGET_GENERATE_VERSION_DISPATCHER_BODY (void
  31365. *ARG)
  31366. This hook is used to generate the dispatcher logic to invoke the
  31367. right function version at run-time for a given set of function
  31368. versions. ARG points to the callgraph node of the dispatcher
  31369. function whose body must be generated.
  31370. -- Target Hook: bool TARGET_CAN_USE_DOLOOP_P (const widest_int
  31371. &ITERATIONS, const widest_int &ITERATIONS_MAX, unsigned int
  31372. LOOP_DEPTH, bool ENTERED_AT_TOP)
  31373. Return true if it is possible to use low-overhead loops
  31374. ('doloop_end' and 'doloop_begin') for a particular loop.
  31375. ITERATIONS gives the exact number of iterations, or 0 if not known.
  31376. ITERATIONS_MAX gives the maximum number of iterations, or 0 if not
  31377. known. LOOP_DEPTH is the nesting depth of the loop, with 1 for
  31378. innermost loops, 2 for loops that contain innermost loops, and so
  31379. on. ENTERED_AT_TOP is true if the loop is only entered from the
  31380. top.
  31381. This hook is only used if 'doloop_end' is available. The default
  31382. implementation returns true. You can use
  31383. 'can_use_doloop_if_innermost' if the loop must be the innermost,
  31384. and if there are no other restrictions.
  31385. -- Target Hook: const char * TARGET_INVALID_WITHIN_DOLOOP (const
  31386. rtx_insn *INSN)
  31387. Take an instruction in INSN and return NULL if it is valid within a
  31388. low-overhead loop, otherwise return a string explaining why doloop
  31389. could not be applied.
  31390. Many targets use special registers for low-overhead looping. For
  31391. any instruction that clobbers these this function should return a
  31392. string indicating the reason why the doloop could not be applied.
  31393. By default, the RTL loop optimizer does not use a present doloop
  31394. pattern for loops containing function calls or branch on table
  31395. instructions.
  31396. -- Target Hook: bool TARGET_LEGITIMATE_COMBINED_INSN (rtx_insn *INSN)
  31397. Take an instruction in INSN and return 'false' if the instruction
  31398. is not appropriate as a combination of two or more instructions.
  31399. The default is to accept all instructions.
  31400. -- Target Hook: bool TARGET_CAN_FOLLOW_JUMP (const rtx_insn *FOLLOWER,
  31401. const rtx_insn *FOLLOWEE)
  31402. FOLLOWER and FOLLOWEE are JUMP_INSN instructions; return true if
  31403. FOLLOWER may be modified to follow FOLLOWEE; false, if it can't.
  31404. For example, on some targets, certain kinds of branches can't be
  31405. made to follow through a hot/cold partitioning.
  31406. -- Target Hook: bool TARGET_COMMUTATIVE_P (const_rtx X, int OUTER_CODE)
  31407. This target hook returns 'true' if X is considered to be
  31408. commutative. Usually, this is just COMMUTATIVE_P (X), but the HP
  31409. PA doesn't consider PLUS to be commutative inside a MEM.
  31410. OUTER_CODE is the rtx code of the enclosing rtl, if known,
  31411. otherwise it is UNKNOWN.
  31412. -- Target Hook: rtx TARGET_ALLOCATE_INITIAL_VALUE (rtx HARD_REG)
  31413. When the initial value of a hard register has been copied in a
  31414. pseudo register, it is often not necessary to actually allocate
  31415. another register to this pseudo register, because the original hard
  31416. register or a stack slot it has been saved into can be used.
  31417. 'TARGET_ALLOCATE_INITIAL_VALUE' is called at the start of register
  31418. allocation once for each hard register that had its initial value
  31419. copied by using 'get_func_hard_reg_initial_val' or
  31420. 'get_hard_reg_initial_val'. Possible values are 'NULL_RTX', if you
  31421. don't want to do any special allocation, a 'REG' rtx--that would
  31422. typically be the hard register itself, if it is known not to be
  31423. clobbered--or a 'MEM'. If you are returning a 'MEM', this is only
  31424. a hint for the allocator; it might decide to use another register
  31425. anyways. You may use 'current_function_is_leaf' or 'REG_N_SETS' in
  31426. the hook to determine if the hard register in question will not be
  31427. clobbered. The default value of this hook is 'NULL', which
  31428. disables any special allocation.
  31429. -- Target Hook: int TARGET_UNSPEC_MAY_TRAP_P (const_rtx X, unsigned
  31430. FLAGS)
  31431. This target hook returns nonzero if X, an 'unspec' or
  31432. 'unspec_volatile' operation, might cause a trap. Targets can use
  31433. this hook to enhance precision of analysis for 'unspec' and
  31434. 'unspec_volatile' operations. You may call 'may_trap_p_1' to
  31435. analyze inner elements of X in which case FLAGS should be passed
  31436. along.
  31437. -- Target Hook: void TARGET_SET_CURRENT_FUNCTION (tree DECL)
  31438. The compiler invokes this hook whenever it changes its current
  31439. function context ('cfun'). You can define this function if the
  31440. back end needs to perform any initialization or reset actions on a
  31441. per-function basis. For example, it may be used to implement
  31442. function attributes that affect register usage or code generation
  31443. patterns. The argument DECL is the declaration for the new
  31444. function context, and may be null to indicate that the compiler has
  31445. left a function context and is returning to processing at the top
  31446. level. The default hook function does nothing.
  31447. GCC sets 'cfun' to a dummy function context during initialization
  31448. of some parts of the back end. The hook function is not invoked in
  31449. this situation; you need not worry about the hook being invoked
  31450. recursively, or when the back end is in a partially-initialized
  31451. state. 'cfun' might be 'NULL' to indicate processing at top level,
  31452. outside of any function scope.
  31453. -- Macro: TARGET_OBJECT_SUFFIX
  31454. Define this macro to be a C string representing the suffix for
  31455. object files on your target machine. If you do not define this
  31456. macro, GCC will use '.o' as the suffix for object files.
  31457. -- Macro: TARGET_EXECUTABLE_SUFFIX
  31458. Define this macro to be a C string representing the suffix to be
  31459. automatically added to executable files on your target machine. If
  31460. you do not define this macro, GCC will use the null string as the
  31461. suffix for executable files.
  31462. -- Macro: COLLECT_EXPORT_LIST
  31463. If defined, 'collect2' will scan the individual object files
  31464. specified on its command line and create an export list for the
  31465. linker. Define this macro for systems like AIX, where the linker
  31466. discards object files that are not referenced from 'main' and uses
  31467. export lists.
  31468. -- Macro: MODIFY_JNI_METHOD_CALL (MDECL)
  31469. Define this macro to a C expression representing a variant of the
  31470. method call MDECL, if Java Native Interface (JNI) methods must be
  31471. invoked differently from other methods on your target. For
  31472. example, on 32-bit Microsoft Windows, JNI methods must be invoked
  31473. using the 'stdcall' calling convention and this macro is then
  31474. defined as this expression:
  31475. build_type_attribute_variant (MDECL,
  31476. build_tree_list
  31477. (get_identifier ("stdcall"),
  31478. NULL))
  31479. -- Target Hook: bool TARGET_CANNOT_MODIFY_JUMPS_P (void)
  31480. This target hook returns 'true' past the point in which new jump
  31481. instructions could be created. On machines that require a register
  31482. for every jump such as the SHmedia ISA of SH5, this point would
  31483. typically be reload, so this target hook should be defined to a
  31484. function such as:
  31485. static bool
  31486. cannot_modify_jumps_past_reload_p ()
  31487. {
  31488. return (reload_completed || reload_in_progress);
  31489. }
  31490. -- Target Hook: reg_class_t TARGET_BRANCH_TARGET_REGISTER_CLASS (void)
  31491. This target hook returns a register class for which branch target
  31492. register optimizations should be applied. All registers in this
  31493. class should be usable interchangeably. After reload, registers in
  31494. this class will be re-allocated and loads will be hoisted out of
  31495. loops and be subjected to inter-block scheduling.
  31496. -- Target Hook: bool TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED (bool
  31497. AFTER_PROLOGUE_EPILOGUE_GEN)
  31498. Branch target register optimization will by default exclude
  31499. callee-saved registers that are not already live during the current
  31500. function; if this target hook returns true, they will be included.
  31501. The target code must than make sure that all target registers in
  31502. the class returned by 'TARGET_BRANCH_TARGET_REGISTER_CLASS' that
  31503. might need saving are saved. AFTER_PROLOGUE_EPILOGUE_GEN indicates
  31504. if prologues and epilogues have already been generated. Note, even
  31505. if you only return true when AFTER_PROLOGUE_EPILOGUE_GEN is false,
  31506. you still are likely to have to make special provisions in
  31507. 'INITIAL_ELIMINATION_OFFSET' to reserve space for caller-saved
  31508. target registers.
  31509. -- Target Hook: bool TARGET_HAVE_CONDITIONAL_EXECUTION (void)
  31510. This target hook returns true if the target supports conditional
  31511. execution. This target hook is required only when the target has
  31512. several different modes and they have different conditional
  31513. execution capability, such as ARM.
  31514. -- Target Hook: rtx TARGET_GEN_CCMP_FIRST (rtx_insn **PREP_SEQ,
  31515. rtx_insn **GEN_SEQ, int CODE, tree OP0, tree OP1)
  31516. This function prepares to emit a comparison insn for the first
  31517. compare in a sequence of conditional comparisions. It returns an
  31518. appropriate comparison with 'CC' for passing to 'gen_ccmp_next' or
  31519. 'cbranch_optab'. The insns to prepare the compare are saved in
  31520. PREP_SEQ and the compare insns are saved in GEN_SEQ. They will be
  31521. emitted when all the compares in the the conditional comparision
  31522. are generated without error. CODE is the 'rtx_code' of the compare
  31523. for OP0 and OP1.
  31524. -- Target Hook: rtx TARGET_GEN_CCMP_NEXT (rtx_insn **PREP_SEQ, rtx_insn
  31525. **GEN_SEQ, rtx PREV, int CMP_CODE, tree OP0, tree OP1, int
  31526. BIT_CODE)
  31527. This function prepares to emit a conditional comparison within a
  31528. sequence of conditional comparisons. It returns an appropriate
  31529. comparison with 'CC' for passing to 'gen_ccmp_next' or
  31530. 'cbranch_optab'. The insns to prepare the compare are saved in
  31531. PREP_SEQ and the compare insns are saved in GEN_SEQ. They will be
  31532. emitted when all the compares in the conditional comparision are
  31533. generated without error. The PREV expression is the result of a
  31534. prior call to 'gen_ccmp_first' or 'gen_ccmp_next'. It may return
  31535. 'NULL' if the combination of PREV and this comparison is not
  31536. supported, otherwise the result must be appropriate for passing to
  31537. 'gen_ccmp_next' or 'cbranch_optab'. CODE is the 'rtx_code' of the
  31538. compare for OP0 and OP1. BIT_CODE is 'AND' or 'IOR', which is the
  31539. op on the compares.
  31540. -- Target Hook: unsigned TARGET_LOOP_UNROLL_ADJUST (unsigned NUNROLL,
  31541. struct loop *LOOP)
  31542. This target hook returns a new value for the number of times LOOP
  31543. should be unrolled. The parameter NUNROLL is the number of times
  31544. the loop is to be unrolled. The parameter LOOP is a pointer to the
  31545. loop, which is going to be checked for unrolling. This target hook
  31546. is required only when the target has special constraints like
  31547. maximum number of memory accesses.
  31548. -- Macro: POWI_MAX_MULTS
  31549. If defined, this macro is interpreted as a signed integer C
  31550. expression that specifies the maximum number of floating point
  31551. multiplications that should be emitted when expanding
  31552. exponentiation by an integer constant inline. When this value is
  31553. defined, exponentiation requiring more than this number of
  31554. multiplications is implemented by calling the system library's
  31555. 'pow', 'powf' or 'powl' routines. The default value places no
  31556. upper bound on the multiplication count.
  31557. -- Macro: void TARGET_EXTRA_INCLUDES (const char *SYSROOT, const char
  31558. *IPREFIX, int STDINC)
  31559. This target hook should register any extra include files for the
  31560. target. The parameter STDINC indicates if normal include files are
  31561. present. The parameter SYSROOT is the system root directory. The
  31562. parameter IPREFIX is the prefix for the gcc directory.
  31563. -- Macro: void TARGET_EXTRA_PRE_INCLUDES (const char *SYSROOT, const
  31564. char *IPREFIX, int STDINC)
  31565. This target hook should register any extra include files for the
  31566. target before any standard headers. The parameter STDINC indicates
  31567. if normal include files are present. The parameter SYSROOT is the
  31568. system root directory. The parameter IPREFIX is the prefix for the
  31569. gcc directory.
  31570. -- Macro: void TARGET_OPTF (char *PATH)
  31571. This target hook should register special include paths for the
  31572. target. The parameter PATH is the include to register. On Darwin
  31573. systems, this is used for Framework includes, which have semantics
  31574. that are different from '-I'.
  31575. -- Macro: bool TARGET_USE_LOCAL_THUNK_ALIAS_P (tree FNDECL)
  31576. This target macro returns 'true' if it is safe to use a local alias
  31577. for a virtual function FNDECL when constructing thunks, 'false'
  31578. otherwise. By default, the macro returns 'true' for all functions,
  31579. if a target supports aliases (i.e. defines 'ASM_OUTPUT_DEF'),
  31580. 'false' otherwise,
  31581. -- Macro: TARGET_FORMAT_TYPES
  31582. If defined, this macro is the name of a global variable containing
  31583. target-specific format checking information for the '-Wformat'
  31584. option. The default is to have no target-specific format checks.
  31585. -- Macro: TARGET_N_FORMAT_TYPES
  31586. If defined, this macro is the number of entries in
  31587. 'TARGET_FORMAT_TYPES'.
  31588. -- Macro: TARGET_OVERRIDES_FORMAT_ATTRIBUTES
  31589. If defined, this macro is the name of a global variable containing
  31590. target-specific format overrides for the '-Wformat' option. The
  31591. default is to have no target-specific format overrides. If
  31592. defined, 'TARGET_FORMAT_TYPES' must be defined, too.
  31593. -- Macro: TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT
  31594. If defined, this macro specifies the number of entries in
  31595. 'TARGET_OVERRIDES_FORMAT_ATTRIBUTES'.
  31596. -- Macro: TARGET_OVERRIDES_FORMAT_INIT
  31597. If defined, this macro specifies the optional initialization
  31598. routine for target specific customizations of the system printf and
  31599. scanf formatter settings.
  31600. -- Target Hook: const char * TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
  31601. (const_tree TYPELIST, const_tree FUNCDECL, const_tree VAL)
  31602. If defined, this macro returns the diagnostic message when it is
  31603. illegal to pass argument VAL to function FUNCDECL with prototype
  31604. TYPELIST.
  31605. -- Target Hook: const char * TARGET_INVALID_CONVERSION (const_tree
  31606. FROMTYPE, const_tree TOTYPE)
  31607. If defined, this macro returns the diagnostic message when it is
  31608. invalid to convert from FROMTYPE to TOTYPE, or 'NULL' if validity
  31609. should be determined by the front end.
  31610. -- Target Hook: const char * TARGET_INVALID_UNARY_OP (int OP,
  31611. const_tree TYPE)
  31612. If defined, this macro returns the diagnostic message when it is
  31613. invalid to apply operation OP (where unary plus is denoted by
  31614. 'CONVERT_EXPR') to an operand of type TYPE, or 'NULL' if validity
  31615. should be determined by the front end.
  31616. -- Target Hook: const char * TARGET_INVALID_BINARY_OP (int OP,
  31617. const_tree TYPE1, const_tree TYPE2)
  31618. If defined, this macro returns the diagnostic message when it is
  31619. invalid to apply operation OP to operands of types TYPE1 and TYPE2,
  31620. or 'NULL' if validity should be determined by the front end.
  31621. -- Target Hook: tree TARGET_PROMOTED_TYPE (const_tree TYPE)
  31622. If defined, this target hook returns the type to which values of
  31623. TYPE should be promoted when they appear in expressions, analogous
  31624. to the integer promotions, or 'NULL_TREE' to use the front end's
  31625. normal promotion rules. This hook is useful when there are
  31626. target-specific types with special promotion rules. This is
  31627. currently used only by the C and C++ front ends.
  31628. -- Target Hook: tree TARGET_CONVERT_TO_TYPE (tree TYPE, tree EXPR)
  31629. If defined, this hook returns the result of converting EXPR to
  31630. TYPE. It should return the converted expression, or 'NULL_TREE' to
  31631. apply the front end's normal conversion rules. This hook is useful
  31632. when there are target-specific types with special conversion rules.
  31633. This is currently used only by the C and C++ front ends.
  31634. -- Macro: OBJC_JBLEN
  31635. This macro determines the size of the objective C jump buffer for
  31636. the NeXT runtime. By default, OBJC_JBLEN is defined to an
  31637. innocuous value.
  31638. -- Macro: LIBGCC2_UNWIND_ATTRIBUTE
  31639. Define this macro if any target-specific attributes need to be
  31640. attached to the functions in 'libgcc' that provide low-level
  31641. support for call stack unwinding. It is used in declarations in
  31642. 'unwind-generic.h' and the associated definitions of those
  31643. functions.
  31644. -- Target Hook: void TARGET_UPDATE_STACK_BOUNDARY (void)
  31645. Define this macro to update the current function stack boundary if
  31646. necessary.
  31647. -- Target Hook: rtx TARGET_GET_DRAP_RTX (void)
  31648. This hook should return an rtx for Dynamic Realign Argument Pointer
  31649. (DRAP) if a different argument pointer register is needed to access
  31650. the function's argument list due to stack realignment. Return
  31651. 'NULL' if no DRAP is needed.
  31652. -- Target Hook: bool TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS (void)
  31653. When optimization is disabled, this hook indicates whether or not
  31654. arguments should be allocated to stack slots. Normally, GCC
  31655. allocates stacks slots for arguments when not optimizing in order
  31656. to make debugging easier. However, when a function is declared
  31657. with '__attribute__((naked))', there is no stack frame, and the
  31658. compiler cannot safely move arguments from the registers in which
  31659. they are passed to the stack. Therefore, this hook should return
  31660. true in general, but false for naked functions. The default
  31661. implementation always returns true.
  31662. -- Target Hook: unsigned HOST_WIDE_INT TARGET_CONST_ANCHOR
  31663. On some architectures it can take multiple instructions to
  31664. synthesize a constant. If there is another constant already in a
  31665. register that is close enough in value then it is preferable that
  31666. the new constant is computed from this register using immediate
  31667. addition or subtraction. We accomplish this through CSE. Besides
  31668. the value of the constant we also add a lower and an upper constant
  31669. anchor to the available expressions. These are then queried when
  31670. encountering new constants. The anchors are computed by rounding
  31671. the constant up and down to a multiple of the value of
  31672. 'TARGET_CONST_ANCHOR'. 'TARGET_CONST_ANCHOR' should be the maximum
  31673. positive value accepted by immediate-add plus one. We currently
  31674. assume that the value of 'TARGET_CONST_ANCHOR' is a power of 2.
  31675. For example, on MIPS, where add-immediate takes a 16-bit signed
  31676. value, 'TARGET_CONST_ANCHOR' is set to '0x8000'. The default value
  31677. is zero, which disables this optimization.
  31678. -- Target Hook: unsigned HOST_WIDE_INT TARGET_ASAN_SHADOW_OFFSET (void)
  31679. Return the offset bitwise ored into shifted address to get
  31680. corresponding Address Sanitizer shadow memory address. NULL if
  31681. Address Sanitizer is not supported by the target.
  31682. -- Target Hook: unsigned HOST_WIDE_INT TARGET_MEMMODEL_CHECK (unsigned
  31683. HOST_WIDE_INT VAL)
  31684. Validate target specific memory model mask bits. When NULL no
  31685. target specific memory model bits are allowed.
  31686. -- Target Hook: unsigned char TARGET_ATOMIC_TEST_AND_SET_TRUEVAL
  31687. This value should be set if the result written by
  31688. 'atomic_test_and_set' is not exactly 1, i.e. the 'bool' 'true'.
  31689. -- Target Hook: bool TARGET_HAS_IFUNC_P (void)
  31690. It returns true if the target supports GNU indirect functions. The
  31691. support includes the assembler, linker and dynamic linker. The
  31692. default value of this hook is based on target's libc.
  31693. -- Target Hook: unsigned int TARGET_ATOMIC_ALIGN_FOR_MODE (machine_mode
  31694. MODE)
  31695. If defined, this function returns an appropriate alignment in bits
  31696. for an atomic object of machine_mode MODE. If 0 is returned then
  31697. the default alignment for the specified mode is used.
  31698. -- Target Hook: void TARGET_ATOMIC_ASSIGN_EXPAND_FENV (tree *HOLD, tree
  31699. *CLEAR, tree *UPDATE)
  31700. ISO C11 requires atomic compound assignments that may raise
  31701. floating-point exceptions to raise exceptions corresponding to the
  31702. arithmetic operation whose result was successfully stored in a
  31703. compare-and-exchange sequence. This requires code equivalent to
  31704. calls to 'feholdexcept', 'feclearexcept' and 'feupdateenv' to be
  31705. generated at appropriate points in the compare-and-exchange
  31706. sequence. This hook should set '*HOLD' to an expression equivalent
  31707. to the call to 'feholdexcept', '*CLEAR' to an expression equivalent
  31708. to the call to 'feclearexcept' and '*UPDATE' to an expression
  31709. equivalent to the call to 'feupdateenv'. The three expressions are
  31710. 'NULL_TREE' on entry to the hook and may be left as 'NULL_TREE' if
  31711. no code is required in a particular place. The default
  31712. implementation leaves all three expressions as 'NULL_TREE'. The
  31713. '__atomic_feraiseexcept' function from 'libatomic' may be of use as
  31714. part of the code generated in '*UPDATE'.
  31715. -- Target Hook: void TARGET_RECORD_OFFLOAD_SYMBOL (tree)
  31716. Used when offloaded functions are seen in the compilation unit and
  31717. no named sections are available. It is called once for each symbol
  31718. that must be recorded in the offload function and variable table.
  31719. -- Target Hook: char * TARGET_OFFLOAD_OPTIONS (void)
  31720. Used when writing out the list of options into an LTO file. It
  31721. should translate any relevant target-specific options (such as the
  31722. ABI in use) into one of the '-foffload' options that exist as a
  31723. common interface to express such options. It should return a
  31724. string containing these options, separated by spaces, which the
  31725. caller will free.
  31726. -- Macro: TARGET_SUPPORTS_WIDE_INT
  31727. On older ports, large integers are stored in 'CONST_DOUBLE' rtl
  31728. objects. Newer ports define 'TARGET_SUPPORTS_WIDE_INT' to be
  31729. nonzero to indicate that large integers are stored in
  31730. 'CONST_WIDE_INT' rtl objects. The 'CONST_WIDE_INT' allows very
  31731. large integer constants to be represented. 'CONST_DOUBLE' is
  31732. limited to twice the size of the host's 'HOST_WIDE_INT'
  31733. representation.
  31734. Converting a port mostly requires looking for the places where
  31735. 'CONST_DOUBLE's are used with 'VOIDmode' and replacing that code
  31736. with code that accesses 'CONST_WIDE_INT's. '"grep -i
  31737. const_double"' at the port level gets you to 95% of the changes
  31738. that need to be made. There are a few places that require a deeper
  31739. look.
  31740. * There is no equivalent to 'hval' and 'lval' for
  31741. 'CONST_WIDE_INT's. This would be difficult to express in the
  31742. md language since there are a variable number of elements.
  31743. Most ports only check that 'hval' is either 0 or -1 to see if
  31744. the value is small. As mentioned above, this will no longer
  31745. be necessary since small constants are always 'CONST_INT'. Of
  31746. course there are still a few exceptions, the alpha's
  31747. constraint used by the zap instruction certainly requires
  31748. careful examination by C code. However, all the current code
  31749. does is pass the hval and lval to C code, so evolving the c
  31750. code to look at the 'CONST_WIDE_INT' is not really a large
  31751. change.
  31752. * Because there is no standard template that ports use to
  31753. materialize constants, there is likely to be some futzing that
  31754. is unique to each port in this code.
  31755. * The rtx costs may have to be adjusted to properly account for
  31756. larger constants that are represented as 'CONST_WIDE_INT'.
  31757. All and all it does not take long to convert ports that the
  31758. maintainer is familiar with.
  31759. -- Target Hook: void TARGET_RUN_TARGET_SELFTESTS (void)
  31760. If selftests are enabled, run any selftests for this target.
  31761. 
  31762. File: gccint.info, Node: Host Config, Next: Fragments, Prev: Target Macros, Up: Top
  31763. 18 Host Configuration
  31764. *********************
  31765. Most details about the machine and system on which the compiler is
  31766. actually running are detected by the 'configure' script. Some things
  31767. are impossible for 'configure' to detect; these are described in two
  31768. ways, either by macros defined in a file named 'xm-MACHINE.h' or by hook
  31769. functions in the file specified by the OUT_HOST_HOOK_OBJ variable in
  31770. 'config.gcc'. (The intention is that very few hosts will need a header
  31771. file but nearly every fully supported host will need to override some
  31772. hooks.)
  31773. If you need to define only a few macros, and they have simple
  31774. definitions, consider using the 'xm_defines' variable in your
  31775. 'config.gcc' entry instead of creating a host configuration header.
  31776. *Note System Config::.
  31777. * Menu:
  31778. * Host Common:: Things every host probably needs implemented.
  31779. * Filesystem:: Your host cannot have the letter 'a' in filenames?
  31780. * Host Misc:: Rare configuration options for hosts.
  31781. 
  31782. File: gccint.info, Node: Host Common, Next: Filesystem, Up: Host Config
  31783. 18.1 Host Common
  31784. ================
  31785. Some things are just not portable, even between similar operating
  31786. systems, and are too difficult for autoconf to detect. They get
  31787. implemented using hook functions in the file specified by the
  31788. HOST_HOOK_OBJ variable in 'config.gcc'.
  31789. -- Host Hook: void HOST_HOOKS_EXTRA_SIGNALS (void)
  31790. This host hook is used to set up handling for extra signals. The
  31791. most common thing to do in this hook is to detect stack overflow.
  31792. -- Host Hook: void * HOST_HOOKS_GT_PCH_GET_ADDRESS (size_t SIZE, int
  31793. FD)
  31794. This host hook returns the address of some space that is likely to
  31795. be free in some subsequent invocation of the compiler. We intend
  31796. to load the PCH data at this address such that the data need not be
  31797. relocated. The area should be able to hold SIZE bytes. If the
  31798. host uses 'mmap', FD is an open file descriptor that can be used
  31799. for probing.
  31800. -- Host Hook: int HOST_HOOKS_GT_PCH_USE_ADDRESS (void * ADDRESS, size_t
  31801. SIZE, int FD, size_t OFFSET)
  31802. This host hook is called when a PCH file is about to be loaded. We
  31803. want to load SIZE bytes from FD at OFFSET into memory at ADDRESS.
  31804. The given address will be the result of a previous invocation of
  31805. 'HOST_HOOKS_GT_PCH_GET_ADDRESS'. Return -1 if we couldn't allocate
  31806. SIZE bytes at ADDRESS. Return 0 if the memory is allocated but the
  31807. data is not loaded. Return 1 if the hook has performed everything.
  31808. If the implementation uses reserved address space, free any
  31809. reserved space beyond SIZE, regardless of the return value. If no
  31810. PCH will be loaded, this hook may be called with SIZE zero, in
  31811. which case all reserved address space should be freed.
  31812. Do not try to handle values of ADDRESS that could not have been
  31813. returned by this executable; just return -1. Such values usually
  31814. indicate an out-of-date PCH file (built by some other GCC
  31815. executable), and such a PCH file won't work.
  31816. -- Host Hook: size_t HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY (void);
  31817. This host hook returns the alignment required for allocating
  31818. virtual memory. Usually this is the same as getpagesize, but on
  31819. some hosts the alignment for reserving memory differs from the
  31820. pagesize for committing memory.
  31821. 
  31822. File: gccint.info, Node: Filesystem, Next: Host Misc, Prev: Host Common, Up: Host Config
  31823. 18.2 Host Filesystem
  31824. ====================
  31825. GCC needs to know a number of things about the semantics of the host
  31826. machine's filesystem. Filesystems with Unix and MS-DOS semantics are
  31827. automatically detected. For other systems, you can define the following
  31828. macros in 'xm-MACHINE.h'.
  31829. 'HAVE_DOS_BASED_FILE_SYSTEM'
  31830. This macro is automatically defined by 'system.h' if the host file
  31831. system obeys the semantics defined by MS-DOS instead of Unix. DOS
  31832. file systems are case insensitive, file specifications may begin
  31833. with a drive letter, and both forward slash and backslash ('/' and
  31834. '\') are directory separators.
  31835. 'DIR_SEPARATOR'
  31836. 'DIR_SEPARATOR_2'
  31837. If defined, these macros expand to character constants specifying
  31838. separators for directory names within a file specification.
  31839. 'system.h' will automatically give them appropriate values on Unix
  31840. and MS-DOS file systems. If your file system is neither of these,
  31841. define one or both appropriately in 'xm-MACHINE.h'.
  31842. However, operating systems like VMS, where constructing a pathname
  31843. is more complicated than just stringing together directory names
  31844. separated by a special character, should not define either of these
  31845. macros.
  31846. 'PATH_SEPARATOR'
  31847. If defined, this macro should expand to a character constant
  31848. specifying the separator for elements of search paths. The default
  31849. value is a colon (':'). DOS-based systems usually, but not always,
  31850. use semicolon (';').
  31851. 'VMS'
  31852. Define this macro if the host system is VMS.
  31853. 'HOST_OBJECT_SUFFIX'
  31854. Define this macro to be a C string representing the suffix for
  31855. object files on your host machine. If you do not define this
  31856. macro, GCC will use '.o' as the suffix for object files.
  31857. 'HOST_EXECUTABLE_SUFFIX'
  31858. Define this macro to be a C string representing the suffix for
  31859. executable files on your host machine. If you do not define this
  31860. macro, GCC will use the null string as the suffix for executable
  31861. files.
  31862. 'HOST_BIT_BUCKET'
  31863. A pathname defined by the host operating system, which can be
  31864. opened as a file and written to, but all the information written is
  31865. discarded. This is commonly known as a "bit bucket" or "null
  31866. device". If you do not define this macro, GCC will use '/dev/null'
  31867. as the bit bucket. If the host does not support a bit bucket,
  31868. define this macro to an invalid filename.
  31869. 'UPDATE_PATH_HOST_CANONICALIZE (PATH)'
  31870. If defined, a C statement (sans semicolon) that performs
  31871. host-dependent canonicalization when a path used in a compilation
  31872. driver or preprocessor is canonicalized. PATH is a malloc-ed path
  31873. to be canonicalized. If the C statement does canonicalize PATH
  31874. into a different buffer, the old path should be freed and the new
  31875. buffer should have been allocated with malloc.
  31876. 'DUMPFILE_FORMAT'
  31877. Define this macro to be a C string representing the format to use
  31878. for constructing the index part of debugging dump file names. The
  31879. resultant string must fit in fifteen bytes. The full filename will
  31880. be the concatenation of: the prefix of the assembler file name, the
  31881. string resulting from applying this format to an index number, and
  31882. a string unique to each dump file kind, e.g. 'rtl'.
  31883. If you do not define this macro, GCC will use '.%02d.'. You should
  31884. define this macro if using the default will create an invalid file
  31885. name.
  31886. 'DELETE_IF_ORDINARY'
  31887. Define this macro to be a C statement (sans semicolon) that
  31888. performs host-dependent removal of ordinary temp files in the
  31889. compilation driver.
  31890. If you do not define this macro, GCC will use the default version.
  31891. You should define this macro if the default version does not
  31892. reliably remove the temp file as, for example, on VMS which allows
  31893. multiple versions of a file.
  31894. 'HOST_LACKS_INODE_NUMBERS'
  31895. Define this macro if the host filesystem does not report meaningful
  31896. inode numbers in struct stat.
  31897. 
  31898. File: gccint.info, Node: Host Misc, Prev: Filesystem, Up: Host Config
  31899. 18.3 Host Misc
  31900. ==============
  31901. 'FATAL_EXIT_CODE'
  31902. A C expression for the status code to be returned when the compiler
  31903. exits after serious errors. The default is the system-provided
  31904. macro 'EXIT_FAILURE', or '1' if the system doesn't define that
  31905. macro. Define this macro only if these defaults are incorrect.
  31906. 'SUCCESS_EXIT_CODE'
  31907. A C expression for the status code to be returned when the compiler
  31908. exits without serious errors. (Warnings are not serious errors.)
  31909. The default is the system-provided macro 'EXIT_SUCCESS', or '0' if
  31910. the system doesn't define that macro. Define this macro only if
  31911. these defaults are incorrect.
  31912. 'USE_C_ALLOCA'
  31913. Define this macro if GCC should use the C implementation of
  31914. 'alloca' provided by 'libiberty.a'. This only affects how some
  31915. parts of the compiler itself allocate memory. It does not change
  31916. code generation.
  31917. When GCC is built with a compiler other than itself, the C 'alloca'
  31918. is always used. This is because most other implementations have
  31919. serious bugs. You should define this macro only on a system where
  31920. no stack-based 'alloca' can possibly work. For instance, if a
  31921. system has a small limit on the size of the stack, GCC's builtin
  31922. 'alloca' will not work reliably.
  31923. 'COLLECT2_HOST_INITIALIZATION'
  31924. If defined, a C statement (sans semicolon) that performs
  31925. host-dependent initialization when 'collect2' is being initialized.
  31926. 'GCC_DRIVER_HOST_INITIALIZATION'
  31927. If defined, a C statement (sans semicolon) that performs
  31928. host-dependent initialization when a compilation driver is being
  31929. initialized.
  31930. 'HOST_LONG_LONG_FORMAT'
  31931. If defined, the string used to indicate an argument of type 'long
  31932. long' to functions like 'printf'. The default value is '"ll"'.
  31933. 'HOST_LONG_FORMAT'
  31934. If defined, the string used to indicate an argument of type 'long'
  31935. to functions like 'printf'. The default value is '"l"'.
  31936. 'HOST_PTR_PRINTF'
  31937. If defined, the string used to indicate an argument of type 'void
  31938. *' to functions like 'printf'. The default value is '"%p"'.
  31939. In addition, if 'configure' generates an incorrect definition of any of
  31940. the macros in 'auto-host.h', you can override that definition in a host
  31941. configuration header. If you need to do this, first see if it is
  31942. possible to fix 'configure'.
  31943. 
  31944. File: gccint.info, Node: Fragments, Next: Collect2, Prev: Host Config, Up: Top
  31945. 19 Makefile Fragments
  31946. *********************
  31947. When you configure GCC using the 'configure' script, it will construct
  31948. the file 'Makefile' from the template file 'Makefile.in'. When it does
  31949. this, it can incorporate makefile fragments from the 'config' directory.
  31950. These are used to set Makefile parameters that are not amenable to being
  31951. calculated by autoconf. The list of fragments to incorporate is set by
  31952. 'config.gcc' (and occasionally 'config.build' and 'config.host'); *Note
  31953. System Config::.
  31954. Fragments are named either 't-TARGET' or 'x-HOST', depending on whether
  31955. they are relevant to configuring GCC to produce code for a particular
  31956. target, or to configuring GCC to run on a particular host. Here TARGET
  31957. and HOST are mnemonics which usually have some relationship to the
  31958. canonical system name, but no formal connection.
  31959. If these files do not exist, it means nothing needs to be added for a
  31960. given target or host. Most targets need a few 't-TARGET' fragments, but
  31961. needing 'x-HOST' fragments is rare.
  31962. * Menu:
  31963. * Target Fragment:: Writing 't-TARGET' files.
  31964. * Host Fragment:: Writing 'x-HOST' files.
  31965. 
  31966. File: gccint.info, Node: Target Fragment, Next: Host Fragment, Up: Fragments
  31967. 19.1 Target Makefile Fragments
  31968. ==============================
  31969. Target makefile fragments can set these Makefile variables.
  31970. 'LIBGCC2_CFLAGS'
  31971. Compiler flags to use when compiling 'libgcc2.c'.
  31972. 'LIB2FUNCS_EXTRA'
  31973. A list of source file names to be compiled or assembled and
  31974. inserted into 'libgcc.a'.
  31975. 'CRTSTUFF_T_CFLAGS'
  31976. Special flags used when compiling 'crtstuff.c'. *Note
  31977. Initialization::.
  31978. 'CRTSTUFF_T_CFLAGS_S'
  31979. Special flags used when compiling 'crtstuff.c' for shared linking.
  31980. Used if you use 'crtbeginS.o' and 'crtendS.o' in 'EXTRA-PARTS'.
  31981. *Note Initialization::.
  31982. 'MULTILIB_OPTIONS'
  31983. For some targets, invoking GCC in different ways produces objects
  31984. that can not be linked together. For example, for some targets GCC
  31985. produces both big and little endian code. For these targets, you
  31986. must arrange for multiple versions of 'libgcc.a' to be compiled,
  31987. one for each set of incompatible options. When GCC invokes the
  31988. linker, it arranges to link in the right version of 'libgcc.a',
  31989. based on the command line options used.
  31990. The 'MULTILIB_OPTIONS' macro lists the set of options for which
  31991. special versions of 'libgcc.a' must be built. Write options that
  31992. are mutually incompatible side by side, separated by a slash.
  31993. Write options that may be used together separated by a space. The
  31994. build procedure will build all combinations of compatible options.
  31995. For example, if you set 'MULTILIB_OPTIONS' to 'm68000/m68020
  31996. msoft-float', 'Makefile' will build special versions of 'libgcc.a'
  31997. using the following sets of options: '-m68000', '-m68020',
  31998. '-msoft-float', '-m68000 -msoft-float', and '-m68020 -msoft-float'.
  31999. 'MULTILIB_DIRNAMES'
  32000. If 'MULTILIB_OPTIONS' is used, this variable specifies the
  32001. directory names that should be used to hold the various libraries.
  32002. Write one element in 'MULTILIB_DIRNAMES' for each element in
  32003. 'MULTILIB_OPTIONS'. If 'MULTILIB_DIRNAMES' is not used, the
  32004. default value will be 'MULTILIB_OPTIONS', with all slashes treated
  32005. as spaces.
  32006. 'MULTILIB_DIRNAMES' describes the multilib directories using GCC
  32007. conventions and is applied to directories that are part of the GCC
  32008. installation. When multilib-enabled, the compiler will add a
  32009. subdirectory of the form PREFIX/MULTILIB before each directory in
  32010. the search path for libraries and crt files.
  32011. For example, if 'MULTILIB_OPTIONS' is set to 'm68000/m68020
  32012. msoft-float', then the default value of 'MULTILIB_DIRNAMES' is
  32013. 'm68000 m68020 msoft-float'. You may specify a different value if
  32014. you desire a different set of directory names.
  32015. 'MULTILIB_MATCHES'
  32016. Sometimes the same option may be written in two different ways. If
  32017. an option is listed in 'MULTILIB_OPTIONS', GCC needs to know about
  32018. any synonyms. In that case, set 'MULTILIB_MATCHES' to a list of
  32019. items of the form 'option=option' to describe all relevant
  32020. synonyms. For example, 'm68000=mc68000 m68020=mc68020'.
  32021. 'MULTILIB_EXCEPTIONS'
  32022. Sometimes when there are multiple sets of 'MULTILIB_OPTIONS' being
  32023. specified, there are combinations that should not be built. In
  32024. that case, set 'MULTILIB_EXCEPTIONS' to be all of the switch
  32025. exceptions in shell case syntax that should not be built.
  32026. For example the ARM processor cannot execute both hardware floating
  32027. point instructions and the reduced size THUMB instructions at the
  32028. same time, so there is no need to build libraries with both of
  32029. these options enabled. Therefore 'MULTILIB_EXCEPTIONS' is set to:
  32030. *mthumb/*mhard-float*
  32031. 'MULTILIB_REQUIRED'
  32032. Sometimes when there are only a few combinations are required, it
  32033. would be a big effort to come up with a 'MULTILIB_EXCEPTIONS' list
  32034. to cover all undesired ones. In such a case, just listing all the
  32035. required combinations in 'MULTILIB_REQUIRED' would be more
  32036. straightforward.
  32037. The way to specify the entries in 'MULTILIB_REQUIRED' is same with
  32038. the way used for 'MULTILIB_EXCEPTIONS', only this time what are
  32039. required will be specified. Suppose there are multiple sets of
  32040. 'MULTILIB_OPTIONS' and only two combinations are required, one for
  32041. ARMv7-M and one for ARMv7-R with hard floating-point ABI and FPU,
  32042. the 'MULTILIB_REQUIRED' can be set to:
  32043. MULTILIB_REQUIRED = mthumb/march=armv7-m
  32044. MULTILIB_REQUIRED += march=armv7-r/mfloat-abi=hard/mfpu=vfpv3-d16
  32045. The 'MULTILIB_REQUIRED' can be used together with
  32046. 'MULTILIB_EXCEPTIONS'. The option combinations generated from
  32047. 'MULTILIB_OPTIONS' will be filtered by 'MULTILIB_EXCEPTIONS' and
  32048. then by 'MULTILIB_REQUIRED'.
  32049. 'MULTILIB_REUSE'
  32050. Sometimes it is desirable to reuse one existing multilib for
  32051. different sets of options. Such kind of reuse can minimize the
  32052. number of multilib variants. And for some targets it is better to
  32053. reuse an existing multilib than to fall back to default multilib
  32054. when there is no corresponding multilib. This can be done by
  32055. adding reuse rules to 'MULTILIB_REUSE'.
  32056. A reuse rule is comprised of two parts connected by equality sign.
  32057. The left part is the option set used to build multilib and the
  32058. right part is the option set that will reuse this multilib. Both
  32059. parts should only use options specified in 'MULTILIB_OPTIONS' and
  32060. the equality signs found in options name should be replaced with
  32061. periods. The order of options in the left part matters and should
  32062. be same with those specified in 'MULTILIB_REQUIRED' or aligned with
  32063. the order in 'MULTILIB_OPTIONS'. There is no such limitation for
  32064. options in the right part as we don't build multilib from them.
  32065. 'MULTILIB_REUSE' is different from 'MULTILIB_MATCHES' in that it
  32066. sets up relations between two option sets rather than two options.
  32067. Here is an example to demo how we reuse libraries built in Thumb
  32068. mode for applications built in ARM mode:
  32069. MULTILIB_REUSE = mthumb/march.armv7-r=marm/march.armv7-r
  32070. Before the advent of 'MULTILIB_REUSE', GCC select multilib by
  32071. comparing command line options with options used to build multilib.
  32072. The 'MULTILIB_REUSE' is complementary to that way. Only when the
  32073. original comparison matches nothing it will work to see if it is OK
  32074. to reuse some existing multilib.
  32075. 'MULTILIB_EXTRA_OPTS'
  32076. Sometimes it is desirable that when building multiple versions of
  32077. 'libgcc.a' certain options should always be passed on to the
  32078. compiler. In that case, set 'MULTILIB_EXTRA_OPTS' to be the list
  32079. of options to be used for all builds. If you set this, you should
  32080. probably set 'CRTSTUFF_T_CFLAGS' to a dash followed by it.
  32081. 'MULTILIB_OSDIRNAMES'
  32082. If 'MULTILIB_OPTIONS' is used, this variable specifies a list of
  32083. subdirectory names, that are used to modify the search path
  32084. depending on the chosen multilib. Unlike 'MULTILIB_DIRNAMES',
  32085. 'MULTILIB_OSDIRNAMES' describes the multilib directories using
  32086. operating systems conventions, and is applied to the directories
  32087. such as 'lib' or those in the 'LIBRARY_PATH' environment variable.
  32088. The format is either the same as of 'MULTILIB_DIRNAMES', or a set
  32089. of mappings. When it is the same as 'MULTILIB_DIRNAMES', it
  32090. describes the multilib directories using operating system
  32091. conventions, rather than GCC conventions. When it is a set of
  32092. mappings of the form GCCDIR=OSDIR, the left side gives the GCC
  32093. convention and the right gives the equivalent OS defined location.
  32094. If the OSDIR part begins with a '!', GCC will not search in the
  32095. non-multilib directory and use exclusively the multilib directory.
  32096. Otherwise, the compiler will examine the search path for libraries
  32097. and crt files twice; the first time it will add MULTILIB to each
  32098. directory in the search path, the second it will not.
  32099. For configurations that support both multilib and multiarch,
  32100. 'MULTILIB_OSDIRNAMES' also encodes the multiarch name, thus
  32101. subsuming 'MULTIARCH_DIRNAME'. The multiarch name is appended to
  32102. each directory name, separated by a colon (e.g.
  32103. '../lib32:i386-linux-gnu').
  32104. Each multiarch subdirectory will be searched before the
  32105. corresponding OS multilib directory, for example
  32106. '/lib/i386-linux-gnu' before '/lib/../lib32'. The multiarch name
  32107. will also be used to modify the system header search path, as
  32108. explained for 'MULTIARCH_DIRNAME'.
  32109. 'MULTIARCH_DIRNAME'
  32110. This variable specifies the multiarch name for configurations that
  32111. are multiarch-enabled but not multilibbed configurations.
  32112. The multiarch name is used to augment the search path for
  32113. libraries, crt files and system header files with additional
  32114. locations. The compiler will add a multiarch subdirectory of the
  32115. form PREFIX/MULTIARCH before each directory in the library and crt
  32116. search path. It will also add two directories
  32117. 'LOCAL_INCLUDE_DIR'/MULTIARCH and
  32118. 'NATIVE_SYSTEM_HEADER_DIR'/MULTIARCH) to the system header search
  32119. path, respectively before 'LOCAL_INCLUDE_DIR' and
  32120. 'NATIVE_SYSTEM_HEADER_DIR'.
  32121. 'MULTIARCH_DIRNAME' is not used for configurations that support
  32122. both multilib and multiarch. In that case, multiarch names are
  32123. encoded in 'MULTILIB_OSDIRNAMES' instead.
  32124. More documentation about multiarch can be found at
  32125. <https://wiki.debian.org/Multiarch>.
  32126. 'SPECS'
  32127. Unfortunately, setting 'MULTILIB_EXTRA_OPTS' is not enough, since
  32128. it does not affect the build of target libraries, at least not the
  32129. build of the default multilib. One possible work-around is to use
  32130. 'DRIVER_SELF_SPECS' to bring options from the 'specs' file as if
  32131. they had been passed in the compiler driver command line. However,
  32132. you don't want to be adding these options after the toolchain is
  32133. installed, so you can instead tweak the 'specs' file that will be
  32134. used during the toolchain build, while you still install the
  32135. original, built-in 'specs'. The trick is to set 'SPECS' to some
  32136. other filename (say 'specs.install'), that will then be created out
  32137. of the built-in specs, and introduce a 'Makefile' rule to generate
  32138. the 'specs' file that's going to be used at build time out of your
  32139. 'specs.install'.
  32140. 'T_CFLAGS'
  32141. These are extra flags to pass to the C compiler. They are used
  32142. both when building GCC, and when compiling things with the
  32143. just-built GCC. This variable is deprecated and should not be
  32144. used.
  32145. 
  32146. File: gccint.info, Node: Host Fragment, Prev: Target Fragment, Up: Fragments
  32147. 19.2 Host Makefile Fragments
  32148. ============================
  32149. The use of 'x-HOST' fragments is discouraged. You should only use it
  32150. for makefile dependencies.
  32151. 
  32152. File: gccint.info, Node: Collect2, Next: Header Dirs, Prev: Fragments, Up: Top
  32153. 20 'collect2'
  32154. *************
  32155. GCC uses a utility called 'collect2' on nearly all systems to arrange to
  32156. call various initialization functions at start time.
  32157. The program 'collect2' works by linking the program once and looking
  32158. through the linker output file for symbols with particular names
  32159. indicating they are constructor functions. If it finds any, it creates
  32160. a new temporary '.c' file containing a table of them, compiles it, and
  32161. links the program a second time including that file.
  32162. The actual calls to the constructors are carried out by a subroutine
  32163. called '__main', which is called (automatically) at the beginning of the
  32164. body of 'main' (provided 'main' was compiled with GNU CC). Calling
  32165. '__main' is necessary, even when compiling C code, to allow linking C
  32166. and C++ object code together. (If you use '-nostdlib', you get an
  32167. unresolved reference to '__main', since it's defined in the standard GCC
  32168. library. Include '-lgcc' at the end of your compiler command line to
  32169. resolve this reference.)
  32170. The program 'collect2' is installed as 'ld' in the directory where the
  32171. passes of the compiler are installed. When 'collect2' needs to find the
  32172. _real_ 'ld', it tries the following file names:
  32173. * a hard coded linker file name, if GCC was configured with the
  32174. '--with-ld' option.
  32175. * 'real-ld' in the directories listed in the compiler's search
  32176. directories.
  32177. * 'real-ld' in the directories listed in the environment variable
  32178. 'PATH'.
  32179. * The file specified in the 'REAL_LD_FILE_NAME' configuration macro,
  32180. if specified.
  32181. * 'ld' in the compiler's search directories, except that 'collect2'
  32182. will not execute itself recursively.
  32183. * 'ld' in 'PATH'.
  32184. "The compiler's search directories" means all the directories where
  32185. 'gcc' searches for passes of the compiler. This includes directories
  32186. that you specify with '-B'.
  32187. Cross-compilers search a little differently:
  32188. * 'real-ld' in the compiler's search directories.
  32189. * 'TARGET-real-ld' in 'PATH'.
  32190. * The file specified in the 'REAL_LD_FILE_NAME' configuration macro,
  32191. if specified.
  32192. * 'ld' in the compiler's search directories.
  32193. * 'TARGET-ld' in 'PATH'.
  32194. 'collect2' explicitly avoids running 'ld' using the file name under
  32195. which 'collect2' itself was invoked. In fact, it remembers up a list of
  32196. such names--in case one copy of 'collect2' finds another copy (or
  32197. version) of 'collect2' installed as 'ld' in a second place in the search
  32198. path.
  32199. 'collect2' searches for the utilities 'nm' and 'strip' using the same
  32200. algorithm as above for 'ld'.
  32201. 
  32202. File: gccint.info, Node: Header Dirs, Next: Type Information, Prev: Collect2, Up: Top
  32203. 21 Standard Header File Directories
  32204. ***********************************
  32205. 'GCC_INCLUDE_DIR' means the same thing for native and cross. It is
  32206. where GCC stores its private include files, and also where GCC stores
  32207. the fixed include files. A cross compiled GCC runs 'fixincludes' on the
  32208. header files in '$(tooldir)/include'. (If the cross compilation header
  32209. files need to be fixed, they must be installed before GCC is built. If
  32210. the cross compilation header files are already suitable for GCC, nothing
  32211. special need be done).
  32212. 'GPLUSPLUS_INCLUDE_DIR' means the same thing for native and cross. It
  32213. is where 'g++' looks first for header files. The C++ library installs
  32214. only target independent header files in that directory.
  32215. 'LOCAL_INCLUDE_DIR' is used only by native compilers. GCC doesn't
  32216. install anything there. It is normally '/usr/local/include'. This is
  32217. where local additions to a packaged system should place header files.
  32218. 'CROSS_INCLUDE_DIR' is used only by cross compilers. GCC doesn't
  32219. install anything there.
  32220. 'TOOL_INCLUDE_DIR' is used for both native and cross compilers. It is
  32221. the place for other packages to install header files that GCC will use.
  32222. For a cross-compiler, this is the equivalent of '/usr/include'. When
  32223. you build a cross-compiler, 'fixincludes' processes any header files in
  32224. this directory.
  32225. 
  32226. File: gccint.info, Node: Type Information, Next: Plugins, Prev: Header Dirs, Up: Top
  32227. 22 Memory Management and Type Information
  32228. *****************************************
  32229. GCC uses some fairly sophisticated memory management techniques, which
  32230. involve determining information about GCC's data structures from GCC's
  32231. source code and using this information to perform garbage collection and
  32232. implement precompiled headers.
  32233. A full C++ parser would be too complicated for this task, so a limited
  32234. subset of C++ is interpreted and special markers are used to determine
  32235. what parts of the source to look at. All 'struct', 'union' and
  32236. 'template' structure declarations that define data structures that are
  32237. allocated under control of the garbage collector must be marked. All
  32238. global variables that hold pointers to garbage-collected memory must
  32239. also be marked. Finally, all global variables that need to be saved and
  32240. restored by a precompiled header must be marked. (The precompiled
  32241. header mechanism can only save static variables if they're scalar.
  32242. Complex data structures must be allocated in garbage-collected memory to
  32243. be saved in a precompiled header.)
  32244. The full format of a marker is
  32245. GTY (([OPTION] [(PARAM)], [OPTION] [(PARAM)] ...))
  32246. but in most cases no options are needed. The outer double parentheses
  32247. are still necessary, though: 'GTY(())'. Markers can appear:
  32248. * In a structure definition, before the open brace;
  32249. * In a global variable declaration, after the keyword 'static' or
  32250. 'extern'; and
  32251. * In a structure field definition, before the name of the field.
  32252. Here are some examples of marking simple data structures and globals.
  32253. struct GTY(()) TAG
  32254. {
  32255. FIELDS...
  32256. };
  32257. typedef struct GTY(()) TAG
  32258. {
  32259. FIELDS...
  32260. } *TYPENAME;
  32261. static GTY(()) struct TAG *LIST; /* points to GC memory */
  32262. static GTY(()) int COUNTER; /* save counter in a PCH */
  32263. The parser understands simple typedefs such as 'typedef struct TAG
  32264. *NAME;' and 'typedef int NAME;'. These don't need to be marked.
  32265. Since 'gengtype''s understanding of C++ is limited, there are several
  32266. constructs and declarations that are not supported inside
  32267. classes/structures marked for automatic GC code generation. The
  32268. following C++ constructs produce a 'gengtype' error on
  32269. structures/classes marked for automatic GC code generation:
  32270. * Type definitions inside classes/structures are not supported.
  32271. * Enumerations inside classes/structures are not supported.
  32272. If you have a class or structure using any of the above constructs, you
  32273. need to mark that class as 'GTY ((user))' and provide your own marking
  32274. routines (see section *note User GC:: for details).
  32275. It is always valid to include function definitions inside classes.
  32276. Those are always ignored by 'gengtype', as it only cares about data
  32277. members.
  32278. * Menu:
  32279. * GTY Options:: What goes inside a 'GTY(())'.
  32280. * Inheritance and GTY:: Adding GTY to a class hierarchy.
  32281. * User GC:: Adding user-provided GC marking routines.
  32282. * GGC Roots:: Making global variables GGC roots.
  32283. * Files:: How the generated files work.
  32284. * Invoking the garbage collector:: How to invoke the garbage collector.
  32285. * Troubleshooting:: When something does not work as expected.
  32286. 
  32287. File: gccint.info, Node: GTY Options, Next: Inheritance and GTY, Up: Type Information
  32288. 22.1 The Inside of a 'GTY(())'
  32289. ==============================
  32290. Sometimes the C code is not enough to fully describe the type structure.
  32291. Extra information can be provided with 'GTY' options and additional
  32292. markers. Some options take a parameter, which may be either a string or
  32293. a type name, depending on the parameter. If an option takes no
  32294. parameter, it is acceptable either to omit the parameter entirely, or to
  32295. provide an empty string as a parameter. For example, 'GTY ((skip))' and
  32296. 'GTY ((skip ("")))' are equivalent.
  32297. When the parameter is a string, often it is a fragment of C code. Four
  32298. special escapes may be used in these strings, to refer to pieces of the
  32299. data structure being marked:
  32300. '%h'
  32301. The current structure.
  32302. '%1'
  32303. The structure that immediately contains the current structure.
  32304. '%0'
  32305. The outermost structure that contains the current structure.
  32306. '%a'
  32307. A partial expression of the form '[i1][i2]...' that indexes the
  32308. array item currently being marked.
  32309. For instance, suppose that you have a structure of the form
  32310. struct A {
  32311. ...
  32312. };
  32313. struct B {
  32314. struct A foo[12];
  32315. };
  32316. and 'b' is a variable of type 'struct B'. When marking 'b.foo[11]',
  32317. '%h' would expand to 'b.foo[11]', '%0' and '%1' would both expand to
  32318. 'b', and '%a' would expand to '[11]'.
  32319. As in ordinary C, adjacent strings will be concatenated; this is
  32320. helpful when you have a complicated expression.
  32321. GTY ((chain_next ("TREE_CODE (&%h.generic) == INTEGER_TYPE"
  32322. " ? TYPE_NEXT_VARIANT (&%h.generic)"
  32323. " : TREE_CHAIN (&%h.generic)")))
  32324. The available options are:
  32325. 'length ("EXPRESSION")'
  32326. There are two places the type machinery will need to be explicitly
  32327. told the length of an array of non-atomic objects. The first case
  32328. is when a structure ends in a variable-length array, like this:
  32329. struct GTY(()) rtvec_def {
  32330. int num_elem; /* number of elements */
  32331. rtx GTY ((length ("%h.num_elem"))) elem[1];
  32332. };
  32333. In this case, the 'length' option is used to override the specified
  32334. array length (which should usually be '1'). The parameter of the
  32335. option is a fragment of C code that calculates the length.
  32336. The second case is when a structure or a global variable contains a
  32337. pointer to an array, like this:
  32338. struct gimple_omp_for_iter * GTY((length ("%h.collapse"))) iter;
  32339. In this case, 'iter' has been allocated by writing something like
  32340. x->iter = ggc_alloc_cleared_vec_gimple_omp_for_iter (collapse);
  32341. and the 'collapse' provides the length of the field.
  32342. This second use of 'length' also works on global variables, like:
  32343. static GTY((length("reg_known_value_size"))) rtx *reg_known_value;
  32344. Note that the 'length' option is only meant for use with arrays of
  32345. non-atomic objects, that is, objects that contain pointers pointing
  32346. to other GTY-managed objects. For other GC-allocated arrays and
  32347. strings you should use 'atomic'.
  32348. 'skip'
  32349. If 'skip' is applied to a field, the type machinery will ignore it.
  32350. This is somewhat dangerous; the only safe use is in a union when
  32351. one field really isn't ever used.
  32352. 'for_user'
  32353. Use this to mark types that need to be marked by user gc routines,
  32354. but are not refered to in a template argument. So if you have some
  32355. user gc type T1 and a non user gc type T2 you can give T2 the
  32356. for_user option so that the marking functions for T1 can call non
  32357. mangled functions to mark T2.
  32358. 'desc ("EXPRESSION")'
  32359. 'tag ("CONSTANT")'
  32360. 'default'
  32361. The type machinery needs to be told which field of a 'union' is
  32362. currently active. This is done by giving each field a constant
  32363. 'tag' value, and then specifying a discriminator using 'desc'. The
  32364. value of the expression given by 'desc' is compared against each
  32365. 'tag' value, each of which should be different. If no 'tag' is
  32366. matched, the field marked with 'default' is used if there is one,
  32367. otherwise no field in the union will be marked.
  32368. In the 'desc' option, the "current structure" is the union that it
  32369. discriminates. Use '%1' to mean the structure containing it.
  32370. There are no escapes available to the 'tag' option, since it is a
  32371. constant.
  32372. For example,
  32373. struct GTY(()) tree_binding
  32374. {
  32375. struct tree_common common;
  32376. union tree_binding_u {
  32377. tree GTY ((tag ("0"))) scope;
  32378. struct cp_binding_level * GTY ((tag ("1"))) level;
  32379. } GTY ((desc ("BINDING_HAS_LEVEL_P ((tree)&%0)"))) xscope;
  32380. tree value;
  32381. };
  32382. In this example, the value of BINDING_HAS_LEVEL_P when applied to a
  32383. 'struct tree_binding *' is presumed to be 0 or 1. If 1, the type
  32384. mechanism will treat the field 'level' as being present and if 0,
  32385. will treat the field 'scope' as being present.
  32386. The 'desc' and 'tag' options can also be used for inheritance to
  32387. denote which subclass an instance is. See *note Inheritance and
  32388. GTY:: for more information.
  32389. 'cache'
  32390. When the 'cache' option is applied to a global variable
  32391. gt_clear_cache is called on that variable between the mark and
  32392. sweep phases of garbage collection. The gt_clear_cache function is
  32393. free to mark blocks as used, or to clear pointers in the variable.
  32394. 'deletable'
  32395. 'deletable', when applied to a global variable, indicates that when
  32396. garbage collection runs, there's no need to mark anything pointed
  32397. to by this variable, it can just be set to 'NULL' instead. This is
  32398. used to keep a list of free structures around for re-use.
  32399. 'maybe_undef'
  32400. When applied to a field, 'maybe_undef' indicates that it's OK if
  32401. the structure that this fields points to is never defined, so long
  32402. as this field is always 'NULL'. This is used to avoid requiring
  32403. backends to define certain optional structures. It doesn't work
  32404. with language frontends.
  32405. 'nested_ptr (TYPE, "TO EXPRESSION", "FROM EXPRESSION")'
  32406. The type machinery expects all pointers to point to the start of an
  32407. object. Sometimes for abstraction purposes it's convenient to have
  32408. a pointer which points inside an object. So long as it's possible
  32409. to convert the original object to and from the pointer, such
  32410. pointers can still be used. TYPE is the type of the original
  32411. object, the TO EXPRESSION returns the pointer given the original
  32412. object, and the FROM EXPRESSION returns the original object given
  32413. the pointer. The pointer will be available using the '%h' escape.
  32414. 'chain_next ("EXPRESSION")'
  32415. 'chain_prev ("EXPRESSION")'
  32416. 'chain_circular ("EXPRESSION")'
  32417. It's helpful for the type machinery to know if objects are often
  32418. chained together in long lists; this lets it generate code that
  32419. uses less stack space by iterating along the list instead of
  32420. recursing down it. 'chain_next' is an expression for the next item
  32421. in the list, 'chain_prev' is an expression for the previous item.
  32422. For singly linked lists, use only 'chain_next'; for doubly linked
  32423. lists, use both. The machinery requires that taking the next item
  32424. of the previous item gives the original item. 'chain_circular' is
  32425. similar to 'chain_next', but can be used for circular single linked
  32426. lists.
  32427. 'reorder ("FUNCTION NAME")'
  32428. Some data structures depend on the relative ordering of pointers.
  32429. If the precompiled header machinery needs to change that ordering,
  32430. it will call the function referenced by the 'reorder' option,
  32431. before changing the pointers in the object that's pointed to by the
  32432. field the option applies to. The function must take four
  32433. arguments, with the signature
  32434. 'void *, void *, gt_pointer_operator, void *'. The first parameter
  32435. is a pointer to the structure that contains the object being
  32436. updated, or the object itself if there is no containing structure.
  32437. The second parameter is a cookie that should be ignored. The third
  32438. parameter is a routine that, given a pointer, will update it to its
  32439. correct new value. The fourth parameter is a cookie that must be
  32440. passed to the second parameter.
  32441. PCH cannot handle data structures that depend on the absolute
  32442. values of pointers. 'reorder' functions can be expensive. When
  32443. possible, it is better to depend on properties of the data, like an
  32444. ID number or the hash of a string instead.
  32445. 'atomic'
  32446. The 'atomic' option can only be used with pointers. It informs the
  32447. GC machinery that the memory that the pointer points to does not
  32448. contain any pointers, and hence it should be treated by the GC and
  32449. PCH machinery as an "atomic" block of memory that does not need to
  32450. be examined when scanning memory for pointers. In particular, the
  32451. machinery will not scan that memory for pointers to mark them as
  32452. reachable (when marking pointers for GC) or to relocate them (when
  32453. writing a PCH file).
  32454. The 'atomic' option differs from the 'skip' option. 'atomic' keeps
  32455. the memory under Garbage Collection, but makes the GC ignore the
  32456. contents of the memory. 'skip' is more drastic in that it causes
  32457. the pointer and the memory to be completely ignored by the Garbage
  32458. Collector. So, memory marked as 'atomic' is automatically freed
  32459. when no longer reachable, while memory marked as 'skip' is not.
  32460. The 'atomic' option must be used with great care, because all sorts
  32461. of problem can occur if used incorrectly, that is, if the memory
  32462. the pointer points to does actually contain a pointer.
  32463. Here is an example of how to use it:
  32464. struct GTY(()) my_struct {
  32465. int number_of_elements;
  32466. unsigned int * GTY ((atomic)) elements;
  32467. };
  32468. In this case, 'elements' is a pointer under GC, and the memory it
  32469. points to needs to be allocated using the Garbage Collector, and
  32470. will be freed automatically by the Garbage Collector when it is no
  32471. longer referenced. But the memory that the pointer points to is an
  32472. array of 'unsigned int' elements, and the GC must not try to scan
  32473. it to find pointers to mark or relocate, which is why it is marked
  32474. with the 'atomic' option.
  32475. Note that, currently, global variables can not be marked with
  32476. 'atomic'; only fields of a struct can. This is a known limitation.
  32477. It would be useful to be able to mark global pointers with 'atomic'
  32478. to make the PCH machinery aware of them so that they are saved and
  32479. restored correctly to PCH files.
  32480. 'special ("NAME")'
  32481. The 'special' option is used to mark types that have to be dealt
  32482. with by special case machinery. The parameter is the name of the
  32483. special case. See 'gengtype.c' for further details. Avoid adding
  32484. new special cases unless there is no other alternative.
  32485. 'user'
  32486. The 'user' option indicates that the code to mark structure fields
  32487. is completely handled by user-provided routines. See section *note
  32488. User GC:: for details on what functions need to be provided.
  32489. 
  32490. File: gccint.info, Node: Inheritance and GTY, Next: User GC, Prev: GTY Options, Up: Type Information
  32491. 22.2 Support for inheritance
  32492. ============================
  32493. gengtype has some support for simple class hierarchies. You can use
  32494. this to have gengtype autogenerate marking routines, provided:
  32495. * There must be a concrete base class, with a discriminator
  32496. expression that can be used to identify which subclass an instance
  32497. is.
  32498. * Only single inheritance is used.
  32499. * None of the classes within the hierarchy are templates.
  32500. If your class hierarchy does not fit in this pattern, you must use
  32501. *note User GC:: instead.
  32502. The base class and its discriminator must be identified using the
  32503. "desc" option. Each concrete subclass must use the "tag" option to
  32504. identify which value of the discriminator it corresponds to.
  32505. Every class in the hierarchy must have a 'GTY(())' marker, as gengtype
  32506. will only attempt to parse classes that have such a marker (1).
  32507. class GTY((desc("%h.kind"), tag("0"))) example_base
  32508. {
  32509. public:
  32510. int kind;
  32511. tree a;
  32512. };
  32513. class GTY((tag("1"))) some_subclass : public example_base
  32514. {
  32515. public:
  32516. tree b;
  32517. };
  32518. class GTY((tag("2"))) some_other_subclass : public example_base
  32519. {
  32520. public:
  32521. tree c;
  32522. };
  32523. The generated marking routines for the above will contain a "switch" on
  32524. "kind", visiting all appropriate fields. For example, if kind is 2, it
  32525. will cast to "some_other_subclass" and visit fields a, b, and c.
  32526. ---------- Footnotes ----------
  32527. (1) Classes lacking such a marker will not be identified as being
  32528. part of the hierarchy, and so the marking routines will not handle them,
  32529. leading to a assertion failure within the marking routines due to an
  32530. unknown tag value (assuming that assertions are enabled).
  32531. 
  32532. File: gccint.info, Node: User GC, Next: GGC Roots, Prev: Inheritance and GTY, Up: Type Information
  32533. 22.3 Support for user-provided GC marking routines
  32534. ==================================================
  32535. The garbage collector supports types for which no automatic marking code
  32536. is generated. For these types, the user is required to provide three
  32537. functions: one to act as a marker for garbage collection, and two
  32538. functions to act as marker and pointer walker for pre-compiled headers.
  32539. Given a structure 'struct GTY((user)) my_struct', the following
  32540. functions should be defined to mark 'my_struct':
  32541. void gt_ggc_mx (my_struct *p)
  32542. {
  32543. /* This marks field 'fld'. */
  32544. gt_ggc_mx (p->fld);
  32545. }
  32546. void gt_pch_nx (my_struct *p)
  32547. {
  32548. /* This marks field 'fld'. */
  32549. gt_pch_nx (tp->fld);
  32550. }
  32551. void gt_pch_nx (my_struct *p, gt_pointer_operator op, void *cookie)
  32552. {
  32553. /* For every field 'fld', call the given pointer operator. */
  32554. op (&(tp->fld), cookie);
  32555. }
  32556. In general, each marker 'M' should call 'M' for every pointer field in
  32557. the structure. Fields that are not allocated in GC or are not pointers
  32558. must be ignored.
  32559. For embedded lists (e.g., structures with a 'next' or 'prev' pointer),
  32560. the marker must follow the chain and mark every element in it.
  32561. Note that the rules for the pointer walker 'gt_pch_nx (my_struct *,
  32562. gt_pointer_operator, void *)' are slightly different. In this case, the
  32563. operation 'op' must be applied to the _address_ of every pointer field.
  32564. 22.3.1 User-provided marking routines for template types
  32565. --------------------------------------------------------
  32566. When a template type 'TP' is marked with 'GTY', all instances of that
  32567. type are considered user-provided types. This means that the individual
  32568. instances of 'TP' do not need to be marked with 'GTY'. The user needs
  32569. to provide template functions to mark all the fields of the type.
  32570. The following code snippets represent all the functions that need to be
  32571. provided. Note that type 'TP' may reference to more than one type. In
  32572. these snippets, there is only one type 'T', but there could be more.
  32573. template<typename T>
  32574. void gt_ggc_mx (TP<T> *tp)
  32575. {
  32576. extern void gt_ggc_mx (T&);
  32577. /* This marks field 'fld' of type 'T'. */
  32578. gt_ggc_mx (tp->fld);
  32579. }
  32580. template<typename T>
  32581. void gt_pch_nx (TP<T> *tp)
  32582. {
  32583. extern void gt_pch_nx (T&);
  32584. /* This marks field 'fld' of type 'T'. */
  32585. gt_pch_nx (tp->fld);
  32586. }
  32587. template<typename T>
  32588. void gt_pch_nx (TP<T *> *tp, gt_pointer_operator op, void *cookie)
  32589. {
  32590. /* For every field 'fld' of 'tp' with type 'T *', call the given
  32591. pointer operator. */
  32592. op (&(tp->fld), cookie);
  32593. }
  32594. template<typename T>
  32595. void gt_pch_nx (TP<T> *tp, gt_pointer_operator, void *cookie)
  32596. {
  32597. extern void gt_pch_nx (T *, gt_pointer_operator, void *);
  32598. /* For every field 'fld' of 'tp' with type 'T', call the pointer
  32599. walker for all the fields of T. */
  32600. gt_pch_nx (&(tp->fld), op, cookie);
  32601. }
  32602. Support for user-defined types is currently limited. The following
  32603. restrictions apply:
  32604. 1. Type 'TP' and all the argument types 'T' must be marked with 'GTY'.
  32605. 2. Type 'TP' can only have type names in its argument list.
  32606. 3. The pointer walker functions are different for 'TP<T>' and 'TP<T
  32607. *>'. In the case of 'TP<T>', references to 'T' must be handled by
  32608. calling 'gt_pch_nx' (which will, in turn, walk all the pointers
  32609. inside fields of 'T'). In the case of 'TP<T *>', references to 'T
  32610. *' must be handled by calling the 'op' function on the address of
  32611. the pointer (see the code snippets above).
  32612. 
  32613. File: gccint.info, Node: GGC Roots, Next: Files, Prev: User GC, Up: Type Information
  32614. 22.4 Marking Roots for the Garbage Collector
  32615. ============================================
  32616. In addition to keeping track of types, the type machinery also locates
  32617. the global variables ("roots") that the garbage collector starts at.
  32618. Roots must be declared using one of the following syntaxes:
  32619. * 'extern GTY(([OPTIONS])) TYPE NAME;'
  32620. * 'static GTY(([OPTIONS])) TYPE NAME;'
  32621. The syntax
  32622. * 'GTY(([OPTIONS])) TYPE NAME;'
  32623. is _not_ accepted. There should be an 'extern' declaration of such a
  32624. variable in a header somewhere--mark that, not the definition. Or, if
  32625. the variable is only used in one file, make it 'static'.
  32626. 
  32627. File: gccint.info, Node: Files, Next: Invoking the garbage collector, Prev: GGC Roots, Up: Type Information
  32628. 22.5 Source Files Containing Type Information
  32629. =============================================
  32630. Whenever you add 'GTY' markers to a source file that previously had
  32631. none, or create a new source file containing 'GTY' markers, there are
  32632. three things you need to do:
  32633. 1. You need to add the file to the list of source files the type
  32634. machinery scans. There are four cases:
  32635. a. For a back-end file, this is usually done automatically; if
  32636. not, you should add it to 'target_gtfiles' in the appropriate
  32637. port's entries in 'config.gcc'.
  32638. b. For files shared by all front ends, add the filename to the
  32639. 'GTFILES' variable in 'Makefile.in'.
  32640. c. For files that are part of one front end, add the filename to
  32641. the 'gtfiles' variable defined in the appropriate
  32642. 'config-lang.in'. Headers should appear before non-headers in
  32643. this list.
  32644. d. For files that are part of some but not all front ends, add
  32645. the filename to the 'gtfiles' variable of _all_ the front ends
  32646. that use it.
  32647. 2. If the file was a header file, you'll need to check that it's
  32648. included in the right place to be visible to the generated files.
  32649. For a back-end header file, this should be done automatically. For
  32650. a front-end header file, it needs to be included by the same file
  32651. that includes 'gtype-LANG.h'. For other header files, it needs to
  32652. be included in 'gtype-desc.c', which is a generated file, so add it
  32653. to 'ifiles' in 'open_base_file' in 'gengtype.c'.
  32654. For source files that aren't header files, the machinery will
  32655. generate a header file that should be included in the source file
  32656. you just changed. The file will be called 'gt-PATH.h' where PATH
  32657. is the pathname relative to the 'gcc' directory with slashes
  32658. replaced by -, so for example the header file to be included in
  32659. 'cp/parser.c' is called 'gt-cp-parser.c'. The generated header
  32660. file should be included after everything else in the source file.
  32661. Don't forget to mention this file as a dependency in the
  32662. 'Makefile'!
  32663. For language frontends, there is another file that needs to be included
  32664. somewhere. It will be called 'gtype-LANG.h', where LANG is the name of
  32665. the subdirectory the language is contained in.
  32666. Plugins can add additional root tables. Run the 'gengtype' utility in
  32667. plugin mode as 'gengtype -P pluginout.h SOURCE-DIR FILE-LIST PLUGIN*.C'
  32668. with your plugin files PLUGIN*.C using 'GTY' to generate the PLUGINOUT.H
  32669. file. The GCC build tree is needed to be present in that mode.
  32670. 
  32671. File: gccint.info, Node: Invoking the garbage collector, Next: Troubleshooting, Prev: Files, Up: Type Information
  32672. 22.6 How to invoke the garbage collector
  32673. ========================================
  32674. The GCC garbage collector GGC is only invoked explicitly. In contrast
  32675. with many other garbage collectors, it is not implicitly invoked by
  32676. allocation routines when a lot of memory has been consumed. So the only
  32677. way to have GGC reclaim storage is to call the 'ggc_collect' function
  32678. explicitly. This call is an expensive operation, as it may have to scan
  32679. the entire heap. Beware that local variables (on the GCC call stack)
  32680. are not followed by such an invocation (as many other garbage collectors
  32681. do): you should reference all your data from static or external 'GTY'-ed
  32682. variables, and it is advised to call 'ggc_collect' with a shallow call
  32683. stack. The GGC is an exact mark and sweep garbage collector (so it does
  32684. not scan the call stack for pointers). In practice GCC passes don't
  32685. often call 'ggc_collect' themselves, because it is called by the pass
  32686. manager between passes.
  32687. At the time of the 'ggc_collect' call all pointers in the GC-marked
  32688. structures must be valid or 'NULL'. In practice this means that there
  32689. should not be uninitialized pointer fields in the structures even if
  32690. your code never reads or writes those fields at a particular instance.
  32691. One way to ensure this is to use cleared versions of allocators unless
  32692. all the fields are initialized manually immediately after allocation.
  32693. 
  32694. File: gccint.info, Node: Troubleshooting, Prev: Invoking the garbage collector, Up: Type Information
  32695. 22.7 Troubleshooting the garbage collector
  32696. ==========================================
  32697. With the current garbage collector implementation, most issues should
  32698. show up as GCC compilation errors. Some of the most commonly
  32699. encountered issues are described below.
  32700. * Gengtype does not produce allocators for a 'GTY'-marked type.
  32701. Gengtype checks if there is at least one possible path from GC
  32702. roots to at least one instance of each type before outputting
  32703. allocators. If there is no such path, the 'GTY' markers will be
  32704. ignored and no allocators will be output. Solve this by making
  32705. sure that there exists at least one such path. If creating it is
  32706. unfeasible or raises a "code smell", consider if you really must
  32707. use GC for allocating such type.
  32708. * Link-time errors about undefined 'gt_ggc_r_foo_bar' and
  32709. similarly-named symbols. Check if your 'foo_bar' source file has
  32710. '#include "gt-foo_bar.h"' as its very last line.
  32711. 
  32712. File: gccint.info, Node: Plugins, Next: LTO, Prev: Type Information, Up: Top
  32713. 23 Plugins
  32714. **********
  32715. GCC plugins are loadable modules that provide extra features to the
  32716. compiler. Like GCC itself they can be distributed in source and binary
  32717. forms.
  32718. GCC plugins provide developers with a rich subset of the GCC API to
  32719. allow them to extend GCC as they see fit. Whether it is writing an
  32720. additional optimization pass, transforming code, or analyzing
  32721. information, plugins can be quite useful.
  32722. * Menu:
  32723. * Plugins loading:: How can we load plugins.
  32724. * Plugin API:: The APIs for plugins.
  32725. * Plugins pass:: How a plugin interact with the pass manager.
  32726. * Plugins GC:: How a plugin Interact with GCC Garbage Collector.
  32727. * Plugins description:: Giving information about a plugin itself.
  32728. * Plugins attr:: Registering custom attributes or pragmas.
  32729. * Plugins recording:: Recording information about pass execution.
  32730. * Plugins gate:: Controlling which passes are being run.
  32731. * Plugins tracking:: Keeping track of available passes.
  32732. * Plugins building:: How can we build a plugin.
  32733. 
  32734. File: gccint.info, Node: Plugins loading, Next: Plugin API, Up: Plugins
  32735. 23.1 Loading Plugins
  32736. ====================
  32737. Plugins are supported on platforms that support '-ldl -rdynamic'. They
  32738. are loaded by the compiler using 'dlopen' and invoked at pre-determined
  32739. locations in the compilation process.
  32740. Plugins are loaded with
  32741. '-fplugin=/path/to/NAME.so' '-fplugin-arg-NAME-KEY1[=VALUE1]'
  32742. The plugin arguments are parsed by GCC and passed to respective plugins
  32743. as key-value pairs. Multiple plugins can be invoked by specifying
  32744. multiple '-fplugin' arguments.
  32745. A plugin can be simply given by its short name (no dots or slashes).
  32746. When simply passing '-fplugin=NAME', the plugin is loaded from the
  32747. 'plugin' directory, so '-fplugin=NAME' is the same as '-fplugin=`gcc
  32748. -print-file-name=plugin`/NAME.so', using backquote shell syntax to query
  32749. the 'plugin' directory.
  32750. 
  32751. File: gccint.info, Node: Plugin API, Next: Plugins pass, Prev: Plugins loading, Up: Plugins
  32752. 23.2 Plugin API
  32753. ===============
  32754. Plugins are activated by the compiler at specific events as defined in
  32755. 'gcc-plugin.h'. For each event of interest, the plugin should call
  32756. 'register_callback' specifying the name of the event and address of the
  32757. callback function that will handle that event.
  32758. The header 'gcc-plugin.h' must be the first gcc header to be included.
  32759. 23.2.1 Plugin license check
  32760. ---------------------------
  32761. Every plugin should define the global symbol 'plugin_is_GPL_compatible'
  32762. to assert that it has been licensed under a GPL-compatible license. If
  32763. this symbol does not exist, the compiler will emit a fatal error and
  32764. exit with the error message:
  32765. fatal error: plugin NAME is not licensed under a GPL-compatible license
  32766. NAME: undefined symbol: plugin_is_GPL_compatible
  32767. compilation terminated
  32768. The declared type of the symbol should be int, to match a forward
  32769. declaration in 'gcc-plugin.h' that suppresses C++ mangling. It does not
  32770. need to be in any allocated section, though. The compiler merely
  32771. asserts that the symbol exists in the global scope. Something like this
  32772. is enough:
  32773. int plugin_is_GPL_compatible;
  32774. 23.2.2 Plugin initialization
  32775. ----------------------------
  32776. Every plugin should export a function called 'plugin_init' that is
  32777. called right after the plugin is loaded. This function is responsible
  32778. for registering all the callbacks required by the plugin and do any
  32779. other required initialization.
  32780. This function is called from 'compile_file' right before invoking the
  32781. parser. The arguments to 'plugin_init' are:
  32782. * 'plugin_info': Plugin invocation information.
  32783. * 'version': GCC version.
  32784. The 'plugin_info' struct is defined as follows:
  32785. struct plugin_name_args
  32786. {
  32787. char *base_name; /* Short name of the plugin
  32788. (filename without .so suffix). */
  32789. const char *full_name; /* Path to the plugin as specified with
  32790. -fplugin=. */
  32791. int argc; /* Number of arguments specified with
  32792. -fplugin-arg-.... */
  32793. struct plugin_argument *argv; /* Array of ARGC key-value pairs. */
  32794. const char *version; /* Version string provided by plugin. */
  32795. const char *help; /* Help string provided by plugin. */
  32796. }
  32797. If initialization fails, 'plugin_init' must return a non-zero value.
  32798. Otherwise, it should return 0.
  32799. The version of the GCC compiler loading the plugin is described by the
  32800. following structure:
  32801. struct plugin_gcc_version
  32802. {
  32803. const char *basever;
  32804. const char *datestamp;
  32805. const char *devphase;
  32806. const char *revision;
  32807. const char *configuration_arguments;
  32808. };
  32809. The function 'plugin_default_version_check' takes two pointers to such
  32810. structure and compare them field by field. It can be used by the
  32811. plugin's 'plugin_init' function.
  32812. The version of GCC used to compile the plugin can be found in the
  32813. symbol 'gcc_version' defined in the header 'plugin-version.h'. The
  32814. recommended version check to perform looks like
  32815. #include "plugin-version.h"
  32816. ...
  32817. int
  32818. plugin_init (struct plugin_name_args *plugin_info,
  32819. struct plugin_gcc_version *version)
  32820. {
  32821. if (!plugin_default_version_check (version, &gcc_version))
  32822. return 1;
  32823. }
  32824. but you can also check the individual fields if you want a less strict
  32825. check.
  32826. 23.2.3 Plugin callbacks
  32827. -----------------------
  32828. Callback functions have the following prototype:
  32829. /* The prototype for a plugin callback function.
  32830. gcc_data - event-specific data provided by GCC
  32831. user_data - plugin-specific data provided by the plug-in. */
  32832. typedef void (*plugin_callback_func)(void *gcc_data, void *user_data);
  32833. Callbacks can be invoked at the following pre-determined events:
  32834. enum plugin_event
  32835. {
  32836. PLUGIN_START_PARSE_FUNCTION, /* Called before parsing the body of a function. */
  32837. PLUGIN_FINISH_PARSE_FUNCTION, /* After finishing parsing a function. */
  32838. PLUGIN_PASS_MANAGER_SETUP, /* To hook into pass manager. */
  32839. PLUGIN_FINISH_TYPE, /* After finishing parsing a type. */
  32840. PLUGIN_FINISH_DECL, /* After finishing parsing a declaration. */
  32841. PLUGIN_FINISH_UNIT, /* Useful for summary processing. */
  32842. PLUGIN_PRE_GENERICIZE, /* Allows to see low level AST in C and C++ frontends. */
  32843. PLUGIN_FINISH, /* Called before GCC exits. */
  32844. PLUGIN_INFO, /* Information about the plugin. */
  32845. PLUGIN_GGC_START, /* Called at start of GCC Garbage Collection. */
  32846. PLUGIN_GGC_MARKING, /* Extend the GGC marking. */
  32847. PLUGIN_GGC_END, /* Called at end of GGC. */
  32848. PLUGIN_REGISTER_GGC_ROOTS, /* Register an extra GGC root table. */
  32849. PLUGIN_ATTRIBUTES, /* Called during attribute registration */
  32850. PLUGIN_START_UNIT, /* Called before processing a translation unit. */
  32851. PLUGIN_PRAGMAS, /* Called during pragma registration. */
  32852. /* Called before first pass from all_passes. */
  32853. PLUGIN_ALL_PASSES_START,
  32854. /* Called after last pass from all_passes. */
  32855. PLUGIN_ALL_PASSES_END,
  32856. /* Called before first ipa pass. */
  32857. PLUGIN_ALL_IPA_PASSES_START,
  32858. /* Called after last ipa pass. */
  32859. PLUGIN_ALL_IPA_PASSES_END,
  32860. /* Allows to override pass gate decision for current_pass. */
  32861. PLUGIN_OVERRIDE_GATE,
  32862. /* Called before executing a pass. */
  32863. PLUGIN_PASS_EXECUTION,
  32864. /* Called before executing subpasses of a GIMPLE_PASS in
  32865. execute_ipa_pass_list. */
  32866. PLUGIN_EARLY_GIMPLE_PASSES_START,
  32867. /* Called after executing subpasses of a GIMPLE_PASS in
  32868. execute_ipa_pass_list. */
  32869. PLUGIN_EARLY_GIMPLE_PASSES_END,
  32870. /* Called when a pass is first instantiated. */
  32871. PLUGIN_NEW_PASS,
  32872. /* Called when a file is #include-d or given via the #line directive.
  32873. This could happen many times. The event data is the included file path,
  32874. as a const char* pointer. */
  32875. PLUGIN_INCLUDE_FILE,
  32876. PLUGIN_EVENT_FIRST_DYNAMIC /* Dummy event used for indexing callback
  32877. array. */
  32878. };
  32879. In addition, plugins can also look up the enumerator of a named event,
  32880. and / or generate new events dynamically, by calling the function
  32881. 'get_named_event_id'.
  32882. To register a callback, the plugin calls 'register_callback' with the
  32883. arguments:
  32884. * 'char *name': Plugin name.
  32885. * 'int event': The event code.
  32886. * 'plugin_callback_func callback': The function that handles 'event'.
  32887. * 'void *user_data': Pointer to plugin-specific data.
  32888. For the PLUGIN_PASS_MANAGER_SETUP, PLUGIN_INFO, and
  32889. PLUGIN_REGISTER_GGC_ROOTS pseudo-events the 'callback' should be null,
  32890. and the 'user_data' is specific.
  32891. When the PLUGIN_PRAGMAS event is triggered (with a null pointer as data
  32892. from GCC), plugins may register their own pragmas. Notice that pragmas
  32893. are not available from 'lto1', so plugins used with '-flto' option to
  32894. GCC during link-time optimization cannot use pragmas and do not even see
  32895. functions like 'c_register_pragma' or 'pragma_lex'.
  32896. The PLUGIN_INCLUDE_FILE event, with a 'const char*' file path as GCC
  32897. data, is triggered for processing of '#include' or '#line' directives.
  32898. The PLUGIN_FINISH event is the last time that plugins can call GCC
  32899. functions, notably emit diagnostics with 'warning', 'error' etc.
  32900. 
  32901. File: gccint.info, Node: Plugins pass, Next: Plugins GC, Prev: Plugin API, Up: Plugins
  32902. 23.3 Interacting with the pass manager
  32903. ======================================
  32904. There needs to be a way to add/reorder/remove passes dynamically. This
  32905. is useful for both analysis plugins (plugging in after a certain pass
  32906. such as CFG or an IPA pass) and optimization plugins.
  32907. Basic support for inserting new passes or replacing existing passes is
  32908. provided. A plugin registers a new pass with GCC by calling
  32909. 'register_callback' with the 'PLUGIN_PASS_MANAGER_SETUP' event and a
  32910. pointer to a 'struct register_pass_info' object defined as follows
  32911. enum pass_positioning_ops
  32912. {
  32913. PASS_POS_INSERT_AFTER, // Insert after the reference pass.
  32914. PASS_POS_INSERT_BEFORE, // Insert before the reference pass.
  32915. PASS_POS_REPLACE // Replace the reference pass.
  32916. };
  32917. struct register_pass_info
  32918. {
  32919. struct opt_pass *pass; /* New pass provided by the plugin. */
  32920. const char *reference_pass_name; /* Name of the reference pass for hooking
  32921. up the new pass. */
  32922. int ref_pass_instance_number; /* Insert the pass at the specified
  32923. instance number of the reference pass. */
  32924. /* Do it for every instance if it is 0. */
  32925. enum pass_positioning_ops pos_op; /* how to insert the new pass. */
  32926. };
  32927. /* Sample plugin code that registers a new pass. */
  32928. int
  32929. plugin_init (struct plugin_name_args *plugin_info,
  32930. struct plugin_gcc_version *version)
  32931. {
  32932. struct register_pass_info pass_info;
  32933. ...
  32934. /* Code to fill in the pass_info object with new pass information. */
  32935. ...
  32936. /* Register the new pass. */
  32937. register_callback (plugin_info->base_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &pass_info);
  32938. ...
  32939. }
  32940. 
  32941. File: gccint.info, Node: Plugins GC, Next: Plugins description, Prev: Plugins pass, Up: Plugins
  32942. 23.4 Interacting with the GCC Garbage Collector
  32943. ===============================================
  32944. Some plugins may want to be informed when GGC (the GCC Garbage
  32945. Collector) is running. They can register callbacks for the
  32946. 'PLUGIN_GGC_START' and 'PLUGIN_GGC_END' events (for which the callback
  32947. is called with a null 'gcc_data') to be notified of the start or end of
  32948. the GCC garbage collection.
  32949. Some plugins may need to have GGC mark additional data. This can be
  32950. done by registering a callback (called with a null 'gcc_data') for the
  32951. 'PLUGIN_GGC_MARKING' event. Such callbacks can call the 'ggc_set_mark'
  32952. routine, preferably through the 'ggc_mark' macro (and conversely, these
  32953. routines should usually not be used in plugins outside of the
  32954. 'PLUGIN_GGC_MARKING' event). Plugins that wish to hold weak references
  32955. to gc data may also use this event to drop weak references when the
  32956. object is about to be collected. The 'ggc_marked_p' function can be
  32957. used to tell if an object is marked, or is about to be collected. The
  32958. 'gt_clear_cache' overloads which some types define may also be of use in
  32959. managing weak references.
  32960. Some plugins may need to add extra GGC root tables, e.g. to handle
  32961. their own 'GTY'-ed data. This can be done with the
  32962. 'PLUGIN_REGISTER_GGC_ROOTS' pseudo-event with a null callback and the
  32963. extra root table (of type 'struct ggc_root_tab*') as 'user_data'.
  32964. Running the 'gengtype -p SOURCE-DIR FILE-LIST PLUGIN*.C ...' utility
  32965. generates these extra root tables.
  32966. You should understand the details of memory management inside GCC
  32967. before using 'PLUGIN_GGC_MARKING' or 'PLUGIN_REGISTER_GGC_ROOTS'.
  32968. 
  32969. File: gccint.info, Node: Plugins description, Next: Plugins attr, Prev: Plugins GC, Up: Plugins
  32970. 23.5 Giving information about a plugin
  32971. ======================================
  32972. A plugin should give some information to the user about itself. This
  32973. uses the following structure:
  32974. struct plugin_info
  32975. {
  32976. const char *version;
  32977. const char *help;
  32978. };
  32979. Such a structure is passed as the 'user_data' by the plugin's init
  32980. routine using 'register_callback' with the 'PLUGIN_INFO' pseudo-event
  32981. and a null callback.
  32982. 
  32983. File: gccint.info, Node: Plugins attr, Next: Plugins recording, Prev: Plugins description, Up: Plugins
  32984. 23.6 Registering custom attributes or pragmas
  32985. =============================================
  32986. For analysis (or other) purposes it is useful to be able to add custom
  32987. attributes or pragmas.
  32988. The 'PLUGIN_ATTRIBUTES' callback is called during attribute
  32989. registration. Use the 'register_attribute' function to register custom
  32990. attributes.
  32991. /* Attribute handler callback */
  32992. static tree
  32993. handle_user_attribute (tree *node, tree name, tree args,
  32994. int flags, bool *no_add_attrs)
  32995. {
  32996. return NULL_TREE;
  32997. }
  32998. /* Attribute definition */
  32999. static struct attribute_spec user_attr =
  33000. { "user", 1, 1, false, false, false, handle_user_attribute, false };
  33001. /* Plugin callback called during attribute registration.
  33002. Registered with register_callback (plugin_name, PLUGIN_ATTRIBUTES, register_attributes, NULL)
  33003. */
  33004. static void
  33005. register_attributes (void *event_data, void *data)
  33006. {
  33007. warning (0, G_("Callback to register attributes"));
  33008. register_attribute (&user_attr);
  33009. }
  33010. The PLUGIN_PRAGMAS callback is called once during pragmas registration.
  33011. Use the 'c_register_pragma', 'c_register_pragma_with_data',
  33012. 'c_register_pragma_with_expansion',
  33013. 'c_register_pragma_with_expansion_and_data' functions to register custom
  33014. pragmas and their handlers (which often want to call 'pragma_lex') from
  33015. 'c-family/c-pragma.h'.
  33016. /* Plugin callback called during pragmas registration. Registered with
  33017. register_callback (plugin_name, PLUGIN_PRAGMAS,
  33018. register_my_pragma, NULL);
  33019. */
  33020. static void
  33021. register_my_pragma (void *event_data, void *data)
  33022. {
  33023. warning (0, G_("Callback to register pragmas"));
  33024. c_register_pragma ("GCCPLUGIN", "sayhello", handle_pragma_sayhello);
  33025. }
  33026. It is suggested to pass '"GCCPLUGIN"' (or a short name identifying your
  33027. plugin) as the "space" argument of your pragma.
  33028. Pragmas registered with 'c_register_pragma_with_expansion' or
  33029. 'c_register_pragma_with_expansion_and_data' support preprocessor
  33030. expansions. For example:
  33031. #define NUMBER 10
  33032. #pragma GCCPLUGIN foothreshold (NUMBER)
  33033. 
  33034. File: gccint.info, Node: Plugins recording, Next: Plugins gate, Prev: Plugins attr, Up: Plugins
  33035. 23.7 Recording information about pass execution
  33036. ===============================================
  33037. The event PLUGIN_PASS_EXECUTION passes the pointer to the executed pass
  33038. (the same as current_pass) as 'gcc_data' to the callback. You can also
  33039. inspect cfun to find out about which function this pass is executed for.
  33040. Note that this event will only be invoked if the gate check (if
  33041. applicable, modified by PLUGIN_OVERRIDE_GATE) succeeds. You can use
  33042. other hooks, like 'PLUGIN_ALL_PASSES_START', 'PLUGIN_ALL_PASSES_END',
  33043. 'PLUGIN_ALL_IPA_PASSES_START', 'PLUGIN_ALL_IPA_PASSES_END',
  33044. 'PLUGIN_EARLY_GIMPLE_PASSES_START', and/or
  33045. 'PLUGIN_EARLY_GIMPLE_PASSES_END' to manipulate global state in your
  33046. plugin(s) in order to get context for the pass execution.
  33047. 
  33048. File: gccint.info, Node: Plugins gate, Next: Plugins tracking, Prev: Plugins recording, Up: Plugins
  33049. 23.8 Controlling which passes are being run
  33050. ===========================================
  33051. After the original gate function for a pass is called, its result - the
  33052. gate status - is stored as an integer. Then the event
  33053. 'PLUGIN_OVERRIDE_GATE' is invoked, with a pointer to the gate status in
  33054. the 'gcc_data' parameter to the callback function. A nonzero value of
  33055. the gate status means that the pass is to be executed. You can both
  33056. read and write the gate status via the passed pointer.
  33057. 
  33058. File: gccint.info, Node: Plugins tracking, Next: Plugins building, Prev: Plugins gate, Up: Plugins
  33059. 23.9 Keeping track of available passes
  33060. ======================================
  33061. When your plugin is loaded, you can inspect the various pass lists to
  33062. determine what passes are available. However, other plugins might add
  33063. new passes. Also, future changes to GCC might cause generic passes to
  33064. be added after plugin loading. When a pass is first added to one of the
  33065. pass lists, the event 'PLUGIN_NEW_PASS' is invoked, with the callback
  33066. parameter 'gcc_data' pointing to the new pass.
  33067. 
  33068. File: gccint.info, Node: Plugins building, Prev: Plugins tracking, Up: Plugins
  33069. 23.10 Building GCC plugins
  33070. ==========================
  33071. If plugins are enabled, GCC installs the headers needed to build a
  33072. plugin (somewhere in the installation tree, e.g. under '/usr/local').
  33073. In particular a 'plugin/include' directory is installed, containing all
  33074. the header files needed to build plugins.
  33075. On most systems, you can query this 'plugin' directory by invoking 'gcc
  33076. -print-file-name=plugin' (replace if needed 'gcc' with the appropriate
  33077. program path).
  33078. Inside plugins, this 'plugin' directory name can be queried by calling
  33079. 'default_plugin_dir_name ()'.
  33080. Plugins may know, when they are compiled, the GCC version for which
  33081. 'plugin-version.h' is provided. The constant macros
  33082. 'GCCPLUGIN_VERSION_MAJOR', 'GCCPLUGIN_VERSION_MINOR',
  33083. 'GCCPLUGIN_VERSION_PATCHLEVEL', 'GCCPLUGIN_VERSION' are integer numbers,
  33084. so a plugin could ensure it is built for GCC 4.7 with
  33085. #if GCCPLUGIN_VERSION != 4007
  33086. #error this GCC plugin is for GCC 4.7
  33087. #endif
  33088. The following GNU Makefile excerpt shows how to build a simple plugin:
  33089. HOST_GCC=g++
  33090. TARGET_GCC=gcc
  33091. PLUGIN_SOURCE_FILES= plugin1.c plugin2.cc
  33092. GCCPLUGINS_DIR:= $(shell $(TARGET_GCC) -print-file-name=plugin)
  33093. CXXFLAGS+= -I$(GCCPLUGINS_DIR)/include -fPIC -fno-rtti -O2
  33094. plugin.so: $(PLUGIN_SOURCE_FILES)
  33095. $(HOST_GCC) -shared $(CXXFLAGS) $^ -o $@
  33096. A single source file plugin may be built with 'g++ -I`gcc
  33097. -print-file-name=plugin`/include -fPIC -shared -fno-rtti -O2 plugin.c -o
  33098. plugin.so', using backquote shell syntax to query the 'plugin'
  33099. directory.
  33100. When a plugin needs to use 'gengtype', be sure that both 'gengtype' and
  33101. 'gtype.state' have the same version as the GCC for which the plugin is
  33102. built.
  33103. 
  33104. File: gccint.info, Node: LTO, Next: Match and Simplify, Prev: Plugins, Up: Top
  33105. 24 Link Time Optimization
  33106. *************************
  33107. Link Time Optimization (LTO) gives GCC the capability of dumping its
  33108. internal representation (GIMPLE) to disk, so that all the different
  33109. compilation units that make up a single executable can be optimized as a
  33110. single module. This expands the scope of inter-procedural optimizations
  33111. to encompass the whole program (or, rather, everything that is visible
  33112. at link time).
  33113. * Menu:
  33114. * LTO Overview:: Overview of LTO.
  33115. * LTO object file layout:: LTO file sections in ELF.
  33116. * IPA:: Using summary information in IPA passes.
  33117. * WHOPR:: Whole program assumptions,
  33118. linker plugin and symbol visibilities.
  33119. * Internal flags:: Internal flags controlling 'lto1'.
  33120. 
  33121. File: gccint.info, Node: LTO Overview, Next: LTO object file layout, Up: LTO
  33122. 24.1 Design Overview
  33123. ====================
  33124. Link time optimization is implemented as a GCC front end for a bytecode
  33125. representation of GIMPLE that is emitted in special sections of '.o'
  33126. files. Currently, LTO support is enabled in most ELF-based systems, as
  33127. well as darwin, cygwin and mingw systems.
  33128. Since GIMPLE bytecode is saved alongside final object code, object
  33129. files generated with LTO support are larger than regular object files.
  33130. This "fat" object format makes it easy to integrate LTO into existing
  33131. build systems, as one can, for instance, produce archives of the files.
  33132. Additionally, one might be able to ship one set of fat objects which
  33133. could be used both for development and the production of optimized
  33134. builds. A, perhaps surprising, side effect of this feature is that any
  33135. mistake in the toolchain leads to LTO information not being used (e.g.
  33136. an older 'libtool' calling 'ld' directly). This is both an advantage,
  33137. as the system is more robust, and a disadvantage, as the user is not
  33138. informed that the optimization has been disabled.
  33139. The current implementation only produces "fat" objects, effectively
  33140. doubling compilation time and increasing file sizes up to 5x the
  33141. original size. This hides the problem that some tools, such as 'ar' and
  33142. 'nm', need to understand symbol tables of LTO sections. These tools
  33143. were extended to use the plugin infrastructure, and with these problems
  33144. solved, GCC will also support "slim" objects consisting of the
  33145. intermediate code alone.
  33146. At the highest level, LTO splits the compiler in two. The first half
  33147. (the "writer") produces a streaming representation of all the internal
  33148. data structures needed to optimize and generate code. This includes
  33149. declarations, types, the callgraph and the GIMPLE representation of
  33150. function bodies.
  33151. When '-flto' is given during compilation of a source file, the pass
  33152. manager executes all the passes in 'all_lto_gen_passes'. Currently,
  33153. this phase is composed of two IPA passes:
  33154. * 'pass_ipa_lto_gimple_out' This pass executes the function
  33155. 'lto_output' in 'lto-streamer-out.c', which traverses the call
  33156. graph encoding every reachable declaration, type and function.
  33157. This generates a memory representation of all the file sections
  33158. described below.
  33159. * 'pass_ipa_lto_finish_out' This pass executes the function
  33160. 'produce_asm_for_decls' in 'lto-streamer-out.c', which takes the
  33161. memory image built in the previous pass and encodes it in the
  33162. corresponding ELF file sections.
  33163. The second half of LTO support is the "reader". This is implemented as
  33164. the GCC front end 'lto1' in 'lto/lto.c'. When 'collect2' detects a link
  33165. set of '.o'/'.a' files with LTO information and the '-flto' is enabled,
  33166. it invokes 'lto1' which reads the set of files and aggregates them into
  33167. a single translation unit for optimization. The main entry point for
  33168. the reader is 'lto/lto.c':'lto_main'.
  33169. 24.1.1 LTO modes of operation
  33170. -----------------------------
  33171. One of the main goals of the GCC link-time infrastructure was to allow
  33172. effective compilation of large programs. For this reason GCC implements
  33173. two link-time compilation modes.
  33174. 1. _LTO mode_, in which the whole program is read into the compiler at
  33175. link-time and optimized in a similar way as if it were a single
  33176. source-level compilation unit.
  33177. 2. _WHOPR or partitioned mode_, designed to utilize multiple CPUs
  33178. and/or a distributed compilation environment to quickly link large
  33179. applications. WHOPR stands for WHOle Program optimizeR (not to be
  33180. confused with the semantics of '-fwhole-program'). It partitions
  33181. the aggregated callgraph from many different '.o' files and
  33182. distributes the compilation of the sub-graphs to different CPUs.
  33183. Note that distributed compilation is not implemented yet, but since
  33184. the parallelism is facilitated via generating a 'Makefile', it
  33185. would be easy to implement.
  33186. WHOPR splits LTO into three main stages:
  33187. 1. Local generation (LGEN) This stage executes in parallel. Every
  33188. file in the program is compiled into the intermediate language and
  33189. packaged together with the local call-graph and summary
  33190. information. This stage is the same for both the LTO and WHOPR
  33191. compilation mode.
  33192. 2. Whole Program Analysis (WPA) WPA is performed sequentially. The
  33193. global call-graph is generated, and a global analysis procedure
  33194. makes transformation decisions. The global call-graph is
  33195. partitioned to facilitate parallel optimization during phase 3.
  33196. The results of the WPA stage are stored into new object files which
  33197. contain the partitions of program expressed in the intermediate
  33198. language and the optimization decisions.
  33199. 3. Local transformations (LTRANS) This stage executes in parallel.
  33200. All the decisions made during phase 2 are implemented locally in
  33201. each partitioned object file, and the final object code is
  33202. generated. Optimizations which cannot be decided efficiently
  33203. during the phase 2 may be performed on the local call-graph
  33204. partitions.
  33205. WHOPR can be seen as an extension of the usual LTO mode of compilation.
  33206. In LTO, WPA and LTRANS are executed within a single execution of the
  33207. compiler, after the whole program has been read into memory.
  33208. When compiling in WHOPR mode, the callgraph is partitioned during the
  33209. WPA stage. The whole program is split into a given number of partitions
  33210. of roughly the same size. The compiler tries to minimize the number of
  33211. references which cross partition boundaries. The main advantage of
  33212. WHOPR is to allow the parallel execution of LTRANS stages, which are the
  33213. most time-consuming part of the compilation process. Additionally, it
  33214. avoids the need to load the whole program into memory.
  33215. 
  33216. File: gccint.info, Node: LTO object file layout, Next: IPA, Prev: LTO Overview, Up: LTO
  33217. 24.2 LTO file sections
  33218. ======================
  33219. LTO information is stored in several ELF sections inside object files.
  33220. Data structures and enum codes for sections are defined in
  33221. 'lto-streamer.h'.
  33222. These sections are emitted from 'lto-streamer-out.c' and mapped in all
  33223. at once from 'lto/lto.c':'lto_file_read'. The individual functions
  33224. dealing with the reading/writing of each section are described below.
  33225. * Command line options ('.gnu.lto_.opts')
  33226. This section contains the command line options used to generate the
  33227. object files. This is used at link time to determine the
  33228. optimization level and other settings when they are not explicitly
  33229. specified at the linker command line.
  33230. Currently, GCC does not support combining LTO object files compiled
  33231. with different set of the command line options into a single
  33232. binary. At link time, the options given on the command line and
  33233. the options saved on all the files in a link-time set are applied
  33234. globally. No attempt is made at validating the combination of
  33235. flags (other than the usual validation done by option processing).
  33236. This is implemented in 'lto/lto.c':'lto_read_all_file_options'.
  33237. * Symbol table ('.gnu.lto_.symtab')
  33238. This table replaces the ELF symbol table for functions and
  33239. variables represented in the LTO IL. Symbols used and exported by
  33240. the optimized assembly code of "fat" objects might not match the
  33241. ones used and exported by the intermediate code. This table is
  33242. necessary because the intermediate code is less optimized and thus
  33243. requires a separate symbol table.
  33244. Additionally, the binary code in the "fat" object will lack a call
  33245. to a function, since the call was optimized out at compilation time
  33246. after the intermediate language was streamed out. In some special
  33247. cases, the same optimization may not happen during link-time
  33248. optimization. This would lead to an undefined symbol if only one
  33249. symbol table was used.
  33250. The symbol table is emitted in
  33251. 'lto-streamer-out.c':'produce_symtab'.
  33252. * Global declarations and types ('.gnu.lto_.decls')
  33253. This section contains an intermediate language dump of all
  33254. declarations and types required to represent the callgraph, static
  33255. variables and top-level debug info.
  33256. The contents of this section are emitted in
  33257. 'lto-streamer-out.c':'produce_asm_for_decls'. Types and symbols
  33258. are emitted in a topological order that preserves the sharing of
  33259. pointers when the file is read back in
  33260. ('lto.c':'read_cgraph_and_symbols').
  33261. * The callgraph ('.gnu.lto_.cgraph')
  33262. This section contains the basic data structure used by the GCC
  33263. inter-procedural optimization infrastructure. This section stores
  33264. an annotated multi-graph which represents the functions and call
  33265. sites as well as the variables, aliases and top-level 'asm'
  33266. statements.
  33267. This section is emitted in 'lto-streamer-out.c':'output_cgraph' and
  33268. read in 'lto-cgraph.c':'input_cgraph'.
  33269. * IPA references ('.gnu.lto_.refs')
  33270. This section contains references between function and static
  33271. variables. It is emitted by 'lto-cgraph.c':'output_refs' and read
  33272. by 'lto-cgraph.c':'input_refs'.
  33273. * Function bodies ('.gnu.lto_.function_body.<name>')
  33274. This section contains function bodies in the intermediate language
  33275. representation. Every function body is in a separate section to
  33276. allow copying of the section independently to different object
  33277. files or reading the function on demand.
  33278. Functions are emitted in 'lto-streamer-out.c':'output_function' and
  33279. read in 'lto-streamer-in.c':'input_function'.
  33280. * Static variable initializers ('.gnu.lto_.vars')
  33281. This section contains all the symbols in the global variable pool.
  33282. It is emitted by 'lto-cgraph.c':'output_varpool' and read in
  33283. 'lto-cgraph.c':'input_cgraph'.
  33284. * Summaries and optimization summaries used by IPA passes
  33285. ('.gnu.lto_.<xxx>', where '<xxx>' is one of 'jmpfuncs', 'pureconst'
  33286. or 'reference')
  33287. These sections are used by IPA passes that need to emit summary
  33288. information during LTO generation to be read and aggregated at link
  33289. time. Each pass is responsible for implementing two pass manager
  33290. hooks: one for writing the summary and another for reading it in.
  33291. The format of these sections is entirely up to each individual
  33292. pass. The only requirement is that the writer and reader hooks
  33293. agree on the format.
  33294. 
  33295. File: gccint.info, Node: IPA, Next: WHOPR, Prev: LTO object file layout, Up: LTO
  33296. 24.3 Using summary information in IPA passes
  33297. ============================================
  33298. Programs are represented internally as a _callgraph_ (a multi-graph
  33299. where nodes are functions and edges are call sites) and a _varpool_ (a
  33300. list of static and external variables in the program).
  33301. The inter-procedural optimization is organized as a sequence of
  33302. individual passes, which operate on the callgraph and the varpool. To
  33303. make the implementation of WHOPR possible, every inter-procedural
  33304. optimization pass is split into several stages that are executed at
  33305. different times during WHOPR compilation:
  33306. * LGEN time
  33307. 1. _Generate summary_ ('generate_summary' in 'struct
  33308. ipa_opt_pass_d'). This stage analyzes every function body and
  33309. variable initializer is examined and stores relevant
  33310. information into a pass-specific data structure.
  33311. 2. _Write summary_ ('write_summary' in 'struct ipa_opt_pass_d').
  33312. This stage writes all the pass-specific information generated
  33313. by 'generate_summary'. Summaries go into their own
  33314. 'LTO_section_*' sections that have to be declared in
  33315. 'lto-streamer.h':'enum lto_section_type'. A new section is
  33316. created by calling 'create_output_block' and data can be
  33317. written using the 'lto_output_*' routines.
  33318. * WPA time
  33319. 1. _Read summary_ ('read_summary' in 'struct ipa_opt_pass_d').
  33320. This stage reads all the pass-specific information in exactly
  33321. the same order that it was written by 'write_summary'.
  33322. 2. _Execute_ ('execute' in 'struct opt_pass'). This performs
  33323. inter-procedural propagation. This must be done without
  33324. actual access to the individual function bodies or variable
  33325. initializers. Typically, this results in a transitive closure
  33326. operation over the summary information of all the nodes in the
  33327. callgraph.
  33328. 3. _Write optimization summary_ ('write_optimization_summary' in
  33329. 'struct ipa_opt_pass_d'). This writes the result of the
  33330. inter-procedural propagation into the object file. This can
  33331. use the same data structures and helper routines used in
  33332. 'write_summary'.
  33333. * LTRANS time
  33334. 1. _Read optimization summary_ ('read_optimization_summary' in
  33335. 'struct ipa_opt_pass_d'). The counterpart to
  33336. 'write_optimization_summary'. This reads the interprocedural
  33337. optimization decisions in exactly the same format emitted by
  33338. 'write_optimization_summary'.
  33339. 2. _Transform_ ('function_transform' and 'variable_transform' in
  33340. 'struct ipa_opt_pass_d'). The actual function bodies and
  33341. variable initializers are updated based on the information
  33342. passed down from the _Execute_ stage.
  33343. The implementation of the inter-procedural passes are shared between
  33344. LTO, WHOPR and classic non-LTO compilation.
  33345. * During the traditional file-by-file mode every pass executes its
  33346. own _Generate summary_, _Execute_, and _Transform_ stages within
  33347. the single execution context of the compiler.
  33348. * In LTO compilation mode, every pass uses _Generate summary_ and
  33349. _Write summary_ stages at compilation time, while the _Read
  33350. summary_, _Execute_, and _Transform_ stages are executed at link
  33351. time.
  33352. * In WHOPR mode all stages are used.
  33353. To simplify development, the GCC pass manager differentiates between
  33354. normal inter-procedural passes and small inter-procedural passes. A
  33355. _small inter-procedural pass_ ('SIMPLE_IPA_PASS') is a pass that does
  33356. everything at once and thus it can not be executed during WPA in WHOPR
  33357. mode. It defines only the _Execute_ stage and during this stage it
  33358. accesses and modifies the function bodies. Such passes are useful for
  33359. optimization at LGEN or LTRANS time and are used, for example, to
  33360. implement early optimization before writing object files. The simple
  33361. inter-procedural passes can also be used for easier prototyping and
  33362. development of a new inter-procedural pass.
  33363. 24.3.1 Virtual clones
  33364. ---------------------
  33365. One of the main challenges of introducing the WHOPR compilation mode was
  33366. addressing the interactions between optimization passes. In LTO
  33367. compilation mode, the passes are executed in a sequence, each of which
  33368. consists of analysis (or _Generate summary_), propagation (or _Execute_)
  33369. and _Transform_ stages. Once the work of one pass is finished, the next
  33370. pass sees the updated program representation and can execute. This
  33371. makes the individual passes dependent on each other.
  33372. In WHOPR mode all passes first execute their _Generate summary_ stage.
  33373. Then summary writing marks the end of the LGEN stage. At WPA time, the
  33374. summaries are read back into memory and all passes run the _Execute_
  33375. stage. Optimization summaries are streamed and sent to LTRANS, where
  33376. all the passes execute the _Transform_ stage.
  33377. Most optimization passes split naturally into analysis, propagation and
  33378. transformation stages. But some do not. The main problem arises when
  33379. one pass performs changes and the following pass gets confused by seeing
  33380. different callgraphs between the _Transform_ stage and the _Generate
  33381. summary_ or _Execute_ stage. This means that the passes are required to
  33382. communicate their decisions with each other.
  33383. To facilitate this communication, the GCC callgraph infrastructure
  33384. implements _virtual clones_, a method of representing the changes
  33385. performed by the optimization passes in the callgraph without needing to
  33386. update function bodies.
  33387. A _virtual clone_ in the callgraph is a function that has no associated
  33388. body, just a description of how to create its body based on a different
  33389. function (which itself may be a virtual clone).
  33390. The description of function modifications includes adjustments to the
  33391. function's signature (which allows, for example, removing or adding
  33392. function arguments), substitutions to perform on the function body, and,
  33393. for inlined functions, a pointer to the function that it will be inlined
  33394. into.
  33395. It is also possible to redirect any edge of the callgraph from a
  33396. function to its virtual clone. This implies updating of the call site
  33397. to adjust for the new function signature.
  33398. Most of the transformations performed by inter-procedural optimizations
  33399. can be represented via virtual clones. For instance, a constant
  33400. propagation pass can produce a virtual clone of the function which
  33401. replaces one of its arguments by a constant. The inliner can represent
  33402. its decisions by producing a clone of a function whose body will be
  33403. later integrated into a given function.
  33404. Using _virtual clones_, the program can be easily updated during the
  33405. _Execute_ stage, solving most of pass interactions problems that would
  33406. otherwise occur during _Transform_.
  33407. Virtual clones are later materialized in the LTRANS stage and turned
  33408. into real functions. Passes executed after the virtual clone were
  33409. introduced also perform their _Transform_ stage on new functions, so for
  33410. a pass there is no significant difference between operating on a real
  33411. function or a virtual clone introduced before its _Execute_ stage.
  33412. Optimization passes then work on virtual clones introduced before their
  33413. _Execute_ stage as if they were real functions. The only difference is
  33414. that clones are not visible during the _Generate Summary_ stage.
  33415. To keep function summaries updated, the callgraph interface allows an
  33416. optimizer to register a callback that is called every time a new clone
  33417. is introduced as well as when the actual function or variable is
  33418. generated or when a function or variable is removed. These hooks are
  33419. registered in the _Generate summary_ stage and allow the pass to keep
  33420. its information intact until the _Execute_ stage. The same hooks can
  33421. also be registered during the _Execute_ stage to keep the optimization
  33422. summaries updated for the _Transform_ stage.
  33423. 24.3.2 IPA references
  33424. ---------------------
  33425. GCC represents IPA references in the callgraph. For a function or
  33426. variable 'A', the _IPA reference_ is a list of all locations where the
  33427. address of 'A' is taken and, when 'A' is a variable, a list of all
  33428. direct stores and reads to/from 'A'. References represent an oriented
  33429. multi-graph on the union of nodes of the callgraph and the varpool. See
  33430. 'ipa-reference.c':'ipa_reference_write_optimization_summary' and
  33431. 'ipa-reference.c':'ipa_reference_read_optimization_summary' for details.
  33432. 24.3.3 Jump functions
  33433. ---------------------
  33434. Suppose that an optimization pass sees a function 'A' and it knows the
  33435. values of (some of) its arguments. The _jump function_ describes the
  33436. value of a parameter of a given function call in function 'A' based on
  33437. this knowledge.
  33438. Jump functions are used by several optimizations, such as the
  33439. inter-procedural constant propagation pass and the devirtualization
  33440. pass. The inliner also uses jump functions to perform inlining of
  33441. callbacks.
  33442. 
  33443. File: gccint.info, Node: WHOPR, Next: Internal flags, Prev: IPA, Up: LTO
  33444. 24.4 Whole program assumptions, linker plugin and symbol visibilities
  33445. =====================================================================
  33446. Link-time optimization gives relatively minor benefits when used alone.
  33447. The problem is that propagation of inter-procedural information does not
  33448. work well across functions and variables that are called or referenced
  33449. by other compilation units (such as from a dynamically linked library).
  33450. We say that such functions and variables are _externally visible_.
  33451. To make the situation even more difficult, many applications organize
  33452. themselves as a set of shared libraries, and the default ELF visibility
  33453. rules allow one to overwrite any externally visible symbol with a
  33454. different symbol at runtime. This basically disables any optimizations
  33455. across such functions and variables, because the compiler cannot be sure
  33456. that the function body it is seeing is the same function body that will
  33457. be used at runtime. Any function or variable not declared 'static' in
  33458. the sources degrades the quality of inter-procedural optimization.
  33459. To avoid this problem the compiler must assume that it sees the whole
  33460. program when doing link-time optimization. Strictly speaking, the whole
  33461. program is rarely visible even at link-time. Standard system libraries
  33462. are usually linked dynamically or not provided with the link-time
  33463. information. In GCC, the whole program option ('-fwhole-program')
  33464. asserts that every function and variable defined in the current
  33465. compilation unit is static, except for function 'main' (note: at link
  33466. time, the current unit is the union of all objects compiled with LTO).
  33467. Since some functions and variables need to be referenced externally, for
  33468. example by another DSO or from an assembler file, GCC also provides the
  33469. function and variable attribute 'externally_visible' which can be used
  33470. to disable the effect of '-fwhole-program' on a specific symbol.
  33471. The whole program mode assumptions are slightly more complex in C++,
  33472. where inline functions in headers are put into _COMDAT_ sections.
  33473. COMDAT function and variables can be defined by multiple object files
  33474. and their bodies are unified at link-time and dynamic link-time. COMDAT
  33475. functions are changed to local only when their address is not taken and
  33476. thus un-sharing them with a library is not harmful. COMDAT variables
  33477. always remain externally visible, however for readonly variables it is
  33478. assumed that their initializers cannot be overwritten by a different
  33479. value.
  33480. GCC provides the function and variable attribute 'visibility' that can
  33481. be used to specify the visibility of externally visible symbols (or
  33482. alternatively an '-fdefault-visibility' command line option). ELF
  33483. defines the 'default', 'protected', 'hidden' and 'internal'
  33484. visibilities.
  33485. The most commonly used is visibility is 'hidden'. It specifies that
  33486. the symbol cannot be referenced from outside of the current shared
  33487. library. Unfortunately, this information cannot be used directly by the
  33488. link-time optimization in the compiler since the whole shared library
  33489. also might contain non-LTO objects and those are not visible to the
  33490. compiler.
  33491. GCC solves this problem using linker plugins. A _linker plugin_ is an
  33492. interface to the linker that allows an external program to claim the
  33493. ownership of a given object file. The linker then performs the linking
  33494. procedure by querying the plugin about the symbol table of the claimed
  33495. objects and once the linking decisions are complete, the plugin is
  33496. allowed to provide the final object file before the actual linking is
  33497. made. The linker plugin obtains the symbol resolution information which
  33498. specifies which symbols provided by the claimed objects are bound from
  33499. the rest of a binary being linked.
  33500. GCC is designed to be independent of the rest of the toolchain and aims
  33501. to support linkers without plugin support. For this reason it does not
  33502. use the linker plugin by default. Instead, the object files are
  33503. examined by 'collect2' before being passed to the linker and objects
  33504. found to have LTO sections are passed to 'lto1' first. This mode does
  33505. not work for library archives. The decision on what object files from
  33506. the archive are needed depends on the actual linking and thus GCC would
  33507. have to implement the linker itself. The resolution information is
  33508. missing too and thus GCC needs to make an educated guess based on
  33509. '-fwhole-program'. Without the linker plugin GCC also assumes that
  33510. symbols are declared 'hidden' and not referred by non-LTO code by
  33511. default.
  33512. 
  33513. File: gccint.info, Node: Internal flags, Prev: WHOPR, Up: LTO
  33514. 24.5 Internal flags controlling 'lto1'
  33515. ======================================
  33516. The following flags are passed into 'lto1' and are not meant to be used
  33517. directly from the command line.
  33518. * -fwpa This option runs the serial part of the link-time optimizer
  33519. performing the inter-procedural propagation (WPA mode). The
  33520. compiler reads in summary information from all inputs and performs
  33521. an analysis based on summary information only. It generates object
  33522. files for subsequent runs of the link-time optimizer where
  33523. individual object files are optimized using both summary
  33524. information from the WPA mode and the actual function bodies. It
  33525. then drives the LTRANS phase.
  33526. * -fltrans This option runs the link-time optimizer in the
  33527. local-transformation (LTRANS) mode, which reads in output from a
  33528. previous run of the LTO in WPA mode. In the LTRANS mode, LTO
  33529. optimizes an object and produces the final assembly.
  33530. * -fltrans-output-list=FILE This option specifies a file to which the
  33531. names of LTRANS output files are written. This option is only
  33532. meaningful in conjunction with '-fwpa'.
  33533. * -fresolution=FILE This option specifies the linker resolution file.
  33534. This option is only meaningful in conjunction with '-fwpa' and as
  33535. option to pass through to the LTO linker plugin.
  33536. 
  33537. File: gccint.info, Node: Match and Simplify, Next: Funding, Prev: LTO, Up: Top
  33538. 25 Match and Simplify
  33539. *********************
  33540. The GIMPLE and GENERIC pattern matching project match-and-simplify tries
  33541. to address several issues.
  33542. 1. unify expression simplifications currently spread and duplicated
  33543. over separate files like fold-const.c, gimple-fold.c and builtins.c
  33544. 2. allow for a cheap way to implement building and simplifying
  33545. non-trivial GIMPLE expressions, avoiding the need to go through
  33546. building and simplifying GENERIC via fold_buildN and then
  33547. gimplifying via force_gimple_operand
  33548. To address these the project introduces a simple domain specific
  33549. language to write expression simplifications from which code targeting
  33550. GIMPLE and GENERIC is auto-generated. The GENERIC variant follows the
  33551. fold_buildN API while for the GIMPLE variant and to address 2) new APIs
  33552. are introduced.
  33553. * Menu:
  33554. * GIMPLE API::
  33555. * The Language::
  33556. 
  33557. File: gccint.info, Node: GIMPLE API, Next: The Language, Up: Match and Simplify
  33558. 25.1 GIMPLE API
  33559. ===============
  33560. -- GIMPLE function: tree gimple_simplify (enum tree_code, tree, tree,
  33561. gimple_seq *, tree (*)(tree))
  33562. -- GIMPLE function: tree gimple_simplify (enum tree_code, tree, tree,
  33563. tree, gimple_seq *, tree (*)(tree))
  33564. -- GIMPLE function: tree gimple_simplify (enum tree_code, tree, tree,
  33565. tree, tree, gimple_seq *, tree (*)(tree))
  33566. -- GIMPLE function: tree gimple_simplify (enum built_in_function, tree,
  33567. tree, gimple_seq *, tree (*)(tree))
  33568. -- GIMPLE function: tree gimple_simplify (enum built_in_function, tree,
  33569. tree, tree, gimple_seq *, tree (*)(tree))
  33570. -- GIMPLE function: tree gimple_simplify (enum built_in_function, tree,
  33571. tree, tree, tree, gimple_seq *, tree (*)(tree))
  33572. The main GIMPLE API entry to the expression simplifications
  33573. mimicing that of the GENERIC fold_{unary,binary,ternary} functions.
  33574. thus providing n-ary overloads for operation or function. The
  33575. additional arguments are a gimple_seq where built statements are
  33576. inserted on (if 'NULL' then simplifications requiring new statements are
  33577. not performed) and a valueization hook that can be used to tie
  33578. simplifications to a SSA lattice.
  33579. In addition to those APIs 'fold_stmt' is overloaded with a valueization
  33580. hook:
  33581. -- bool: fold_stmt (gimple_stmt_iterator *, tree (*)(tree));
  33582. Ontop of these a 'fold_buildN'-like API for GIMPLE is introduced:
  33583. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  33584. tree_code, tree, tree, tree (*valueize) (tree) = NULL);
  33585. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  33586. tree_code, tree, tree, tree, tree (*valueize) (tree) = NULL);
  33587. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  33588. tree_code, tree, tree, tree, tree, tree (*valueize) (tree) =
  33589. NULL);
  33590. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  33591. built_in_function, tree, tree, tree (*valueize) (tree) =
  33592. NULL);
  33593. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  33594. built_in_function, tree, tree, tree, tree (*valueize) (tree) =
  33595. NULL);
  33596. -- GIMPLE function: tree gimple_build (gimple_seq *, location_t, enum
  33597. built_in_function, tree, tree, tree, tree, tree (*valueize)
  33598. (tree) = NULL);
  33599. -- GIMPLE function: tree gimple_convert (gimple_seq *, location_t,
  33600. tree, tree);
  33601. which is supposed to replace 'force_gimple_operand (fold_buildN (...),
  33602. ...)' and calls to 'fold_convert'. Overloads without the 'location_t'
  33603. argument exist. Built statements are inserted on the provided sequence
  33604. and simplification is performed using the optional valueization hook.
  33605. 
  33606. File: gccint.info, Node: The Language, Prev: GIMPLE API, Up: Match and Simplify
  33607. 25.2 The Language
  33608. =================
  33609. The language to write expression simplifications in resembles other
  33610. domain-specific languages GCC uses. Thus it is lispy. Lets start with
  33611. an example from the match.pd file:
  33612. (simplify
  33613. (bit_and @0 integer_all_onesp)
  33614. @0)
  33615. This example contains all required parts of an expression
  33616. simplification. A simplification is wrapped inside a '(simplify ...)'
  33617. expression. That contains at least two operands - an expression that is
  33618. matched with the GIMPLE or GENERIC IL and a replacement expression that
  33619. is returned if the match was successful.
  33620. Expressions have an operator ID, 'bit_and' in this case. Expressions
  33621. can be lower-case tree codes with '_expr' stripped off or builtin
  33622. function code names in all-caps, like 'BUILT_IN_SQRT'.
  33623. '@n' denotes a so-called capture. It captures the operand and lets you
  33624. refer to it in other places of the match-and-simplify. In the above
  33625. example it is refered to in the replacement expression. Captures are
  33626. '@' followed by a number or an identifier.
  33627. (simplify
  33628. (bit_xor @0 @0)
  33629. { build_zero_cst (type); })
  33630. In this example '@0' is mentioned twice which constrains the matched
  33631. expression to have two equal operands. Usually matches are constraint
  33632. to equal types. If operands may be constants and conversions are
  33633. involved matching by value might be preferred in which case use '@@0' to
  33634. denote a by value match and the specific operand you want to refer to in
  33635. the result part. This example also introduces operands written in C
  33636. code. These can be used in the expression replacements and are supposed
  33637. to evaluate to a tree node which has to be a valid GIMPLE operand (so
  33638. you cannot generate expressions in C code).
  33639. (simplify
  33640. (trunc_mod integer_zerop@0 @1)
  33641. (if (!integer_zerop (@1))
  33642. @0))
  33643. Here '@0' captures the first operand of the trunc_mod expression which
  33644. is also predicated with 'integer_zerop'. Expression operands may be
  33645. either expressions, predicates or captures. Captures can be
  33646. unconstrained or capture expresions or predicates.
  33647. This example introduces an optional operand of simplify, the
  33648. if-expression. This condition is evaluated after the expression matched
  33649. in the IL and is required to evaluate to true to enable the replacement
  33650. expression in the second operand position. The expression operand of
  33651. the 'if' is a standard C expression which may contain references to
  33652. captures. The 'if' has an optional third operand which may contain the
  33653. replacement expression that is enabled when the condition evaluates to
  33654. false.
  33655. A 'if' expression can be used to specify a common condition for
  33656. multiple simplify patterns, avoiding the need to repeat that multiple
  33657. times:
  33658. (if (!TYPE_SATURATING (type)
  33659. && !FLOAT_TYPE_P (type) && !FIXED_POINT_TYPE_P (type))
  33660. (simplify
  33661. (minus (plus @0 @1) @0)
  33662. @1)
  33663. (simplify
  33664. (minus (minus @0 @1) @0)
  33665. (negate @1)))
  33666. Note that 'if's in outer position do not have the optional else clause
  33667. but instead have multiple then clauses.
  33668. Ifs can be nested.
  33669. There exists a 'switch' expression which can be used to chain
  33670. conditions avoiding nesting 'if's too much:
  33671. (simplify
  33672. (simple_comparison @0 REAL_CST@1)
  33673. (switch
  33674. /* a CMP (-0) -> a CMP 0 */
  33675. (if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (@1)))
  33676. (cmp @0 { build_real (TREE_TYPE (@1), dconst0); }))
  33677. /* x != NaN is always true, other ops are always false. */
  33678. (if (REAL_VALUE_ISNAN (TREE_REAL_CST (@1))
  33679. && ! HONOR_SNANS (@1))
  33680. { constant_boolean_node (cmp == NE_EXPR, type); })))
  33681. Is equal to
  33682. (simplify
  33683. (simple_comparison @0 REAL_CST@1)
  33684. (switch
  33685. /* a CMP (-0) -> a CMP 0 */
  33686. (if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (@1)))
  33687. (cmp @0 { build_real (TREE_TYPE (@1), dconst0); })
  33688. /* x != NaN is always true, other ops are always false. */
  33689. (if (REAL_VALUE_ISNAN (TREE_REAL_CST (@1))
  33690. && ! HONOR_SNANS (@1))
  33691. { constant_boolean_node (cmp == NE_EXPR, type); }))))
  33692. which has the second 'if' in the else operand of the first. The
  33693. 'switch' expression takes 'if' expressions as operands (which may not
  33694. have else clauses) and as a last operand a replacement expression which
  33695. should be enabled by default if no other condition evaluated to true.
  33696. Captures can also be used for capturing results of sub-expressions.
  33697. #if GIMPLE
  33698. (simplify
  33699. (pointer_plus (addr@2 @0) INTEGER_CST_P@1)
  33700. (if (is_gimple_min_invariant (@2)))
  33701. {
  33702. HOST_WIDE_INT off;
  33703. tree base = get_addr_base_and_unit_offset (@0, &off);
  33704. off += tree_to_uhwi (@1);
  33705. /* Now with that we should be able to simply write
  33706. (addr (mem_ref (addr @base) (plus @off @1))) */
  33707. build1 (ADDR_EXPR, type,
  33708. build2 (MEM_REF, TREE_TYPE (TREE_TYPE (@2)),
  33709. build_fold_addr_expr (base),
  33710. build_int_cst (ptr_type_node, off)));
  33711. })
  33712. #endif
  33713. In the above example, '@2' captures the result of the expression '(addr
  33714. @0)'. For outermost expression only its type can be captured, and the
  33715. keyword 'type' is reserved for this purpose. The above example also
  33716. gives a way to conditionalize patterns to only apply to 'GIMPLE' or
  33717. 'GENERIC' by means of using the pre-defined preprocessor macros 'GIMPLE'
  33718. and 'GENERIC' and using preprocessor directives.
  33719. (simplify
  33720. (bit_and:c integral_op_p@0 (bit_ior:c (bit_not @0) @1))
  33721. (bit_and @1 @0))
  33722. Here we introduce flags on match expressions. The flag used above,
  33723. 'c', denotes that the expression should be also matched commutated.
  33724. Thus the above match expression is really the following four match
  33725. expressions:
  33726. (bit_and integral_op_p@0 (bit_ior (bit_not @0) @1))
  33727. (bit_and (bit_ior (bit_not @0) @1) integral_op_p@0)
  33728. (bit_and integral_op_p@0 (bit_ior @1 (bit_not @0)))
  33729. (bit_and (bit_ior @1 (bit_not @0)) integral_op_p@0)
  33730. Usual canonicalizations you know from GENERIC expressions are applied
  33731. before matching, so for example constant operands always come second in
  33732. commutative expressions.
  33733. The second supported flag is 's' which tells the code generator to fail
  33734. the pattern if the expression marked with 's' does have more than one
  33735. use. For example in
  33736. (simplify
  33737. (pointer_plus (pointer_plus:s @0 @1) @3)
  33738. (pointer_plus @0 (plus @1 @3)))
  33739. this avoids the association if '(pointer_plus @0 @1)' is used outside
  33740. of the matched expression and thus it would stay live and not trivially
  33741. removed by dead code elimination.
  33742. More features exist to avoid too much repetition.
  33743. (for op (plus pointer_plus minus bit_ior bit_xor)
  33744. (simplify
  33745. (op @0 integer_zerop)
  33746. @0))
  33747. A 'for' expression can be used to repeat a pattern for each operator
  33748. specified, substituting 'op'. 'for' can be nested and a 'for' can have
  33749. multiple operators to iterate.
  33750. (for opa (plus minus)
  33751. opb (minus plus)
  33752. (for opc (plus minus)
  33753. (simplify...
  33754. In this example the pattern will be repeated four times with 'opa, opb,
  33755. opc' being 'plus, minus, plus', 'plus, minus, minus', 'minus, plus,
  33756. plus', 'minus, plus, minus'.
  33757. To avoid repeating operator lists in 'for' you can name them via
  33758. (define_operator_list pmm plus minus mult)
  33759. and use them in 'for' operator lists where they get expanded.
  33760. (for opa (pmm trunc_div)
  33761. (simplify...
  33762. So this example iterates over 'plus', 'minus', 'mult' and 'trunc_div'.
  33763. Using operator lists can also remove the need to explicitely write a
  33764. 'for'. All operator list uses that appear in a 'simplify' or 'match'
  33765. pattern in operator positions will implicitely be added to a new 'for'.
  33766. For example
  33767. (define_operator_list SQRT BUILT_IN_SQRTF BUILT_IN_SQRT BUILT_IN_SQRTL)
  33768. (define_operator_list POW BUILT_IN_POWF BUILT_IN_POW BUILT_IN_POWL)
  33769. (simplify
  33770. (SQRT (POW @0 @1))
  33771. (POW (abs @0) (mult @1 { built_real (TREE_TYPE (@1), dconsthalf); })))
  33772. is the same as
  33773. (for SQRT (BUILT_IN_SQRTF BUILT_IN_SQRT BUILT_IN_SQRTL)
  33774. POW (BUILT_IN_POWF BUILT_IN_POW BUILT_IN_POWL)
  33775. (simplify
  33776. (SQRT (POW @0 @1))
  33777. (POW (abs @0) (mult @1 { built_real (TREE_TYPE (@1), dconsthalf); }))))
  33778. 'for's and operator lists can include the special identifier 'null'
  33779. that matches nothing and can never be generated. This can be used to
  33780. pad an operator list so that it has a standard form, even if there isn't
  33781. a suitable operator for every form.
  33782. Another building block are 'with' expressions in the result expression
  33783. which nest the generated code in a new C block followed by its argument:
  33784. (simplify
  33785. (convert (mult @0 @1))
  33786. (with { tree utype = unsigned_type_for (type); }
  33787. (convert (mult (convert:utype @0) (convert:utype @1)))))
  33788. This allows code nested in the 'with' to refer to the declared
  33789. variables. In the above case we use the feature to specify the type of
  33790. a generated expression with the ':type' syntax where 'type' needs to be
  33791. an identifier that refers to the desired type. Usually the types of the
  33792. generated result expressions are determined from the context, but
  33793. sometimes like in the above case it is required that you specify them
  33794. explicitely.
  33795. As intermediate conversions are often optional there is a way to avoid
  33796. the need to repeat patterns both with and without such conversions.
  33797. Namely you can mark a conversion as being optional with a '?':
  33798. (simplify
  33799. (eq (convert@0 @1) (convert? @2))
  33800. (eq @1 (convert @2)))
  33801. which will match both '(eq (convert @1) (convert @2))' and '(eq
  33802. (convert @1) @2)'. The optional converts are supposed to be all either
  33803. present or not, thus '(eq (convert? @1) (convert? @2))' will result in
  33804. two patterns only. If you want to match all four combinations you have
  33805. access to two additional conditional converts as in '(eq (convert1? @1)
  33806. (convert2? @2))'.
  33807. Predicates available from the GCC middle-end need to be made available
  33808. explicitely via 'define_predicates':
  33809. (define_predicates
  33810. integer_onep integer_zerop integer_all_onesp)
  33811. You can also define predicates using the pattern matching language and
  33812. the 'match' form:
  33813. (match negate_expr_p
  33814. INTEGER_CST
  33815. (if (TYPE_OVERFLOW_WRAPS (type)
  33816. || may_negate_without_overflow_p (t))))
  33817. (match negate_expr_p
  33818. (negate @0))
  33819. This shows that for 'match' expressions there is 't' available which
  33820. captures the outermost expression (something not possible in the
  33821. 'simplify' context). As you can see 'match' has an identifier as first
  33822. operand which is how you refer to the predicate in patterns. Multiple
  33823. 'match' for the same identifier add additional cases where the predicate
  33824. matches.
  33825. Predicates can also match an expression in which case you need to
  33826. provide a template specifying the identifier and where to get its
  33827. operands from:
  33828. (match (logical_inverted_value @0)
  33829. (eq @0 integer_zerop))
  33830. (match (logical_inverted_value @0)
  33831. (bit_not truth_valued_p@0))
  33832. You can use the above predicate like
  33833. (simplify
  33834. (bit_and @0 (logical_inverted_value @0))
  33835. { build_zero_cst (type); })
  33836. Which will match a bitwise and of an operand with its logical inverted
  33837. value.
  33838. 
  33839. File: gccint.info, Node: Funding, Next: GNU Project, Prev: Match and Simplify, Up: Top
  33840. Funding Free Software
  33841. *********************
  33842. If you want to have more free software a few years from now, it makes
  33843. sense for you to help encourage people to contribute funds for its
  33844. development. The most effective approach known is to encourage
  33845. commercial redistributors to donate.
  33846. Users of free software systems can boost the pace of development by
  33847. encouraging for-a-fee distributors to donate part of their selling price
  33848. to free software developers--the Free Software Foundation, and others.
  33849. The way to convince distributors to do this is to demand it and expect
  33850. it from them. So when you compare distributors, judge them partly by
  33851. how much they give to free software development. Show distributors they
  33852. must compete to be the one who gives the most.
  33853. To make this approach work, you must insist on numbers that you can
  33854. compare, such as, "We will donate ten dollars to the Frobnitz project
  33855. for each disk sold." Don't be satisfied with a vague promise, such as
  33856. "A portion of the profits are donated," since it doesn't give a basis
  33857. for comparison.
  33858. Even a precise fraction "of the profits from this disk" is not very
  33859. meaningful, since creative accounting and unrelated business decisions
  33860. can greatly alter what fraction of the sales price counts as profit. If
  33861. the price you pay is $50, ten percent of the profit is probably less
  33862. than a dollar; it might be a few cents, or nothing at all.
  33863. Some redistributors do development work themselves. This is useful
  33864. too; but to keep everyone honest, you need to inquire how much they do,
  33865. and what kind. Some kinds of development make much more long-term
  33866. difference than others. For example, maintaining a separate version of
  33867. a program contributes very little; maintaining the standard version of a
  33868. program for the whole community contributes much. Easy new ports
  33869. contribute little, since someone else would surely do them; difficult
  33870. ports such as adding a new CPU to the GNU Compiler Collection contribute
  33871. more; major new features or packages contribute the most.
  33872. By establishing the idea that supporting further development is "the
  33873. proper thing to do" when distributing free software for a fee, we can
  33874. assure a steady flow of resources into making more free software.
  33875. Copyright (C) 1994 Free Software Foundation, Inc.
  33876. Verbatim copying and redistribution of this section is permitted
  33877. without royalty; alteration is not permitted.
  33878. 
  33879. File: gccint.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
  33880. The GNU Project and GNU/Linux
  33881. *****************************
  33882. The GNU Project was launched in 1984 to develop a complete Unix-like
  33883. operating system which is free software: the GNU system. (GNU is a
  33884. recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
  33885. Variants of the GNU operating system, which use the kernel Linux, are
  33886. now widely used; though these systems are often referred to as "Linux",
  33887. they are more accurately called GNU/Linux systems.
  33888. For more information, see:
  33889. <http://www.gnu.org/>
  33890. <http://www.gnu.org/gnu/linux-and-gnu.html>
  33891. 
  33892. File: gccint.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
  33893. GNU General Public License
  33894. **************************
  33895. Version 3, 29 June 2007
  33896. Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  33897. Everyone is permitted to copy and distribute verbatim copies of this
  33898. license document, but changing it is not allowed.
  33899. Preamble
  33900. ========
  33901. The GNU General Public License is a free, copyleft license for software
  33902. and other kinds of works.
  33903. The licenses for most software and other practical works are designed
  33904. to take away your freedom to share and change the works. By contrast,
  33905. the GNU General Public License is intended to guarantee your freedom to
  33906. share and change all versions of a program-to make sure it remains free
  33907. software for all its users. We, the Free Software Foundation, use the
  33908. GNU General Public License for most of our software; it applies also to
  33909. any other work released this way by its authors. You can apply it to
  33910. your programs, too.
  33911. When we speak of free software, we are referring to freedom, not price.
  33912. Our General Public Licenses are designed to make sure that you have the
  33913. freedom to distribute copies of free software (and charge for them if
  33914. you wish), that you receive source code or can get it if you want it,
  33915. that you can change the software or use pieces of it in new free
  33916. programs, and that you know you can do these things.
  33917. To protect your rights, we need to prevent others from denying you
  33918. these rights or asking you to surrender the rights. Therefore, you have
  33919. certain responsibilities if you distribute copies of the software, or if
  33920. you modify it: responsibilities to respect the freedom of others.
  33921. For example, if you distribute copies of such a program, whether gratis
  33922. or for a fee, you must pass on to the recipients the same freedoms that
  33923. you received. You must make sure that they, too, receive or can get the
  33924. source code. And you must show them these terms so they know their
  33925. rights.
  33926. Developers that use the GNU GPL protect your rights with two steps: (1)
  33927. assert copyright on the software, and (2) offer you this License giving
  33928. you legal permission to copy, distribute and/or modify it.
  33929. For the developers' and authors' protection, the GPL clearly explains
  33930. that there is no warranty for this free software. For both users' and
  33931. authors' sake, the GPL requires that modified versions be marked as
  33932. changed, so that their problems will not be attributed erroneously to
  33933. authors of previous versions.
  33934. Some devices are designed to deny users access to install or run
  33935. modified versions of the software inside them, although the manufacturer
  33936. can do so. This is fundamentally incompatible with the aim of
  33937. protecting users' freedom to change the software. The systematic
  33938. pattern of such abuse occurs in the area of products for individuals to
  33939. use, which is precisely where it is most unacceptable. Therefore, we
  33940. have designed this version of the GPL to prohibit the practice for those
  33941. products. If such problems arise substantially in other domains, we
  33942. stand ready to extend this provision to those domains in future versions
  33943. of the GPL, as needed to protect the freedom of users.
  33944. Finally, every program is threatened constantly by software patents.
  33945. States should not allow patents to restrict development and use of
  33946. software on general-purpose computers, but in those that do, we wish to
  33947. avoid the special danger that patents applied to a free program could
  33948. make it effectively proprietary. To prevent this, the GPL assures that
  33949. patents cannot be used to render the program non-free.
  33950. The precise terms and conditions for copying, distribution and
  33951. modification follow.
  33952. TERMS AND CONDITIONS
  33953. ====================
  33954. 0. Definitions.
  33955. "This License" refers to version 3 of the GNU General Public
  33956. License.
  33957. "Copyright" also means copyright-like laws that apply to other
  33958. kinds of works, such as semiconductor masks.
  33959. "The Program" refers to any copyrightable work licensed under this
  33960. License. Each licensee is addressed as "you". "Licensees" and
  33961. "recipients" may be individuals or organizations.
  33962. To "modify" a work means to copy from or adapt all or part of the
  33963. work in a fashion requiring copyright permission, other than the
  33964. making of an exact copy. The resulting work is called a "modified
  33965. version" of the earlier work or a work "based on" the earlier work.
  33966. A "covered work" means either the unmodified Program or a work
  33967. based on the Program.
  33968. To "propagate" a work means to do anything with it that, without
  33969. permission, would make you directly or secondarily liable for
  33970. infringement under applicable copyright law, except executing it on
  33971. a computer or modifying a private copy. Propagation includes
  33972. copying, distribution (with or without modification), making
  33973. available to the public, and in some countries other activities as
  33974. well.
  33975. To "convey" a work means any kind of propagation that enables other
  33976. parties to make or receive copies. Mere interaction with a user
  33977. through a computer network, with no transfer of a copy, is not
  33978. conveying.
  33979. An interactive user interface displays "Appropriate Legal Notices"
  33980. to the extent that it includes a convenient and prominently visible
  33981. feature that (1) displays an appropriate copyright notice, and (2)
  33982. tells the user that there is no warranty for the work (except to
  33983. the extent that warranties are provided), that licensees may convey
  33984. the work under this License, and how to view a copy of this
  33985. License. If the interface presents a list of user commands or
  33986. options, such as a menu, a prominent item in the list meets this
  33987. criterion.
  33988. 1. Source Code.
  33989. The "source code" for a work means the preferred form of the work
  33990. for making modifications to it. "Object code" means any non-source
  33991. form of a work.
  33992. A "Standard Interface" means an interface that either is an
  33993. official standard defined by a recognized standards body, or, in
  33994. the case of interfaces specified for a particular programming
  33995. language, one that is widely used among developers working in that
  33996. language.
  33997. The "System Libraries" of an executable work include anything,
  33998. other than the work as a whole, that (a) is included in the normal
  33999. form of packaging a Major Component, but which is not part of that
  34000. Major Component, and (b) serves only to enable use of the work with
  34001. that Major Component, or to implement a Standard Interface for
  34002. which an implementation is available to the public in source code
  34003. form. A "Major Component", in this context, means a major
  34004. essential component (kernel, window system, and so on) of the
  34005. specific operating system (if any) on which the executable work
  34006. runs, or a compiler used to produce the work, or an object code
  34007. interpreter used to run it.
  34008. The "Corresponding Source" for a work in object code form means all
  34009. the source code needed to generate, install, and (for an executable
  34010. work) run the object code and to modify the work, including scripts
  34011. to control those activities. However, it does not include the
  34012. work's System Libraries, or general-purpose tools or generally
  34013. available free programs which are used unmodified in performing
  34014. those activities but which are not part of the work. For example,
  34015. Corresponding Source includes interface definition files associated
  34016. with source files for the work, and the source code for shared
  34017. libraries and dynamically linked subprograms that the work is
  34018. specifically designed to require, such as by intimate data
  34019. communication or control flow between those subprograms and other
  34020. parts of the work.
  34021. The Corresponding Source need not include anything that users can
  34022. regenerate automatically from other parts of the Corresponding
  34023. Source.
  34024. The Corresponding Source for a work in source code form is that
  34025. same work.
  34026. 2. Basic Permissions.
  34027. All rights granted under this License are granted for the term of
  34028. copyright on the Program, and are irrevocable provided the stated
  34029. conditions are met. This License explicitly affirms your unlimited
  34030. permission to run the unmodified Program. The output from running
  34031. a covered work is covered by this License only if the output, given
  34032. its content, constitutes a covered work. This License acknowledges
  34033. your rights of fair use or other equivalent, as provided by
  34034. copyright law.
  34035. You may make, run and propagate covered works that you do not
  34036. convey, without conditions so long as your license otherwise
  34037. remains in force. You may convey covered works to others for the
  34038. sole purpose of having them make modifications exclusively for you,
  34039. or provide you with facilities for running those works, provided
  34040. that you comply with the terms of this License in conveying all
  34041. material for which you do not control copyright. Those thus making
  34042. or running the covered works for you must do so exclusively on your
  34043. behalf, under your direction and control, on terms that prohibit
  34044. them from making any copies of your copyrighted material outside
  34045. their relationship with you.
  34046. Conveying under any other circumstances is permitted solely under
  34047. the conditions stated below. Sublicensing is not allowed; section
  34048. 10 makes it unnecessary.
  34049. 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  34050. No covered work shall be deemed part of an effective technological
  34051. measure under any applicable law fulfilling obligations under
  34052. article 11 of the WIPO copyright treaty adopted on 20 December
  34053. 1996, or similar laws prohibiting or restricting circumvention of
  34054. such measures.
  34055. When you convey a covered work, you waive any legal power to forbid
  34056. circumvention of technological measures to the extent such
  34057. circumvention is effected by exercising rights under this License
  34058. with respect to the covered work, and you disclaim any intention to
  34059. limit operation or modification of the work as a means of
  34060. enforcing, against the work's users, your or third parties' legal
  34061. rights to forbid circumvention of technological measures.
  34062. 4. Conveying Verbatim Copies.
  34063. You may convey verbatim copies of the Program's source code as you
  34064. receive it, in any medium, provided that you conspicuously and
  34065. appropriately publish on each copy an appropriate copyright notice;
  34066. keep intact all notices stating that this License and any
  34067. non-permissive terms added in accord with section 7 apply to the
  34068. code; keep intact all notices of the absence of any warranty; and
  34069. give all recipients a copy of this License along with the Program.
  34070. You may charge any price or no price for each copy that you convey,
  34071. and you may offer support or warranty protection for a fee.
  34072. 5. Conveying Modified Source Versions.
  34073. You may convey a work based on the Program, or the modifications to
  34074. produce it from the Program, in the form of source code under the
  34075. terms of section 4, provided that you also meet all of these
  34076. conditions:
  34077. a. The work must carry prominent notices stating that you
  34078. modified it, and giving a relevant date.
  34079. b. The work must carry prominent notices stating that it is
  34080. released under this License and any conditions added under
  34081. section 7. This requirement modifies the requirement in
  34082. section 4 to "keep intact all notices".
  34083. c. You must license the entire work, as a whole, under this
  34084. License to anyone who comes into possession of a copy. This
  34085. License will therefore apply, along with any applicable
  34086. section 7 additional terms, to the whole of the work, and all
  34087. its parts, regardless of how they are packaged. This License
  34088. gives no permission to license the work in any other way, but
  34089. it does not invalidate such permission if you have separately
  34090. received it.
  34091. d. If the work has interactive user interfaces, each must display
  34092. Appropriate Legal Notices; however, if the Program has
  34093. interactive interfaces that do not display Appropriate Legal
  34094. Notices, your work need not make them do so.
  34095. A compilation of a covered work with other separate and independent
  34096. works, which are not by their nature extensions of the covered
  34097. work, and which are not combined with it such as to form a larger
  34098. program, in or on a volume of a storage or distribution medium, is
  34099. called an "aggregate" if the compilation and its resulting
  34100. copyright are not used to limit the access or legal rights of the
  34101. compilation's users beyond what the individual works permit.
  34102. Inclusion of a covered work in an aggregate does not cause this
  34103. License to apply to the other parts of the aggregate.
  34104. 6. Conveying Non-Source Forms.
  34105. You may convey a covered work in object code form under the terms
  34106. of sections 4 and 5, provided that you also convey the
  34107. machine-readable Corresponding Source under the terms of this
  34108. License, in one of these ways:
  34109. a. Convey the object code in, or embodied in, a physical product
  34110. (including a physical distribution medium), accompanied by the
  34111. Corresponding Source fixed on a durable physical medium
  34112. customarily used for software interchange.
  34113. b. Convey the object code in, or embodied in, a physical product
  34114. (including a physical distribution medium), accompanied by a
  34115. written offer, valid for at least three years and valid for as
  34116. long as you offer spare parts or customer support for that
  34117. product model, to give anyone who possesses the object code
  34118. either (1) a copy of the Corresponding Source for all the
  34119. software in the product that is covered by this License, on a
  34120. durable physical medium customarily used for software
  34121. interchange, for a price no more than your reasonable cost of
  34122. physically performing this conveying of source, or (2) access
  34123. to copy the Corresponding Source from a network server at no
  34124. charge.
  34125. c. Convey individual copies of the object code with a copy of the
  34126. written offer to provide the Corresponding Source. This
  34127. alternative is allowed only occasionally and noncommercially,
  34128. and only if you received the object code with such an offer,
  34129. in accord with subsection 6b.
  34130. d. Convey the object code by offering access from a designated
  34131. place (gratis or for a charge), and offer equivalent access to
  34132. the Corresponding Source in the same way through the same
  34133. place at no further charge. You need not require recipients
  34134. to copy the Corresponding Source along with the object code.
  34135. If the place to copy the object code is a network server, the
  34136. Corresponding Source may be on a different server (operated by
  34137. you or a third party) that supports equivalent copying
  34138. facilities, provided you maintain clear directions next to the
  34139. object code saying where to find the Corresponding Source.
  34140. Regardless of what server hosts the Corresponding Source, you
  34141. remain obligated to ensure that it is available for as long as
  34142. needed to satisfy these requirements.
  34143. e. Convey the object code using peer-to-peer transmission,
  34144. provided you inform other peers where the object code and
  34145. Corresponding Source of the work are being offered to the
  34146. general public at no charge under subsection 6d.
  34147. A separable portion of the object code, whose source code is
  34148. excluded from the Corresponding Source as a System Library, need
  34149. not be included in conveying the object code work.
  34150. A "User Product" is either (1) a "consumer product", which means
  34151. any tangible personal property which is normally used for personal,
  34152. family, or household purposes, or (2) anything designed or sold for
  34153. incorporation into a dwelling. In determining whether a product is
  34154. a consumer product, doubtful cases shall be resolved in favor of
  34155. coverage. For a particular product received by a particular user,
  34156. "normally used" refers to a typical or common use of that class of
  34157. product, regardless of the status of the particular user or of the
  34158. way in which the particular user actually uses, or expects or is
  34159. expected to use, the product. A product is a consumer product
  34160. regardless of whether the product has substantial commercial,
  34161. industrial or non-consumer uses, unless such uses represent the
  34162. only significant mode of use of the product.
  34163. "Installation Information" for a User Product means any methods,
  34164. procedures, authorization keys, or other information required to
  34165. install and execute modified versions of a covered work in that
  34166. User Product from a modified version of its Corresponding Source.
  34167. The information must suffice to ensure that the continued
  34168. functioning of the modified object code is in no case prevented or
  34169. interfered with solely because modification has been made.
  34170. If you convey an object code work under this section in, or with,
  34171. or specifically for use in, a User Product, and the conveying
  34172. occurs as part of a transaction in which the right of possession
  34173. and use of the User Product is transferred to the recipient in
  34174. perpetuity or for a fixed term (regardless of how the transaction
  34175. is characterized), the Corresponding Source conveyed under this
  34176. section must be accompanied by the Installation Information. But
  34177. this requirement does not apply if neither you nor any third party
  34178. retains the ability to install modified object code on the User
  34179. Product (for example, the work has been installed in ROM).
  34180. The requirement to provide Installation Information does not
  34181. include a requirement to continue to provide support service,
  34182. warranty, or updates for a work that has been modified or installed
  34183. by the recipient, or for the User Product in which it has been
  34184. modified or installed. Access to a network may be denied when the
  34185. modification itself materially and adversely affects the operation
  34186. of the network or violates the rules and protocols for
  34187. communication across the network.
  34188. Corresponding Source conveyed, and Installation Information
  34189. provided, in accord with this section must be in a format that is
  34190. publicly documented (and with an implementation available to the
  34191. public in source code form), and must require no special password
  34192. or key for unpacking, reading or copying.
  34193. 7. Additional Terms.
  34194. "Additional permissions" are terms that supplement the terms of
  34195. this License by making exceptions from one or more of its
  34196. conditions. Additional permissions that are applicable to the
  34197. entire Program shall be treated as though they were included in
  34198. this License, to the extent that they are valid under applicable
  34199. law. If additional permissions apply only to part of the Program,
  34200. that part may be used separately under those permissions, but the
  34201. entire Program remains governed by this License without regard to
  34202. the additional permissions.
  34203. When you convey a copy of a covered work, you may at your option
  34204. remove any additional permissions from that copy, or from any part
  34205. of it. (Additional permissions may be written to require their own
  34206. removal in certain cases when you modify the work.) You may place
  34207. additional permissions on material, added by you to a covered work,
  34208. for which you have or can give appropriate copyright permission.
  34209. Notwithstanding any other provision of this License, for material
  34210. you add to a covered work, you may (if authorized by the copyright
  34211. holders of that material) supplement the terms of this License with
  34212. terms:
  34213. a. Disclaiming warranty or limiting liability differently from
  34214. the terms of sections 15 and 16 of this License; or
  34215. b. Requiring preservation of specified reasonable legal notices
  34216. or author attributions in that material or in the Appropriate
  34217. Legal Notices displayed by works containing it; or
  34218. c. Prohibiting misrepresentation of the origin of that material,
  34219. or requiring that modified versions of such material be marked
  34220. in reasonable ways as different from the original version; or
  34221. d. Limiting the use for publicity purposes of names of licensors
  34222. or authors of the material; or
  34223. e. Declining to grant rights under trademark law for use of some
  34224. trade names, trademarks, or service marks; or
  34225. f. Requiring indemnification of licensors and authors of that
  34226. material by anyone who conveys the material (or modified
  34227. versions of it) with contractual assumptions of liability to
  34228. the recipient, for any liability that these contractual
  34229. assumptions directly impose on those licensors and authors.
  34230. All other non-permissive additional terms are considered "further
  34231. restrictions" within the meaning of section 10. If the Program as
  34232. you received it, or any part of it, contains a notice stating that
  34233. it is governed by this License along with a term that is a further
  34234. restriction, you may remove that term. If a license document
  34235. contains a further restriction but permits relicensing or conveying
  34236. under this License, you may add to a covered work material governed
  34237. by the terms of that license document, provided that the further
  34238. restriction does not survive such relicensing or conveying.
  34239. If you add terms to a covered work in accord with this section, you
  34240. must place, in the relevant source files, a statement of the
  34241. additional terms that apply to those files, or a notice indicating
  34242. where to find the applicable terms.
  34243. Additional terms, permissive or non-permissive, may be stated in
  34244. the form of a separately written license, or stated as exceptions;
  34245. the above requirements apply either way.
  34246. 8. Termination.
  34247. You may not propagate or modify a covered work except as expressly
  34248. provided under this License. Any attempt otherwise to propagate or
  34249. modify it is void, and will automatically terminate your rights
  34250. under this License (including any patent licenses granted under the
  34251. third paragraph of section 11).
  34252. However, if you cease all violation of this License, then your
  34253. license from a particular copyright holder is reinstated (a)
  34254. provisionally, unless and until the copyright holder explicitly and
  34255. finally terminates your license, and (b) permanently, if the
  34256. copyright holder fails to notify you of the violation by some
  34257. reasonable means prior to 60 days after the cessation.
  34258. Moreover, your license from a particular copyright holder is
  34259. reinstated permanently if the copyright holder notifies you of the
  34260. violation by some reasonable means, this is the first time you have
  34261. received notice of violation of this License (for any work) from
  34262. that copyright holder, and you cure the violation prior to 30 days
  34263. after your receipt of the notice.
  34264. Termination of your rights under this section does not terminate
  34265. the licenses of parties who have received copies or rights from you
  34266. under this License. If your rights have been terminated and not
  34267. permanently reinstated, you do not qualify to receive new licenses
  34268. for the same material under section 10.
  34269. 9. Acceptance Not Required for Having Copies.
  34270. You are not required to accept this License in order to receive or
  34271. run a copy of the Program. Ancillary propagation of a covered work
  34272. occurring solely as a consequence of using peer-to-peer
  34273. transmission to receive a copy likewise does not require
  34274. acceptance. However, nothing other than this License grants you
  34275. permission to propagate or modify any covered work. These actions
  34276. infringe copyright if you do not accept this License. Therefore,
  34277. by modifying or propagating a covered work, you indicate your
  34278. acceptance of this License to do so.
  34279. 10. Automatic Licensing of Downstream Recipients.
  34280. Each time you convey a covered work, the recipient automatically
  34281. receives a license from the original licensors, to run, modify and
  34282. propagate that work, subject to this License. You are not
  34283. responsible for enforcing compliance by third parties with this
  34284. License.
  34285. An "entity transaction" is a transaction transferring control of an
  34286. organization, or substantially all assets of one, or subdividing an
  34287. organization, or merging organizations. If propagation of a
  34288. covered work results from an entity transaction, each party to that
  34289. transaction who receives a copy of the work also receives whatever
  34290. licenses to the work the party's predecessor in interest had or
  34291. could give under the previous paragraph, plus a right to possession
  34292. of the Corresponding Source of the work from the predecessor in
  34293. interest, if the predecessor has it or can get it with reasonable
  34294. efforts.
  34295. You may not impose any further restrictions on the exercise of the
  34296. rights granted or affirmed under this License. For example, you
  34297. may not impose a license fee, royalty, or other charge for exercise
  34298. of rights granted under this License, and you may not initiate
  34299. litigation (including a cross-claim or counterclaim in a lawsuit)
  34300. alleging that any patent claim is infringed by making, using,
  34301. selling, offering for sale, or importing the Program or any portion
  34302. of it.
  34303. 11. Patents.
  34304. A "contributor" is a copyright holder who authorizes use under this
  34305. License of the Program or a work on which the Program is based.
  34306. The work thus licensed is called the contributor's "contributor
  34307. version".
  34308. A contributor's "essential patent claims" are all patent claims
  34309. owned or controlled by the contributor, whether already acquired or
  34310. hereafter acquired, that would be infringed by some manner,
  34311. permitted by this License, of making, using, or selling its
  34312. contributor version, but do not include claims that would be
  34313. infringed only as a consequence of further modification of the
  34314. contributor version. For purposes of this definition, "control"
  34315. includes the right to grant patent sublicenses in a manner
  34316. consistent with the requirements of this License.
  34317. Each contributor grants you a non-exclusive, worldwide,
  34318. royalty-free patent license under the contributor's essential
  34319. patent claims, to make, use, sell, offer for sale, import and
  34320. otherwise run, modify and propagate the contents of its contributor
  34321. version.
  34322. In the following three paragraphs, a "patent license" is any
  34323. express agreement or commitment, however denominated, not to
  34324. enforce a patent (such as an express permission to practice a
  34325. patent or covenant not to sue for patent infringement). To "grant"
  34326. such a patent license to a party means to make such an agreement or
  34327. commitment not to enforce a patent against the party.
  34328. If you convey a covered work, knowingly relying on a patent
  34329. license, and the Corresponding Source of the work is not available
  34330. for anyone to copy, free of charge and under the terms of this
  34331. License, through a publicly available network server or other
  34332. readily accessible means, then you must either (1) cause the
  34333. Corresponding Source to be so available, or (2) arrange to deprive
  34334. yourself of the benefit of the patent license for this particular
  34335. work, or (3) arrange, in a manner consistent with the requirements
  34336. of this License, to extend the patent license to downstream
  34337. recipients. "Knowingly relying" means you have actual knowledge
  34338. that, but for the patent license, your conveying the covered work
  34339. in a country, or your recipient's use of the covered work in a
  34340. country, would infringe one or more identifiable patents in that
  34341. country that you have reason to believe are valid.
  34342. If, pursuant to or in connection with a single transaction or
  34343. arrangement, you convey, or propagate by procuring conveyance of, a
  34344. covered work, and grant a patent license to some of the parties
  34345. receiving the covered work authorizing them to use, propagate,
  34346. modify or convey a specific copy of the covered work, then the
  34347. patent license you grant is automatically extended to all
  34348. recipients of the covered work and works based on it.
  34349. A patent license is "discriminatory" if it does not include within
  34350. the scope of its coverage, prohibits the exercise of, or is
  34351. conditioned on the non-exercise of one or more of the rights that
  34352. are specifically granted under this License. You may not convey a
  34353. covered work if you are a party to an arrangement with a third
  34354. party that is in the business of distributing software, under which
  34355. you make payment to the third party based on the extent of your
  34356. activity of conveying the work, and under which the third party
  34357. grants, to any of the parties who would receive the covered work
  34358. from you, a discriminatory patent license (a) in connection with
  34359. copies of the covered work conveyed by you (or copies made from
  34360. those copies), or (b) primarily for and in connection with specific
  34361. products or compilations that contain the covered work, unless you
  34362. entered into that arrangement, or that patent license was granted,
  34363. prior to 28 March 2007.
  34364. Nothing in this License shall be construed as excluding or limiting
  34365. any implied license or other defenses to infringement that may
  34366. otherwise be available to you under applicable patent law.
  34367. 12. No Surrender of Others' Freedom.
  34368. If conditions are imposed on you (whether by court order, agreement
  34369. or otherwise) that contradict the conditions of this License, they
  34370. do not excuse you from the conditions of this License. If you
  34371. cannot convey a covered work so as to satisfy simultaneously your
  34372. obligations under this License and any other pertinent obligations,
  34373. then as a consequence you may not convey it at all. For example,
  34374. if you agree to terms that obligate you to collect a royalty for
  34375. further conveying from those to whom you convey the Program, the
  34376. only way you could satisfy both those terms and this License would
  34377. be to refrain entirely from conveying the Program.
  34378. 13. Use with the GNU Affero General Public License.
  34379. Notwithstanding any other provision of this License, you have
  34380. permission to link or combine any covered work with a work licensed
  34381. under version 3 of the GNU Affero General Public License into a
  34382. single combined work, and to convey the resulting work. The terms
  34383. of this License will continue to apply to the part which is the
  34384. covered work, but the special requirements of the GNU Affero
  34385. General Public License, section 13, concerning interaction through
  34386. a network will apply to the combination as such.
  34387. 14. Revised Versions of this License.
  34388. The Free Software Foundation may publish revised and/or new
  34389. versions of the GNU General Public License from time to time. Such
  34390. new versions will be similar in spirit to the present version, but
  34391. may differ in detail to address new problems or concerns.
  34392. Each version is given a distinguishing version number. If the
  34393. Program specifies that a certain numbered version of the GNU
  34394. General Public License "or any later version" applies to it, you
  34395. have the option of following the terms and conditions either of
  34396. that numbered version or of any later version published by the Free
  34397. Software Foundation. If the Program does not specify a version
  34398. number of the GNU General Public License, you may choose any
  34399. version ever published by the Free Software Foundation.
  34400. If the Program specifies that a proxy can decide which future
  34401. versions of the GNU General Public License can be used, that
  34402. proxy's public statement of acceptance of a version permanently
  34403. authorizes you to choose that version for the Program.
  34404. Later license versions may give you additional or different
  34405. permissions. However, no additional obligations are imposed on any
  34406. author or copyright holder as a result of your choosing to follow a
  34407. later version.
  34408. 15. Disclaimer of Warranty.
  34409. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  34410. APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
  34411. COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
  34412. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  34413. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  34414. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
  34415. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
  34416. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
  34417. NECESSARY SERVICING, REPAIR OR CORRECTION.
  34418. 16. Limitation of Liability.
  34419. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  34420. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
  34421. AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
  34422. DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  34423. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
  34424. THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  34425. BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  34426. PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  34427. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
  34428. THE POSSIBILITY OF SUCH DAMAGES.
  34429. 17. Interpretation of Sections 15 and 16.
  34430. If the disclaimer of warranty and limitation of liability provided
  34431. above cannot be given local legal effect according to their terms,
  34432. reviewing courts shall apply local law that most closely
  34433. approximates an absolute waiver of all civil liability in
  34434. connection with the Program, unless a warranty or assumption of
  34435. liability accompanies a copy of the Program in return for a fee.
  34436. END OF TERMS AND CONDITIONS
  34437. ===========================
  34438. How to Apply These Terms to Your New Programs
  34439. =============================================
  34440. If you develop a new program, and you want it to be of the greatest
  34441. possible use to the public, the best way to achieve this is to make it
  34442. free software which everyone can redistribute and change under these
  34443. terms.
  34444. To do so, attach the following notices to the program. It is safest to
  34445. attach them to the start of each source file to most effectively state
  34446. the exclusion of warranty; and each file should have at least the
  34447. "copyright" line and a pointer to where the full notice is found.
  34448. ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  34449. Copyright (C) YEAR NAME OF AUTHOR
  34450. This program is free software: you can redistribute it and/or modify
  34451. it under the terms of the GNU General Public License as published by
  34452. the Free Software Foundation, either version 3 of the License, or (at
  34453. your option) any later version.
  34454. This program is distributed in the hope that it will be useful, but
  34455. WITHOUT ANY WARRANTY; without even the implied warranty of
  34456. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  34457. General Public License for more details.
  34458. You should have received a copy of the GNU General Public License
  34459. along with this program. If not, see <http://www.gnu.org/licenses/>.
  34460. Also add information on how to contact you by electronic and paper
  34461. mail.
  34462. If the program does terminal interaction, make it output a short notice
  34463. like this when it starts in an interactive mode:
  34464. PROGRAM Copyright (C) YEAR NAME OF AUTHOR
  34465. This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
  34466. This is free software, and you are welcome to redistribute it
  34467. under certain conditions; type 'show c' for details.
  34468. The hypothetical commands 'show w' and 'show c' should show the
  34469. appropriate parts of the General Public License. Of course, your
  34470. program's commands might be different; for a GUI interface, you would
  34471. use an "about box".
  34472. You should also get your employer (if you work as a programmer) or
  34473. school, if any, to sign a "copyright disclaimer" for the program, if
  34474. necessary. For more information on this, and how to apply and follow
  34475. the GNU GPL, see <http://www.gnu.org/licenses/>.
  34476. The GNU General Public License does not permit incorporating your
  34477. program into proprietary programs. If your program is a subroutine
  34478. library, you may consider it more useful to permit linking proprietary
  34479. applications with the library. If this is what you want to do, use the
  34480. GNU Lesser General Public License instead of this License. But first,
  34481. please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
  34482. 
  34483. File: gccint.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
  34484. GNU Free Documentation License
  34485. ******************************
  34486. Version 1.3, 3 November 2008
  34487. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  34488. <http://fsf.org/>
  34489. Everyone is permitted to copy and distribute verbatim copies
  34490. of this license document, but changing it is not allowed.
  34491. 0. PREAMBLE
  34492. The purpose of this License is to make a manual, textbook, or other
  34493. functional and useful document "free" in the sense of freedom: to
  34494. assure everyone the effective freedom to copy and redistribute it,
  34495. with or without modifying it, either commercially or
  34496. noncommercially. Secondarily, this License preserves for the
  34497. author and publisher a way to get credit for their work, while not
  34498. being considered responsible for modifications made by others.
  34499. This License is a kind of "copyleft", which means that derivative
  34500. works of the document must themselves be free in the same sense.
  34501. It complements the GNU General Public License, which is a copyleft
  34502. license designed for free software.
  34503. We have designed this License in order to use it for manuals for
  34504. free software, because free software needs free documentation: a
  34505. free program should come with manuals providing the same freedoms
  34506. that the software does. But this License is not limited to
  34507. software manuals; it can be used for any textual work, regardless
  34508. of subject matter or whether it is published as a printed book. We
  34509. recommend this License principally for works whose purpose is
  34510. instruction or reference.
  34511. 1. APPLICABILITY AND DEFINITIONS
  34512. This License applies to any manual or other work, in any medium,
  34513. that contains a notice placed by the copyright holder saying it can
  34514. be distributed under the terms of this License. Such a notice
  34515. grants a world-wide, royalty-free license, unlimited in duration,
  34516. to use that work under the conditions stated herein. The
  34517. "Document", below, refers to any such manual or work. Any member
  34518. of the public is a licensee, and is addressed as "you". You accept
  34519. the license if you copy, modify or distribute the work in a way
  34520. requiring permission under copyright law.
  34521. A "Modified Version" of the Document means any work containing the
  34522. Document or a portion of it, either copied verbatim, or with
  34523. modifications and/or translated into another language.
  34524. A "Secondary Section" is a named appendix or a front-matter section
  34525. of the Document that deals exclusively with the relationship of the
  34526. publishers or authors of the Document to the Document's overall
  34527. subject (or to related matters) and contains nothing that could
  34528. fall directly within that overall subject. (Thus, if the Document
  34529. is in part a textbook of mathematics, a Secondary Section may not
  34530. explain any mathematics.) The relationship could be a matter of
  34531. historical connection with the subject or with related matters, or
  34532. of legal, commercial, philosophical, ethical or political position
  34533. regarding them.
  34534. The "Invariant Sections" are certain Secondary Sections whose
  34535. titles are designated, as being those of Invariant Sections, in the
  34536. notice that says that the Document is released under this License.
  34537. If a section does not fit the above definition of Secondary then it
  34538. is not allowed to be designated as Invariant. The Document may
  34539. contain zero Invariant Sections. If the Document does not identify
  34540. any Invariant Sections then there are none.
  34541. The "Cover Texts" are certain short passages of text that are
  34542. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  34543. that says that the Document is released under this License. A
  34544. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  34545. be at most 25 words.
  34546. A "Transparent" copy of the Document means a machine-readable copy,
  34547. represented in a format whose specification is available to the
  34548. general public, that is suitable for revising the document
  34549. straightforwardly with generic text editors or (for images composed
  34550. of pixels) generic paint programs or (for drawings) some widely
  34551. available drawing editor, and that is suitable for input to text
  34552. formatters or for automatic translation to a variety of formats
  34553. suitable for input to text formatters. A copy made in an otherwise
  34554. Transparent file format whose markup, or absence of markup, has
  34555. been arranged to thwart or discourage subsequent modification by
  34556. readers is not Transparent. An image format is not Transparent if
  34557. used for any substantial amount of text. A copy that is not
  34558. "Transparent" is called "Opaque".
  34559. Examples of suitable formats for Transparent copies include plain
  34560. ASCII without markup, Texinfo input format, LaTeX input format,
  34561. SGML or XML using a publicly available DTD, and standard-conforming
  34562. simple HTML, PostScript or PDF designed for human modification.
  34563. Examples of transparent image formats include PNG, XCF and JPG.
  34564. Opaque formats include proprietary formats that can be read and
  34565. edited only by proprietary word processors, SGML or XML for which
  34566. the DTD and/or processing tools are not generally available, and
  34567. the machine-generated HTML, PostScript or PDF produced by some word
  34568. processors for output purposes only.
  34569. The "Title Page" means, for a printed book, the title page itself,
  34570. plus such following pages as are needed to hold, legibly, the
  34571. material this License requires to appear in the title page. For
  34572. works in formats which do not have any title page as such, "Title
  34573. Page" means the text near the most prominent appearance of the
  34574. work's title, preceding the beginning of the body of the text.
  34575. The "publisher" means any person or entity that distributes copies
  34576. of the Document to the public.
  34577. A section "Entitled XYZ" means a named subunit of the Document
  34578. whose title either is precisely XYZ or contains XYZ in parentheses
  34579. following text that translates XYZ in another language. (Here XYZ
  34580. stands for a specific section name mentioned below, such as
  34581. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  34582. To "Preserve the Title" of such a section when you modify the
  34583. Document means that it remains a section "Entitled XYZ" according
  34584. to this definition.
  34585. The Document may include Warranty Disclaimers next to the notice
  34586. which states that this License applies to the Document. These
  34587. Warranty Disclaimers are considered to be included by reference in
  34588. this License, but only as regards disclaiming warranties: any other
  34589. implication that these Warranty Disclaimers may have is void and
  34590. has no effect on the meaning of this License.
  34591. 2. VERBATIM COPYING
  34592. You may copy and distribute the Document in any medium, either
  34593. commercially or noncommercially, provided that this License, the
  34594. copyright notices, and the license notice saying this License
  34595. applies to the Document are reproduced in all copies, and that you
  34596. add no other conditions whatsoever to those of this License. You
  34597. may not use technical measures to obstruct or control the reading
  34598. or further copying of the copies you make or distribute. However,
  34599. you may accept compensation in exchange for copies. If you
  34600. distribute a large enough number of copies you must also follow the
  34601. conditions in section 3.
  34602. You may also lend copies, under the same conditions stated above,
  34603. and you may publicly display copies.
  34604. 3. COPYING IN QUANTITY
  34605. If you publish printed copies (or copies in media that commonly
  34606. have printed covers) of the Document, numbering more than 100, and
  34607. the Document's license notice requires Cover Texts, you must
  34608. enclose the copies in covers that carry, clearly and legibly, all
  34609. these Cover Texts: Front-Cover Texts on the front cover, and
  34610. Back-Cover Texts on the back cover. Both covers must also clearly
  34611. and legibly identify you as the publisher of these copies. The
  34612. front cover must present the full title with all words of the title
  34613. equally prominent and visible. You may add other material on the
  34614. covers in addition. Copying with changes limited to the covers, as
  34615. long as they preserve the title of the Document and satisfy these
  34616. conditions, can be treated as verbatim copying in other respects.
  34617. If the required texts for either cover are too voluminous to fit
  34618. legibly, you should put the first ones listed (as many as fit
  34619. reasonably) on the actual cover, and continue the rest onto
  34620. adjacent pages.
  34621. If you publish or distribute Opaque copies of the Document
  34622. numbering more than 100, you must either include a machine-readable
  34623. Transparent copy along with each Opaque copy, or state in or with
  34624. each Opaque copy a computer-network location from which the general
  34625. network-using public has access to download using public-standard
  34626. network protocols a complete Transparent copy of the Document, free
  34627. of added material. If you use the latter option, you must take
  34628. reasonably prudent steps, when you begin distribution of Opaque
  34629. copies in quantity, to ensure that this Transparent copy will
  34630. remain thus accessible at the stated location until at least one
  34631. year after the last time you distribute an Opaque copy (directly or
  34632. through your agents or retailers) of that edition to the public.
  34633. It is requested, but not required, that you contact the authors of
  34634. the Document well before redistributing any large number of copies,
  34635. to give them a chance to provide you with an updated version of the
  34636. Document.
  34637. 4. MODIFICATIONS
  34638. You may copy and distribute a Modified Version of the Document
  34639. under the conditions of sections 2 and 3 above, provided that you
  34640. release the Modified Version under precisely this License, with the
  34641. Modified Version filling the role of the Document, thus licensing
  34642. distribution and modification of the Modified Version to whoever
  34643. possesses a copy of it. In addition, you must do these things in
  34644. the Modified Version:
  34645. A. Use in the Title Page (and on the covers, if any) a title
  34646. distinct from that of the Document, and from those of previous
  34647. versions (which should, if there were any, be listed in the
  34648. History section of the Document). You may use the same title
  34649. as a previous version if the original publisher of that
  34650. version gives permission.
  34651. B. List on the Title Page, as authors, one or more persons or
  34652. entities responsible for authorship of the modifications in
  34653. the Modified Version, together with at least five of the
  34654. principal authors of the Document (all of its principal
  34655. authors, if it has fewer than five), unless they release you
  34656. from this requirement.
  34657. C. State on the Title page the name of the publisher of the
  34658. Modified Version, as the publisher.
  34659. D. Preserve all the copyright notices of the Document.
  34660. E. Add an appropriate copyright notice for your modifications
  34661. adjacent to the other copyright notices.
  34662. F. Include, immediately after the copyright notices, a license
  34663. notice giving the public permission to use the Modified
  34664. Version under the terms of this License, in the form shown in
  34665. the Addendum below.
  34666. G. Preserve in that license notice the full lists of Invariant
  34667. Sections and required Cover Texts given in the Document's
  34668. license notice.
  34669. H. Include an unaltered copy of this License.
  34670. I. Preserve the section Entitled "History", Preserve its Title,
  34671. and add to it an item stating at least the title, year, new
  34672. authors, and publisher of the Modified Version as given on the
  34673. Title Page. If there is no section Entitled "History" in the
  34674. Document, create one stating the title, year, authors, and
  34675. publisher of the Document as given on its Title Page, then add
  34676. an item describing the Modified Version as stated in the
  34677. previous sentence.
  34678. J. Preserve the network location, if any, given in the Document
  34679. for public access to a Transparent copy of the Document, and
  34680. likewise the network locations given in the Document for
  34681. previous versions it was based on. These may be placed in the
  34682. "History" section. You may omit a network location for a work
  34683. that was published at least four years before the Document
  34684. itself, or if the original publisher of the version it refers
  34685. to gives permission.
  34686. K. For any section Entitled "Acknowledgements" or "Dedications",
  34687. Preserve the Title of the section, and preserve in the section
  34688. all the substance and tone of each of the contributor
  34689. acknowledgements and/or dedications given therein.
  34690. L. Preserve all the Invariant Sections of the Document, unaltered
  34691. in their text and in their titles. Section numbers or the
  34692. equivalent are not considered part of the section titles.
  34693. M. Delete any section Entitled "Endorsements". Such a section
  34694. may not be included in the Modified Version.
  34695. N. Do not retitle any existing section to be Entitled
  34696. "Endorsements" or to conflict in title with any Invariant
  34697. Section.
  34698. O. Preserve any Warranty Disclaimers.
  34699. If the Modified Version includes new front-matter sections or
  34700. appendices that qualify as Secondary Sections and contain no
  34701. material copied from the Document, you may at your option designate
  34702. some or all of these sections as invariant. To do this, add their
  34703. titles to the list of Invariant Sections in the Modified Version's
  34704. license notice. These titles must be distinct from any other
  34705. section titles.
  34706. You may add a section Entitled "Endorsements", provided it contains
  34707. nothing but endorsements of your Modified Version by various
  34708. parties--for example, statements of peer review or that the text
  34709. has been approved by an organization as the authoritative
  34710. definition of a standard.
  34711. You may add a passage of up to five words as a Front-Cover Text,
  34712. and a passage of up to 25 words as a Back-Cover Text, to the end of
  34713. the list of Cover Texts in the Modified Version. Only one passage
  34714. of Front-Cover Text and one of Back-Cover Text may be added by (or
  34715. through arrangements made by) any one entity. If the Document
  34716. already includes a cover text for the same cover, previously added
  34717. by you or by arrangement made by the same entity you are acting on
  34718. behalf of, you may not add another; but you may replace the old
  34719. one, on explicit permission from the previous publisher that added
  34720. the old one.
  34721. The author(s) and publisher(s) of the Document do not by this
  34722. License give permission to use their names for publicity for or to
  34723. assert or imply endorsement of any Modified Version.
  34724. 5. COMBINING DOCUMENTS
  34725. You may combine the Document with other documents released under
  34726. this License, under the terms defined in section 4 above for
  34727. modified versions, provided that you include in the combination all
  34728. of the Invariant Sections of all of the original documents,
  34729. unmodified, and list them all as Invariant Sections of your
  34730. combined work in its license notice, and that you preserve all
  34731. their Warranty Disclaimers.
  34732. The combined work need only contain one copy of this License, and
  34733. multiple identical Invariant Sections may be replaced with a single
  34734. copy. If there are multiple Invariant Sections with the same name
  34735. but different contents, make the title of each such section unique
  34736. by adding at the end of it, in parentheses, the name of the
  34737. original author or publisher of that section if known, or else a
  34738. unique number. Make the same adjustment to the section titles in
  34739. the list of Invariant Sections in the license notice of the
  34740. combined work.
  34741. In the combination, you must combine any sections Entitled
  34742. "History" in the various original documents, forming one section
  34743. Entitled "History"; likewise combine any sections Entitled
  34744. "Acknowledgements", and any sections Entitled "Dedications". You
  34745. must delete all sections Entitled "Endorsements."
  34746. 6. COLLECTIONS OF DOCUMENTS
  34747. You may make a collection consisting of the Document and other
  34748. documents released under this License, and replace the individual
  34749. copies of this License in the various documents with a single copy
  34750. that is included in the collection, provided that you follow the
  34751. rules of this License for verbatim copying of each of the documents
  34752. in all other respects.
  34753. You may extract a single document from such a collection, and
  34754. distribute it individually under this License, provided you insert
  34755. a copy of this License into the extracted document, and follow this
  34756. License in all other respects regarding verbatim copying of that
  34757. document.
  34758. 7. AGGREGATION WITH INDEPENDENT WORKS
  34759. A compilation of the Document or its derivatives with other
  34760. separate and independent documents or works, in or on a volume of a
  34761. storage or distribution medium, is called an "aggregate" if the
  34762. copyright resulting from the compilation is not used to limit the
  34763. legal rights of the compilation's users beyond what the individual
  34764. works permit. When the Document is included in an aggregate, this
  34765. License does not apply to the other works in the aggregate which
  34766. are not themselves derivative works of the Document.
  34767. If the Cover Text requirement of section 3 is applicable to these
  34768. copies of the Document, then if the Document is less than one half
  34769. of the entire aggregate, the Document's Cover Texts may be placed
  34770. on covers that bracket the Document within the aggregate, or the
  34771. electronic equivalent of covers if the Document is in electronic
  34772. form. Otherwise they must appear on printed covers that bracket
  34773. the whole aggregate.
  34774. 8. TRANSLATION
  34775. Translation is considered a kind of modification, so you may
  34776. distribute translations of the Document under the terms of section
  34777. 4. Replacing Invariant Sections with translations requires special
  34778. permission from their copyright holders, but you may include
  34779. translations of some or all Invariant Sections in addition to the
  34780. original versions of these Invariant Sections. You may include a
  34781. translation of this License, and all the license notices in the
  34782. Document, and any Warranty Disclaimers, provided that you also
  34783. include the original English version of this License and the
  34784. original versions of those notices and disclaimers. In case of a
  34785. disagreement between the translation and the original version of
  34786. this License or a notice or disclaimer, the original version will
  34787. prevail.
  34788. If a section in the Document is Entitled "Acknowledgements",
  34789. "Dedications", or "History", the requirement (section 4) to
  34790. Preserve its Title (section 1) will typically require changing the
  34791. actual title.
  34792. 9. TERMINATION
  34793. You may not copy, modify, sublicense, or distribute the Document
  34794. except as expressly provided under this License. Any attempt
  34795. otherwise to copy, modify, sublicense, or distribute it is void,
  34796. and will automatically terminate your rights under this License.
  34797. However, if you cease all violation of this License, then your
  34798. license from a particular copyright holder is reinstated (a)
  34799. provisionally, unless and until the copyright holder explicitly and
  34800. finally terminates your license, and (b) permanently, if the
  34801. copyright holder fails to notify you of the violation by some
  34802. reasonable means prior to 60 days after the cessation.
  34803. Moreover, your license from a particular copyright holder is
  34804. reinstated permanently if the copyright holder notifies you of the
  34805. violation by some reasonable means, this is the first time you have
  34806. received notice of violation of this License (for any work) from
  34807. that copyright holder, and you cure the violation prior to 30 days
  34808. after your receipt of the notice.
  34809. Termination of your rights under this section does not terminate
  34810. the licenses of parties who have received copies or rights from you
  34811. under this License. If your rights have been terminated and not
  34812. permanently reinstated, receipt of a copy of some or all of the
  34813. same material does not give you any rights to use it.
  34814. 10. FUTURE REVISIONS OF THIS LICENSE
  34815. The Free Software Foundation may publish new, revised versions of
  34816. the GNU Free Documentation License from time to time. Such new
  34817. versions will be similar in spirit to the present version, but may
  34818. differ in detail to address new problems or concerns. See
  34819. <http://www.gnu.org/copyleft/>.
  34820. Each version of the License is given a distinguishing version
  34821. number. If the Document specifies that a particular numbered
  34822. version of this License "or any later version" applies to it, you
  34823. have the option of following the terms and conditions either of
  34824. that specified version or of any later version that has been
  34825. published (not as a draft) by the Free Software Foundation. If the
  34826. Document does not specify a version number of this License, you may
  34827. choose any version ever published (not as a draft) by the Free
  34828. Software Foundation. If the Document specifies that a proxy can
  34829. decide which future versions of this License can be used, that
  34830. proxy's public statement of acceptance of a version permanently
  34831. authorizes you to choose that version for the Document.
  34832. 11. RELICENSING
  34833. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  34834. World Wide Web server that publishes copyrightable works and also
  34835. provides prominent facilities for anybody to edit those works. A
  34836. public wiki that anybody can edit is an example of such a server.
  34837. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  34838. site means any set of copyrightable works thus published on the MMC
  34839. site.
  34840. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  34841. license published by Creative Commons Corporation, a not-for-profit
  34842. corporation with a principal place of business in San Francisco,
  34843. California, as well as future copyleft versions of that license
  34844. published by that same organization.
  34845. "Incorporate" means to publish or republish a Document, in whole or
  34846. in part, as part of another Document.
  34847. An MMC is "eligible for relicensing" if it is licensed under this
  34848. License, and if all works that were first published under this
  34849. License somewhere other than this MMC, and subsequently
  34850. incorporated in whole or in part into the MMC, (1) had no cover
  34851. texts or invariant sections, and (2) were thus incorporated prior
  34852. to November 1, 2008.
  34853. The operator of an MMC Site may republish an MMC contained in the
  34854. site under CC-BY-SA on the same site at any time before August 1,
  34855. 2009, provided the MMC is eligible for relicensing.
  34856. ADDENDUM: How to use this License for your documents
  34857. ====================================================
  34858. To use this License in a document you have written, include a copy of
  34859. the License in the document and put the following copyright and license
  34860. notices just after the title page:
  34861. Copyright (C) YEAR YOUR NAME.
  34862. Permission is granted to copy, distribute and/or modify this document
  34863. under the terms of the GNU Free Documentation License, Version 1.3
  34864. or any later version published by the Free Software Foundation;
  34865. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  34866. Texts. A copy of the license is included in the section entitled ``GNU
  34867. Free Documentation License''.
  34868. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
  34869. replace the "with...Texts." line with this:
  34870. with the Invariant Sections being LIST THEIR TITLES, with
  34871. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  34872. being LIST.
  34873. If you have Invariant Sections without Cover Texts, or some other
  34874. combination of the three, merge those two alternatives to suit the
  34875. situation.
  34876. If your document contains nontrivial examples of program code, we
  34877. recommend releasing these examples in parallel under your choice of free
  34878. software license, such as the GNU General Public License, to permit
  34879. their use in free software.
  34880. 
  34881. File: gccint.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
  34882. Contributors to GCC
  34883. *******************
  34884. The GCC project would like to thank its many contributors. Without them
  34885. the project would not have been nearly as successful as it has been.
  34886. Any omissions in this list are accidental. Feel free to contact
  34887. <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
  34888. some of your contributions are not listed. Please keep this list in
  34889. alphabetical order.
  34890. * Analog Devices helped implement the support for complex data types
  34891. and iterators.
  34892. * John David Anglin for threading-related fixes and improvements to
  34893. libstdc++-v3, and the HP-UX port.
  34894. * James van Artsdalen wrote the code that makes efficient use of the
  34895. Intel 80387 register stack.
  34896. * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
  34897. Series port.
  34898. * Alasdair Baird for various bug fixes.
  34899. * Giovanni Bajo for analyzing lots of complicated C++ problem
  34900. reports.
  34901. * Peter Barada for his work to improve code generation for new
  34902. ColdFire cores.
  34903. * Gerald Baumgartner added the signature extension to the C++ front
  34904. end.
  34905. * Godmar Back for his Java improvements and encouragement.
  34906. * Scott Bambrough for help porting the Java compiler.
  34907. * Wolfgang Bangerth for processing tons of bug reports.
  34908. * Jon Beniston for his Microsoft Windows port of Java and port to
  34909. Lattice Mico32.
  34910. * Daniel Berlin for better DWARF 2 support, faster/better
  34911. optimizations, improved alias analysis, plus migrating GCC to
  34912. Bugzilla.
  34913. * Geoff Berry for his Java object serialization work and various
  34914. patches.
  34915. * David Binderman tests weekly snapshots of GCC trunk against Fedora
  34916. Rawhide for several architectures.
  34917. * Laurynas Biveinis for memory management work and DJGPP port fixes.
  34918. * Uros Bizjak for the implementation of x87 math built-in functions
  34919. and for various middle end and i386 back end improvements and bug
  34920. fixes.
  34921. * Eric Blake for helping to make GCJ and libgcj conform to the
  34922. specifications.
  34923. * Janne Blomqvist for contributions to GNU Fortran.
  34924. * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
  34925. other Java work.
  34926. * Segher Boessenkool for helping maintain the PowerPC port and the
  34927. instruction combiner plus various contributions to the middle end.
  34928. * Neil Booth for work on cpplib, lang hooks, debug hooks and other
  34929. miscellaneous clean-ups.
  34930. * Steven Bosscher for integrating the GNU Fortran front end into GCC
  34931. and for contributing to the tree-ssa branch.
  34932. * Eric Botcazou for fixing middle- and backend bugs left and right.
  34933. * Per Bothner for his direction via the steering committee and
  34934. various improvements to the infrastructure for supporting new
  34935. languages. Chill front end implementation. Initial
  34936. implementations of cpplib, fix-header, config.guess, libio, and
  34937. past C++ library (libg++) maintainer. Dreaming up, designing and
  34938. implementing much of GCJ.
  34939. * Devon Bowen helped port GCC to the Tahoe.
  34940. * Don Bowman for mips-vxworks contributions.
  34941. * James Bowman for the FT32 port.
  34942. * Dave Brolley for work on cpplib and Chill.
  34943. * Paul Brook for work on the ARM architecture and maintaining GNU
  34944. Fortran.
  34945. * Robert Brown implemented the support for Encore 32000 systems.
  34946. * Christian Bruel for improvements to local store elimination.
  34947. * Herman A.J. ten Brugge for various fixes.
  34948. * Joerg Brunsmann for Java compiler hacking and help with the GCJ
  34949. FAQ.
  34950. * Joe Buck for his direction via the steering committee from its
  34951. creation to 2013.
  34952. * Craig Burley for leadership of the G77 Fortran effort.
  34953. * Tobias Burnus for contributions to GNU Fortran.
  34954. * Stephan Buys for contributing Doxygen notes for libstdc++.
  34955. * Paolo Carlini for libstdc++ work: lots of efficiency improvements
  34956. to the C++ strings, streambufs and formatted I/O, hard detective
  34957. work on the frustrating localization issues, and keeping up with
  34958. the problem reports.
  34959. * John Carr for his alias work, SPARC hacking, infrastructure
  34960. improvements, previous contributions to the steering committee,
  34961. loop optimizations, etc.
  34962. * Stephane Carrez for 68HC11 and 68HC12 ports.
  34963. * Steve Chamberlain for support for the Renesas SH and H8 processors
  34964. and the PicoJava processor, and for GCJ config fixes.
  34965. * Glenn Chambers for help with the GCJ FAQ.
  34966. * John-Marc Chandonia for various libgcj patches.
  34967. * Denis Chertykov for contributing and maintaining the AVR port, the
  34968. first GCC port for an 8-bit architecture.
  34969. * Kito Cheng for his work on the RISC-V port, including bringing up
  34970. the test suite and maintenance.
  34971. * Scott Christley for his Objective-C contributions.
  34972. * Eric Christopher for his Java porting help and clean-ups.
  34973. * Branko Cibej for more warning contributions.
  34974. * The GNU Classpath project for all of their merged runtime code.
  34975. * Nick Clifton for arm, mcore, fr30, v850, m32r, msp430 rx work,
  34976. '--help', and other random hacking.
  34977. * Michael Cook for libstdc++ cleanup patches to reduce warnings.
  34978. * R. Kelley Cook for making GCC buildable from a read-only directory
  34979. as well as other miscellaneous build process and documentation
  34980. clean-ups.
  34981. * Ralf Corsepius for SH testing and minor bug fixing.
  34982. * Franc,ois-Xavier Coudert for contributions to GNU Fortran.
  34983. * Stan Cox for care and feeding of the x86 port and lots of behind
  34984. the scenes hacking.
  34985. * Alex Crain provided changes for the 3b1.
  34986. * Ian Dall for major improvements to the NS32k port.
  34987. * Paul Dale for his work to add uClinux platform support to the m68k
  34988. backend.
  34989. * Palmer Dabbelt for his work maintaining the RISC-V port.
  34990. * Dario Dariol contributed the four varieties of sample programs that
  34991. print a copy of their source.
  34992. * Russell Davidson for fstream and stringstream fixes in libstdc++.
  34993. * Bud Davis for work on the G77 and GNU Fortran compilers.
  34994. * Mo DeJong for GCJ and libgcj bug fixes.
  34995. * Jerry DeLisle for contributions to GNU Fortran.
  34996. * DJ Delorie for the DJGPP port, build and libiberty maintenance,
  34997. various bug fixes, and the M32C, MeP, MSP430, and RL78 ports.
  34998. * Arnaud Desitter for helping to debug GNU Fortran.
  34999. * Gabriel Dos Reis for contributions to G++, contributions and
  35000. maintenance of GCC diagnostics infrastructure, libstdc++-v3,
  35001. including 'valarray<>', 'complex<>', maintaining the numerics
  35002. library (including that pesky '<limits>' :-) and keeping up-to-date
  35003. anything to do with numbers.
  35004. * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
  35005. ISO C99 support, CFG dumping support, etc., plus support of the C++
  35006. runtime libraries including for all kinds of C interface issues,
  35007. contributing and maintaining 'complex<>', sanity checking and
  35008. disbursement, configuration architecture, libio maintenance, and
  35009. early math work.
  35010. * Franc,ois Dumont for his work on libstdc++-v3, especially
  35011. maintaining and improving 'debug-mode' and associative and
  35012. unordered containers.
  35013. * Zdenek Dvorak for a new loop unroller and various fixes.
  35014. * Michael Eager for his work on the Xilinx MicroBlaze port.
  35015. * Richard Earnshaw for his ongoing work with the ARM.
  35016. * David Edelsohn for his direction via the steering committee,
  35017. ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
  35018. loop changes, doing the entire AIX port of libstdc++ with his bare
  35019. hands, and for ensuring GCC properly keeps working on AIX.
  35020. * Kevin Ediger for the floating point formatting of num_put::do_put
  35021. in libstdc++.
  35022. * Phil Edwards for libstdc++ work including configuration hackery,
  35023. documentation maintainer, chief breaker of the web pages, the
  35024. occasional iostream bug fix, and work on shared library symbol
  35025. versioning.
  35026. * Paul Eggert for random hacking all over GCC.
  35027. * Mark Elbrecht for various DJGPP improvements, and for libstdc++
  35028. configuration support for locales and fstream-related fixes.
  35029. * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
  35030. iostreams.
  35031. * Christian Ehrhardt for dealing with bug reports.
  35032. * Ben Elliston for his work to move the Objective-C runtime into its
  35033. own subdirectory and for his work on autoconf.
  35034. * Revital Eres for work on the PowerPC 750CL port.
  35035. * Marc Espie for OpenBSD support.
  35036. * Doug Evans for much of the global optimization framework, arc,
  35037. m32r, and SPARC work.
  35038. * Christopher Faylor for his work on the Cygwin port and for caring
  35039. and feeding the gcc.gnu.org box and saving its users tons of spam.
  35040. * Fred Fish for BeOS support and Ada fixes.
  35041. * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
  35042. * Peter Gerwinski for various bug fixes and the Pascal front end.
  35043. * Kaveh R. Ghazi for his direction via the steering committee,
  35044. amazing work to make '-W -Wall -W* -Werror' useful, and testing GCC
  35045. on a plethora of platforms. Kaveh extends his gratitude to the
  35046. CAIP Center at Rutgers University for providing him with computing
  35047. resources to work on Free Software from the late 1980s to 2010.
  35048. * John Gilmore for a donation to the FSF earmarked improving GNU
  35049. Java.
  35050. * Judy Goldberg for c++ contributions.
  35051. * Torbjorn Granlund for various fixes and the c-torture testsuite,
  35052. multiply- and divide-by-constant optimization, improved long long
  35053. support, improved leaf function register allocation, and his
  35054. direction via the steering committee.
  35055. * Jonny Grant for improvements to 'collect2's' '--help'
  35056. documentation.
  35057. * Anthony Green for his '-Os' contributions, the moxie port, and Java
  35058. front end work.
  35059. * Stu Grossman for gdb hacking, allowing GCJ developers to debug Java
  35060. code.
  35061. * Michael K. Gschwind contributed the port to the PDP-11.
  35062. * Richard Biener for his ongoing middle-end contributions and bug
  35063. fixes and for release management.
  35064. * Ron Guilmette implemented the 'protoize' and 'unprotoize' tools,
  35065. the support for DWARF 1 symbolic debugging information, and much of
  35066. the support for System V Release 4. He has also worked heavily on
  35067. the Intel 386 and 860 support.
  35068. * Sumanth Gundapaneni for contributing the CR16 port.
  35069. * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
  35070. GCSE.
  35071. * Bruno Haible for improvements in the runtime overhead for EH, new
  35072. warnings and assorted bug fixes.
  35073. * Andrew Haley for his amazing Java compiler and library efforts.
  35074. * Chris Hanson assisted in making GCC work on HP-UX for the 9000
  35075. series 300.
  35076. * Michael Hayes for various thankless work he's done trying to get
  35077. the c30/c40 ports functional. Lots of loop and unroll improvements
  35078. and fixes.
  35079. * Dara Hazeghi for wading through myriads of target-specific bug
  35080. reports.
  35081. * Kate Hedstrom for staking the G77 folks with an initial testsuite.
  35082. * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
  35083. work, loop opts, and generally fixing lots of old problems we've
  35084. ignored for years, flow rewrite and lots of further stuff,
  35085. including reviewing tons of patches.
  35086. * Aldy Hernandez for working on the PowerPC port, SIMD support, and
  35087. various fixes.
  35088. * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  35089. contributed the support for the Sony NEWS machine.
  35090. * Kazu Hirata for caring and feeding the Renesas H8/300 port and
  35091. various fixes.
  35092. * Katherine Holcomb for work on GNU Fortran.
  35093. * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
  35094. of testing and bug fixing, particularly of GCC configury code.
  35095. * Steve Holmgren for MachTen patches.
  35096. * Mat Hostetter for work on the TILE-Gx and TILEPro ports.
  35097. * Jan Hubicka for his x86 port improvements.
  35098. * Falk Hueffner for working on C and optimization bug reports.
  35099. * Bernardo Innocenti for his m68k work, including merging of ColdFire
  35100. improvements and uClinux support.
  35101. * Christian Iseli for various bug fixes.
  35102. * Kamil Iskra for general m68k hacking.
  35103. * Lee Iverson for random fixes and MIPS testing.
  35104. * Balaji V. Iyer for Cilk+ development and merging.
  35105. * Andreas Jaeger for testing and benchmarking of GCC and various bug
  35106. fixes.
  35107. * Martin Jambor for his work on inter-procedural optimizations, the
  35108. switch conversion pass, and scalar replacement of aggregates.
  35109. * Jakub Jelinek for his SPARC work and sibling call optimizations as
  35110. well as lots of bug fixes and test cases, and for improving the
  35111. Java build system.
  35112. * Janis Johnson for ia64 testing and fixes, her quality improvement
  35113. sidetracks, and web page maintenance.
  35114. * Kean Johnston for SCO OpenServer support and various fixes.
  35115. * Tim Josling for the sample language treelang based originally on
  35116. Richard Kenner's "toy" language.
  35117. * Nicolai Josuttis for additional libstdc++ documentation.
  35118. * Klaus Kaempf for his ongoing work to make alpha-vms a viable
  35119. target.
  35120. * Steven G. Kargl for work on GNU Fortran.
  35121. * David Kashtan of SRI adapted GCC to VMS.
  35122. * Ryszard Kabatek for many, many libstdc++ bug fixes and
  35123. optimizations of strings, especially member functions, and for
  35124. auto_ptr fixes.
  35125. * Geoffrey Keating for his ongoing work to make the PPC work for
  35126. GNU/Linux and his automatic regression tester.
  35127. * Brendan Kehoe for his ongoing work with G++ and for a lot of early
  35128. work in just about every part of libstdc++.
  35129. * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
  35130. MIL-STD-1750A.
  35131. * Richard Kenner of the New York University Ultracomputer Research
  35132. Laboratory wrote the machine descriptions for the AMD 29000, the
  35133. DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
  35134. support for instruction attributes. He also made changes to better
  35135. support RISC processors including changes to common subexpression
  35136. elimination, strength reduction, function calling sequence
  35137. handling, and condition code support, in addition to generalizing
  35138. the code for frame pointer elimination and delay slot scheduling.
  35139. Richard Kenner was also the head maintainer of GCC for several
  35140. years.
  35141. * Mumit Khan for various contributions to the Cygwin and Mingw32
  35142. ports and maintaining binary releases for Microsoft Windows hosts,
  35143. and for massive libstdc++ porting work to Cygwin/Mingw32.
  35144. * Robin Kirkham for cpu32 support.
  35145. * Mark Klein for PA improvements.
  35146. * Thomas Koenig for various bug fixes.
  35147. * Bruce Korb for the new and improved fixincludes code.
  35148. * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
  35149. effort.
  35150. * Maxim Kuvyrkov for contributions to the instruction scheduler, the
  35151. Android and m68k/Coldfire ports, and optimizations.
  35152. * Charles LaBrec contributed the support for the Integrated Solutions
  35153. 68020 system.
  35154. * Asher Langton and Mike Kumbera for contributing Cray pointer
  35155. support to GNU Fortran, and for other GNU Fortran improvements.
  35156. * Jeff Law for his direction via the steering committee, coordinating
  35157. the entire egcs project and GCC 2.95, rolling out snapshots and
  35158. releases, handling merges from GCC2, reviewing tons of patches that
  35159. might have fallen through the cracks else, and random but extensive
  35160. hacking.
  35161. * Walter Lee for work on the TILE-Gx and TILEPro ports.
  35162. * Marc Lehmann for his direction via the steering committee and
  35163. helping with analysis and improvements of x86 performance.
  35164. * Victor Leikehman for work on GNU Fortran.
  35165. * Ted Lemon wrote parts of the RTL reader and printer.
  35166. * Kriang Lerdsuwanakij for C++ improvements including template as
  35167. template parameter support, and many C++ fixes.
  35168. * Warren Levy for tremendous work on libgcj (Java Runtime Library)
  35169. and random work on the Java front end.
  35170. * Alain Lichnewsky ported GCC to the MIPS CPU.
  35171. * Oskar Liljeblad for hacking on AWT and his many Java bug reports
  35172. and patches.
  35173. * Robert Lipe for OpenServer support, new testsuites, testing, etc.
  35174. * Chen Liqin for various S+core related fixes/improvement, and for
  35175. maintaining the S+core port.
  35176. * Weiwen Liu for testing and various bug fixes.
  35177. * Manuel Lo'pez-Iba'n~ez for improving '-Wconversion' and many other
  35178. diagnostics fixes and improvements.
  35179. * Dave Love for his ongoing work with the Fortran front end and
  35180. runtime libraries.
  35181. * Martin von Lo"wis for internal consistency checking infrastructure,
  35182. various C++ improvements including namespace support, and tons of
  35183. assistance with libstdc++/compiler merges.
  35184. * H.J. Lu for his previous contributions to the steering committee,
  35185. many x86 bug reports, prototype patches, and keeping the GNU/Linux
  35186. ports working.
  35187. * Greg McGary for random fixes and (someday) bounded pointers.
  35188. * Andrew MacLeod for his ongoing work in building a real EH system,
  35189. various code generation improvements, work on the global optimizer,
  35190. etc.
  35191. * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
  35192. hacking improvements to compile-time performance, overall knowledge
  35193. and direction in the area of instruction scheduling, and design and
  35194. implementation of the automaton based instruction scheduler.
  35195. * Bob Manson for his behind the scenes work on dejagnu.
  35196. * John Marino for contributing the DragonFly BSD port.
  35197. * Philip Martin for lots of libstdc++ string and vector iterator
  35198. fixes and improvements, and string clean up and testsuites.
  35199. * Michael Matz for his work on dominance tree discovery, the x86-64
  35200. port, link-time optimization framework and general optimization
  35201. improvements.
  35202. * All of the Mauve project contributors for Java test code.
  35203. * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
  35204. * Adam Megacz for his work on the Microsoft Windows port of GCJ.
  35205. * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
  35206. powerpc, haifa, ECOFF debug support, and other assorted hacking.
  35207. * Jason Merrill for his direction via the steering committee and
  35208. leading the G++ effort.
  35209. * Martin Michlmayr for testing GCC on several architectures using the
  35210. entire Debian archive.
  35211. * David Miller for his direction via the steering committee, lots of
  35212. SPARC work, improvements in jump.c and interfacing with the Linux
  35213. kernel developers.
  35214. * Gary Miller ported GCC to Charles River Data Systems machines.
  35215. * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
  35216. the entire libstdc++ testsuite namespace-compatible.
  35217. * Mark Mitchell for his direction via the steering committee,
  35218. mountains of C++ work, load/store hoisting out of loops, alias
  35219. analysis improvements, ISO C 'restrict' support, and serving as
  35220. release manager from 2000 to 2011.
  35221. * Alan Modra for various GNU/Linux bits and testing.
  35222. * Toon Moene for his direction via the steering committee, Fortran
  35223. maintenance, and his ongoing work to make us make Fortran run fast.
  35224. * Jason Molenda for major help in the care and feeding of all the
  35225. services on the gcc.gnu.org (formerly egcs.cygnus.com)
  35226. machine--mail, web services, ftp services, etc etc. Doing all this
  35227. work on scrap paper and the backs of envelopes would have been...
  35228. difficult.
  35229. * Catherine Moore for fixing various ugly problems we have sent her
  35230. way, including the haifa bug which was killing the Alpha & PowerPC
  35231. Linux kernels.
  35232. * Mike Moreton for his various Java patches.
  35233. * David Mosberger-Tang for various Alpha improvements, and for the
  35234. initial IA-64 port.
  35235. * Stephen Moshier contributed the floating point emulator that
  35236. assists in cross-compilation and permits support for floating point
  35237. numbers wider than 64 bits and for ISO C99 support.
  35238. * Bill Moyer for his behind the scenes work on various issues.
  35239. * Philippe De Muyter for his work on the m68k port.
  35240. * Joseph S. Myers for his work on the PDP-11 port, format checking
  35241. and ISO C99 support, and continuous emphasis on (and contributions
  35242. to) documentation.
  35243. * Nathan Myers for his work on libstdc++-v3: architecture and
  35244. authorship through the first three snapshots, including
  35245. implementation of locale infrastructure, string, shadow C headers,
  35246. and the initial project documentation (DESIGN, CHECKLIST, and so
  35247. forth). Later, more work on MT-safe string and shadow headers.
  35248. * Felix Natter for documentation on porting libstdc++.
  35249. * Nathanael Nerode for cleaning up the configuration/build process.
  35250. * NeXT, Inc. donated the front end that supports the Objective-C
  35251. language.
  35252. * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to the
  35253. search engine setup, various documentation fixes and other small
  35254. fixes.
  35255. * Geoff Noer for his work on getting cygwin native builds working.
  35256. * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
  35257. tracking web pages, GIMPLE tuples, and assorted fixes.
  35258. * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
  35259. FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and related
  35260. infrastructure improvements.
  35261. * Alexandre Oliva for various build infrastructure improvements,
  35262. scripts and amazing testing work, including keeping libtool issues
  35263. sane and happy.
  35264. * Stefan Olsson for work on mt_alloc.
  35265. * Melissa O'Neill for various NeXT fixes.
  35266. * Rainer Orth for random MIPS work, including improvements to GCC's
  35267. o32 ABI support, improvements to dejagnu's MIPS support, Java
  35268. configuration clean-ups and porting work, and maintaining the IRIX,
  35269. Solaris 2, and Tru64 UNIX ports.
  35270. * Hartmut Penner for work on the s390 port.
  35271. * Paul Petersen wrote the machine description for the Alliant FX/8.
  35272. * Alexandre Petit-Bianco for implementing much of the Java compiler
  35273. and continued Java maintainership.
  35274. * Matthias Pfaller for major improvements to the NS32k port.
  35275. * Gerald Pfeifer for his direction via the steering committee,
  35276. pointing out lots of problems we need to solve, maintenance of the
  35277. web pages, and taking care of documentation maintenance in general.
  35278. * Andrew Pinski for processing bug reports by the dozen.
  35279. * Ovidiu Predescu for his work on the Objective-C front end and
  35280. runtime libraries.
  35281. * Jerry Quinn for major performance improvements in C++ formatted
  35282. I/O.
  35283. * Ken Raeburn for various improvements to checker, MIPS ports and
  35284. various cleanups in the compiler.
  35285. * Rolf W. Rasmussen for hacking on AWT.
  35286. * David Reese of Sun Microsystems contributed to the Solaris on
  35287. PowerPC port.
  35288. * Volker Reichelt for keeping up with the problem reports.
  35289. * Joern Rennecke for maintaining the sh port, loop, regmove & reload
  35290. hacking and developing and maintaining the Epiphany port.
  35291. * Loren J. Rittle for improvements to libstdc++-v3 including the
  35292. FreeBSD port, threading fixes, thread-related configury changes,
  35293. critical threading documentation, and solutions to really tricky
  35294. I/O problems, as well as keeping GCC properly working on FreeBSD
  35295. and continuous testing.
  35296. * Craig Rodrigues for processing tons of bug reports.
  35297. * Ola Ro"nnerup for work on mt_alloc.
  35298. * Gavin Romig-Koch for lots of behind the scenes MIPS work.
  35299. * David Ronis inspired and encouraged Craig to rewrite the G77
  35300. documentation in texinfo format by contributing a first pass at a
  35301. translation of the old 'g77-0.5.16/f/DOC' file.
  35302. * Ken Rose for fixes to GCC's delay slot filling code.
  35303. * Ira Rosen for her contributions to the auto-vectorizer.
  35304. * Paul Rubin wrote most of the preprocessor.
  35305. * Pe'tur Runo'lfsson for major performance improvements in C++
  35306. formatted I/O and large file support in C++ filebuf.
  35307. * Chip Salzenberg for libstdc++ patches and improvements to locales,
  35308. traits, Makefiles, libio, libtool hackery, and "long long" support.
  35309. * Juha Sarlin for improvements to the H8 code generator.
  35310. * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
  35311. 300.
  35312. * Roger Sayle for improvements to constant folding and GCC's RTL
  35313. optimizers as well as for fixing numerous bugs.
  35314. * Bradley Schatz for his work on the GCJ FAQ.
  35315. * Peter Schauer wrote the code to allow debugging to work on the
  35316. Alpha.
  35317. * William Schelter did most of the work on the Intel 80386 support.
  35318. * Tobias Schlu"ter for work on GNU Fortran.
  35319. * Bernd Schmidt for various code generation improvements and major
  35320. work in the reload pass, serving as release manager for GCC 2.95.3,
  35321. and work on the Blackfin and C6X ports.
  35322. * Peter Schmid for constant testing of libstdc++--especially
  35323. application testing, going above and beyond what was requested for
  35324. the release criteria--and libstdc++ header file tweaks.
  35325. * Jason Schroeder for jcf-dump patches.
  35326. * Andreas Schwab for his work on the m68k port.
  35327. * Lars Segerlund for work on GNU Fortran.
  35328. * Dodji Seketeli for numerous C++ bug fixes and debug info
  35329. improvements.
  35330. * Tim Shen for major work on '<regex>'.
  35331. * Joel Sherrill for his direction via the steering committee, RTEMS
  35332. contributions and RTEMS testing.
  35333. * Nathan Sidwell for many C++ fixes/improvements.
  35334. * Jeffrey Siegal for helping RMS with the original design of GCC,
  35335. some code which handles the parse tree and RTL data structures,
  35336. constant folding and help with the original VAX & m68k ports.
  35337. * Kenny Simpson for prompting libstdc++ fixes due to defect reports
  35338. from the LWG (thereby keeping GCC in line with updates from the
  35339. ISO).
  35340. * Franz Sirl for his ongoing work with making the PPC port stable for
  35341. GNU/Linux.
  35342. * Andrey Slepuhin for assorted AIX hacking.
  35343. * Trevor Smigiel for contributing the SPU port.
  35344. * Christopher Smith did the port for Convex machines.
  35345. * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
  35346. Retired from GCC maintainership August 2010, having mentored two
  35347. new maintainers into the role.
  35348. * Randy Smith finished the Sun FPA support.
  35349. * Ed Smith-Rowland for his continuous work on libstdc++-v3, special
  35350. functions, '<random>', and various improvements to C++11 features.
  35351. * Scott Snyder for queue, iterator, istream, and string fixes and
  35352. libstdc++ testsuite entries. Also for providing the patch to G77
  35353. to add rudimentary support for 'INTEGER*1', 'INTEGER*2', and
  35354. 'LOGICAL*1'.
  35355. * Zdenek Sojka for running automated regression testing of GCC and
  35356. reporting numerous bugs.
  35357. * Jayant Sonar for contributing the CR16 port.
  35358. * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
  35359. * Richard Stallman, for writing the original GCC and launching the
  35360. GNU project.
  35361. * Jan Stein of the Chalmers Computer Society provided support for
  35362. Genix, as well as part of the 32000 machine description.
  35363. * Nigel Stephens for various mips16 related fixes/improvements.
  35364. * Jonathan Stone wrote the machine description for the Pyramid
  35365. computer.
  35366. * Graham Stott for various infrastructure improvements.
  35367. * John Stracke for his Java HTTP protocol fixes.
  35368. * Mike Stump for his Elxsi port, G++ contributions over the years and
  35369. more recently his vxworks contributions
  35370. * Jeff Sturm for Java porting help, bug fixes, and encouragement.
  35371. * Shigeya Suzuki for this fixes for the bsdi platforms.
  35372. * Ian Lance Taylor for the Go frontend, the initial mips16 and mips64
  35373. support, general configury hacking, fixincludes, etc.
  35374. * Holger Teutsch provided the support for the Clipper CPU.
  35375. * Gary Thomas for his ongoing work to make the PPC work for
  35376. GNU/Linux.
  35377. * Paul Thomas for contributions to GNU Fortran.
  35378. * Philipp Thomas for random bug fixes throughout the compiler
  35379. * Jason Thorpe for thread support in libstdc++ on NetBSD.
  35380. * Kresten Krab Thorup wrote the run time support for the Objective-C
  35381. language and the fantastic Java bytecode interpreter.
  35382. * Michael Tiemann for random bug fixes, the first instruction
  35383. scheduler, initial C++ support, function integration, NS32k, SPARC
  35384. and M88k machine description work, delay slot scheduling.
  35385. * Andreas Tobler for his work porting libgcj to Darwin.
  35386. * Teemu Torma for thread safe exception handling support.
  35387. * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  35388. definitions, and of the VAX machine description.
  35389. * Daniel Towner and Hariharan Sandanagobalane contributed and
  35390. maintain the picoChip port.
  35391. * Tom Tromey for internationalization support and for his many Java
  35392. contributions and libgcj maintainership.
  35393. * Lassi Tuura for improvements to config.guess to determine HP
  35394. processor types.
  35395. * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
  35396. * Andy Vaught for the design and initial implementation of the GNU
  35397. Fortran front end.
  35398. * Brent Verner for work with the libstdc++ cshadow files and their
  35399. associated configure steps.
  35400. * Todd Vierling for contributions for NetBSD ports.
  35401. * Andrew Waterman for contributing the RISC-V port, as well as
  35402. maintaining it.
  35403. * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
  35404. guidance.
  35405. * Dean Wakerley for converting the install documentation from HTML to
  35406. texinfo in time for GCC 3.0.
  35407. * Krister Walfridsson for random bug fixes.
  35408. * Feng Wang for contributions to GNU Fortran.
  35409. * Stephen M. Webb for time and effort on making libstdc++ shadow
  35410. files work with the tricky Solaris 8+ headers, and for pushing the
  35411. build-time header tree. Also, for starting and driving the
  35412. '<regex>' effort.
  35413. * John Wehle for various improvements for the x86 code generator,
  35414. related infrastructure improvements to help x86 code generation,
  35415. value range propagation and other work, WE32k port.
  35416. * Ulrich Weigand for work on the s390 port.
  35417. * Janus Weil for contributions to GNU Fortran.
  35418. * Zack Weinberg for major work on cpplib and various other bug fixes.
  35419. * Matt Welsh for help with Linux Threads support in GCJ.
  35420. * Urban Widmark for help fixing java.io.
  35421. * Mark Wielaard for new Java library code and his work integrating
  35422. with Classpath.
  35423. * Dale Wiles helped port GCC to the Tahoe.
  35424. * Bob Wilson from Tensilica, Inc. for the Xtensa port.
  35425. * Jim Wilson for his direction via the steering committee, tackling
  35426. hard problems in various places that nobody else wanted to work on,
  35427. strength reduction and other loop optimizations.
  35428. * Paul Woegerer and Tal Agmon for the CRX port.
  35429. * Carlo Wood for various fixes.
  35430. * Tom Wood for work on the m88k port.
  35431. * Chung-Ju Wu for his work on the Andes NDS32 port.
  35432. * Canqun Yang for work on GNU Fortran.
  35433. * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
  35434. description for the Tron architecture (specifically, the Gmicro).
  35435. * Kevin Zachmann helped port GCC to the Tahoe.
  35436. * Ayal Zaks for Swing Modulo Scheduling (SMS).
  35437. * Xiaoqiang Zhang for work on GNU Fortran.
  35438. * Gilles Zunino for help porting Java to Irix.
  35439. The following people are recognized for their contributions to GNAT,
  35440. the Ada front end of GCC:
  35441. * Bernard Banner
  35442. * Romain Berrendonner
  35443. * Geert Bosch
  35444. * Emmanuel Briot
  35445. * Joel Brobecker
  35446. * Ben Brosgol
  35447. * Vincent Celier
  35448. * Arnaud Charlet
  35449. * Chien Chieng
  35450. * Cyrille Comar
  35451. * Cyrille Crozes
  35452. * Robert Dewar
  35453. * Gary Dismukes
  35454. * Robert Duff
  35455. * Ed Falis
  35456. * Ramon Fernandez
  35457. * Sam Figueroa
  35458. * Vasiliy Fofanov
  35459. * Michael Friess
  35460. * Franco Gasperoni
  35461. * Ted Giering
  35462. * Matthew Gingell
  35463. * Laurent Guerby
  35464. * Jerome Guitton
  35465. * Olivier Hainque
  35466. * Jerome Hugues
  35467. * Hristian Kirtchev
  35468. * Jerome Lambourg
  35469. * Bruno Leclerc
  35470. * Albert Lee
  35471. * Sean McNeil
  35472. * Javier Miranda
  35473. * Laurent Nana
  35474. * Pascal Obry
  35475. * Dong-Ik Oh
  35476. * Laurent Pautet
  35477. * Brett Porter
  35478. * Thomas Quinot
  35479. * Nicolas Roche
  35480. * Pat Rogers
  35481. * Jose Ruiz
  35482. * Douglas Rupp
  35483. * Sergey Rybin
  35484. * Gail Schenker
  35485. * Ed Schonberg
  35486. * Nicolas Setton
  35487. * Samuel Tardieu
  35488. The following people are recognized for their contributions of new
  35489. features, bug reports, testing and integration of classpath/libgcj for
  35490. GCC version 4.1:
  35491. * Lillian Angel for 'JTree' implementation and lots Free Swing
  35492. additions and bug fixes.
  35493. * Wolfgang Baer for 'GapContent' bug fixes.
  35494. * Anthony Balkissoon for 'JList', Free Swing 1.5 updates and mouse
  35495. event fixes, lots of Free Swing work including 'JTable' editing.
  35496. * Stuart Ballard for RMI constant fixes.
  35497. * Goffredo Baroncelli for 'HTTPURLConnection' fixes.
  35498. * Gary Benson for 'MessageFormat' fixes.
  35499. * Daniel Bonniot for 'Serialization' fixes.
  35500. * Chris Burdess for lots of gnu.xml and http protocol fixes, 'StAX'
  35501. and 'DOM xml:id' support.
  35502. * Ka-Hing Cheung for 'TreePath' and 'TreeSelection' fixes.
  35503. * Archie Cobbs for build fixes, VM interface updates,
  35504. 'URLClassLoader' updates.
  35505. * Kelley Cook for build fixes.
  35506. * Martin Cordova for Suggestions for better 'SocketTimeoutException'.
  35507. * David Daney for 'BitSet' bug fixes, 'HttpURLConnection' rewrite and
  35508. improvements.
  35509. * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
  35510. 2D support. Lots of imageio framework additions, lots of AWT and
  35511. Free Swing bug fixes.
  35512. * Jeroen Frijters for 'ClassLoader' and nio cleanups, serialization
  35513. fixes, better 'Proxy' support, bug fixes and IKVM integration.
  35514. * Santiago Gala for 'AccessControlContext' fixes.
  35515. * Nicolas Geoffray for 'VMClassLoader' and 'AccessController'
  35516. improvements.
  35517. * David Gilbert for 'basic' and 'metal' icon and plaf support and
  35518. lots of documenting, Lots of Free Swing and metal theme additions.
  35519. 'MetalIconFactory' implementation.
  35520. * Anthony Green for 'MIDI' framework, 'ALSA' and 'DSSI' providers.
  35521. * Andrew Haley for 'Serialization' and 'URLClassLoader' fixes, gcj
  35522. build speedups.
  35523. * Kim Ho for 'JFileChooser' implementation.
  35524. * Andrew John Hughes for 'Locale' and net fixes, URI RFC2986 updates,
  35525. 'Serialization' fixes, 'Properties' XML support and generic branch
  35526. work, VMIntegration guide update.
  35527. * Bastiaan Huisman for 'TimeZone' bug fixing.
  35528. * Andreas Jaeger for mprec updates.
  35529. * Paul Jenner for better '-Werror' support.
  35530. * Ito Kazumitsu for 'NetworkInterface' implementation and updates.
  35531. * Roman Kennke for 'BoxLayout', 'GrayFilter' and 'SplitPane', plus
  35532. bug fixes all over. Lots of Free Swing work including styled text.
  35533. * Simon Kitching for 'String' cleanups and optimization suggestions.
  35534. * Michael Koch for configuration fixes, 'Locale' updates, bug and
  35535. build fixes.
  35536. * Guilhem Lavaux for configuration, thread and channel fixes and
  35537. Kaffe integration. JCL native 'Pointer' updates. Logger bug
  35538. fixes.
  35539. * David Lichteblau for JCL support library global/local reference
  35540. cleanups.
  35541. * Aaron Luchko for JDWP updates and documentation fixes.
  35542. * Ziga Mahkovec for 'Graphics2D' upgraded to Cairo 0.5 and new regex
  35543. features.
  35544. * Sven de Marothy for BMP imageio support, CSS and 'TextLayout'
  35545. fixes. 'GtkImage' rewrite, 2D, awt, free swing and date/time fixes
  35546. and implementing the Qt4 peers.
  35547. * Casey Marshall for crypto algorithm fixes, 'FileChannel' lock,
  35548. 'SystemLogger' and 'FileHandler' rotate implementations, NIO
  35549. 'FileChannel.map' support, security and policy updates.
  35550. * Bryce McKinlay for RMI work.
  35551. * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
  35552. testing and documenting.
  35553. * Kalle Olavi Niemitalo for build fixes.
  35554. * Rainer Orth for build fixes.
  35555. * Andrew Overholt for 'File' locking fixes.
  35556. * Ingo Proetel for 'Image', 'Logger' and 'URLClassLoader' updates.
  35557. * Olga Rodimina for 'MenuSelectionManager' implementation.
  35558. * Jan Roehrich for 'BasicTreeUI' and 'JTree' fixes.
  35559. * Julian Scheid for documentation updates and gjdoc support.
  35560. * Christian Schlichtherle for zip fixes and cleanups.
  35561. * Robert Schuster for documentation updates and beans fixes,
  35562. 'TreeNode' enumerations and 'ActionCommand' and various fixes, XML
  35563. and URL, AWT and Free Swing bug fixes.
  35564. * Keith Seitz for lots of JDWP work.
  35565. * Christian Thalinger for 64-bit cleanups, Configuration and VM
  35566. interface fixes and 'CACAO' integration, 'fdlibm' updates.
  35567. * Gael Thomas for 'VMClassLoader' boot packages support suggestions.
  35568. * Andreas Tobler for Darwin and Solaris testing and fixing, 'Qt4'
  35569. support for Darwin/OS X, 'Graphics2D' support, 'gtk+' updates.
  35570. * Dalibor Topic for better 'DEBUG' support, build cleanups and Kaffe
  35571. integration. 'Qt4' build infrastructure, 'SHA1PRNG' and
  35572. 'GdkPixbugDecoder' updates.
  35573. * Tom Tromey for Eclipse integration, generics work, lots of bug
  35574. fixes and gcj integration including coordinating The Big Merge.
  35575. * Mark Wielaard for bug fixes, packaging and release management,
  35576. 'Clipboard' implementation, system call interrupts and network
  35577. timeouts and 'GdkPixpufDecoder' fixes.
  35578. In addition to the above, all of which also contributed time and energy
  35579. in testing GCC, we would like to thank the following for their
  35580. contributions to testing:
  35581. * Michael Abd-El-Malek
  35582. * Thomas Arend
  35583. * Bonzo Armstrong
  35584. * Steven Ashe
  35585. * Chris Baldwin
  35586. * David Billinghurst
  35587. * Jim Blandy
  35588. * Stephane Bortzmeyer
  35589. * Horst von Brand
  35590. * Frank Braun
  35591. * Rodney Brown
  35592. * Sidney Cadot
  35593. * Bradford Castalia
  35594. * Robert Clark
  35595. * Jonathan Corbet
  35596. * Ralph Doncaster
  35597. * Richard Emberson
  35598. * Levente Farkas
  35599. * Graham Fawcett
  35600. * Mark Fernyhough
  35601. * Robert A. French
  35602. * Jo"rgen Freyh
  35603. * Mark K. Gardner
  35604. * Charles-Antoine Gauthier
  35605. * Yung Shing Gene
  35606. * David Gilbert
  35607. * Simon Gornall
  35608. * Fred Gray
  35609. * John Griffin
  35610. * Patrik Hagglund
  35611. * Phil Hargett
  35612. * Amancio Hasty
  35613. * Takafumi Hayashi
  35614. * Bryan W. Headley
  35615. * Kevin B. Hendricks
  35616. * Joep Jansen
  35617. * Christian Joensson
  35618. * Michel Kern
  35619. * David Kidd
  35620. * Tobias Kuipers
  35621. * Anand Krishnaswamy
  35622. * A. O. V. Le Blanc
  35623. * llewelly
  35624. * Damon Love
  35625. * Brad Lucier
  35626. * Matthias Klose
  35627. * Martin Knoblauch
  35628. * Rick Lutowski
  35629. * Jesse Macnish
  35630. * Stefan Morrell
  35631. * Anon A. Mous
  35632. * Matthias Mueller
  35633. * Pekka Nikander
  35634. * Rick Niles
  35635. * Jon Olson
  35636. * Magnus Persson
  35637. * Chris Pollard
  35638. * Richard Polton
  35639. * Derk Reefman
  35640. * David Rees
  35641. * Paul Reilly
  35642. * Tom Reilly
  35643. * Torsten Rueger
  35644. * Danny Sadinoff
  35645. * Marc Schifer
  35646. * Erik Schnetter
  35647. * Wayne K. Schroll
  35648. * David Schuler
  35649. * Vin Shelton
  35650. * Tim Souder
  35651. * Adam Sulmicki
  35652. * Bill Thorson
  35653. * George Talbot
  35654. * Pedro A. M. Vazquez
  35655. * Gregory Warnes
  35656. * Ian Watson
  35657. * David E. Young
  35658. * And many others
  35659. And finally we'd like to thank everyone who uses the compiler, provides
  35660. feedback and generally reminds us why we're doing this work in the first
  35661. place.
  35662. 
  35663. File: gccint.info, Node: Option Index, Next: Concept Index, Prev: Contributors, Up: Top
  35664. Option Index
  35665. ************
  35666. GCC's command line options are indexed here without any initial '-' or
  35667. '--'. Where an option has both positive and negative forms (such as
  35668. '-fOPTION' and '-fno-OPTION'), relevant entries in the manual are
  35669. indexed under the most appropriate form; it may sometimes be useful to
  35670. look up both forms.
  35671. �[index�]
  35672. * Menu:
  35673. * fltrans: Internal flags. (line 18)
  35674. * fltrans-output-list: Internal flags. (line 23)
  35675. * fresolution: Internal flags. (line 27)
  35676. * fwpa: Internal flags. (line 9)
  35677. * msoft-float: Soft float library routines.
  35678. (line 6)
  35679. 
  35680. File: gccint.info, Node: Concept Index, Prev: Option Index, Up: Top
  35681. Concept Index
  35682. *************
  35683. �[index�]
  35684. * Menu:
  35685. * '!' in constraint: Multi-Alternative. (line 48)
  35686. * '#' in constraint: Modifiers. (line 78)
  35687. * '#' in template: Output Template. (line 66)
  35688. * #pragma: Misc. (line 408)
  35689. * '$' in constraint: Multi-Alternative. (line 57)
  35690. * '%' in constraint: Modifiers. (line 52)
  35691. * % in GTY option: GTY Options. (line 18)
  35692. * '%' in template: Output Template. (line 6)
  35693. * '&' in constraint: Modifiers. (line 25)
  35694. * (gimple_stmt_iterator: GIMPLE API. (line 30)
  35695. * (nil): RTL Objects. (line 73)
  35696. * '*' in constraint: Modifiers. (line 83)
  35697. * '*' in template: Output Statement. (line 29)
  35698. * *gimple_build_asm_vec: 'GIMPLE_ASM'. (line 6)
  35699. * *gimple_build_assign: 'GIMPLE_ASSIGN'. (line 6)
  35700. * *gimple_build_assign <1>: 'GIMPLE_ASSIGN'. (line 18)
  35701. * *gimple_build_assign <2>: 'GIMPLE_ASSIGN'. (line 29)
  35702. * *gimple_build_assign <3>: 'GIMPLE_ASSIGN'. (line 35)
  35703. * *gimple_build_bind: 'GIMPLE_BIND'. (line 6)
  35704. * *gimple_build_call: 'GIMPLE_CALL'. (line 6)
  35705. * *gimple_build_call_from_tree: 'GIMPLE_CALL'. (line 15)
  35706. * *gimple_build_call_vec: 'GIMPLE_CALL'. (line 23)
  35707. * *gimple_build_catch: 'GIMPLE_CATCH'. (line 6)
  35708. * *gimple_build_cond: 'GIMPLE_COND'. (line 6)
  35709. * *gimple_build_cond_from_tree: 'GIMPLE_COND'. (line 14)
  35710. * *gimple_build_debug_bind: 'GIMPLE_DEBUG'. (line 6)
  35711. * *gimple_build_eh_filter: 'GIMPLE_EH_FILTER'. (line 6)
  35712. * *gimple_build_goto: 'GIMPLE_GOTO'. (line 6)
  35713. * *gimple_build_label: 'GIMPLE_LABEL'. (line 6)
  35714. * *gimple_build_omp_atomic_load: 'GIMPLE_OMP_ATOMIC_LOAD'.
  35715. (line 6)
  35716. * *gimple_build_omp_atomic_store: 'GIMPLE_OMP_ATOMIC_STORE'.
  35717. (line 6)
  35718. * *gimple_build_omp_continue: 'GIMPLE_OMP_CONTINUE'.
  35719. (line 6)
  35720. * *gimple_build_omp_critical: 'GIMPLE_OMP_CRITICAL'.
  35721. (line 6)
  35722. * *gimple_build_omp_for: 'GIMPLE_OMP_FOR'. (line 6)
  35723. * *gimple_build_omp_parallel: 'GIMPLE_OMP_PARALLEL'.
  35724. (line 6)
  35725. * *gimple_build_omp_sections: 'GIMPLE_OMP_SECTIONS'.
  35726. (line 6)
  35727. * *gimple_build_omp_single: 'GIMPLE_OMP_SINGLE'.
  35728. (line 6)
  35729. * *gimple_build_resx: 'GIMPLE_RESX'. (line 6)
  35730. * *gimple_build_return: 'GIMPLE_RETURN'. (line 6)
  35731. * *gimple_build_switch: 'GIMPLE_SWITCH'. (line 6)
  35732. * *gimple_build_try: 'GIMPLE_TRY'. (line 6)
  35733. * '+' in constraint: Modifiers. (line 12)
  35734. * '-fsection-anchors': Special Accessors. (line 117)
  35735. * '-fsection-anchors' <1>: Anchored Addresses. (line 6)
  35736. * '/c' in RTL dump: Flags. (line 221)
  35737. * '/f' in RTL dump: Flags. (line 229)
  35738. * '/i' in RTL dump: Flags. (line 274)
  35739. * '/j' in RTL dump: Flags. (line 286)
  35740. * '/s' in RTL dump: Flags. (line 245)
  35741. * '/u' in RTL dump: Flags. (line 296)
  35742. * '/v' in RTL dump: Flags. (line 328)
  35743. * '0' in constraint: Simple Constraints. (line 128)
  35744. * '<' in constraint: Simple Constraints. (line 47)
  35745. * '=' in constraint: Modifiers. (line 8)
  35746. * '>' in constraint: Simple Constraints. (line 59)
  35747. * '?' in constraint: Multi-Alternative. (line 42)
  35748. * \: Output Template. (line 46)
  35749. * '^' in constraint: Multi-Alternative. (line 53)
  35750. * __absvdi2: Integer library routines.
  35751. (line 106)
  35752. * __absvsi2: Integer library routines.
  35753. (line 105)
  35754. * __addda3: Fixed-point fractional library routines.
  35755. (line 44)
  35756. * __adddf3: Soft float library routines.
  35757. (line 22)
  35758. * __adddq3: Fixed-point fractional library routines.
  35759. (line 31)
  35760. * __addha3: Fixed-point fractional library routines.
  35761. (line 41)
  35762. * __addhq3: Fixed-point fractional library routines.
  35763. (line 29)
  35764. * __addqq3: Fixed-point fractional library routines.
  35765. (line 27)
  35766. * __addsa3: Fixed-point fractional library routines.
  35767. (line 43)
  35768. * __addsf3: Soft float library routines.
  35769. (line 21)
  35770. * __addsq3: Fixed-point fractional library routines.
  35771. (line 30)
  35772. * __addta3: Fixed-point fractional library routines.
  35773. (line 45)
  35774. * __addtf3: Soft float library routines.
  35775. (line 23)
  35776. * __adduda3: Fixed-point fractional library routines.
  35777. (line 51)
  35778. * __addudq3: Fixed-point fractional library routines.
  35779. (line 39)
  35780. * __adduha3: Fixed-point fractional library routines.
  35781. (line 47)
  35782. * __adduhq3: Fixed-point fractional library routines.
  35783. (line 35)
  35784. * __adduqq3: Fixed-point fractional library routines.
  35785. (line 33)
  35786. * __addusa3: Fixed-point fractional library routines.
  35787. (line 49)
  35788. * __addusq3: Fixed-point fractional library routines.
  35789. (line 37)
  35790. * __adduta3: Fixed-point fractional library routines.
  35791. (line 53)
  35792. * __addvdi3: Integer library routines.
  35793. (line 110)
  35794. * __addvsi3: Integer library routines.
  35795. (line 109)
  35796. * __addxf3: Soft float library routines.
  35797. (line 25)
  35798. * __ashlda3: Fixed-point fractional library routines.
  35799. (line 350)
  35800. * __ashldi3: Integer library routines.
  35801. (line 13)
  35802. * __ashldq3: Fixed-point fractional library routines.
  35803. (line 338)
  35804. * __ashlha3: Fixed-point fractional library routines.
  35805. (line 348)
  35806. * __ashlhq3: Fixed-point fractional library routines.
  35807. (line 336)
  35808. * __ashlqq3: Fixed-point fractional library routines.
  35809. (line 335)
  35810. * __ashlsa3: Fixed-point fractional library routines.
  35811. (line 349)
  35812. * __ashlsi3: Integer library routines.
  35813. (line 12)
  35814. * __ashlsq3: Fixed-point fractional library routines.
  35815. (line 337)
  35816. * __ashlta3: Fixed-point fractional library routines.
  35817. (line 351)
  35818. * __ashlti3: Integer library routines.
  35819. (line 14)
  35820. * __ashluda3: Fixed-point fractional library routines.
  35821. (line 357)
  35822. * __ashludq3: Fixed-point fractional library routines.
  35823. (line 346)
  35824. * __ashluha3: Fixed-point fractional library routines.
  35825. (line 353)
  35826. * __ashluhq3: Fixed-point fractional library routines.
  35827. (line 342)
  35828. * __ashluqq3: Fixed-point fractional library routines.
  35829. (line 340)
  35830. * __ashlusa3: Fixed-point fractional library routines.
  35831. (line 355)
  35832. * __ashlusq3: Fixed-point fractional library routines.
  35833. (line 344)
  35834. * __ashluta3: Fixed-point fractional library routines.
  35835. (line 359)
  35836. * __ashrda3: Fixed-point fractional library routines.
  35837. (line 370)
  35838. * __ashrdi3: Integer library routines.
  35839. (line 18)
  35840. * __ashrdq3: Fixed-point fractional library routines.
  35841. (line 366)
  35842. * __ashrha3: Fixed-point fractional library routines.
  35843. (line 368)
  35844. * __ashrhq3: Fixed-point fractional library routines.
  35845. (line 364)
  35846. * __ashrqq3: Fixed-point fractional library routines.
  35847. (line 363)
  35848. * __ashrsa3: Fixed-point fractional library routines.
  35849. (line 369)
  35850. * __ashrsi3: Integer library routines.
  35851. (line 17)
  35852. * __ashrsq3: Fixed-point fractional library routines.
  35853. (line 365)
  35854. * __ashrta3: Fixed-point fractional library routines.
  35855. (line 371)
  35856. * __ashrti3: Integer library routines.
  35857. (line 19)
  35858. * __bid_adddd3: Decimal float library routines.
  35859. (line 23)
  35860. * __bid_addsd3: Decimal float library routines.
  35861. (line 19)
  35862. * __bid_addtd3: Decimal float library routines.
  35863. (line 27)
  35864. * __bid_divdd3: Decimal float library routines.
  35865. (line 66)
  35866. * __bid_divsd3: Decimal float library routines.
  35867. (line 62)
  35868. * __bid_divtd3: Decimal float library routines.
  35869. (line 70)
  35870. * __bid_eqdd2: Decimal float library routines.
  35871. (line 258)
  35872. * __bid_eqsd2: Decimal float library routines.
  35873. (line 256)
  35874. * __bid_eqtd2: Decimal float library routines.
  35875. (line 260)
  35876. * __bid_extendddtd2: Decimal float library routines.
  35877. (line 91)
  35878. * __bid_extendddtf: Decimal float library routines.
  35879. (line 139)
  35880. * __bid_extendddxf: Decimal float library routines.
  35881. (line 133)
  35882. * __bid_extenddfdd: Decimal float library routines.
  35883. (line 146)
  35884. * __bid_extenddftd: Decimal float library routines.
  35885. (line 106)
  35886. * __bid_extendsddd2: Decimal float library routines.
  35887. (line 87)
  35888. * __bid_extendsddf: Decimal float library routines.
  35889. (line 127)
  35890. * __bid_extendsdtd2: Decimal float library routines.
  35891. (line 89)
  35892. * __bid_extendsdtf: Decimal float library routines.
  35893. (line 137)
  35894. * __bid_extendsdxf: Decimal float library routines.
  35895. (line 131)
  35896. * __bid_extendsfdd: Decimal float library routines.
  35897. (line 102)
  35898. * __bid_extendsfsd: Decimal float library routines.
  35899. (line 144)
  35900. * __bid_extendsftd: Decimal float library routines.
  35901. (line 104)
  35902. * __bid_extendtftd: Decimal float library routines.
  35903. (line 148)
  35904. * __bid_extendxftd: Decimal float library routines.
  35905. (line 108)
  35906. * __bid_fixdddi: Decimal float library routines.
  35907. (line 169)
  35908. * __bid_fixddsi: Decimal float library routines.
  35909. (line 161)
  35910. * __bid_fixsddi: Decimal float library routines.
  35911. (line 167)
  35912. * __bid_fixsdsi: Decimal float library routines.
  35913. (line 159)
  35914. * __bid_fixtddi: Decimal float library routines.
  35915. (line 171)
  35916. * __bid_fixtdsi: Decimal float library routines.
  35917. (line 163)
  35918. * __bid_fixunsdddi: Decimal float library routines.
  35919. (line 186)
  35920. * __bid_fixunsddsi: Decimal float library routines.
  35921. (line 177)
  35922. * __bid_fixunssddi: Decimal float library routines.
  35923. (line 184)
  35924. * __bid_fixunssdsi: Decimal float library routines.
  35925. (line 175)
  35926. * __bid_fixunstddi: Decimal float library routines.
  35927. (line 188)
  35928. * __bid_fixunstdsi: Decimal float library routines.
  35929. (line 179)
  35930. * __bid_floatdidd: Decimal float library routines.
  35931. (line 204)
  35932. * __bid_floatdisd: Decimal float library routines.
  35933. (line 202)
  35934. * __bid_floatditd: Decimal float library routines.
  35935. (line 206)
  35936. * __bid_floatsidd: Decimal float library routines.
  35937. (line 195)
  35938. * __bid_floatsisd: Decimal float library routines.
  35939. (line 193)
  35940. * __bid_floatsitd: Decimal float library routines.
  35941. (line 197)
  35942. * __bid_floatunsdidd: Decimal float library routines.
  35943. (line 222)
  35944. * __bid_floatunsdisd: Decimal float library routines.
  35945. (line 220)
  35946. * __bid_floatunsditd: Decimal float library routines.
  35947. (line 224)
  35948. * __bid_floatunssidd: Decimal float library routines.
  35949. (line 213)
  35950. * __bid_floatunssisd: Decimal float library routines.
  35951. (line 211)
  35952. * __bid_floatunssitd: Decimal float library routines.
  35953. (line 215)
  35954. * __bid_gedd2: Decimal float library routines.
  35955. (line 276)
  35956. * __bid_gesd2: Decimal float library routines.
  35957. (line 274)
  35958. * __bid_getd2: Decimal float library routines.
  35959. (line 278)
  35960. * __bid_gtdd2: Decimal float library routines.
  35961. (line 303)
  35962. * __bid_gtsd2: Decimal float library routines.
  35963. (line 301)
  35964. * __bid_gttd2: Decimal float library routines.
  35965. (line 305)
  35966. * __bid_ledd2: Decimal float library routines.
  35967. (line 294)
  35968. * __bid_lesd2: Decimal float library routines.
  35969. (line 292)
  35970. * __bid_letd2: Decimal float library routines.
  35971. (line 296)
  35972. * __bid_ltdd2: Decimal float library routines.
  35973. (line 285)
  35974. * __bid_ltsd2: Decimal float library routines.
  35975. (line 283)
  35976. * __bid_lttd2: Decimal float library routines.
  35977. (line 287)
  35978. * __bid_muldd3: Decimal float library routines.
  35979. (line 52)
  35980. * __bid_mulsd3: Decimal float library routines.
  35981. (line 48)
  35982. * __bid_multd3: Decimal float library routines.
  35983. (line 56)
  35984. * __bid_nedd2: Decimal float library routines.
  35985. (line 267)
  35986. * __bid_negdd2: Decimal float library routines.
  35987. (line 77)
  35988. * __bid_negsd2: Decimal float library routines.
  35989. (line 75)
  35990. * __bid_negtd2: Decimal float library routines.
  35991. (line 79)
  35992. * __bid_nesd2: Decimal float library routines.
  35993. (line 265)
  35994. * __bid_netd2: Decimal float library routines.
  35995. (line 269)
  35996. * __bid_subdd3: Decimal float library routines.
  35997. (line 37)
  35998. * __bid_subsd3: Decimal float library routines.
  35999. (line 33)
  36000. * __bid_subtd3: Decimal float library routines.
  36001. (line 41)
  36002. * __bid_truncdddf: Decimal float library routines.
  36003. (line 152)
  36004. * __bid_truncddsd2: Decimal float library routines.
  36005. (line 93)
  36006. * __bid_truncddsf: Decimal float library routines.
  36007. (line 123)
  36008. * __bid_truncdfsd: Decimal float library routines.
  36009. (line 110)
  36010. * __bid_truncsdsf: Decimal float library routines.
  36011. (line 150)
  36012. * __bid_trunctddd2: Decimal float library routines.
  36013. (line 97)
  36014. * __bid_trunctddf: Decimal float library routines.
  36015. (line 129)
  36016. * __bid_trunctdsd2: Decimal float library routines.
  36017. (line 95)
  36018. * __bid_trunctdsf: Decimal float library routines.
  36019. (line 125)
  36020. * __bid_trunctdtf: Decimal float library routines.
  36021. (line 154)
  36022. * __bid_trunctdxf: Decimal float library routines.
  36023. (line 135)
  36024. * __bid_trunctfdd: Decimal float library routines.
  36025. (line 118)
  36026. * __bid_trunctfsd: Decimal float library routines.
  36027. (line 114)
  36028. * __bid_truncxfdd: Decimal float library routines.
  36029. (line 116)
  36030. * __bid_truncxfsd: Decimal float library routines.
  36031. (line 112)
  36032. * __bid_unorddd2: Decimal float library routines.
  36033. (line 234)
  36034. * __bid_unordsd2: Decimal float library routines.
  36035. (line 232)
  36036. * __bid_unordtd2: Decimal float library routines.
  36037. (line 236)
  36038. * __bswapdi2: Integer library routines.
  36039. (line 161)
  36040. * __bswapsi2: Integer library routines.
  36041. (line 160)
  36042. * __builtin_classify_type: Varargs. (line 48)
  36043. * __builtin_next_arg: Varargs. (line 39)
  36044. * __builtin_saveregs: Varargs. (line 22)
  36045. * __chkp_bndcl: Misc. (line 671)
  36046. * __chkp_bndcu: Misc. (line 677)
  36047. * __chkp_bndldx: Misc. (line 665)
  36048. * __chkp_bndmk: Misc. (line 652)
  36049. * __chkp_bndret: Misc. (line 683)
  36050. * __chkp_bndstx: Misc. (line 659)
  36051. * __chkp_intersect: Misc. (line 689)
  36052. * __chkp_narrow: Misc. (line 694)
  36053. * __chkp_sizeof: Misc. (line 700)
  36054. * __clear_cache: Miscellaneous routines.
  36055. (line 9)
  36056. * __clzdi2: Integer library routines.
  36057. (line 130)
  36058. * __clzsi2: Integer library routines.
  36059. (line 129)
  36060. * __clzti2: Integer library routines.
  36061. (line 131)
  36062. * __cmpda2: Fixed-point fractional library routines.
  36063. (line 450)
  36064. * __cmpdf2: Soft float library routines.
  36065. (line 163)
  36066. * __cmpdi2: Integer library routines.
  36067. (line 86)
  36068. * __cmpdq2: Fixed-point fractional library routines.
  36069. (line 439)
  36070. * __cmpha2: Fixed-point fractional library routines.
  36071. (line 448)
  36072. * __cmphq2: Fixed-point fractional library routines.
  36073. (line 437)
  36074. * __cmpqq2: Fixed-point fractional library routines.
  36075. (line 436)
  36076. * __cmpsa2: Fixed-point fractional library routines.
  36077. (line 449)
  36078. * __cmpsf2: Soft float library routines.
  36079. (line 162)
  36080. * __cmpsq2: Fixed-point fractional library routines.
  36081. (line 438)
  36082. * __cmpta2: Fixed-point fractional library routines.
  36083. (line 451)
  36084. * __cmptf2: Soft float library routines.
  36085. (line 164)
  36086. * __cmpti2: Integer library routines.
  36087. (line 87)
  36088. * __cmpuda2: Fixed-point fractional library routines.
  36089. (line 456)
  36090. * __cmpudq2: Fixed-point fractional library routines.
  36091. (line 446)
  36092. * __cmpuha2: Fixed-point fractional library routines.
  36093. (line 453)
  36094. * __cmpuhq2: Fixed-point fractional library routines.
  36095. (line 443)
  36096. * __cmpuqq2: Fixed-point fractional library routines.
  36097. (line 441)
  36098. * __cmpusa2: Fixed-point fractional library routines.
  36099. (line 455)
  36100. * __cmpusq2: Fixed-point fractional library routines.
  36101. (line 444)
  36102. * __cmputa2: Fixed-point fractional library routines.
  36103. (line 458)
  36104. * __CTOR_LIST__: Initialization. (line 25)
  36105. * __ctzdi2: Integer library routines.
  36106. (line 137)
  36107. * __ctzsi2: Integer library routines.
  36108. (line 136)
  36109. * __ctzti2: Integer library routines.
  36110. (line 138)
  36111. * __divda3: Fixed-point fractional library routines.
  36112. (line 226)
  36113. * __divdc3: Soft float library routines.
  36114. (line 250)
  36115. * __divdf3: Soft float library routines.
  36116. (line 47)
  36117. * __divdi3: Integer library routines.
  36118. (line 24)
  36119. * __divdq3: Fixed-point fractional library routines.
  36120. (line 221)
  36121. * __divha3: Fixed-point fractional library routines.
  36122. (line 223)
  36123. * __divhq3: Fixed-point fractional library routines.
  36124. (line 219)
  36125. * __divqq3: Fixed-point fractional library routines.
  36126. (line 217)
  36127. * __divsa3: Fixed-point fractional library routines.
  36128. (line 225)
  36129. * __divsc3: Soft float library routines.
  36130. (line 248)
  36131. * __divsf3: Soft float library routines.
  36132. (line 46)
  36133. * __divsi3: Integer library routines.
  36134. (line 23)
  36135. * __divsq3: Fixed-point fractional library routines.
  36136. (line 220)
  36137. * __divta3: Fixed-point fractional library routines.
  36138. (line 227)
  36139. * __divtc3: Soft float library routines.
  36140. (line 252)
  36141. * __divtf3: Soft float library routines.
  36142. (line 48)
  36143. * __divti3: Integer library routines.
  36144. (line 25)
  36145. * __divxc3: Soft float library routines.
  36146. (line 254)
  36147. * __divxf3: Soft float library routines.
  36148. (line 50)
  36149. * __dpd_adddd3: Decimal float library routines.
  36150. (line 21)
  36151. * __dpd_addsd3: Decimal float library routines.
  36152. (line 17)
  36153. * __dpd_addtd3: Decimal float library routines.
  36154. (line 25)
  36155. * __dpd_divdd3: Decimal float library routines.
  36156. (line 64)
  36157. * __dpd_divsd3: Decimal float library routines.
  36158. (line 60)
  36159. * __dpd_divtd3: Decimal float library routines.
  36160. (line 68)
  36161. * __dpd_eqdd2: Decimal float library routines.
  36162. (line 257)
  36163. * __dpd_eqsd2: Decimal float library routines.
  36164. (line 255)
  36165. * __dpd_eqtd2: Decimal float library routines.
  36166. (line 259)
  36167. * __dpd_extendddtd2: Decimal float library routines.
  36168. (line 90)
  36169. * __dpd_extendddtf: Decimal float library routines.
  36170. (line 138)
  36171. * __dpd_extendddxf: Decimal float library routines.
  36172. (line 132)
  36173. * __dpd_extenddfdd: Decimal float library routines.
  36174. (line 145)
  36175. * __dpd_extenddftd: Decimal float library routines.
  36176. (line 105)
  36177. * __dpd_extendsddd2: Decimal float library routines.
  36178. (line 86)
  36179. * __dpd_extendsddf: Decimal float library routines.
  36180. (line 126)
  36181. * __dpd_extendsdtd2: Decimal float library routines.
  36182. (line 88)
  36183. * __dpd_extendsdtf: Decimal float library routines.
  36184. (line 136)
  36185. * __dpd_extendsdxf: Decimal float library routines.
  36186. (line 130)
  36187. * __dpd_extendsfdd: Decimal float library routines.
  36188. (line 101)
  36189. * __dpd_extendsfsd: Decimal float library routines.
  36190. (line 143)
  36191. * __dpd_extendsftd: Decimal float library routines.
  36192. (line 103)
  36193. * __dpd_extendtftd: Decimal float library routines.
  36194. (line 147)
  36195. * __dpd_extendxftd: Decimal float library routines.
  36196. (line 107)
  36197. * __dpd_fixdddi: Decimal float library routines.
  36198. (line 168)
  36199. * __dpd_fixddsi: Decimal float library routines.
  36200. (line 160)
  36201. * __dpd_fixsddi: Decimal float library routines.
  36202. (line 166)
  36203. * __dpd_fixsdsi: Decimal float library routines.
  36204. (line 158)
  36205. * __dpd_fixtddi: Decimal float library routines.
  36206. (line 170)
  36207. * __dpd_fixtdsi: Decimal float library routines.
  36208. (line 162)
  36209. * __dpd_fixunsdddi: Decimal float library routines.
  36210. (line 185)
  36211. * __dpd_fixunsddsi: Decimal float library routines.
  36212. (line 176)
  36213. * __dpd_fixunssddi: Decimal float library routines.
  36214. (line 183)
  36215. * __dpd_fixunssdsi: Decimal float library routines.
  36216. (line 174)
  36217. * __dpd_fixunstddi: Decimal float library routines.
  36218. (line 187)
  36219. * __dpd_fixunstdsi: Decimal float library routines.
  36220. (line 178)
  36221. * __dpd_floatdidd: Decimal float library routines.
  36222. (line 203)
  36223. * __dpd_floatdisd: Decimal float library routines.
  36224. (line 201)
  36225. * __dpd_floatditd: Decimal float library routines.
  36226. (line 205)
  36227. * __dpd_floatsidd: Decimal float library routines.
  36228. (line 194)
  36229. * __dpd_floatsisd: Decimal float library routines.
  36230. (line 192)
  36231. * __dpd_floatsitd: Decimal float library routines.
  36232. (line 196)
  36233. * __dpd_floatunsdidd: Decimal float library routines.
  36234. (line 221)
  36235. * __dpd_floatunsdisd: Decimal float library routines.
  36236. (line 219)
  36237. * __dpd_floatunsditd: Decimal float library routines.
  36238. (line 223)
  36239. * __dpd_floatunssidd: Decimal float library routines.
  36240. (line 212)
  36241. * __dpd_floatunssisd: Decimal float library routines.
  36242. (line 210)
  36243. * __dpd_floatunssitd: Decimal float library routines.
  36244. (line 214)
  36245. * __dpd_gedd2: Decimal float library routines.
  36246. (line 275)
  36247. * __dpd_gesd2: Decimal float library routines.
  36248. (line 273)
  36249. * __dpd_getd2: Decimal float library routines.
  36250. (line 277)
  36251. * __dpd_gtdd2: Decimal float library routines.
  36252. (line 302)
  36253. * __dpd_gtsd2: Decimal float library routines.
  36254. (line 300)
  36255. * __dpd_gttd2: Decimal float library routines.
  36256. (line 304)
  36257. * __dpd_ledd2: Decimal float library routines.
  36258. (line 293)
  36259. * __dpd_lesd2: Decimal float library routines.
  36260. (line 291)
  36261. * __dpd_letd2: Decimal float library routines.
  36262. (line 295)
  36263. * __dpd_ltdd2: Decimal float library routines.
  36264. (line 284)
  36265. * __dpd_ltsd2: Decimal float library routines.
  36266. (line 282)
  36267. * __dpd_lttd2: Decimal float library routines.
  36268. (line 286)
  36269. * __dpd_muldd3: Decimal float library routines.
  36270. (line 50)
  36271. * __dpd_mulsd3: Decimal float library routines.
  36272. (line 46)
  36273. * __dpd_multd3: Decimal float library routines.
  36274. (line 54)
  36275. * __dpd_nedd2: Decimal float library routines.
  36276. (line 266)
  36277. * __dpd_negdd2: Decimal float library routines.
  36278. (line 76)
  36279. * __dpd_negsd2: Decimal float library routines.
  36280. (line 74)
  36281. * __dpd_negtd2: Decimal float library routines.
  36282. (line 78)
  36283. * __dpd_nesd2: Decimal float library routines.
  36284. (line 264)
  36285. * __dpd_netd2: Decimal float library routines.
  36286. (line 268)
  36287. * __dpd_subdd3: Decimal float library routines.
  36288. (line 35)
  36289. * __dpd_subsd3: Decimal float library routines.
  36290. (line 31)
  36291. * __dpd_subtd3: Decimal float library routines.
  36292. (line 39)
  36293. * __dpd_truncdddf: Decimal float library routines.
  36294. (line 151)
  36295. * __dpd_truncddsd2: Decimal float library routines.
  36296. (line 92)
  36297. * __dpd_truncddsf: Decimal float library routines.
  36298. (line 122)
  36299. * __dpd_truncdfsd: Decimal float library routines.
  36300. (line 109)
  36301. * __dpd_truncsdsf: Decimal float library routines.
  36302. (line 149)
  36303. * __dpd_trunctddd2: Decimal float library routines.
  36304. (line 96)
  36305. * __dpd_trunctddf: Decimal float library routines.
  36306. (line 128)
  36307. * __dpd_trunctdsd2: Decimal float library routines.
  36308. (line 94)
  36309. * __dpd_trunctdsf: Decimal float library routines.
  36310. (line 124)
  36311. * __dpd_trunctdtf: Decimal float library routines.
  36312. (line 153)
  36313. * __dpd_trunctdxf: Decimal float library routines.
  36314. (line 134)
  36315. * __dpd_trunctfdd: Decimal float library routines.
  36316. (line 117)
  36317. * __dpd_trunctfsd: Decimal float library routines.
  36318. (line 113)
  36319. * __dpd_truncxfdd: Decimal float library routines.
  36320. (line 115)
  36321. * __dpd_truncxfsd: Decimal float library routines.
  36322. (line 111)
  36323. * __dpd_unorddd2: Decimal float library routines.
  36324. (line 233)
  36325. * __dpd_unordsd2: Decimal float library routines.
  36326. (line 231)
  36327. * __dpd_unordtd2: Decimal float library routines.
  36328. (line 235)
  36329. * __DTOR_LIST__: Initialization. (line 25)
  36330. * __eqdf2: Soft float library routines.
  36331. (line 193)
  36332. * __eqsf2: Soft float library routines.
  36333. (line 192)
  36334. * __eqtf2: Soft float library routines.
  36335. (line 194)
  36336. * __extenddftf2: Soft float library routines.
  36337. (line 67)
  36338. * __extenddfxf2: Soft float library routines.
  36339. (line 68)
  36340. * __extendsfdf2: Soft float library routines.
  36341. (line 64)
  36342. * __extendsftf2: Soft float library routines.
  36343. (line 65)
  36344. * __extendsfxf2: Soft float library routines.
  36345. (line 66)
  36346. * __ffsdi2: Integer library routines.
  36347. (line 143)
  36348. * __ffsti2: Integer library routines.
  36349. (line 144)
  36350. * __fixdfdi: Soft float library routines.
  36351. (line 87)
  36352. * __fixdfsi: Soft float library routines.
  36353. (line 80)
  36354. * __fixdfti: Soft float library routines.
  36355. (line 93)
  36356. * __fixsfdi: Soft float library routines.
  36357. (line 86)
  36358. * __fixsfsi: Soft float library routines.
  36359. (line 79)
  36360. * __fixsfti: Soft float library routines.
  36361. (line 92)
  36362. * __fixtfdi: Soft float library routines.
  36363. (line 88)
  36364. * __fixtfsi: Soft float library routines.
  36365. (line 81)
  36366. * __fixtfti: Soft float library routines.
  36367. (line 94)
  36368. * __fixunsdfdi: Soft float library routines.
  36369. (line 107)
  36370. * __fixunsdfsi: Soft float library routines.
  36371. (line 100)
  36372. * __fixunsdfti: Soft float library routines.
  36373. (line 114)
  36374. * __fixunssfdi: Soft float library routines.
  36375. (line 106)
  36376. * __fixunssfsi: Soft float library routines.
  36377. (line 99)
  36378. * __fixunssfti: Soft float library routines.
  36379. (line 113)
  36380. * __fixunstfdi: Soft float library routines.
  36381. (line 108)
  36382. * __fixunstfsi: Soft float library routines.
  36383. (line 101)
  36384. * __fixunstfti: Soft float library routines.
  36385. (line 115)
  36386. * __fixunsxfdi: Soft float library routines.
  36387. (line 109)
  36388. * __fixunsxfsi: Soft float library routines.
  36389. (line 102)
  36390. * __fixunsxfti: Soft float library routines.
  36391. (line 116)
  36392. * __fixxfdi: Soft float library routines.
  36393. (line 89)
  36394. * __fixxfsi: Soft float library routines.
  36395. (line 82)
  36396. * __fixxfti: Soft float library routines.
  36397. (line 95)
  36398. * __floatdidf: Soft float library routines.
  36399. (line 127)
  36400. * __floatdisf: Soft float library routines.
  36401. (line 126)
  36402. * __floatditf: Soft float library routines.
  36403. (line 128)
  36404. * __floatdixf: Soft float library routines.
  36405. (line 129)
  36406. * __floatsidf: Soft float library routines.
  36407. (line 121)
  36408. * __floatsisf: Soft float library routines.
  36409. (line 120)
  36410. * __floatsitf: Soft float library routines.
  36411. (line 122)
  36412. * __floatsixf: Soft float library routines.
  36413. (line 123)
  36414. * __floattidf: Soft float library routines.
  36415. (line 133)
  36416. * __floattisf: Soft float library routines.
  36417. (line 132)
  36418. * __floattitf: Soft float library routines.
  36419. (line 134)
  36420. * __floattixf: Soft float library routines.
  36421. (line 135)
  36422. * __floatundidf: Soft float library routines.
  36423. (line 145)
  36424. * __floatundisf: Soft float library routines.
  36425. (line 144)
  36426. * __floatunditf: Soft float library routines.
  36427. (line 146)
  36428. * __floatundixf: Soft float library routines.
  36429. (line 147)
  36430. * __floatunsidf: Soft float library routines.
  36431. (line 139)
  36432. * __floatunsisf: Soft float library routines.
  36433. (line 138)
  36434. * __floatunsitf: Soft float library routines.
  36435. (line 140)
  36436. * __floatunsixf: Soft float library routines.
  36437. (line 141)
  36438. * __floatuntidf: Soft float library routines.
  36439. (line 151)
  36440. * __floatuntisf: Soft float library routines.
  36441. (line 150)
  36442. * __floatuntitf: Soft float library routines.
  36443. (line 152)
  36444. * __floatuntixf: Soft float library routines.
  36445. (line 153)
  36446. * __fractdadf: Fixed-point fractional library routines.
  36447. (line 635)
  36448. * __fractdadi: Fixed-point fractional library routines.
  36449. (line 632)
  36450. * __fractdadq: Fixed-point fractional library routines.
  36451. (line 615)
  36452. * __fractdaha2: Fixed-point fractional library routines.
  36453. (line 616)
  36454. * __fractdahi: Fixed-point fractional library routines.
  36455. (line 630)
  36456. * __fractdahq: Fixed-point fractional library routines.
  36457. (line 613)
  36458. * __fractdaqi: Fixed-point fractional library routines.
  36459. (line 629)
  36460. * __fractdaqq: Fixed-point fractional library routines.
  36461. (line 612)
  36462. * __fractdasa2: Fixed-point fractional library routines.
  36463. (line 617)
  36464. * __fractdasf: Fixed-point fractional library routines.
  36465. (line 634)
  36466. * __fractdasi: Fixed-point fractional library routines.
  36467. (line 631)
  36468. * __fractdasq: Fixed-point fractional library routines.
  36469. (line 614)
  36470. * __fractdata2: Fixed-point fractional library routines.
  36471. (line 618)
  36472. * __fractdati: Fixed-point fractional library routines.
  36473. (line 633)
  36474. * __fractdauda: Fixed-point fractional library routines.
  36475. (line 626)
  36476. * __fractdaudq: Fixed-point fractional library routines.
  36477. (line 622)
  36478. * __fractdauha: Fixed-point fractional library routines.
  36479. (line 624)
  36480. * __fractdauhq: Fixed-point fractional library routines.
  36481. (line 620)
  36482. * __fractdauqq: Fixed-point fractional library routines.
  36483. (line 619)
  36484. * __fractdausa: Fixed-point fractional library routines.
  36485. (line 625)
  36486. * __fractdausq: Fixed-point fractional library routines.
  36487. (line 621)
  36488. * __fractdauta: Fixed-point fractional library routines.
  36489. (line 627)
  36490. * __fractdfda: Fixed-point fractional library routines.
  36491. (line 1024)
  36492. * __fractdfdq: Fixed-point fractional library routines.
  36493. (line 1021)
  36494. * __fractdfha: Fixed-point fractional library routines.
  36495. (line 1022)
  36496. * __fractdfhq: Fixed-point fractional library routines.
  36497. (line 1019)
  36498. * __fractdfqq: Fixed-point fractional library routines.
  36499. (line 1018)
  36500. * __fractdfsa: Fixed-point fractional library routines.
  36501. (line 1023)
  36502. * __fractdfsq: Fixed-point fractional library routines.
  36503. (line 1020)
  36504. * __fractdfta: Fixed-point fractional library routines.
  36505. (line 1025)
  36506. * __fractdfuda: Fixed-point fractional library routines.
  36507. (line 1032)
  36508. * __fractdfudq: Fixed-point fractional library routines.
  36509. (line 1029)
  36510. * __fractdfuha: Fixed-point fractional library routines.
  36511. (line 1030)
  36512. * __fractdfuhq: Fixed-point fractional library routines.
  36513. (line 1027)
  36514. * __fractdfuqq: Fixed-point fractional library routines.
  36515. (line 1026)
  36516. * __fractdfusa: Fixed-point fractional library routines.
  36517. (line 1031)
  36518. * __fractdfusq: Fixed-point fractional library routines.
  36519. (line 1028)
  36520. * __fractdfuta: Fixed-point fractional library routines.
  36521. (line 1033)
  36522. * __fractdida: Fixed-point fractional library routines.
  36523. (line 974)
  36524. * __fractdidq: Fixed-point fractional library routines.
  36525. (line 971)
  36526. * __fractdiha: Fixed-point fractional library routines.
  36527. (line 972)
  36528. * __fractdihq: Fixed-point fractional library routines.
  36529. (line 969)
  36530. * __fractdiqq: Fixed-point fractional library routines.
  36531. (line 968)
  36532. * __fractdisa: Fixed-point fractional library routines.
  36533. (line 973)
  36534. * __fractdisq: Fixed-point fractional library routines.
  36535. (line 970)
  36536. * __fractdita: Fixed-point fractional library routines.
  36537. (line 975)
  36538. * __fractdiuda: Fixed-point fractional library routines.
  36539. (line 982)
  36540. * __fractdiudq: Fixed-point fractional library routines.
  36541. (line 979)
  36542. * __fractdiuha: Fixed-point fractional library routines.
  36543. (line 980)
  36544. * __fractdiuhq: Fixed-point fractional library routines.
  36545. (line 977)
  36546. * __fractdiuqq: Fixed-point fractional library routines.
  36547. (line 976)
  36548. * __fractdiusa: Fixed-point fractional library routines.
  36549. (line 981)
  36550. * __fractdiusq: Fixed-point fractional library routines.
  36551. (line 978)
  36552. * __fractdiuta: Fixed-point fractional library routines.
  36553. (line 983)
  36554. * __fractdqda: Fixed-point fractional library routines.
  36555. (line 543)
  36556. * __fractdqdf: Fixed-point fractional library routines.
  36557. (line 565)
  36558. * __fractdqdi: Fixed-point fractional library routines.
  36559. (line 562)
  36560. * __fractdqha: Fixed-point fractional library routines.
  36561. (line 541)
  36562. * __fractdqhi: Fixed-point fractional library routines.
  36563. (line 560)
  36564. * __fractdqhq2: Fixed-point fractional library routines.
  36565. (line 539)
  36566. * __fractdqqi: Fixed-point fractional library routines.
  36567. (line 559)
  36568. * __fractdqqq2: Fixed-point fractional library routines.
  36569. (line 538)
  36570. * __fractdqsa: Fixed-point fractional library routines.
  36571. (line 542)
  36572. * __fractdqsf: Fixed-point fractional library routines.
  36573. (line 564)
  36574. * __fractdqsi: Fixed-point fractional library routines.
  36575. (line 561)
  36576. * __fractdqsq2: Fixed-point fractional library routines.
  36577. (line 540)
  36578. * __fractdqta: Fixed-point fractional library routines.
  36579. (line 544)
  36580. * __fractdqti: Fixed-point fractional library routines.
  36581. (line 563)
  36582. * __fractdquda: Fixed-point fractional library routines.
  36583. (line 555)
  36584. * __fractdqudq: Fixed-point fractional library routines.
  36585. (line 550)
  36586. * __fractdquha: Fixed-point fractional library routines.
  36587. (line 552)
  36588. * __fractdquhq: Fixed-point fractional library routines.
  36589. (line 547)
  36590. * __fractdquqq: Fixed-point fractional library routines.
  36591. (line 545)
  36592. * __fractdqusa: Fixed-point fractional library routines.
  36593. (line 554)
  36594. * __fractdqusq: Fixed-point fractional library routines.
  36595. (line 548)
  36596. * __fractdquta: Fixed-point fractional library routines.
  36597. (line 557)
  36598. * __fracthada2: Fixed-point fractional library routines.
  36599. (line 571)
  36600. * __fracthadf: Fixed-point fractional library routines.
  36601. (line 589)
  36602. * __fracthadi: Fixed-point fractional library routines.
  36603. (line 586)
  36604. * __fracthadq: Fixed-point fractional library routines.
  36605. (line 569)
  36606. * __fracthahi: Fixed-point fractional library routines.
  36607. (line 584)
  36608. * __fracthahq: Fixed-point fractional library routines.
  36609. (line 567)
  36610. * __fracthaqi: Fixed-point fractional library routines.
  36611. (line 583)
  36612. * __fracthaqq: Fixed-point fractional library routines.
  36613. (line 566)
  36614. * __fracthasa2: Fixed-point fractional library routines.
  36615. (line 570)
  36616. * __fracthasf: Fixed-point fractional library routines.
  36617. (line 588)
  36618. * __fracthasi: Fixed-point fractional library routines.
  36619. (line 585)
  36620. * __fracthasq: Fixed-point fractional library routines.
  36621. (line 568)
  36622. * __fracthata2: Fixed-point fractional library routines.
  36623. (line 572)
  36624. * __fracthati: Fixed-point fractional library routines.
  36625. (line 587)
  36626. * __fracthauda: Fixed-point fractional library routines.
  36627. (line 580)
  36628. * __fracthaudq: Fixed-point fractional library routines.
  36629. (line 576)
  36630. * __fracthauha: Fixed-point fractional library routines.
  36631. (line 578)
  36632. * __fracthauhq: Fixed-point fractional library routines.
  36633. (line 574)
  36634. * __fracthauqq: Fixed-point fractional library routines.
  36635. (line 573)
  36636. * __fracthausa: Fixed-point fractional library routines.
  36637. (line 579)
  36638. * __fracthausq: Fixed-point fractional library routines.
  36639. (line 575)
  36640. * __fracthauta: Fixed-point fractional library routines.
  36641. (line 581)
  36642. * __fracthida: Fixed-point fractional library routines.
  36643. (line 942)
  36644. * __fracthidq: Fixed-point fractional library routines.
  36645. (line 939)
  36646. * __fracthiha: Fixed-point fractional library routines.
  36647. (line 940)
  36648. * __fracthihq: Fixed-point fractional library routines.
  36649. (line 937)
  36650. * __fracthiqq: Fixed-point fractional library routines.
  36651. (line 936)
  36652. * __fracthisa: Fixed-point fractional library routines.
  36653. (line 941)
  36654. * __fracthisq: Fixed-point fractional library routines.
  36655. (line 938)
  36656. * __fracthita: Fixed-point fractional library routines.
  36657. (line 943)
  36658. * __fracthiuda: Fixed-point fractional library routines.
  36659. (line 950)
  36660. * __fracthiudq: Fixed-point fractional library routines.
  36661. (line 947)
  36662. * __fracthiuha: Fixed-point fractional library routines.
  36663. (line 948)
  36664. * __fracthiuhq: Fixed-point fractional library routines.
  36665. (line 945)
  36666. * __fracthiuqq: Fixed-point fractional library routines.
  36667. (line 944)
  36668. * __fracthiusa: Fixed-point fractional library routines.
  36669. (line 949)
  36670. * __fracthiusq: Fixed-point fractional library routines.
  36671. (line 946)
  36672. * __fracthiuta: Fixed-point fractional library routines.
  36673. (line 951)
  36674. * __fracthqda: Fixed-point fractional library routines.
  36675. (line 497)
  36676. * __fracthqdf: Fixed-point fractional library routines.
  36677. (line 513)
  36678. * __fracthqdi: Fixed-point fractional library routines.
  36679. (line 510)
  36680. * __fracthqdq2: Fixed-point fractional library routines.
  36681. (line 494)
  36682. * __fracthqha: Fixed-point fractional library routines.
  36683. (line 495)
  36684. * __fracthqhi: Fixed-point fractional library routines.
  36685. (line 508)
  36686. * __fracthqqi: Fixed-point fractional library routines.
  36687. (line 507)
  36688. * __fracthqqq2: Fixed-point fractional library routines.
  36689. (line 492)
  36690. * __fracthqsa: Fixed-point fractional library routines.
  36691. (line 496)
  36692. * __fracthqsf: Fixed-point fractional library routines.
  36693. (line 512)
  36694. * __fracthqsi: Fixed-point fractional library routines.
  36695. (line 509)
  36696. * __fracthqsq2: Fixed-point fractional library routines.
  36697. (line 493)
  36698. * __fracthqta: Fixed-point fractional library routines.
  36699. (line 498)
  36700. * __fracthqti: Fixed-point fractional library routines.
  36701. (line 511)
  36702. * __fracthquda: Fixed-point fractional library routines.
  36703. (line 505)
  36704. * __fracthqudq: Fixed-point fractional library routines.
  36705. (line 502)
  36706. * __fracthquha: Fixed-point fractional library routines.
  36707. (line 503)
  36708. * __fracthquhq: Fixed-point fractional library routines.
  36709. (line 500)
  36710. * __fracthquqq: Fixed-point fractional library routines.
  36711. (line 499)
  36712. * __fracthqusa: Fixed-point fractional library routines.
  36713. (line 504)
  36714. * __fracthqusq: Fixed-point fractional library routines.
  36715. (line 501)
  36716. * __fracthquta: Fixed-point fractional library routines.
  36717. (line 506)
  36718. * __fractqida: Fixed-point fractional library routines.
  36719. (line 924)
  36720. * __fractqidq: Fixed-point fractional library routines.
  36721. (line 921)
  36722. * __fractqiha: Fixed-point fractional library routines.
  36723. (line 922)
  36724. * __fractqihq: Fixed-point fractional library routines.
  36725. (line 919)
  36726. * __fractqiqq: Fixed-point fractional library routines.
  36727. (line 918)
  36728. * __fractqisa: Fixed-point fractional library routines.
  36729. (line 923)
  36730. * __fractqisq: Fixed-point fractional library routines.
  36731. (line 920)
  36732. * __fractqita: Fixed-point fractional library routines.
  36733. (line 925)
  36734. * __fractqiuda: Fixed-point fractional library routines.
  36735. (line 933)
  36736. * __fractqiudq: Fixed-point fractional library routines.
  36737. (line 929)
  36738. * __fractqiuha: Fixed-point fractional library routines.
  36739. (line 931)
  36740. * __fractqiuhq: Fixed-point fractional library routines.
  36741. (line 927)
  36742. * __fractqiuqq: Fixed-point fractional library routines.
  36743. (line 926)
  36744. * __fractqiusa: Fixed-point fractional library routines.
  36745. (line 932)
  36746. * __fractqiusq: Fixed-point fractional library routines.
  36747. (line 928)
  36748. * __fractqiuta: Fixed-point fractional library routines.
  36749. (line 934)
  36750. * __fractqqda: Fixed-point fractional library routines.
  36751. (line 473)
  36752. * __fractqqdf: Fixed-point fractional library routines.
  36753. (line 491)
  36754. * __fractqqdi: Fixed-point fractional library routines.
  36755. (line 488)
  36756. * __fractqqdq2: Fixed-point fractional library routines.
  36757. (line 470)
  36758. * __fractqqha: Fixed-point fractional library routines.
  36759. (line 471)
  36760. * __fractqqhi: Fixed-point fractional library routines.
  36761. (line 486)
  36762. * __fractqqhq2: Fixed-point fractional library routines.
  36763. (line 468)
  36764. * __fractqqqi: Fixed-point fractional library routines.
  36765. (line 485)
  36766. * __fractqqsa: Fixed-point fractional library routines.
  36767. (line 472)
  36768. * __fractqqsf: Fixed-point fractional library routines.
  36769. (line 490)
  36770. * __fractqqsi: Fixed-point fractional library routines.
  36771. (line 487)
  36772. * __fractqqsq2: Fixed-point fractional library routines.
  36773. (line 469)
  36774. * __fractqqta: Fixed-point fractional library routines.
  36775. (line 474)
  36776. * __fractqqti: Fixed-point fractional library routines.
  36777. (line 489)
  36778. * __fractqquda: Fixed-point fractional library routines.
  36779. (line 482)
  36780. * __fractqqudq: Fixed-point fractional library routines.
  36781. (line 478)
  36782. * __fractqquha: Fixed-point fractional library routines.
  36783. (line 480)
  36784. * __fractqquhq: Fixed-point fractional library routines.
  36785. (line 476)
  36786. * __fractqquqq: Fixed-point fractional library routines.
  36787. (line 475)
  36788. * __fractqqusa: Fixed-point fractional library routines.
  36789. (line 481)
  36790. * __fractqqusq: Fixed-point fractional library routines.
  36791. (line 477)
  36792. * __fractqquta: Fixed-point fractional library routines.
  36793. (line 483)
  36794. * __fractsada2: Fixed-point fractional library routines.
  36795. (line 595)
  36796. * __fractsadf: Fixed-point fractional library routines.
  36797. (line 611)
  36798. * __fractsadi: Fixed-point fractional library routines.
  36799. (line 608)
  36800. * __fractsadq: Fixed-point fractional library routines.
  36801. (line 593)
  36802. * __fractsaha2: Fixed-point fractional library routines.
  36803. (line 594)
  36804. * __fractsahi: Fixed-point fractional library routines.
  36805. (line 606)
  36806. * __fractsahq: Fixed-point fractional library routines.
  36807. (line 591)
  36808. * __fractsaqi: Fixed-point fractional library routines.
  36809. (line 605)
  36810. * __fractsaqq: Fixed-point fractional library routines.
  36811. (line 590)
  36812. * __fractsasf: Fixed-point fractional library routines.
  36813. (line 610)
  36814. * __fractsasi: Fixed-point fractional library routines.
  36815. (line 607)
  36816. * __fractsasq: Fixed-point fractional library routines.
  36817. (line 592)
  36818. * __fractsata2: Fixed-point fractional library routines.
  36819. (line 596)
  36820. * __fractsati: Fixed-point fractional library routines.
  36821. (line 609)
  36822. * __fractsauda: Fixed-point fractional library routines.
  36823. (line 603)
  36824. * __fractsaudq: Fixed-point fractional library routines.
  36825. (line 600)
  36826. * __fractsauha: Fixed-point fractional library routines.
  36827. (line 601)
  36828. * __fractsauhq: Fixed-point fractional library routines.
  36829. (line 598)
  36830. * __fractsauqq: Fixed-point fractional library routines.
  36831. (line 597)
  36832. * __fractsausa: Fixed-point fractional library routines.
  36833. (line 602)
  36834. * __fractsausq: Fixed-point fractional library routines.
  36835. (line 599)
  36836. * __fractsauta: Fixed-point fractional library routines.
  36837. (line 604)
  36838. * __fractsfda: Fixed-point fractional library routines.
  36839. (line 1008)
  36840. * __fractsfdq: Fixed-point fractional library routines.
  36841. (line 1005)
  36842. * __fractsfha: Fixed-point fractional library routines.
  36843. (line 1006)
  36844. * __fractsfhq: Fixed-point fractional library routines.
  36845. (line 1003)
  36846. * __fractsfqq: Fixed-point fractional library routines.
  36847. (line 1002)
  36848. * __fractsfsa: Fixed-point fractional library routines.
  36849. (line 1007)
  36850. * __fractsfsq: Fixed-point fractional library routines.
  36851. (line 1004)
  36852. * __fractsfta: Fixed-point fractional library routines.
  36853. (line 1009)
  36854. * __fractsfuda: Fixed-point fractional library routines.
  36855. (line 1016)
  36856. * __fractsfudq: Fixed-point fractional library routines.
  36857. (line 1013)
  36858. * __fractsfuha: Fixed-point fractional library routines.
  36859. (line 1014)
  36860. * __fractsfuhq: Fixed-point fractional library routines.
  36861. (line 1011)
  36862. * __fractsfuqq: Fixed-point fractional library routines.
  36863. (line 1010)
  36864. * __fractsfusa: Fixed-point fractional library routines.
  36865. (line 1015)
  36866. * __fractsfusq: Fixed-point fractional library routines.
  36867. (line 1012)
  36868. * __fractsfuta: Fixed-point fractional library routines.
  36869. (line 1017)
  36870. * __fractsida: Fixed-point fractional library routines.
  36871. (line 958)
  36872. * __fractsidq: Fixed-point fractional library routines.
  36873. (line 955)
  36874. * __fractsiha: Fixed-point fractional library routines.
  36875. (line 956)
  36876. * __fractsihq: Fixed-point fractional library routines.
  36877. (line 953)
  36878. * __fractsiqq: Fixed-point fractional library routines.
  36879. (line 952)
  36880. * __fractsisa: Fixed-point fractional library routines.
  36881. (line 957)
  36882. * __fractsisq: Fixed-point fractional library routines.
  36883. (line 954)
  36884. * __fractsita: Fixed-point fractional library routines.
  36885. (line 959)
  36886. * __fractsiuda: Fixed-point fractional library routines.
  36887. (line 966)
  36888. * __fractsiudq: Fixed-point fractional library routines.
  36889. (line 963)
  36890. * __fractsiuha: Fixed-point fractional library routines.
  36891. (line 964)
  36892. * __fractsiuhq: Fixed-point fractional library routines.
  36893. (line 961)
  36894. * __fractsiuqq: Fixed-point fractional library routines.
  36895. (line 960)
  36896. * __fractsiusa: Fixed-point fractional library routines.
  36897. (line 965)
  36898. * __fractsiusq: Fixed-point fractional library routines.
  36899. (line 962)
  36900. * __fractsiuta: Fixed-point fractional library routines.
  36901. (line 967)
  36902. * __fractsqda: Fixed-point fractional library routines.
  36903. (line 519)
  36904. * __fractsqdf: Fixed-point fractional library routines.
  36905. (line 537)
  36906. * __fractsqdi: Fixed-point fractional library routines.
  36907. (line 534)
  36908. * __fractsqdq2: Fixed-point fractional library routines.
  36909. (line 516)
  36910. * __fractsqha: Fixed-point fractional library routines.
  36911. (line 517)
  36912. * __fractsqhi: Fixed-point fractional library routines.
  36913. (line 532)
  36914. * __fractsqhq2: Fixed-point fractional library routines.
  36915. (line 515)
  36916. * __fractsqqi: Fixed-point fractional library routines.
  36917. (line 531)
  36918. * __fractsqqq2: Fixed-point fractional library routines.
  36919. (line 514)
  36920. * __fractsqsa: Fixed-point fractional library routines.
  36921. (line 518)
  36922. * __fractsqsf: Fixed-point fractional library routines.
  36923. (line 536)
  36924. * __fractsqsi: Fixed-point fractional library routines.
  36925. (line 533)
  36926. * __fractsqta: Fixed-point fractional library routines.
  36927. (line 520)
  36928. * __fractsqti: Fixed-point fractional library routines.
  36929. (line 535)
  36930. * __fractsquda: Fixed-point fractional library routines.
  36931. (line 528)
  36932. * __fractsqudq: Fixed-point fractional library routines.
  36933. (line 524)
  36934. * __fractsquha: Fixed-point fractional library routines.
  36935. (line 526)
  36936. * __fractsquhq: Fixed-point fractional library routines.
  36937. (line 522)
  36938. * __fractsquqq: Fixed-point fractional library routines.
  36939. (line 521)
  36940. * __fractsqusa: Fixed-point fractional library routines.
  36941. (line 527)
  36942. * __fractsqusq: Fixed-point fractional library routines.
  36943. (line 523)
  36944. * __fractsquta: Fixed-point fractional library routines.
  36945. (line 529)
  36946. * __fracttada2: Fixed-point fractional library routines.
  36947. (line 642)
  36948. * __fracttadf: Fixed-point fractional library routines.
  36949. (line 663)
  36950. * __fracttadi: Fixed-point fractional library routines.
  36951. (line 660)
  36952. * __fracttadq: Fixed-point fractional library routines.
  36953. (line 639)
  36954. * __fracttaha2: Fixed-point fractional library routines.
  36955. (line 640)
  36956. * __fracttahi: Fixed-point fractional library routines.
  36957. (line 658)
  36958. * __fracttahq: Fixed-point fractional library routines.
  36959. (line 637)
  36960. * __fracttaqi: Fixed-point fractional library routines.
  36961. (line 657)
  36962. * __fracttaqq: Fixed-point fractional library routines.
  36963. (line 636)
  36964. * __fracttasa2: Fixed-point fractional library routines.
  36965. (line 641)
  36966. * __fracttasf: Fixed-point fractional library routines.
  36967. (line 662)
  36968. * __fracttasi: Fixed-point fractional library routines.
  36969. (line 659)
  36970. * __fracttasq: Fixed-point fractional library routines.
  36971. (line 638)
  36972. * __fracttati: Fixed-point fractional library routines.
  36973. (line 661)
  36974. * __fracttauda: Fixed-point fractional library routines.
  36975. (line 653)
  36976. * __fracttaudq: Fixed-point fractional library routines.
  36977. (line 648)
  36978. * __fracttauha: Fixed-point fractional library routines.
  36979. (line 650)
  36980. * __fracttauhq: Fixed-point fractional library routines.
  36981. (line 645)
  36982. * __fracttauqq: Fixed-point fractional library routines.
  36983. (line 643)
  36984. * __fracttausa: Fixed-point fractional library routines.
  36985. (line 652)
  36986. * __fracttausq: Fixed-point fractional library routines.
  36987. (line 646)
  36988. * __fracttauta: Fixed-point fractional library routines.
  36989. (line 655)
  36990. * __fracttida: Fixed-point fractional library routines.
  36991. (line 990)
  36992. * __fracttidq: Fixed-point fractional library routines.
  36993. (line 987)
  36994. * __fracttiha: Fixed-point fractional library routines.
  36995. (line 988)
  36996. * __fracttihq: Fixed-point fractional library routines.
  36997. (line 985)
  36998. * __fracttiqq: Fixed-point fractional library routines.
  36999. (line 984)
  37000. * __fracttisa: Fixed-point fractional library routines.
  37001. (line 989)
  37002. * __fracttisq: Fixed-point fractional library routines.
  37003. (line 986)
  37004. * __fracttita: Fixed-point fractional library routines.
  37005. (line 991)
  37006. * __fracttiuda: Fixed-point fractional library routines.
  37007. (line 999)
  37008. * __fracttiudq: Fixed-point fractional library routines.
  37009. (line 995)
  37010. * __fracttiuha: Fixed-point fractional library routines.
  37011. (line 997)
  37012. * __fracttiuhq: Fixed-point fractional library routines.
  37013. (line 993)
  37014. * __fracttiuqq: Fixed-point fractional library routines.
  37015. (line 992)
  37016. * __fracttiusa: Fixed-point fractional library routines.
  37017. (line 998)
  37018. * __fracttiusq: Fixed-point fractional library routines.
  37019. (line 994)
  37020. * __fracttiuta: Fixed-point fractional library routines.
  37021. (line 1000)
  37022. * __fractudada: Fixed-point fractional library routines.
  37023. (line 857)
  37024. * __fractudadf: Fixed-point fractional library routines.
  37025. (line 880)
  37026. * __fractudadi: Fixed-point fractional library routines.
  37027. (line 877)
  37028. * __fractudadq: Fixed-point fractional library routines.
  37029. (line 853)
  37030. * __fractudaha: Fixed-point fractional library routines.
  37031. (line 855)
  37032. * __fractudahi: Fixed-point fractional library routines.
  37033. (line 875)
  37034. * __fractudahq: Fixed-point fractional library routines.
  37035. (line 851)
  37036. * __fractudaqi: Fixed-point fractional library routines.
  37037. (line 874)
  37038. * __fractudaqq: Fixed-point fractional library routines.
  37039. (line 850)
  37040. * __fractudasa: Fixed-point fractional library routines.
  37041. (line 856)
  37042. * __fractudasf: Fixed-point fractional library routines.
  37043. (line 879)
  37044. * __fractudasi: Fixed-point fractional library routines.
  37045. (line 876)
  37046. * __fractudasq: Fixed-point fractional library routines.
  37047. (line 852)
  37048. * __fractudata: Fixed-point fractional library routines.
  37049. (line 858)
  37050. * __fractudati: Fixed-point fractional library routines.
  37051. (line 878)
  37052. * __fractudaudq: Fixed-point fractional library routines.
  37053. (line 866)
  37054. * __fractudauha2: Fixed-point fractional library routines.
  37055. (line 868)
  37056. * __fractudauhq: Fixed-point fractional library routines.
  37057. (line 862)
  37058. * __fractudauqq: Fixed-point fractional library routines.
  37059. (line 860)
  37060. * __fractudausa2: Fixed-point fractional library routines.
  37061. (line 870)
  37062. * __fractudausq: Fixed-point fractional library routines.
  37063. (line 864)
  37064. * __fractudauta2: Fixed-point fractional library routines.
  37065. (line 872)
  37066. * __fractudqda: Fixed-point fractional library routines.
  37067. (line 764)
  37068. * __fractudqdf: Fixed-point fractional library routines.
  37069. (line 790)
  37070. * __fractudqdi: Fixed-point fractional library routines.
  37071. (line 786)
  37072. * __fractudqdq: Fixed-point fractional library routines.
  37073. (line 759)
  37074. * __fractudqha: Fixed-point fractional library routines.
  37075. (line 761)
  37076. * __fractudqhi: Fixed-point fractional library routines.
  37077. (line 784)
  37078. * __fractudqhq: Fixed-point fractional library routines.
  37079. (line 756)
  37080. * __fractudqqi: Fixed-point fractional library routines.
  37081. (line 782)
  37082. * __fractudqqq: Fixed-point fractional library routines.
  37083. (line 754)
  37084. * __fractudqsa: Fixed-point fractional library routines.
  37085. (line 763)
  37086. * __fractudqsf: Fixed-point fractional library routines.
  37087. (line 789)
  37088. * __fractudqsi: Fixed-point fractional library routines.
  37089. (line 785)
  37090. * __fractudqsq: Fixed-point fractional library routines.
  37091. (line 757)
  37092. * __fractudqta: Fixed-point fractional library routines.
  37093. (line 766)
  37094. * __fractudqti: Fixed-point fractional library routines.
  37095. (line 787)
  37096. * __fractudquda: Fixed-point fractional library routines.
  37097. (line 778)
  37098. * __fractudquha: Fixed-point fractional library routines.
  37099. (line 774)
  37100. * __fractudquhq2: Fixed-point fractional library routines.
  37101. (line 770)
  37102. * __fractudquqq2: Fixed-point fractional library routines.
  37103. (line 768)
  37104. * __fractudqusa: Fixed-point fractional library routines.
  37105. (line 776)
  37106. * __fractudqusq2: Fixed-point fractional library routines.
  37107. (line 772)
  37108. * __fractudquta: Fixed-point fractional library routines.
  37109. (line 780)
  37110. * __fractuhada: Fixed-point fractional library routines.
  37111. (line 798)
  37112. * __fractuhadf: Fixed-point fractional library routines.
  37113. (line 821)
  37114. * __fractuhadi: Fixed-point fractional library routines.
  37115. (line 818)
  37116. * __fractuhadq: Fixed-point fractional library routines.
  37117. (line 794)
  37118. * __fractuhaha: Fixed-point fractional library routines.
  37119. (line 796)
  37120. * __fractuhahi: Fixed-point fractional library routines.
  37121. (line 816)
  37122. * __fractuhahq: Fixed-point fractional library routines.
  37123. (line 792)
  37124. * __fractuhaqi: Fixed-point fractional library routines.
  37125. (line 815)
  37126. * __fractuhaqq: Fixed-point fractional library routines.
  37127. (line 791)
  37128. * __fractuhasa: Fixed-point fractional library routines.
  37129. (line 797)
  37130. * __fractuhasf: Fixed-point fractional library routines.
  37131. (line 820)
  37132. * __fractuhasi: Fixed-point fractional library routines.
  37133. (line 817)
  37134. * __fractuhasq: Fixed-point fractional library routines.
  37135. (line 793)
  37136. * __fractuhata: Fixed-point fractional library routines.
  37137. (line 799)
  37138. * __fractuhati: Fixed-point fractional library routines.
  37139. (line 819)
  37140. * __fractuhauda2: Fixed-point fractional library routines.
  37141. (line 811)
  37142. * __fractuhaudq: Fixed-point fractional library routines.
  37143. (line 807)
  37144. * __fractuhauhq: Fixed-point fractional library routines.
  37145. (line 803)
  37146. * __fractuhauqq: Fixed-point fractional library routines.
  37147. (line 801)
  37148. * __fractuhausa2: Fixed-point fractional library routines.
  37149. (line 809)
  37150. * __fractuhausq: Fixed-point fractional library routines.
  37151. (line 805)
  37152. * __fractuhauta2: Fixed-point fractional library routines.
  37153. (line 813)
  37154. * __fractuhqda: Fixed-point fractional library routines.
  37155. (line 701)
  37156. * __fractuhqdf: Fixed-point fractional library routines.
  37157. (line 722)
  37158. * __fractuhqdi: Fixed-point fractional library routines.
  37159. (line 719)
  37160. * __fractuhqdq: Fixed-point fractional library routines.
  37161. (line 698)
  37162. * __fractuhqha: Fixed-point fractional library routines.
  37163. (line 699)
  37164. * __fractuhqhi: Fixed-point fractional library routines.
  37165. (line 717)
  37166. * __fractuhqhq: Fixed-point fractional library routines.
  37167. (line 696)
  37168. * __fractuhqqi: Fixed-point fractional library routines.
  37169. (line 716)
  37170. * __fractuhqqq: Fixed-point fractional library routines.
  37171. (line 695)
  37172. * __fractuhqsa: Fixed-point fractional library routines.
  37173. (line 700)
  37174. * __fractuhqsf: Fixed-point fractional library routines.
  37175. (line 721)
  37176. * __fractuhqsi: Fixed-point fractional library routines.
  37177. (line 718)
  37178. * __fractuhqsq: Fixed-point fractional library routines.
  37179. (line 697)
  37180. * __fractuhqta: Fixed-point fractional library routines.
  37181. (line 702)
  37182. * __fractuhqti: Fixed-point fractional library routines.
  37183. (line 720)
  37184. * __fractuhquda: Fixed-point fractional library routines.
  37185. (line 712)
  37186. * __fractuhqudq2: Fixed-point fractional library routines.
  37187. (line 707)
  37188. * __fractuhquha: Fixed-point fractional library routines.
  37189. (line 709)
  37190. * __fractuhquqq2: Fixed-point fractional library routines.
  37191. (line 703)
  37192. * __fractuhqusa: Fixed-point fractional library routines.
  37193. (line 711)
  37194. * __fractuhqusq2: Fixed-point fractional library routines.
  37195. (line 705)
  37196. * __fractuhquta: Fixed-point fractional library routines.
  37197. (line 714)
  37198. * __fractunsdadi: Fixed-point fractional library routines.
  37199. (line 1554)
  37200. * __fractunsdahi: Fixed-point fractional library routines.
  37201. (line 1552)
  37202. * __fractunsdaqi: Fixed-point fractional library routines.
  37203. (line 1551)
  37204. * __fractunsdasi: Fixed-point fractional library routines.
  37205. (line 1553)
  37206. * __fractunsdati: Fixed-point fractional library routines.
  37207. (line 1555)
  37208. * __fractunsdida: Fixed-point fractional library routines.
  37209. (line 1706)
  37210. * __fractunsdidq: Fixed-point fractional library routines.
  37211. (line 1703)
  37212. * __fractunsdiha: Fixed-point fractional library routines.
  37213. (line 1704)
  37214. * __fractunsdihq: Fixed-point fractional library routines.
  37215. (line 1701)
  37216. * __fractunsdiqq: Fixed-point fractional library routines.
  37217. (line 1700)
  37218. * __fractunsdisa: Fixed-point fractional library routines.
  37219. (line 1705)
  37220. * __fractunsdisq: Fixed-point fractional library routines.
  37221. (line 1702)
  37222. * __fractunsdita: Fixed-point fractional library routines.
  37223. (line 1707)
  37224. * __fractunsdiuda: Fixed-point fractional library routines.
  37225. (line 1718)
  37226. * __fractunsdiudq: Fixed-point fractional library routines.
  37227. (line 1713)
  37228. * __fractunsdiuha: Fixed-point fractional library routines.
  37229. (line 1715)
  37230. * __fractunsdiuhq: Fixed-point fractional library routines.
  37231. (line 1710)
  37232. * __fractunsdiuqq: Fixed-point fractional library routines.
  37233. (line 1708)
  37234. * __fractunsdiusa: Fixed-point fractional library routines.
  37235. (line 1717)
  37236. * __fractunsdiusq: Fixed-point fractional library routines.
  37237. (line 1711)
  37238. * __fractunsdiuta: Fixed-point fractional library routines.
  37239. (line 1720)
  37240. * __fractunsdqdi: Fixed-point fractional library routines.
  37241. (line 1538)
  37242. * __fractunsdqhi: Fixed-point fractional library routines.
  37243. (line 1536)
  37244. * __fractunsdqqi: Fixed-point fractional library routines.
  37245. (line 1535)
  37246. * __fractunsdqsi: Fixed-point fractional library routines.
  37247. (line 1537)
  37248. * __fractunsdqti: Fixed-point fractional library routines.
  37249. (line 1539)
  37250. * __fractunshadi: Fixed-point fractional library routines.
  37251. (line 1544)
  37252. * __fractunshahi: Fixed-point fractional library routines.
  37253. (line 1542)
  37254. * __fractunshaqi: Fixed-point fractional library routines.
  37255. (line 1541)
  37256. * __fractunshasi: Fixed-point fractional library routines.
  37257. (line 1543)
  37258. * __fractunshati: Fixed-point fractional library routines.
  37259. (line 1545)
  37260. * __fractunshida: Fixed-point fractional library routines.
  37261. (line 1662)
  37262. * __fractunshidq: Fixed-point fractional library routines.
  37263. (line 1659)
  37264. * __fractunshiha: Fixed-point fractional library routines.
  37265. (line 1660)
  37266. * __fractunshihq: Fixed-point fractional library routines.
  37267. (line 1657)
  37268. * __fractunshiqq: Fixed-point fractional library routines.
  37269. (line 1656)
  37270. * __fractunshisa: Fixed-point fractional library routines.
  37271. (line 1661)
  37272. * __fractunshisq: Fixed-point fractional library routines.
  37273. (line 1658)
  37274. * __fractunshita: Fixed-point fractional library routines.
  37275. (line 1663)
  37276. * __fractunshiuda: Fixed-point fractional library routines.
  37277. (line 1674)
  37278. * __fractunshiudq: Fixed-point fractional library routines.
  37279. (line 1669)
  37280. * __fractunshiuha: Fixed-point fractional library routines.
  37281. (line 1671)
  37282. * __fractunshiuhq: Fixed-point fractional library routines.
  37283. (line 1666)
  37284. * __fractunshiuqq: Fixed-point fractional library routines.
  37285. (line 1664)
  37286. * __fractunshiusa: Fixed-point fractional library routines.
  37287. (line 1673)
  37288. * __fractunshiusq: Fixed-point fractional library routines.
  37289. (line 1667)
  37290. * __fractunshiuta: Fixed-point fractional library routines.
  37291. (line 1676)
  37292. * __fractunshqdi: Fixed-point fractional library routines.
  37293. (line 1528)
  37294. * __fractunshqhi: Fixed-point fractional library routines.
  37295. (line 1526)
  37296. * __fractunshqqi: Fixed-point fractional library routines.
  37297. (line 1525)
  37298. * __fractunshqsi: Fixed-point fractional library routines.
  37299. (line 1527)
  37300. * __fractunshqti: Fixed-point fractional library routines.
  37301. (line 1529)
  37302. * __fractunsqida: Fixed-point fractional library routines.
  37303. (line 1640)
  37304. * __fractunsqidq: Fixed-point fractional library routines.
  37305. (line 1637)
  37306. * __fractunsqiha: Fixed-point fractional library routines.
  37307. (line 1638)
  37308. * __fractunsqihq: Fixed-point fractional library routines.
  37309. (line 1635)
  37310. * __fractunsqiqq: Fixed-point fractional library routines.
  37311. (line 1634)
  37312. * __fractunsqisa: Fixed-point fractional library routines.
  37313. (line 1639)
  37314. * __fractunsqisq: Fixed-point fractional library routines.
  37315. (line 1636)
  37316. * __fractunsqita: Fixed-point fractional library routines.
  37317. (line 1641)
  37318. * __fractunsqiuda: Fixed-point fractional library routines.
  37319. (line 1652)
  37320. * __fractunsqiudq: Fixed-point fractional library routines.
  37321. (line 1647)
  37322. * __fractunsqiuha: Fixed-point fractional library routines.
  37323. (line 1649)
  37324. * __fractunsqiuhq: Fixed-point fractional library routines.
  37325. (line 1644)
  37326. * __fractunsqiuqq: Fixed-point fractional library routines.
  37327. (line 1642)
  37328. * __fractunsqiusa: Fixed-point fractional library routines.
  37329. (line 1651)
  37330. * __fractunsqiusq: Fixed-point fractional library routines.
  37331. (line 1645)
  37332. * __fractunsqiuta: Fixed-point fractional library routines.
  37333. (line 1654)
  37334. * __fractunsqqdi: Fixed-point fractional library routines.
  37335. (line 1523)
  37336. * __fractunsqqhi: Fixed-point fractional library routines.
  37337. (line 1521)
  37338. * __fractunsqqqi: Fixed-point fractional library routines.
  37339. (line 1520)
  37340. * __fractunsqqsi: Fixed-point fractional library routines.
  37341. (line 1522)
  37342. * __fractunsqqti: Fixed-point fractional library routines.
  37343. (line 1524)
  37344. * __fractunssadi: Fixed-point fractional library routines.
  37345. (line 1549)
  37346. * __fractunssahi: Fixed-point fractional library routines.
  37347. (line 1547)
  37348. * __fractunssaqi: Fixed-point fractional library routines.
  37349. (line 1546)
  37350. * __fractunssasi: Fixed-point fractional library routines.
  37351. (line 1548)
  37352. * __fractunssati: Fixed-point fractional library routines.
  37353. (line 1550)
  37354. * __fractunssida: Fixed-point fractional library routines.
  37355. (line 1684)
  37356. * __fractunssidq: Fixed-point fractional library routines.
  37357. (line 1681)
  37358. * __fractunssiha: Fixed-point fractional library routines.
  37359. (line 1682)
  37360. * __fractunssihq: Fixed-point fractional library routines.
  37361. (line 1679)
  37362. * __fractunssiqq: Fixed-point fractional library routines.
  37363. (line 1678)
  37364. * __fractunssisa: Fixed-point fractional library routines.
  37365. (line 1683)
  37366. * __fractunssisq: Fixed-point fractional library routines.
  37367. (line 1680)
  37368. * __fractunssita: Fixed-point fractional library routines.
  37369. (line 1685)
  37370. * __fractunssiuda: Fixed-point fractional library routines.
  37371. (line 1696)
  37372. * __fractunssiudq: Fixed-point fractional library routines.
  37373. (line 1691)
  37374. * __fractunssiuha: Fixed-point fractional library routines.
  37375. (line 1693)
  37376. * __fractunssiuhq: Fixed-point fractional library routines.
  37377. (line 1688)
  37378. * __fractunssiuqq: Fixed-point fractional library routines.
  37379. (line 1686)
  37380. * __fractunssiusa: Fixed-point fractional library routines.
  37381. (line 1695)
  37382. * __fractunssiusq: Fixed-point fractional library routines.
  37383. (line 1689)
  37384. * __fractunssiuta: Fixed-point fractional library routines.
  37385. (line 1698)
  37386. * __fractunssqdi: Fixed-point fractional library routines.
  37387. (line 1533)
  37388. * __fractunssqhi: Fixed-point fractional library routines.
  37389. (line 1531)
  37390. * __fractunssqqi: Fixed-point fractional library routines.
  37391. (line 1530)
  37392. * __fractunssqsi: Fixed-point fractional library routines.
  37393. (line 1532)
  37394. * __fractunssqti: Fixed-point fractional library routines.
  37395. (line 1534)
  37396. * __fractunstadi: Fixed-point fractional library routines.
  37397. (line 1559)
  37398. * __fractunstahi: Fixed-point fractional library routines.
  37399. (line 1557)
  37400. * __fractunstaqi: Fixed-point fractional library routines.
  37401. (line 1556)
  37402. * __fractunstasi: Fixed-point fractional library routines.
  37403. (line 1558)
  37404. * __fractunstati: Fixed-point fractional library routines.
  37405. (line 1560)
  37406. * __fractunstida: Fixed-point fractional library routines.
  37407. (line 1729)
  37408. * __fractunstidq: Fixed-point fractional library routines.
  37409. (line 1725)
  37410. * __fractunstiha: Fixed-point fractional library routines.
  37411. (line 1727)
  37412. * __fractunstihq: Fixed-point fractional library routines.
  37413. (line 1723)
  37414. * __fractunstiqq: Fixed-point fractional library routines.
  37415. (line 1722)
  37416. * __fractunstisa: Fixed-point fractional library routines.
  37417. (line 1728)
  37418. * __fractunstisq: Fixed-point fractional library routines.
  37419. (line 1724)
  37420. * __fractunstita: Fixed-point fractional library routines.
  37421. (line 1730)
  37422. * __fractunstiuda: Fixed-point fractional library routines.
  37423. (line 1744)
  37424. * __fractunstiudq: Fixed-point fractional library routines.
  37425. (line 1738)
  37426. * __fractunstiuha: Fixed-point fractional library routines.
  37427. (line 1740)
  37428. * __fractunstiuhq: Fixed-point fractional library routines.
  37429. (line 1734)
  37430. * __fractunstiuqq: Fixed-point fractional library routines.
  37431. (line 1732)
  37432. * __fractunstiusa: Fixed-point fractional library routines.
  37433. (line 1742)
  37434. * __fractunstiusq: Fixed-point fractional library routines.
  37435. (line 1736)
  37436. * __fractunstiuta: Fixed-point fractional library routines.
  37437. (line 1746)
  37438. * __fractunsudadi: Fixed-point fractional library routines.
  37439. (line 1620)
  37440. * __fractunsudahi: Fixed-point fractional library routines.
  37441. (line 1616)
  37442. * __fractunsudaqi: Fixed-point fractional library routines.
  37443. (line 1614)
  37444. * __fractunsudasi: Fixed-point fractional library routines.
  37445. (line 1618)
  37446. * __fractunsudati: Fixed-point fractional library routines.
  37447. (line 1622)
  37448. * __fractunsudqdi: Fixed-point fractional library routines.
  37449. (line 1594)
  37450. * __fractunsudqhi: Fixed-point fractional library routines.
  37451. (line 1590)
  37452. * __fractunsudqqi: Fixed-point fractional library routines.
  37453. (line 1588)
  37454. * __fractunsudqsi: Fixed-point fractional library routines.
  37455. (line 1592)
  37456. * __fractunsudqti: Fixed-point fractional library routines.
  37457. (line 1596)
  37458. * __fractunsuhadi: Fixed-point fractional library routines.
  37459. (line 1604)
  37460. * __fractunsuhahi: Fixed-point fractional library routines.
  37461. (line 1600)
  37462. * __fractunsuhaqi: Fixed-point fractional library routines.
  37463. (line 1598)
  37464. * __fractunsuhasi: Fixed-point fractional library routines.
  37465. (line 1602)
  37466. * __fractunsuhati: Fixed-point fractional library routines.
  37467. (line 1606)
  37468. * __fractunsuhqdi: Fixed-point fractional library routines.
  37469. (line 1575)
  37470. * __fractunsuhqhi: Fixed-point fractional library routines.
  37471. (line 1573)
  37472. * __fractunsuhqqi: Fixed-point fractional library routines.
  37473. (line 1572)
  37474. * __fractunsuhqsi: Fixed-point fractional library routines.
  37475. (line 1574)
  37476. * __fractunsuhqti: Fixed-point fractional library routines.
  37477. (line 1576)
  37478. * __fractunsuqqdi: Fixed-point fractional library routines.
  37479. (line 1568)
  37480. * __fractunsuqqhi: Fixed-point fractional library routines.
  37481. (line 1564)
  37482. * __fractunsuqqqi: Fixed-point fractional library routines.
  37483. (line 1562)
  37484. * __fractunsuqqsi: Fixed-point fractional library routines.
  37485. (line 1566)
  37486. * __fractunsuqqti: Fixed-point fractional library routines.
  37487. (line 1570)
  37488. * __fractunsusadi: Fixed-point fractional library routines.
  37489. (line 1611)
  37490. * __fractunsusahi: Fixed-point fractional library routines.
  37491. (line 1609)
  37492. * __fractunsusaqi: Fixed-point fractional library routines.
  37493. (line 1608)
  37494. * __fractunsusasi: Fixed-point fractional library routines.
  37495. (line 1610)
  37496. * __fractunsusati: Fixed-point fractional library routines.
  37497. (line 1612)
  37498. * __fractunsusqdi: Fixed-point fractional library routines.
  37499. (line 1584)
  37500. * __fractunsusqhi: Fixed-point fractional library routines.
  37501. (line 1580)
  37502. * __fractunsusqqi: Fixed-point fractional library routines.
  37503. (line 1578)
  37504. * __fractunsusqsi: Fixed-point fractional library routines.
  37505. (line 1582)
  37506. * __fractunsusqti: Fixed-point fractional library routines.
  37507. (line 1586)
  37508. * __fractunsutadi: Fixed-point fractional library routines.
  37509. (line 1630)
  37510. * __fractunsutahi: Fixed-point fractional library routines.
  37511. (line 1626)
  37512. * __fractunsutaqi: Fixed-point fractional library routines.
  37513. (line 1624)
  37514. * __fractunsutasi: Fixed-point fractional library routines.
  37515. (line 1628)
  37516. * __fractunsutati: Fixed-point fractional library routines.
  37517. (line 1632)
  37518. * __fractuqqda: Fixed-point fractional library routines.
  37519. (line 671)
  37520. * __fractuqqdf: Fixed-point fractional library routines.
  37521. (line 694)
  37522. * __fractuqqdi: Fixed-point fractional library routines.
  37523. (line 691)
  37524. * __fractuqqdq: Fixed-point fractional library routines.
  37525. (line 667)
  37526. * __fractuqqha: Fixed-point fractional library routines.
  37527. (line 669)
  37528. * __fractuqqhi: Fixed-point fractional library routines.
  37529. (line 689)
  37530. * __fractuqqhq: Fixed-point fractional library routines.
  37531. (line 665)
  37532. * __fractuqqqi: Fixed-point fractional library routines.
  37533. (line 688)
  37534. * __fractuqqqq: Fixed-point fractional library routines.
  37535. (line 664)
  37536. * __fractuqqsa: Fixed-point fractional library routines.
  37537. (line 670)
  37538. * __fractuqqsf: Fixed-point fractional library routines.
  37539. (line 693)
  37540. * __fractuqqsi: Fixed-point fractional library routines.
  37541. (line 690)
  37542. * __fractuqqsq: Fixed-point fractional library routines.
  37543. (line 666)
  37544. * __fractuqqta: Fixed-point fractional library routines.
  37545. (line 672)
  37546. * __fractuqqti: Fixed-point fractional library routines.
  37547. (line 692)
  37548. * __fractuqquda: Fixed-point fractional library routines.
  37549. (line 684)
  37550. * __fractuqqudq2: Fixed-point fractional library routines.
  37551. (line 678)
  37552. * __fractuqquha: Fixed-point fractional library routines.
  37553. (line 680)
  37554. * __fractuqquhq2: Fixed-point fractional library routines.
  37555. (line 674)
  37556. * __fractuqqusa: Fixed-point fractional library routines.
  37557. (line 682)
  37558. * __fractuqqusq2: Fixed-point fractional library routines.
  37559. (line 676)
  37560. * __fractuqquta: Fixed-point fractional library routines.
  37561. (line 686)
  37562. * __fractusada: Fixed-point fractional library routines.
  37563. (line 828)
  37564. * __fractusadf: Fixed-point fractional library routines.
  37565. (line 849)
  37566. * __fractusadi: Fixed-point fractional library routines.
  37567. (line 846)
  37568. * __fractusadq: Fixed-point fractional library routines.
  37569. (line 825)
  37570. * __fractusaha: Fixed-point fractional library routines.
  37571. (line 826)
  37572. * __fractusahi: Fixed-point fractional library routines.
  37573. (line 844)
  37574. * __fractusahq: Fixed-point fractional library routines.
  37575. (line 823)
  37576. * __fractusaqi: Fixed-point fractional library routines.
  37577. (line 843)
  37578. * __fractusaqq: Fixed-point fractional library routines.
  37579. (line 822)
  37580. * __fractusasa: Fixed-point fractional library routines.
  37581. (line 827)
  37582. * __fractusasf: Fixed-point fractional library routines.
  37583. (line 848)
  37584. * __fractusasi: Fixed-point fractional library routines.
  37585. (line 845)
  37586. * __fractusasq: Fixed-point fractional library routines.
  37587. (line 824)
  37588. * __fractusata: Fixed-point fractional library routines.
  37589. (line 829)
  37590. * __fractusati: Fixed-point fractional library routines.
  37591. (line 847)
  37592. * __fractusauda2: Fixed-point fractional library routines.
  37593. (line 839)
  37594. * __fractusaudq: Fixed-point fractional library routines.
  37595. (line 835)
  37596. * __fractusauha2: Fixed-point fractional library routines.
  37597. (line 837)
  37598. * __fractusauhq: Fixed-point fractional library routines.
  37599. (line 832)
  37600. * __fractusauqq: Fixed-point fractional library routines.
  37601. (line 830)
  37602. * __fractusausq: Fixed-point fractional library routines.
  37603. (line 833)
  37604. * __fractusauta2: Fixed-point fractional library routines.
  37605. (line 841)
  37606. * __fractusqda: Fixed-point fractional library routines.
  37607. (line 730)
  37608. * __fractusqdf: Fixed-point fractional library routines.
  37609. (line 753)
  37610. * __fractusqdi: Fixed-point fractional library routines.
  37611. (line 750)
  37612. * __fractusqdq: Fixed-point fractional library routines.
  37613. (line 726)
  37614. * __fractusqha: Fixed-point fractional library routines.
  37615. (line 728)
  37616. * __fractusqhi: Fixed-point fractional library routines.
  37617. (line 748)
  37618. * __fractusqhq: Fixed-point fractional library routines.
  37619. (line 724)
  37620. * __fractusqqi: Fixed-point fractional library routines.
  37621. (line 747)
  37622. * __fractusqqq: Fixed-point fractional library routines.
  37623. (line 723)
  37624. * __fractusqsa: Fixed-point fractional library routines.
  37625. (line 729)
  37626. * __fractusqsf: Fixed-point fractional library routines.
  37627. (line 752)
  37628. * __fractusqsi: Fixed-point fractional library routines.
  37629. (line 749)
  37630. * __fractusqsq: Fixed-point fractional library routines.
  37631. (line 725)
  37632. * __fractusqta: Fixed-point fractional library routines.
  37633. (line 731)
  37634. * __fractusqti: Fixed-point fractional library routines.
  37635. (line 751)
  37636. * __fractusquda: Fixed-point fractional library routines.
  37637. (line 743)
  37638. * __fractusqudq2: Fixed-point fractional library routines.
  37639. (line 737)
  37640. * __fractusquha: Fixed-point fractional library routines.
  37641. (line 739)
  37642. * __fractusquhq2: Fixed-point fractional library routines.
  37643. (line 735)
  37644. * __fractusquqq2: Fixed-point fractional library routines.
  37645. (line 733)
  37646. * __fractusqusa: Fixed-point fractional library routines.
  37647. (line 741)
  37648. * __fractusquta: Fixed-point fractional library routines.
  37649. (line 745)
  37650. * __fractutada: Fixed-point fractional library routines.
  37651. (line 891)
  37652. * __fractutadf: Fixed-point fractional library routines.
  37653. (line 917)
  37654. * __fractutadi: Fixed-point fractional library routines.
  37655. (line 913)
  37656. * __fractutadq: Fixed-point fractional library routines.
  37657. (line 886)
  37658. * __fractutaha: Fixed-point fractional library routines.
  37659. (line 888)
  37660. * __fractutahi: Fixed-point fractional library routines.
  37661. (line 911)
  37662. * __fractutahq: Fixed-point fractional library routines.
  37663. (line 883)
  37664. * __fractutaqi: Fixed-point fractional library routines.
  37665. (line 909)
  37666. * __fractutaqq: Fixed-point fractional library routines.
  37667. (line 881)
  37668. * __fractutasa: Fixed-point fractional library routines.
  37669. (line 890)
  37670. * __fractutasf: Fixed-point fractional library routines.
  37671. (line 916)
  37672. * __fractutasi: Fixed-point fractional library routines.
  37673. (line 912)
  37674. * __fractutasq: Fixed-point fractional library routines.
  37675. (line 884)
  37676. * __fractutata: Fixed-point fractional library routines.
  37677. (line 893)
  37678. * __fractutati: Fixed-point fractional library routines.
  37679. (line 914)
  37680. * __fractutauda2: Fixed-point fractional library routines.
  37681. (line 907)
  37682. * __fractutaudq: Fixed-point fractional library routines.
  37683. (line 901)
  37684. * __fractutauha2: Fixed-point fractional library routines.
  37685. (line 903)
  37686. * __fractutauhq: Fixed-point fractional library routines.
  37687. (line 897)
  37688. * __fractutauqq: Fixed-point fractional library routines.
  37689. (line 895)
  37690. * __fractutausa2: Fixed-point fractional library routines.
  37691. (line 905)
  37692. * __fractutausq: Fixed-point fractional library routines.
  37693. (line 899)
  37694. * __gedf2: Soft float library routines.
  37695. (line 205)
  37696. * __gesf2: Soft float library routines.
  37697. (line 204)
  37698. * __getf2: Soft float library routines.
  37699. (line 206)
  37700. * __gtdf2: Soft float library routines.
  37701. (line 223)
  37702. * __gtsf2: Soft float library routines.
  37703. (line 222)
  37704. * __gttf2: Soft float library routines.
  37705. (line 224)
  37706. * __ledf2: Soft float library routines.
  37707. (line 217)
  37708. * __lesf2: Soft float library routines.
  37709. (line 216)
  37710. * __letf2: Soft float library routines.
  37711. (line 218)
  37712. * __lshrdi3: Integer library routines.
  37713. (line 30)
  37714. * __lshrsi3: Integer library routines.
  37715. (line 29)
  37716. * __lshrti3: Integer library routines.
  37717. (line 31)
  37718. * __lshruda3: Fixed-point fractional library routines.
  37719. (line 388)
  37720. * __lshrudq3: Fixed-point fractional library routines.
  37721. (line 382)
  37722. * __lshruha3: Fixed-point fractional library routines.
  37723. (line 384)
  37724. * __lshruhq3: Fixed-point fractional library routines.
  37725. (line 378)
  37726. * __lshruqq3: Fixed-point fractional library routines.
  37727. (line 376)
  37728. * __lshrusa3: Fixed-point fractional library routines.
  37729. (line 386)
  37730. * __lshrusq3: Fixed-point fractional library routines.
  37731. (line 380)
  37732. * __lshruta3: Fixed-point fractional library routines.
  37733. (line 390)
  37734. * __ltdf2: Soft float library routines.
  37735. (line 211)
  37736. * __ltsf2: Soft float library routines.
  37737. (line 210)
  37738. * __lttf2: Soft float library routines.
  37739. (line 212)
  37740. * __main: Collect2. (line 15)
  37741. * __moddi3: Integer library routines.
  37742. (line 36)
  37743. * __modsi3: Integer library routines.
  37744. (line 35)
  37745. * __modti3: Integer library routines.
  37746. (line 37)
  37747. * __morestack_current_segment: Miscellaneous routines.
  37748. (line 45)
  37749. * __morestack_initial_sp: Miscellaneous routines.
  37750. (line 46)
  37751. * __morestack_segments: Miscellaneous routines.
  37752. (line 44)
  37753. * __mulda3: Fixed-point fractional library routines.
  37754. (line 170)
  37755. * __muldc3: Soft float library routines.
  37756. (line 239)
  37757. * __muldf3: Soft float library routines.
  37758. (line 39)
  37759. * __muldi3: Integer library routines.
  37760. (line 42)
  37761. * __muldq3: Fixed-point fractional library routines.
  37762. (line 157)
  37763. * __mulha3: Fixed-point fractional library routines.
  37764. (line 167)
  37765. * __mulhq3: Fixed-point fractional library routines.
  37766. (line 155)
  37767. * __mulqq3: Fixed-point fractional library routines.
  37768. (line 153)
  37769. * __mulsa3: Fixed-point fractional library routines.
  37770. (line 169)
  37771. * __mulsc3: Soft float library routines.
  37772. (line 237)
  37773. * __mulsf3: Soft float library routines.
  37774. (line 38)
  37775. * __mulsi3: Integer library routines.
  37776. (line 41)
  37777. * __mulsq3: Fixed-point fractional library routines.
  37778. (line 156)
  37779. * __multa3: Fixed-point fractional library routines.
  37780. (line 171)
  37781. * __multc3: Soft float library routines.
  37782. (line 241)
  37783. * __multf3: Soft float library routines.
  37784. (line 40)
  37785. * __multi3: Integer library routines.
  37786. (line 43)
  37787. * __muluda3: Fixed-point fractional library routines.
  37788. (line 177)
  37789. * __muludq3: Fixed-point fractional library routines.
  37790. (line 165)
  37791. * __muluha3: Fixed-point fractional library routines.
  37792. (line 173)
  37793. * __muluhq3: Fixed-point fractional library routines.
  37794. (line 161)
  37795. * __muluqq3: Fixed-point fractional library routines.
  37796. (line 159)
  37797. * __mulusa3: Fixed-point fractional library routines.
  37798. (line 175)
  37799. * __mulusq3: Fixed-point fractional library routines.
  37800. (line 163)
  37801. * __muluta3: Fixed-point fractional library routines.
  37802. (line 179)
  37803. * __mulvdi3: Integer library routines.
  37804. (line 114)
  37805. * __mulvsi3: Integer library routines.
  37806. (line 113)
  37807. * __mulxc3: Soft float library routines.
  37808. (line 243)
  37809. * __mulxf3: Soft float library routines.
  37810. (line 42)
  37811. * __nedf2: Soft float library routines.
  37812. (line 199)
  37813. * __negda2: Fixed-point fractional library routines.
  37814. (line 298)
  37815. * __negdf2: Soft float library routines.
  37816. (line 55)
  37817. * __negdi2: Integer library routines.
  37818. (line 46)
  37819. * __negdq2: Fixed-point fractional library routines.
  37820. (line 288)
  37821. * __negha2: Fixed-point fractional library routines.
  37822. (line 296)
  37823. * __neghq2: Fixed-point fractional library routines.
  37824. (line 286)
  37825. * __negqq2: Fixed-point fractional library routines.
  37826. (line 285)
  37827. * __negsa2: Fixed-point fractional library routines.
  37828. (line 297)
  37829. * __negsf2: Soft float library routines.
  37830. (line 54)
  37831. * __negsq2: Fixed-point fractional library routines.
  37832. (line 287)
  37833. * __negta2: Fixed-point fractional library routines.
  37834. (line 299)
  37835. * __negtf2: Soft float library routines.
  37836. (line 56)
  37837. * __negti2: Integer library routines.
  37838. (line 47)
  37839. * __neguda2: Fixed-point fractional library routines.
  37840. (line 303)
  37841. * __negudq2: Fixed-point fractional library routines.
  37842. (line 294)
  37843. * __neguha2: Fixed-point fractional library routines.
  37844. (line 300)
  37845. * __neguhq2: Fixed-point fractional library routines.
  37846. (line 291)
  37847. * __neguqq2: Fixed-point fractional library routines.
  37848. (line 289)
  37849. * __negusa2: Fixed-point fractional library routines.
  37850. (line 302)
  37851. * __negusq2: Fixed-point fractional library routines.
  37852. (line 292)
  37853. * __neguta2: Fixed-point fractional library routines.
  37854. (line 305)
  37855. * __negvdi2: Integer library routines.
  37856. (line 118)
  37857. * __negvsi2: Integer library routines.
  37858. (line 117)
  37859. * __negxf2: Soft float library routines.
  37860. (line 57)
  37861. * __nesf2: Soft float library routines.
  37862. (line 198)
  37863. * __netf2: Soft float library routines.
  37864. (line 200)
  37865. * __paritydi2: Integer library routines.
  37866. (line 150)
  37867. * __paritysi2: Integer library routines.
  37868. (line 149)
  37869. * __parityti2: Integer library routines.
  37870. (line 151)
  37871. * __popcountdi2: Integer library routines.
  37872. (line 156)
  37873. * __popcountsi2: Integer library routines.
  37874. (line 155)
  37875. * __popcountti2: Integer library routines.
  37876. (line 157)
  37877. * __powidf2: Soft float library routines.
  37878. (line 232)
  37879. * __powisf2: Soft float library routines.
  37880. (line 231)
  37881. * __powitf2: Soft float library routines.
  37882. (line 233)
  37883. * __powixf2: Soft float library routines.
  37884. (line 234)
  37885. * __satfractdadq: Fixed-point fractional library routines.
  37886. (line 1152)
  37887. * __satfractdaha2: Fixed-point fractional library routines.
  37888. (line 1153)
  37889. * __satfractdahq: Fixed-point fractional library routines.
  37890. (line 1150)
  37891. * __satfractdaqq: Fixed-point fractional library routines.
  37892. (line 1149)
  37893. * __satfractdasa2: Fixed-point fractional library routines.
  37894. (line 1154)
  37895. * __satfractdasq: Fixed-point fractional library routines.
  37896. (line 1151)
  37897. * __satfractdata2: Fixed-point fractional library routines.
  37898. (line 1155)
  37899. * __satfractdauda: Fixed-point fractional library routines.
  37900. (line 1165)
  37901. * __satfractdaudq: Fixed-point fractional library routines.
  37902. (line 1160)
  37903. * __satfractdauha: Fixed-point fractional library routines.
  37904. (line 1162)
  37905. * __satfractdauhq: Fixed-point fractional library routines.
  37906. (line 1158)
  37907. * __satfractdauqq: Fixed-point fractional library routines.
  37908. (line 1156)
  37909. * __satfractdausa: Fixed-point fractional library routines.
  37910. (line 1164)
  37911. * __satfractdausq: Fixed-point fractional library routines.
  37912. (line 1159)
  37913. * __satfractdauta: Fixed-point fractional library routines.
  37914. (line 1166)
  37915. * __satfractdfda: Fixed-point fractional library routines.
  37916. (line 1505)
  37917. * __satfractdfdq: Fixed-point fractional library routines.
  37918. (line 1502)
  37919. * __satfractdfha: Fixed-point fractional library routines.
  37920. (line 1503)
  37921. * __satfractdfhq: Fixed-point fractional library routines.
  37922. (line 1500)
  37923. * __satfractdfqq: Fixed-point fractional library routines.
  37924. (line 1499)
  37925. * __satfractdfsa: Fixed-point fractional library routines.
  37926. (line 1504)
  37927. * __satfractdfsq: Fixed-point fractional library routines.
  37928. (line 1501)
  37929. * __satfractdfta: Fixed-point fractional library routines.
  37930. (line 1506)
  37931. * __satfractdfuda: Fixed-point fractional library routines.
  37932. (line 1514)
  37933. * __satfractdfudq: Fixed-point fractional library routines.
  37934. (line 1510)
  37935. * __satfractdfuha: Fixed-point fractional library routines.
  37936. (line 1512)
  37937. * __satfractdfuhq: Fixed-point fractional library routines.
  37938. (line 1508)
  37939. * __satfractdfuqq: Fixed-point fractional library routines.
  37940. (line 1507)
  37941. * __satfractdfusa: Fixed-point fractional library routines.
  37942. (line 1513)
  37943. * __satfractdfusq: Fixed-point fractional library routines.
  37944. (line 1509)
  37945. * __satfractdfuta: Fixed-point fractional library routines.
  37946. (line 1515)
  37947. * __satfractdida: Fixed-point fractional library routines.
  37948. (line 1455)
  37949. * __satfractdidq: Fixed-point fractional library routines.
  37950. (line 1452)
  37951. * __satfractdiha: Fixed-point fractional library routines.
  37952. (line 1453)
  37953. * __satfractdihq: Fixed-point fractional library routines.
  37954. (line 1450)
  37955. * __satfractdiqq: Fixed-point fractional library routines.
  37956. (line 1449)
  37957. * __satfractdisa: Fixed-point fractional library routines.
  37958. (line 1454)
  37959. * __satfractdisq: Fixed-point fractional library routines.
  37960. (line 1451)
  37961. * __satfractdita: Fixed-point fractional library routines.
  37962. (line 1456)
  37963. * __satfractdiuda: Fixed-point fractional library routines.
  37964. (line 1463)
  37965. * __satfractdiudq: Fixed-point fractional library routines.
  37966. (line 1460)
  37967. * __satfractdiuha: Fixed-point fractional library routines.
  37968. (line 1461)
  37969. * __satfractdiuhq: Fixed-point fractional library routines.
  37970. (line 1458)
  37971. * __satfractdiuqq: Fixed-point fractional library routines.
  37972. (line 1457)
  37973. * __satfractdiusa: Fixed-point fractional library routines.
  37974. (line 1462)
  37975. * __satfractdiusq: Fixed-point fractional library routines.
  37976. (line 1459)
  37977. * __satfractdiuta: Fixed-point fractional library routines.
  37978. (line 1464)
  37979. * __satfractdqda: Fixed-point fractional library routines.
  37980. (line 1097)
  37981. * __satfractdqha: Fixed-point fractional library routines.
  37982. (line 1095)
  37983. * __satfractdqhq2: Fixed-point fractional library routines.
  37984. (line 1093)
  37985. * __satfractdqqq2: Fixed-point fractional library routines.
  37986. (line 1092)
  37987. * __satfractdqsa: Fixed-point fractional library routines.
  37988. (line 1096)
  37989. * __satfractdqsq2: Fixed-point fractional library routines.
  37990. (line 1094)
  37991. * __satfractdqta: Fixed-point fractional library routines.
  37992. (line 1098)
  37993. * __satfractdquda: Fixed-point fractional library routines.
  37994. (line 1109)
  37995. * __satfractdqudq: Fixed-point fractional library routines.
  37996. (line 1104)
  37997. * __satfractdquha: Fixed-point fractional library routines.
  37998. (line 1106)
  37999. * __satfractdquhq: Fixed-point fractional library routines.
  38000. (line 1101)
  38001. * __satfractdquqq: Fixed-point fractional library routines.
  38002. (line 1099)
  38003. * __satfractdqusa: Fixed-point fractional library routines.
  38004. (line 1108)
  38005. * __satfractdqusq: Fixed-point fractional library routines.
  38006. (line 1102)
  38007. * __satfractdquta: Fixed-point fractional library routines.
  38008. (line 1111)
  38009. * __satfracthada2: Fixed-point fractional library routines.
  38010. (line 1118)
  38011. * __satfracthadq: Fixed-point fractional library routines.
  38012. (line 1116)
  38013. * __satfracthahq: Fixed-point fractional library routines.
  38014. (line 1114)
  38015. * __satfracthaqq: Fixed-point fractional library routines.
  38016. (line 1113)
  38017. * __satfracthasa2: Fixed-point fractional library routines.
  38018. (line 1117)
  38019. * __satfracthasq: Fixed-point fractional library routines.
  38020. (line 1115)
  38021. * __satfracthata2: Fixed-point fractional library routines.
  38022. (line 1119)
  38023. * __satfracthauda: Fixed-point fractional library routines.
  38024. (line 1130)
  38025. * __satfracthaudq: Fixed-point fractional library routines.
  38026. (line 1125)
  38027. * __satfracthauha: Fixed-point fractional library routines.
  38028. (line 1127)
  38029. * __satfracthauhq: Fixed-point fractional library routines.
  38030. (line 1122)
  38031. * __satfracthauqq: Fixed-point fractional library routines.
  38032. (line 1120)
  38033. * __satfracthausa: Fixed-point fractional library routines.
  38034. (line 1129)
  38035. * __satfracthausq: Fixed-point fractional library routines.
  38036. (line 1123)
  38037. * __satfracthauta: Fixed-point fractional library routines.
  38038. (line 1132)
  38039. * __satfracthida: Fixed-point fractional library routines.
  38040. (line 1423)
  38041. * __satfracthidq: Fixed-point fractional library routines.
  38042. (line 1420)
  38043. * __satfracthiha: Fixed-point fractional library routines.
  38044. (line 1421)
  38045. * __satfracthihq: Fixed-point fractional library routines.
  38046. (line 1418)
  38047. * __satfracthiqq: Fixed-point fractional library routines.
  38048. (line 1417)
  38049. * __satfracthisa: Fixed-point fractional library routines.
  38050. (line 1422)
  38051. * __satfracthisq: Fixed-point fractional library routines.
  38052. (line 1419)
  38053. * __satfracthita: Fixed-point fractional library routines.
  38054. (line 1424)
  38055. * __satfracthiuda: Fixed-point fractional library routines.
  38056. (line 1431)
  38057. * __satfracthiudq: Fixed-point fractional library routines.
  38058. (line 1428)
  38059. * __satfracthiuha: Fixed-point fractional library routines.
  38060. (line 1429)
  38061. * __satfracthiuhq: Fixed-point fractional library routines.
  38062. (line 1426)
  38063. * __satfracthiuqq: Fixed-point fractional library routines.
  38064. (line 1425)
  38065. * __satfracthiusa: Fixed-point fractional library routines.
  38066. (line 1430)
  38067. * __satfracthiusq: Fixed-point fractional library routines.
  38068. (line 1427)
  38069. * __satfracthiuta: Fixed-point fractional library routines.
  38070. (line 1432)
  38071. * __satfracthqda: Fixed-point fractional library routines.
  38072. (line 1063)
  38073. * __satfracthqdq2: Fixed-point fractional library routines.
  38074. (line 1060)
  38075. * __satfracthqha: Fixed-point fractional library routines.
  38076. (line 1061)
  38077. * __satfracthqqq2: Fixed-point fractional library routines.
  38078. (line 1058)
  38079. * __satfracthqsa: Fixed-point fractional library routines.
  38080. (line 1062)
  38081. * __satfracthqsq2: Fixed-point fractional library routines.
  38082. (line 1059)
  38083. * __satfracthqta: Fixed-point fractional library routines.
  38084. (line 1064)
  38085. * __satfracthquda: Fixed-point fractional library routines.
  38086. (line 1071)
  38087. * __satfracthqudq: Fixed-point fractional library routines.
  38088. (line 1068)
  38089. * __satfracthquha: Fixed-point fractional library routines.
  38090. (line 1069)
  38091. * __satfracthquhq: Fixed-point fractional library routines.
  38092. (line 1066)
  38093. * __satfracthquqq: Fixed-point fractional library routines.
  38094. (line 1065)
  38095. * __satfracthqusa: Fixed-point fractional library routines.
  38096. (line 1070)
  38097. * __satfracthqusq: Fixed-point fractional library routines.
  38098. (line 1067)
  38099. * __satfracthquta: Fixed-point fractional library routines.
  38100. (line 1072)
  38101. * __satfractqida: Fixed-point fractional library routines.
  38102. (line 1401)
  38103. * __satfractqidq: Fixed-point fractional library routines.
  38104. (line 1398)
  38105. * __satfractqiha: Fixed-point fractional library routines.
  38106. (line 1399)
  38107. * __satfractqihq: Fixed-point fractional library routines.
  38108. (line 1396)
  38109. * __satfractqiqq: Fixed-point fractional library routines.
  38110. (line 1395)
  38111. * __satfractqisa: Fixed-point fractional library routines.
  38112. (line 1400)
  38113. * __satfractqisq: Fixed-point fractional library routines.
  38114. (line 1397)
  38115. * __satfractqita: Fixed-point fractional library routines.
  38116. (line 1402)
  38117. * __satfractqiuda: Fixed-point fractional library routines.
  38118. (line 1413)
  38119. * __satfractqiudq: Fixed-point fractional library routines.
  38120. (line 1408)
  38121. * __satfractqiuha: Fixed-point fractional library routines.
  38122. (line 1410)
  38123. * __satfractqiuhq: Fixed-point fractional library routines.
  38124. (line 1405)
  38125. * __satfractqiuqq: Fixed-point fractional library routines.
  38126. (line 1403)
  38127. * __satfractqiusa: Fixed-point fractional library routines.
  38128. (line 1412)
  38129. * __satfractqiusq: Fixed-point fractional library routines.
  38130. (line 1406)
  38131. * __satfractqiuta: Fixed-point fractional library routines.
  38132. (line 1415)
  38133. * __satfractqqda: Fixed-point fractional library routines.
  38134. (line 1042)
  38135. * __satfractqqdq2: Fixed-point fractional library routines.
  38136. (line 1039)
  38137. * __satfractqqha: Fixed-point fractional library routines.
  38138. (line 1040)
  38139. * __satfractqqhq2: Fixed-point fractional library routines.
  38140. (line 1037)
  38141. * __satfractqqsa: Fixed-point fractional library routines.
  38142. (line 1041)
  38143. * __satfractqqsq2: Fixed-point fractional library routines.
  38144. (line 1038)
  38145. * __satfractqqta: Fixed-point fractional library routines.
  38146. (line 1043)
  38147. * __satfractqquda: Fixed-point fractional library routines.
  38148. (line 1054)
  38149. * __satfractqqudq: Fixed-point fractional library routines.
  38150. (line 1049)
  38151. * __satfractqquha: Fixed-point fractional library routines.
  38152. (line 1051)
  38153. * __satfractqquhq: Fixed-point fractional library routines.
  38154. (line 1046)
  38155. * __satfractqquqq: Fixed-point fractional library routines.
  38156. (line 1044)
  38157. * __satfractqqusa: Fixed-point fractional library routines.
  38158. (line 1053)
  38159. * __satfractqqusq: Fixed-point fractional library routines.
  38160. (line 1047)
  38161. * __satfractqquta: Fixed-point fractional library routines.
  38162. (line 1056)
  38163. * __satfractsada2: Fixed-point fractional library routines.
  38164. (line 1139)
  38165. * __satfractsadq: Fixed-point fractional library routines.
  38166. (line 1137)
  38167. * __satfractsaha2: Fixed-point fractional library routines.
  38168. (line 1138)
  38169. * __satfractsahq: Fixed-point fractional library routines.
  38170. (line 1135)
  38171. * __satfractsaqq: Fixed-point fractional library routines.
  38172. (line 1134)
  38173. * __satfractsasq: Fixed-point fractional library routines.
  38174. (line 1136)
  38175. * __satfractsata2: Fixed-point fractional library routines.
  38176. (line 1140)
  38177. * __satfractsauda: Fixed-point fractional library routines.
  38178. (line 1147)
  38179. * __satfractsaudq: Fixed-point fractional library routines.
  38180. (line 1144)
  38181. * __satfractsauha: Fixed-point fractional library routines.
  38182. (line 1145)
  38183. * __satfractsauhq: Fixed-point fractional library routines.
  38184. (line 1142)
  38185. * __satfractsauqq: Fixed-point fractional library routines.
  38186. (line 1141)
  38187. * __satfractsausa: Fixed-point fractional library routines.
  38188. (line 1146)
  38189. * __satfractsausq: Fixed-point fractional library routines.
  38190. (line 1143)
  38191. * __satfractsauta: Fixed-point fractional library routines.
  38192. (line 1148)
  38193. * __satfractsfda: Fixed-point fractional library routines.
  38194. (line 1489)
  38195. * __satfractsfdq: Fixed-point fractional library routines.
  38196. (line 1486)
  38197. * __satfractsfha: Fixed-point fractional library routines.
  38198. (line 1487)
  38199. * __satfractsfhq: Fixed-point fractional library routines.
  38200. (line 1484)
  38201. * __satfractsfqq: Fixed-point fractional library routines.
  38202. (line 1483)
  38203. * __satfractsfsa: Fixed-point fractional library routines.
  38204. (line 1488)
  38205. * __satfractsfsq: Fixed-point fractional library routines.
  38206. (line 1485)
  38207. * __satfractsfta: Fixed-point fractional library routines.
  38208. (line 1490)
  38209. * __satfractsfuda: Fixed-point fractional library routines.
  38210. (line 1497)
  38211. * __satfractsfudq: Fixed-point fractional library routines.
  38212. (line 1494)
  38213. * __satfractsfuha: Fixed-point fractional library routines.
  38214. (line 1495)
  38215. * __satfractsfuhq: Fixed-point fractional library routines.
  38216. (line 1492)
  38217. * __satfractsfuqq: Fixed-point fractional library routines.
  38218. (line 1491)
  38219. * __satfractsfusa: Fixed-point fractional library routines.
  38220. (line 1496)
  38221. * __satfractsfusq: Fixed-point fractional library routines.
  38222. (line 1493)
  38223. * __satfractsfuta: Fixed-point fractional library routines.
  38224. (line 1498)
  38225. * __satfractsida: Fixed-point fractional library routines.
  38226. (line 1439)
  38227. * __satfractsidq: Fixed-point fractional library routines.
  38228. (line 1436)
  38229. * __satfractsiha: Fixed-point fractional library routines.
  38230. (line 1437)
  38231. * __satfractsihq: Fixed-point fractional library routines.
  38232. (line 1434)
  38233. * __satfractsiqq: Fixed-point fractional library routines.
  38234. (line 1433)
  38235. * __satfractsisa: Fixed-point fractional library routines.
  38236. (line 1438)
  38237. * __satfractsisq: Fixed-point fractional library routines.
  38238. (line 1435)
  38239. * __satfractsita: Fixed-point fractional library routines.
  38240. (line 1440)
  38241. * __satfractsiuda: Fixed-point fractional library routines.
  38242. (line 1447)
  38243. * __satfractsiudq: Fixed-point fractional library routines.
  38244. (line 1444)
  38245. * __satfractsiuha: Fixed-point fractional library routines.
  38246. (line 1445)
  38247. * __satfractsiuhq: Fixed-point fractional library routines.
  38248. (line 1442)
  38249. * __satfractsiuqq: Fixed-point fractional library routines.
  38250. (line 1441)
  38251. * __satfractsiusa: Fixed-point fractional library routines.
  38252. (line 1446)
  38253. * __satfractsiusq: Fixed-point fractional library routines.
  38254. (line 1443)
  38255. * __satfractsiuta: Fixed-point fractional library routines.
  38256. (line 1448)
  38257. * __satfractsqda: Fixed-point fractional library routines.
  38258. (line 1078)
  38259. * __satfractsqdq2: Fixed-point fractional library routines.
  38260. (line 1075)
  38261. * __satfractsqha: Fixed-point fractional library routines.
  38262. (line 1076)
  38263. * __satfractsqhq2: Fixed-point fractional library routines.
  38264. (line 1074)
  38265. * __satfractsqqq2: Fixed-point fractional library routines.
  38266. (line 1073)
  38267. * __satfractsqsa: Fixed-point fractional library routines.
  38268. (line 1077)
  38269. * __satfractsqta: Fixed-point fractional library routines.
  38270. (line 1079)
  38271. * __satfractsquda: Fixed-point fractional library routines.
  38272. (line 1089)
  38273. * __satfractsqudq: Fixed-point fractional library routines.
  38274. (line 1084)
  38275. * __satfractsquha: Fixed-point fractional library routines.
  38276. (line 1086)
  38277. * __satfractsquhq: Fixed-point fractional library routines.
  38278. (line 1082)
  38279. * __satfractsquqq: Fixed-point fractional library routines.
  38280. (line 1080)
  38281. * __satfractsqusa: Fixed-point fractional library routines.
  38282. (line 1088)
  38283. * __satfractsqusq: Fixed-point fractional library routines.
  38284. (line 1083)
  38285. * __satfractsquta: Fixed-point fractional library routines.
  38286. (line 1090)
  38287. * __satfracttada2: Fixed-point fractional library routines.
  38288. (line 1174)
  38289. * __satfracttadq: Fixed-point fractional library routines.
  38290. (line 1171)
  38291. * __satfracttaha2: Fixed-point fractional library routines.
  38292. (line 1172)
  38293. * __satfracttahq: Fixed-point fractional library routines.
  38294. (line 1169)
  38295. * __satfracttaqq: Fixed-point fractional library routines.
  38296. (line 1168)
  38297. * __satfracttasa2: Fixed-point fractional library routines.
  38298. (line 1173)
  38299. * __satfracttasq: Fixed-point fractional library routines.
  38300. (line 1170)
  38301. * __satfracttauda: Fixed-point fractional library routines.
  38302. (line 1185)
  38303. * __satfracttaudq: Fixed-point fractional library routines.
  38304. (line 1180)
  38305. * __satfracttauha: Fixed-point fractional library routines.
  38306. (line 1182)
  38307. * __satfracttauhq: Fixed-point fractional library routines.
  38308. (line 1177)
  38309. * __satfracttauqq: Fixed-point fractional library routines.
  38310. (line 1175)
  38311. * __satfracttausa: Fixed-point fractional library routines.
  38312. (line 1184)
  38313. * __satfracttausq: Fixed-point fractional library routines.
  38314. (line 1178)
  38315. * __satfracttauta: Fixed-point fractional library routines.
  38316. (line 1187)
  38317. * __satfracttida: Fixed-point fractional library routines.
  38318. (line 1471)
  38319. * __satfracttidq: Fixed-point fractional library routines.
  38320. (line 1468)
  38321. * __satfracttiha: Fixed-point fractional library routines.
  38322. (line 1469)
  38323. * __satfracttihq: Fixed-point fractional library routines.
  38324. (line 1466)
  38325. * __satfracttiqq: Fixed-point fractional library routines.
  38326. (line 1465)
  38327. * __satfracttisa: Fixed-point fractional library routines.
  38328. (line 1470)
  38329. * __satfracttisq: Fixed-point fractional library routines.
  38330. (line 1467)
  38331. * __satfracttita: Fixed-point fractional library routines.
  38332. (line 1472)
  38333. * __satfracttiuda: Fixed-point fractional library routines.
  38334. (line 1480)
  38335. * __satfracttiudq: Fixed-point fractional library routines.
  38336. (line 1476)
  38337. * __satfracttiuha: Fixed-point fractional library routines.
  38338. (line 1478)
  38339. * __satfracttiuhq: Fixed-point fractional library routines.
  38340. (line 1474)
  38341. * __satfracttiuqq: Fixed-point fractional library routines.
  38342. (line 1473)
  38343. * __satfracttiusa: Fixed-point fractional library routines.
  38344. (line 1479)
  38345. * __satfracttiusq: Fixed-point fractional library routines.
  38346. (line 1475)
  38347. * __satfracttiuta: Fixed-point fractional library routines.
  38348. (line 1481)
  38349. * __satfractudada: Fixed-point fractional library routines.
  38350. (line 1350)
  38351. * __satfractudadq: Fixed-point fractional library routines.
  38352. (line 1345)
  38353. * __satfractudaha: Fixed-point fractional library routines.
  38354. (line 1347)
  38355. * __satfractudahq: Fixed-point fractional library routines.
  38356. (line 1343)
  38357. * __satfractudaqq: Fixed-point fractional library routines.
  38358. (line 1341)
  38359. * __satfractudasa: Fixed-point fractional library routines.
  38360. (line 1349)
  38361. * __satfractudasq: Fixed-point fractional library routines.
  38362. (line 1344)
  38363. * __satfractudata: Fixed-point fractional library routines.
  38364. (line 1351)
  38365. * __satfractudaudq: Fixed-point fractional library routines.
  38366. (line 1359)
  38367. * __satfractudauha2: Fixed-point fractional library routines.
  38368. (line 1361)
  38369. * __satfractudauhq: Fixed-point fractional library routines.
  38370. (line 1355)
  38371. * __satfractudauqq: Fixed-point fractional library routines.
  38372. (line 1353)
  38373. * __satfractudausa2: Fixed-point fractional library routines.
  38374. (line 1363)
  38375. * __satfractudausq: Fixed-point fractional library routines.
  38376. (line 1357)
  38377. * __satfractudauta2: Fixed-point fractional library routines.
  38378. (line 1365)
  38379. * __satfractudqda: Fixed-point fractional library routines.
  38380. (line 1274)
  38381. * __satfractudqdq: Fixed-point fractional library routines.
  38382. (line 1269)
  38383. * __satfractudqha: Fixed-point fractional library routines.
  38384. (line 1271)
  38385. * __satfractudqhq: Fixed-point fractional library routines.
  38386. (line 1266)
  38387. * __satfractudqqq: Fixed-point fractional library routines.
  38388. (line 1264)
  38389. * __satfractudqsa: Fixed-point fractional library routines.
  38390. (line 1273)
  38391. * __satfractudqsq: Fixed-point fractional library routines.
  38392. (line 1267)
  38393. * __satfractudqta: Fixed-point fractional library routines.
  38394. (line 1276)
  38395. * __satfractudquda: Fixed-point fractional library routines.
  38396. (line 1288)
  38397. * __satfractudquha: Fixed-point fractional library routines.
  38398. (line 1284)
  38399. * __satfractudquhq2: Fixed-point fractional library routines.
  38400. (line 1280)
  38401. * __satfractudquqq2: Fixed-point fractional library routines.
  38402. (line 1278)
  38403. * __satfractudqusa: Fixed-point fractional library routines.
  38404. (line 1286)
  38405. * __satfractudqusq2: Fixed-point fractional library routines.
  38406. (line 1282)
  38407. * __satfractudquta: Fixed-point fractional library routines.
  38408. (line 1290)
  38409. * __satfractuhada: Fixed-point fractional library routines.
  38410. (line 1302)
  38411. * __satfractuhadq: Fixed-point fractional library routines.
  38412. (line 1297)
  38413. * __satfractuhaha: Fixed-point fractional library routines.
  38414. (line 1299)
  38415. * __satfractuhahq: Fixed-point fractional library routines.
  38416. (line 1294)
  38417. * __satfractuhaqq: Fixed-point fractional library routines.
  38418. (line 1292)
  38419. * __satfractuhasa: Fixed-point fractional library routines.
  38420. (line 1301)
  38421. * __satfractuhasq: Fixed-point fractional library routines.
  38422. (line 1295)
  38423. * __satfractuhata: Fixed-point fractional library routines.
  38424. (line 1304)
  38425. * __satfractuhauda2: Fixed-point fractional library routines.
  38426. (line 1316)
  38427. * __satfractuhaudq: Fixed-point fractional library routines.
  38428. (line 1312)
  38429. * __satfractuhauhq: Fixed-point fractional library routines.
  38430. (line 1308)
  38431. * __satfractuhauqq: Fixed-point fractional library routines.
  38432. (line 1306)
  38433. * __satfractuhausa2: Fixed-point fractional library routines.
  38434. (line 1314)
  38435. * __satfractuhausq: Fixed-point fractional library routines.
  38436. (line 1310)
  38437. * __satfractuhauta2: Fixed-point fractional library routines.
  38438. (line 1318)
  38439. * __satfractuhqda: Fixed-point fractional library routines.
  38440. (line 1223)
  38441. * __satfractuhqdq: Fixed-point fractional library routines.
  38442. (line 1220)
  38443. * __satfractuhqha: Fixed-point fractional library routines.
  38444. (line 1221)
  38445. * __satfractuhqhq: Fixed-point fractional library routines.
  38446. (line 1218)
  38447. * __satfractuhqqq: Fixed-point fractional library routines.
  38448. (line 1217)
  38449. * __satfractuhqsa: Fixed-point fractional library routines.
  38450. (line 1222)
  38451. * __satfractuhqsq: Fixed-point fractional library routines.
  38452. (line 1219)
  38453. * __satfractuhqta: Fixed-point fractional library routines.
  38454. (line 1224)
  38455. * __satfractuhquda: Fixed-point fractional library routines.
  38456. (line 1234)
  38457. * __satfractuhqudq2: Fixed-point fractional library routines.
  38458. (line 1229)
  38459. * __satfractuhquha: Fixed-point fractional library routines.
  38460. (line 1231)
  38461. * __satfractuhquqq2: Fixed-point fractional library routines.
  38462. (line 1225)
  38463. * __satfractuhqusa: Fixed-point fractional library routines.
  38464. (line 1233)
  38465. * __satfractuhqusq2: Fixed-point fractional library routines.
  38466. (line 1227)
  38467. * __satfractuhquta: Fixed-point fractional library routines.
  38468. (line 1236)
  38469. * __satfractunsdida: Fixed-point fractional library routines.
  38470. (line 1833)
  38471. * __satfractunsdidq: Fixed-point fractional library routines.
  38472. (line 1829)
  38473. * __satfractunsdiha: Fixed-point fractional library routines.
  38474. (line 1831)
  38475. * __satfractunsdihq: Fixed-point fractional library routines.
  38476. (line 1827)
  38477. * __satfractunsdiqq: Fixed-point fractional library routines.
  38478. (line 1826)
  38479. * __satfractunsdisa: Fixed-point fractional library routines.
  38480. (line 1832)
  38481. * __satfractunsdisq: Fixed-point fractional library routines.
  38482. (line 1828)
  38483. * __satfractunsdita: Fixed-point fractional library routines.
  38484. (line 1834)
  38485. * __satfractunsdiuda: Fixed-point fractional library routines.
  38486. (line 1848)
  38487. * __satfractunsdiudq: Fixed-point fractional library routines.
  38488. (line 1842)
  38489. * __satfractunsdiuha: Fixed-point fractional library routines.
  38490. (line 1844)
  38491. * __satfractunsdiuhq: Fixed-point fractional library routines.
  38492. (line 1838)
  38493. * __satfractunsdiuqq: Fixed-point fractional library routines.
  38494. (line 1836)
  38495. * __satfractunsdiusa: Fixed-point fractional library routines.
  38496. (line 1846)
  38497. * __satfractunsdiusq: Fixed-point fractional library routines.
  38498. (line 1840)
  38499. * __satfractunsdiuta: Fixed-point fractional library routines.
  38500. (line 1850)
  38501. * __satfractunshida: Fixed-point fractional library routines.
  38502. (line 1785)
  38503. * __satfractunshidq: Fixed-point fractional library routines.
  38504. (line 1781)
  38505. * __satfractunshiha: Fixed-point fractional library routines.
  38506. (line 1783)
  38507. * __satfractunshihq: Fixed-point fractional library routines.
  38508. (line 1779)
  38509. * __satfractunshiqq: Fixed-point fractional library routines.
  38510. (line 1778)
  38511. * __satfractunshisa: Fixed-point fractional library routines.
  38512. (line 1784)
  38513. * __satfractunshisq: Fixed-point fractional library routines.
  38514. (line 1780)
  38515. * __satfractunshita: Fixed-point fractional library routines.
  38516. (line 1786)
  38517. * __satfractunshiuda: Fixed-point fractional library routines.
  38518. (line 1800)
  38519. * __satfractunshiudq: Fixed-point fractional library routines.
  38520. (line 1794)
  38521. * __satfractunshiuha: Fixed-point fractional library routines.
  38522. (line 1796)
  38523. * __satfractunshiuhq: Fixed-point fractional library routines.
  38524. (line 1790)
  38525. * __satfractunshiuqq: Fixed-point fractional library routines.
  38526. (line 1788)
  38527. * __satfractunshiusa: Fixed-point fractional library routines.
  38528. (line 1798)
  38529. * __satfractunshiusq: Fixed-point fractional library routines.
  38530. (line 1792)
  38531. * __satfractunshiuta: Fixed-point fractional library routines.
  38532. (line 1802)
  38533. * __satfractunsqida: Fixed-point fractional library routines.
  38534. (line 1759)
  38535. * __satfractunsqidq: Fixed-point fractional library routines.
  38536. (line 1755)
  38537. * __satfractunsqiha: Fixed-point fractional library routines.
  38538. (line 1757)
  38539. * __satfractunsqihq: Fixed-point fractional library routines.
  38540. (line 1753)
  38541. * __satfractunsqiqq: Fixed-point fractional library routines.
  38542. (line 1752)
  38543. * __satfractunsqisa: Fixed-point fractional library routines.
  38544. (line 1758)
  38545. * __satfractunsqisq: Fixed-point fractional library routines.
  38546. (line 1754)
  38547. * __satfractunsqita: Fixed-point fractional library routines.
  38548. (line 1760)
  38549. * __satfractunsqiuda: Fixed-point fractional library routines.
  38550. (line 1774)
  38551. * __satfractunsqiudq: Fixed-point fractional library routines.
  38552. (line 1768)
  38553. * __satfractunsqiuha: Fixed-point fractional library routines.
  38554. (line 1770)
  38555. * __satfractunsqiuhq: Fixed-point fractional library routines.
  38556. (line 1764)
  38557. * __satfractunsqiuqq: Fixed-point fractional library routines.
  38558. (line 1762)
  38559. * __satfractunsqiusa: Fixed-point fractional library routines.
  38560. (line 1772)
  38561. * __satfractunsqiusq: Fixed-point fractional library routines.
  38562. (line 1766)
  38563. * __satfractunsqiuta: Fixed-point fractional library routines.
  38564. (line 1776)
  38565. * __satfractunssida: Fixed-point fractional library routines.
  38566. (line 1810)
  38567. * __satfractunssidq: Fixed-point fractional library routines.
  38568. (line 1807)
  38569. * __satfractunssiha: Fixed-point fractional library routines.
  38570. (line 1808)
  38571. * __satfractunssihq: Fixed-point fractional library routines.
  38572. (line 1805)
  38573. * __satfractunssiqq: Fixed-point fractional library routines.
  38574. (line 1804)
  38575. * __satfractunssisa: Fixed-point fractional library routines.
  38576. (line 1809)
  38577. * __satfractunssisq: Fixed-point fractional library routines.
  38578. (line 1806)
  38579. * __satfractunssita: Fixed-point fractional library routines.
  38580. (line 1811)
  38581. * __satfractunssiuda: Fixed-point fractional library routines.
  38582. (line 1822)
  38583. * __satfractunssiudq: Fixed-point fractional library routines.
  38584. (line 1817)
  38585. * __satfractunssiuha: Fixed-point fractional library routines.
  38586. (line 1819)
  38587. * __satfractunssiuhq: Fixed-point fractional library routines.
  38588. (line 1814)
  38589. * __satfractunssiuqq: Fixed-point fractional library routines.
  38590. (line 1812)
  38591. * __satfractunssiusa: Fixed-point fractional library routines.
  38592. (line 1821)
  38593. * __satfractunssiusq: Fixed-point fractional library routines.
  38594. (line 1815)
  38595. * __satfractunssiuta: Fixed-point fractional library routines.
  38596. (line 1824)
  38597. * __satfractunstida: Fixed-point fractional library routines.
  38598. (line 1862)
  38599. * __satfractunstidq: Fixed-point fractional library routines.
  38600. (line 1857)
  38601. * __satfractunstiha: Fixed-point fractional library routines.
  38602. (line 1859)
  38603. * __satfractunstihq: Fixed-point fractional library routines.
  38604. (line 1854)
  38605. * __satfractunstiqq: Fixed-point fractional library routines.
  38606. (line 1852)
  38607. * __satfractunstisa: Fixed-point fractional library routines.
  38608. (line 1861)
  38609. * __satfractunstisq: Fixed-point fractional library routines.
  38610. (line 1855)
  38611. * __satfractunstita: Fixed-point fractional library routines.
  38612. (line 1864)
  38613. * __satfractunstiuda: Fixed-point fractional library routines.
  38614. (line 1878)
  38615. * __satfractunstiudq: Fixed-point fractional library routines.
  38616. (line 1872)
  38617. * __satfractunstiuha: Fixed-point fractional library routines.
  38618. (line 1874)
  38619. * __satfractunstiuhq: Fixed-point fractional library routines.
  38620. (line 1868)
  38621. * __satfractunstiuqq: Fixed-point fractional library routines.
  38622. (line 1866)
  38623. * __satfractunstiusa: Fixed-point fractional library routines.
  38624. (line 1876)
  38625. * __satfractunstiusq: Fixed-point fractional library routines.
  38626. (line 1870)
  38627. * __satfractunstiuta: Fixed-point fractional library routines.
  38628. (line 1880)
  38629. * __satfractuqqda: Fixed-point fractional library routines.
  38630. (line 1199)
  38631. * __satfractuqqdq: Fixed-point fractional library routines.
  38632. (line 1194)
  38633. * __satfractuqqha: Fixed-point fractional library routines.
  38634. (line 1196)
  38635. * __satfractuqqhq: Fixed-point fractional library routines.
  38636. (line 1191)
  38637. * __satfractuqqqq: Fixed-point fractional library routines.
  38638. (line 1189)
  38639. * __satfractuqqsa: Fixed-point fractional library routines.
  38640. (line 1198)
  38641. * __satfractuqqsq: Fixed-point fractional library routines.
  38642. (line 1192)
  38643. * __satfractuqqta: Fixed-point fractional library routines.
  38644. (line 1201)
  38645. * __satfractuqquda: Fixed-point fractional library routines.
  38646. (line 1213)
  38647. * __satfractuqqudq2: Fixed-point fractional library routines.
  38648. (line 1207)
  38649. * __satfractuqquha: Fixed-point fractional library routines.
  38650. (line 1209)
  38651. * __satfractuqquhq2: Fixed-point fractional library routines.
  38652. (line 1203)
  38653. * __satfractuqqusa: Fixed-point fractional library routines.
  38654. (line 1211)
  38655. * __satfractuqqusq2: Fixed-point fractional library routines.
  38656. (line 1205)
  38657. * __satfractuqquta: Fixed-point fractional library routines.
  38658. (line 1215)
  38659. * __satfractusada: Fixed-point fractional library routines.
  38660. (line 1326)
  38661. * __satfractusadq: Fixed-point fractional library routines.
  38662. (line 1323)
  38663. * __satfractusaha: Fixed-point fractional library routines.
  38664. (line 1324)
  38665. * __satfractusahq: Fixed-point fractional library routines.
  38666. (line 1321)
  38667. * __satfractusaqq: Fixed-point fractional library routines.
  38668. (line 1320)
  38669. * __satfractusasa: Fixed-point fractional library routines.
  38670. (line 1325)
  38671. * __satfractusasq: Fixed-point fractional library routines.
  38672. (line 1322)
  38673. * __satfractusata: Fixed-point fractional library routines.
  38674. (line 1327)
  38675. * __satfractusauda2: Fixed-point fractional library routines.
  38676. (line 1337)
  38677. * __satfractusaudq: Fixed-point fractional library routines.
  38678. (line 1333)
  38679. * __satfractusauha2: Fixed-point fractional library routines.
  38680. (line 1335)
  38681. * __satfractusauhq: Fixed-point fractional library routines.
  38682. (line 1330)
  38683. * __satfractusauqq: Fixed-point fractional library routines.
  38684. (line 1328)
  38685. * __satfractusausq: Fixed-point fractional library routines.
  38686. (line 1331)
  38687. * __satfractusauta2: Fixed-point fractional library routines.
  38688. (line 1339)
  38689. * __satfractusqda: Fixed-point fractional library routines.
  38690. (line 1247)
  38691. * __satfractusqdq: Fixed-point fractional library routines.
  38692. (line 1242)
  38693. * __satfractusqha: Fixed-point fractional library routines.
  38694. (line 1244)
  38695. * __satfractusqhq: Fixed-point fractional library routines.
  38696. (line 1240)
  38697. * __satfractusqqq: Fixed-point fractional library routines.
  38698. (line 1238)
  38699. * __satfractusqsa: Fixed-point fractional library routines.
  38700. (line 1246)
  38701. * __satfractusqsq: Fixed-point fractional library routines.
  38702. (line 1241)
  38703. * __satfractusqta: Fixed-point fractional library routines.
  38704. (line 1248)
  38705. * __satfractusquda: Fixed-point fractional library routines.
  38706. (line 1260)
  38707. * __satfractusqudq2: Fixed-point fractional library routines.
  38708. (line 1254)
  38709. * __satfractusquha: Fixed-point fractional library routines.
  38710. (line 1256)
  38711. * __satfractusquhq2: Fixed-point fractional library routines.
  38712. (line 1252)
  38713. * __satfractusquqq2: Fixed-point fractional library routines.
  38714. (line 1250)
  38715. * __satfractusqusa: Fixed-point fractional library routines.
  38716. (line 1258)
  38717. * __satfractusquta: Fixed-point fractional library routines.
  38718. (line 1262)
  38719. * __satfractutada: Fixed-point fractional library routines.
  38720. (line 1377)
  38721. * __satfractutadq: Fixed-point fractional library routines.
  38722. (line 1372)
  38723. * __satfractutaha: Fixed-point fractional library routines.
  38724. (line 1374)
  38725. * __satfractutahq: Fixed-point fractional library routines.
  38726. (line 1369)
  38727. * __satfractutaqq: Fixed-point fractional library routines.
  38728. (line 1367)
  38729. * __satfractutasa: Fixed-point fractional library routines.
  38730. (line 1376)
  38731. * __satfractutasq: Fixed-point fractional library routines.
  38732. (line 1370)
  38733. * __satfractutata: Fixed-point fractional library routines.
  38734. (line 1379)
  38735. * __satfractutauda2: Fixed-point fractional library routines.
  38736. (line 1393)
  38737. * __satfractutaudq: Fixed-point fractional library routines.
  38738. (line 1387)
  38739. * __satfractutauha2: Fixed-point fractional library routines.
  38740. (line 1389)
  38741. * __satfractutauhq: Fixed-point fractional library routines.
  38742. (line 1383)
  38743. * __satfractutauqq: Fixed-point fractional library routines.
  38744. (line 1381)
  38745. * __satfractutausa2: Fixed-point fractional library routines.
  38746. (line 1391)
  38747. * __satfractutausq: Fixed-point fractional library routines.
  38748. (line 1385)
  38749. * __splitstack_find: Miscellaneous routines.
  38750. (line 15)
  38751. * __ssaddda3: Fixed-point fractional library routines.
  38752. (line 66)
  38753. * __ssadddq3: Fixed-point fractional library routines.
  38754. (line 61)
  38755. * __ssaddha3: Fixed-point fractional library routines.
  38756. (line 63)
  38757. * __ssaddhq3: Fixed-point fractional library routines.
  38758. (line 59)
  38759. * __ssaddqq3: Fixed-point fractional library routines.
  38760. (line 57)
  38761. * __ssaddsa3: Fixed-point fractional library routines.
  38762. (line 65)
  38763. * __ssaddsq3: Fixed-point fractional library routines.
  38764. (line 60)
  38765. * __ssaddta3: Fixed-point fractional library routines.
  38766. (line 67)
  38767. * __ssashlda3: Fixed-point fractional library routines.
  38768. (line 401)
  38769. * __ssashldq3: Fixed-point fractional library routines.
  38770. (line 397)
  38771. * __ssashlha3: Fixed-point fractional library routines.
  38772. (line 399)
  38773. * __ssashlhq3: Fixed-point fractional library routines.
  38774. (line 395)
  38775. * __ssashlsa3: Fixed-point fractional library routines.
  38776. (line 400)
  38777. * __ssashlsq3: Fixed-point fractional library routines.
  38778. (line 396)
  38779. * __ssashlta3: Fixed-point fractional library routines.
  38780. (line 402)
  38781. * __ssdivda3: Fixed-point fractional library routines.
  38782. (line 260)
  38783. * __ssdivdq3: Fixed-point fractional library routines.
  38784. (line 255)
  38785. * __ssdivha3: Fixed-point fractional library routines.
  38786. (line 257)
  38787. * __ssdivhq3: Fixed-point fractional library routines.
  38788. (line 253)
  38789. * __ssdivqq3: Fixed-point fractional library routines.
  38790. (line 251)
  38791. * __ssdivsa3: Fixed-point fractional library routines.
  38792. (line 259)
  38793. * __ssdivsq3: Fixed-point fractional library routines.
  38794. (line 254)
  38795. * __ssdivta3: Fixed-point fractional library routines.
  38796. (line 261)
  38797. * __ssmulda3: Fixed-point fractional library routines.
  38798. (line 192)
  38799. * __ssmuldq3: Fixed-point fractional library routines.
  38800. (line 187)
  38801. * __ssmulha3: Fixed-point fractional library routines.
  38802. (line 189)
  38803. * __ssmulhq3: Fixed-point fractional library routines.
  38804. (line 185)
  38805. * __ssmulqq3: Fixed-point fractional library routines.
  38806. (line 183)
  38807. * __ssmulsa3: Fixed-point fractional library routines.
  38808. (line 191)
  38809. * __ssmulsq3: Fixed-point fractional library routines.
  38810. (line 186)
  38811. * __ssmulta3: Fixed-point fractional library routines.
  38812. (line 193)
  38813. * __ssnegda2: Fixed-point fractional library routines.
  38814. (line 315)
  38815. * __ssnegdq2: Fixed-point fractional library routines.
  38816. (line 312)
  38817. * __ssnegha2: Fixed-point fractional library routines.
  38818. (line 313)
  38819. * __ssneghq2: Fixed-point fractional library routines.
  38820. (line 310)
  38821. * __ssnegqq2: Fixed-point fractional library routines.
  38822. (line 309)
  38823. * __ssnegsa2: Fixed-point fractional library routines.
  38824. (line 314)
  38825. * __ssnegsq2: Fixed-point fractional library routines.
  38826. (line 311)
  38827. * __ssnegta2: Fixed-point fractional library routines.
  38828. (line 316)
  38829. * __sssubda3: Fixed-point fractional library routines.
  38830. (line 128)
  38831. * __sssubdq3: Fixed-point fractional library routines.
  38832. (line 123)
  38833. * __sssubha3: Fixed-point fractional library routines.
  38834. (line 125)
  38835. * __sssubhq3: Fixed-point fractional library routines.
  38836. (line 121)
  38837. * __sssubqq3: Fixed-point fractional library routines.
  38838. (line 119)
  38839. * __sssubsa3: Fixed-point fractional library routines.
  38840. (line 127)
  38841. * __sssubsq3: Fixed-point fractional library routines.
  38842. (line 122)
  38843. * __sssubta3: Fixed-point fractional library routines.
  38844. (line 129)
  38845. * __subda3: Fixed-point fractional library routines.
  38846. (line 106)
  38847. * __subdf3: Soft float library routines.
  38848. (line 30)
  38849. * __subdq3: Fixed-point fractional library routines.
  38850. (line 93)
  38851. * __subha3: Fixed-point fractional library routines.
  38852. (line 103)
  38853. * __subhq3: Fixed-point fractional library routines.
  38854. (line 91)
  38855. * __subqq3: Fixed-point fractional library routines.
  38856. (line 89)
  38857. * __subsa3: Fixed-point fractional library routines.
  38858. (line 105)
  38859. * __subsf3: Soft float library routines.
  38860. (line 29)
  38861. * __subsq3: Fixed-point fractional library routines.
  38862. (line 92)
  38863. * __subta3: Fixed-point fractional library routines.
  38864. (line 107)
  38865. * __subtf3: Soft float library routines.
  38866. (line 31)
  38867. * __subuda3: Fixed-point fractional library routines.
  38868. (line 113)
  38869. * __subudq3: Fixed-point fractional library routines.
  38870. (line 101)
  38871. * __subuha3: Fixed-point fractional library routines.
  38872. (line 109)
  38873. * __subuhq3: Fixed-point fractional library routines.
  38874. (line 97)
  38875. * __subuqq3: Fixed-point fractional library routines.
  38876. (line 95)
  38877. * __subusa3: Fixed-point fractional library routines.
  38878. (line 111)
  38879. * __subusq3: Fixed-point fractional library routines.
  38880. (line 99)
  38881. * __subuta3: Fixed-point fractional library routines.
  38882. (line 115)
  38883. * __subvdi3: Integer library routines.
  38884. (line 122)
  38885. * __subvsi3: Integer library routines.
  38886. (line 121)
  38887. * __subxf3: Soft float library routines.
  38888. (line 33)
  38889. * __truncdfsf2: Soft float library routines.
  38890. (line 75)
  38891. * __trunctfdf2: Soft float library routines.
  38892. (line 72)
  38893. * __trunctfsf2: Soft float library routines.
  38894. (line 74)
  38895. * __truncxfdf2: Soft float library routines.
  38896. (line 71)
  38897. * __truncxfsf2: Soft float library routines.
  38898. (line 73)
  38899. * __ucmpdi2: Integer library routines.
  38900. (line 92)
  38901. * __ucmpti2: Integer library routines.
  38902. (line 93)
  38903. * __udivdi3: Integer library routines.
  38904. (line 52)
  38905. * __udivmoddi4: Integer library routines.
  38906. (line 59)
  38907. * __udivmodti4: Integer library routines.
  38908. (line 61)
  38909. * __udivsi3: Integer library routines.
  38910. (line 50)
  38911. * __udivti3: Integer library routines.
  38912. (line 54)
  38913. * __udivuda3: Fixed-point fractional library routines.
  38914. (line 244)
  38915. * __udivudq3: Fixed-point fractional library routines.
  38916. (line 238)
  38917. * __udivuha3: Fixed-point fractional library routines.
  38918. (line 240)
  38919. * __udivuhq3: Fixed-point fractional library routines.
  38920. (line 234)
  38921. * __udivuqq3: Fixed-point fractional library routines.
  38922. (line 232)
  38923. * __udivusa3: Fixed-point fractional library routines.
  38924. (line 242)
  38925. * __udivusq3: Fixed-point fractional library routines.
  38926. (line 236)
  38927. * __udivuta3: Fixed-point fractional library routines.
  38928. (line 246)
  38929. * __umoddi3: Integer library routines.
  38930. (line 69)
  38931. * __umodsi3: Integer library routines.
  38932. (line 67)
  38933. * __umodti3: Integer library routines.
  38934. (line 71)
  38935. * __unorddf2: Soft float library routines.
  38936. (line 172)
  38937. * __unordsf2: Soft float library routines.
  38938. (line 171)
  38939. * __unordtf2: Soft float library routines.
  38940. (line 173)
  38941. * __usadduda3: Fixed-point fractional library routines.
  38942. (line 83)
  38943. * __usaddudq3: Fixed-point fractional library routines.
  38944. (line 77)
  38945. * __usadduha3: Fixed-point fractional library routines.
  38946. (line 79)
  38947. * __usadduhq3: Fixed-point fractional library routines.
  38948. (line 73)
  38949. * __usadduqq3: Fixed-point fractional library routines.
  38950. (line 71)
  38951. * __usaddusa3: Fixed-point fractional library routines.
  38952. (line 81)
  38953. * __usaddusq3: Fixed-point fractional library routines.
  38954. (line 75)
  38955. * __usadduta3: Fixed-point fractional library routines.
  38956. (line 85)
  38957. * __usashluda3: Fixed-point fractional library routines.
  38958. (line 419)
  38959. * __usashludq3: Fixed-point fractional library routines.
  38960. (line 413)
  38961. * __usashluha3: Fixed-point fractional library routines.
  38962. (line 415)
  38963. * __usashluhq3: Fixed-point fractional library routines.
  38964. (line 409)
  38965. * __usashluqq3: Fixed-point fractional library routines.
  38966. (line 407)
  38967. * __usashlusa3: Fixed-point fractional library routines.
  38968. (line 417)
  38969. * __usashlusq3: Fixed-point fractional library routines.
  38970. (line 411)
  38971. * __usashluta3: Fixed-point fractional library routines.
  38972. (line 421)
  38973. * __usdivuda3: Fixed-point fractional library routines.
  38974. (line 278)
  38975. * __usdivudq3: Fixed-point fractional library routines.
  38976. (line 272)
  38977. * __usdivuha3: Fixed-point fractional library routines.
  38978. (line 274)
  38979. * __usdivuhq3: Fixed-point fractional library routines.
  38980. (line 268)
  38981. * __usdivuqq3: Fixed-point fractional library routines.
  38982. (line 266)
  38983. * __usdivusa3: Fixed-point fractional library routines.
  38984. (line 276)
  38985. * __usdivusq3: Fixed-point fractional library routines.
  38986. (line 270)
  38987. * __usdivuta3: Fixed-point fractional library routines.
  38988. (line 280)
  38989. * __usmuluda3: Fixed-point fractional library routines.
  38990. (line 210)
  38991. * __usmuludq3: Fixed-point fractional library routines.
  38992. (line 204)
  38993. * __usmuluha3: Fixed-point fractional library routines.
  38994. (line 206)
  38995. * __usmuluhq3: Fixed-point fractional library routines.
  38996. (line 200)
  38997. * __usmuluqq3: Fixed-point fractional library routines.
  38998. (line 198)
  38999. * __usmulusa3: Fixed-point fractional library routines.
  39000. (line 208)
  39001. * __usmulusq3: Fixed-point fractional library routines.
  39002. (line 202)
  39003. * __usmuluta3: Fixed-point fractional library routines.
  39004. (line 212)
  39005. * __usneguda2: Fixed-point fractional library routines.
  39006. (line 329)
  39007. * __usnegudq2: Fixed-point fractional library routines.
  39008. (line 324)
  39009. * __usneguha2: Fixed-point fractional library routines.
  39010. (line 326)
  39011. * __usneguhq2: Fixed-point fractional library routines.
  39012. (line 321)
  39013. * __usneguqq2: Fixed-point fractional library routines.
  39014. (line 319)
  39015. * __usnegusa2: Fixed-point fractional library routines.
  39016. (line 328)
  39017. * __usnegusq2: Fixed-point fractional library routines.
  39018. (line 322)
  39019. * __usneguta2: Fixed-point fractional library routines.
  39020. (line 331)
  39021. * __ussubuda3: Fixed-point fractional library routines.
  39022. (line 146)
  39023. * __ussubudq3: Fixed-point fractional library routines.
  39024. (line 140)
  39025. * __ussubuha3: Fixed-point fractional library routines.
  39026. (line 142)
  39027. * __ussubuhq3: Fixed-point fractional library routines.
  39028. (line 136)
  39029. * __ussubuqq3: Fixed-point fractional library routines.
  39030. (line 134)
  39031. * __ussubusa3: Fixed-point fractional library routines.
  39032. (line 144)
  39033. * __ussubusq3: Fixed-point fractional library routines.
  39034. (line 138)
  39035. * __ussubuta3: Fixed-point fractional library routines.
  39036. (line 148)
  39037. * abort: Portability. (line 20)
  39038. * abs: Arithmetic. (line 200)
  39039. * 'abs' and attributes: Expressions. (line 83)
  39040. * absence_set: Processor pipeline description.
  39041. (line 223)
  39042. * 'absM2' instruction pattern: Standard Names. (line 624)
  39043. * absolute value: Arithmetic. (line 200)
  39044. * ABS_EXPR: Unary and Binary Expressions.
  39045. (line 6)
  39046. * access to operands: Accessors. (line 6)
  39047. * access to special operands: Special Accessors. (line 6)
  39048. * accessors: Accessors. (line 6)
  39049. * ACCUMULATE_OUTGOING_ARGS: Stack Arguments. (line 48)
  39050. * 'ACCUMULATE_OUTGOING_ARGS' and stack frames: Function Entry.
  39051. (line 133)
  39052. * ACCUM_TYPE_SIZE: Type Layout. (line 87)
  39053. * 'acosM2' instruction pattern: Standard Names. (line 711)
  39054. * ADA_LONG_TYPE_SIZE: Type Layout. (line 25)
  39055. * Adding a new GIMPLE statement code: Adding a new GIMPLE statement code.
  39056. (line 6)
  39057. * ADDITIONAL_REGISTER_NAMES: Instruction Output. (line 14)
  39058. * 'addM3' instruction pattern: Standard Names. (line 309)
  39059. * 'addMODEcc' instruction pattern: Standard Names. (line 1288)
  39060. * 'addptrM3' instruction pattern: Standard Names. (line 342)
  39061. * address constraints: Simple Constraints. (line 162)
  39062. * addressing modes: Addressing Modes. (line 6)
  39063. * address_operand: Machine-Independent Predicates.
  39064. (line 62)
  39065. * address_operand <1>: Simple Constraints. (line 166)
  39066. * addr_diff_vec: Side Effects. (line 313)
  39067. * 'addr_diff_vec', length of: Insn Lengths. (line 26)
  39068. * ADDR_EXPR: Storage References. (line 6)
  39069. * addr_vec: Side Effects. (line 308)
  39070. * 'addr_vec', length of: Insn Lengths. (line 26)
  39071. * 'addvM4' instruction pattern: Standard Names. (line 325)
  39072. * ADJUST_FIELD_ALIGN: Storage Layout. (line 212)
  39073. * ADJUST_INSN_LENGTH: Insn Lengths. (line 41)
  39074. * ADJUST_REG_ALLOC_ORDER: Allocation Order. (line 22)
  39075. * aggregates as return values: Aggregate Return. (line 6)
  39076. * alias: Alias analysis. (line 6)
  39077. * 'allocate_stack' instruction pattern: Standard Names. (line 1616)
  39078. * ALL_REGS: Register Classes. (line 17)
  39079. * alternate entry points: Insns. (line 146)
  39080. * anchored addresses: Anchored Addresses. (line 6)
  39081. * and: Arithmetic. (line 158)
  39082. * 'and' and attributes: Expressions. (line 50)
  39083. * 'and', canonicalization of: Insn Canonicalizations.
  39084. (line 51)
  39085. * 'andM3' instruction pattern: Standard Names. (line 315)
  39086. * ANNOTATE_EXPR: Unary and Binary Expressions.
  39087. (line 6)
  39088. * annotations: Annotations. (line 6)
  39089. * APPLY_RESULT_SIZE: Scalar Return. (line 112)
  39090. * ARGS_GROW_DOWNWARD: Frame Layout. (line 30)
  39091. * argument passing: Interface. (line 36)
  39092. * arguments in registers: Register Arguments. (line 6)
  39093. * arguments on stack: Stack Arguments. (line 6)
  39094. * ARG_POINTER_CFA_OFFSET: Frame Layout. (line 190)
  39095. * ARG_POINTER_REGNUM: Frame Registers. (line 40)
  39096. * 'ARG_POINTER_REGNUM' and virtual registers: Regs and Memory.
  39097. (line 65)
  39098. * arg_pointer_rtx: Frame Registers. (line 104)
  39099. * arithmetic library: Soft float library routines.
  39100. (line 6)
  39101. * arithmetic shift: Arithmetic. (line 173)
  39102. * arithmetic shift with signed saturation: Arithmetic. (line 173)
  39103. * arithmetic shift with unsigned saturation: Arithmetic. (line 173)
  39104. * arithmetic, in RTL: Arithmetic. (line 6)
  39105. * ARITHMETIC_TYPE_P: Types for C++. (line 59)
  39106. * array: Types. (line 6)
  39107. * ARRAY_RANGE_REF: Storage References. (line 6)
  39108. * ARRAY_REF: Storage References. (line 6)
  39109. * ARRAY_TYPE: Types. (line 6)
  39110. * ashift: Arithmetic. (line 173)
  39111. * 'ashift' and attributes: Expressions. (line 83)
  39112. * ashiftrt: Arithmetic. (line 190)
  39113. * 'ashiftrt' and attributes: Expressions. (line 83)
  39114. * 'ashlM3' instruction pattern: Standard Names. (line 593)
  39115. * 'ashrM3' instruction pattern: Standard Names. (line 605)
  39116. * 'asinM2' instruction pattern: Standard Names. (line 705)
  39117. * ASM_APP_OFF: File Framework. (line 76)
  39118. * ASM_APP_ON: File Framework. (line 69)
  39119. * ASM_COMMENT_START: File Framework. (line 64)
  39120. * ASM_DECLARE_COLD_FUNCTION_NAME: Label Output. (line 136)
  39121. * ASM_DECLARE_COLD_FUNCTION_SIZE: Label Output. (line 151)
  39122. * ASM_DECLARE_FUNCTION_NAME: Label Output. (line 108)
  39123. * ASM_DECLARE_FUNCTION_SIZE: Label Output. (line 123)
  39124. * ASM_DECLARE_OBJECT_NAME: Label Output. (line 164)
  39125. * ASM_DECLARE_REGISTER_GLOBAL: Label Output. (line 192)
  39126. * ASM_FINAL_SPEC: Driver. (line 81)
  39127. * ASM_FINISH_DECLARE_OBJECT: Label Output. (line 200)
  39128. * ASM_FORMAT_PRIVATE_NAME: Label Output. (line 426)
  39129. * asm_fprintf: Instruction Output. (line 150)
  39130. * ASM_FPRINTF_EXTENSIONS: Instruction Output. (line 160)
  39131. * ASM_GENERATE_INTERNAL_LABEL: Label Output. (line 410)
  39132. * asm_input: Side Effects. (line 295)
  39133. * 'asm_input' and '/v': Flags. (line 76)
  39134. * ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX: Exception Handling. (line 80)
  39135. * asm_noperands: Insns. (line 304)
  39136. * ASM_NO_SKIP_IN_TEXT: Alignment Output. (line 78)
  39137. * 'asm_operands' and '/v': Flags. (line 76)
  39138. * 'asm_operands', RTL sharing: Sharing. (line 45)
  39139. * 'asm_operands', usage: Assembler. (line 6)
  39140. * ASM_OUTPUT_ADDR_DIFF_ELT: Dispatch Tables. (line 8)
  39141. * ASM_OUTPUT_ADDR_VEC_ELT: Dispatch Tables. (line 25)
  39142. * ASM_OUTPUT_ALIGN: Alignment Output. (line 85)
  39143. * ASM_OUTPUT_ALIGNED_BSS: Uninitialized Data. (line 45)
  39144. * ASM_OUTPUT_ALIGNED_COMMON: Uninitialized Data. (line 29)
  39145. * ASM_OUTPUT_ALIGNED_DECL_COMMON: Uninitialized Data. (line 36)
  39146. * ASM_OUTPUT_ALIGNED_DECL_LOCAL: Uninitialized Data. (line 89)
  39147. * ASM_OUTPUT_ALIGNED_LOCAL: Uninitialized Data. (line 82)
  39148. * ASM_OUTPUT_ALIGN_WITH_NOP: Alignment Output. (line 90)
  39149. * ASM_OUTPUT_ASCII: Data Output. (line 54)
  39150. * ASM_OUTPUT_CASE_END: Dispatch Tables. (line 50)
  39151. * ASM_OUTPUT_CASE_LABEL: Dispatch Tables. (line 37)
  39152. * ASM_OUTPUT_COMMON: Uninitialized Data. (line 9)
  39153. * ASM_OUTPUT_DEBUG_LABEL: Label Output. (line 398)
  39154. * ASM_OUTPUT_DEF: Label Output. (line 447)
  39155. * ASM_OUTPUT_DEF_FROM_DECLS: Label Output. (line 454)
  39156. * ASM_OUTPUT_DWARF_DATAREL: SDB and DWARF. (line 93)
  39157. * ASM_OUTPUT_DWARF_DELTA: SDB and DWARF. (line 72)
  39158. * ASM_OUTPUT_DWARF_OFFSET: SDB and DWARF. (line 81)
  39159. * ASM_OUTPUT_DWARF_PCREL: SDB and DWARF. (line 88)
  39160. * ASM_OUTPUT_DWARF_TABLE_REF: SDB and DWARF. (line 98)
  39161. * ASM_OUTPUT_DWARF_VMS_DELTA: SDB and DWARF. (line 76)
  39162. * ASM_OUTPUT_EXTERNAL: Label Output. (line 327)
  39163. * ASM_OUTPUT_FDESC: Data Output. (line 63)
  39164. * ASM_OUTPUT_FUNCTION_LABEL: Label Output. (line 16)
  39165. * ASM_OUTPUT_INTERNAL_LABEL: Label Output. (line 27)
  39166. * ASM_OUTPUT_LABEL: Label Output. (line 8)
  39167. * ASM_OUTPUT_LABELREF: Label Output. (line 349)
  39168. * ASM_OUTPUT_LABEL_REF: Label Output. (line 371)
  39169. * ASM_OUTPUT_LOCAL: Uninitialized Data. (line 69)
  39170. * ASM_OUTPUT_MAX_SKIP_ALIGN: Alignment Output. (line 94)
  39171. * ASM_OUTPUT_MEASURED_SIZE: Label Output. (line 51)
  39172. * ASM_OUTPUT_OPCODE: Instruction Output. (line 35)
  39173. * ASM_OUTPUT_POOL_EPILOGUE: Data Output. (line 112)
  39174. * ASM_OUTPUT_POOL_PROLOGUE: Data Output. (line 76)
  39175. * ASM_OUTPUT_REG_POP: Instruction Output. (line 206)
  39176. * ASM_OUTPUT_REG_PUSH: Instruction Output. (line 201)
  39177. * ASM_OUTPUT_SIZE_DIRECTIVE: Label Output. (line 45)
  39178. * ASM_OUTPUT_SKIP: Alignment Output. (line 72)
  39179. * ASM_OUTPUT_SOURCE_FILENAME: File Framework. (line 83)
  39180. * ASM_OUTPUT_SPECIAL_POOL_ENTRY: Data Output. (line 87)
  39181. * ASM_OUTPUT_SYMBOL_REF: Label Output. (line 364)
  39182. * ASM_OUTPUT_TYPE_DIRECTIVE: Label Output. (line 98)
  39183. * ASM_OUTPUT_WEAKREF: Label Output. (line 259)
  39184. * ASM_OUTPUT_WEAK_ALIAS: Label Output. (line 473)
  39185. * ASM_PREFERRED_EH_DATA_FORMAT: Exception Handling. (line 66)
  39186. * ASM_SPEC: Driver. (line 73)
  39187. * ASM_STABD_OP: DBX Options. (line 34)
  39188. * ASM_STABN_OP: DBX Options. (line 41)
  39189. * ASM_STABS_OP: DBX Options. (line 28)
  39190. * ASM_WEAKEN_DECL: Label Output. (line 251)
  39191. * ASM_WEAKEN_LABEL: Label Output. (line 238)
  39192. * assembler format: File Framework. (line 6)
  39193. * assembler instructions in RTL: Assembler. (line 6)
  39194. * ASSEMBLER_DIALECT: Instruction Output. (line 172)
  39195. * assemble_name: Label Output. (line 8)
  39196. * assemble_name_raw: Label Output. (line 27)
  39197. * assigning attribute values to insns: Tagging Insns. (line 6)
  39198. * ASSUME_EXTENDED_UNWIND_CONTEXT: Frame Registers. (line 165)
  39199. * asterisk in template: Output Statement. (line 29)
  39200. * AS_NEEDS_DASH_FOR_PIPED_INPUT: Driver. (line 88)
  39201. * 'atan2M3' instruction pattern: Standard Names. (line 806)
  39202. * 'atanM2' instruction pattern: Standard Names. (line 717)
  39203. * atomic: GTY Options. (line 196)
  39204. * 'atomic_addMODE' instruction pattern: Standard Names. (line 2017)
  39205. * 'atomic_add_fetchMODE' instruction pattern: Standard Names.
  39206. (line 2046)
  39207. * 'atomic_andMODE' instruction pattern: Standard Names. (line 2017)
  39208. * 'atomic_and_fetchMODE' instruction pattern: Standard Names.
  39209. (line 2046)
  39210. * 'atomic_bit_test_and_complementMODE' instruction pattern: Standard Names.
  39211. (line 2074)
  39212. * 'atomic_bit_test_and_resetMODE' instruction pattern: Standard Names.
  39213. (line 2074)
  39214. * 'atomic_bit_test_and_setMODE' instruction pattern: Standard Names.
  39215. (line 2074)
  39216. * 'atomic_compare_and_swapMODE' instruction pattern: Standard Names.
  39217. (line 1953)
  39218. * 'atomic_exchangeMODE' instruction pattern: Standard Names. (line 2005)
  39219. * 'atomic_fetch_addMODE' instruction pattern: Standard Names.
  39220. (line 2031)
  39221. * 'atomic_fetch_andMODE' instruction pattern: Standard Names.
  39222. (line 2031)
  39223. * 'atomic_fetch_nandMODE' instruction pattern: Standard Names.
  39224. (line 2031)
  39225. * 'atomic_fetch_orMODE' instruction pattern: Standard Names. (line 2031)
  39226. * 'atomic_fetch_subMODE' instruction pattern: Standard Names.
  39227. (line 2031)
  39228. * 'atomic_fetch_xorMODE' instruction pattern: Standard Names.
  39229. (line 2031)
  39230. * 'atomic_loadMODE' instruction pattern: Standard Names. (line 1984)
  39231. * 'atomic_nandMODE' instruction pattern: Standard Names. (line 2017)
  39232. * 'atomic_nand_fetchMODE' instruction pattern: Standard Names.
  39233. (line 2046)
  39234. * 'atomic_orMODE' instruction pattern: Standard Names. (line 2017)
  39235. * 'atomic_or_fetchMODE' instruction pattern: Standard Names. (line 2046)
  39236. * 'atomic_storeMODE' instruction pattern: Standard Names. (line 1994)
  39237. * 'atomic_subMODE' instruction pattern: Standard Names. (line 2017)
  39238. * 'atomic_sub_fetchMODE' instruction pattern: Standard Names.
  39239. (line 2046)
  39240. * 'atomic_test_and_set' instruction pattern: Standard Names. (line 2063)
  39241. * 'atomic_xorMODE' instruction pattern: Standard Names. (line 2017)
  39242. * 'atomic_xor_fetchMODE' instruction pattern: Standard Names.
  39243. (line 2046)
  39244. * attr: Expressions. (line 163)
  39245. * attr <1>: Tagging Insns. (line 54)
  39246. * attribute expressions: Expressions. (line 6)
  39247. * attribute specifications: Attr Example. (line 6)
  39248. * attribute specifications example: Attr Example. (line 6)
  39249. * attributes: Attributes. (line 6)
  39250. * attributes, defining: Defining Attributes.
  39251. (line 6)
  39252. * attributes, target-specific: Target Attributes. (line 6)
  39253. * ATTRIBUTE_ALIGNED_VALUE: Storage Layout. (line 194)
  39254. * attr_flag: Expressions. (line 138)
  39255. * autoincrement addressing, availability: Portability. (line 20)
  39256. * autoincrement/decrement addressing: Simple Constraints. (line 30)
  39257. * automata_option: Processor pipeline description.
  39258. (line 304)
  39259. * automaton based pipeline description: Processor pipeline description.
  39260. (line 6)
  39261. * automaton based pipeline description <1>: Processor pipeline description.
  39262. (line 49)
  39263. * automaton based scheduler: Processor pipeline description.
  39264. (line 6)
  39265. * AVOID_CCMODE_COPIES: Values in Registers.
  39266. (line 150)
  39267. * backslash: Output Template. (line 46)
  39268. * barrier: Insns. (line 176)
  39269. * 'barrier' and '/f': Flags. (line 107)
  39270. * 'barrier' and '/v': Flags. (line 44)
  39271. * BASE_REG_CLASS: Register Classes. (line 111)
  39272. * basic block: Basic Blocks. (line 6)
  39273. * Basic Statements: Basic Statements. (line 6)
  39274. * basic-block.h: Control Flow. (line 6)
  39275. * basic_block: Basic Blocks. (line 6)
  39276. * BASIC_BLOCK: Basic Blocks. (line 14)
  39277. * BB_HEAD, BB_END: Maintaining the CFG.
  39278. (line 76)
  39279. * bb_seq: GIMPLE sequences. (line 72)
  39280. * BIGGEST_ALIGNMENT: Storage Layout. (line 179)
  39281. * BIGGEST_FIELD_ALIGNMENT: Storage Layout. (line 205)
  39282. * BImode: Machine Modes. (line 22)
  39283. * BIND_EXPR: Unary and Binary Expressions.
  39284. (line 6)
  39285. * BINFO_TYPE: Classes. (line 6)
  39286. * bit-fields: Bit-Fields. (line 6)
  39287. * BITFIELD_NBYTES_LIMITED: Storage Layout. (line 418)
  39288. * BITS_BIG_ENDIAN: Storage Layout. (line 11)
  39289. * 'BITS_BIG_ENDIAN', effect on 'sign_extract': Bit-Fields. (line 8)
  39290. * BITS_PER_UNIT: Machine Modes. (line 355)
  39291. * BITS_PER_WORD: Storage Layout. (line 50)
  39292. * bitwise complement: Arithmetic. (line 154)
  39293. * bitwise exclusive-or: Arithmetic. (line 168)
  39294. * bitwise inclusive-or: Arithmetic. (line 163)
  39295. * bitwise logical-and: Arithmetic. (line 158)
  39296. * BIT_AND_EXPR: Unary and Binary Expressions.
  39297. (line 6)
  39298. * BIT_IOR_EXPR: Unary and Binary Expressions.
  39299. (line 6)
  39300. * BIT_NOT_EXPR: Unary and Binary Expressions.
  39301. (line 6)
  39302. * BIT_XOR_EXPR: Unary and Binary Expressions.
  39303. (line 6)
  39304. * BLKmode: Machine Modes. (line 185)
  39305. * 'BLKmode', and function return values: Calls. (line 23)
  39306. * 'blockage' instruction pattern: Standard Names. (line 1816)
  39307. * Blocks: Blocks. (line 6)
  39308. * BLOCK_FOR_INSN, gimple_bb: Maintaining the CFG.
  39309. (line 28)
  39310. * BLOCK_REG_PADDING: Register Arguments. (line 246)
  39311. * BND32mode: Machine Modes. (line 210)
  39312. * BND64mode: Machine Modes. (line 210)
  39313. * bool: Misc. (line 1016)
  39314. * BOOLEAN_TYPE: Types. (line 6)
  39315. * BOOL_TYPE_SIZE: Type Layout. (line 43)
  39316. * branch prediction: Profile information.
  39317. (line 24)
  39318. * BRANCH_COST: Costs. (line 104)
  39319. * break_out_memory_refs: Addressing Modes. (line 134)
  39320. * BREAK_STMT: Statements for C++. (line 6)
  39321. * BSS_SECTION_ASM_OP: Sections. (line 67)
  39322. * bswap: Arithmetic. (line 246)
  39323. * 'bswapM2' instruction pattern: Standard Names. (line 613)
  39324. * 'btruncM2' instruction pattern: Standard Names. (line 823)
  39325. * build0: Macros and Functions.
  39326. (line 16)
  39327. * build1: Macros and Functions.
  39328. (line 17)
  39329. * build2: Macros and Functions.
  39330. (line 18)
  39331. * build3: Macros and Functions.
  39332. (line 19)
  39333. * build4: Macros and Functions.
  39334. (line 20)
  39335. * build5: Macros and Functions.
  39336. (line 21)
  39337. * build6: Macros and Functions.
  39338. (line 22)
  39339. * 'builtin_longjmp' instruction pattern: Standard Names. (line 1714)
  39340. * 'builtin_setjmp_receiver' instruction pattern: Standard Names.
  39341. (line 1704)
  39342. * 'builtin_setjmp_setup' instruction pattern: Standard Names.
  39343. (line 1693)
  39344. * BYTES_BIG_ENDIAN: Storage Layout. (line 23)
  39345. * 'BYTES_BIG_ENDIAN', effect on 'subreg': Regs and Memory. (line 219)
  39346. * byte_mode: Machine Modes. (line 368)
  39347. * C statements for assembler output: Output Statement. (line 6)
  39348. * cache: GTY Options. (line 127)
  39349. * call: Flags. (line 221)
  39350. * call <1>: Side Effects. (line 92)
  39351. * 'call' instruction pattern: Standard Names. (line 1359)
  39352. * 'call' usage: Calls. (line 10)
  39353. * 'call', in 'call_insn': Flags. (line 33)
  39354. * 'call', in 'mem': Flags. (line 81)
  39355. * call-clobbered register: Register Basics. (line 35)
  39356. * call-clobbered register <1>: Register Basics. (line 46)
  39357. * call-clobbered register <2>: Register Basics. (line 53)
  39358. * call-saved register: Register Basics. (line 35)
  39359. * call-saved register <1>: Register Basics. (line 46)
  39360. * call-saved register <2>: Register Basics. (line 53)
  39361. * call-used register: Register Basics. (line 35)
  39362. * call-used register <1>: Register Basics. (line 46)
  39363. * call-used register <2>: Register Basics. (line 53)
  39364. * calling conventions: Stack and Calling. (line 6)
  39365. * calling functions in RTL: Calls. (line 6)
  39366. * CALL_EXPR: Unary and Binary Expressions.
  39367. (line 6)
  39368. * call_insn: Insns. (line 95)
  39369. * 'call_insn' and '/c': Flags. (line 33)
  39370. * 'call_insn' and '/f': Flags. (line 107)
  39371. * 'call_insn' and '/i': Flags. (line 24)
  39372. * 'call_insn' and '/j': Flags. (line 161)
  39373. * 'call_insn' and '/s': Flags. (line 49)
  39374. * 'call_insn' and '/s' <1>: Flags. (line 148)
  39375. * 'call_insn' and '/u': Flags. (line 19)
  39376. * 'call_insn' and '/u' <1>: Flags. (line 39)
  39377. * 'call_insn' and '/u' or '/i': Flags. (line 29)
  39378. * 'call_insn' and '/v': Flags. (line 44)
  39379. * CALL_INSN_FUNCTION_USAGE: Insns. (line 101)
  39380. * 'call_pop' instruction pattern: Standard Names. (line 1387)
  39381. * CALL_POPS_ARGS: Stack Arguments. (line 138)
  39382. * CALL_REALLY_USED_REGISTERS: Register Basics. (line 45)
  39383. * CALL_USED_REGISTERS: Register Basics. (line 34)
  39384. * call_used_regs: Register Basics. (line 59)
  39385. * 'call_value' instruction pattern: Standard Names. (line 1379)
  39386. * 'call_value_pop' instruction pattern: Standard Names. (line 1387)
  39387. * canadian: Configure Terms. (line 6)
  39388. * CANNOT_CHANGE_MODE_CLASS: Register Classes. (line 533)
  39389. * 'CANNOT_CHANGE_MODE_CLASS' and subreg semantics: Regs and Memory.
  39390. (line 276)
  39391. * canonicalization of instructions: Insn Canonicalizations.
  39392. (line 6)
  39393. * 'canonicalize_funcptr_for_compare' instruction pattern: Standard Names.
  39394. (line 1548)
  39395. * can_create_pseudo_p: Standard Names. (line 75)
  39396. * can_fallthru: Basic Blocks. (line 67)
  39397. * caret: Multi-Alternative. (line 53)
  39398. * 'casesi' instruction pattern: Standard Names. (line 1480)
  39399. * CASE_VECTOR_MODE: Misc. (line 26)
  39400. * CASE_VECTOR_PC_RELATIVE: Misc. (line 39)
  39401. * CASE_VECTOR_SHORTEN_MODE: Misc. (line 30)
  39402. * 'cbranchMODE4' instruction pattern: Standard Names. (line 1348)
  39403. * cc0: Regs and Memory. (line 303)
  39404. * cc0 <1>: CC0 Condition Codes.
  39405. (line 6)
  39406. * 'cc0', RTL sharing: Sharing. (line 27)
  39407. * cc0_rtx: Regs and Memory. (line 329)
  39408. * CC1PLUS_SPEC: Driver. (line 63)
  39409. * CC1_SPEC: Driver. (line 55)
  39410. * CCmode: Machine Modes. (line 178)
  39411. * CCmode <1>: MODE_CC Condition Codes.
  39412. (line 6)
  39413. * cc_status: CC0 Condition Codes.
  39414. (line 6)
  39415. * CC_STATUS_MDEP: CC0 Condition Codes.
  39416. (line 16)
  39417. * CC_STATUS_MDEP_INIT: CC0 Condition Codes.
  39418. (line 22)
  39419. * CDImode: Machine Modes. (line 204)
  39420. * 'ceilM2' instruction pattern: Standard Names. (line 842)
  39421. * CEIL_DIV_EXPR: Unary and Binary Expressions.
  39422. (line 6)
  39423. * CEIL_MOD_EXPR: Unary and Binary Expressions.
  39424. (line 6)
  39425. * CFA_FRAME_BASE_OFFSET: Frame Layout. (line 222)
  39426. * CFG verification: Maintaining the CFG.
  39427. (line 116)
  39428. * CFG, Control Flow Graph: Control Flow. (line 6)
  39429. * cfghooks.h: Maintaining the CFG.
  39430. (line 6)
  39431. * cgraph_finalize_function: Parsing pass. (line 51)
  39432. * chain_circular: GTY Options. (line 160)
  39433. * chain_next: GTY Options. (line 160)
  39434. * chain_prev: GTY Options. (line 160)
  39435. * change_address: Standard Names. (line 47)
  39436. * CHAR_TYPE_SIZE: Type Layout. (line 38)
  39437. * 'check_stack' instruction pattern: Standard Names. (line 1634)
  39438. * CHImode: Machine Modes. (line 204)
  39439. * CILK_PLUS: Cilk Plus Transformation.
  39440. (line 6)
  39441. * class definitions, register: Register Classes. (line 6)
  39442. * class preference constraints: Class Preferences. (line 6)
  39443. * class, scope: Classes. (line 6)
  39444. * classes of RTX codes: RTL Classes. (line 6)
  39445. * CLASSTYPE_DECLARED_CLASS: Classes. (line 6)
  39446. * CLASSTYPE_HAS_MUTABLE: Classes. (line 85)
  39447. * CLASSTYPE_NON_POD_P: Classes. (line 90)
  39448. * CLASS_MAX_NREGS: Register Classes. (line 521)
  39449. * CLASS_TYPE_P: Types for C++. (line 63)
  39450. * Cleanups: Cleanups. (line 6)
  39451. * CLEANUP_DECL: Statements for C++. (line 6)
  39452. * CLEANUP_EXPR: Statements for C++. (line 6)
  39453. * CLEANUP_POINT_EXPR: Unary and Binary Expressions.
  39454. (line 6)
  39455. * CLEANUP_STMT: Statements for C++. (line 6)
  39456. * 'clear_cache' instruction pattern: Standard Names. (line 2148)
  39457. * CLEAR_INSN_CACHE: Trampolines. (line 117)
  39458. * CLEAR_RATIO: Costs. (line 225)
  39459. * clobber: Side Effects. (line 106)
  39460. * clrsb: Arithmetic. (line 215)
  39461. * 'clrsbM2' instruction pattern: Standard Names. (line 907)
  39462. * clz: Arithmetic. (line 222)
  39463. * 'clzM2' instruction pattern: Standard Names. (line 923)
  39464. * CLZ_DEFINED_VALUE_AT_ZERO: Misc. (line 325)
  39465. * 'cmpmemM' instruction pattern: Standard Names. (line 1088)
  39466. * 'cmpstrM' instruction pattern: Standard Names. (line 1067)
  39467. * 'cmpstrnM' instruction pattern: Standard Names. (line 1054)
  39468. * code generation RTL sequences: Expander Definitions.
  39469. (line 6)
  39470. * code iterators in '.md' files: Code Iterators. (line 6)
  39471. * codes, RTL expression: RTL Objects. (line 47)
  39472. * code_label: Insns. (line 125)
  39473. * CODE_LABEL: Basic Blocks. (line 50)
  39474. * 'code_label' and '/i': Flags. (line 59)
  39475. * 'code_label' and '/v': Flags. (line 44)
  39476. * CODE_LABEL_NUMBER: Insns. (line 125)
  39477. * COImode: Machine Modes. (line 204)
  39478. * COLLECT2_HOST_INITIALIZATION: Host Misc. (line 32)
  39479. * COLLECT_EXPORT_LIST: Misc. (line 888)
  39480. * COLLECT_SHARED_FINI_FUNC: Macros for Initialization.
  39481. (line 43)
  39482. * COLLECT_SHARED_INIT_FUNC: Macros for Initialization.
  39483. (line 32)
  39484. * commit_edge_insertions: Maintaining the CFG.
  39485. (line 104)
  39486. * compare: Arithmetic. (line 46)
  39487. * 'compare', canonicalization of: Insn Canonicalizations.
  39488. (line 36)
  39489. * COMPARE_MAX_PIECES: Costs. (line 220)
  39490. * comparison_operator: Machine-Independent Predicates.
  39491. (line 110)
  39492. * compiler passes and files: Passes. (line 6)
  39493. * complement, bitwise: Arithmetic. (line 154)
  39494. * COMPLEX_CST: Constant expressions.
  39495. (line 6)
  39496. * COMPLEX_EXPR: Unary and Binary Expressions.
  39497. (line 6)
  39498. * COMPLEX_TYPE: Types. (line 6)
  39499. * COMPONENT_REF: Storage References. (line 6)
  39500. * Compound Expressions: Compound Expressions.
  39501. (line 6)
  39502. * Compound Lvalues: Compound Lvalues. (line 6)
  39503. * COMPOUND_EXPR: Unary and Binary Expressions.
  39504. (line 6)
  39505. * COMPOUND_LITERAL_EXPR: Unary and Binary Expressions.
  39506. (line 6)
  39507. * COMPOUND_LITERAL_EXPR_DECL: Unary and Binary Expressions.
  39508. (line 377)
  39509. * COMPOUND_LITERAL_EXPR_DECL_EXPR: Unary and Binary Expressions.
  39510. (line 377)
  39511. * computed jump: Edges. (line 127)
  39512. * computing the length of an insn: Insn Lengths. (line 6)
  39513. * concat: Regs and Memory. (line 381)
  39514. * concatn: Regs and Memory. (line 387)
  39515. * cond: Comparisons. (line 90)
  39516. * 'cond' and attributes: Expressions. (line 37)
  39517. * condition code register: Regs and Memory. (line 303)
  39518. * condition code status: Condition Code. (line 6)
  39519. * condition codes: Comparisons. (line 20)
  39520. * conditional execution: Conditional Execution.
  39521. (line 6)
  39522. * Conditional Expressions: Conditional Expressions.
  39523. (line 6)
  39524. * conditions, in patterns: Patterns. (line 43)
  39525. * cond_exec: Side Effects. (line 253)
  39526. * COND_EXPR: Unary and Binary Expressions.
  39527. (line 6)
  39528. * configuration file: Filesystem. (line 6)
  39529. * configuration file <1>: Host Misc. (line 6)
  39530. * configure terms: Configure Terms. (line 6)
  39531. * CONJ_EXPR: Unary and Binary Expressions.
  39532. (line 6)
  39533. * const: Constants. (line 140)
  39534. * const0_rtx: Constants. (line 21)
  39535. * CONST0_RTX: Constants. (line 160)
  39536. * const1_rtx: Constants. (line 21)
  39537. * CONST1_RTX: Constants. (line 160)
  39538. * const2_rtx: Constants. (line 21)
  39539. * CONST2_RTX: Constants. (line 160)
  39540. * constant attributes: Constant Attributes.
  39541. (line 6)
  39542. * constant definitions: Constant Definitions.
  39543. (line 6)
  39544. * constants in constraints: Simple Constraints. (line 68)
  39545. * CONSTANT_ADDRESS_P: Addressing Modes. (line 28)
  39546. * CONSTANT_ALIGNMENT: Storage Layout. (line 261)
  39547. * CONSTANT_P: Addressing Modes. (line 35)
  39548. * CONSTANT_POOL_ADDRESS_P: Flags. (line 10)
  39549. * CONSTANT_POOL_BEFORE_FUNCTION: Data Output. (line 68)
  39550. * constm1_rtx: Constants. (line 21)
  39551. * constraint modifier characters: Modifiers. (line 6)
  39552. * constraint, matching: Simple Constraints. (line 140)
  39553. * constraints: Constraints. (line 6)
  39554. * constraints, defining: Define Constraints. (line 6)
  39555. * constraints, machine specific: Machine Constraints.
  39556. (line 6)
  39557. * constraints, testing: C Constraint Interface.
  39558. (line 6)
  39559. * constraint_num: C Constraint Interface.
  39560. (line 30)
  39561. * constraint_satisfied_p: C Constraint Interface.
  39562. (line 42)
  39563. * CONSTRUCTOR: Unary and Binary Expressions.
  39564. (line 6)
  39565. * constructors, automatic calls: Collect2. (line 15)
  39566. * constructors, output of: Initialization. (line 6)
  39567. * CONST_DECL: Declarations. (line 6)
  39568. * const_double: Constants. (line 37)
  39569. * 'const_double', RTL sharing: Sharing. (line 29)
  39570. * CONST_DOUBLE_LOW: Constants. (line 54)
  39571. * const_double_operand: Machine-Independent Predicates.
  39572. (line 20)
  39573. * const_fixed: Constants. (line 93)
  39574. * const_int: Constants. (line 8)
  39575. * 'const_int' and attribute tests: Expressions. (line 47)
  39576. * 'const_int' and attributes: Expressions. (line 10)
  39577. * 'const_int', RTL sharing: Sharing. (line 23)
  39578. * const_int_operand: Machine-Independent Predicates.
  39579. (line 15)
  39580. * const_string: Constants. (line 112)
  39581. * 'const_string' and attributes: Expressions. (line 20)
  39582. * const_true_rtx: Constants. (line 31)
  39583. * const_vector: Constants. (line 100)
  39584. * 'const_vector', RTL sharing: Sharing. (line 32)
  39585. * CONST_WIDE_INT: Constants. (line 67)
  39586. * CONST_WIDE_INT_ELT: Constants. (line 89)
  39587. * CONST_WIDE_INT_NUNITS: Constants. (line 84)
  39588. * CONST_WIDE_INT_VEC: Constants. (line 80)
  39589. * container: Containers. (line 6)
  39590. * CONTINUE_STMT: Statements for C++. (line 6)
  39591. * contributors: Contributors. (line 6)
  39592. * controlling register usage: Register Basics. (line 73)
  39593. * controlling the compilation driver: Driver. (line 6)
  39594. * conventions, run-time: Interface. (line 6)
  39595. * conversions: Conversions. (line 6)
  39596. * CONVERT_EXPR: Unary and Binary Expressions.
  39597. (line 6)
  39598. * 'copysignM3' instruction pattern: Standard Names. (line 887)
  39599. * copy_rtx: Addressing Modes. (line 189)
  39600. * copy_rtx_if_shared: Sharing. (line 64)
  39601. * 'cosM2' instruction pattern: Standard Names. (line 676)
  39602. * costs of instructions: Costs. (line 6)
  39603. * CPLUSPLUS_CPP_SPEC: Driver. (line 50)
  39604. * CPP_SPEC: Driver. (line 43)
  39605. * CPSImode: Machine Modes. (line 204)
  39606. * CP_INTEGRAL_TYPE: Types for C++. (line 55)
  39607. * cp_namespace_decls: Namespaces. (line 49)
  39608. * CP_TYPE_CONST_NON_VOLATILE_P: Types for C++. (line 33)
  39609. * CP_TYPE_CONST_P: Types for C++. (line 24)
  39610. * cp_type_quals: Types for C++. (line 6)
  39611. * cp_type_quals <1>: Types for C++. (line 16)
  39612. * CP_TYPE_RESTRICT_P: Types for C++. (line 30)
  39613. * CP_TYPE_VOLATILE_P: Types for C++. (line 27)
  39614. * CQImode: Machine Modes. (line 204)
  39615. * cross compilation and floating point: Floating Point. (line 6)
  39616. * crtl->args.pops_args: Function Entry. (line 104)
  39617. * crtl->args.pretend_args_size: Function Entry. (line 110)
  39618. * crtl->outgoing_args_size: Stack Arguments. (line 48)
  39619. * CRTSTUFF_T_CFLAGS: Target Fragment. (line 15)
  39620. * CRTSTUFF_T_CFLAGS_S: Target Fragment. (line 19)
  39621. * CRT_CALL_STATIC_FUNCTION: Sections. (line 125)
  39622. * CSImode: Machine Modes. (line 204)
  39623. * 'cstoreMODE4' instruction pattern: Standard Names. (line 1309)
  39624. * CTImode: Machine Modes. (line 204)
  39625. * 'ctrapMM4' instruction pattern: Standard Names. (line 1785)
  39626. * ctz: Arithmetic. (line 230)
  39627. * 'ctzM2' instruction pattern: Standard Names. (line 938)
  39628. * CTZ_DEFINED_VALUE_AT_ZERO: Misc. (line 326)
  39629. * CUMULATIVE_ARGS: Register Arguments. (line 144)
  39630. * current_function_is_leaf: Leaf Functions. (line 50)
  39631. * current_function_uses_only_leaf_regs: Leaf Functions. (line 50)
  39632. * current_insn_predicate: Conditional Execution.
  39633. (line 27)
  39634. * C_COMMON_OVERRIDE_OPTIONS: Run-time Target. (line 136)
  39635. * c_register_pragma: Misc. (line 428)
  39636. * c_register_pragma_with_expansion: Misc. (line 430)
  39637. * DAmode: Machine Modes. (line 154)
  39638. * data bypass: Processor pipeline description.
  39639. (line 105)
  39640. * data bypass <1>: Processor pipeline description.
  39641. (line 196)
  39642. * data dependence delays: Processor pipeline description.
  39643. (line 6)
  39644. * Data Dependency Analysis: Dependency analysis.
  39645. (line 6)
  39646. * data structures: Per-Function Data. (line 6)
  39647. * DATA_ABI_ALIGNMENT: Storage Layout. (line 253)
  39648. * DATA_ALIGNMENT: Storage Layout. (line 240)
  39649. * DATA_SECTION_ASM_OP: Sections. (line 52)
  39650. * DBR_OUTPUT_SEQEND: Instruction Output. (line 133)
  39651. * dbr_sequence_length: Instruction Output. (line 133)
  39652. * DBX_BLOCKS_FUNCTION_RELATIVE: DBX Options. (line 100)
  39653. * DBX_CONTIN_CHAR: DBX Options. (line 63)
  39654. * DBX_CONTIN_LENGTH: DBX Options. (line 53)
  39655. * DBX_DEBUGGING_INFO: DBX Options. (line 8)
  39656. * DBX_FUNCTION_FIRST: DBX Options. (line 94)
  39657. * DBX_LINES_FUNCTION_RELATIVE: DBX Options. (line 106)
  39658. * DBX_NO_XREFS: DBX Options. (line 47)
  39659. * DBX_OUTPUT_MAIN_SOURCE_FILENAME: File Names and DBX. (line 8)
  39660. * DBX_OUTPUT_MAIN_SOURCE_FILE_END: File Names and DBX. (line 33)
  39661. * DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END: File Names and DBX.
  39662. (line 41)
  39663. * DBX_OUTPUT_SOURCE_LINE: DBX Hooks. (line 8)
  39664. * DBX_REGISTER_NUMBER: All Debuggers. (line 8)
  39665. * DBX_REGPARM_STABS_CODE: DBX Options. (line 84)
  39666. * DBX_REGPARM_STABS_LETTER: DBX Options. (line 89)
  39667. * DBX_STATIC_CONST_VAR_CODE: DBX Options. (line 79)
  39668. * DBX_STATIC_STAB_DATA_SECTION: DBX Options. (line 70)
  39669. * DBX_TYPE_DECL_STABS_CODE: DBX Options. (line 75)
  39670. * DBX_USE_BINCL: DBX Options. (line 112)
  39671. * DCmode: Machine Modes. (line 199)
  39672. * DDmode: Machine Modes. (line 93)
  39673. * De Morgan's law: Insn Canonicalizations.
  39674. (line 51)
  39675. * dead_or_set_p: define_peephole. (line 65)
  39676. * DEBUGGER_ARG_OFFSET: All Debuggers. (line 36)
  39677. * DEBUGGER_AUTO_OFFSET: All Debuggers. (line 27)
  39678. * debug_expr: Debug Information. (line 22)
  39679. * DEBUG_EXPR_DECL: Declarations. (line 6)
  39680. * debug_insn: Insns. (line 236)
  39681. * DEBUG_SYMS_TEXT: DBX Options. (line 24)
  39682. * decimal float library: Decimal float library routines.
  39683. (line 6)
  39684. * declaration: Declarations. (line 6)
  39685. * declarations, RTL: RTL Declarations. (line 6)
  39686. * DECLARE_LIBRARY_RENAMES: Library Calls. (line 8)
  39687. * DECL_ALIGN: Declarations. (line 6)
  39688. * DECL_ANTICIPATED: Functions for C++. (line 42)
  39689. * DECL_ARGUMENTS: Function Basics. (line 36)
  39690. * DECL_ARRAY_DELETE_OPERATOR_P: Functions for C++. (line 158)
  39691. * DECL_ARTIFICIAL: Working with declarations.
  39692. (line 24)
  39693. * DECL_ARTIFICIAL <1>: Function Basics. (line 6)
  39694. * DECL_ARTIFICIAL <2>: Function Properties.
  39695. (line 47)
  39696. * DECL_ASSEMBLER_NAME: Function Basics. (line 6)
  39697. * DECL_ASSEMBLER_NAME <1>: Function Basics. (line 19)
  39698. * DECL_ATTRIBUTES: Attributes. (line 21)
  39699. * DECL_BASE_CONSTRUCTOR_P: Functions for C++. (line 88)
  39700. * DECL_COMPLETE_CONSTRUCTOR_P: Functions for C++. (line 84)
  39701. * DECL_COMPLETE_DESTRUCTOR_P: Functions for C++. (line 98)
  39702. * DECL_CONSTRUCTOR_P: Functions for C++. (line 77)
  39703. * DECL_CONST_MEMFUNC_P: Functions for C++. (line 71)
  39704. * DECL_CONTEXT: Namespaces. (line 31)
  39705. * DECL_CONV_FN_P: Functions for C++. (line 105)
  39706. * DECL_COPY_CONSTRUCTOR_P: Functions for C++. (line 92)
  39707. * DECL_DESTRUCTOR_P: Functions for C++. (line 95)
  39708. * DECL_EXTERNAL: Declarations. (line 6)
  39709. * DECL_EXTERNAL <1>: Function Properties.
  39710. (line 25)
  39711. * DECL_EXTERN_C_FUNCTION_P: Functions for C++. (line 46)
  39712. * DECL_FUNCTION_MEMBER_P: Functions for C++. (line 61)
  39713. * DECL_FUNCTION_SPECIFIC_OPTIMIZATION: Function Basics. (line 6)
  39714. * DECL_FUNCTION_SPECIFIC_OPTIMIZATION <1>: Function Properties.
  39715. (line 61)
  39716. * DECL_FUNCTION_SPECIFIC_TARGET: Function Basics. (line 6)
  39717. * DECL_FUNCTION_SPECIFIC_TARGET <1>: Function Properties.
  39718. (line 55)
  39719. * DECL_GLOBAL_CTOR_P: Functions for C++. (line 108)
  39720. * DECL_GLOBAL_DTOR_P: Functions for C++. (line 112)
  39721. * DECL_INITIAL: Declarations. (line 6)
  39722. * DECL_INITIAL <1>: Function Basics. (line 51)
  39723. * DECL_LINKONCE_P: Functions for C++. (line 50)
  39724. * DECL_LOCAL_FUNCTION_P: Functions for C++. (line 38)
  39725. * DECL_MAIN_P: Functions for C++. (line 34)
  39726. * DECL_NAME: Working with declarations.
  39727. (line 7)
  39728. * DECL_NAME <1>: Function Basics. (line 6)
  39729. * DECL_NAME <2>: Function Basics. (line 9)
  39730. * DECL_NAME <3>: Namespaces. (line 20)
  39731. * DECL_NAMESPACE_ALIAS: Namespaces. (line 35)
  39732. * DECL_NAMESPACE_STD_P: Namespaces. (line 45)
  39733. * DECL_NONCONVERTING_P: Functions for C++. (line 80)
  39734. * DECL_NONSTATIC_MEMBER_FUNCTION_P: Functions for C++. (line 68)
  39735. * DECL_NON_THUNK_FUNCTION_P: Functions for C++. (line 138)
  39736. * DECL_OVERLOADED_OPERATOR_P: Functions for C++. (line 102)
  39737. * DECL_PURE_P: Function Properties.
  39738. (line 40)
  39739. * DECL_RESULT: Function Basics. (line 41)
  39740. * DECL_SAVED_TREE: Function Basics. (line 44)
  39741. * DECL_SIZE: Declarations. (line 6)
  39742. * DECL_STATIC_FUNCTION_P: Functions for C++. (line 65)
  39743. * DECL_STMT: Statements for C++. (line 6)
  39744. * DECL_STMT_DECL: Statements for C++. (line 6)
  39745. * DECL_THUNK_P: Functions for C++. (line 116)
  39746. * DECL_VIRTUAL_P: Function Properties.
  39747. (line 44)
  39748. * DECL_VOLATILE_MEMFUNC_P: Functions for C++. (line 74)
  39749. * 'decrement_and_branch_until_zero' instruction pattern: Standard Names.
  39750. (line 1517)
  39751. * default: GTY Options. (line 90)
  39752. * default_file_start: File Framework. (line 8)
  39753. * DEFAULT_GDB_EXTENSIONS: DBX Options. (line 17)
  39754. * DEFAULT_PCC_STRUCT_RETURN: Aggregate Return. (line 34)
  39755. * DEFAULT_SIGNED_CHAR: Type Layout. (line 117)
  39756. * define_address_constraint: Define Constraints. (line 113)
  39757. * define_asm_attributes: Tagging Insns. (line 73)
  39758. * define_attr: Defining Attributes.
  39759. (line 6)
  39760. * define_automaton: Processor pipeline description.
  39761. (line 53)
  39762. * define_bypass: Processor pipeline description.
  39763. (line 196)
  39764. * define_code_attr: Code Iterators. (line 6)
  39765. * define_code_iterator: Code Iterators. (line 6)
  39766. * define_cond_exec: Conditional Execution.
  39767. (line 13)
  39768. * define_constants: Constant Definitions.
  39769. (line 6)
  39770. * define_constraint: Define Constraints. (line 45)
  39771. * define_cpu_unit: Processor pipeline description.
  39772. (line 68)
  39773. * define_c_enum: Constant Definitions.
  39774. (line 49)
  39775. * define_delay: Delay Slots. (line 25)
  39776. * define_enum: Constant Definitions.
  39777. (line 118)
  39778. * define_enum_attr: Defining Attributes.
  39779. (line 83)
  39780. * define_enum_attr <1>: Constant Definitions.
  39781. (line 136)
  39782. * define_expand: Expander Definitions.
  39783. (line 11)
  39784. * define_insn: Patterns. (line 6)
  39785. * 'define_insn' example: Example. (line 6)
  39786. * define_insn_and_split: Insn Splitting. (line 170)
  39787. * define_insn_reservation: Processor pipeline description.
  39788. (line 105)
  39789. * define_int_attr: Int Iterators. (line 6)
  39790. * define_int_iterator: Int Iterators. (line 6)
  39791. * define_memory_constraint: Define Constraints. (line 80)
  39792. * define_mode_attr: Substitutions. (line 6)
  39793. * define_mode_iterator: Defining Mode Iterators.
  39794. (line 6)
  39795. * define_peephole: define_peephole. (line 6)
  39796. * define_peephole2: define_peephole2. (line 6)
  39797. * define_predicate: Defining Predicates.
  39798. (line 6)
  39799. * define_query_cpu_unit: Processor pipeline description.
  39800. (line 90)
  39801. * define_register_constraint: Define Constraints. (line 26)
  39802. * define_reservation: Processor pipeline description.
  39803. (line 185)
  39804. * define_special_memory_constraint: Define Constraints. (line 99)
  39805. * define_special_predicate: Defining Predicates.
  39806. (line 6)
  39807. * define_split: Insn Splitting. (line 32)
  39808. * define_subst: Define Subst. (line 6)
  39809. * define_subst <1>: Define Subst Example.
  39810. (line 6)
  39811. * define_subst <2>: Define Subst Pattern Matching.
  39812. (line 6)
  39813. * define_subst <3>: Define Subst Output Template.
  39814. (line 6)
  39815. * define_subst <4>: Define Subst. (line 14)
  39816. * define_subst <5>: Subst Iterators. (line 6)
  39817. * define_subst_attr: Subst Iterators. (line 6)
  39818. * define_subst_attr <1>: Subst Iterators. (line 26)
  39819. * defining attributes and their values: Defining Attributes.
  39820. (line 6)
  39821. * defining constraints: Define Constraints. (line 6)
  39822. * defining jump instruction patterns: Jump Patterns. (line 6)
  39823. * defining looping instruction patterns: Looping Patterns. (line 6)
  39824. * defining peephole optimizers: Peephole Definitions.
  39825. (line 6)
  39826. * defining predicates: Defining Predicates.
  39827. (line 6)
  39828. * defining RTL sequences for code generation: Expander Definitions.
  39829. (line 6)
  39830. * delay slots, defining: Delay Slots. (line 6)
  39831. * deletable: GTY Options. (line 134)
  39832. * DELETE_IF_ORDINARY: Filesystem. (line 79)
  39833. * Dependent Patterns: Dependent Patterns. (line 6)
  39834. * desc: GTY Options. (line 90)
  39835. * destructors, output of: Initialization. (line 6)
  39836. * deterministic finite state automaton: Processor pipeline description.
  39837. (line 6)
  39838. * deterministic finite state automaton <1>: Processor pipeline description.
  39839. (line 304)
  39840. * DFmode: Machine Modes. (line 76)
  39841. * digits in constraint: Simple Constraints. (line 128)
  39842. * DImode: Machine Modes. (line 45)
  39843. * directory options .md: Including Patterns. (line 47)
  39844. * DIR_SEPARATOR: Filesystem. (line 18)
  39845. * DIR_SEPARATOR_2: Filesystem. (line 19)
  39846. * disabling certain registers: Register Basics. (line 73)
  39847. * dispatch table: Dispatch Tables. (line 8)
  39848. * div: Arithmetic. (line 116)
  39849. * 'div' and attributes: Expressions. (line 83)
  39850. * division: Arithmetic. (line 116)
  39851. * division <1>: Arithmetic. (line 130)
  39852. * division <2>: Arithmetic. (line 136)
  39853. * 'divM3' instruction pattern: Standard Names. (line 315)
  39854. * 'divmodM4' instruction pattern: Standard Names. (line 573)
  39855. * dollar sign: Multi-Alternative. (line 57)
  39856. * DOLLARS_IN_IDENTIFIERS: Misc. (line 473)
  39857. * 'doloop_begin' instruction pattern: Standard Names. (line 1539)
  39858. * 'doloop_end' instruction pattern: Standard Names. (line 1527)
  39859. * DONE: Expander Definitions.
  39860. (line 77)
  39861. * DONT_USE_BUILTIN_SETJMP: Exception Region Output.
  39862. (line 78)
  39863. * DOUBLE_TYPE_SIZE: Type Layout. (line 52)
  39864. * DO_BODY: Statements for C++. (line 6)
  39865. * DO_COND: Statements for C++. (line 6)
  39866. * DO_STMT: Statements for C++. (line 6)
  39867. * DQmode: Machine Modes. (line 118)
  39868. * driver: Driver. (line 6)
  39869. * DRIVER_SELF_SPECS: Driver. (line 8)
  39870. * dump examples: Dump examples. (line 6)
  39871. * dump setup: Dump setup. (line 6)
  39872. * dump types: Dump types. (line 6)
  39873. * dump verbosity: Dump output verbosity.
  39874. (line 6)
  39875. * DUMPFILE_FORMAT: Filesystem. (line 67)
  39876. * dump_basic_block: Dump types. (line 29)
  39877. * dump_generic_expr: Dump types. (line 31)
  39878. * dump_gimple_stmt: Dump types. (line 33)
  39879. * dump_printf: Dump types. (line 6)
  39880. * DWARF2_ASM_LINE_DEBUG_INFO: SDB and DWARF. (line 49)
  39881. * DWARF2_DEBUGGING_INFO: SDB and DWARF. (line 12)
  39882. * DWARF2_FRAME_INFO: SDB and DWARF. (line 29)
  39883. * DWARF2_FRAME_REG_OUT: Frame Registers. (line 151)
  39884. * DWARF2_UNWIND_INFO: Exception Region Output.
  39885. (line 39)
  39886. * DWARF_ALT_FRAME_RETURN_COLUMN: Frame Layout. (line 148)
  39887. * DWARF_CIE_DATA_ALIGNMENT: Exception Region Output.
  39888. (line 90)
  39889. * DWARF_FRAME_REGISTERS: Frame Registers. (line 109)
  39890. * DWARF_FRAME_REGNUM: Frame Registers. (line 143)
  39891. * DWARF_REG_TO_UNWIND_COLUMN: Frame Registers. (line 134)
  39892. * DWARF_ZERO_REG: Frame Layout. (line 159)
  39893. * DYNAMIC_CHAIN_ADDRESS: Frame Layout. (line 86)
  39894. * 'E' in constraint: Simple Constraints. (line 87)
  39895. * earlyclobber operand: Modifiers. (line 25)
  39896. * edge: Edges. (line 6)
  39897. * edge in the flow graph: Edges. (line 6)
  39898. * edge iterators: Edges. (line 15)
  39899. * edge splitting: Maintaining the CFG.
  39900. (line 104)
  39901. * EDGE_ABNORMAL: Edges. (line 127)
  39902. * EDGE_ABNORMAL, EDGE_ABNORMAL_CALL: Edges. (line 171)
  39903. * EDGE_ABNORMAL, EDGE_EH: Edges. (line 95)
  39904. * EDGE_ABNORMAL, EDGE_SIBCALL: Edges. (line 121)
  39905. * EDGE_FALLTHRU, force_nonfallthru: Edges. (line 85)
  39906. * 'EDOM', implicit usage: Library Calls. (line 59)
  39907. * EH_FRAME_SECTION_NAME: Exception Region Output.
  39908. (line 9)
  39909. * EH_FRAME_THROUGH_COLLECT2: Exception Region Output.
  39910. (line 19)
  39911. * 'eh_return' instruction pattern: Standard Names. (line 1720)
  39912. * EH_RETURN_DATA_REGNO: Exception Handling. (line 6)
  39913. * EH_RETURN_HANDLER_RTX: Exception Handling. (line 38)
  39914. * EH_RETURN_STACKADJ_RTX: Exception Handling. (line 21)
  39915. * EH_TABLES_CAN_BE_READ_ONLY: Exception Region Output.
  39916. (line 29)
  39917. * EH_USES: Function Entry. (line 155)
  39918. * ei_edge: Edges. (line 43)
  39919. * ei_end_p: Edges. (line 27)
  39920. * ei_last: Edges. (line 23)
  39921. * ei_next: Edges. (line 35)
  39922. * ei_one_before_end_p: Edges. (line 31)
  39923. * ei_prev: Edges. (line 39)
  39924. * ei_safe_safe: Edges. (line 47)
  39925. * ei_start: Edges. (line 19)
  39926. * ELIMINABLE_REGS: Elimination. (line 34)
  39927. * ELSE_CLAUSE: Statements for C++. (line 6)
  39928. * Embedded C: Fixed-point fractional library routines.
  39929. (line 6)
  39930. * Empty Statements: Empty Statements. (line 6)
  39931. * EMPTY_CLASS_EXPR: Statements for C++. (line 6)
  39932. * EMPTY_FIELD_BOUNDARY: Storage Layout. (line 331)
  39933. * Emulated TLS: Emulated TLS. (line 6)
  39934. * enabled: Disable Insn Alternatives.
  39935. (line 6)
  39936. * ENDFILE_SPEC: Driver. (line 155)
  39937. * endianness: Portability. (line 20)
  39938. * ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR: Basic Blocks. (line 10)
  39939. * enum reg_class: Register Classes. (line 70)
  39940. * ENUMERAL_TYPE: Types. (line 6)
  39941. * enumerations: Constant Definitions.
  39942. (line 49)
  39943. * epilogue: Function Entry. (line 6)
  39944. * 'epilogue' instruction pattern: Standard Names. (line 1758)
  39945. * EPILOGUE_USES: Function Entry. (line 149)
  39946. * eq: Comparisons. (line 52)
  39947. * 'eq' and attributes: Expressions. (line 83)
  39948. * equal: Comparisons. (line 52)
  39949. * eq_attr: Expressions. (line 104)
  39950. * EQ_EXPR: Unary and Binary Expressions.
  39951. (line 6)
  39952. * 'errno', implicit usage: Library Calls. (line 71)
  39953. * EXACT_DIV_EXPR: Unary and Binary Expressions.
  39954. (line 6)
  39955. * examining SSA_NAMEs: SSA. (line 182)
  39956. * exception handling: Edges. (line 95)
  39957. * exception handling <1>: Exception Handling. (line 6)
  39958. * 'exception_receiver' instruction pattern: Standard Names. (line 1685)
  39959. * exclamation point: Multi-Alternative. (line 48)
  39960. * exclusion_set: Processor pipeline description.
  39961. (line 223)
  39962. * exclusive-or, bitwise: Arithmetic. (line 168)
  39963. * EXIT_EXPR: Unary and Binary Expressions.
  39964. (line 6)
  39965. * EXIT_IGNORE_STACK: Function Entry. (line 137)
  39966. * 'exp10M2' instruction pattern: Standard Names. (line 740)
  39967. * 'exp2M2' instruction pattern: Standard Names. (line 747)
  39968. * expander definitions: Expander Definitions.
  39969. (line 6)
  39970. * 'expm1M2' instruction pattern: Standard Names. (line 730)
  39971. * 'expM2' instruction pattern: Standard Names. (line 723)
  39972. * expression: Expression trees. (line 6)
  39973. * expression codes: RTL Objects. (line 47)
  39974. * EXPR_FILENAME: Working with declarations.
  39975. (line 14)
  39976. * EXPR_LINENO: Working with declarations.
  39977. (line 20)
  39978. * expr_list: Insns. (line 540)
  39979. * EXPR_STMT: Statements for C++. (line 6)
  39980. * EXPR_STMT_EXPR: Statements for C++. (line 6)
  39981. * 'extendMN2' instruction pattern: Standard Names. (line 1146)
  39982. * extensible constraints: Simple Constraints. (line 171)
  39983. * EXTRA_SPECS: Driver. (line 182)
  39984. * 'extv' instruction pattern: Standard Names. (line 1237)
  39985. * 'extvM' instruction pattern: Standard Names. (line 1182)
  39986. * 'extvmisalignM' instruction pattern: Standard Names. (line 1192)
  39987. * 'extzv' instruction pattern: Standard Names. (line 1255)
  39988. * 'extzvM' instruction pattern: Standard Names. (line 1206)
  39989. * 'extzvmisalignM' instruction pattern: Standard Names. (line 1209)
  39990. * 'F' in constraint: Simple Constraints. (line 92)
  39991. * FAIL: Expander Definitions.
  39992. (line 83)
  39993. * fall-thru: Edges. (line 68)
  39994. * FATAL_EXIT_CODE: Host Misc. (line 6)
  39995. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  39996. (line 6)
  39997. * features, optional, in system conventions: Run-time Target.
  39998. (line 59)
  39999. * ffs: Arithmetic. (line 210)
  40000. * 'ffsM2' instruction pattern: Standard Names. (line 894)
  40001. * FIELD_DECL: Declarations. (line 6)
  40002. * files and passes of the compiler: Passes. (line 6)
  40003. * files, generated: Files. (line 6)
  40004. * file_end_indicate_exec_stack: File Framework. (line 39)
  40005. * final_absence_set: Processor pipeline description.
  40006. (line 223)
  40007. * FINAL_PRESCAN_INSN: Instruction Output. (line 60)
  40008. * final_presence_set: Processor pipeline description.
  40009. (line 223)
  40010. * final_sequence: Instruction Output. (line 144)
  40011. * FIND_BASE_TERM: Addressing Modes. (line 117)
  40012. * finite state automaton minimization: Processor pipeline description.
  40013. (line 304)
  40014. * FINI_ARRAY_SECTION_ASM_OP: Sections. (line 113)
  40015. * FINI_SECTION_ASM_OP: Sections. (line 98)
  40016. * FIRST_PARM_OFFSET: Frame Layout. (line 61)
  40017. * 'FIRST_PARM_OFFSET' and virtual registers: Regs and Memory.
  40018. (line 65)
  40019. * FIRST_PSEUDO_REGISTER: Register Basics. (line 8)
  40020. * FIRST_STACK_REG: Stack Registers. (line 26)
  40021. * FIRST_VIRTUAL_REGISTER: Regs and Memory. (line 51)
  40022. * fix: Conversions. (line 66)
  40023. * fixed register: Register Basics. (line 15)
  40024. * fixed-point fractional library: Fixed-point fractional library routines.
  40025. (line 6)
  40026. * FIXED_CONVERT_EXPR: Unary and Binary Expressions.
  40027. (line 6)
  40028. * FIXED_CST: Constant expressions.
  40029. (line 6)
  40030. * FIXED_POINT_TYPE: Types. (line 6)
  40031. * FIXED_REGISTERS: Register Basics. (line 14)
  40032. * fixed_regs: Register Basics. (line 59)
  40033. * 'fixMN2' instruction pattern: Standard Names. (line 1113)
  40034. * 'fixunsMN2' instruction pattern: Standard Names. (line 1122)
  40035. * 'fixuns_truncMN2' instruction pattern: Standard Names. (line 1137)
  40036. * 'fix_truncMN2' instruction pattern: Standard Names. (line 1133)
  40037. * FIX_TRUNC_EXPR: Unary and Binary Expressions.
  40038. (line 6)
  40039. * flags in RTL expression: Flags. (line 6)
  40040. * float: Conversions. (line 58)
  40041. * floating point and cross compilation: Floating Point. (line 6)
  40042. * 'floatMN2' instruction pattern: Standard Names. (line 1105)
  40043. * 'floatunsMN2' instruction pattern: Standard Names. (line 1109)
  40044. * FLOAT_EXPR: Unary and Binary Expressions.
  40045. (line 6)
  40046. * float_extend: Conversions. (line 33)
  40047. * FLOAT_LIB_COMPARE_RETURNS_BOOL: Library Calls. (line 32)
  40048. * FLOAT_STORE_FLAG_VALUE: Misc. (line 307)
  40049. * float_truncate: Conversions. (line 53)
  40050. * FLOAT_TYPE_SIZE: Type Layout. (line 48)
  40051. * FLOAT_WORDS_BIG_ENDIAN: Storage Layout. (line 41)
  40052. * 'FLOAT_WORDS_BIG_ENDIAN', (lack of) effect on 'subreg': Regs and Memory.
  40053. (line 224)
  40054. * 'floorM2' instruction pattern: Standard Names. (line 814)
  40055. * FLOOR_DIV_EXPR: Unary and Binary Expressions.
  40056. (line 6)
  40057. * FLOOR_MOD_EXPR: Unary and Binary Expressions.
  40058. (line 6)
  40059. * flow-insensitive alias analysis: Alias analysis. (line 6)
  40060. * flow-sensitive alias analysis: Alias analysis. (line 6)
  40061. * fma: Arithmetic. (line 112)
  40062. * 'fmaM4' instruction pattern: Standard Names. (line 352)
  40063. * 'fmaxM3' instruction pattern: Standard Names. (line 383)
  40064. * 'fminM3' instruction pattern: Standard Names. (line 383)
  40065. * 'fmodM3' instruction pattern: Standard Names. (line 646)
  40066. * 'fmsM4' instruction pattern: Standard Names. (line 359)
  40067. * 'fnmaM4' instruction pattern: Standard Names. (line 365)
  40068. * 'fnmsM4' instruction pattern: Standard Names. (line 371)
  40069. * FORCE_CODE_SECTION_ALIGN: Sections. (line 149)
  40070. * force_reg: Standard Names. (line 36)
  40071. * FOR_BODY: Statements for C++. (line 6)
  40072. * FOR_COND: Statements for C++. (line 6)
  40073. * FOR_EXPR: Statements for C++. (line 6)
  40074. * FOR_INIT_STMT: Statements for C++. (line 6)
  40075. * FOR_STMT: Statements for C++. (line 6)
  40076. * for_user: GTY Options. (line 82)
  40077. * fractional types: Fixed-point fractional library routines.
  40078. (line 6)
  40079. * 'fractMN2' instruction pattern: Standard Names. (line 1155)
  40080. * 'fractunsMN2' instruction pattern: Standard Names. (line 1170)
  40081. * fract_convert: Conversions. (line 82)
  40082. * FRACT_TYPE_SIZE: Type Layout. (line 67)
  40083. * frame layout: Frame Layout. (line 6)
  40084. * FRAME_ADDR_RTX: Frame Layout. (line 110)
  40085. * FRAME_GROWS_DOWNWARD: Frame Layout. (line 26)
  40086. * 'FRAME_GROWS_DOWNWARD' and virtual registers: Regs and Memory.
  40087. (line 69)
  40088. * FRAME_POINTER_CFA_OFFSET: Frame Layout. (line 208)
  40089. * frame_pointer_needed: Function Entry. (line 34)
  40090. * FRAME_POINTER_REGNUM: Frame Registers. (line 13)
  40091. * 'FRAME_POINTER_REGNUM' and virtual registers: Regs and Memory.
  40092. (line 74)
  40093. * frame_pointer_rtx: Frame Registers. (line 104)
  40094. * frame_related: Flags. (line 229)
  40095. * 'frame_related', in 'insn', 'call_insn', 'jump_insn', 'barrier', and 'set': Flags.
  40096. (line 107)
  40097. * 'frame_related', in 'mem': Flags. (line 85)
  40098. * 'frame_related', in 'reg': Flags. (line 94)
  40099. * 'frame_related', in 'symbol_ref': Flags. (line 165)
  40100. * frequency, count, BB_FREQ_BASE: Profile information.
  40101. (line 30)
  40102. * 'ftruncM2' instruction pattern: Standard Names. (line 1128)
  40103. * function: Functions. (line 6)
  40104. * function <1>: Functions for C++. (line 6)
  40105. * function call conventions: Interface. (line 6)
  40106. * function entry and exit: Function Entry. (line 6)
  40107. * function entry point, alternate function entry point: Edges.
  40108. (line 180)
  40109. * function properties: Function Properties.
  40110. (line 6)
  40111. * function-call insns: Calls. (line 6)
  40112. * functions, leaf: Leaf Functions. (line 6)
  40113. * FUNCTION_ARG_OFFSET: Register Arguments. (line 214)
  40114. * FUNCTION_ARG_PADDING: Register Arguments. (line 221)
  40115. * FUNCTION_ARG_REGNO_P: Register Arguments. (line 269)
  40116. * FUNCTION_BOUNDARY: Storage Layout. (line 176)
  40117. * FUNCTION_DECL: Functions. (line 6)
  40118. * FUNCTION_DECL <1>: Functions for C++. (line 6)
  40119. * FUNCTION_MODE: Misc. (line 362)
  40120. * FUNCTION_PROFILER: Profiling. (line 8)
  40121. * FUNCTION_TYPE: Types. (line 6)
  40122. * FUNCTION_VALUE: Scalar Return. (line 52)
  40123. * FUNCTION_VALUE_REGNO_P: Scalar Return. (line 78)
  40124. * fundamental type: Types. (line 6)
  40125. * 'G' in constraint: Simple Constraints. (line 96)
  40126. * 'g' in constraint: Simple Constraints. (line 118)
  40127. * garbage collector, invocation: Invoking the garbage collector.
  40128. (line 6)
  40129. * garbage collector, troubleshooting: Troubleshooting. (line 6)
  40130. * GCC and portability: Portability. (line 6)
  40131. * GCC_DRIVER_HOST_INITIALIZATION: Host Misc. (line 36)
  40132. * gcov_type: Profile information.
  40133. (line 41)
  40134. * ge: Comparisons. (line 72)
  40135. * 'ge' and attributes: Expressions. (line 83)
  40136. * gencodes: RTL passes. (line 18)
  40137. * general_operand: Machine-Independent Predicates.
  40138. (line 104)
  40139. * GENERAL_REGS: Register Classes. (line 22)
  40140. * generated files: Files. (line 6)
  40141. * generating assembler output: Output Statement. (line 6)
  40142. * generating insns: RTL Template. (line 6)
  40143. * GENERIC: Parsing pass. (line 6)
  40144. * GENERIC <1>: GENERIC. (line 6)
  40145. * generic predicates: Machine-Independent Predicates.
  40146. (line 6)
  40147. * genflags: RTL passes. (line 18)
  40148. * GEN_ERRNO_RTX: Library Calls. (line 71)
  40149. * get_attr: Expressions. (line 99)
  40150. * get_attr_length: Insn Lengths. (line 52)
  40151. * GET_CLASS_NARROWEST_MODE: Machine Modes. (line 345)
  40152. * GET_CODE: RTL Objects. (line 47)
  40153. * get_insns: Insns. (line 34)
  40154. * get_last_insn: Insns. (line 34)
  40155. * GET_MODE: Machine Modes. (line 292)
  40156. * GET_MODE_ALIGNMENT: Machine Modes. (line 332)
  40157. * GET_MODE_BITSIZE: Machine Modes. (line 316)
  40158. * GET_MODE_CLASS: Machine Modes. (line 306)
  40159. * GET_MODE_FBIT: Machine Modes. (line 323)
  40160. * GET_MODE_IBIT: Machine Modes. (line 319)
  40161. * GET_MODE_MASK: Machine Modes. (line 327)
  40162. * GET_MODE_NAME: Machine Modes. (line 303)
  40163. * GET_MODE_NUNITS: Machine Modes. (line 341)
  40164. * GET_MODE_SIZE: Machine Modes. (line 313)
  40165. * GET_MODE_UNIT_SIZE: Machine Modes. (line 335)
  40166. * GET_MODE_WIDER_MODE: Machine Modes. (line 309)
  40167. * GET_RTX_CLASS: RTL Classes. (line 6)
  40168. * GET_RTX_FORMAT: RTL Classes. (line 131)
  40169. * GET_RTX_LENGTH: RTL Classes. (line 128)
  40170. * 'get_thread_pointerMODE' instruction pattern: Standard Names.
  40171. (line 2119)
  40172. * geu: Comparisons. (line 72)
  40173. * 'geu' and attributes: Expressions. (line 83)
  40174. * GE_EXPR: Unary and Binary Expressions.
  40175. (line 6)
  40176. * GGC: Type Information. (line 6)
  40177. * ggc_collect: Invoking the garbage collector.
  40178. (line 6)
  40179. * GIMPLE: Parsing pass. (line 13)
  40180. * GIMPLE <1>: Gimplification pass.
  40181. (line 6)
  40182. * GIMPLE <2>: GIMPLE. (line 6)
  40183. * gimple: Tuple representation.
  40184. (line 14)
  40185. * GIMPLE API: GIMPLE API. (line 6)
  40186. * GIMPLE class hierarchy: Class hierarchy of GIMPLE statements.
  40187. (line 6)
  40188. * GIMPLE Exception Handling: GIMPLE Exception Handling.
  40189. (line 6)
  40190. * GIMPLE instruction set: GIMPLE instruction set.
  40191. (line 6)
  40192. * GIMPLE sequences: GIMPLE sequences. (line 6)
  40193. * GIMPLE statement iterators: Basic Blocks. (line 78)
  40194. * GIMPLE statement iterators <1>: Maintaining the CFG.
  40195. (line 33)
  40196. * gimple_addresses_taken: Manipulating GIMPLE statements.
  40197. (line 89)
  40198. * 'GIMPLE_ASM': 'GIMPLE_ASM'. (line 6)
  40199. * gimple_asm_clobber_op: 'GIMPLE_ASM'. (line 39)
  40200. * gimple_asm_input_op: 'GIMPLE_ASM'. (line 23)
  40201. * gimple_asm_nclobbers: 'GIMPLE_ASM'. (line 20)
  40202. * gimple_asm_ninputs: 'GIMPLE_ASM'. (line 14)
  40203. * gimple_asm_noutputs: 'GIMPLE_ASM'. (line 17)
  40204. * gimple_asm_output_op: 'GIMPLE_ASM'. (line 31)
  40205. * gimple_asm_set_clobber_op: 'GIMPLE_ASM'. (line 43)
  40206. * gimple_asm_set_input_op: 'GIMPLE_ASM'. (line 27)
  40207. * gimple_asm_set_output_op: 'GIMPLE_ASM'. (line 35)
  40208. * gimple_asm_set_volatile: 'GIMPLE_ASM'. (line 54)
  40209. * gimple_asm_string: 'GIMPLE_ASM'. (line 47)
  40210. * gimple_asm_volatile_p: 'GIMPLE_ASM'. (line 51)
  40211. * 'GIMPLE_ASSIGN': 'GIMPLE_ASSIGN'. (line 6)
  40212. * gimple_assign_cast_p: Logical Operators. (line 158)
  40213. * gimple_assign_cast_p <1>: 'GIMPLE_ASSIGN'. (line 104)
  40214. * gimple_assign_lhs: 'GIMPLE_ASSIGN'. (line 62)
  40215. * gimple_assign_lhs_ptr: 'GIMPLE_ASSIGN'. (line 65)
  40216. * gimple_assign_rhs1: 'GIMPLE_ASSIGN'. (line 68)
  40217. * gimple_assign_rhs1_ptr: 'GIMPLE_ASSIGN'. (line 71)
  40218. * gimple_assign_rhs2: 'GIMPLE_ASSIGN'. (line 75)
  40219. * gimple_assign_rhs2_ptr: 'GIMPLE_ASSIGN'. (line 78)
  40220. * gimple_assign_rhs3: 'GIMPLE_ASSIGN'. (line 82)
  40221. * gimple_assign_rhs3_ptr: 'GIMPLE_ASSIGN'. (line 85)
  40222. * gimple_assign_rhs_class: 'GIMPLE_ASSIGN'. (line 56)
  40223. * gimple_assign_rhs_code: 'GIMPLE_ASSIGN'. (line 52)
  40224. * gimple_assign_set_lhs: 'GIMPLE_ASSIGN'. (line 89)
  40225. * gimple_assign_set_rhs1: 'GIMPLE_ASSIGN'. (line 92)
  40226. * gimple_assign_set_rhs2: 'GIMPLE_ASSIGN'. (line 96)
  40227. * gimple_assign_set_rhs3: 'GIMPLE_ASSIGN'. (line 100)
  40228. * gimple_bb: Manipulating GIMPLE statements.
  40229. (line 17)
  40230. * 'GIMPLE_BIND': 'GIMPLE_BIND'. (line 6)
  40231. * gimple_bind_add_seq: 'GIMPLE_BIND'. (line 34)
  40232. * gimple_bind_add_stmt: 'GIMPLE_BIND'. (line 31)
  40233. * gimple_bind_append_vars: 'GIMPLE_BIND'. (line 18)
  40234. * gimple_bind_block: 'GIMPLE_BIND'. (line 39)
  40235. * gimple_bind_body: 'GIMPLE_BIND'. (line 22)
  40236. * gimple_bind_set_block: 'GIMPLE_BIND'. (line 44)
  40237. * gimple_bind_set_body: 'GIMPLE_BIND'. (line 26)
  40238. * gimple_bind_set_vars: 'GIMPLE_BIND'. (line 14)
  40239. * gimple_bind_vars: 'GIMPLE_BIND'. (line 11)
  40240. * gimple_block: Manipulating GIMPLE statements.
  40241. (line 20)
  40242. * gimple_build: GIMPLE API. (line 34)
  40243. * gimple_build <1>: GIMPLE API. (line 36)
  40244. * gimple_build <2>: GIMPLE API. (line 38)
  40245. * gimple_build <3>: GIMPLE API. (line 41)
  40246. * gimple_build <4>: GIMPLE API. (line 44)
  40247. * gimple_build <5>: GIMPLE API. (line 47)
  40248. * gimple_build_nop: 'GIMPLE_NOP'. (line 6)
  40249. * gimple_build_omp_master: 'GIMPLE_OMP_MASTER'.
  40250. (line 6)
  40251. * gimple_build_omp_ordered: 'GIMPLE_OMP_ORDERED'.
  40252. (line 6)
  40253. * gimple_build_omp_return: 'GIMPLE_OMP_RETURN'.
  40254. (line 6)
  40255. * gimple_build_omp_section: 'GIMPLE_OMP_SECTION'.
  40256. (line 6)
  40257. * gimple_build_omp_sections_switch: 'GIMPLE_OMP_SECTIONS'.
  40258. (line 13)
  40259. * gimple_build_wce: 'GIMPLE_WITH_CLEANUP_EXPR'.
  40260. (line 6)
  40261. * 'GIMPLE_CALL': 'GIMPLE_CALL'. (line 6)
  40262. * gimple_call_arg: 'GIMPLE_CALL'. (line 65)
  40263. * gimple_call_arg_ptr: 'GIMPLE_CALL'. (line 69)
  40264. * gimple_call_chain: 'GIMPLE_CALL'. (line 56)
  40265. * gimple_call_copy_skip_args: 'GIMPLE_CALL'. (line 90)
  40266. * gimple_call_fn: 'GIMPLE_CALL'. (line 37)
  40267. * gimple_call_fndecl: 'GIMPLE_CALL'. (line 45)
  40268. * gimple_call_lhs: 'GIMPLE_CALL'. (line 28)
  40269. * gimple_call_lhs_ptr: 'GIMPLE_CALL'. (line 31)
  40270. * gimple_call_noreturn_p: 'GIMPLE_CALL'. (line 87)
  40271. * gimple_call_num_args: 'GIMPLE_CALL'. (line 62)
  40272. * gimple_call_return_type: 'GIMPLE_CALL'. (line 53)
  40273. * gimple_call_set_arg: 'GIMPLE_CALL'. (line 74)
  40274. * gimple_call_set_chain: 'GIMPLE_CALL'. (line 59)
  40275. * gimple_call_set_fn: 'GIMPLE_CALL'. (line 41)
  40276. * gimple_call_set_fndecl: 'GIMPLE_CALL'. (line 50)
  40277. * gimple_call_set_lhs: 'GIMPLE_CALL'. (line 34)
  40278. * gimple_call_set_tail: 'GIMPLE_CALL'. (line 79)
  40279. * gimple_call_tail_p: 'GIMPLE_CALL'. (line 84)
  40280. * 'GIMPLE_CATCH': 'GIMPLE_CATCH'. (line 6)
  40281. * gimple_catch_handler: 'GIMPLE_CATCH'. (line 19)
  40282. * gimple_catch_set_handler: 'GIMPLE_CATCH'. (line 26)
  40283. * gimple_catch_set_types: 'GIMPLE_CATCH'. (line 23)
  40284. * gimple_catch_types: 'GIMPLE_CATCH'. (line 12)
  40285. * gimple_catch_types_ptr: 'GIMPLE_CATCH'. (line 15)
  40286. * gimple_code: Manipulating GIMPLE statements.
  40287. (line 14)
  40288. * 'GIMPLE_COND': 'GIMPLE_COND'. (line 6)
  40289. * gimple_cond_code: 'GIMPLE_COND'. (line 20)
  40290. * gimple_cond_false_label: 'GIMPLE_COND'. (line 59)
  40291. * gimple_cond_lhs: 'GIMPLE_COND'. (line 29)
  40292. * gimple_cond_make_false: 'GIMPLE_COND'. (line 63)
  40293. * gimple_cond_make_true: 'GIMPLE_COND'. (line 66)
  40294. * gimple_cond_rhs: 'GIMPLE_COND'. (line 37)
  40295. * gimple_cond_set_code: 'GIMPLE_COND'. (line 24)
  40296. * gimple_cond_set_false_label: 'GIMPLE_COND'. (line 54)
  40297. * gimple_cond_set_lhs: 'GIMPLE_COND'. (line 33)
  40298. * gimple_cond_set_rhs: 'GIMPLE_COND'. (line 41)
  40299. * gimple_cond_set_true_label: 'GIMPLE_COND'. (line 49)
  40300. * gimple_cond_true_label: 'GIMPLE_COND'. (line 45)
  40301. * gimple_convert: GIMPLE API. (line 50)
  40302. * gimple_copy: Manipulating GIMPLE statements.
  40303. (line 146)
  40304. * 'GIMPLE_DEBUG': 'GIMPLE_DEBUG'. (line 6)
  40305. * 'GIMPLE_DEBUG_BIND': 'GIMPLE_DEBUG'. (line 6)
  40306. * gimple_debug_bind_get_value: 'GIMPLE_DEBUG'. (line 46)
  40307. * gimple_debug_bind_get_value_ptr: 'GIMPLE_DEBUG'. (line 50)
  40308. * gimple_debug_bind_get_var: 'GIMPLE_DEBUG'. (line 43)
  40309. * gimple_debug_bind_has_value_p: 'GIMPLE_DEBUG'. (line 68)
  40310. * gimple_debug_bind_p: Logical Operators. (line 162)
  40311. * gimple_debug_bind_reset_value: 'GIMPLE_DEBUG'. (line 64)
  40312. * gimple_debug_bind_set_value: 'GIMPLE_DEBUG'. (line 59)
  40313. * gimple_debug_bind_set_var: 'GIMPLE_DEBUG'. (line 55)
  40314. * gimple_def_ops: Manipulating GIMPLE statements.
  40315. (line 93)
  40316. * 'GIMPLE_EH_FILTER': 'GIMPLE_EH_FILTER'. (line 6)
  40317. * gimple_eh_filter_failure: 'GIMPLE_EH_FILTER'. (line 18)
  40318. * gimple_eh_filter_set_failure: 'GIMPLE_EH_FILTER'. (line 27)
  40319. * gimple_eh_filter_set_types: 'GIMPLE_EH_FILTER'. (line 22)
  40320. * gimple_eh_filter_types: 'GIMPLE_EH_FILTER'. (line 11)
  40321. * gimple_eh_filter_types_ptr: 'GIMPLE_EH_FILTER'. (line 14)
  40322. * gimple_eh_must_not_throw_fndecl: 'GIMPLE_EH_FILTER'. (line 32)
  40323. * gimple_eh_must_not_throw_set_fndecl: 'GIMPLE_EH_FILTER'. (line 36)
  40324. * gimple_expr_code: Manipulating GIMPLE statements.
  40325. (line 30)
  40326. * gimple_expr_type: Manipulating GIMPLE statements.
  40327. (line 23)
  40328. * 'GIMPLE_GOTO': 'GIMPLE_GOTO'. (line 6)
  40329. * gimple_goto_dest: 'GIMPLE_GOTO'. (line 9)
  40330. * gimple_goto_set_dest: 'GIMPLE_GOTO'. (line 12)
  40331. * gimple_has_mem_ops: Manipulating GIMPLE statements.
  40332. (line 71)
  40333. * gimple_has_ops: Manipulating GIMPLE statements.
  40334. (line 68)
  40335. * gimple_has_volatile_ops: Manipulating GIMPLE statements.
  40336. (line 133)
  40337. * 'GIMPLE_LABEL': 'GIMPLE_LABEL'. (line 6)
  40338. * gimple_label_label: 'GIMPLE_LABEL'. (line 10)
  40339. * gimple_label_set_label: 'GIMPLE_LABEL'. (line 13)
  40340. * gimple_loaded_syms: Manipulating GIMPLE statements.
  40341. (line 121)
  40342. * gimple_locus: Manipulating GIMPLE statements.
  40343. (line 41)
  40344. * gimple_locus_empty_p: Manipulating GIMPLE statements.
  40345. (line 47)
  40346. * gimple_modified_p: Manipulating GIMPLE statements.
  40347. (line 129)
  40348. * 'GIMPLE_NOP': 'GIMPLE_NOP'. (line 6)
  40349. * gimple_nop_p: 'GIMPLE_NOP'. (line 9)
  40350. * gimple_no_warning_p: Manipulating GIMPLE statements.
  40351. (line 50)
  40352. * gimple_num_ops: Logical Operators. (line 76)
  40353. * gimple_num_ops <1>: Manipulating GIMPLE statements.
  40354. (line 74)
  40355. * 'GIMPLE_OMP_ATOMIC_LOAD': 'GIMPLE_OMP_ATOMIC_LOAD'.
  40356. (line 6)
  40357. * gimple_omp_atomic_load_lhs: 'GIMPLE_OMP_ATOMIC_LOAD'.
  40358. (line 16)
  40359. * gimple_omp_atomic_load_rhs: 'GIMPLE_OMP_ATOMIC_LOAD'.
  40360. (line 24)
  40361. * gimple_omp_atomic_load_set_lhs: 'GIMPLE_OMP_ATOMIC_LOAD'.
  40362. (line 12)
  40363. * gimple_omp_atomic_load_set_rhs: 'GIMPLE_OMP_ATOMIC_LOAD'.
  40364. (line 20)
  40365. * 'GIMPLE_OMP_ATOMIC_STORE': 'GIMPLE_OMP_ATOMIC_STORE'.
  40366. (line 6)
  40367. * gimple_omp_atomic_store_set_val: 'GIMPLE_OMP_ATOMIC_STORE'.
  40368. (line 11)
  40369. * gimple_omp_atomic_store_val: 'GIMPLE_OMP_ATOMIC_STORE'.
  40370. (line 15)
  40371. * gimple_omp_body: 'GIMPLE_OMP_PARALLEL'.
  40372. (line 23)
  40373. * 'GIMPLE_OMP_CONTINUE': 'GIMPLE_OMP_CONTINUE'.
  40374. (line 6)
  40375. * gimple_omp_continue_control_def: 'GIMPLE_OMP_CONTINUE'.
  40376. (line 12)
  40377. * gimple_omp_continue_control_def_ptr: 'GIMPLE_OMP_CONTINUE'.
  40378. (line 17)
  40379. * gimple_omp_continue_control_use: 'GIMPLE_OMP_CONTINUE'.
  40380. (line 26)
  40381. * gimple_omp_continue_control_use_ptr: 'GIMPLE_OMP_CONTINUE'.
  40382. (line 31)
  40383. * gimple_omp_continue_set_control_def: 'GIMPLE_OMP_CONTINUE'.
  40384. (line 21)
  40385. * gimple_omp_continue_set_control_use: 'GIMPLE_OMP_CONTINUE'.
  40386. (line 35)
  40387. * 'GIMPLE_OMP_CRITICAL': 'GIMPLE_OMP_CRITICAL'.
  40388. (line 6)
  40389. * gimple_omp_critical_name: 'GIMPLE_OMP_CRITICAL'.
  40390. (line 12)
  40391. * gimple_omp_critical_name_ptr: 'GIMPLE_OMP_CRITICAL'.
  40392. (line 16)
  40393. * gimple_omp_critical_set_name: 'GIMPLE_OMP_CRITICAL'.
  40394. (line 21)
  40395. * 'GIMPLE_OMP_FOR': 'GIMPLE_OMP_FOR'. (line 6)
  40396. * gimple_omp_for_clauses: 'GIMPLE_OMP_FOR'. (line 17)
  40397. * gimple_omp_for_clauses_ptr: 'GIMPLE_OMP_FOR'. (line 20)
  40398. * gimple_omp_for_cond: 'GIMPLE_OMP_FOR'. (line 80)
  40399. * gimple_omp_for_final: 'GIMPLE_OMP_FOR'. (line 48)
  40400. * gimple_omp_for_final_ptr: 'GIMPLE_OMP_FOR'. (line 51)
  40401. * gimple_omp_for_incr: 'GIMPLE_OMP_FOR'. (line 58)
  40402. * gimple_omp_for_incr_ptr: 'GIMPLE_OMP_FOR'. (line 61)
  40403. * gimple_omp_for_index: 'GIMPLE_OMP_FOR'. (line 28)
  40404. * gimple_omp_for_index_ptr: 'GIMPLE_OMP_FOR'. (line 31)
  40405. * gimple_omp_for_initial: 'GIMPLE_OMP_FOR'. (line 38)
  40406. * gimple_omp_for_initial_ptr: 'GIMPLE_OMP_FOR'. (line 41)
  40407. * gimple_omp_for_pre_body: 'GIMPLE_OMP_FOR'. (line 67)
  40408. * gimple_omp_for_set_clauses: 'GIMPLE_OMP_FOR'. (line 23)
  40409. * gimple_omp_for_set_cond: 'GIMPLE_OMP_FOR'. (line 76)
  40410. * gimple_omp_for_set_final: 'GIMPLE_OMP_FOR'. (line 54)
  40411. * gimple_omp_for_set_incr: 'GIMPLE_OMP_FOR'. (line 64)
  40412. * gimple_omp_for_set_index: 'GIMPLE_OMP_FOR'. (line 34)
  40413. * gimple_omp_for_set_initial: 'GIMPLE_OMP_FOR'. (line 44)
  40414. * gimple_omp_for_set_pre_body: 'GIMPLE_OMP_FOR'. (line 71)
  40415. * 'GIMPLE_OMP_MASTER': 'GIMPLE_OMP_MASTER'.
  40416. (line 6)
  40417. * 'GIMPLE_OMP_ORDERED': 'GIMPLE_OMP_ORDERED'.
  40418. (line 6)
  40419. * 'GIMPLE_OMP_PARALLEL': 'GIMPLE_OMP_PARALLEL'.
  40420. (line 6)
  40421. * gimple_omp_parallel_child_fn: 'GIMPLE_OMP_PARALLEL'.
  40422. (line 42)
  40423. * gimple_omp_parallel_child_fn_ptr: 'GIMPLE_OMP_PARALLEL'.
  40424. (line 47)
  40425. * gimple_omp_parallel_clauses: 'GIMPLE_OMP_PARALLEL'.
  40426. (line 30)
  40427. * gimple_omp_parallel_clauses_ptr: 'GIMPLE_OMP_PARALLEL'.
  40428. (line 33)
  40429. * gimple_omp_parallel_combined_p: 'GIMPLE_OMP_PARALLEL'.
  40430. (line 15)
  40431. * gimple_omp_parallel_data_arg: 'GIMPLE_OMP_PARALLEL'.
  40432. (line 56)
  40433. * gimple_omp_parallel_data_arg_ptr: 'GIMPLE_OMP_PARALLEL'.
  40434. (line 61)
  40435. * gimple_omp_parallel_set_child_fn: 'GIMPLE_OMP_PARALLEL'.
  40436. (line 52)
  40437. * gimple_omp_parallel_set_clauses: 'GIMPLE_OMP_PARALLEL'.
  40438. (line 37)
  40439. * gimple_omp_parallel_set_combined_p: 'GIMPLE_OMP_PARALLEL'.
  40440. (line 19)
  40441. * gimple_omp_parallel_set_data_arg: 'GIMPLE_OMP_PARALLEL'.
  40442. (line 65)
  40443. * 'GIMPLE_OMP_RETURN': 'GIMPLE_OMP_RETURN'.
  40444. (line 6)
  40445. * gimple_omp_return_nowait_p: 'GIMPLE_OMP_RETURN'.
  40446. (line 13)
  40447. * gimple_omp_return_set_nowait: 'GIMPLE_OMP_RETURN'.
  40448. (line 10)
  40449. * 'GIMPLE_OMP_SECTION': 'GIMPLE_OMP_SECTION'.
  40450. (line 6)
  40451. * 'GIMPLE_OMP_SECTIONS': 'GIMPLE_OMP_SECTIONS'.
  40452. (line 6)
  40453. * gimple_omp_sections_clauses: 'GIMPLE_OMP_SECTIONS'.
  40454. (line 29)
  40455. * gimple_omp_sections_clauses_ptr: 'GIMPLE_OMP_SECTIONS'.
  40456. (line 32)
  40457. * gimple_omp_sections_control: 'GIMPLE_OMP_SECTIONS'.
  40458. (line 16)
  40459. * gimple_omp_sections_control_ptr: 'GIMPLE_OMP_SECTIONS'.
  40460. (line 20)
  40461. * gimple_omp_sections_set_clauses: 'GIMPLE_OMP_SECTIONS'.
  40462. (line 35)
  40463. * gimple_omp_sections_set_control: 'GIMPLE_OMP_SECTIONS'.
  40464. (line 24)
  40465. * gimple_omp_section_last_p: 'GIMPLE_OMP_SECTION'.
  40466. (line 11)
  40467. * gimple_omp_section_set_last: 'GIMPLE_OMP_SECTION'.
  40468. (line 15)
  40469. * gimple_omp_set_body: 'GIMPLE_OMP_PARALLEL'.
  40470. (line 26)
  40471. * 'GIMPLE_OMP_SINGLE': 'GIMPLE_OMP_SINGLE'.
  40472. (line 6)
  40473. * gimple_omp_single_clauses: 'GIMPLE_OMP_SINGLE'.
  40474. (line 13)
  40475. * gimple_omp_single_clauses_ptr: 'GIMPLE_OMP_SINGLE'.
  40476. (line 16)
  40477. * gimple_omp_single_set_clauses: 'GIMPLE_OMP_SINGLE'.
  40478. (line 19)
  40479. * gimple_op: Logical Operators. (line 79)
  40480. * gimple_op <1>: Manipulating GIMPLE statements.
  40481. (line 80)
  40482. * gimple_ops: Logical Operators. (line 82)
  40483. * gimple_ops <1>: Manipulating GIMPLE statements.
  40484. (line 77)
  40485. * gimple_op_ptr: Manipulating GIMPLE statements.
  40486. (line 83)
  40487. * 'GIMPLE_PHI': 'GIMPLE_PHI'. (line 6)
  40488. * gimple_phi_arg: 'GIMPLE_PHI'. (line 24)
  40489. * gimple_phi_arg <1>: SSA. (line 62)
  40490. * gimple_phi_arg_def: SSA. (line 68)
  40491. * gimple_phi_arg_edge: SSA. (line 65)
  40492. * gimple_phi_capacity: 'GIMPLE_PHI'. (line 6)
  40493. * gimple_phi_num_args: 'GIMPLE_PHI'. (line 10)
  40494. * gimple_phi_num_args <1>: SSA. (line 58)
  40495. * gimple_phi_result: 'GIMPLE_PHI'. (line 15)
  40496. * gimple_phi_result <1>: SSA. (line 55)
  40497. * gimple_phi_result_ptr: 'GIMPLE_PHI'. (line 18)
  40498. * gimple_phi_set_arg: 'GIMPLE_PHI'. (line 28)
  40499. * gimple_phi_set_result: 'GIMPLE_PHI'. (line 21)
  40500. * gimple_plf: Manipulating GIMPLE statements.
  40501. (line 64)
  40502. * 'GIMPLE_RESX': 'GIMPLE_RESX'. (line 6)
  40503. * gimple_resx_region: 'GIMPLE_RESX'. (line 12)
  40504. * gimple_resx_set_region: 'GIMPLE_RESX'. (line 15)
  40505. * 'GIMPLE_RETURN': 'GIMPLE_RETURN'. (line 6)
  40506. * gimple_return_retval: 'GIMPLE_RETURN'. (line 9)
  40507. * gimple_return_set_retval: 'GIMPLE_RETURN'. (line 12)
  40508. * gimple_seq_add_seq: GIMPLE sequences. (line 30)
  40509. * gimple_seq_add_stmt: GIMPLE sequences. (line 24)
  40510. * gimple_seq_alloc: GIMPLE sequences. (line 61)
  40511. * gimple_seq_copy: GIMPLE sequences. (line 65)
  40512. * gimple_seq_deep_copy: GIMPLE sequences. (line 36)
  40513. * gimple_seq_empty_p: GIMPLE sequences. (line 69)
  40514. * gimple_seq_first: GIMPLE sequences. (line 43)
  40515. * gimple_seq_init: GIMPLE sequences. (line 58)
  40516. * gimple_seq_last: GIMPLE sequences. (line 46)
  40517. * gimple_seq_reverse: GIMPLE sequences. (line 39)
  40518. * gimple_seq_set_first: GIMPLE sequences. (line 53)
  40519. * gimple_seq_set_last: GIMPLE sequences. (line 49)
  40520. * gimple_seq_singleton_p: GIMPLE sequences. (line 78)
  40521. * gimple_set_block: Manipulating GIMPLE statements.
  40522. (line 38)
  40523. * gimple_set_def_ops: Manipulating GIMPLE statements.
  40524. (line 96)
  40525. * gimple_set_has_volatile_ops: Manipulating GIMPLE statements.
  40526. (line 136)
  40527. * gimple_set_locus: Manipulating GIMPLE statements.
  40528. (line 44)
  40529. * gimple_set_op: Manipulating GIMPLE statements.
  40530. (line 86)
  40531. * gimple_set_plf: Manipulating GIMPLE statements.
  40532. (line 60)
  40533. * gimple_set_use_ops: Manipulating GIMPLE statements.
  40534. (line 103)
  40535. * gimple_set_vdef_ops: Manipulating GIMPLE statements.
  40536. (line 117)
  40537. * gimple_set_visited: Manipulating GIMPLE statements.
  40538. (line 53)
  40539. * gimple_set_vuse_ops: Manipulating GIMPLE statements.
  40540. (line 110)
  40541. * gimple_simplify: GIMPLE API. (line 6)
  40542. * gimple_simplify <1>: GIMPLE API. (line 8)
  40543. * gimple_simplify <2>: GIMPLE API. (line 10)
  40544. * gimple_simplify <3>: GIMPLE API. (line 12)
  40545. * gimple_simplify <4>: GIMPLE API. (line 14)
  40546. * gimple_simplify <5>: GIMPLE API. (line 16)
  40547. * gimple_statement_with_ops: Tuple representation.
  40548. (line 96)
  40549. * gimple_stored_syms: Manipulating GIMPLE statements.
  40550. (line 125)
  40551. * 'GIMPLE_SWITCH': 'GIMPLE_SWITCH'. (line 6)
  40552. * gimple_switch_default_label: 'GIMPLE_SWITCH'. (line 41)
  40553. * gimple_switch_index: 'GIMPLE_SWITCH'. (line 24)
  40554. * gimple_switch_label: 'GIMPLE_SWITCH'. (line 31)
  40555. * gimple_switch_num_labels: 'GIMPLE_SWITCH'. (line 14)
  40556. * gimple_switch_set_default_label: 'GIMPLE_SWITCH'. (line 45)
  40557. * gimple_switch_set_index: 'GIMPLE_SWITCH'. (line 27)
  40558. * gimple_switch_set_label: 'GIMPLE_SWITCH'. (line 36)
  40559. * gimple_switch_set_num_labels: 'GIMPLE_SWITCH'. (line 19)
  40560. * 'GIMPLE_TRY': 'GIMPLE_TRY'. (line 6)
  40561. * gimple_try_catch_is_cleanup: 'GIMPLE_TRY'. (line 19)
  40562. * gimple_try_cleanup: 'GIMPLE_TRY'. (line 26)
  40563. * gimple_try_eval: 'GIMPLE_TRY'. (line 22)
  40564. * gimple_try_kind: 'GIMPLE_TRY'. (line 15)
  40565. * gimple_try_set_catch_is_cleanup: 'GIMPLE_TRY'. (line 30)
  40566. * gimple_try_set_cleanup: 'GIMPLE_TRY'. (line 38)
  40567. * gimple_try_set_eval: 'GIMPLE_TRY'. (line 34)
  40568. * gimple_use_ops: Manipulating GIMPLE statements.
  40569. (line 100)
  40570. * gimple_vdef_ops: Manipulating GIMPLE statements.
  40571. (line 114)
  40572. * gimple_visited_p: Manipulating GIMPLE statements.
  40573. (line 57)
  40574. * gimple_vuse_ops: Manipulating GIMPLE statements.
  40575. (line 107)
  40576. * gimple_wce_cleanup: 'GIMPLE_WITH_CLEANUP_EXPR'.
  40577. (line 10)
  40578. * gimple_wce_cleanup_eh_only: 'GIMPLE_WITH_CLEANUP_EXPR'.
  40579. (line 17)
  40580. * gimple_wce_set_cleanup: 'GIMPLE_WITH_CLEANUP_EXPR'.
  40581. (line 13)
  40582. * gimple_wce_set_cleanup_eh_only: 'GIMPLE_WITH_CLEANUP_EXPR'.
  40583. (line 20)
  40584. * 'GIMPLE_WITH_CLEANUP_EXPR': 'GIMPLE_WITH_CLEANUP_EXPR'.
  40585. (line 6)
  40586. * gimplification: Parsing pass. (line 13)
  40587. * gimplification <1>: Gimplification pass.
  40588. (line 6)
  40589. * gimplifier: Parsing pass. (line 13)
  40590. * gimplify_assign: 'GIMPLE_ASSIGN'. (line 41)
  40591. * gimplify_expr: Gimplification pass.
  40592. (line 18)
  40593. * gimplify_function_tree: Gimplification pass.
  40594. (line 18)
  40595. * GLOBAL_INIT_PRIORITY: Functions for C++. (line 141)
  40596. * global_regs: Register Basics. (line 59)
  40597. * 'GO_IF_LEGITIMATE_ADDRESS': Addressing Modes. (line 90)
  40598. * greater than: Comparisons. (line 60)
  40599. * greater than <1>: Comparisons. (line 64)
  40600. * greater than <2>: Comparisons. (line 72)
  40601. * gsi_after_labels: Sequence iterators. (line 74)
  40602. * gsi_bb: Sequence iterators. (line 82)
  40603. * gsi_commit_edge_inserts: Sequence iterators. (line 193)
  40604. * gsi_commit_edge_inserts <1>: Maintaining the CFG.
  40605. (line 104)
  40606. * gsi_commit_one_edge_insert: Sequence iterators. (line 188)
  40607. * gsi_end_p: Sequence iterators. (line 59)
  40608. * gsi_end_p <1>: Maintaining the CFG.
  40609. (line 48)
  40610. * gsi_for_stmt: Sequence iterators. (line 156)
  40611. * gsi_insert_after: Sequence iterators. (line 145)
  40612. * gsi_insert_after <1>: Maintaining the CFG.
  40613. (line 60)
  40614. * gsi_insert_before: Sequence iterators. (line 134)
  40615. * gsi_insert_before <1>: Maintaining the CFG.
  40616. (line 66)
  40617. * gsi_insert_on_edge: Sequence iterators. (line 173)
  40618. * gsi_insert_on_edge <1>: Maintaining the CFG.
  40619. (line 104)
  40620. * gsi_insert_on_edge_immediate: Sequence iterators. (line 183)
  40621. * gsi_insert_seq_after: Sequence iterators. (line 152)
  40622. * gsi_insert_seq_before: Sequence iterators. (line 141)
  40623. * gsi_insert_seq_on_edge: Sequence iterators. (line 177)
  40624. * gsi_last: Sequence iterators. (line 49)
  40625. * gsi_last <1>: Maintaining the CFG.
  40626. (line 44)
  40627. * gsi_last_bb: Sequence iterators. (line 55)
  40628. * gsi_link_after: Sequence iterators. (line 113)
  40629. * gsi_link_before: Sequence iterators. (line 103)
  40630. * gsi_link_seq_after: Sequence iterators. (line 108)
  40631. * gsi_link_seq_before: Sequence iterators. (line 97)
  40632. * gsi_move_after: Sequence iterators. (line 159)
  40633. * gsi_move_before: Sequence iterators. (line 164)
  40634. * gsi_move_to_bb_end: Sequence iterators. (line 169)
  40635. * gsi_next: Sequence iterators. (line 65)
  40636. * gsi_next <1>: Maintaining the CFG.
  40637. (line 52)
  40638. * gsi_one_before_end_p: Sequence iterators. (line 62)
  40639. * gsi_prev: Sequence iterators. (line 68)
  40640. * gsi_prev <1>: Maintaining the CFG.
  40641. (line 56)
  40642. * gsi_remove: Sequence iterators. (line 88)
  40643. * gsi_remove <1>: Maintaining the CFG.
  40644. (line 72)
  40645. * gsi_replace: Sequence iterators. (line 128)
  40646. * gsi_seq: Sequence iterators. (line 85)
  40647. * gsi_split_seq_after: Sequence iterators. (line 118)
  40648. * gsi_split_seq_before: Sequence iterators. (line 123)
  40649. * gsi_start: Sequence iterators. (line 39)
  40650. * gsi_start <1>: Maintaining the CFG.
  40651. (line 40)
  40652. * gsi_start_bb: Sequence iterators. (line 45)
  40653. * gsi_stmt: Sequence iterators. (line 71)
  40654. * gsi_stmt_ptr: Sequence iterators. (line 79)
  40655. * gt: Comparisons. (line 60)
  40656. * 'gt' and attributes: Expressions. (line 83)
  40657. * gtu: Comparisons. (line 64)
  40658. * 'gtu' and attributes: Expressions. (line 83)
  40659. * GTY: Type Information. (line 6)
  40660. * GT_EXPR: Unary and Binary Expressions.
  40661. (line 6)
  40662. * 'H' in constraint: Simple Constraints. (line 96)
  40663. * HAmode: Machine Modes. (line 146)
  40664. * HANDLER: Statements for C++. (line 6)
  40665. * HANDLER_BODY: Statements for C++. (line 6)
  40666. * HANDLER_PARMS: Statements for C++. (line 6)
  40667. * HANDLE_PRAGMA_PACK_WITH_EXPANSION: Misc. (line 463)
  40668. * hard registers: Regs and Memory. (line 9)
  40669. * HARD_FRAME_POINTER_IS_ARG_POINTER: Frame Registers. (line 57)
  40670. * HARD_FRAME_POINTER_IS_FRAME_POINTER: Frame Registers. (line 50)
  40671. * HARD_FRAME_POINTER_REGNUM: Frame Registers. (line 19)
  40672. * HARD_REGNO_CALLER_SAVE_MODE: Caller Saves. (line 10)
  40673. * HARD_REGNO_CALL_PART_CLOBBERED: Register Basics. (line 52)
  40674. * HARD_REGNO_MODE_OK: Values in Registers.
  40675. (line 57)
  40676. * HARD_REGNO_NREGS: Values in Registers.
  40677. (line 10)
  40678. * HARD_REGNO_NREGS_HAS_PADDING: Values in Registers.
  40679. (line 24)
  40680. * HARD_REGNO_NREGS_WITH_PADDING: Values in Registers.
  40681. (line 42)
  40682. * HARD_REGNO_RENAME_OK: Values in Registers.
  40683. (line 117)
  40684. * HAS_INIT_SECTION: Macros for Initialization.
  40685. (line 18)
  40686. * HAS_LONG_COND_BRANCH: Misc. (line 8)
  40687. * HAS_LONG_UNCOND_BRANCH: Misc. (line 17)
  40688. * HAVE_DOS_BASED_FILE_SYSTEM: Filesystem. (line 11)
  40689. * HAVE_POST_DECREMENT: Addressing Modes. (line 11)
  40690. * HAVE_POST_INCREMENT: Addressing Modes. (line 10)
  40691. * HAVE_POST_MODIFY_DISP: Addressing Modes. (line 17)
  40692. * HAVE_POST_MODIFY_REG: Addressing Modes. (line 23)
  40693. * HAVE_PRE_DECREMENT: Addressing Modes. (line 9)
  40694. * HAVE_PRE_INCREMENT: Addressing Modes. (line 8)
  40695. * HAVE_PRE_MODIFY_DISP: Addressing Modes. (line 16)
  40696. * HAVE_PRE_MODIFY_REG: Addressing Modes. (line 22)
  40697. * HCmode: Machine Modes. (line 199)
  40698. * HFmode: Machine Modes. (line 61)
  40699. * high: Constants. (line 150)
  40700. * HImode: Machine Modes. (line 29)
  40701. * 'HImode', in 'insn': Insns. (line 268)
  40702. * HONOR_REG_ALLOC_ORDER: Allocation Order. (line 36)
  40703. * host configuration: Host Config. (line 6)
  40704. * host functions: Host Common. (line 6)
  40705. * host hooks: Host Common. (line 6)
  40706. * host makefile fragment: Host Fragment. (line 6)
  40707. * HOST_BIT_BUCKET: Filesystem. (line 51)
  40708. * HOST_EXECUTABLE_SUFFIX: Filesystem. (line 45)
  40709. * HOST_HOOKS_EXTRA_SIGNALS: Host Common. (line 11)
  40710. * HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY: Host Common. (line 43)
  40711. * HOST_HOOKS_GT_PCH_GET_ADDRESS: Host Common. (line 15)
  40712. * HOST_HOOKS_GT_PCH_USE_ADDRESS: Host Common. (line 24)
  40713. * HOST_LACKS_INODE_NUMBERS: Filesystem. (line 89)
  40714. * HOST_LONG_FORMAT: Host Misc. (line 45)
  40715. * HOST_LONG_LONG_FORMAT: Host Misc. (line 41)
  40716. * HOST_OBJECT_SUFFIX: Filesystem. (line 40)
  40717. * HOST_PTR_PRINTF: Host Misc. (line 49)
  40718. * HOT_TEXT_SECTION_NAME: Sections. (line 42)
  40719. * HQmode: Machine Modes. (line 110)
  40720. * 'i' in constraint: Simple Constraints. (line 68)
  40721. * 'I' in constraint: Simple Constraints. (line 79)
  40722. * identifier: Identifiers. (line 6)
  40723. * IDENTIFIER_LENGTH: Identifiers. (line 22)
  40724. * IDENTIFIER_NODE: Identifiers. (line 6)
  40725. * IDENTIFIER_OPNAME_P: Identifiers. (line 27)
  40726. * IDENTIFIER_POINTER: Identifiers. (line 17)
  40727. * IDENTIFIER_TYPENAME_P: Identifiers. (line 33)
  40728. * IEEE 754-2008: Decimal float library routines.
  40729. (line 6)
  40730. * IFCVT_MACHDEP_INIT: Misc. (line 589)
  40731. * IFCVT_MODIFY_CANCEL: Misc. (line 583)
  40732. * IFCVT_MODIFY_FINAL: Misc. (line 577)
  40733. * IFCVT_MODIFY_INSN: Misc. (line 571)
  40734. * IFCVT_MODIFY_MULTIPLE_TESTS: Misc. (line 563)
  40735. * IFCVT_MODIFY_TESTS: Misc. (line 553)
  40736. * IF_COND: Statements for C++. (line 6)
  40737. * IF_STMT: Statements for C++. (line 6)
  40738. * if_then_else: Comparisons. (line 80)
  40739. * 'if_then_else' and attributes: Expressions. (line 32)
  40740. * 'if_then_else' usage: Side Effects. (line 56)
  40741. * IMAGPART_EXPR: Unary and Binary Expressions.
  40742. (line 6)
  40743. * Immediate Uses: SSA Operands. (line 258)
  40744. * immediate_operand: Machine-Independent Predicates.
  40745. (line 10)
  40746. * IMMEDIATE_PREFIX: Instruction Output. (line 153)
  40747. * include: Including Patterns. (line 6)
  40748. * INCLUDE_DEFAULTS: Driver. (line 331)
  40749. * inclusive-or, bitwise: Arithmetic. (line 163)
  40750. * INCOMING_FRAME_SP_OFFSET: Frame Layout. (line 179)
  40751. * INCOMING_REGNO: Register Basics. (line 86)
  40752. * INCOMING_REG_PARM_STACK_SPACE: Stack Arguments. (line 73)
  40753. * INCOMING_RETURN_ADDR_RTX: Frame Layout. (line 135)
  40754. * INCOMING_STACK_BOUNDARY: Storage Layout. (line 171)
  40755. * INDEX_REG_CLASS: Register Classes. (line 140)
  40756. * 'indirect_jump' instruction pattern: Standard Names. (line 1476)
  40757. * indirect_operand: Machine-Independent Predicates.
  40758. (line 70)
  40759. * INDIRECT_REF: Storage References. (line 6)
  40760. * initialization routines: Initialization. (line 6)
  40761. * INITIAL_ELIMINATION_OFFSET: Elimination. (line 68)
  40762. * INITIAL_FRAME_ADDRESS_RTX: Frame Layout. (line 77)
  40763. * INIT_ARRAY_SECTION_ASM_OP: Sections. (line 106)
  40764. * INIT_CUMULATIVE_ARGS: Register Arguments. (line 165)
  40765. * INIT_CUMULATIVE_INCOMING_ARGS: Register Arguments. (line 193)
  40766. * INIT_CUMULATIVE_LIBCALL_ARGS: Register Arguments. (line 187)
  40767. * INIT_ENVIRONMENT: Driver. (line 309)
  40768. * INIT_EXPANDERS: Per-Function Data. (line 36)
  40769. * INIT_EXPR: Unary and Binary Expressions.
  40770. (line 6)
  40771. * init_machine_status: Per-Function Data. (line 42)
  40772. * init_one_libfunc: Library Calls. (line 15)
  40773. * INIT_SECTION_ASM_OP: Sections. (line 90)
  40774. * INIT_SECTION_ASM_OP <1>: Macros for Initialization.
  40775. (line 9)
  40776. * inlining: Target Attributes. (line 95)
  40777. * insert_insn_on_edge: Maintaining the CFG.
  40778. (line 104)
  40779. * insn: Insns. (line 63)
  40780. * 'insn' and '/f': Flags. (line 107)
  40781. * 'insn' and '/j': Flags. (line 157)
  40782. * 'insn' and '/s': Flags. (line 49)
  40783. * 'insn' and '/s' <1>: Flags. (line 148)
  40784. * 'insn' and '/u': Flags. (line 39)
  40785. * 'insn' and '/v': Flags. (line 44)
  40786. * insn attributes: Insn Attributes. (line 6)
  40787. * insn canonicalization: Insn Canonicalizations.
  40788. (line 6)
  40789. * insn includes: Including Patterns. (line 6)
  40790. * insn lengths, computing: Insn Lengths. (line 6)
  40791. * insn notes, notes: Basic Blocks. (line 52)
  40792. * insn splitting: Insn Splitting. (line 6)
  40793. * insn-attr.h: Defining Attributes.
  40794. (line 34)
  40795. * insns: Insns. (line 6)
  40796. * insns, generating: RTL Template. (line 6)
  40797. * insns, recognizing: RTL Template. (line 6)
  40798. * INSN_ANNULLED_BRANCH_P: Flags. (line 39)
  40799. * INSN_CODE: Insns. (line 295)
  40800. * INSN_DELETED_P: Flags. (line 44)
  40801. * INSN_FROM_TARGET_P: Flags. (line 49)
  40802. * insn_list: Insns. (line 540)
  40803. * INSN_REFERENCES_ARE_DELAYED: Misc. (line 490)
  40804. * INSN_SETS_ARE_DELAYED: Misc. (line 479)
  40805. * INSN_UID: Insns. (line 23)
  40806. * INSN_VAR_LOCATION: Insns. (line 236)
  40807. * instruction attributes: Insn Attributes. (line 6)
  40808. * instruction latency time: Processor pipeline description.
  40809. (line 6)
  40810. * instruction latency time <1>: Processor pipeline description.
  40811. (line 105)
  40812. * instruction latency time <2>: Processor pipeline description.
  40813. (line 196)
  40814. * instruction patterns: Patterns. (line 6)
  40815. * instruction splitting: Insn Splitting. (line 6)
  40816. * 'insv' instruction pattern: Standard Names. (line 1261)
  40817. * 'insvM' instruction pattern: Standard Names. (line 1213)
  40818. * 'insvmisalignM' instruction pattern: Standard Names. (line 1223)
  40819. * int iterators in '.md' files: Int Iterators. (line 6)
  40820. * INT16_TYPE: Type Layout. (line 210)
  40821. * INT32_TYPE: Type Layout. (line 211)
  40822. * INT64_TYPE: Type Layout. (line 212)
  40823. * INT8_TYPE: Type Layout. (line 209)
  40824. * INTEGER_CST: Constant expressions.
  40825. (line 6)
  40826. * INTEGER_TYPE: Types. (line 6)
  40827. * Interdependence of Patterns: Dependent Patterns. (line 6)
  40828. * interfacing to GCC output: Interface. (line 6)
  40829. * interlock delays: Processor pipeline description.
  40830. (line 6)
  40831. * intermediate representation lowering: Parsing pass. (line 13)
  40832. * INTMAX_TYPE: Type Layout. (line 186)
  40833. * INTPTR_TYPE: Type Layout. (line 233)
  40834. * introduction: Top. (line 6)
  40835. * INT_FAST16_TYPE: Type Layout. (line 226)
  40836. * INT_FAST32_TYPE: Type Layout. (line 227)
  40837. * INT_FAST64_TYPE: Type Layout. (line 228)
  40838. * INT_FAST8_TYPE: Type Layout. (line 225)
  40839. * INT_LEAST16_TYPE: Type Layout. (line 218)
  40840. * INT_LEAST32_TYPE: Type Layout. (line 219)
  40841. * INT_LEAST64_TYPE: Type Layout. (line 220)
  40842. * INT_LEAST8_TYPE: Type Layout. (line 217)
  40843. * INT_TYPE_SIZE: Type Layout. (line 11)
  40844. * INVOKE__main: Macros for Initialization.
  40845. (line 50)
  40846. * in_struct: Flags. (line 245)
  40847. * 'in_struct', in 'code_label' and 'note': Flags. (line 59)
  40848. * 'in_struct', in 'insn' and 'jump_insn' and 'call_insn': Flags.
  40849. (line 49)
  40850. * 'in_struct', in 'insn', 'call_insn', 'jump_insn' and 'jump_table_data': Flags.
  40851. (line 148)
  40852. * 'in_struct', in 'subreg': Flags. (line 187)
  40853. * ior: Arithmetic. (line 163)
  40854. * 'ior' and attributes: Expressions. (line 50)
  40855. * 'ior', canonicalization of: Insn Canonicalizations.
  40856. (line 51)
  40857. * 'iorM3' instruction pattern: Standard Names. (line 315)
  40858. * IRA_HARD_REGNO_ADD_COST_MULTIPLIER: Allocation Order. (line 44)
  40859. * IS_ASM_LOGICAL_LINE_SEPARATOR: Data Output. (line 123)
  40860. * is_gimple_addressable: Logical Operators. (line 113)
  40861. * is_gimple_asm_val: Logical Operators. (line 117)
  40862. * is_gimple_assign: Logical Operators. (line 149)
  40863. * is_gimple_call: Logical Operators. (line 152)
  40864. * is_gimple_call_addr: Logical Operators. (line 120)
  40865. * is_gimple_constant: Logical Operators. (line 128)
  40866. * is_gimple_debug: Logical Operators. (line 155)
  40867. * is_gimple_ip_invariant: Logical Operators. (line 137)
  40868. * is_gimple_ip_invariant_address: Logical Operators. (line 142)
  40869. * is_gimple_mem_ref_addr: Logical Operators. (line 124)
  40870. * is_gimple_min_invariant: Logical Operators. (line 131)
  40871. * is_gimple_omp: Logical Operators. (line 166)
  40872. * is_gimple_val: Logical Operators. (line 107)
  40873. * iterators in '.md' files: Iterators. (line 6)
  40874. * IV analysis on GIMPLE: Scalar evolutions. (line 6)
  40875. * IV analysis on RTL: loop-iv. (line 6)
  40876. * JMP_BUF_SIZE: Exception Region Output.
  40877. (line 83)
  40878. * jump: Flags. (line 286)
  40879. * 'jump' instruction pattern: Standard Names. (line 1354)
  40880. * jump instruction patterns: Jump Patterns. (line 6)
  40881. * jump instructions and 'set': Side Effects. (line 56)
  40882. * 'jump', in 'call_insn': Flags. (line 161)
  40883. * 'jump', in 'insn': Flags. (line 157)
  40884. * 'jump', in 'mem': Flags. (line 70)
  40885. * Jumps: Jumps. (line 6)
  40886. * JUMP_ALIGN: Alignment Output. (line 8)
  40887. * jump_insn: Insns. (line 73)
  40888. * 'jump_insn' and '/f': Flags. (line 107)
  40889. * 'jump_insn' and '/s': Flags. (line 49)
  40890. * 'jump_insn' and '/s' <1>: Flags. (line 148)
  40891. * 'jump_insn' and '/u': Flags. (line 39)
  40892. * 'jump_insn' and '/v': Flags. (line 44)
  40893. * JUMP_LABEL: Insns. (line 80)
  40894. * JUMP_TABLES_IN_TEXT_SECTION: Sections. (line 155)
  40895. * jump_table_data: Insns. (line 166)
  40896. * 'jump_table_data' and '/s': Flags. (line 148)
  40897. * 'jump_table_data' and '/v': Flags. (line 44)
  40898. * LABEL_ALIGN: Alignment Output. (line 57)
  40899. * LABEL_ALIGN_AFTER_BARRIER: Alignment Output. (line 26)
  40900. * LABEL_ALTERNATE_NAME: Edges. (line 180)
  40901. * LABEL_ALT_ENTRY_P: Insns. (line 146)
  40902. * LABEL_DECL: Declarations. (line 6)
  40903. * LABEL_KIND: Insns. (line 146)
  40904. * LABEL_NUSES: Insns. (line 142)
  40905. * LABEL_PRESERVE_P: Flags. (line 59)
  40906. * label_ref: Constants. (line 127)
  40907. * 'label_ref' and '/v': Flags. (line 65)
  40908. * 'label_ref', RTL sharing: Sharing. (line 35)
  40909. * LABEL_REF_NONLOCAL_P: Flags. (line 65)
  40910. * language-dependent trees: Language-dependent trees.
  40911. (line 6)
  40912. * language-independent intermediate representation: Parsing pass.
  40913. (line 13)
  40914. * lang_hooks.gimplify_expr: Gimplification pass.
  40915. (line 18)
  40916. * lang_hooks.parse_file: Parsing pass. (line 6)
  40917. * large return values: Aggregate Return. (line 6)
  40918. * LAST_STACK_REG: Stack Registers. (line 30)
  40919. * LAST_VIRTUAL_REGISTER: Regs and Memory. (line 51)
  40920. * 'lceilMN2': Standard Names. (line 882)
  40921. * LCSSA: LCSSA. (line 6)
  40922. * LDD_SUFFIX: Macros for Initialization.
  40923. (line 121)
  40924. * 'ldexpM3' instruction pattern: Standard Names. (line 667)
  40925. * LD_FINI_SWITCH: Macros for Initialization.
  40926. (line 28)
  40927. * LD_INIT_SWITCH: Macros for Initialization.
  40928. (line 24)
  40929. * le: Comparisons. (line 76)
  40930. * 'le' and attributes: Expressions. (line 83)
  40931. * leaf functions: Leaf Functions. (line 6)
  40932. * leaf_function_p: Standard Names. (line 1438)
  40933. * LEAF_REGISTERS: Leaf Functions. (line 23)
  40934. * LEAF_REG_REMAP: Leaf Functions. (line 37)
  40935. * left rotate: Arithmetic. (line 195)
  40936. * left shift: Arithmetic. (line 173)
  40937. * LEGITIMATE_PIC_OPERAND_P: PIC. (line 31)
  40938. * LEGITIMIZE_RELOAD_ADDRESS: Addressing Modes. (line 150)
  40939. * length: GTY Options. (line 47)
  40940. * less than: Comparisons. (line 68)
  40941. * less than or equal: Comparisons. (line 76)
  40942. * leu: Comparisons. (line 76)
  40943. * 'leu' and attributes: Expressions. (line 83)
  40944. * LE_EXPR: Unary and Binary Expressions.
  40945. (line 6)
  40946. * 'lfloorMN2': Standard Names. (line 877)
  40947. * LIB2FUNCS_EXTRA: Target Fragment. (line 11)
  40948. * LIBCALL_VALUE: Scalar Return. (line 56)
  40949. * 'libgcc.a': Library Calls. (line 6)
  40950. * LIBGCC2_CFLAGS: Target Fragment. (line 8)
  40951. * LIBGCC2_GNU_PREFIX: Type Layout. (line 102)
  40952. * LIBGCC2_UNWIND_ATTRIBUTE: Misc. (line 1092)
  40953. * LIBGCC_SPEC: Driver. (line 115)
  40954. * library subroutine names: Library Calls. (line 6)
  40955. * LIBRARY_PATH_ENV: Misc. (line 531)
  40956. * LIB_SPEC: Driver. (line 107)
  40957. * LIMIT_RELOAD_CLASS: Register Classes. (line 296)
  40958. * LINK_COMMAND_SPEC: Driver. (line 240)
  40959. * LINK_EH_SPEC: Driver. (line 142)
  40960. * LINK_GCC_C_SEQUENCE_SPEC: Driver. (line 232)
  40961. * LINK_LIBGCC_SPECIAL_1: Driver. (line 227)
  40962. * LINK_SPEC: Driver. (line 100)
  40963. * list: Containers. (line 6)
  40964. * Liveness representation: Liveness information.
  40965. (line 6)
  40966. * load address instruction: Simple Constraints. (line 162)
  40967. * LOAD_EXTEND_OP: Misc. (line 80)
  40968. * 'load_multiple' instruction pattern: Standard Names. (line 136)
  40969. * Local Register Allocator (LRA): RTL passes. (line 187)
  40970. * LOCAL_ALIGNMENT: Storage Layout. (line 274)
  40971. * LOCAL_CLASS_P: Classes. (line 73)
  40972. * LOCAL_DECL_ALIGNMENT: Storage Layout. (line 311)
  40973. * LOCAL_INCLUDE_DIR: Driver. (line 316)
  40974. * LOCAL_LABEL_PREFIX: Instruction Output. (line 151)
  40975. * LOCAL_REGNO: Register Basics. (line 100)
  40976. * 'log10M2' instruction pattern: Standard Names. (line 771)
  40977. * 'log1pM2' instruction pattern: Standard Names. (line 761)
  40978. * 'log2M2' instruction pattern: Standard Names. (line 778)
  40979. * 'logbM2' instruction pattern: Standard Names. (line 785)
  40980. * Logical Operators: Logical Operators. (line 6)
  40981. * logical-and, bitwise: Arithmetic. (line 158)
  40982. * LOGICAL_OP_NON_SHORT_CIRCUIT: Costs. (line 294)
  40983. * 'logM2' instruction pattern: Standard Names. (line 754)
  40984. * LOG_LINKS: Insns. (line 314)
  40985. * 'longjmp' and automatic variables: Interface. (line 52)
  40986. * LONG_ACCUM_TYPE_SIZE: Type Layout. (line 92)
  40987. * LONG_DOUBLE_TYPE_SIZE: Type Layout. (line 57)
  40988. * LONG_FRACT_TYPE_SIZE: Type Layout. (line 72)
  40989. * LONG_LONG_ACCUM_TYPE_SIZE: Type Layout. (line 97)
  40990. * LONG_LONG_FRACT_TYPE_SIZE: Type Layout. (line 77)
  40991. * LONG_LONG_TYPE_SIZE: Type Layout. (line 32)
  40992. * LONG_TYPE_SIZE: Type Layout. (line 21)
  40993. * Loop analysis: Loop representation.
  40994. (line 6)
  40995. * Loop manipulation: Loop manipulation. (line 6)
  40996. * Loop querying: Loop querying. (line 6)
  40997. * Loop representation: Loop representation.
  40998. (line 6)
  40999. * Loop-closed SSA form: LCSSA. (line 6)
  41000. * looping instruction patterns: Looping Patterns. (line 6)
  41001. * LOOP_ALIGN: Alignment Output. (line 40)
  41002. * LOOP_EXPR: Unary and Binary Expressions.
  41003. (line 6)
  41004. * lowering, language-dependent intermediate representation: Parsing pass.
  41005. (line 13)
  41006. * lo_sum: Arithmetic. (line 25)
  41007. * 'lrintMN2': Standard Names. (line 867)
  41008. * 'lroundMN2': Standard Names. (line 872)
  41009. * lshiftrt: Arithmetic. (line 190)
  41010. * 'lshiftrt' and attributes: Expressions. (line 83)
  41011. * LSHIFT_EXPR: Unary and Binary Expressions.
  41012. (line 6)
  41013. * 'lshrM3' instruction pattern: Standard Names. (line 605)
  41014. * lt: Comparisons. (line 68)
  41015. * 'lt' and attributes: Expressions. (line 83)
  41016. * LTGT_EXPR: Unary and Binary Expressions.
  41017. (line 6)
  41018. * lto: LTO. (line 6)
  41019. * ltrans: LTO. (line 6)
  41020. * ltu: Comparisons. (line 68)
  41021. * LT_EXPR: Unary and Binary Expressions.
  41022. (line 6)
  41023. * 'm' in constraint: Simple Constraints. (line 17)
  41024. * machine attributes: Target Attributes. (line 6)
  41025. * machine description macros: Target Macros. (line 6)
  41026. * machine descriptions: Machine Desc. (line 6)
  41027. * machine mode conversions: Conversions. (line 6)
  41028. * machine modes: Machine Modes. (line 6)
  41029. * machine specific constraints: Machine Constraints.
  41030. (line 6)
  41031. * machine-independent predicates: Machine-Independent Predicates.
  41032. (line 6)
  41033. * machine_mode: Machine Modes. (line 6)
  41034. * MACH_DEP_SECTION_ASM_FLAG: Sections. (line 120)
  41035. * macros, target description: Target Macros. (line 6)
  41036. * 'maddMN4' instruction pattern: Standard Names. (line 526)
  41037. * makefile fragment: Fragments. (line 6)
  41038. * makefile targets: Makefile. (line 6)
  41039. * MAKE_DECL_ONE_ONLY: Label Output. (line 281)
  41040. * make_safe_from: Expander Definitions.
  41041. (line 151)
  41042. * MALLOC_ABI_ALIGNMENT: Storage Layout. (line 190)
  41043. * Manipulating GIMPLE statements: Manipulating GIMPLE statements.
  41044. (line 6)
  41045. * marking roots: GGC Roots. (line 6)
  41046. * 'maskloadMN' instruction pattern: Standard Names. (line 258)
  41047. * 'maskstoreMN' instruction pattern: Standard Names. (line 265)
  41048. * MASK_RETURN_ADDR: Exception Region Output.
  41049. (line 35)
  41050. * Match and Simplify: Match and Simplify. (line 6)
  41051. * matching constraint: Simple Constraints. (line 140)
  41052. * matching operands: Output Template. (line 49)
  41053. * match_dup: RTL Template. (line 73)
  41054. * match_dup <1>: define_peephole2. (line 28)
  41055. * 'match_dup' and attributes: Insn Lengths. (line 16)
  41056. * match_operand: RTL Template. (line 16)
  41057. * 'match_operand' and attributes: Expressions. (line 55)
  41058. * match_operator: RTL Template. (line 95)
  41059. * match_op_dup: RTL Template. (line 163)
  41060. * match_parallel: RTL Template. (line 172)
  41061. * match_par_dup: RTL Template. (line 219)
  41062. * match_scratch: RTL Template. (line 58)
  41063. * match_scratch <1>: define_peephole2. (line 28)
  41064. * 'match_test' and attributes: Expressions. (line 64)
  41065. * math library: Soft float library routines.
  41066. (line 6)
  41067. * math, in RTL: Arithmetic. (line 6)
  41068. * matherr: Library Calls. (line 59)
  41069. * MATH_LIBRARY: Misc. (line 524)
  41070. * 'maxM3' instruction pattern: Standard Names. (line 377)
  41071. * MAX_BITSIZE_MODE_ANY_INT: Machine Modes. (line 359)
  41072. * MAX_BITSIZE_MODE_ANY_MODE: Machine Modes. (line 365)
  41073. * MAX_BITS_PER_WORD: Storage Layout. (line 54)
  41074. * MAX_CONDITIONAL_EXECUTE: Misc. (line 546)
  41075. * MAX_FIXED_MODE_SIZE: Storage Layout. (line 456)
  41076. * MAX_MOVE_MAX: Misc. (line 126)
  41077. * MAX_OFILE_ALIGNMENT: Storage Layout. (line 228)
  41078. * MAX_REGS_PER_ADDRESS: Addressing Modes. (line 42)
  41079. * MAX_STACK_ALIGNMENT: Storage Layout. (line 222)
  41080. * maybe_undef: GTY Options. (line 141)
  41081. * may_trap_p, tree_could_trap_p: Edges. (line 114)
  41082. * mcount: Profiling. (line 12)
  41083. * MD_EXEC_PREFIX: Driver. (line 271)
  41084. * MD_FALLBACK_FRAME_STATE_FOR: Exception Handling. (line 93)
  41085. * MD_HANDLE_UNWABI: Exception Handling. (line 112)
  41086. * MD_STARTFILE_PREFIX: Driver. (line 299)
  41087. * MD_STARTFILE_PREFIX_1: Driver. (line 304)
  41088. * mem: Regs and Memory. (line 370)
  41089. * 'mem' and '/c': Flags. (line 81)
  41090. * 'mem' and '/f': Flags. (line 85)
  41091. * 'mem' and '/j': Flags. (line 70)
  41092. * 'mem' and '/u': Flags. (line 134)
  41093. * 'mem' and '/v': Flags. (line 76)
  41094. * 'mem', RTL sharing: Sharing. (line 40)
  41095. * memory model: Memory model. (line 6)
  41096. * memory reference, nonoffsettable: Simple Constraints. (line 254)
  41097. * memory references in constraints: Simple Constraints. (line 17)
  41098. * 'memory_barrier' instruction pattern: Standard Names. (line 1823)
  41099. * MEMORY_MOVE_COST: Costs. (line 53)
  41100. * memory_operand: Machine-Independent Predicates.
  41101. (line 57)
  41102. * MEM_ADDR_SPACE: Special Accessors. (line 48)
  41103. * MEM_ALIAS_SET: Special Accessors. (line 9)
  41104. * MEM_ALIGN: Special Accessors. (line 45)
  41105. * MEM_EXPR: Special Accessors. (line 19)
  41106. * MEM_KEEP_ALIAS_SET_P: Flags. (line 70)
  41107. * MEM_NOTRAP_P: Flags. (line 81)
  41108. * MEM_OFFSET: Special Accessors. (line 31)
  41109. * MEM_OFFSET_KNOWN_P: Special Accessors. (line 27)
  41110. * MEM_POINTER: Flags. (line 85)
  41111. * MEM_READONLY_P: Flags. (line 134)
  41112. * MEM_REF: Storage References. (line 6)
  41113. * 'mem_signal_fenceMODE' instruction pattern: Standard Names.
  41114. (line 2107)
  41115. * MEM_SIZE: Special Accessors. (line 39)
  41116. * MEM_SIZE_KNOWN_P: Special Accessors. (line 35)
  41117. * 'mem_thread_fenceMODE' instruction pattern: Standard Names.
  41118. (line 2099)
  41119. * MEM_VOLATILE_P: Flags. (line 76)
  41120. * METHOD_TYPE: Types. (line 6)
  41121. * MINIMUM_ALIGNMENT: Storage Layout. (line 324)
  41122. * MINIMUM_ATOMIC_ALIGNMENT: Storage Layout. (line 198)
  41123. * 'minM3' instruction pattern: Standard Names. (line 377)
  41124. * minus: Arithmetic. (line 38)
  41125. * 'minus' and attributes: Expressions. (line 83)
  41126. * 'minus', canonicalization of: Insn Canonicalizations.
  41127. (line 27)
  41128. * MINUS_EXPR: Unary and Binary Expressions.
  41129. (line 6)
  41130. * MIN_UNITS_PER_WORD: Storage Layout. (line 64)
  41131. * MIPS coprocessor-definition macros: MIPS Coprocessors. (line 6)
  41132. * miscellaneous register hooks: Miscellaneous Register Hooks.
  41133. (line 6)
  41134. * mnemonic attribute: Mnemonic Attribute. (line 6)
  41135. * mod: Arithmetic. (line 136)
  41136. * 'mod' and attributes: Expressions. (line 83)
  41137. * mode classes: Machine Modes. (line 226)
  41138. * mode iterators in '.md' files: Mode Iterators. (line 6)
  41139. * mode switching: Mode Switching. (line 6)
  41140. * MODES_TIEABLE_P: Values in Registers.
  41141. (line 127)
  41142. * MODE_ACCUM: Machine Modes. (line 256)
  41143. * MODE_BASE_REG_CLASS: Register Classes. (line 116)
  41144. * MODE_BASE_REG_REG_CLASS: Register Classes. (line 122)
  41145. * MODE_CC: Machine Modes. (line 275)
  41146. * MODE_CC <1>: MODE_CC Condition Codes.
  41147. (line 6)
  41148. * MODE_CODE_BASE_REG_CLASS: Register Classes. (line 129)
  41149. * MODE_COMPLEX_FLOAT: Machine Modes. (line 267)
  41150. * MODE_COMPLEX_INT: Machine Modes. (line 264)
  41151. * MODE_DECIMAL_FLOAT: Machine Modes. (line 244)
  41152. * MODE_FLOAT: Machine Modes. (line 240)
  41153. * MODE_FRACT: Machine Modes. (line 248)
  41154. * MODE_FUNCTION: Machine Modes. (line 271)
  41155. * MODE_INT: Machine Modes. (line 232)
  41156. * MODE_PARTIAL_INT: Machine Modes. (line 236)
  41157. * MODE_POINTER_BOUNDS: Machine Modes. (line 280)
  41158. * MODE_RANDOM: Machine Modes. (line 285)
  41159. * MODE_UACCUM: Machine Modes. (line 260)
  41160. * MODE_UFRACT: Machine Modes. (line 252)
  41161. * modifiers in constraints: Modifiers. (line 6)
  41162. * MODIFY_EXPR: Unary and Binary Expressions.
  41163. (line 6)
  41164. * MODIFY_JNI_METHOD_CALL: Misc. (line 895)
  41165. * 'modM3' instruction pattern: Standard Names. (line 315)
  41166. * modulo scheduling: RTL passes. (line 123)
  41167. * MOVE_MAX: Misc. (line 121)
  41168. * MOVE_MAX_PIECES: Costs. (line 210)
  41169. * MOVE_RATIO: Costs. (line 149)
  41170. * 'movM' instruction pattern: Standard Names. (line 11)
  41171. * 'movmemM' instruction pattern: Standard Names. (line 981)
  41172. * 'movmisalignM' instruction pattern: Standard Names. (line 125)
  41173. * 'movMODEcc' instruction pattern: Standard Names. (line 1275)
  41174. * 'movstr' instruction pattern: Standard Names. (line 1016)
  41175. * 'movstrictM' instruction pattern: Standard Names. (line 119)
  41176. * 'msubMN4' instruction pattern: Standard Names. (line 549)
  41177. * 'mulhisi3' instruction pattern: Standard Names. (line 502)
  41178. * 'mulM3' instruction pattern: Standard Names. (line 315)
  41179. * 'mulqihi3' instruction pattern: Standard Names. (line 506)
  41180. * 'mulsidi3' instruction pattern: Standard Names. (line 506)
  41181. * mult: Arithmetic. (line 93)
  41182. * 'mult' and attributes: Expressions. (line 83)
  41183. * 'mult', canonicalization of: Insn Canonicalizations.
  41184. (line 27)
  41185. * 'mult', canonicalization of <1>: Insn Canonicalizations.
  41186. (line 91)
  41187. * MULTIARCH_DIRNAME: Target Fragment. (line 171)
  41188. * MULTILIB_DEFAULTS: Driver. (line 256)
  41189. * MULTILIB_DIRNAMES: Target Fragment. (line 44)
  41190. * MULTILIB_EXCEPTIONS: Target Fragment. (line 70)
  41191. * MULTILIB_EXTRA_OPTS: Target Fragment. (line 133)
  41192. * MULTILIB_MATCHES: Target Fragment. (line 63)
  41193. * MULTILIB_OPTIONS: Target Fragment. (line 24)
  41194. * MULTILIB_OSDIRNAMES: Target Fragment. (line 140)
  41195. * MULTILIB_REQUIRED: Target Fragment. (line 82)
  41196. * MULTILIB_REUSE: Target Fragment. (line 103)
  41197. * multiple alternative constraints: Multi-Alternative. (line 6)
  41198. * MULTIPLE_SYMBOL_SPACES: Misc. (line 503)
  41199. * multiplication: Arithmetic. (line 93)
  41200. * multiplication with signed saturation: Arithmetic. (line 93)
  41201. * multiplication with unsigned saturation: Arithmetic. (line 93)
  41202. * MULT_EXPR: Unary and Binary Expressions.
  41203. (line 6)
  41204. * MULT_HIGHPART_EXPR: Unary and Binary Expressions.
  41205. (line 6)
  41206. * 'mulvM4' instruction pattern: Standard Names. (line 331)
  41207. * 'n' in constraint: Simple Constraints. (line 73)
  41208. * name: Identifiers. (line 6)
  41209. * named address spaces: Named Address Spaces.
  41210. (line 6)
  41211. * named patterns and conditions: Patterns. (line 49)
  41212. * names, pattern: Standard Names. (line 6)
  41213. * namespace, scope: Namespaces. (line 6)
  41214. * NAMESPACE_DECL: Declarations. (line 6)
  41215. * NAMESPACE_DECL <1>: Namespaces. (line 6)
  41216. * NATIVE_SYSTEM_HEADER_COMPONENT: Driver. (line 326)
  41217. * ne: Comparisons. (line 56)
  41218. * 'ne' and attributes: Expressions. (line 83)
  41219. * 'nearbyintM2' instruction pattern: Standard Names. (line 851)
  41220. * neg: Arithmetic. (line 82)
  41221. * 'neg' and attributes: Expressions. (line 83)
  41222. * 'neg', canonicalization of: Insn Canonicalizations.
  41223. (line 27)
  41224. * NEGATE_EXPR: Unary and Binary Expressions.
  41225. (line 6)
  41226. * negation: Arithmetic. (line 82)
  41227. * negation with signed saturation: Arithmetic. (line 82)
  41228. * negation with unsigned saturation: Arithmetic. (line 82)
  41229. * 'negM2' instruction pattern: Standard Names. (line 617)
  41230. * 'negMODEcc' instruction pattern: Standard Names. (line 1295)
  41231. * 'negvM3' instruction pattern: Standard Names. (line 620)
  41232. * nested functions, trampolines for: Trampolines. (line 6)
  41233. * nested_ptr: GTY Options. (line 149)
  41234. * next_bb, prev_bb, FOR_EACH_BB, FOR_ALL_BB: Basic Blocks. (line 25)
  41235. * NEXT_INSN: Insns. (line 30)
  41236. * NEXT_OBJC_RUNTIME: Library Calls. (line 82)
  41237. * NE_EXPR: Unary and Binary Expressions.
  41238. (line 6)
  41239. * nil: RTL Objects. (line 73)
  41240. * NM_FLAGS: Macros for Initialization.
  41241. (line 110)
  41242. * nondeterministic finite state automaton: Processor pipeline description.
  41243. (line 304)
  41244. * nonimmediate_operand: Machine-Independent Predicates.
  41245. (line 100)
  41246. * nonlocal goto handler: Edges. (line 171)
  41247. * 'nonlocal_goto' instruction pattern: Standard Names. (line 1658)
  41248. * 'nonlocal_goto_receiver' instruction pattern: Standard Names.
  41249. (line 1675)
  41250. * nonmemory_operand: Machine-Independent Predicates.
  41251. (line 96)
  41252. * nonoffsettable memory reference: Simple Constraints. (line 254)
  41253. * NON_LVALUE_EXPR: Unary and Binary Expressions.
  41254. (line 6)
  41255. * 'nop' instruction pattern: Standard Names. (line 1471)
  41256. * NOP_EXPR: Unary and Binary Expressions.
  41257. (line 6)
  41258. * normal predicates: Predicates. (line 31)
  41259. * not: Arithmetic. (line 154)
  41260. * 'not' and attributes: Expressions. (line 50)
  41261. * not equal: Comparisons. (line 56)
  41262. * 'not', canonicalization of: Insn Canonicalizations.
  41263. (line 27)
  41264. * note: Insns. (line 183)
  41265. * 'note' and '/i': Flags. (line 59)
  41266. * 'note' and '/v': Flags. (line 44)
  41267. * NOTE_INSN_BASIC_BLOCK: Basic Blocks. (line 50)
  41268. * NOTE_INSN_BASIC_BLOCK <1>: Basic Blocks. (line 52)
  41269. * NOTE_INSN_BLOCK_BEG: Insns. (line 208)
  41270. * NOTE_INSN_BLOCK_END: Insns. (line 208)
  41271. * NOTE_INSN_DELETED: Insns. (line 198)
  41272. * NOTE_INSN_DELETED_LABEL: Insns. (line 203)
  41273. * NOTE_INSN_EH_REGION_BEG: Insns. (line 214)
  41274. * NOTE_INSN_EH_REGION_END: Insns. (line 214)
  41275. * NOTE_INSN_FUNCTION_BEG: Insns. (line 221)
  41276. * NOTE_INSN_VAR_LOCATION: Insns. (line 225)
  41277. * NOTE_LINE_NUMBER: Insns. (line 183)
  41278. * NOTE_SOURCE_FILE: Insns. (line 183)
  41279. * NOTE_VAR_LOCATION: Insns. (line 225)
  41280. * NOTICE_UPDATE_CC: CC0 Condition Codes.
  41281. (line 30)
  41282. * 'notMODEcc' instruction pattern: Standard Names. (line 1302)
  41283. * NO_DBX_BNSYM_ENSYM: DBX Hooks. (line 25)
  41284. * NO_DBX_FUNCTION_END: DBX Hooks. (line 19)
  41285. * NO_DBX_GCC_MARKER: File Names and DBX. (line 27)
  41286. * NO_DBX_MAIN_SOURCE_DIRECTORY: File Names and DBX. (line 22)
  41287. * NO_DOLLAR_IN_LABEL: Label Output. (line 64)
  41288. * NO_DOT_IN_LABEL: Label Output. (line 70)
  41289. * NO_FUNCTION_CSE: Costs. (line 289)
  41290. * NO_IMPLICIT_EXTERN_C: Misc. (line 402)
  41291. * NO_PROFILE_COUNTERS: Profiling. (line 27)
  41292. * NO_REGS: Register Classes. (line 17)
  41293. * Number of iterations analysis: Number of iterations.
  41294. (line 6)
  41295. * NUM_MACHINE_MODES: Machine Modes. (line 298)
  41296. * NUM_MODES_FOR_MODE_SWITCHING: Mode Switching. (line 30)
  41297. * N_REG_CLASSES: Register Classes. (line 81)
  41298. * 'o' in constraint: Simple Constraints. (line 23)
  41299. * OACC_CACHE: OpenACC. (line 6)
  41300. * OACC_DATA: OpenACC. (line 6)
  41301. * OACC_DECLARE: OpenACC. (line 6)
  41302. * OACC_ENTER_DATA: OpenACC. (line 6)
  41303. * OACC_EXIT_DATA: OpenACC. (line 6)
  41304. * OACC_HOST_DATA: OpenACC. (line 6)
  41305. * OACC_KERNELS: OpenACC. (line 6)
  41306. * OACC_LOOP: OpenACC. (line 6)
  41307. * OACC_PARALLEL: OpenACC. (line 6)
  41308. * OACC_UPDATE: OpenACC. (line 6)
  41309. * OBJC_GEN_METHOD_LABEL: Label Output. (line 482)
  41310. * OBJC_JBLEN: Misc. (line 1087)
  41311. * OBJECT_FORMAT_COFF: Macros for Initialization.
  41312. (line 96)
  41313. * offsettable address: Simple Constraints. (line 23)
  41314. * OFFSET_TYPE: Types. (line 6)
  41315. * OImode: Machine Modes. (line 51)
  41316. * OMP_ATOMIC: OpenMP. (line 6)
  41317. * OMP_CLAUSE: OpenMP. (line 6)
  41318. * OMP_CONTINUE: OpenMP. (line 6)
  41319. * OMP_CRITICAL: OpenMP. (line 6)
  41320. * OMP_FOR: OpenMP. (line 6)
  41321. * OMP_MASTER: OpenMP. (line 6)
  41322. * OMP_ORDERED: OpenMP. (line 6)
  41323. * OMP_PARALLEL: OpenMP. (line 6)
  41324. * OMP_RETURN: OpenMP. (line 6)
  41325. * OMP_SECTION: OpenMP. (line 6)
  41326. * OMP_SECTIONS: OpenMP. (line 6)
  41327. * OMP_SINGLE: OpenMP. (line 6)
  41328. * 'one_cmplM2' instruction pattern: Standard Names. (line 978)
  41329. * operand access: Accessors. (line 6)
  41330. * Operand Access Routines: SSA Operands. (line 116)
  41331. * operand constraints: Constraints. (line 6)
  41332. * Operand Iterators: SSA Operands. (line 116)
  41333. * operand predicates: Predicates. (line 6)
  41334. * operand substitution: Output Template. (line 6)
  41335. * Operands: Operands. (line 6)
  41336. * operands: SSA Operands. (line 6)
  41337. * operands <1>: Patterns. (line 55)
  41338. * operator predicates: Predicates. (line 6)
  41339. * 'optc-gen.awk': Options. (line 6)
  41340. * OPTGROUP_ALL: Optimization groups.
  41341. (line 28)
  41342. * OPTGROUP_INLINE: Optimization groups.
  41343. (line 15)
  41344. * OPTGROUP_IPA: Optimization groups.
  41345. (line 9)
  41346. * OPTGROUP_LOOP: Optimization groups.
  41347. (line 12)
  41348. * OPTGROUP_OMP: Optimization groups.
  41349. (line 18)
  41350. * OPTGROUP_OTHER: Optimization groups.
  41351. (line 24)
  41352. * OPTGROUP_VEC: Optimization groups.
  41353. (line 21)
  41354. * optimization dumps: Optimization info. (line 6)
  41355. * optimization groups: Optimization groups.
  41356. (line 6)
  41357. * optimization info file names: Dump files and streams.
  41358. (line 6)
  41359. * Optimization infrastructure for GIMPLE: Tree SSA. (line 6)
  41360. * OPTIMIZE_MODE_SWITCHING: Mode Switching. (line 8)
  41361. * option specification files: Options. (line 6)
  41362. * optional hardware or system features: Run-time Target. (line 59)
  41363. * options, directory search: Including Patterns. (line 47)
  41364. * OPTION_DEFAULT_SPECS: Driver. (line 25)
  41365. * order of register allocation: Allocation Order. (line 6)
  41366. * ordered_comparison_operator: Machine-Independent Predicates.
  41367. (line 115)
  41368. * ORDERED_EXPR: Unary and Binary Expressions.
  41369. (line 6)
  41370. * Ordering of Patterns: Pattern Ordering. (line 6)
  41371. * ORIGINAL_REGNO: Special Accessors. (line 53)
  41372. * other register constraints: Simple Constraints. (line 171)
  41373. * outgoing_args_size: Stack Arguments. (line 48)
  41374. * OUTGOING_REGNO: Register Basics. (line 93)
  41375. * OUTGOING_REG_PARM_STACK_SPACE: Stack Arguments. (line 79)
  41376. * output of assembler code: File Framework. (line 6)
  41377. * output statements: Output Statement. (line 6)
  41378. * output templates: Output Template. (line 6)
  41379. * output_asm_insn: Output Statement. (line 52)
  41380. * OUTPUT_QUOTED_STRING: File Framework. (line 106)
  41381. * OVERLAPPING_REGISTER_NAMES: Instruction Output. (line 20)
  41382. * OVERLOAD: Functions for C++. (line 6)
  41383. * OVERRIDE_ABI_FORMAT: Register Arguments. (line 157)
  41384. * OVL_CURRENT: Functions for C++. (line 6)
  41385. * OVL_NEXT: Functions for C++. (line 6)
  41386. * 'p' in constraint: Simple Constraints. (line 162)
  41387. * PAD_VARARGS_DOWN: Register Arguments. (line 238)
  41388. * parallel: Side Effects. (line 209)
  41389. * parameters, c++ abi: C++ ABI. (line 6)
  41390. * parameters, miscellaneous: Misc. (line 6)
  41391. * parameters, precompiled headers: PCH Target. (line 6)
  41392. * parity: Arithmetic. (line 242)
  41393. * 'parityM2' instruction pattern: Standard Names. (line 965)
  41394. * PARM_BOUNDARY: Storage Layout. (line 150)
  41395. * PARM_DECL: Declarations. (line 6)
  41396. * PARSE_LDD_OUTPUT: Macros for Initialization.
  41397. (line 125)
  41398. * pass dumps: Passes. (line 6)
  41399. * passes and files of the compiler: Passes. (line 6)
  41400. * passing arguments: Interface. (line 36)
  41401. * pass_duplicate_computed_gotos: Edges. (line 161)
  41402. * PATH_SEPARATOR: Filesystem. (line 31)
  41403. * PATTERN: Insns. (line 284)
  41404. * pattern conditions: Patterns. (line 43)
  41405. * pattern names: Standard Names. (line 6)
  41406. * Pattern Ordering: Pattern Ordering. (line 6)
  41407. * patterns: Patterns. (line 6)
  41408. * pc: Regs and Memory. (line 357)
  41409. * 'pc' and attributes: Insn Lengths. (line 20)
  41410. * 'pc', RTL sharing: Sharing. (line 25)
  41411. * PCC_BITFIELD_TYPE_MATTERS: Storage Layout. (line 350)
  41412. * PCC_STATIC_STRUCT_RETURN: Aggregate Return. (line 64)
  41413. * PC_REGNUM: Register Basics. (line 107)
  41414. * pc_rtx: Regs and Memory. (line 362)
  41415. * PDImode: Machine Modes. (line 40)
  41416. * peephole optimization, RTL representation: Side Effects. (line 243)
  41417. * peephole optimizer definitions: Peephole Definitions.
  41418. (line 6)
  41419. * per-function data: Per-Function Data. (line 6)
  41420. * percent sign: Output Template. (line 6)
  41421. * PHI nodes: SSA. (line 31)
  41422. * PIC: PIC. (line 6)
  41423. * PIC_OFFSET_TABLE_REGNUM: PIC. (line 15)
  41424. * PIC_OFFSET_TABLE_REG_CALL_CLOBBERED: PIC. (line 25)
  41425. * pipeline hazard recognizer: Processor pipeline description.
  41426. (line 6)
  41427. * pipeline hazard recognizer <1>: Processor pipeline description.
  41428. (line 53)
  41429. * Plugins: Plugins. (line 6)
  41430. * plus: Arithmetic. (line 14)
  41431. * 'plus' and attributes: Expressions. (line 83)
  41432. * 'plus', canonicalization of: Insn Canonicalizations.
  41433. (line 27)
  41434. * PLUS_EXPR: Unary and Binary Expressions.
  41435. (line 6)
  41436. * Pmode: Misc. (line 350)
  41437. * pmode_register_operand: Machine-Independent Predicates.
  41438. (line 34)
  41439. * pointer: Types. (line 6)
  41440. * POINTERS_EXTEND_UNSIGNED: Storage Layout. (line 76)
  41441. * POINTER_PLUS_EXPR: Unary and Binary Expressions.
  41442. (line 6)
  41443. * POINTER_SIZE: Storage Layout. (line 70)
  41444. * POINTER_TYPE: Types. (line 6)
  41445. * popcount: Arithmetic. (line 238)
  41446. * 'popcountM2' instruction pattern: Standard Names. (line 953)
  41447. * pops_args: Function Entry. (line 104)
  41448. * pop_operand: Machine-Independent Predicates.
  41449. (line 87)
  41450. * portability: Portability. (line 6)
  41451. * position independent code: PIC. (line 6)
  41452. * POSTDECREMENT_EXPR: Unary and Binary Expressions.
  41453. (line 6)
  41454. * POSTINCREMENT_EXPR: Unary and Binary Expressions.
  41455. (line 6)
  41456. * post_dec: Incdec. (line 25)
  41457. * post_inc: Incdec. (line 30)
  41458. * POST_LINK_SPEC: Driver. (line 236)
  41459. * post_modify: Incdec. (line 33)
  41460. * post_order_compute, inverted_post_order_compute, walk_dominator_tree: Basic Blocks.
  41461. (line 34)
  41462. * POWI_MAX_MULTS: Misc. (line 985)
  41463. * 'powM3' instruction pattern: Standard Names. (line 799)
  41464. * pragma: Misc. (line 408)
  41465. * PREDECREMENT_EXPR: Unary and Binary Expressions.
  41466. (line 6)
  41467. * predefined macros: Run-time Target. (line 6)
  41468. * predicates: Predicates. (line 6)
  41469. * predicates and machine modes: Predicates. (line 31)
  41470. * predication: Conditional Execution.
  41471. (line 6)
  41472. * predict.def: Profile information.
  41473. (line 24)
  41474. * PREFERRED_DEBUGGING_TYPE: All Debuggers. (line 41)
  41475. * PREFERRED_RELOAD_CLASS: Register Classes. (line 249)
  41476. * PREFERRED_STACK_BOUNDARY: Storage Layout. (line 164)
  41477. * prefetch: Side Effects. (line 323)
  41478. * 'prefetch' and '/v': Flags. (line 214)
  41479. * 'prefetch' instruction pattern: Standard Names. (line 1800)
  41480. * PREFETCH_SCHEDULE_BARRIER_P: Flags. (line 214)
  41481. * PREINCREMENT_EXPR: Unary and Binary Expressions.
  41482. (line 6)
  41483. * presence_set: Processor pipeline description.
  41484. (line 223)
  41485. * preserving SSA form: SSA. (line 74)
  41486. * pretend_args_size: Function Entry. (line 110)
  41487. * prev_active_insn: define_peephole. (line 60)
  41488. * PREV_INSN: Insns. (line 26)
  41489. * pre_dec: Incdec. (line 8)
  41490. * PRE_GCC3_DWARF_FRAME_REGISTERS: Frame Registers. (line 126)
  41491. * pre_inc: Incdec. (line 22)
  41492. * pre_modify: Incdec. (line 52)
  41493. * PRINT_OPERAND: Instruction Output. (line 95)
  41494. * PRINT_OPERAND_ADDRESS: Instruction Output. (line 122)
  41495. * PRINT_OPERAND_PUNCT_VALID_P: Instruction Output. (line 115)
  41496. * 'probe_stack' instruction pattern: Standard Names. (line 1650)
  41497. * 'probe_stack_address' instruction pattern: Standard Names. (line 1643)
  41498. * processor functional units: Processor pipeline description.
  41499. (line 6)
  41500. * processor functional units <1>: Processor pipeline description.
  41501. (line 68)
  41502. * processor pipeline description: Processor pipeline description.
  41503. (line 6)
  41504. * product: Arithmetic. (line 93)
  41505. * profile feedback: Profile information.
  41506. (line 14)
  41507. * profile representation: Profile information.
  41508. (line 6)
  41509. * PROFILE_BEFORE_PROLOGUE: Profiling. (line 34)
  41510. * PROFILE_HOOK: Profiling. (line 22)
  41511. * profiling, code generation: Profiling. (line 6)
  41512. * program counter: Regs and Memory. (line 358)
  41513. * prologue: Function Entry. (line 6)
  41514. * 'prologue' instruction pattern: Standard Names. (line 1739)
  41515. * PROMOTE_MODE: Storage Layout. (line 87)
  41516. * pseudo registers: Regs and Memory. (line 9)
  41517. * PSImode: Machine Modes. (line 32)
  41518. * PTRDIFF_TYPE: Type Layout. (line 157)
  41519. * purge_dead_edges: Edges. (line 103)
  41520. * purge_dead_edges <1>: Maintaining the CFG.
  41521. (line 81)
  41522. * push address instruction: Simple Constraints. (line 162)
  41523. * 'pushM1' instruction pattern: Standard Names. (line 302)
  41524. * PUSH_ARGS: Stack Arguments. (line 17)
  41525. * PUSH_ARGS_REVERSED: Stack Arguments. (line 25)
  41526. * push_operand: Machine-Independent Predicates.
  41527. (line 80)
  41528. * push_reload: Addressing Modes. (line 176)
  41529. * PUSH_ROUNDING: Stack Arguments. (line 31)
  41530. * PUT_CODE: RTL Objects. (line 47)
  41531. * PUT_MODE: Machine Modes. (line 295)
  41532. * PUT_REG_NOTE_KIND: Insns. (line 346)
  41533. * PUT_SDB_: SDB and DWARF. (line 110)
  41534. * QCmode: Machine Modes. (line 199)
  41535. * QFmode: Machine Modes. (line 57)
  41536. * QImode: Machine Modes. (line 25)
  41537. * 'QImode', in 'insn': Insns. (line 268)
  41538. * QQmode: Machine Modes. (line 106)
  41539. * qualified type: Types. (line 6)
  41540. * qualified type <1>: Types for C++. (line 6)
  41541. * querying function unit reservations: Processor pipeline description.
  41542. (line 90)
  41543. * question mark: Multi-Alternative. (line 42)
  41544. * quotient: Arithmetic. (line 116)
  41545. * 'r' in constraint: Simple Constraints. (line 64)
  41546. * RDIV_EXPR: Unary and Binary Expressions.
  41547. (line 6)
  41548. * READONLY_DATA_SECTION_ASM_OP: Sections. (line 62)
  41549. * real operands: SSA Operands. (line 6)
  41550. * REALPART_EXPR: Unary and Binary Expressions.
  41551. (line 6)
  41552. * REAL_CST: Constant expressions.
  41553. (line 6)
  41554. * REAL_LIBGCC_SPEC: Driver. (line 124)
  41555. * REAL_NM_FILE_NAME: Macros for Initialization.
  41556. (line 105)
  41557. * REAL_TYPE: Types. (line 6)
  41558. * REAL_VALUE_ABS: Floating Point. (line 58)
  41559. * REAL_VALUE_ATOF: Floating Point. (line 39)
  41560. * REAL_VALUE_FIX: Floating Point. (line 31)
  41561. * REAL_VALUE_ISINF: Floating Point. (line 49)
  41562. * REAL_VALUE_ISNAN: Floating Point. (line 52)
  41563. * REAL_VALUE_NEGATE: Floating Point. (line 55)
  41564. * REAL_VALUE_NEGATIVE: Floating Point. (line 46)
  41565. * REAL_VALUE_TO_TARGET_DECIMAL128: Data Output. (line 147)
  41566. * REAL_VALUE_TO_TARGET_DECIMAL32: Data Output. (line 145)
  41567. * REAL_VALUE_TO_TARGET_DECIMAL64: Data Output. (line 146)
  41568. * REAL_VALUE_TO_TARGET_DOUBLE: Data Output. (line 143)
  41569. * REAL_VALUE_TO_TARGET_LONG_DOUBLE: Data Output. (line 144)
  41570. * REAL_VALUE_TO_TARGET_SINGLE: Data Output. (line 142)
  41571. * REAL_VALUE_TYPE: Floating Point. (line 25)
  41572. * REAL_VALUE_UNSIGNED_FIX: Floating Point. (line 34)
  41573. * recognizing insns: RTL Template. (line 6)
  41574. * recog_data.operand: Instruction Output. (line 54)
  41575. * RECORD_TYPE: Types. (line 6)
  41576. * RECORD_TYPE <1>: Classes. (line 6)
  41577. * redirect_edge_and_branch: Profile information.
  41578. (line 71)
  41579. * redirect_edge_and_branch, redirect_jump: Maintaining the CFG.
  41580. (line 89)
  41581. * 'reduc_plus_scal_M' instruction pattern: Standard Names. (line 404)
  41582. * 'reduc_smax_scal_M' instruction pattern: Standard Names. (line 394)
  41583. * 'reduc_smin_scal_M' instruction pattern: Standard Names. (line 394)
  41584. * 'reduc_umax_scal_M' instruction pattern: Standard Names. (line 399)
  41585. * 'reduc_umin_scal_M' instruction pattern: Standard Names. (line 399)
  41586. * reference: Types. (line 6)
  41587. * REFERENCE_TYPE: Types. (line 6)
  41588. * reg: Regs and Memory. (line 9)
  41589. * 'reg' and '/f': Flags. (line 94)
  41590. * 'reg' and '/i': Flags. (line 89)
  41591. * 'reg' and '/v': Flags. (line 98)
  41592. * 'reg', RTL sharing: Sharing. (line 17)
  41593. * register allocation order: Allocation Order. (line 6)
  41594. * register class definitions: Register Classes. (line 6)
  41595. * register class preference constraints: Class Preferences. (line 6)
  41596. * register pairs: Values in Registers.
  41597. (line 69)
  41598. * Register Transfer Language (RTL): RTL. (line 6)
  41599. * register usage: Registers. (line 6)
  41600. * registers arguments: Register Arguments. (line 6)
  41601. * registers in constraints: Simple Constraints. (line 64)
  41602. * REGISTER_MOVE_COST: Costs. (line 9)
  41603. * REGISTER_NAMES: Instruction Output. (line 8)
  41604. * register_operand: Machine-Independent Predicates.
  41605. (line 29)
  41606. * REGISTER_PREFIX: Instruction Output. (line 150)
  41607. * REGISTER_TARGET_PRAGMAS: Misc. (line 408)
  41608. * REGMODE_NATURAL_SIZE: Values in Registers.
  41609. (line 49)
  41610. * REGNO_MODE_CODE_OK_FOR_BASE_P: Register Classes. (line 172)
  41611. * REGNO_MODE_OK_FOR_BASE_P: Register Classes. (line 150)
  41612. * REGNO_MODE_OK_FOR_REG_BASE_P: Register Classes. (line 160)
  41613. * REGNO_OK_FOR_BASE_P: Register Classes. (line 146)
  41614. * REGNO_OK_FOR_INDEX_P: Register Classes. (line 186)
  41615. * REGNO_REG_CLASS: Register Classes. (line 105)
  41616. * regs_ever_live: Function Entry. (line 21)
  41617. * regular expressions: Processor pipeline description.
  41618. (line 6)
  41619. * regular expressions <1>: Processor pipeline description.
  41620. (line 105)
  41621. * REG_ALLOC_ORDER: Allocation Order. (line 8)
  41622. * REG_BR_PRED: Insns. (line 526)
  41623. * REG_BR_PROB: Insns. (line 519)
  41624. * REG_BR_PROB_BASE, BB_FREQ_BASE, count: Profile information.
  41625. (line 82)
  41626. * REG_BR_PROB_BASE, EDGE_FREQUENCY: Profile information.
  41627. (line 52)
  41628. * REG_CC_SETTER: Insns. (line 491)
  41629. * REG_CC_USER: Insns. (line 491)
  41630. * reg_class_contents: Register Basics. (line 59)
  41631. * REG_CLASS_CONTENTS: Register Classes. (line 91)
  41632. * reg_class_for_constraint: C Constraint Interface.
  41633. (line 48)
  41634. * REG_CLASS_NAMES: Register Classes. (line 86)
  41635. * REG_CROSSING_JUMP: Insns. (line 405)
  41636. * REG_DEAD: Insns. (line 357)
  41637. * REG_DEAD, REG_UNUSED: Liveness information.
  41638. (line 32)
  41639. * REG_DEP_ANTI: Insns. (line 513)
  41640. * REG_DEP_OUTPUT: Insns. (line 509)
  41641. * REG_DEP_TRUE: Insns. (line 506)
  41642. * REG_EH_REGION, EDGE_ABNORMAL_CALL: Edges. (line 109)
  41643. * REG_EQUAL: Insns. (line 420)
  41644. * REG_EQUIV: Insns. (line 420)
  41645. * REG_EXPR: Special Accessors. (line 58)
  41646. * REG_FRAME_RELATED_EXPR: Insns. (line 532)
  41647. * REG_FUNCTION_VALUE_P: Flags. (line 89)
  41648. * REG_INC: Insns. (line 373)
  41649. * 'reg_label' and '/v': Flags. (line 65)
  41650. * REG_LABEL_OPERAND: Insns. (line 387)
  41651. * REG_LABEL_TARGET: Insns. (line 396)
  41652. * reg_names: Register Basics. (line 59)
  41653. * reg_names <1>: Instruction Output. (line 107)
  41654. * REG_NONNEG: Insns. (line 379)
  41655. * REG_NOTES: Insns. (line 321)
  41656. * REG_NOTE_KIND: Insns. (line 346)
  41657. * REG_OFFSET: Special Accessors. (line 62)
  41658. * REG_OK_STRICT: Addressing Modes. (line 99)
  41659. * REG_PARM_STACK_SPACE: Stack Arguments. (line 58)
  41660. * 'REG_PARM_STACK_SPACE', and 'TARGET_FUNCTION_ARG': Register Arguments.
  41661. (line 56)
  41662. * REG_POINTER: Flags. (line 94)
  41663. * REG_SETJMP: Insns. (line 414)
  41664. * REG_UNUSED: Insns. (line 366)
  41665. * REG_USERVAR_P: Flags. (line 98)
  41666. * REG_VALUE_IN_UNWIND_CONTEXT: Frame Registers. (line 158)
  41667. * REG_WORDS_BIG_ENDIAN: Storage Layout. (line 35)
  41668. * relative costs: Costs. (line 6)
  41669. * RELATIVE_PREFIX_NOT_LINKDIR: Driver. (line 266)
  41670. * reloading: RTL passes. (line 170)
  41671. * reload_completed: Standard Names. (line 1438)
  41672. * 'reload_in' instruction pattern: Standard Names. (line 98)
  41673. * reload_in_progress: Standard Names. (line 57)
  41674. * 'reload_out' instruction pattern: Standard Names. (line 98)
  41675. * remainder: Arithmetic. (line 136)
  41676. * 'remainderM3' instruction pattern: Standard Names. (line 653)
  41677. * reorder: GTY Options. (line 175)
  41678. * representation of RTL: RTL. (line 6)
  41679. * reservation delays: Processor pipeline description.
  41680. (line 6)
  41681. * 'restore_stack_block' instruction pattern: Standard Names. (line 1564)
  41682. * 'restore_stack_function' instruction pattern: Standard Names.
  41683. (line 1564)
  41684. * 'restore_stack_nonlocal' instruction pattern: Standard Names.
  41685. (line 1564)
  41686. * rest_of_decl_compilation: Parsing pass. (line 51)
  41687. * rest_of_type_compilation: Parsing pass. (line 51)
  41688. * RESULT_DECL: Declarations. (line 6)
  41689. * return: Side Effects. (line 72)
  41690. * 'return' instruction pattern: Standard Names. (line 1412)
  41691. * return values in registers: Scalar Return. (line 6)
  41692. * returning aggregate values: Aggregate Return. (line 6)
  41693. * returning structures and unions: Interface. (line 10)
  41694. * RETURN_ADDRESS_POINTER_REGNUM: Frame Registers. (line 64)
  41695. * RETURN_ADDR_IN_PREVIOUS_FRAME: Frame Layout. (line 129)
  41696. * RETURN_ADDR_OFFSET: Exception Handling. (line 59)
  41697. * RETURN_ADDR_RTX: Frame Layout. (line 118)
  41698. * RETURN_EXPR: Statements for C++. (line 6)
  41699. * RETURN_STMT: Statements for C++. (line 6)
  41700. * return_val: Flags. (line 274)
  41701. * 'return_val', in 'call_insn': Flags. (line 24)
  41702. * 'return_val', in 'reg': Flags. (line 89)
  41703. * 'return_val', in 'symbol_ref': Flags. (line 202)
  41704. * reverse probability: Profile information.
  41705. (line 66)
  41706. * REVERSE_CONDITION: MODE_CC Condition Codes.
  41707. (line 92)
  41708. * REVERSIBLE_CC_MODE: MODE_CC Condition Codes.
  41709. (line 77)
  41710. * right rotate: Arithmetic. (line 195)
  41711. * right shift: Arithmetic. (line 190)
  41712. * 'rintM2' instruction pattern: Standard Names. (line 859)
  41713. * RISC: Processor pipeline description.
  41714. (line 6)
  41715. * RISC <1>: Processor pipeline description.
  41716. (line 223)
  41717. * roots, marking: GGC Roots. (line 6)
  41718. * rotate: Arithmetic. (line 195)
  41719. * rotate <1>: Arithmetic. (line 195)
  41720. * rotatert: Arithmetic. (line 195)
  41721. * 'rotlM3' instruction pattern: Standard Names. (line 605)
  41722. * 'rotrM3' instruction pattern: Standard Names. (line 605)
  41723. * 'roundM2' instruction pattern: Standard Names. (line 832)
  41724. * ROUND_DIV_EXPR: Unary and Binary Expressions.
  41725. (line 6)
  41726. * ROUND_MOD_EXPR: Unary and Binary Expressions.
  41727. (line 6)
  41728. * ROUND_TYPE_ALIGN: Storage Layout. (line 447)
  41729. * RSHIFT_EXPR: Unary and Binary Expressions.
  41730. (line 6)
  41731. * 'rsqrtM2' instruction pattern: Standard Names. (line 633)
  41732. * RTL addition: Arithmetic. (line 14)
  41733. * RTL addition with signed saturation: Arithmetic. (line 14)
  41734. * RTL addition with unsigned saturation: Arithmetic. (line 14)
  41735. * RTL classes: RTL Classes. (line 6)
  41736. * RTL comparison: Arithmetic. (line 46)
  41737. * RTL comparison operations: Comparisons. (line 6)
  41738. * RTL constant expression types: Constants. (line 6)
  41739. * RTL constants: Constants. (line 6)
  41740. * RTL declarations: RTL Declarations. (line 6)
  41741. * RTL difference: Arithmetic. (line 38)
  41742. * RTL expression: RTL Objects. (line 6)
  41743. * RTL expressions for arithmetic: Arithmetic. (line 6)
  41744. * RTL format: RTL Classes. (line 72)
  41745. * RTL format characters: RTL Classes. (line 77)
  41746. * RTL function-call insns: Calls. (line 6)
  41747. * RTL insn template: RTL Template. (line 6)
  41748. * RTL integers: RTL Objects. (line 6)
  41749. * RTL memory expressions: Regs and Memory. (line 6)
  41750. * RTL object types: RTL Objects. (line 6)
  41751. * RTL postdecrement: Incdec. (line 6)
  41752. * RTL postincrement: Incdec. (line 6)
  41753. * RTL predecrement: Incdec. (line 6)
  41754. * RTL preincrement: Incdec. (line 6)
  41755. * RTL register expressions: Regs and Memory. (line 6)
  41756. * RTL representation: RTL. (line 6)
  41757. * RTL side effect expressions: Side Effects. (line 6)
  41758. * RTL strings: RTL Objects. (line 6)
  41759. * RTL structure sharing assumptions: Sharing. (line 6)
  41760. * RTL subtraction: Arithmetic. (line 38)
  41761. * RTL subtraction with signed saturation: Arithmetic. (line 38)
  41762. * RTL subtraction with unsigned saturation: Arithmetic. (line 38)
  41763. * RTL sum: Arithmetic. (line 14)
  41764. * RTL vectors: RTL Objects. (line 6)
  41765. * RTL_CONST_CALL_P: Flags. (line 19)
  41766. * RTL_CONST_OR_PURE_CALL_P: Flags. (line 29)
  41767. * RTL_LOOPING_CONST_OR_PURE_CALL_P: Flags. (line 33)
  41768. * RTL_PURE_CALL_P: Flags. (line 24)
  41769. * RTX (See RTL): RTL Objects. (line 6)
  41770. * RTX codes, classes of: RTL Classes. (line 6)
  41771. * RTX_FRAME_RELATED_P: Flags. (line 107)
  41772. * run-time conventions: Interface. (line 6)
  41773. * run-time target specification: Run-time Target. (line 6)
  41774. * 's' in constraint: Simple Constraints. (line 100)
  41775. * SAD_EXPR: Vectors. (line 6)
  41776. * same_type_p: Types. (line 86)
  41777. * SAmode: Machine Modes. (line 150)
  41778. * 'satfractMN2' instruction pattern: Standard Names. (line 1163)
  41779. * 'satfractunsMN2' instruction pattern: Standard Names. (line 1176)
  41780. * satisfies_constraint_: C Constraint Interface.
  41781. (line 36)
  41782. * sat_fract: Conversions. (line 90)
  41783. * SAVE_EXPR: Unary and Binary Expressions.
  41784. (line 6)
  41785. * 'save_stack_block' instruction pattern: Standard Names. (line 1564)
  41786. * 'save_stack_function' instruction pattern: Standard Names. (line 1564)
  41787. * 'save_stack_nonlocal' instruction pattern: Standard Names. (line 1564)
  41788. * SBSS_SECTION_ASM_OP: Sections. (line 75)
  41789. * Scalar evolutions: Scalar evolutions. (line 6)
  41790. * scalars, returned as values: Scalar Return. (line 6)
  41791. * 'scalbM3' instruction pattern: Standard Names. (line 660)
  41792. * SCHED_GROUP_P: Flags. (line 148)
  41793. * SCmode: Machine Modes. (line 199)
  41794. * scratch: Regs and Memory. (line 294)
  41795. * scratch operands: Regs and Memory. (line 294)
  41796. * 'scratch', RTL sharing: Sharing. (line 35)
  41797. * scratch_operand: Machine-Independent Predicates.
  41798. (line 49)
  41799. * SDATA_SECTION_ASM_OP: Sections. (line 57)
  41800. * SDB_ALLOW_FORWARD_REFERENCES: SDB and DWARF. (line 128)
  41801. * SDB_ALLOW_UNKNOWN_REFERENCES: SDB and DWARF. (line 123)
  41802. * SDB_DEBUGGING_INFO: SDB and DWARF. (line 8)
  41803. * SDB_DELIM: SDB and DWARF. (line 116)
  41804. * SDB_OUTPUT_SOURCE_LINE: SDB and DWARF. (line 133)
  41805. * SDmode: Machine Modes. (line 88)
  41806. * 'sdot_prodM' instruction pattern: Standard Names. (line 409)
  41807. * search options: Including Patterns. (line 47)
  41808. * SECONDARY_INPUT_RELOAD_CLASS: Register Classes. (line 391)
  41809. * SECONDARY_MEMORY_NEEDED: Register Classes. (line 447)
  41810. * SECONDARY_MEMORY_NEEDED_MODE: Register Classes. (line 466)
  41811. * SECONDARY_MEMORY_NEEDED_RTX: Register Classes. (line 457)
  41812. * SECONDARY_OUTPUT_RELOAD_CLASS: Register Classes. (line 392)
  41813. * SECONDARY_RELOAD_CLASS: Register Classes. (line 390)
  41814. * SELECT_CC_MODE: MODE_CC Condition Codes.
  41815. (line 6)
  41816. * sequence: Side Effects. (line 258)
  41817. * Sequence iterators: Sequence iterators. (line 6)
  41818. * set: Side Effects. (line 15)
  41819. * 'set' and '/f': Flags. (line 107)
  41820. * 'setmemM' instruction pattern: Standard Names. (line 1027)
  41821. * SETUP_FRAME_ADDRESSES: Frame Layout. (line 96)
  41822. * SET_ASM_OP: Label Output. (line 451)
  41823. * SET_ASM_OP <1>: Label Output. (line 462)
  41824. * set_attr: Tagging Insns. (line 31)
  41825. * set_attr_alternative: Tagging Insns. (line 49)
  41826. * set_bb_seq: GIMPLE sequences. (line 75)
  41827. * SET_DEST: Side Effects. (line 69)
  41828. * SET_IS_RETURN_P: Flags. (line 157)
  41829. * SET_LABEL_KIND: Insns. (line 146)
  41830. * set_optab_libfunc: Library Calls. (line 15)
  41831. * SET_RATIO: Costs. (line 237)
  41832. * SET_SRC: Side Effects. (line 69)
  41833. * 'set_thread_pointerMODE' instruction pattern: Standard Names.
  41834. (line 2119)
  41835. * SET_TYPE_STRUCTURAL_EQUALITY: Types. (line 6)
  41836. * SET_TYPE_STRUCTURAL_EQUALITY <1>: Types. (line 81)
  41837. * SFmode: Machine Modes. (line 69)
  41838. * sharing of RTL components: Sharing. (line 6)
  41839. * shift: Arithmetic. (line 173)
  41840. * SHIFT_COUNT_TRUNCATED: Misc. (line 133)
  41841. * SHLIB_SUFFIX: Macros for Initialization.
  41842. (line 133)
  41843. * SHORT_ACCUM_TYPE_SIZE: Type Layout. (line 82)
  41844. * SHORT_FRACT_TYPE_SIZE: Type Layout. (line 62)
  41845. * SHORT_IMMEDIATES_SIGN_EXTEND: Misc. (line 107)
  41846. * SHORT_TYPE_SIZE: Type Layout. (line 15)
  41847. * shrink-wrapping separate components: Shrink-wrapping separate components.
  41848. (line 6)
  41849. * 'sibcall_epilogue' instruction pattern: Standard Names. (line 1771)
  41850. * sibling call: Edges. (line 121)
  41851. * SIBLING_CALL_P: Flags. (line 161)
  41852. * signed division: Arithmetic. (line 116)
  41853. * signed division with signed saturation: Arithmetic. (line 116)
  41854. * signed maximum: Arithmetic. (line 141)
  41855. * signed minimum: Arithmetic. (line 141)
  41856. * 'significandM2' instruction pattern: Standard Names. (line 792)
  41857. * sign_extend: Conversions. (line 23)
  41858. * sign_extract: Bit-Fields. (line 8)
  41859. * 'sign_extract', canonicalization of: Insn Canonicalizations.
  41860. (line 87)
  41861. * SIG_ATOMIC_TYPE: Type Layout. (line 208)
  41862. * SImode: Machine Modes. (line 37)
  41863. * simple constraints: Simple Constraints. (line 6)
  41864. * simple_return: Side Effects. (line 86)
  41865. * 'simple_return' instruction pattern: Standard Names. (line 1427)
  41866. * 'sincosM3' instruction pattern: Standard Names. (line 688)
  41867. * 'sinM2' instruction pattern: Standard Names. (line 682)
  41868. * SIZETYPE: Type Layout. (line 147)
  41869. * SIZE_ASM_OP: Label Output. (line 33)
  41870. * SIZE_TYPE: Type Layout. (line 131)
  41871. * skip: GTY Options. (line 76)
  41872. * SLOW_BYTE_ACCESS: Costs. (line 117)
  41873. * SLOW_UNALIGNED_ACCESS: Costs. (line 132)
  41874. * smax: Arithmetic. (line 141)
  41875. * smin: Arithmetic. (line 141)
  41876. * sms, swing, software pipelining: RTL passes. (line 123)
  41877. * 'smulM3_highpart' instruction pattern: Standard Names. (line 518)
  41878. * soft float library: Soft float library routines.
  41879. (line 6)
  41880. * special: GTY Options. (line 237)
  41881. * special predicates: Predicates. (line 31)
  41882. * SPECS: Target Fragment. (line 192)
  41883. * speed of instructions: Costs. (line 6)
  41884. * splitting instructions: Insn Splitting. (line 6)
  41885. * split_block: Maintaining the CFG.
  41886. (line 96)
  41887. * SQmode: Machine Modes. (line 114)
  41888. * sqrt: Arithmetic. (line 206)
  41889. * 'sqrtM2' instruction pattern: Standard Names. (line 627)
  41890. * square root: Arithmetic. (line 206)
  41891. * SSA: SSA. (line 6)
  41892. * 'ssaddM3' instruction pattern: Standard Names. (line 315)
  41893. * 'ssadM' instruction pattern: Standard Names. (line 418)
  41894. * 'ssashlM3' instruction pattern: Standard Names. (line 593)
  41895. * SSA_NAME_DEF_STMT: SSA. (line 184)
  41896. * SSA_NAME_VERSION: SSA. (line 189)
  41897. * 'ssdivM3' instruction pattern: Standard Names. (line 315)
  41898. * 'ssmaddMN4' instruction pattern: Standard Names. (line 541)
  41899. * 'ssmsubMN4' instruction pattern: Standard Names. (line 565)
  41900. * 'ssmulM3' instruction pattern: Standard Names. (line 315)
  41901. * 'ssnegM2' instruction pattern: Standard Names. (line 617)
  41902. * 'sssubM3' instruction pattern: Standard Names. (line 315)
  41903. * ss_abs: Arithmetic. (line 200)
  41904. * ss_ashift: Arithmetic. (line 173)
  41905. * ss_div: Arithmetic. (line 116)
  41906. * ss_minus: Arithmetic. (line 38)
  41907. * ss_mult: Arithmetic. (line 93)
  41908. * ss_neg: Arithmetic. (line 82)
  41909. * ss_plus: Arithmetic. (line 14)
  41910. * ss_truncate: Conversions. (line 43)
  41911. * stack arguments: Stack Arguments. (line 6)
  41912. * stack frame layout: Frame Layout. (line 6)
  41913. * stack smashing protection: Stack Smashing Protection.
  41914. (line 6)
  41915. * STACK_ALIGNMENT_NEEDED: Frame Layout. (line 43)
  41916. * STACK_BOUNDARY: Storage Layout. (line 156)
  41917. * STACK_CHECK_BUILTIN: Stack Checking. (line 31)
  41918. * STACK_CHECK_FIXED_FRAME_SIZE: Stack Checking. (line 83)
  41919. * STACK_CHECK_MAX_FRAME_SIZE: Stack Checking. (line 74)
  41920. * STACK_CHECK_MAX_VAR_SIZE: Stack Checking. (line 90)
  41921. * STACK_CHECK_MOVING_SP: Stack Checking. (line 53)
  41922. * STACK_CHECK_PROBE_INTERVAL_EXP: Stack Checking. (line 45)
  41923. * STACK_CHECK_PROTECT: Stack Checking. (line 62)
  41924. * STACK_CHECK_STATIC_BUILTIN: Stack Checking. (line 38)
  41925. * STACK_DYNAMIC_OFFSET: Frame Layout. (line 69)
  41926. * 'STACK_DYNAMIC_OFFSET' and virtual registers: Regs and Memory.
  41927. (line 83)
  41928. * STACK_GROWS_DOWNWARD: Frame Layout. (line 8)
  41929. * STACK_PARMS_IN_REG_PARM_AREA: Stack Arguments. (line 89)
  41930. * STACK_POINTER_OFFSET: Frame Layout. (line 53)
  41931. * 'STACK_POINTER_OFFSET' and virtual registers: Regs and Memory.
  41932. (line 93)
  41933. * STACK_POINTER_REGNUM: Frame Registers. (line 8)
  41934. * 'STACK_POINTER_REGNUM' and virtual registers: Regs and Memory.
  41935. (line 83)
  41936. * stack_pointer_rtx: Frame Registers. (line 104)
  41937. * 'stack_protect_set' instruction pattern: Standard Names. (line 2129)
  41938. * 'stack_protect_test' instruction pattern: Standard Names. (line 2139)
  41939. * STACK_PUSH_CODE: Frame Layout. (line 12)
  41940. * STACK_REGS: Stack Registers. (line 19)
  41941. * STACK_REG_COVER_CLASS: Stack Registers. (line 22)
  41942. * STACK_SAVEAREA_MODE: Storage Layout. (line 463)
  41943. * STACK_SIZE_MODE: Storage Layout. (line 474)
  41944. * STACK_SLOT_ALIGNMENT: Storage Layout. (line 295)
  41945. * standard pattern names: Standard Names. (line 6)
  41946. * STANDARD_STARTFILE_PREFIX: Driver. (line 278)
  41947. * STANDARD_STARTFILE_PREFIX_1: Driver. (line 285)
  41948. * STANDARD_STARTFILE_PREFIX_2: Driver. (line 292)
  41949. * STARTFILE_SPEC: Driver. (line 147)
  41950. * STARTING_FRAME_OFFSET: Frame Layout. (line 34)
  41951. * 'STARTING_FRAME_OFFSET' and virtual registers: Regs and Memory.
  41952. (line 74)
  41953. * Statement and operand traversals: Statement and operand traversals.
  41954. (line 6)
  41955. * Statement Sequences: Statement Sequences.
  41956. (line 6)
  41957. * Statements: Statements. (line 6)
  41958. * statements: Function Properties.
  41959. (line 6)
  41960. * statements <1>: Statements for C++. (line 6)
  41961. * Static profile estimation: Profile information.
  41962. (line 24)
  41963. * static single assignment: SSA. (line 6)
  41964. * STATIC_CHAIN_INCOMING_REGNUM: Frame Registers. (line 77)
  41965. * STATIC_CHAIN_REGNUM: Frame Registers. (line 76)
  41966. * 'stdarg.h' and register arguments: Register Arguments. (line 51)
  41967. * STDC_0_IN_SYSTEM_HEADERS: Misc. (line 371)
  41968. * STMT_EXPR: Unary and Binary Expressions.
  41969. (line 6)
  41970. * STMT_IS_FULL_EXPR_P: Statements for C++. (line 22)
  41971. * storage layout: Storage Layout. (line 6)
  41972. * STORE_FLAG_VALUE: Misc. (line 222)
  41973. * STORE_MAX_PIECES: Costs. (line 215)
  41974. * 'store_multiple' instruction pattern: Standard Names. (line 159)
  41975. * strcpy: Storage Layout. (line 248)
  41976. * STRICT_ALIGNMENT: Storage Layout. (line 345)
  41977. * strict_low_part: RTL Declarations. (line 9)
  41978. * strict_memory_address_p: Addressing Modes. (line 186)
  41979. * STRING_CST: Constant expressions.
  41980. (line 6)
  41981. * STRING_POOL_ADDRESS_P: Flags. (line 165)
  41982. * 'strlenM' instruction pattern: Standard Names. (line 1098)
  41983. * structure value address: Aggregate Return. (line 6)
  41984. * structures, returning: Interface. (line 10)
  41985. * STRUCTURE_SIZE_BOUNDARY: Storage Layout. (line 337)
  41986. * 'subM3' instruction pattern: Standard Names. (line 315)
  41987. * SUBOBJECT: Statements for C++. (line 6)
  41988. * SUBOBJECT_CLEANUP: Statements for C++. (line 6)
  41989. * subreg: Regs and Memory. (line 97)
  41990. * 'subreg' and '/s': Flags. (line 187)
  41991. * 'subreg' and '/u': Flags. (line 180)
  41992. * 'subreg' and '/u' and '/v': Flags. (line 170)
  41993. * 'subreg', in 'strict_low_part': RTL Declarations. (line 9)
  41994. * SUBREG_BYTE: Regs and Memory. (line 285)
  41995. * SUBREG_PROMOTED_UNSIGNED_P: Flags. (line 170)
  41996. * SUBREG_PROMOTED_UNSIGNED_SET: Flags. (line 180)
  41997. * SUBREG_PROMOTED_VAR_P: Flags. (line 187)
  41998. * SUBREG_REG: Regs and Memory. (line 285)
  41999. * subst iterators in '.md' files: Subst Iterators. (line 6)
  42000. * 'subvM4' instruction pattern: Standard Names. (line 331)
  42001. * SUCCESS_EXIT_CODE: Host Misc. (line 12)
  42002. * SUPPORTS_INIT_PRIORITY: Macros for Initialization.
  42003. (line 57)
  42004. * SUPPORTS_ONE_ONLY: Label Output. (line 290)
  42005. * SUPPORTS_WEAK: Label Output. (line 264)
  42006. * SWITCHABLE_TARGET: Run-time Target. (line 164)
  42007. * SWITCH_BODY: Statements for C++. (line 6)
  42008. * SWITCH_COND: Statements for C++. (line 6)
  42009. * SWITCH_STMT: Statements for C++. (line 6)
  42010. * symbolic label: Sharing. (line 20)
  42011. * SYMBOL_FLAG_ANCHOR: Special Accessors. (line 117)
  42012. * SYMBOL_FLAG_EXTERNAL: Special Accessors. (line 99)
  42013. * SYMBOL_FLAG_FUNCTION: Special Accessors. (line 92)
  42014. * SYMBOL_FLAG_HAS_BLOCK_INFO: Special Accessors. (line 113)
  42015. * SYMBOL_FLAG_LOCAL: Special Accessors. (line 95)
  42016. * SYMBOL_FLAG_SMALL: Special Accessors. (line 104)
  42017. * SYMBOL_FLAG_TLS_SHIFT: Special Accessors. (line 108)
  42018. * symbol_ref: Constants. (line 117)
  42019. * 'symbol_ref' and '/f': Flags. (line 165)
  42020. * 'symbol_ref' and '/i': Flags. (line 202)
  42021. * 'symbol_ref' and '/u': Flags. (line 10)
  42022. * 'symbol_ref' and '/v': Flags. (line 206)
  42023. * 'symbol_ref', RTL sharing: Sharing. (line 20)
  42024. * SYMBOL_REF_ANCHOR_P: Special Accessors. (line 117)
  42025. * SYMBOL_REF_BLOCK: Special Accessors. (line 130)
  42026. * SYMBOL_REF_BLOCK_OFFSET: Special Accessors. (line 135)
  42027. * SYMBOL_REF_CONSTANT: Special Accessors. (line 78)
  42028. * SYMBOL_REF_DATA: Special Accessors. (line 82)
  42029. * SYMBOL_REF_DECL: Special Accessors. (line 67)
  42030. * SYMBOL_REF_EXTERNAL_P: Special Accessors. (line 99)
  42031. * SYMBOL_REF_FLAG: Flags. (line 206)
  42032. * 'SYMBOL_REF_FLAG', in 'TARGET_ENCODE_SECTION_INFO': Sections.
  42033. (line 282)
  42034. * SYMBOL_REF_FLAGS: Special Accessors. (line 86)
  42035. * SYMBOL_REF_FUNCTION_P: Special Accessors. (line 92)
  42036. * SYMBOL_REF_HAS_BLOCK_INFO_P: Special Accessors. (line 113)
  42037. * SYMBOL_REF_LOCAL_P: Special Accessors. (line 95)
  42038. * SYMBOL_REF_SMALL_P: Special Accessors. (line 104)
  42039. * SYMBOL_REF_TLS_MODEL: Special Accessors. (line 108)
  42040. * SYMBOL_REF_USED: Flags. (line 197)
  42041. * SYMBOL_REF_WEAK: Flags. (line 202)
  42042. * 'sync_addMODE' instruction pattern: Standard Names. (line 1869)
  42043. * 'sync_andMODE' instruction pattern: Standard Names. (line 1869)
  42044. * 'sync_compare_and_swapMODE' instruction pattern: Standard Names.
  42045. (line 1829)
  42046. * 'sync_iorMODE' instruction pattern: Standard Names. (line 1869)
  42047. * 'sync_lock_releaseMODE' instruction pattern: Standard Names.
  42048. (line 1934)
  42049. * 'sync_lock_test_and_setMODE' instruction pattern: Standard Names.
  42050. (line 1908)
  42051. * 'sync_nandMODE' instruction pattern: Standard Names. (line 1869)
  42052. * 'sync_new_addMODE' instruction pattern: Standard Names. (line 1901)
  42053. * 'sync_new_andMODE' instruction pattern: Standard Names. (line 1901)
  42054. * 'sync_new_iorMODE' instruction pattern: Standard Names. (line 1901)
  42055. * 'sync_new_nandMODE' instruction pattern: Standard Names. (line 1901)
  42056. * 'sync_new_subMODE' instruction pattern: Standard Names. (line 1901)
  42057. * 'sync_new_xorMODE' instruction pattern: Standard Names. (line 1901)
  42058. * 'sync_old_addMODE' instruction pattern: Standard Names. (line 1884)
  42059. * 'sync_old_andMODE' instruction pattern: Standard Names. (line 1884)
  42060. * 'sync_old_iorMODE' instruction pattern: Standard Names. (line 1884)
  42061. * 'sync_old_nandMODE' instruction pattern: Standard Names. (line 1884)
  42062. * 'sync_old_subMODE' instruction pattern: Standard Names. (line 1884)
  42063. * 'sync_old_xorMODE' instruction pattern: Standard Names. (line 1884)
  42064. * 'sync_subMODE' instruction pattern: Standard Names. (line 1869)
  42065. * 'sync_xorMODE' instruction pattern: Standard Names. (line 1869)
  42066. * SYSROOT_HEADERS_SUFFIX_SPEC: Driver. (line 176)
  42067. * SYSROOT_SUFFIX_SPEC: Driver. (line 171)
  42068. * 't-TARGET': Target Fragment. (line 6)
  42069. * table jump: Basic Blocks. (line 67)
  42070. * 'tablejump' instruction pattern: Standard Names. (line 1500)
  42071. * tag: GTY Options. (line 90)
  42072. * tagging insns: Tagging Insns. (line 6)
  42073. * tail calls: Tail Calls. (line 6)
  42074. * TAmode: Machine Modes. (line 158)
  42075. * 'tanM2' instruction pattern: Standard Names. (line 699)
  42076. * target attributes: Target Attributes. (line 6)
  42077. * target description macros: Target Macros. (line 6)
  42078. * target functions: Target Structure. (line 6)
  42079. * target hooks: Target Structure. (line 6)
  42080. * target makefile fragment: Target Fragment. (line 6)
  42081. * target specifications: Run-time Target. (line 6)
  42082. * targetm: Target Structure. (line 6)
  42083. * targets, makefile: Makefile. (line 6)
  42084. * TARGET_ABSOLUTE_BIGGEST_ALIGNMENT: Storage Layout. (line 185)
  42085. * TARGET_ADDITIONAL_ALLOCNO_CLASS_P: Register Classes. (line 620)
  42086. * TARGET_ADDRESS_COST: Costs. (line 344)
  42087. * TARGET_ADDR_SPACE_ADDRESS_MODE: Named Address Spaces.
  42088. (line 42)
  42089. * TARGET_ADDR_SPACE_CONVERT: Named Address Spaces.
  42090. (line 89)
  42091. * TARGET_ADDR_SPACE_DEBUG: Named Address Spaces.
  42092. (line 99)
  42093. * TARGET_ADDR_SPACE_DIAGNOSE_USAGE: Named Address Spaces.
  42094. (line 103)
  42095. * TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P: Named Address Spaces.
  42096. (line 59)
  42097. * TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS: Named Address Spaces.
  42098. (line 67)
  42099. * TARGET_ADDR_SPACE_POINTER_MODE: Named Address Spaces.
  42100. (line 36)
  42101. * TARGET_ADDR_SPACE_SUBSET_P: Named Address Spaces.
  42102. (line 74)
  42103. * TARGET_ADDR_SPACE_VALID_POINTER_MODE: Named Address Spaces.
  42104. (line 48)
  42105. * TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID: Named Address Spaces.
  42106. (line 83)
  42107. * TARGET_ALIGN_ANON_BITFIELD: Storage Layout. (line 422)
  42108. * TARGET_ALLOCATE_INITIAL_VALUE: Misc. (line 831)
  42109. * TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS: Misc. (line 1109)
  42110. * TARGET_ALWAYS_STRIP_DOTDOT: Driver. (line 250)
  42111. * TARGET_ARG_PARTIAL_BYTES: Register Arguments. (line 99)
  42112. * TARGET_ARM_EABI_UNWINDER: Exception Region Output.
  42113. (line 134)
  42114. * TARGET_ARRAY_MODE_SUPPORTED_P: Register Arguments. (line 349)
  42115. * TARGET_ASAN_SHADOW_OFFSET: Misc. (line 1137)
  42116. * TARGET_ASM_ALIGNED_DI_OP: Data Output. (line 9)
  42117. * TARGET_ASM_ALIGNED_HI_OP: Data Output. (line 7)
  42118. * TARGET_ASM_ALIGNED_SI_OP: Data Output. (line 8)
  42119. * TARGET_ASM_ALIGNED_TI_OP: Data Output. (line 10)
  42120. * TARGET_ASM_ASSEMBLE_UNDEFINED_DECL: Label Output. (line 231)
  42121. * TARGET_ASM_ASSEMBLE_VISIBILITY: Label Output. (line 301)
  42122. * TARGET_ASM_BYTE_OP: Data Output. (line 6)
  42123. * TARGET_ASM_CAN_OUTPUT_MI_THUNK: Function Entry. (line 202)
  42124. * TARGET_ASM_CLOSE_PAREN: Data Output. (line 133)
  42125. * TARGET_ASM_CODE_END: File Framework. (line 57)
  42126. * TARGET_ASM_CONSTRUCTOR: Macros for Initialization.
  42127. (line 68)
  42128. * TARGET_ASM_DECLARE_CONSTANT_NAME: Label Output. (line 177)
  42129. * TARGET_ASM_DECL_END: Data Output. (line 38)
  42130. * TARGET_ASM_DESTRUCTOR: Macros for Initialization.
  42131. (line 82)
  42132. * TARGET_ASM_ELF_FLAGS_NUMERIC: File Framework. (line 121)
  42133. * TARGET_ASM_EMIT_EXCEPT_PERSONALITY: Dispatch Tables. (line 80)
  42134. * TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL: Dispatch Tables. (line 73)
  42135. * TARGET_ASM_EMIT_UNWIND_LABEL: Dispatch Tables. (line 61)
  42136. * TARGET_ASM_EXTERNAL_LIBCALL: Label Output. (line 337)
  42137. * TARGET_ASM_FILE_END: File Framework. (line 35)
  42138. * TARGET_ASM_FILE_START: File Framework. (line 8)
  42139. * TARGET_ASM_FILE_START_APP_OFF: File Framework. (line 16)
  42140. * TARGET_ASM_FILE_START_FILE_DIRECTIVE: File Framework. (line 29)
  42141. * TARGET_ASM_FINAL_POSTSCAN_INSN: Instruction Output. (line 82)
  42142. * TARGET_ASM_FUNCTION_BEGIN_EPILOGUE: Function Entry. (line 59)
  42143. * TARGET_ASM_FUNCTION_END_PROLOGUE: Function Entry. (line 53)
  42144. * TARGET_ASM_FUNCTION_EPILOGUE: Function Entry. (line 65)
  42145. * TARGET_ASM_FUNCTION_PROLOGUE: Function Entry. (line 9)
  42146. * TARGET_ASM_FUNCTION_RODATA_SECTION: Sections. (line 218)
  42147. * TARGET_ASM_FUNCTION_SECTION: File Framework. (line 133)
  42148. * TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS: File Framework.
  42149. (line 143)
  42150. * TARGET_ASM_GLOBALIZE_DECL_NAME: Label Output. (line 222)
  42151. * TARGET_ASM_GLOBALIZE_LABEL: Label Output. (line 213)
  42152. * TARGET_ASM_INIT_SECTIONS: Sections. (line 164)
  42153. * TARGET_ASM_INTEGER: Data Output. (line 25)
  42154. * TARGET_ASM_INTERNAL_LABEL: Label Output. (line 380)
  42155. * TARGET_ASM_JUMP_ALIGN_MAX_SKIP: Alignment Output. (line 21)
  42156. * TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP: Alignment Output.
  42157. (line 34)
  42158. * TARGET_ASM_LABEL_ALIGN_MAX_SKIP: Alignment Output. (line 68)
  42159. * TARGET_ASM_LOOP_ALIGN_MAX_SKIP: Alignment Output. (line 53)
  42160. * TARGET_ASM_LTO_END: File Framework. (line 52)
  42161. * TARGET_ASM_LTO_START: File Framework. (line 47)
  42162. * TARGET_ASM_MARK_DECL_PRESERVED: Label Output. (line 343)
  42163. * TARGET_ASM_MERGEABLE_RODATA_PREFIX: Sections. (line 226)
  42164. * TARGET_ASM_NAMED_SECTION: File Framework. (line 113)
  42165. * TARGET_ASM_OPEN_PAREN: Data Output. (line 132)
  42166. * TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA: Data Output. (line 42)
  42167. * TARGET_ASM_OUTPUT_ANCHOR: Anchored Addresses. (line 42)
  42168. * TARGET_ASM_OUTPUT_DWARF_DTPREL: SDB and DWARF. (line 104)
  42169. * TARGET_ASM_OUTPUT_IDENT: File Framework. (line 100)
  42170. * TARGET_ASM_OUTPUT_MI_THUNK: Function Entry. (line 160)
  42171. * TARGET_ASM_OUTPUT_SOURCE_FILENAME: File Framework. (line 91)
  42172. * TARGET_ASM_RECORD_GCC_SWITCHES: File Framework. (line 174)
  42173. * TARGET_ASM_RECORD_GCC_SWITCHES_SECTION: File Framework. (line 219)
  42174. * TARGET_ASM_RELOC_RW_MASK: Sections. (line 173)
  42175. * TARGET_ASM_SELECT_RTX_SECTION: Sections. (line 235)
  42176. * TARGET_ASM_SELECT_SECTION: Sections. (line 184)
  42177. * TARGET_ASM_TM_CLONE_TABLE_SECTION: Sections. (line 231)
  42178. * TARGET_ASM_TRAMPOLINE_TEMPLATE: Trampolines. (line 28)
  42179. * TARGET_ASM_TTYPE: Exception Region Output.
  42180. (line 128)
  42181. * TARGET_ASM_UNALIGNED_DI_OP: Data Output. (line 13)
  42182. * TARGET_ASM_UNALIGNED_HI_OP: Data Output. (line 11)
  42183. * TARGET_ASM_UNALIGNED_SI_OP: Data Output. (line 12)
  42184. * TARGET_ASM_UNALIGNED_TI_OP: Data Output. (line 14)
  42185. * TARGET_ASM_UNIQUE_SECTION: Sections. (line 206)
  42186. * TARGET_ASM_UNWIND_EMIT: Dispatch Tables. (line 87)
  42187. * TARGET_ASM_UNWIND_EMIT_BEFORE_INSN: Dispatch Tables. (line 93)
  42188. * TARGET_ATOMIC_ALIGN_FOR_MODE: Misc. (line 1156)
  42189. * TARGET_ATOMIC_ASSIGN_EXPAND_FENV: Misc. (line 1162)
  42190. * TARGET_ATOMIC_TEST_AND_SET_TRUEVAL: Misc. (line 1147)
  42191. * TARGET_ATTRIBUTE_TABLE: Target Attributes. (line 10)
  42192. * TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P: Target Attributes. (line 17)
  42193. * TARGET_BINDS_LOCAL_P: Sections. (line 313)
  42194. * TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED: Misc. (line 928)
  42195. * TARGET_BRANCH_TARGET_REGISTER_CLASS: Misc. (line 921)
  42196. * TARGET_BUILD_BUILTIN_VA_LIST: Register Arguments. (line 289)
  42197. * TARGET_BUILTIN_CHKP_FUNCTION: Misc. (line 646)
  42198. * TARGET_BUILTIN_DECL: Misc. (line 625)
  42199. * TARGET_BUILTIN_RECIPROCAL: Addressing Modes. (line 261)
  42200. * TARGET_BUILTIN_SETJMP_FRAME_VALUE: Frame Layout. (line 103)
  42201. * TARGET_CALLEE_COPIES: Register Arguments. (line 131)
  42202. * TARGET_CALL_ARGS: Varargs. (line 123)
  42203. * TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS: Miscellaneous Register Hooks.
  42204. (line 6)
  42205. * TARGET_CANNOT_FORCE_CONST_MEM: Addressing Modes. (line 234)
  42206. * TARGET_CANNOT_MODIFY_JUMPS_P: Misc. (line 908)
  42207. * TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P: Register Classes. (line 597)
  42208. * TARGET_CANONICALIZE_COMPARISON: MODE_CC Condition Codes.
  42209. (line 55)
  42210. * TARGET_CANONICAL_VA_LIST_TYPE: Register Arguments. (line 310)
  42211. * TARGET_CAN_ELIMINATE: Elimination. (line 58)
  42212. * TARGET_CAN_FOLLOW_JUMP: Misc. (line 817)
  42213. * TARGET_CAN_INLINE_P: Target Attributes. (line 165)
  42214. * TARGET_CAN_USE_DOLOOP_P: Misc. (line 781)
  42215. * TARGET_CASE_VALUES_THRESHOLD: Misc. (line 46)
  42216. * TARGET_CC_MODES_COMPATIBLE: MODE_CC Condition Codes.
  42217. (line 120)
  42218. * TARGET_CHECK_PCH_TARGET_FLAGS: PCH Target. (line 26)
  42219. * TARGET_CHECK_STRING_OBJECT_FORMAT_ARG: Run-time Target. (line 119)
  42220. * TARGET_CHKP_BOUND_MODE: Misc. (line 718)
  42221. * TARGET_CHKP_BOUND_TYPE: Misc. (line 716)
  42222. * TARGET_CHKP_FUNCTION_VALUE_BOUNDS: Varargs. (line 182)
  42223. * TARGET_CHKP_INITIALIZE_BOUNDS: Misc. (line 724)
  42224. * TARGET_CHKP_MAKE_BOUNDS_CONSTANT: Misc. (line 720)
  42225. * TARGET_CLASS_LIKELY_SPILLED_P: Register Classes. (line 489)
  42226. * TARGET_CLASS_MAX_NREGS: Register Classes. (line 505)
  42227. * TARGET_COMMUTATIVE_P: Misc. (line 824)
  42228. * TARGET_COMPARE_BY_PIECES_BRANCH_RATIO: Costs. (line 200)
  42229. * TARGET_COMPARE_VERSION_PRIORITY: Misc. (line 758)
  42230. * TARGET_COMPUTE_FRAME_LAYOUT: Elimination. (line 74)
  42231. * TARGET_COMPUTE_PRESSURE_CLASSES: Register Classes. (line 635)
  42232. * TARGET_COMP_TYPE_ATTRIBUTES: Target Attributes. (line 25)
  42233. * TARGET_CONDITIONAL_REGISTER_USAGE: Register Basics. (line 59)
  42234. * TARGET_CONST_ANCHOR: Misc. (line 1120)
  42235. * TARGET_CONST_NOT_OK_FOR_DEBUG_P: Addressing Modes. (line 230)
  42236. * TARGET_CONVERT_TO_TYPE: Misc. (line 1080)
  42237. * TARGET_CPU_CPP_BUILTINS: Run-time Target. (line 8)
  42238. * TARGET_CSTORE_MODE: Register Classes. (line 628)
  42239. * TARGET_CUSTOM_FUNCTION_DESCRIPTORS: Trampolines. (line 84)
  42240. * TARGET_CXX_ADJUST_CLASS_AT_DEFINITION: C++ ABI. (line 86)
  42241. * TARGET_CXX_CDTOR_RETURNS_THIS: C++ ABI. (line 37)
  42242. * TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT: C++ ABI. (line 61)
  42243. * TARGET_CXX_COOKIE_HAS_SIZE: C++ ABI. (line 24)
  42244. * TARGET_CXX_DECL_MANGLING_CONTEXT: C++ ABI. (line 92)
  42245. * TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY: C++ ABI. (line 52)
  42246. * TARGET_CXX_GET_COOKIE_SIZE: C++ ABI. (line 17)
  42247. * TARGET_CXX_GUARD_MASK_BIT: C++ ABI. (line 11)
  42248. * TARGET_CXX_GUARD_TYPE: C++ ABI. (line 6)
  42249. * TARGET_CXX_IMPLICIT_EXTERN_C: Misc. (line 394)
  42250. * TARGET_CXX_IMPORT_EXPORT_CLASS: C++ ABI. (line 28)
  42251. * TARGET_CXX_KEY_METHOD_MAY_BE_INLINE: C++ ABI. (line 42)
  42252. * TARGET_CXX_LIBRARY_RTTI_COMDAT: C++ ABI. (line 68)
  42253. * TARGET_CXX_USE_AEABI_ATEXIT: C++ ABI. (line 73)
  42254. * TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT: C++ ABI. (line 79)
  42255. * TARGET_C_EXCESS_PRECISION: Storage Layout. (line 109)
  42256. * TARGET_C_PREINCLUDE: Misc. (line 382)
  42257. * TARGET_DEBUG_UNWIND_INFO: SDB and DWARF. (line 36)
  42258. * TARGET_DECIMAL_FLOAT_SUPPORTED_P: Storage Layout. (line 527)
  42259. * TARGET_DECLSPEC: Target Attributes. (line 72)
  42260. * TARGET_DEFAULT_PACK_STRUCT: Misc. (line 467)
  42261. * TARGET_DEFAULT_SHORT_ENUMS: Type Layout. (line 123)
  42262. * TARGET_DEFAULT_TARGET_FLAGS: Run-time Target. (line 55)
  42263. * TARGET_DEFERRED_OUTPUT_DEFS: Label Output. (line 465)
  42264. * TARGET_DELAY_SCHED2: SDB and DWARF. (line 60)
  42265. * TARGET_DELAY_VARTRACK: SDB and DWARF. (line 64)
  42266. * TARGET_DELEGITIMIZE_ADDRESS: Addressing Modes. (line 221)
  42267. * TARGET_DIFFERENT_ADDR_DISPLACEMENT_P: Register Classes. (line 590)
  42268. * TARGET_DLLIMPORT_DECL_ATTRIBUTES: Target Attributes. (line 55)
  42269. * TARGET_DWARF_CALLING_CONVENTION: SDB and DWARF. (line 16)
  42270. * TARGET_DWARF_FRAME_REG_MODE: Exception Region Output.
  42271. (line 114)
  42272. * TARGET_DWARF_HANDLE_FRAME_UNSPEC: Frame Layout. (line 167)
  42273. * TARGET_DWARF_REGISTER_SPAN: Exception Region Output.
  42274. (line 105)
  42275. * TARGET_EDOM: Library Calls. (line 59)
  42276. * TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS: Emulated TLS. (line 67)
  42277. * TARGET_EMUTLS_GET_ADDRESS: Emulated TLS. (line 18)
  42278. * TARGET_EMUTLS_REGISTER_COMMON: Emulated TLS. (line 23)
  42279. * TARGET_EMUTLS_TMPL_PREFIX: Emulated TLS. (line 44)
  42280. * TARGET_EMUTLS_TMPL_SECTION: Emulated TLS. (line 35)
  42281. * TARGET_EMUTLS_VAR_ALIGN_FIXED: Emulated TLS. (line 62)
  42282. * TARGET_EMUTLS_VAR_FIELDS: Emulated TLS. (line 48)
  42283. * TARGET_EMUTLS_VAR_INIT: Emulated TLS. (line 55)
  42284. * TARGET_EMUTLS_VAR_PREFIX: Emulated TLS. (line 40)
  42285. * TARGET_EMUTLS_VAR_SECTION: Emulated TLS. (line 30)
  42286. * TARGET_ENCODE_SECTION_INFO: Sections. (line 256)
  42287. * 'TARGET_ENCODE_SECTION_INFO' and address validation: Addressing Modes.
  42288. (line 82)
  42289. * 'TARGET_ENCODE_SECTION_INFO' usage: Instruction Output. (line 127)
  42290. * TARGET_END_CALL_ARGS: Varargs. (line 137)
  42291. * TARGET_ENUM_VA_LIST_P: Register Arguments. (line 293)
  42292. * TARGET_EXCEPT_UNWIND_INFO: Exception Region Output.
  42293. (line 46)
  42294. * TARGET_EXECUTABLE_SUFFIX: Misc. (line 882)
  42295. * TARGET_EXPAND_BUILTIN: Misc. (line 635)
  42296. * TARGET_EXPAND_BUILTIN_SAVEREGS: Varargs. (line 64)
  42297. * TARGET_EXPAND_DIVMOD_LIBFUNC: Scheduling. (line 461)
  42298. * TARGET_EXPAND_TO_RTL_HOOK: Storage Layout. (line 533)
  42299. * TARGET_EXPR: Unary and Binary Expressions.
  42300. (line 6)
  42301. * TARGET_EXTRA_INCLUDES: Misc. (line 995)
  42302. * TARGET_EXTRA_LIVE_ON_ENTRY: Tail Calls. (line 20)
  42303. * TARGET_EXTRA_PRE_INCLUDES: Misc. (line 1002)
  42304. * TARGET_FIXED_CONDITION_CODE_REGS: MODE_CC Condition Codes.
  42305. (line 105)
  42306. * TARGET_FIXED_POINT_SUPPORTED_P: Storage Layout. (line 530)
  42307. * target_flags: Run-time Target. (line 51)
  42308. * TARGET_FLAGS_REGNUM: MODE_CC Condition Codes.
  42309. (line 133)
  42310. * TARGET_FLOATN_MODE: Register Arguments. (line 381)
  42311. * TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P: Run-time Target.
  42312. (line 183)
  42313. * TARGET_FN_ABI_VA_LIST: Register Arguments. (line 305)
  42314. * TARGET_FOLD_BUILTIN: Misc. (line 741)
  42315. * TARGET_FORMAT_TYPES: Misc. (line 1023)
  42316. * TARGET_FRAME_POINTER_REQUIRED: Elimination. (line 8)
  42317. * TARGET_FUNCTION_ARG: Register Arguments. (line 10)
  42318. * TARGET_FUNCTION_ARG_ADVANCE: Register Arguments. (line 202)
  42319. * TARGET_FUNCTION_ARG_BOUNDARY: Register Arguments. (line 256)
  42320. * TARGET_FUNCTION_ARG_ROUND_BOUNDARY: Register Arguments. (line 262)
  42321. * TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P: Target Attributes. (line 93)
  42322. * TARGET_FUNCTION_INCOMING_ARG: Register Arguments. (line 71)
  42323. * TARGET_FUNCTION_OK_FOR_SIBCALL: Tail Calls. (line 6)
  42324. * TARGET_FUNCTION_VALUE: Scalar Return. (line 9)
  42325. * TARGET_FUNCTION_VALUE_REGNO_P: Scalar Return. (line 96)
  42326. * TARGET_GENERATE_VERSION_DISPATCHER_BODY: Misc. (line 774)
  42327. * TARGET_GEN_CCMP_FIRST: Misc. (line 948)
  42328. * TARGET_GEN_CCMP_NEXT: Misc. (line 959)
  42329. * TARGET_GET_DRAP_RTX: Misc. (line 1103)
  42330. * TARGET_GET_FUNCTION_VERSIONS_DISPATCHER: Misc. (line 767)
  42331. * TARGET_GET_PCH_VALIDITY: PCH Target. (line 6)
  42332. * TARGET_GET_RAW_ARG_MODE: Aggregate Return. (line 81)
  42333. * TARGET_GET_RAW_RESULT_MODE: Aggregate Return. (line 76)
  42334. * TARGET_GIMPLE_FOLD_BUILTIN: Misc. (line 751)
  42335. * TARGET_GIMPLIFY_VA_ARG_EXPR: Register Arguments. (line 315)
  42336. * TARGET_GOACC_DIM_LIMIT: Addressing Modes. (line 446)
  42337. * TARGET_GOACC_FORK_JOIN: Addressing Modes. (line 450)
  42338. * TARGET_GOACC_REDUCTION: Addressing Modes. (line 461)
  42339. * TARGET_GOACC_VALIDATE_DIMS: Addressing Modes. (line 433)
  42340. * TARGET_HANDLE_C_OPTION: Run-time Target. (line 73)
  42341. * TARGET_HANDLE_OPTION: Run-time Target. (line 59)
  42342. * TARGET_HARD_REGNO_SCRATCH_OK: Values in Registers.
  42343. (line 141)
  42344. * TARGET_HAS_IFUNC_P: Misc. (line 1151)
  42345. * TARGET_HAS_NO_HW_DIVIDE: Library Calls. (line 52)
  42346. * TARGET_HAVE_CONDITIONAL_EXECUTION: Misc. (line 942)
  42347. * TARGET_HAVE_CTORS_DTORS: Macros for Initialization.
  42348. (line 63)
  42349. * TARGET_HAVE_NAMED_SECTIONS: File Framework. (line 151)
  42350. * TARGET_HAVE_SRODATA_SECTION: Sections. (line 302)
  42351. * TARGET_HAVE_SWITCHABLE_BSS_SECTIONS: File Framework. (line 156)
  42352. * TARGET_HAVE_TLS: Sections. (line 322)
  42353. * TARGET_INIT_BUILTINS: Misc. (line 609)
  42354. * TARGET_INIT_DWARF_REG_SIZES_EXTRA: Exception Region Output.
  42355. (line 120)
  42356. * TARGET_INIT_LIBFUNCS: Library Calls. (line 15)
  42357. * TARGET_INIT_PIC_REG: Register Arguments. (line 95)
  42358. * TARGET_INSERT_ATTRIBUTES: Target Attributes. (line 80)
  42359. * TARGET_INSTANTIATE_DECLS: Storage Layout. (line 541)
  42360. * TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN: Misc. (line 1047)
  42361. * TARGET_INVALID_BINARY_OP: Misc. (line 1066)
  42362. * TARGET_INVALID_CONVERSION: Misc. (line 1053)
  42363. * TARGET_INVALID_UNARY_OP: Misc. (line 1059)
  42364. * TARGET_INVALID_WITHIN_DOLOOP: Misc. (line 798)
  42365. * TARGET_IN_SMALL_DATA_P: Sections. (line 298)
  42366. * TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS: Register Classes. (line 557)
  42367. * TARGET_KEEP_LEAF_WHEN_PROFILED: Profiling. (line 39)
  42368. * TARGET_LEGITIMATE_ADDRESS_P: Addressing Modes. (line 48)
  42369. * TARGET_LEGITIMATE_COMBINED_INSN: Misc. (line 812)
  42370. * TARGET_LEGITIMATE_CONSTANT_P: Addressing Modes. (line 213)
  42371. * TARGET_LEGITIMIZE_ADDRESS: Addressing Modes. (line 129)
  42372. * TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT: Register Classes. (line 605)
  42373. * TARGET_LIBCALL_VALUE: Scalar Return. (line 65)
  42374. * TARGET_LIBC_HAS_FUNCTION: Library Calls. (line 77)
  42375. * TARGET_LIBFUNC_GNU_PREFIX: Library Calls. (line 24)
  42376. * TARGET_LIBGCC_CMP_RETURN_MODE: Storage Layout. (line 483)
  42377. * TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P: Register Arguments.
  42378. (line 373)
  42379. * TARGET_LIBGCC_SDATA_SECTION: Sections. (line 136)
  42380. * TARGET_LIBGCC_SHIFT_COUNT_MODE: Storage Layout. (line 489)
  42381. * TARGET_LIB_INT_CMP_BIASED: Library Calls. (line 42)
  42382. * TARGET_LOAD_BOUNDS_FOR_ARG: Varargs. (line 153)
  42383. * TARGET_LOAD_RETURNED_BOUNDS: Varargs. (line 172)
  42384. * TARGET_LOOP_UNROLL_ADJUST: Misc. (line 976)
  42385. * TARGET_LRA_P: Register Classes. (line 564)
  42386. * TARGET_MACHINE_DEPENDENT_REORG: Misc. (line 594)
  42387. * TARGET_MANGLE_ASSEMBLER_NAME: Label Output. (line 356)
  42388. * TARGET_MANGLE_DECL_ASSEMBLER_NAME: Sections. (line 246)
  42389. * TARGET_MANGLE_TYPE: Storage Layout. (line 545)
  42390. * TARGET_MAX_ANCHOR_OFFSET: Anchored Addresses. (line 38)
  42391. * TARGET_MAX_NOCE_IFCVT_SEQ_COST: Costs. (line 380)
  42392. * TARGET_MD_ASM_ADJUST: Misc. (line 512)
  42393. * TARGET_MEMBER_TYPE_FORCES_BLK: Storage Layout. (line 435)
  42394. * TARGET_MEMMODEL_CHECK: Misc. (line 1142)
  42395. * TARGET_MEMORY_MOVE_COST: Costs. (line 79)
  42396. * TARGET_MEM_CONSTRAINT: Addressing Modes. (line 107)
  42397. * TARGET_MEM_REF: Storage References. (line 6)
  42398. * TARGET_MERGE_DECL_ATTRIBUTES: Target Attributes. (line 45)
  42399. * TARGET_MERGE_TYPE_ATTRIBUTES: Target Attributes. (line 37)
  42400. * TARGET_MIN_ANCHOR_OFFSET: Anchored Addresses. (line 32)
  42401. * TARGET_MIN_ARITHMETIC_PRECISION: Misc. (line 63)
  42402. * TARGET_MIN_DIVISIONS_FOR_RECIP_MUL: Misc. (line 111)
  42403. * TARGET_MODE_AFTER: Mode Switching. (line 57)
  42404. * TARGET_MODE_DEPENDENT_ADDRESS_P: Addressing Modes. (line 196)
  42405. * TARGET_MODE_EMIT: Mode Switching. (line 42)
  42406. * TARGET_MODE_ENTRY: Mode Switching. (line 64)
  42407. * TARGET_MODE_EXIT: Mode Switching. (line 71)
  42408. * TARGET_MODE_NEEDED: Mode Switching. (line 50)
  42409. * TARGET_MODE_PRIORITY: Mode Switching. (line 78)
  42410. * TARGET_MODE_REP_EXTENDED: Misc. (line 196)
  42411. * TARGET_MS_BITFIELD_LAYOUT_P: Storage Layout. (line 499)
  42412. * TARGET_MUST_PASS_IN_STACK: Register Arguments. (line 64)
  42413. * 'TARGET_MUST_PASS_IN_STACK', and 'TARGET_FUNCTION_ARG': Register Arguments.
  42414. (line 56)
  42415. * TARGET_NARROW_VOLATILE_BITFIELD: Storage Layout. (line 428)
  42416. * TARGET_NOCE_CONVERSION_PROFITABLE_P: Costs. (line 399)
  42417. * TARGET_NO_REGISTER_ALLOCATION: SDB and DWARF. (line 68)
  42418. * TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P: Costs. (line 405)
  42419. * TARGET_N_FORMAT_TYPES: Misc. (line 1028)
  42420. * TARGET_OBJC_CONSTRUCT_STRING_OBJECT: Run-time Target. (line 88)
  42421. * TARGET_OBJC_DECLARE_CLASS_DEFINITION: Run-time Target. (line 109)
  42422. * TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE: Run-time Target.
  42423. (line 104)
  42424. * TARGET_OBJECT_SUFFIX: Misc. (line 877)
  42425. * TARGET_OBJFMT_CPP_BUILTINS: Run-time Target. (line 45)
  42426. * TARGET_OFFLOAD_OPTIONS: Misc. (line 1185)
  42427. * TARGET_OMIT_STRUCT_RETURN_REG: Scalar Return. (line 117)
  42428. * TARGET_OPTAB_SUPPORTED_P: Costs. (line 299)
  42429. * TARGET_OPTF: Misc. (line 1010)
  42430. * TARGET_OPTION_DEFAULT_PARAMS: Run-time Target. (line 160)
  42431. * TARGET_OPTION_FUNCTION_VERSIONS: Target Attributes. (line 157)
  42432. * TARGET_OPTION_INIT_STRUCT: Run-time Target. (line 156)
  42433. * TARGET_OPTION_OPTIMIZATION_TABLE: Run-time Target. (line 142)
  42434. * TARGET_OPTION_OVERRIDE: Target Attributes. (line 144)
  42435. * TARGET_OPTION_POST_STREAM_IN: Target Attributes. (line 125)
  42436. * TARGET_OPTION_PRAGMA_PARSE: Target Attributes. (line 137)
  42437. * TARGET_OPTION_PRINT: Target Attributes. (line 131)
  42438. * TARGET_OPTION_RESTORE: Target Attributes. (line 119)
  42439. * TARGET_OPTION_SAVE: Target Attributes. (line 112)
  42440. * TARGET_OPTION_VALID_ATTRIBUTE_P: Target Attributes. (line 100)
  42441. * TARGET_OS_CPP_BUILTINS: Run-time Target. (line 41)
  42442. * TARGET_OVERRIDES_FORMAT_ATTRIBUTES: Misc. (line 1032)
  42443. * TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT: Misc. (line 1038)
  42444. * TARGET_OVERRIDES_FORMAT_INIT: Misc. (line 1042)
  42445. * TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE: Run-time Target. (line 126)
  42446. * TARGET_PASS_BY_REFERENCE: Register Arguments. (line 119)
  42447. * TARGET_PCH_VALID_P: PCH Target. (line 11)
  42448. * TARGET_POSIX_IO: Misc. (line 538)
  42449. * TARGET_PREFERRED_OUTPUT_RELOAD_CLASS: Register Classes. (line 284)
  42450. * TARGET_PREFERRED_RELOAD_CLASS: Register Classes. (line 213)
  42451. * TARGET_PREFERRED_RENAME_CLASS: Register Classes. (line 201)
  42452. * TARGET_PREPARE_PCH_SAVE: PCH Target. (line 34)
  42453. * TARGET_PRETEND_OUTGOING_VARARGS_NAMED: Varargs. (line 144)
  42454. * TARGET_PROFILE_BEFORE_PROLOGUE: Sections. (line 306)
  42455. * TARGET_PROMOTED_TYPE: Misc. (line 1072)
  42456. * TARGET_PROMOTE_FUNCTION_MODE: Storage Layout. (line 126)
  42457. * TARGET_PROMOTE_PROTOTYPES: Stack Arguments. (line 10)
  42458. * TARGET_PTRMEMFUNC_VBIT_LOCATION: Type Layout. (line 250)
  42459. * TARGET_RECORD_OFFLOAD_SYMBOL: Misc. (line 1180)
  42460. * TARGET_REF_MAY_ALIAS_ERRNO: Register Arguments. (line 326)
  42461. * TARGET_REGISTER_MOVE_COST: Costs. (line 31)
  42462. * TARGET_REGISTER_PRIORITY: Register Classes. (line 569)
  42463. * TARGET_REGISTER_USAGE_LEVELING_P: Register Classes. (line 580)
  42464. * TARGET_RELAYOUT_FUNCTION: Target Attributes. (line 172)
  42465. * TARGET_RESOLVE_OVERLOADED_BUILTIN: Misc. (line 730)
  42466. * TARGET_RETURN_IN_MEMORY: Aggregate Return. (line 15)
  42467. * TARGET_RETURN_IN_MSB: Scalar Return. (line 124)
  42468. * TARGET_RETURN_POPS_ARGS: Stack Arguments. (line 98)
  42469. * TARGET_RTX_COSTS: Costs. (line 313)
  42470. * TARGET_RUN_TARGET_SELFTESTS: Misc. (line 1234)
  42471. * TARGET_SCALAR_MODE_SUPPORTED_P: Register Arguments. (line 333)
  42472. * TARGET_SCHED_ADJUST_COST: Scheduling. (line 35)
  42473. * TARGET_SCHED_ADJUST_PRIORITY: Scheduling. (line 50)
  42474. * TARGET_SCHED_ALLOC_SCHED_CONTEXT: Scheduling. (line 294)
  42475. * TARGET_SCHED_CAN_SPECULATE_INSN: Scheduling. (line 354)
  42476. * TARGET_SCHED_CLEAR_SCHED_CONTEXT: Scheduling. (line 309)
  42477. * TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK: Scheduling. (line 101)
  42478. * TARGET_SCHED_DFA_NEW_CYCLE: Scheduling. (line 255)
  42479. * TARGET_SCHED_DFA_POST_ADVANCE_CYCLE: Scheduling. (line 172)
  42480. * TARGET_SCHED_DFA_POST_CYCLE_INSN: Scheduling. (line 156)
  42481. * TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE: Scheduling. (line 165)
  42482. * TARGET_SCHED_DFA_PRE_CYCLE_INSN: Scheduling. (line 144)
  42483. * TARGET_SCHED_DISPATCH: Scheduling. (line 370)
  42484. * TARGET_SCHED_DISPATCH_DO: Scheduling. (line 375)
  42485. * TARGET_SCHED_EXPOSED_PIPELINE: Scheduling. (line 379)
  42486. * TARGET_SCHED_FINISH: Scheduling. (line 122)
  42487. * TARGET_SCHED_FINISH_GLOBAL: Scheduling. (line 137)
  42488. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BACKTRACK: Scheduling. (line 235)
  42489. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_BEGIN: Scheduling. (line 223)
  42490. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD: Scheduling.
  42491. (line 179)
  42492. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD: Scheduling.
  42493. (line 207)
  42494. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_END: Scheduling. (line 240)
  42495. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_FINI: Scheduling. (line 250)
  42496. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_INIT: Scheduling. (line 245)
  42497. * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_ISSUE: Scheduling. (line 229)
  42498. * TARGET_SCHED_FREE_SCHED_CONTEXT: Scheduling. (line 313)
  42499. * TARGET_SCHED_FUSION_PRIORITY: Scheduling. (line 389)
  42500. * TARGET_SCHED_GEN_SPEC_CHECK: Scheduling. (line 335)
  42501. * TARGET_SCHED_H_I_D_EXTENDED: Scheduling. (line 289)
  42502. * TARGET_SCHED_INIT: Scheduling. (line 111)
  42503. * TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN: Scheduling. (line 161)
  42504. * TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN: Scheduling. (line 153)
  42505. * TARGET_SCHED_INIT_GLOBAL: Scheduling. (line 129)
  42506. * TARGET_SCHED_INIT_SCHED_CONTEXT: Scheduling. (line 298)
  42507. * TARGET_SCHED_ISSUE_RATE: Scheduling. (line 11)
  42508. * TARGET_SCHED_IS_COSTLY_DEPENDENCE: Scheduling. (line 267)
  42509. * TARGET_SCHED_MACRO_FUSION_P: Scheduling. (line 87)
  42510. * TARGET_SCHED_MACRO_FUSION_PAIR_P: Scheduling. (line 91)
  42511. * TARGET_SCHED_NEEDS_BLOCK_P: Scheduling. (line 328)
  42512. * TARGET_SCHED_REASSOCIATION_WIDTH: Scheduling. (line 384)
  42513. * TARGET_SCHED_REORDER: Scheduling. (line 58)
  42514. * TARGET_SCHED_REORDER2: Scheduling. (line 75)
  42515. * TARGET_SCHED_SET_SCHED_CONTEXT: Scheduling. (line 305)
  42516. * TARGET_SCHED_SET_SCHED_FLAGS: Scheduling. (line 347)
  42517. * TARGET_SCHED_SMS_RES_MII: Scheduling. (line 361)
  42518. * TARGET_SCHED_SPECULATE_INSN: Scheduling. (line 316)
  42519. * TARGET_SCHED_VARIABLE_ISSUE: Scheduling. (line 22)
  42520. * TARGET_SECONDARY_RELOAD: Register Classes. (line 312)
  42521. * TARGET_SECTION_TYPE_FLAGS: File Framework. (line 161)
  42522. * TARGET_SETUP_INCOMING_VARARGS: Varargs. (line 71)
  42523. * TARGET_SETUP_INCOMING_VARARG_BOUNDS: Varargs. (line 188)
  42524. * TARGET_SET_CURRENT_FUNCTION: Misc. (line 859)
  42525. * TARGET_SET_DEFAULT_TYPE_ATTRIBUTES: Target Attributes. (line 33)
  42526. * TARGET_SET_UP_BY_PROLOGUE: Tail Calls. (line 29)
  42527. * TARGET_SHIFT_TRUNCATION_MASK: Misc. (line 159)
  42528. * TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB: Shrink-wrapping separate components.
  42529. (line 36)
  42530. * TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS: Shrink-wrapping separate components.
  42531. (line 43)
  42532. * TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS: Shrink-wrapping separate components.
  42533. (line 54)
  42534. * TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS: Shrink-wrapping separate components.
  42535. (line 50)
  42536. * TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS: Shrink-wrapping separate components.
  42537. (line 27)
  42538. * TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS: Shrink-wrapping separate components.
  42539. (line 58)
  42540. * TARGET_SIMD_CLONE_ADJUST: Addressing Modes. (line 420)
  42541. * TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN: Addressing Modes.
  42542. (line 412)
  42543. * TARGET_SIMD_CLONE_USABLE: Addressing Modes. (line 424)
  42544. * TARGET_SIMT_VF: Addressing Modes. (line 430)
  42545. * TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P: Register Arguments.
  42546. (line 397)
  42547. * TARGET_SPILL_CLASS: Register Classes. (line 613)
  42548. * TARGET_SPLIT_COMPLEX_ARG: Register Arguments. (line 277)
  42549. * TARGET_STACK_PROTECT_FAIL: Stack Smashing Protection.
  42550. (line 16)
  42551. * TARGET_STACK_PROTECT_GUARD: Stack Smashing Protection.
  42552. (line 6)
  42553. * TARGET_STACK_PROTECT_RUNTIME_ENABLED_P: Stack Smashing Protection.
  42554. (line 25)
  42555. * TARGET_STATIC_CHAIN: Frame Registers. (line 90)
  42556. * TARGET_STORE_BOUNDS_FOR_ARG: Varargs. (line 163)
  42557. * TARGET_STORE_RETURNED_BOUNDS: Varargs. (line 177)
  42558. * TARGET_STRICT_ARGUMENT_NAMING: Varargs. (line 107)
  42559. * TARGET_STRING_OBJECT_REF_TYPE_P: Run-time Target. (line 114)
  42560. * TARGET_STRIP_NAME_ENCODING: Sections. (line 293)
  42561. * TARGET_STRUCT_VALUE_RTX: Aggregate Return. (line 44)
  42562. * TARGET_SUPPORTS_SPLIT_STACK: Stack Smashing Protection.
  42563. (line 30)
  42564. * TARGET_SUPPORTS_WEAK: Label Output. (line 272)
  42565. * TARGET_SUPPORTS_WIDE_INT: Misc. (line 1193)
  42566. * TARGET_TERMINATE_DW2_EH_FRAME_INFO: Exception Region Output.
  42567. (line 99)
  42568. * TARGET_TRAMPOLINE_ADJUST_ADDRESS: Trampolines. (line 74)
  42569. * TARGET_TRAMPOLINE_INIT: Trampolines. (line 54)
  42570. * TARGET_UNSPEC_MAY_TRAP_P: Misc. (line 850)
  42571. * TARGET_UNWIND_TABLES_DEFAULT: Exception Region Output.
  42572. (line 73)
  42573. * TARGET_UNWIND_WORD_MODE: Storage Layout. (line 495)
  42574. * TARGET_UPDATE_STACK_BOUNDARY: Misc. (line 1099)
  42575. * TARGET_USES_WEAK_UNWIND_INFO: Exception Handling. (line 123)
  42576. * TARGET_USE_ANCHORS_FOR_SYMBOL_P: Anchored Addresses. (line 53)
  42577. * TARGET_USE_BLOCKS_FOR_CONSTANT_P: Addressing Modes. (line 248)
  42578. * TARGET_USE_BLOCKS_FOR_DECL_P: Addressing Modes. (line 255)
  42579. * TARGET_USE_BY_PIECES_INFRASTRUCTURE_P: Costs. (line 165)
  42580. * TARGET_USE_PSEUDO_PIC_REG: Register Arguments. (line 91)
  42581. * TARGET_VALID_DLLIMPORT_ATTRIBUTE_P: Target Attributes. (line 66)
  42582. * TARGET_VALID_POINTER_MODE: Register Arguments. (line 321)
  42583. * TARGET_VECTORIZE_ADD_STMT_COST: Addressing Modes. (line 375)
  42584. * TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES: Addressing Modes.
  42585. (line 352)
  42586. * TARGET_VECTORIZE_BUILTIN_CONVERSION: Addressing Modes. (line 308)
  42587. * TARGET_VECTORIZE_BUILTIN_GATHER: Addressing Modes. (line 398)
  42588. * TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD: Addressing Modes. (line 266)
  42589. * TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION: Addressing Modes.
  42590. (line 328)
  42591. * TARGET_VECTORIZE_BUILTIN_SCATTER: Addressing Modes. (line 405)
  42592. * TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST: Addressing Modes.
  42593. (line 292)
  42594. * TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION: Addressing Modes.
  42595. (line 320)
  42596. * TARGET_VECTORIZE_DESTROY_COST_DATA: Addressing Modes. (line 393)
  42597. * TARGET_VECTORIZE_FINISH_COST: Addressing Modes. (line 386)
  42598. * TARGET_VECTORIZE_GET_MASK_MODE: Addressing Modes. (line 360)
  42599. * TARGET_VECTORIZE_INIT_COST: Addressing Modes. (line 366)
  42600. * TARGET_VECTORIZE_PREFERRED_SIMD_MODE: Addressing Modes. (line 345)
  42601. * TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT: Addressing Modes.
  42602. (line 335)
  42603. * TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE: Addressing Modes.
  42604. (line 298)
  42605. * TARGET_VECTORIZE_VEC_PERM_CONST_OK: Addressing Modes. (line 304)
  42606. * TARGET_VECTOR_ALIGNMENT: Storage Layout. (line 288)
  42607. * TARGET_VECTOR_MODE_SUPPORTED_P: Register Arguments. (line 344)
  42608. * TARGET_VTABLE_DATA_ENTRY_DISTANCE: Type Layout. (line 303)
  42609. * TARGET_VTABLE_ENTRY_ALIGN: Type Layout. (line 297)
  42610. * TARGET_VTABLE_USES_DESCRIPTORS: Type Layout. (line 286)
  42611. * TARGET_WANT_DEBUG_PUB_SECTIONS: SDB and DWARF. (line 55)
  42612. * TARGET_WARN_FUNC_RETURN: Tail Calls. (line 35)
  42613. * TARGET_WEAK_NOT_IN_ARCHIVE_TOC: Label Output. (line 308)
  42614. * TCmode: Machine Modes. (line 199)
  42615. * TDmode: Machine Modes. (line 97)
  42616. * TEMPLATE_DECL: Declarations. (line 6)
  42617. * Temporaries: Temporaries. (line 6)
  42618. * termination routines: Initialization. (line 6)
  42619. * testing constraints: C Constraint Interface.
  42620. (line 6)
  42621. * TEXT_SECTION_ASM_OP: Sections. (line 37)
  42622. * TFmode: Machine Modes. (line 101)
  42623. * The Language: The Language. (line 6)
  42624. * THEN_CLAUSE: Statements for C++. (line 6)
  42625. * THREAD_MODEL_SPEC: Driver. (line 162)
  42626. * THROW_EXPR: Unary and Binary Expressions.
  42627. (line 6)
  42628. * THUNK_DECL: Declarations. (line 6)
  42629. * THUNK_DELTA: Declarations. (line 6)
  42630. * TImode: Machine Modes. (line 48)
  42631. * 'TImode', in 'insn': Insns. (line 268)
  42632. * TLS_COMMON_ASM_OP: Sections. (line 80)
  42633. * TLS_SECTION_ASM_FLAG: Sections. (line 85)
  42634. * 'tm.h' macros: Target Macros. (line 6)
  42635. * TQFmode: Machine Modes. (line 65)
  42636. * TQmode: Machine Modes. (line 122)
  42637. * trampolines for nested functions: Trampolines. (line 6)
  42638. * TRAMPOLINE_ALIGNMENT: Trampolines. (line 48)
  42639. * TRAMPOLINE_SECTION: Trampolines. (line 39)
  42640. * TRAMPOLINE_SIZE: Trampolines. (line 44)
  42641. * TRANSFER_FROM_TRAMPOLINE: Trampolines. (line 129)
  42642. * 'trap' instruction pattern: Standard Names. (line 1781)
  42643. * tree: Tree overview. (line 6)
  42644. * tree <1>: Macros and Functions.
  42645. (line 6)
  42646. * Tree SSA: Tree SSA. (line 6)
  42647. * TREE_CHAIN: Macros and Functions.
  42648. (line 6)
  42649. * TREE_CODE: Tree overview. (line 6)
  42650. * tree_fits_shwi_p: Constant expressions.
  42651. (line 6)
  42652. * tree_fits_uhwi_p: Constant expressions.
  42653. (line 6)
  42654. * TREE_INT_CST_ELT: Constant expressions.
  42655. (line 6)
  42656. * tree_int_cst_equal: Constant expressions.
  42657. (line 6)
  42658. * TREE_INT_CST_LOW: Constant expressions.
  42659. (line 6)
  42660. * tree_int_cst_lt: Constant expressions.
  42661. (line 6)
  42662. * TREE_INT_CST_NUNITS: Constant expressions.
  42663. (line 6)
  42664. * TREE_LIST: Containers. (line 6)
  42665. * TREE_OPERAND: Expression trees. (line 6)
  42666. * TREE_PUBLIC: Function Basics. (line 6)
  42667. * TREE_PUBLIC <1>: Function Properties.
  42668. (line 28)
  42669. * TREE_PURPOSE: Containers. (line 6)
  42670. * TREE_READONLY: Function Properties.
  42671. (line 37)
  42672. * tree_size: Macros and Functions.
  42673. (line 13)
  42674. * TREE_STATIC: Function Properties.
  42675. (line 31)
  42676. * TREE_STRING_LENGTH: Constant expressions.
  42677. (line 6)
  42678. * TREE_STRING_POINTER: Constant expressions.
  42679. (line 6)
  42680. * TREE_THIS_VOLATILE: Function Properties.
  42681. (line 34)
  42682. * tree_to_shwi: Constant expressions.
  42683. (line 6)
  42684. * tree_to_uhwi: Constant expressions.
  42685. (line 6)
  42686. * TREE_TYPE: Macros and Functions.
  42687. (line 6)
  42688. * TREE_TYPE <1>: Types. (line 6)
  42689. * TREE_TYPE <2>: Working with declarations.
  42690. (line 11)
  42691. * TREE_TYPE <3>: Expression trees. (line 6)
  42692. * TREE_TYPE <4>: Expression trees. (line 17)
  42693. * TREE_TYPE <5>: Function Basics. (line 47)
  42694. * TREE_TYPE <6>: Types for C++. (line 6)
  42695. * TREE_VALUE: Containers. (line 6)
  42696. * TREE_VEC: Containers. (line 6)
  42697. * TREE_VEC_ELT: Containers. (line 6)
  42698. * TREE_VEC_LENGTH: Containers. (line 6)
  42699. * TRULY_NOOP_TRUNCATION: Misc. (line 183)
  42700. * truncate: Conversions. (line 38)
  42701. * 'truncMN2' instruction pattern: Standard Names. (line 1141)
  42702. * TRUNC_DIV_EXPR: Unary and Binary Expressions.
  42703. (line 6)
  42704. * TRUNC_MOD_EXPR: Unary and Binary Expressions.
  42705. (line 6)
  42706. * TRUTH_ANDIF_EXPR: Unary and Binary Expressions.
  42707. (line 6)
  42708. * TRUTH_AND_EXPR: Unary and Binary Expressions.
  42709. (line 6)
  42710. * TRUTH_NOT_EXPR: Unary and Binary Expressions.
  42711. (line 6)
  42712. * TRUTH_ORIF_EXPR: Unary and Binary Expressions.
  42713. (line 6)
  42714. * TRUTH_OR_EXPR: Unary and Binary Expressions.
  42715. (line 6)
  42716. * TRUTH_XOR_EXPR: Unary and Binary Expressions.
  42717. (line 6)
  42718. * TRY_BLOCK: Statements for C++. (line 6)
  42719. * TRY_HANDLERS: Statements for C++. (line 6)
  42720. * TRY_STMTS: Statements for C++. (line 6)
  42721. * Tuple specific accessors: Tuple specific accessors.
  42722. (line 6)
  42723. * tuples: Tuple representation.
  42724. (line 6)
  42725. * type: Types. (line 6)
  42726. * type declaration: Declarations. (line 6)
  42727. * TYPENAME_TYPE: Types for C++. (line 6)
  42728. * TYPENAME_TYPE_FULLNAME: Types. (line 6)
  42729. * TYPENAME_TYPE_FULLNAME <1>: Types for C++. (line 6)
  42730. * TYPEOF_TYPE: Types for C++. (line 6)
  42731. * TYPE_ALIGN: Types. (line 6)
  42732. * TYPE_ALIGN <1>: Types. (line 30)
  42733. * TYPE_ALIGN <2>: Types for C++. (line 6)
  42734. * TYPE_ALIGN <3>: Types for C++. (line 44)
  42735. * TYPE_ARG_TYPES: Types. (line 6)
  42736. * TYPE_ARG_TYPES <1>: Types for C++. (line 6)
  42737. * TYPE_ASM_OP: Label Output. (line 76)
  42738. * TYPE_ATTRIBUTES: Attributes. (line 24)
  42739. * TYPE_BINFO: Classes. (line 6)
  42740. * TYPE_BUILT_IN: Types for C++. (line 66)
  42741. * TYPE_CANONICAL: Types. (line 6)
  42742. * TYPE_CANONICAL <1>: Types. (line 41)
  42743. * TYPE_CONTEXT: Types. (line 6)
  42744. * TYPE_CONTEXT <1>: Types for C++. (line 6)
  42745. * TYPE_DECL: Declarations. (line 6)
  42746. * TYPE_FIELDS: Types. (line 6)
  42747. * TYPE_FIELDS <1>: Types for C++. (line 6)
  42748. * TYPE_FIELDS <2>: Classes. (line 6)
  42749. * TYPE_HAS_ARRAY_NEW_OPERATOR: Classes. (line 96)
  42750. * TYPE_HAS_DEFAULT_CONSTRUCTOR: Classes. (line 81)
  42751. * TYPE_HAS_MUTABLE_P: Classes. (line 86)
  42752. * TYPE_HAS_NEW_OPERATOR: Classes. (line 93)
  42753. * TYPE_MAIN_VARIANT: Types. (line 6)
  42754. * TYPE_MAIN_VARIANT <1>: Types. (line 19)
  42755. * TYPE_MAIN_VARIANT <2>: Types for C++. (line 6)
  42756. * TYPE_MAX_VALUE: Types. (line 6)
  42757. * TYPE_METHODS: Classes. (line 6)
  42758. * TYPE_METHOD_BASETYPE: Types. (line 6)
  42759. * TYPE_METHOD_BASETYPE <1>: Types for C++. (line 6)
  42760. * TYPE_MIN_VALUE: Types. (line 6)
  42761. * TYPE_NAME: Types. (line 6)
  42762. * TYPE_NAME <1>: Types. (line 33)
  42763. * TYPE_NAME <2>: Types for C++. (line 6)
  42764. * TYPE_NAME <3>: Types for C++. (line 47)
  42765. * TYPE_NOTHROW_P: Functions for C++. (line 154)
  42766. * TYPE_OFFSET_BASETYPE: Types. (line 6)
  42767. * TYPE_OFFSET_BASETYPE <1>: Types for C++. (line 6)
  42768. * TYPE_OPERAND_FMT: Label Output. (line 87)
  42769. * TYPE_OVERLOADS_ARRAY_REF: Classes. (line 104)
  42770. * TYPE_OVERLOADS_ARROW: Classes. (line 107)
  42771. * TYPE_OVERLOADS_CALL_EXPR: Classes. (line 100)
  42772. * TYPE_POLYMORPHIC_P: Classes. (line 77)
  42773. * TYPE_PRECISION: Types. (line 6)
  42774. * TYPE_PRECISION <1>: Types for C++. (line 6)
  42775. * TYPE_PTRDATAMEM_P: Types for C++. (line 6)
  42776. * TYPE_PTRDATAMEM_P <1>: Types for C++. (line 69)
  42777. * TYPE_PTRFN_P: Types for C++. (line 76)
  42778. * TYPE_PTROBV_P: Types for C++. (line 6)
  42779. * TYPE_PTROB_P: Types for C++. (line 79)
  42780. * TYPE_PTR_P: Types for C++. (line 72)
  42781. * TYPE_QUAL_CONST: Types. (line 6)
  42782. * TYPE_QUAL_CONST <1>: Types for C++. (line 6)
  42783. * TYPE_QUAL_RESTRICT: Types. (line 6)
  42784. * TYPE_QUAL_RESTRICT <1>: Types for C++. (line 6)
  42785. * TYPE_QUAL_VOLATILE: Types. (line 6)
  42786. * TYPE_QUAL_VOLATILE <1>: Types for C++. (line 6)
  42787. * TYPE_RAISES_EXCEPTIONS: Functions for C++. (line 149)
  42788. * TYPE_SIZE: Types. (line 6)
  42789. * TYPE_SIZE <1>: Types. (line 25)
  42790. * TYPE_SIZE <2>: Types for C++. (line 6)
  42791. * TYPE_SIZE <3>: Types for C++. (line 39)
  42792. * TYPE_STRUCTURAL_EQUALITY_P: Types. (line 6)
  42793. * TYPE_STRUCTURAL_EQUALITY_P <1>: Types. (line 77)
  42794. * TYPE_UNQUALIFIED: Types. (line 6)
  42795. * TYPE_UNQUALIFIED <1>: Types for C++. (line 6)
  42796. * TYPE_VFIELD: Classes. (line 6)
  42797. * 'uaddvM4' instruction pattern: Standard Names. (line 334)
  42798. * UDAmode: Machine Modes. (line 170)
  42799. * udiv: Arithmetic. (line 130)
  42800. * 'udivM3' instruction pattern: Standard Names. (line 315)
  42801. * 'udivmodM4' instruction pattern: Standard Names. (line 590)
  42802. * 'udot_prodM' instruction pattern: Standard Names. (line 410)
  42803. * UDQmode: Machine Modes. (line 138)
  42804. * UHAmode: Machine Modes. (line 162)
  42805. * UHQmode: Machine Modes. (line 130)
  42806. * UINT16_TYPE: Type Layout. (line 214)
  42807. * UINT32_TYPE: Type Layout. (line 215)
  42808. * UINT64_TYPE: Type Layout. (line 216)
  42809. * UINT8_TYPE: Type Layout. (line 213)
  42810. * UINTMAX_TYPE: Type Layout. (line 197)
  42811. * UINTPTR_TYPE: Type Layout. (line 234)
  42812. * UINT_FAST16_TYPE: Type Layout. (line 230)
  42813. * UINT_FAST32_TYPE: Type Layout. (line 231)
  42814. * UINT_FAST64_TYPE: Type Layout. (line 232)
  42815. * UINT_FAST8_TYPE: Type Layout. (line 229)
  42816. * UINT_LEAST16_TYPE: Type Layout. (line 222)
  42817. * UINT_LEAST32_TYPE: Type Layout. (line 223)
  42818. * UINT_LEAST64_TYPE: Type Layout. (line 224)
  42819. * UINT_LEAST8_TYPE: Type Layout. (line 221)
  42820. * 'umaddMN4' instruction pattern: Standard Names. (line 537)
  42821. * umax: Arithmetic. (line 149)
  42822. * 'umaxM3' instruction pattern: Standard Names. (line 315)
  42823. * umin: Arithmetic. (line 149)
  42824. * 'uminM3' instruction pattern: Standard Names. (line 315)
  42825. * umod: Arithmetic. (line 136)
  42826. * 'umodM3' instruction pattern: Standard Names. (line 315)
  42827. * 'umsubMN4' instruction pattern: Standard Names. (line 561)
  42828. * 'umulhisi3' instruction pattern: Standard Names. (line 509)
  42829. * 'umulM3_highpart' instruction pattern: Standard Names. (line 523)
  42830. * 'umulqihi3' instruction pattern: Standard Names. (line 509)
  42831. * 'umulsidi3' instruction pattern: Standard Names. (line 509)
  42832. * 'umulvM4' instruction pattern: Standard Names. (line 339)
  42833. * unchanging: Flags. (line 296)
  42834. * 'unchanging', in 'call_insn': Flags. (line 19)
  42835. * 'unchanging', in 'jump_insn', 'call_insn' and 'insn': Flags.
  42836. (line 39)
  42837. * 'unchanging', in 'mem': Flags. (line 134)
  42838. * 'unchanging', in 'subreg': Flags. (line 170)
  42839. * 'unchanging', in 'subreg' <1>: Flags. (line 180)
  42840. * 'unchanging', in 'symbol_ref': Flags. (line 10)
  42841. * UNEQ_EXPR: Unary and Binary Expressions.
  42842. (line 6)
  42843. * UNGE_EXPR: Unary and Binary Expressions.
  42844. (line 6)
  42845. * UNGT_EXPR: Unary and Binary Expressions.
  42846. (line 6)
  42847. * unions, returning: Interface. (line 10)
  42848. * UNION_TYPE: Types. (line 6)
  42849. * UNION_TYPE <1>: Classes. (line 6)
  42850. * UNITS_PER_WORD: Storage Layout. (line 60)
  42851. * UNKNOWN_TYPE: Types. (line 6)
  42852. * UNKNOWN_TYPE <1>: Types for C++. (line 6)
  42853. * UNLE_EXPR: Unary and Binary Expressions.
  42854. (line 6)
  42855. * UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Sections. (line 48)
  42856. * UNLT_EXPR: Unary and Binary Expressions.
  42857. (line 6)
  42858. * UNORDERED_EXPR: Unary and Binary Expressions.
  42859. (line 6)
  42860. * unshare_all_rtl: Sharing. (line 58)
  42861. * unsigned division: Arithmetic. (line 130)
  42862. * unsigned division with unsigned saturation: Arithmetic. (line 130)
  42863. * unsigned greater than: Comparisons. (line 64)
  42864. * unsigned greater than <1>: Comparisons. (line 72)
  42865. * unsigned less than: Comparisons. (line 68)
  42866. * unsigned less than <1>: Comparisons. (line 76)
  42867. * unsigned minimum and maximum: Arithmetic. (line 149)
  42868. * unsigned_fix: Conversions. (line 77)
  42869. * unsigned_float: Conversions. (line 62)
  42870. * unsigned_fract_convert: Conversions. (line 97)
  42871. * unsigned_sat_fract: Conversions. (line 103)
  42872. * unspec: Side Effects. (line 298)
  42873. * unspec <1>: Constant Definitions.
  42874. (line 111)
  42875. * unspec_volatile: Side Effects. (line 298)
  42876. * unspec_volatile <1>: Constant Definitions.
  42877. (line 99)
  42878. * 'untyped_call' instruction pattern: Standard Names. (line 1397)
  42879. * 'untyped_return' instruction pattern: Standard Names. (line 1460)
  42880. * UPDATE_PATH_HOST_CANONICALIZE (PATH): Filesystem. (line 59)
  42881. * update_ssa: SSA. (line 74)
  42882. * update_stmt: Manipulating GIMPLE statements.
  42883. (line 140)
  42884. * update_stmt <1>: SSA Operands. (line 6)
  42885. * update_stmt_if_modified: Manipulating GIMPLE statements.
  42886. (line 143)
  42887. * UQQmode: Machine Modes. (line 126)
  42888. * 'usaddM3' instruction pattern: Standard Names. (line 315)
  42889. * 'usadM' instruction pattern: Standard Names. (line 419)
  42890. * USAmode: Machine Modes. (line 166)
  42891. * 'usashlM3' instruction pattern: Standard Names. (line 593)
  42892. * 'usdivM3' instruction pattern: Standard Names. (line 315)
  42893. * use: Side Effects. (line 168)
  42894. * used: Flags. (line 314)
  42895. * 'used', in 'symbol_ref': Flags. (line 197)
  42896. * user: GTY Options. (line 244)
  42897. * user gc: User GC. (line 6)
  42898. * USER_LABEL_PREFIX: Instruction Output. (line 152)
  42899. * USE_C_ALLOCA: Host Misc. (line 19)
  42900. * USE_LD_AS_NEEDED: Driver. (line 135)
  42901. * USE_LOAD_POST_DECREMENT: Costs. (line 254)
  42902. * USE_LOAD_POST_INCREMENT: Costs. (line 249)
  42903. * USE_LOAD_PRE_DECREMENT: Costs. (line 264)
  42904. * USE_LOAD_PRE_INCREMENT: Costs. (line 259)
  42905. * USE_SELECT_SECTION_FOR_FUNCTIONS: Sections. (line 198)
  42906. * USE_STORE_POST_DECREMENT: Costs. (line 274)
  42907. * USE_STORE_POST_INCREMENT: Costs. (line 269)
  42908. * USE_STORE_PRE_DECREMENT: Costs. (line 284)
  42909. * USE_STORE_PRE_INCREMENT: Costs. (line 279)
  42910. * USING_STMT: Statements for C++. (line 6)
  42911. * 'usmaddMN4' instruction pattern: Standard Names. (line 545)
  42912. * 'usmsubMN4' instruction pattern: Standard Names. (line 569)
  42913. * 'usmulhisi3' instruction pattern: Standard Names. (line 513)
  42914. * 'usmulM3' instruction pattern: Standard Names. (line 315)
  42915. * 'usmulqihi3' instruction pattern: Standard Names. (line 513)
  42916. * 'usmulsidi3' instruction pattern: Standard Names. (line 513)
  42917. * 'usnegM2' instruction pattern: Standard Names. (line 617)
  42918. * USQmode: Machine Modes. (line 134)
  42919. * 'ussubM3' instruction pattern: Standard Names. (line 315)
  42920. * 'usubvM4' instruction pattern: Standard Names. (line 339)
  42921. * us_ashift: Arithmetic. (line 173)
  42922. * us_minus: Arithmetic. (line 38)
  42923. * us_mult: Arithmetic. (line 93)
  42924. * us_neg: Arithmetic. (line 82)
  42925. * us_plus: Arithmetic. (line 14)
  42926. * us_truncate: Conversions. (line 48)
  42927. * UTAmode: Machine Modes. (line 174)
  42928. * UTQmode: Machine Modes. (line 142)
  42929. * 'V' in constraint: Simple Constraints. (line 43)
  42930. * values, returned by functions: Scalar Return. (line 6)
  42931. * varargs implementation: Varargs. (line 6)
  42932. * variable: Declarations. (line 6)
  42933. * Variable Location Debug Information in RTL: Debug Information.
  42934. (line 6)
  42935. * VAR_DECL: Declarations. (line 6)
  42936. * var_location: Debug Information. (line 14)
  42937. * 'vashlM3' instruction pattern: Standard Names. (line 609)
  42938. * 'vashrM3' instruction pattern: Standard Names. (line 609)
  42939. * VA_ARG_EXPR: Unary and Binary Expressions.
  42940. (line 6)
  42941. * 'vcondeqMN' instruction pattern: Standard Names. (line 247)
  42942. * 'vcondMN' instruction pattern: Standard Names. (line 234)
  42943. * 'vconduMN' instruction pattern: Standard Names. (line 244)
  42944. * 'vcond_mask_MN' instruction pattern: Standard Names. (line 254)
  42945. * vector: Containers. (line 6)
  42946. * vector operations: Vector Operations. (line 6)
  42947. * VECTOR_CST: Constant expressions.
  42948. (line 6)
  42949. * VECTOR_STORE_FLAG_VALUE: Misc. (line 314)
  42950. * 'vec_cmpeqMN' instruction pattern: Standard Names. (line 227)
  42951. * 'vec_cmpMN' instruction pattern: Standard Names. (line 217)
  42952. * 'vec_cmpuMN' instruction pattern: Standard Names. (line 224)
  42953. * vec_concat: Vector Operations. (line 28)
  42954. * vec_duplicate: Vector Operations. (line 33)
  42955. * 'vec_extractM' instruction pattern: Standard Names. (line 207)
  42956. * 'vec_initM' instruction pattern: Standard Names. (line 212)
  42957. * 'vec_load_lanesMN' instruction pattern: Standard Names. (line 165)
  42958. * VEC_LSHIFT_EXPR: Vectors. (line 6)
  42959. * vec_merge: Vector Operations. (line 11)
  42960. * VEC_PACK_FIX_TRUNC_EXPR: Vectors. (line 6)
  42961. * VEC_PACK_SAT_EXPR: Vectors. (line 6)
  42962. * 'vec_pack_sfix_trunc_M' instruction pattern: Standard Names.
  42963. (line 454)
  42964. * 'vec_pack_ssat_M' instruction pattern: Standard Names. (line 447)
  42965. * VEC_PACK_TRUNC_EXPR: Vectors. (line 6)
  42966. * 'vec_pack_trunc_M' instruction pattern: Standard Names. (line 440)
  42967. * 'vec_pack_ufix_trunc_M' instruction pattern: Standard Names.
  42968. (line 454)
  42969. * 'vec_pack_usat_M' instruction pattern: Standard Names. (line 447)
  42970. * 'vec_permM' instruction pattern: Standard Names. (line 272)
  42971. * 'vec_perm_constM' instruction pattern: Standard Names. (line 288)
  42972. * VEC_RSHIFT_EXPR: Vectors. (line 6)
  42973. * vec_select: Vector Operations. (line 19)
  42974. * 'vec_setM' instruction pattern: Standard Names. (line 202)
  42975. * 'vec_shr_M' instruction pattern: Standard Names. (line 434)
  42976. * 'vec_store_lanesMN' instruction pattern: Standard Names. (line 189)
  42977. * 'vec_unpacks_float_hi_M' instruction pattern: Standard Names.
  42978. (line 475)
  42979. * 'vec_unpacks_float_lo_M' instruction pattern: Standard Names.
  42980. (line 475)
  42981. * 'vec_unpacks_hi_M' instruction pattern: Standard Names. (line 461)
  42982. * 'vec_unpacks_lo_M' instruction pattern: Standard Names. (line 461)
  42983. * 'vec_unpacku_float_hi_M' instruction pattern: Standard Names.
  42984. (line 475)
  42985. * 'vec_unpacku_float_lo_M' instruction pattern: Standard Names.
  42986. (line 475)
  42987. * 'vec_unpacku_hi_M' instruction pattern: Standard Names. (line 468)
  42988. * 'vec_unpacku_lo_M' instruction pattern: Standard Names. (line 468)
  42989. * VEC_UNPACK_FLOAT_HI_EXPR: Vectors. (line 6)
  42990. * VEC_UNPACK_FLOAT_LO_EXPR: Vectors. (line 6)
  42991. * VEC_UNPACK_HI_EXPR: Vectors. (line 6)
  42992. * VEC_UNPACK_LO_EXPR: Vectors. (line 6)
  42993. * VEC_WIDEN_MULT_HI_EXPR: Vectors. (line 6)
  42994. * VEC_WIDEN_MULT_LO_EXPR: Vectors. (line 6)
  42995. * 'vec_widen_smult_even_M' instruction pattern: Standard Names.
  42996. (line 484)
  42997. * 'vec_widen_smult_hi_M' instruction pattern: Standard Names.
  42998. (line 484)
  42999. * 'vec_widen_smult_lo_M' instruction pattern: Standard Names.
  43000. (line 484)
  43001. * 'vec_widen_smult_odd_M' instruction pattern: Standard Names.
  43002. (line 484)
  43003. * 'vec_widen_sshiftl_hi_M' instruction pattern: Standard Names.
  43004. (line 495)
  43005. * 'vec_widen_sshiftl_lo_M' instruction pattern: Standard Names.
  43006. (line 495)
  43007. * 'vec_widen_umult_even_M' instruction pattern: Standard Names.
  43008. (line 484)
  43009. * 'vec_widen_umult_hi_M' instruction pattern: Standard Names.
  43010. (line 484)
  43011. * 'vec_widen_umult_lo_M' instruction pattern: Standard Names.
  43012. (line 484)
  43013. * 'vec_widen_umult_odd_M' instruction pattern: Standard Names.
  43014. (line 484)
  43015. * 'vec_widen_ushiftl_hi_M' instruction pattern: Standard Names.
  43016. (line 495)
  43017. * 'vec_widen_ushiftl_lo_M' instruction pattern: Standard Names.
  43018. (line 495)
  43019. * verify_flow_info: Maintaining the CFG.
  43020. (line 116)
  43021. * virtual operands: SSA Operands. (line 6)
  43022. * VIRTUAL_INCOMING_ARGS_REGNUM: Regs and Memory. (line 59)
  43023. * VIRTUAL_OUTGOING_ARGS_REGNUM: Regs and Memory. (line 87)
  43024. * VIRTUAL_STACK_DYNAMIC_REGNUM: Regs and Memory. (line 78)
  43025. * VIRTUAL_STACK_VARS_REGNUM: Regs and Memory. (line 69)
  43026. * VLIW: Processor pipeline description.
  43027. (line 6)
  43028. * VLIW <1>: Processor pipeline description.
  43029. (line 223)
  43030. * 'vlshrM3' instruction pattern: Standard Names. (line 609)
  43031. * VMS: Filesystem. (line 37)
  43032. * VMS_DEBUGGING_INFO: VMS Debug. (line 8)
  43033. * void: Misc. (line 707)
  43034. * void <1>: Misc. (line 712)
  43035. * VOIDmode: Machine Modes. (line 192)
  43036. * VOID_TYPE: Types. (line 6)
  43037. * volatil: Flags. (line 328)
  43038. * 'volatil', in 'insn', 'call_insn', 'jump_insn', 'code_label', 'jump_table_data', 'barrier', and 'note': Flags.
  43039. (line 44)
  43040. * 'volatil', in 'label_ref' and 'reg_label': Flags. (line 65)
  43041. * 'volatil', in 'mem', 'asm_operands', and 'asm_input': Flags.
  43042. (line 76)
  43043. * 'volatil', in 'reg': Flags. (line 98)
  43044. * 'volatil', in 'subreg': Flags. (line 170)
  43045. * 'volatil', in 'subreg' <1>: Flags. (line 180)
  43046. * 'volatil', in 'symbol_ref': Flags. (line 206)
  43047. * volatile memory references: Flags. (line 329)
  43048. * 'volatile', in 'prefetch': Flags. (line 214)
  43049. * voting between constraint alternatives: Class Preferences. (line 6)
  43050. * 'vrotlM3' instruction pattern: Standard Names. (line 609)
  43051. * 'vrotrM3' instruction pattern: Standard Names. (line 609)
  43052. * walk_dominator_tree: SSA. (line 195)
  43053. * walk_gimple_op: Statement and operand traversals.
  43054. (line 30)
  43055. * walk_gimple_seq: Statement and operand traversals.
  43056. (line 47)
  43057. * walk_gimple_stmt: Statement and operand traversals.
  43058. (line 10)
  43059. * WCHAR_TYPE: Type Layout. (line 165)
  43060. * WCHAR_TYPE_SIZE: Type Layout. (line 173)
  43061. * which_alternative: Output Statement. (line 58)
  43062. * WHILE_BODY: Statements for C++. (line 6)
  43063. * WHILE_COND: Statements for C++. (line 6)
  43064. * WHILE_STMT: Statements for C++. (line 6)
  43065. * whopr: LTO. (line 6)
  43066. * 'widen_ssumM3' instruction pattern: Standard Names. (line 427)
  43067. * 'widen_usumM3' instruction pattern: Standard Names. (line 428)
  43068. * WIDEST_HARDWARE_FP_SIZE: Type Layout. (line 110)
  43069. * 'window_save' instruction pattern: Standard Names. (line 1752)
  43070. * WINT_TYPE: Type Layout. (line 178)
  43071. * WORDS_BIG_ENDIAN: Storage Layout. (line 28)
  43072. * 'WORDS_BIG_ENDIAN', effect on 'subreg': Regs and Memory. (line 215)
  43073. * word_mode: Machine Modes. (line 368)
  43074. * WORD_REGISTER_OPERATIONS: Misc. (line 53)
  43075. * wpa: LTO. (line 6)
  43076. * 'X' in constraint: Simple Constraints. (line 122)
  43077. * 'x-HOST': Host Fragment. (line 6)
  43078. * XCmode: Machine Modes. (line 199)
  43079. * XCOFF_DEBUGGING_INFO: DBX Options. (line 12)
  43080. * XEXP: Accessors. (line 6)
  43081. * XFmode: Machine Modes. (line 82)
  43082. * XImode: Machine Modes. (line 54)
  43083. * XINT: Accessors. (line 6)
  43084. * 'xm-MACHINE.h': Filesystem. (line 6)
  43085. * 'xm-MACHINE.h' <1>: Host Misc. (line 6)
  43086. * xor: Arithmetic. (line 168)
  43087. * 'xor', canonicalization of: Insn Canonicalizations.
  43088. (line 78)
  43089. * 'xorM3' instruction pattern: Standard Names. (line 315)
  43090. * XSTR: Accessors. (line 6)
  43091. * XVEC: Accessors. (line 41)
  43092. * XVECEXP: Accessors. (line 48)
  43093. * XVECLEN: Accessors. (line 44)
  43094. * XWINT: Accessors. (line 6)
  43095. * zero_extend: Conversions. (line 28)
  43096. * 'zero_extendMN2' instruction pattern: Standard Names. (line 1151)
  43097. * zero_extract: Bit-Fields. (line 30)
  43098. * 'zero_extract', canonicalization of: Insn Canonicalizations.
  43099. (line 87)
  43100. 
  43101. Tag Table:
  43102. Node: Top1789
  43103. Node: Contributing4978
  43104. Node: Portability5707
  43105. Node: Interface7495
  43106. Node: Libgcc10536
  43107. Node: Integer library routines12363
  43108. Node: Soft float library routines19331
  43109. Node: Decimal float library routines31269
  43110. Node: Fixed-point fractional library routines47027
  43111. Node: Exception handling routines147423
  43112. Node: Miscellaneous routines148530
  43113. Node: Languages150650
  43114. Node: Source Tree152197
  43115. Node: Configure Terms152779
  43116. Node: Top Level155735
  43117. Node: gcc Directory159165
  43118. Node: Subdirectories160117
  43119. Node: Configuration162285
  43120. Node: Config Fragments163005
  43121. Node: System Config164230
  43122. Node: Configuration Files165166
  43123. Node: Build167983
  43124. Node: Makefile168395
  43125. Ref: Makefile-Footnote-1175170
  43126. Ref: Makefile-Footnote-2175317
  43127. Node: Library Files175391
  43128. Node: Headers175953
  43129. Node: Documentation178036
  43130. Node: Texinfo Manuals178895
  43131. Node: Man Page Generation181224
  43132. Node: Miscellaneous Docs183137
  43133. Node: Front End184524
  43134. Node: Front End Directory188198
  43135. Node: Front End Config189514
  43136. Node: Front End Makefile192350
  43137. Node: Back End196118
  43138. Node: Testsuites199899
  43139. Node: Test Idioms200888
  43140. Node: Test Directives204286
  43141. Node: Directives204813
  43142. Node: Selectors215106
  43143. Node: Effective-Target Keywords216462
  43144. Ref: arm_fp_ok224498
  43145. Ref: arm_neon_ok225427
  43146. Ref: arm_neon_ok_no_float_abi225596
  43147. Ref: arm_neonv2_ok225763
  43148. Ref: arm_fp16_ok225930
  43149. Ref: arm_neon_fp16_ok226272
  43150. Ref: arm_vfp3_ok227148
  43151. Ref: arm_v8_1a_neon_ok227574
  43152. Ref: arm_v8_2a_fp16_scalar_ok228000
  43153. Ref: arm_v8_2a_fp16_neon_ok228447
  43154. Ref: arm_v8_2a_dotprod_neon_ok228918
  43155. Ref: arm_coproc1_ok229929
  43156. Ref: arm_coproc2_ok230055
  43157. Ref: arm_coproc3_ok230283
  43158. Node: Add Options242148
  43159. Ref: arm_fp16_ieee243166
  43160. Ref: arm_fp16_alternative243421
  43161. Node: Require Support245522
  43162. Node: Final Actions248249
  43163. Node: Ada Tests253908
  43164. Node: C Tests255071
  43165. Node: LTO Testing259465
  43166. Node: gcov Testing261108
  43167. Node: profopt Testing264098
  43168. Node: compat Testing265813
  43169. Node: Torture Tests270053
  43170. Node: GIMPLE Tests271687
  43171. Node: RTL Tests272930
  43172. Node: Options274236
  43173. Node: Option file format274677
  43174. Node: Option properties281666
  43175. Node: Passes295640
  43176. Node: Parsing pass296530
  43177. Node: Cilk Plus Transformation300063
  43178. Node: Gimplification pass303445
  43179. Node: Pass manager305290
  43180. Node: Tree SSA passes307136
  43181. Node: RTL passes328678
  43182. Node: Optimization info340982
  43183. Node: Dump setup341801
  43184. Node: Optimization groups342930
  43185. Node: Dump files and streams343909
  43186. Node: Dump output verbosity345107
  43187. Node: Dump types346163
  43188. Node: Dump examples347653
  43189. Node: GENERIC348999
  43190. Node: Deficiencies350875
  43191. Node: Tree overview351116
  43192. Node: Macros and Functions355240
  43193. Node: Identifiers356065
  43194. Node: Containers357674
  43195. Node: Types358831
  43196. Node: Declarations370905
  43197. Node: Working with declarations371400
  43198. Node: Internal structure377004
  43199. Node: Current structure hierarchy377388
  43200. Node: Adding new DECL node types379481
  43201. Node: Attributes383765
  43202. Node: Expression trees385009
  43203. Node: Constant expressions386763
  43204. Node: Storage References390059
  43205. Node: Unary and Binary Expressions393578
  43206. Node: Vectors413726
  43207. Node: Statements418921
  43208. Node: Basic Statements419453
  43209. Node: Blocks423960
  43210. Node: Statement Sequences425661
  43211. Node: Empty Statements425994
  43212. Node: Jumps426568
  43213. Node: Cleanups427221
  43214. Node: OpenMP428988
  43215. Node: OpenACC434833
  43216. Node: Functions435874
  43217. Node: Function Basics436345
  43218. Node: Function Properties440029
  43219. Node: Language-dependent trees442810
  43220. Node: C and C++ Trees443697
  43221. Node: Types for C++446601
  43222. Node: Namespaces451571
  43223. Node: Classes454677
  43224. Node: Functions for C++459734
  43225. Node: Statements for C++465985
  43226. Node: C++ Expressions474762
  43227. Node: Java Trees476267
  43228. Node: GIMPLE476380
  43229. Node: Tuple representation480045
  43230. Node: Class hierarchy of GIMPLE statements487005
  43231. Node: GIMPLE instruction set491993
  43232. Node: GIMPLE Exception Handling493625
  43233. Node: Temporaries495537
  43234. Ref: Temporaries-Footnote-1496855
  43235. Node: Operands496920
  43236. Node: Compound Expressions497681
  43237. Node: Compound Lvalues497915
  43238. Node: Conditional Expressions498677
  43239. Node: Logical Operators499336
  43240. Node: Manipulating GIMPLE statements506200
  43241. Node: Tuple specific accessors512136
  43242. Node: 'GIMPLE_ASM'512973
  43243. Node: 'GIMPLE_ASSIGN'515360
  43244. Node: 'GIMPLE_BIND'520070
  43245. Node: 'GIMPLE_CALL'521890
  43246. Node: 'GIMPLE_CATCH'525924
  43247. Node: 'GIMPLE_COND'527080
  43248. Node: 'GIMPLE_DEBUG'529881
  43249. Node: 'GIMPLE_EH_FILTER'533260
  43250. Node: 'GIMPLE_LABEL'534829
  43251. Node: 'GIMPLE_GOTO'535448
  43252. Node: 'GIMPLE_NOP'535977
  43253. Node: 'GIMPLE_OMP_ATOMIC_LOAD'536345
  43254. Node: 'GIMPLE_OMP_ATOMIC_STORE'537347
  43255. Node: 'GIMPLE_OMP_CONTINUE'538052
  43256. Node: 'GIMPLE_OMP_CRITICAL'539537
  43257. Node: 'GIMPLE_OMP_FOR'540537
  43258. Node: 'GIMPLE_OMP_MASTER'543959
  43259. Node: 'GIMPLE_OMP_ORDERED'544343
  43260. Node: 'GIMPLE_OMP_PARALLEL'544743
  43261. Node: 'GIMPLE_OMP_RETURN'547518
  43262. Node: 'GIMPLE_OMP_SECTION'548169
  43263. Node: 'GIMPLE_OMP_SECTIONS'548835
  43264. Node: 'GIMPLE_OMP_SINGLE'550451
  43265. Node: 'GIMPLE_PHI'551403
  43266. Node: 'GIMPLE_RESX'552688
  43267. Node: 'GIMPLE_RETURN'553413
  43268. Node: 'GIMPLE_SWITCH'553993
  43269. Node: 'GIMPLE_TRY'555874
  43270. Node: 'GIMPLE_WITH_CLEANUP_EXPR'557652
  43271. Node: GIMPLE sequences558535
  43272. Node: Sequence iterators561741
  43273. Node: Adding a new GIMPLE statement code570198
  43274. Node: Statement and operand traversals571543
  43275. Node: Tree SSA574135
  43276. Node: Annotations575923
  43277. Node: SSA Operands576328
  43278. Node: SSA590403
  43279. Node: Alias analysis600109
  43280. Node: Memory model603883
  43281. Node: RTL605242
  43282. Node: RTL Objects607430
  43283. Node: RTL Classes611304
  43284. Node: Accessors616350
  43285. Node: Special Accessors618744
  43286. Node: Flags624531
  43287. Node: Machine Modes639295
  43288. Node: Constants652969
  43289. Node: Regs and Memory661056
  43290. Node: Arithmetic678952
  43291. Node: Comparisons688998
  43292. Node: Bit-Fields693290
  43293. Node: Vector Operations694842
  43294. Node: Conversions696723
  43295. Node: RTL Declarations701221
  43296. Node: Side Effects702042
  43297. Node: Incdec719052
  43298. Node: Assembler722388
  43299. Node: Debug Information723933
  43300. Node: Insns725130
  43301. Node: Calls751525
  43302. Node: Sharing754118
  43303. Node: Reading RTL757229
  43304. Node: Control Flow758220
  43305. Node: Basic Blocks759989
  43306. Node: Edges765443
  43307. Node: Profile information774062
  43308. Node: Maintaining the CFG778746
  43309. Node: Liveness information784514
  43310. Node: Loop Analysis and Representation786640
  43311. Node: Loop representation787676
  43312. Node: Loop querying795239
  43313. Node: Loop manipulation798060
  43314. Node: LCSSA800396
  43315. Node: Scalar evolutions802465
  43316. Node: loop-iv805709
  43317. Node: Number of iterations807631
  43318. Node: Dependency analysis811712
  43319. Node: Machine Desc818063
  43320. Node: Overview820626
  43321. Node: Patterns822666
  43322. Node: Example826174
  43323. Node: RTL Template827635
  43324. Node: Output Template838291
  43325. Node: Output Statement842254
  43326. Node: Predicates846593
  43327. Node: Machine-Independent Predicates849511
  43328. Node: Defining Predicates854455
  43329. Node: Constraints860418
  43330. Node: Simple Constraints861887
  43331. Node: Multi-Alternative874727
  43332. Node: Class Preferences877936
  43333. Node: Modifiers878828
  43334. Node: Machine Constraints883561
  43335. Node: Disable Insn Alternatives943528
  43336. Node: Define Constraints947020
  43337. Node: C Constraint Interface954415
  43338. Node: Standard Names957565
  43339. Ref: shift patterns983611
  43340. Ref: prologue instruction pattern1034472
  43341. Ref: window_save instruction pattern1034965
  43342. Ref: epilogue instruction pattern1035242
  43343. Node: Pattern Ordering1054125
  43344. Node: Dependent Patterns1055361
  43345. Node: Jump Patterns1056981
  43346. Ref: Jump Patterns-Footnote-11059128
  43347. Node: Looping Patterns1059176
  43348. Node: Insn Canonicalizations1063905
  43349. Node: Expander Definitions1068490
  43350. Node: Insn Splitting1076704
  43351. Node: Including Patterns1086307
  43352. Node: Peephole Definitions1088091
  43353. Node: define_peephole1089344
  43354. Node: define_peephole21095674
  43355. Node: Insn Attributes1098740
  43356. Node: Defining Attributes1099922
  43357. Ref: define_enum_attr1103415
  43358. Node: Expressions1104451
  43359. Node: Tagging Insns1111201
  43360. Node: Attr Example1115554
  43361. Node: Insn Lengths1117927
  43362. Node: Constant Attributes1121335
  43363. Node: Mnemonic Attribute1122511
  43364. Node: Delay Slots1124030
  43365. Node: Processor pipeline description1127253
  43366. Ref: Processor pipeline description-Footnote-11146070
  43367. Node: Conditional Execution1146394
  43368. Node: Define Subst1149877
  43369. Node: Define Subst Example1151913
  43370. Node: Define Subst Pattern Matching1154907
  43371. Node: Define Subst Output Template1156133
  43372. Node: Constant Definitions1158203
  43373. Ref: define_enum1161985
  43374. Node: Iterators1162473
  43375. Node: Mode Iterators1163051
  43376. Node: Defining Mode Iterators1164029
  43377. Node: Substitutions1165523
  43378. Node: Examples1167765
  43379. Node: Code Iterators1169213
  43380. Node: Int Iterators1171492
  43381. Node: Subst Iterators1173938
  43382. Node: Target Macros1175630
  43383. Node: Target Structure1178642
  43384. Node: Driver1180758
  43385. Node: Run-time Target1199728
  43386. Node: Per-Function Data1209439
  43387. Node: Storage Layout1212203
  43388. Node: Type Layout1239159
  43389. Node: Registers1252500
  43390. Node: Register Basics1253474
  43391. Node: Allocation Order1258912
  43392. Node: Values in Registers1261396
  43393. Node: Leaf Functions1268874
  43394. Node: Stack Registers1271733
  43395. Node: Register Classes1273005
  43396. Node: Stack and Calling1306556
  43397. Node: Frame Layout1307162
  43398. Node: Exception Handling1318009
  43399. Node: Stack Checking1324219
  43400. Node: Frame Registers1329060
  43401. Node: Elimination1337325
  43402. Node: Stack Arguments1341181
  43403. Node: Register Arguments1348363
  43404. Node: Scalar Return1370656
  43405. Node: Aggregate Return1377112
  43406. Node: Caller Saves1381301
  43407. Node: Function Entry1382043
  43408. Node: Profiling1393135
  43409. Node: Tail Calls1395245
  43410. Node: Shrink-wrapping separate components1397156
  43411. Node: Stack Smashing Protection1400197
  43412. Node: Miscellaneous Register Hooks1402120
  43413. Node: Varargs1402986
  43414. Node: Trampolines1413095
  43415. Node: Library Calls1420259
  43416. Node: Addressing Modes1424943
  43417. Node: Anchored Addresses1448446
  43418. Node: Condition Code1451089
  43419. Node: CC0 Condition Codes1453416
  43420. Node: MODE_CC Condition Codes1456662
  43421. Node: Costs1463458
  43422. Node: Scheduling1484088
  43423. Node: Sections1508010
  43424. Node: PIC1523939
  43425. Node: Assembler Format1525998
  43426. Node: File Framework1527136
  43427. Ref: TARGET_HAVE_SWITCHABLE_BSS_SECTIONS1534760
  43428. Node: Data Output1538030
  43429. Node: Uninitialized Data1545976
  43430. Node: Label Output1550987
  43431. Node: Initialization1575598
  43432. Node: Macros for Initialization1581559
  43433. Node: Instruction Output1588278
  43434. Node: Dispatch Tables1598907
  43435. Node: Exception Region Output1603307
  43436. Node: Alignment Output1610401
  43437. Node: Debugging Info1615004
  43438. Node: All Debuggers1615674
  43439. Node: DBX Options1618529
  43440. Node: DBX Hooks1623967
  43441. Node: File Names and DBX1625276
  43442. Node: SDB and DWARF1627388
  43443. Node: VMS Debug1633678
  43444. Node: Floating Point1634265
  43445. Node: Mode Switching1637020
  43446. Node: Target Attributes1641457
  43447. Node: Emulated TLS1650423
  43448. Node: MIPS Coprocessors1653813
  43449. Node: PCH Target1654972
  43450. Node: C++ ABI1656814
  43451. Node: Named Address Spaces1661608
  43452. Node: Misc1667515
  43453. Ref: TARGET_SHIFT_TRUNCATION_MASK1675375
  43454. Node: Host Config1730762
  43455. Node: Host Common1731831
  43456. Node: Filesystem1734205
  43457. Node: Host Misc1738320
  43458. Node: Fragments1740769
  43459. Node: Target Fragment1741964
  43460. Node: Host Fragment1752686
  43461. Node: Collect21752926
  43462. Node: Header Dirs1755562
  43463. Node: Type Information1756985
  43464. Node: GTY Options1760261
  43465. Node: Inheritance and GTY1771520
  43466. Ref: Inheritance and GTY-Footnote-11773085
  43467. Node: User GC1773355
  43468. Node: GGC Roots1777094
  43469. Node: Files1777807
  43470. Node: Invoking the garbage collector1780514
  43471. Node: Troubleshooting1782019
  43472. Node: Plugins1783094
  43473. Node: Plugins loading1784223
  43474. Node: Plugin API1785093
  43475. Node: Plugins pass1792819
  43476. Node: Plugins GC1794790
  43477. Node: Plugins description1796508
  43478. Node: Plugins attr1797044
  43479. Node: Plugins recording1799318
  43480. Node: Plugins gate1800168
  43481. Node: Plugins tracking1800759
  43482. Node: Plugins building1801347
  43483. Node: LTO1803137
  43484. Node: LTO Overview1804009
  43485. Node: LTO object file layout1809836
  43486. Node: IPA1814466
  43487. Node: WHOPR1823431
  43488. Node: Internal flags1827991
  43489. Node: Match and Simplify1829402
  43490. Node: GIMPLE API1830356
  43491. Node: The Language1833151
  43492. Node: Funding1844517
  43493. Node: GNU Project1847016
  43494. Node: Copying1847665
  43495. Node: GNU Free Documentation License1885177
  43496. Node: Contributors1910298
  43497. Node: Option Index1949741
  43498. Node: Concept Index1950618
  43499. 
  43500. End Tag Table